box-annotations 5.2.1-beta.14 → 5.2.1-beta.17
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.
- package/dist/annotations.css +1 -1
- package/dist/annotations.js +1 -1
- package/package.json +13 -13
- package/src/@types/api.ts +3 -2
- package/src/@types/events.ts +27 -10
- package/src/@types/model.ts +1 -0
- package/src/adapters/threadedAnnotationsAdapters.ts +17 -1
- package/src/api/APIFactory.ts +6 -1
- package/src/api/types.ts +23 -1
- package/src/common/BaseAnnotator.scss +2 -1
- package/src/common/BaseAnnotator.ts +27 -2
- package/src/components/Popups/PopupV2.tsx +46 -10
- package/src/popup/PopupLayer.tsx +32 -4
- package/src/store/annotations/actions.ts +89 -0
- package/src/store/annotations/reducer.ts +48 -0
- package/src/store/eventing/create.ts +3 -3
- package/src/store/eventing/delete.ts +27 -0
- package/src/store/eventing/middleware.ts +40 -4
- package/src/store/eventing/replyCreate.ts +34 -0
- package/src/store/eventing/replyDelete.ts +35 -0
- package/src/store/eventing/replyUpdate.ts +39 -0
- package/src/store/eventing/types.ts +4 -4
- package/src/store/eventing/update.ts +29 -0
- package/src/store/options/selectors.ts +2 -2
- package/src/store/options/types.ts +2 -2
package/dist/annotations.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see annotations.js.LICENSE.txt */
|
|
2
|
-
(()=>{var e={617(e,t,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};Object.defineProperty(t,"__esModule",{value:!0});var o=n(9030);function i(e,t){if(!(e instanceof a))throw new TypeError("Method Intl.PluralRules.prototype."+t+" called on incompatible receiver "+String(e))}var a=function(){function e(t,n){if(!(this&&this instanceof e?this.constructor:void 0))throw new TypeError("Intl.PluralRules must be called with 'new'");var r=o.getCanonicalLocales(t),i=Object.create(null),a=void 0===n?Object.create(null):o.toObject(n);o.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"initializedPluralRules",!0);var s=o.getOption(a,"localeMatcher","string",["best fit","lookup"],"best fit");i.localeMatcher=s,o.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"type",o.getOption(a,"type","string",["cardinal","ordinal"],"cardinal")),o.setNumberFormatDigitOptions(e.__INTERNAL_SLOT_MAP__,this,a,0,3);var c=o.createResolveLocale(e.getDefaultLocale)(e.availableLocales,r,i,e.relevantExtensionKeys,e.localeData);o.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"locale",c.locale)}return e.prototype.resolvedOptions=function(){var t=this;i(this,"resolvedOptions");var n=Object.create(null);return n.locale=o.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"locale"),n.type=o.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"type"),["minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"].forEach(function(r){var i=o.getInternalSlot(e.__INTERNAL_SLOT_MAP__,t,r);void 0!==i&&(n[r]=i)}),n.pluralCategories=r(e.localeData[n.locale].categories[n.type]),n},e.prototype.select=function(t){i(this,"select");var n,r,a,s,c,u=o.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"locale"),l=o.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"type");return e.localeData[u].fn((n=e.__INTERNAL_SLOT_MAP__,r=this,a=Math.abs(Number(t)),s=o.getInternalSlot(n,r,"minimumSignificantDigits"),c=o.getInternalSlot(n,r,"maximumSignificantDigits"),void 0!==s&&void 0!==c?function(e,t,n){var r=e.toPrecision(n);if(~r.indexOf(".")&&n>t){for(var o=n-t;o>0&&"0"===r[r.length-1];)r=r.slice(0,r.length-1),o--;if("."===r[r.length-1])return r.slice(0,r.length-1)}return r}(a,s,c):function(e,t,n,r){for(var o=r-n,i=e.toFixed(r);o>0&&"0"===i[i.length-1];)i=i.slice(0,i.length-1),o--;"."===i[i.length-1]&&(i=i.slice(0,i.length-1));var a=i.split(".")[0].length;if(a<t){for(var s="";s.length<t-a;s+="0");i=s+i}return i}(a,o.getInternalSlot(n,r,"minimumIntegerDigits"),o.getInternalSlot(n,r,"minimumFractionDigits"),o.getInternalSlot(n,r,"maximumFractionDigits"))),"ordinal"==l)},e.prototype.toString=function(){return"[object Intl.PluralRules]"},e.supportedLocalesOf=function(t,n){return o.supportedLocales(e.availableLocales,o.getCanonicalLocales(t),n)},e.__addLocaleData=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i=function(t){Object.keys(r(t.availableLocales,Object.keys(t.aliases),Object.keys(t.parentLocales)).reduce(function(e,t){return e[t]=!0,e},{})).forEach(function(n){try{e.localeData[n]=o.unpackData(n,t)}catch(e){if(o.isMissingLocaleDataError(e))return;throw e}})},a=0,s=t;a<s.length;a++)i(s[a]);e.availableLocales=Object.keys(e.localeData),e.__defaultLocale||(e.__defaultLocale=e.availableLocales[0])},e.getDefaultLocale=function(){return e.__defaultLocale},e.localeData={},e.availableLocales=[],e.__defaultLocale="en",e.relevantExtensionKeys=[],e.polyfilled=!0,e.__INTERNAL_SLOT_MAP__=new WeakMap,e}();t.PluralRules=a;try{Object.defineProperty(a,"length",{value:0,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype.constructor,"length",{value:0,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(a.supportedLocalesOf,"length",{value:1,writable:!1,enumerable:!1,configurable:!0})}catch(e){}},8139(){Intl.PluralRules&&"function"==typeof Intl.PluralRules.__addLocaleData&&Intl.PluralRules.__addLocaleData({data:{en:{categories:{cardinal:["one","other"],ordinal:["one","two","few","other"]},fn:function(e,t){var n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==e&&r?"one":"other"}}},aliases:{},parentLocales:{"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CA":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PH":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150"},availableLocales:["en"]})},1761(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(617);(void 0===Intl.PluralRules||!Intl.PluralRules.polyfilled&&"one"===new Intl.PluralRules("en",{minimumFractionDigits:2}).select(1))&&Object.defineProperty(Intl,"PluralRules",{value:r.PluralRules,writable:!0,enumerable:!1,configurable:!0})},1624(e,t,n){n(1761)},6190(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__values||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.")},i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0});var s=n(9030),c=/^[a-z0-9]{3,8}(-[a-z0-9]{3,8})*$/i;function u(e){return e+""}function l(e,t,n,r){if(s.invariant("number"==typeof n,"value must be number, instead got "+typeof n,TypeError),s.invariant("string"==typeof r,"unit must be number, instead got "+typeof n,TypeError),isNaN(n)||n===1/0||n===-1/0)throw new RangeError("Invalid value "+n);var i=function(e){if(s.invariant("string"==typeof e,"unit must be a string, instead got "+typeof e,TypeError),"seconds"===e)return"second";if("minutes"===e)return"minute";if("hours"===e)return"hour";if("days"===e)return"day";if("weeks"===e)return"week";if("months"===e)return"month";if("quarters"===e)return"quarter";if("years"===e)return"year";if("second"!==e&&"minute"!==e&&"hour"!==e&&"day"!==e&&"week"!==e&&"month"!==e&&"quarter"!==e&&"year"!==e)throw new RangeError("Invalid unit "+e);return e}(r),a=s.getInternalSlot(e,t,"fields"),c=s.getInternalSlot(e,t,"style"),l=i;"short"===c?l=r+"-short":"narrow"===c&&(l=r+"-narrow"),l in a||(l=r);var d=a[l];if("auto"===s.getInternalSlot(e,t,"numeric")&&u(n)in d)return[{type:"literal",value:d[u(n)]}];var f,p="future";f=n,((Object.is?Object.is(f,-0):-0===f&&(0!==f||1/f==-1/0))||n<0)&&(p="past");var h=d[p],g=s.getInternalSlot(e,t,"pluralRules"),y=s.getInternalSlot(e,t,"numberFormat"),m="function"==typeof y.formatToParts?y.formatToParts(Math.abs(n)):[{type:"literal",value:y.format(Math.abs(n)),unit:r}];return function(e,t,n){var r,i,a,c,u=s.partitionPattern(e),l=[];try{for(var d=o(u),f=d.next();!f.done;f=d.next()){var p=f.value;if(s.isLiteralPart(p))l.push({type:"literal",value:p.value});else{s.invariant("0"===p.type,"Malformed pattern "+e);try{for(var h=(a=void 0,o(n)),g=h.next();!g.done;g=h.next()){var y=g.value;l.push({type:y.type,value:y.value,unit:t})}}catch(e){a={error:e}}finally{try{g&&!g.done&&(c=h.return)&&c.call(h)}finally{if(a)throw a.error}}}}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}return l}(h[g.select(n)],i,m)}var d=function(){function e(t,n){if(!(this&&this instanceof e?this.constructor:void 0))throw new TypeError("Intl.RelativeTimeFormat must be called with 'new'");s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"initializedRelativeTimeFormat",!0);var r=s.getCanonicalLocales(t),o=Object.create(null),i=void 0===n?Object.create(null):s.toObject(n),a=s.getOption(i,"localeMatcher","string",["best fit","lookup"],"best fit");o.localeMatcher=a;var u=s.getOption(i,"numberingSystem","string",void 0,void 0);if(void 0!==u&&!c.test(u))throw new RangeError("Invalid numbering system "+u);o.nu=u;var l=s.createResolveLocale(e.getDefaultLocale)(e.availableLocales,r,o,e.relevantExtensionKeys,e.localeData),d=l.locale,f=l.nu;s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"locale",d),s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"style",s.getOption(i,"style","string",["long","narrow","short"],"long")),s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numeric",s.getOption(i,"numeric","string",["always","auto"],"always")),s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"fields",e.localeData[d]),s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numberFormat",new Intl.NumberFormat(t)),s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"pluralRules",new Intl.PluralRules(t)),s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numberingSystem",f)}return e.prototype.format=function(t,n){if("object"!=typeof this)throw new TypeError("format was called on a non-object");if(!s.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"initializedRelativeTimeFormat"))throw new TypeError("format was called on a invalid context");return l(e.__INTERNAL_SLOT_MAP__,this,Number(t),u(n)).map(function(e){return e.value}).join("")},e.prototype.formatToParts=function(t,n){if("object"!=typeof this)throw new TypeError("formatToParts was called on a non-object");if(!s.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"initializedRelativeTimeFormat"))throw new TypeError("formatToParts was called on a invalid context");return l(e.__INTERNAL_SLOT_MAP__,this,Number(t),u(n))},e.prototype.resolvedOptions=function(){if("object"!=typeof this)throw new TypeError("resolvedOptions was called on a non-object");if(!s.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"initializedRelativeTimeFormat"))throw new TypeError("resolvedOptions was called on a invalid context");return{locale:s.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"locale"),style:s.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"style"),numeric:s.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numeric"),numberingSystem:s.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numberingSystem")}},e.supportedLocalesOf=function(t,n){return s.supportedLocales(e.availableLocales,s.getCanonicalLocales(t),n)},e.__addLocaleData=function(){for(var t,n,i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];var u=function(t){Object.keys(a(t.availableLocales,Object.keys(t.aliases),Object.keys(t.parentLocales)).reduce(function(e,t){return e[t]=!0,e},{})).forEach(function(n){try{e.localeData[n]=function(e,t){var n=s.getLocaleHierarchy(e,t.aliases,t.parentLocales),o=n.map(function(e){return t.data[e]}).filter(Boolean);if(!o.length)throw new Error('Missing locale data for "'+e+'", lookup hierarchy: '+n.join(", "));return o.reverse(),o.reduce(function(e,t){return r(r({},e),t)},{nu:[]})}(n,t)}catch(e){}})};try{for(var l=o(i),d=l.next();!d.done;d=l.next())u(d.value)}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}e.availableLocales=Object.keys(e.localeData),e.__defaultLocale||(e.__defaultLocale=e.availableLocales[0])},e.getDefaultLocale=function(){return e.__defaultLocale},e.localeData={},e.availableLocales=[],e.__defaultLocale="en",e.relevantExtensionKeys=["nu"],e.polyfilled=!0,e.__INTERNAL_SLOT_MAP__=new WeakMap,e}();t.default=d;try{"undefined"!=typeof Symbol&&Object.defineProperty(d.prototype,Symbol.toStringTag,{value:"Intl.RelativeTimeFormat",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype.constructor,"length",{value:0,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(d.supportedLocalesOf,"length",{value:1,writable:!1,enumerable:!1,configurable:!0})}catch(e){}},2844(){Intl.RelativeTimeFormat&&"function"==typeof Intl.RelativeTimeFormat.__addLocaleData&&Intl.RelativeTimeFormat.__addLocaleData({data:{"en-001":{"year-short":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yr"},past:{one:"{0} yr ago",other:"{0} yr ago"},"-1":"last yr"},"year-narrow":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yr"},past:{one:"{0} yr ago",other:"{0} yr ago"},"-1":"last yr"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr."},"month-short":{0:"this mo",1:"next mo",future:{one:"in {0} mo",other:"in {0} mo"},past:{one:"{0} mo ago",other:"{0} mo ago"},"-1":"last mo"},"month-narrow":{0:"this mo",1:"next mo",future:{one:"in {0} mo",other:"in {0} mo"},past:{one:"{0} mo ago",other:"{0} mo ago"},"-1":"last mo"},"week-short":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wk"},past:{one:"{0} wk ago",other:"{0} wk ago"},"-1":"last wk"},"week-narrow":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wk"},past:{one:"{0} wk ago",other:"{0} wk ago"},"-1":"last wk"},"hour-short":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hr"},past:{one:"{0} hr ago",other:"{0} hr ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hr"},past:{one:"{0} hr ago",other:"{0} hr ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min",other:"in {0} min"},past:{one:"{0} min ago",other:"{0} min ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min",other:"in {0} min"},past:{one:"{0} min ago",other:"{0} min ago"}},"second-short":{0:"now",future:{one:"in {0} sec",other:"in {0} sec"},past:{one:"{0} sec ago",other:"{0} sec ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec",other:"in {0} sec"},past:{one:"{0} sec ago",other:"{0} sec ago"}}},"en-150":{"year-short":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yr"},past:{one:"{0} yr ago",other:"{0} yr ago"},"-1":"last yr"},"year-narrow":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yr"},past:{one:"{0} yr ago",other:"{0} yr ago"},"-1":"last yr"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr."},"month-short":{0:"this mo",1:"next mo",future:{one:"in {0} mo",other:"in {0} mo"},past:{one:"{0} mo ago",other:"{0} mo ago"},"-1":"last mo"},"month-narrow":{0:"this mo",1:"next mo",future:{one:"in {0} mo",other:"in {0} mo"},past:{one:"{0} mo ago",other:"{0} mo ago"},"-1":"last mo"},"week-short":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wk"},past:{one:"{0} wk ago",other:"{0} wk ago"},"-1":"last wk"},"week-narrow":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wk"},past:{one:"{0} wk ago",other:"{0} wk ago"},"-1":"last wk"},"hour-short":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hr"},past:{one:"{0} hr ago",other:"{0} hr ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hr"},past:{one:"{0} hr ago",other:"{0} hr ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min",other:"in {0} min"},past:{one:"{0} min ago",other:"{0} min ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min",other:"in {0} min"},past:{one:"{0} min ago",other:"{0} min ago"}},"second-short":{0:"now",future:{one:"in {0} sec",other:"in {0} sec"},past:{one:"{0} sec ago",other:"{0} sec ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec",other:"in {0} sec"},past:{one:"{0} sec ago",other:"{0} sec ago"}}},"en-AU":{"year-short":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yrs"},past:{one:"{0} yr ago",other:"{0} yrs ago"},"-1":"last yr"},"year-narrow":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yrs"},past:{one:"{0} yr ago",other:"{0} yrs ago"},"-1":"last yr"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtrs"},past:{one:"{0} qtr ago",other:"{0} qtrs ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtrs"},past:{one:"in {0} qtr ago",other:"{0} qtrs ago"},"-1":"last qtr."},"month-short":{0:"this mo",1:"next mo",future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"},"-1":"last mo"},"month-narrow":{0:"this mo",1:"next mo",future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"},"-1":"last mo"},"week-short":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wks"},past:{one:"{0} wk ago",other:"{0} wks ago"},"-1":"last wk"},"week-narrow":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wks"},past:{one:"{0} wk ago",other:"{0} wks ago"},"-1":"last wk"},"hour-short":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hrs"},past:{one:"{0} hr ago",other:"{0} hrs ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hrs"},past:{one:"{0} hr ago",other:"{0} hrs ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min.",other:"in {0} mins"},past:{one:"{0} min. ago",other:"{0} mins ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min.",other:"in {0} mins"},past:{one:"{0} min. ago",other:"{0} mins ago"}},"second-short":{0:"now",future:{one:"in {0} sec.",other:"in {0} secs"},past:{one:"{0} sec. ago",other:"{0} secs ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec.",other:"in {0} secs"},past:{one:"{0} sec. ago",other:"{0} secs ago"}}},"en-CA":{"year-short":{0:"this yr",1:"next yr",future:{one:"in {0} yr.",other:"in {0} yrs."},past:{one:"{0} yr. ago",other:"{0} yrs. ago"},"-1":"last yr"},"year-narrow":{0:"this yr",1:"next yr",future:{one:"in {0} yr.",other:"in {0} yrs."},past:{one:"{0} yr. ago",other:"{0} yrs. ago"},"-1":"last yr"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr.",other:"in {0} qtrs."},past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr.",other:"in {0} qtrs."},past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},"-1":"last qtr."},"month-short":{0:"this mo",1:"next mo",future:{one:"in {0} mo.",other:"in {0} mos."},past:{one:"{0} mo. ago",other:"{0} mos. ago"},"-1":"last mo"},"month-narrow":{0:"this mo",1:"next mo",future:{one:"in {0} mo.",other:"in {0} mos."},past:{one:"{0} mo. ago",other:"{0} mos. ago"},"-1":"last mo"},"week-short":{0:"this wk",1:"next wk",future:{one:"in {0} wk.",other:"in {0} wks."},past:{one:"{0} wk. ago",other:"{0} wks. ago"},"-1":"last wk"},"week-narrow":{0:"this wk",1:"next wk",future:{one:"in {0} wk.",other:"in {0} wks."},past:{one:"{0} wk. ago",other:"{0} wks. ago"},"-1":"last wk"},"hour-short":{0:"this hour",future:{one:"in {0} hr.",other:"in {0} hrs."},past:{one:"{0} hr. ago",other:"{0} hrs. ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr.",other:"in {0} hrs."},past:{one:"{0} hr. ago",other:"{0} hrs. ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min.",other:"in {0} mins."},past:{one:"{0} min. ago",other:"{0} mins. ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min.",other:"in {0} mins."},past:{one:"{0} min. ago",other:"{0} mins. ago"}},"second-short":{0:"now",future:{one:"in {0} sec.",other:"in {0} secs."},past:{one:"{0} sec. ago",other:"{0} secs. ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec.",other:"in {0} secs."},past:{one:"{0} sec. ago",other:"{0} secs. ago"}}},"en-SG":{"quarter-short":{0:"this qtr",1:"next qtr",future:{one:"in {0} qtr",other:"in {0} qtrs"},past:{one:"{0} qtr ago",other:"{0} qtrs ago"},"-1":"last qtr"},"quarter-narrow":{0:"this qtr",1:"next qtr",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr"},"month-short":{0:"this mth",1:"next mth",future:{one:"in {0} mth",other:"in {0} mth"},past:{one:"{0} mth ago",other:"{0} mth ago"},"-1":"last mth"}},en:{nu:["latn"],year:{0:"this year",1:"next year",future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"},"-1":"last year"},"year-short":{0:"this yr.",1:"next yr.",future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"},"-1":"last yr."},"year-narrow":{0:"this yr.",1:"next yr.",future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"},"-1":"last yr."},quarter:{0:"this quarter",1:"next quarter",future:{one:"in {0} quarter",other:"in {0} quarters"},past:{one:"{0} quarter ago",other:"{0} quarters ago"},"-1":"last quarter"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr.",other:"in {0} qtrs."},past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr.",other:"in {0} qtrs."},past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},"-1":"last qtr."},month:{0:"this month",1:"next month",future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"},"-1":"last month"},"month-short":{0:"this mo.",1:"next mo.",future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"},"-1":"last mo."},"month-narrow":{0:"this mo.",1:"next mo.",future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"},"-1":"last mo."},week:{0:"this week",1:"next week",future:{one:"in {0} week",other:"in {0} weeks"},past:{one:"{0} week ago",other:"{0} weeks ago"},"-1":"last week"},"week-short":{0:"this wk.",1:"next wk.",future:{one:"in {0} wk.",other:"in {0} wk."},past:{one:"{0} wk. ago",other:"{0} wk. ago"},"-1":"last wk."},"week-narrow":{0:"this wk.",1:"next wk.",future:{one:"in {0} wk.",other:"in {0} wk."},past:{one:"{0} wk. ago",other:"{0} wk. ago"},"-1":"last wk."},day:{0:"today",1:"tomorrow",future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"},"-1":"yesterday"},"day-short":{0:"today",1:"tomorrow",future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"},"-1":"yesterday"},"day-narrow":{0:"today",1:"tomorrow",future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"},"-1":"yesterday"},hour:{0:"this hour",future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}},"hour-short":{0:"this hour",future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}},minute:{0:"this minute",future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}},second:{0:"now",future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}},"second-short":{0:"now",future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}}}},availableLocales:["en-001","en-150","en-AE","en-AG","en-AI","en-AS","en-AT","en-AU","en-BB","en-BE","en-BI","en-BM","en-BS","en-BW","en-BZ","en-CA","en-CC","en-CH","en-CK","en-CM","en-CX","en-CY","en-DE","en-DG","en-DK","en-DM","en-ER","en-FI","en-FJ","en-FK","en-FM","en-GB","en-GD","en-GG","en-GH","en-GI","en-GM","en-GU","en-GY","en-HK","en-IE","en-IL","en-IM","en-IN","en-IO","en-JE","en-JM","en-KE","en-KI","en-KN","en-KY","en-LC","en-LR","en-LS","en-MG","en-MH","en-MO","en-MP","en-MS","en-MT","en-MU","en-MW","en-MY","en-NA","en-NF","en-NG","en-NL","en-NR","en-NU","en-NZ","en-PG","en-PH","en-PK","en-PN","en-PR","en-PW","en-RW","en-SB","en-SC","en-SD","en-SE","en-SG","en-SH","en-SI","en-SL","en-SS","en-SX","en-SZ","en-TC","en-TK","en-TO","en-TT","en-TV","en-TZ","en-UG","en-UM","en-US-POSIX","en-US","en-VC","en-VG","en-VI","en-VU","en-WS","en-ZA","en-ZM","en-ZW","en"],aliases:{},parentLocales:{"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CA":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PH":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150"}})},1534(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6190);"RelativeTimeFormat"in Intl||Object.defineProperty(Intl,"RelativeTimeFormat",{value:r.default,writable:!0,enumerable:!1,configurable:!0})},1113(e,t,n){n(1534)},9030(e,t,n){"use strict";n.r(t),n.d(t,{InternalSlotToken:()=>B,SANCTIONED_UNITS:()=>U,createResolveLocale:()=>I,defaultNumberOption:()=>f,getAliasesByLang:()=>h,getCanonicalLocales:()=>k,getInternalSlot:()=>b,getLocaleHierarchy:()=>M,getMultiInternalSlots:()=>v,getNumberOption:()=>p,getOption:()=>d,getParentLocalesByLang:()=>g,invariant:()=>c,isLiteralPart:()=>w,isMissingLocaleDataError:()=>N,isWellFormedCurrencyCode:()=>O,objectIs:()=>E,partitionPattern:()=>S,removeUnitNamespace:()=>K,selectUnit:()=>o,setInternalSlot:()=>y,setMultiInternalSlots:()=>m,setNumberFormatDigitOptions:()=>x,supportedLocales:()=>j,toObject:()=>u,toString:()=>l,unpackData:()=>F});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};function o(e,t,n){void 0===t&&(t=Date.now()),void 0===n&&(n={});var o=r(r({},i),n||{}),a=(+e-+t)/1e3;if(Math.abs(a)<o.second)return{value:Math.round(a),unit:"second"};var s=a/60;if(Math.abs(s)<o.minute)return{value:Math.round(s),unit:"minute"};var c=a/3600;if(Math.abs(c)<o.hour)return{value:Math.round(c),unit:"hour"};var u=a/86400;if(Math.abs(u)<o.day)return{value:Math.round(u),unit:"day"};var l=new Date(e),d=new Date(t),f=l.getFullYear()-d.getFullYear();if(Math.round(Math.abs(f))>0)return{value:Math.round(f),unit:"year"};var p=12*f+l.getMonth()-d.getMonth();if(Math.round(Math.abs(p))>0)return{value:Math.round(p),unit:"month"};var h=a/604800;return{value:Math.round(h),unit:"week"}}var i={second:45,minute:45,hour:22,day:5};const a={"aa-SAAHO":"ssy",aam:"aas",aar:"aa",abk:"ab",adp:"dz",afr:"af",aju:"jrb",aka:"ak",alb:"sq",als:"sq",amh:"am",ara:"ar",arb:"ar",arg:"an",arm:"hy","art-lojban":"jbo",asd:"snz",asm:"as",aue:"ktz",ava:"av",ave:"ae",aym:"ay",ayr:"ay",ayx:"nun","az-AZ":"az-Latn-AZ",aze:"az",azj:"az",bak:"ba",bam:"bm",baq:"eu",bcc:"bal",bcl:"bik",bel:"be",ben:"bn",bgm:"bcg",bh:"bho",bih:"bho",bis:"bi",bjd:"drl",bod:"bo",bos:"bs",bre:"br","bs-BA":"bs-Latn-BA",bul:"bg",bur:"my",bxk:"luy",bxr:"bua",cat:"ca",ccq:"rki","cel-gaulish":"xtg-x-cel-gaulish",ces:"cs",cha:"ch",che:"ce",chi:"zh",chu:"cu",chv:"cv",cjr:"mom",cka:"cmr",cld:"syr",cmk:"xch",cmn:"zh",cnr:"sr-ME",cor:"kw",cos:"co",coy:"pij",cqu:"quh",cre:"cr",cwd:"cr",cym:"cy",cze:"cs",dan:"da",deu:"de",dgo:"doi",dhd:"mwr",dik:"din",diq:"zza",dit:"dif",div:"dv",drh:"mn",drw:"fa-af",dut:"nl",dzo:"dz",ekk:"et",ell:"el",emk:"man",eng:"en",epo:"eo",esk:"ik",est:"et",eus:"eu",ewe:"ee",fao:"fo",fas:"fa",fat:"ak",fij:"fj",fin:"fi",fra:"fr",fre:"fr",fry:"fy",fuc:"ff",ful:"ff",gav:"dev",gaz:"om",gbo:"grb",geo:"ka",ger:"de",gfx:"vaj",ggn:"gvr",gla:"gd",gle:"ga",glg:"gl",glv:"gv",gno:"gon",gre:"el",grn:"gn",gti:"nyc",gug:"gn",guj:"gu",guv:"duz",gya:"gba","ha-Latn-GH":"ha-GH","ha-Latn-NE":"ha-NE","ha-Latn-NG":"ha-NG",hat:"ht",hau:"ha",hbs:"sr-Latn",hdn:"hai",hea:"hmn",heb:"he",her:"hz",him:"srx",hin:"hi",hmo:"ho",hrr:"jal",hrv:"hr",hun:"hu",hye:"hy","i-ami":"ami","i-bnn":"bnn","i-hak":"hak","i-klingon":"tlh","i-lux":"lb","i-navajo":"nv","i-pwn":"pwn","i-tao":"tao","i-tay":"tay","i-tsu":"tsu","i-default":"en-x-i-default","i-enochian":"und-x-i-enochian","i-mingo":"see-x-i-mingo",ibi:"opa",ibo:"ig",ice:"is",ido:"io",iii:"ii",ike:"iu",iku:"iu",ile:"ie",ilw:"gal",in:"id",ina:"ia",ind:"id",ipk:"ik",isl:"is",ita:"it",iw:"he",jav:"jv",jeg:"oyb",ji:"yi",jpn:"ja",jw:"jv",kal:"kl",kan:"kn",kas:"ks",kat:"ka",kau:"kr",kaz:"kk",kgc:"tdf",kgh:"kml",khk:"mn",khm:"km",kik:"ki",kin:"rw",kir:"ky","kk-Cyrl-KZ":"kk-KZ",kmr:"ku",knc:"kr",kng:"kg",knn:"kok",koj:"kwv",kom:"kv",kon:"kg",kor:"ko",kpv:"kv",krm:"bmf","ks-Arab-IN":"ks-IN",ktr:"dtp",kua:"kj",kur:"ku",kvs:"gdj",kwq:"yam",kxe:"tvd","ky-Cyrl-KG":"ky-KG",kzj:"dtp",kzt:"dtp",lao:"lo",lat:"la",lav:"lv",lbk:"bnc",lii:"raq",lim:"li",lin:"ln",lit:"lt",llo:"ngt",lmm:"rmx",ltz:"lb",lub:"lu",lug:"lg",lvs:"lv",mac:"mk",mah:"mh",mal:"ml",mao:"mi",mar:"mr",may:"ms",meg:"cir",mhr:"chm",mkd:"mk",mlg:"mg",mlt:"mt","mn-Cyrl-MN":"mn-MN",mnk:"man",mo:"ro",mol:"ro",mon:"mn",mri:"mi","ms-Latn-BN":"ms-BN","ms-Latn-MY":"ms-MY","ms-Latn-SG":"ms-SG",msa:"ms",mst:"mry",mup:"raj",mwj:"vaj",mya:"my",myd:"aog",myt:"mry",nad:"xny",nau:"na",nav:"nv",nbl:"nr",ncp:"kdz",nde:"nd",ndo:"ng",nep:"ne",nld:"nl",nno:"nn",nns:"nbr",nnx:"ngv",no:"nb","no-bok":"nb","no-BOKMAL":"nb","no-nyn":"nn","no-NYNORSK":"nn",nob:"nb",nor:"nb",npi:"ne",nts:"pij",nya:"ny",oci:"oc",ojg:"oj",oji:"oj",ori:"or",orm:"om",ory:"or",oss:"os",oun:"vaj","pa-IN":"pa-Guru-IN","pa-PK":"pa-Arab-PK",pan:"pa",pbu:"ps",pcr:"adx",per:"fa",pes:"fa",pli:"pi",plt:"mg",pmc:"huw",pmu:"phr",pnb:"lah",pol:"pl",por:"pt",ppa:"bfy",ppr:"lcq",prs:"fa-AF",pry:"prt",pus:"ps",puz:"pub",que:"qu",quz:"qu",rmy:"rom",roh:"rm",ron:"ro",rum:"ro",run:"rn",rus:"ru",sag:"sg",san:"sa",sca:"hle",scc:"sr",scr:"hr","sgn-BE-FR":"sfb","sgn-BE-NL":"vgt","sgn-CH-DE":"sgg",sh:"sr-Latn","shi-MA":"shi-Tfng-MA",sin:"si",skk:"oyb",slk:"sk",slo:"sk",slv:"sl",sme:"se",smo:"sm",sna:"sn",snd:"sd",som:"so",sot:"st",spa:"es",spy:"kln",sqi:"sq","sr-BA":"sr-Cyrl-BA","sr-ME":"sr-Latn-ME","sr-RS":"sr-Cyrl-RS","sr-XK":"sr-Cyrl-XK",src:"sc",srd:"sc",srp:"sr",ssw:"ss",sun:"su",swa:"sw",swc:"sw-CD",swe:"sv",swh:"sw",tah:"ty",tam:"ta",tat:"tt",tdu:"dtp",tel:"te",tgk:"tg",tgl:"fil",tha:"th",thc:"tpo",thx:"oyb",tib:"bo",tie:"ras",tir:"ti",tkk:"twm",tl:"fil",tlw:"weo",tmp:"tyj",tne:"kak",tnf:"fa-af",ton:"to",tsf:"taj",tsn:"tn",tso:"ts",ttq:"tmh",tuk:"tk",tur:"tr",tw:"ak",twi:"ak","tzm-Latn-MA":"tzm-MA","ug-Arab-CN":"ug-CN",uig:"ug",ukr:"uk",umu:"del",uok:"ema",urd:"ur","uz-AF":"uz-Arab-AF","uz-UZ":"uz-Latn-UZ",uzb:"uz",uzn:"uz","vai-LR":"vai-Vaii-LR",ven:"ve",vie:"vi",vol:"vo",wel:"cy",wln:"wa",wol:"wo",xba:"cax",xho:"xh",xia:"acn",xkh:"waw",xpe:"kpe",xsj:"suj",xsl:"den",ybd:"rki",ydd:"yi",yid:"yi",yma:"lrr",ymt:"mtm",yor:"yo",yos:"zom","yue-CN":"yue-Hans-CN","yue-HK":"yue-Hant-HK",yuu:"yug",zai:"zap","zh-CN":"zh-Hans-CN","zh-guoyu":"zh","zh-hakka":"hak","zh-HK":"zh-Hant-HK","zh-min-nan":"nan","zh-MO":"zh-Hant-MO","zh-SG":"zh-Hans-SG","zh-TW":"zh-Hant-TW","zh-xiang":"hsn","zh-min":"nan-x-zh-min",zha:"za",zho:"zh",zsm:"ms",zul:"zu",zyb:"za"},s={"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CA":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PH":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150","es-AR":"es-419","es-BO":"es-419","es-BR":"es-419","es-BZ":"es-419","es-CL":"es-419","es-CO":"es-419","es-CR":"es-419","es-CU":"es-419","es-DO":"es-419","es-EC":"es-419","es-GT":"es-419","es-HN":"es-419","es-MX":"es-419","es-NI":"es-419","es-PA":"es-419","es-PE":"es-419","es-PR":"es-419","es-PY":"es-419","es-SV":"es-419","es-US":"es-419","es-UY":"es-419","es-VE":"es-419","pt-AO":"pt-PT","pt-CH":"pt-PT","pt-CV":"pt-PT","pt-FR":"pt-PT","pt-GQ":"pt-PT","pt-GW":"pt-PT","pt-LU":"pt-PT","pt-MO":"pt-PT","pt-MZ":"pt-PT","pt-ST":"pt-PT","pt-TL":"pt-PT","zh-Hant-MO":"zh-Hant-HK"};function c(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}function u(e){if(null==e)throw new TypeError("undefined/null cannot be converted to object");return Object(e)}function l(e){if("symbol"==typeof e)throw TypeError("Cannot convert a Symbol value to a string");return String(e)}function d(e,t,n,r,o){var i=e[t];if(void 0!==i){if("boolean"!==n&&"string"!==n)throw new TypeError("invalid type");if("boolean"===n&&(i=Boolean(i)),"string"===n&&(i=l(i)),void 0!==r&&!r.filter(function(e){return e==i}).length)throw new RangeError(i+" is not within "+r.join(", "));return i}return o}function f(e,t,n,r){if(void 0!==e){if(e=Number(e),isNaN(e)||e<t||e>n)throw new RangeError(e+" is outside of range ["+t+", "+n+"]");return Math.floor(e)}return r}function p(e,t,n,r,o){return f(e[t],n,r,o)}function h(e){return Object.keys(a).reduce(function(t,n){return n.split("-")[0]===e&&(t[n]=a[n]),t},{})}function g(e){return Object.keys(s).reduce(function(t,n){return n.split("-")[0]===e&&(t[n]=s[n]),t},{})}function y(e,t,n,r){e.get(t)||e.set(t,Object.create(null)),e.get(t)[n]=r}function m(e,t,n){for(var r=0,o=Object.keys(n);r<o.length;r++){var i=o[r];y(e,t,i,n[i])}}function b(e,t,n){return v(e,t,n)[n]}function v(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=e.get(t);if(!o)throw new TypeError(t+" InternalSlot has not been initialized");return n.reduce(function(e,t){return e[t]=o[t],e},Object.create(null))}function w(e){return"literal"===e.type}function S(e){for(var t=[],n=e.indexOf("{"),r=0,o=0,i=e.length;n<e.length&&n>-1;)c((r=e.indexOf("}",n))>n,"Invalid pattern "+e),n>o&&t.push({type:"literal",value:e.substring(o,n)}),t.push({type:e.substring(n+1,r),value:void 0}),o=r+1,n=e.indexOf("{",o);return o<i&&t.push({type:"literal",value:e.substring(o,i)}),t}function x(e,t,n,r,o){var i=p(n,"minimumIntegerDigits",1,21,1),a=n.minimumFractionDigits,s=n.maximumFractionDigits,c=n.minimumSignificantDigits,u=n.maximumSignificantDigits;y(e,t,"minimumIntegerDigits",i),void 0!==c||void 0!==u?(y(e,t,"roundingType","significantDigits"),c=f(c,1,21,1),u=f(u,c,21,21),y(e,t,"minimumSignificantDigits",c),y(e,t,"maximumSignificantDigits",u)):void 0!==a||void 0!==s?(y(e,t,"roundingType","fractionDigits"),a=f(a,0,20,r),s=f(s,a,20,Math.max(a,o)),y(e,t,"minimumFractionDigits",a),y(e,t,"maximumFractionDigits",s)):"compact"===b(e,t,"notation")?y(e,t,"roundingType","compactRounding"):(y(e,t,"roundingType","fractionDigits"),y(e,t,"minimumFractionDigits",r),y(e,t,"maximumFractionDigits",o))}function E(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t}var _=/[^A-Z]/;function O(e){return 3===(e=e.replace(/([a-z])/g,function(e,t){return t.toUpperCase()})).length&&!_.test(e)}function k(e){var t=Intl.getCanonicalLocales;return"function"==typeof t?t(e):Intl.DateTimeFormat.supportedLocalesOf(e||"")}var C,A=(C=function(e,t){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},C(e,t)},function(e,t){function n(){this.constructor=e}C(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),T=function(){return T=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},T.apply(this,arguments)};function I(e){var t=function(e){return function(t,n){for(var r={locale:""},o=0,i=n;o<i.length;o++){var a=i[o],s=a.replace(L,""),c=D(t,s);if(c)return r.locale=c,a!==s&&(r.extension=a.slice(s.length+1,a.length)),r}return r.locale=e(),r}}(e),n=function(e){return function(t,n){for(var r={locale:""},o=0,i=n;o<i.length;o++){var a=i[o],s=a.replace(L,""),c=D(t,s);if(c)return r.locale=c,a!==s&&(r.extension=a.slice(s.length+1,a.length)),r}return r.locale=e(),r}}(e);return function(e,r,o,i,a){for(var s,u=(s="lookup"===o.localeMatcher?t(e,r):n(e,r)).locale,l={locale:"",dataLocale:u},d="-u",f=0,p=i;f<p.length;f++){var h=p[f],g=a[u];c("object"==typeof g&&null!==g,"locale data "+h+" must be an object");var y=g[h];c(Array.isArray(y),"keyLocaleData for "+h+" must be an array");var m=y[0];c("string"==typeof m||null===m,"value must be string or null");var b="";if(s.extension){var v=P(s.extension,h);void 0!==v&&(""!==v?~y.indexOf(v)&&(b="-"+h+"-"+(m=v)):~v.indexOf("true")&&(m="true",b="-"+h))}if(h in o){var w=o[h];c("string"==typeof w||null==w,"optionsValue must be String, Undefined or Null"),~y.indexOf(w)&&w!==m&&(m=w,b="")}l[h]=m,d+=b}if(d.length>2){var S=u.indexOf("-x-");if(-1===S)u+=d;else{var x=u.slice(0,S),E=u.slice(S,u.length);u=x+d+E}u=k(u)[0]}return l.locale=u,l}}function P(e,t){c(2===t.length,"key must have 2 elements");var n=e.length,r="-"+t+"-",o=e.indexOf(r);if(-1!==o){for(var i=o+4,a=i,s=i,u=!1;!u;){var l=e.indexOf("-",s);2===(-1===l?n-s:l-s)?u=!0:-1===l?(a=n,u=!0):(a=l,s=l+1)}return e.slice(i,a)}if(r="-"+t,-1!==(o=e.indexOf(r))&&o+3===n)return""}var L=/-u(?:-[0-9a-z]{2,8})+/gi;function D(e,t){for(var n=t;;){if(~e.indexOf(n))return n;var r=n.lastIndexOf("-");if(!~r)return;r>=2&&"-"===n[r-2]&&(r-=2),n=n.slice(0,r)}}function M(e,t,n){var r=[e];t[e]&&(e=t[e],r.push(e));var o=n[e];o&&r.push(o);for(var i=e.split("-"),a=i.length;a>1;a--)r.push(i.slice(0,a-1).join("-"));return r}function j(e,t,n){return void 0!==n&&d(n=u(n),"localeMatcher","string",["lookup","best fit"],"best fit"),function(e,t){for(var n=[],r=0,o=t;r<o.length;r++){var i=D(e,o[r].replace(L,""));i&&n.push(i)}return n}(e,t)}var R=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="MISSING_LOCALE_DATA",t}return A(t,e),t}(Error);function N(e){return"MISSING_LOCALE_DATA"===e.type}function F(e,t,n){void 0===n&&(n=function(e,t){return T(T({},e),t)});var r=M(e,t.aliases,t.parentLocales),o=r.map(function(e){return t.data[e]}).filter(Boolean);if(!o.length)throw new R('Missing locale data for "'+e+'", lookup hierarchy: '+r.join(", "));return o.reverse(),o.reduce(n,{})}var B,U=["angle-degree","area-acre","area-hectare","concentr-percent","digital-bit","digital-byte","digital-gigabit","digital-gigabyte","digital-kilobit","digital-kilobyte","digital-megabit","digital-megabyte","digital-petabyte","digital-terabit","digital-terabyte","duration-day","duration-hour","duration-millisecond","duration-minute","duration-month","duration-second","duration-week","duration-year","length-centimeter","length-foot","length-inch","length-kilometer","length-meter","length-mile-scandinavian","length-mile","length-millimeter","length-yard","mass-gram","mass-kilogram","mass-ounce","mass-pound","mass-stone","temperature-celsius","temperature-fahrenheit","volume-fluid-ounce","volume-gallon","volume-liter","volume-milliliter"];function K(e){return e.replace(/^(.*?)-/,"")}!function(e){e.compactName="compactName",e.compactSymbol="compactSymbol",e.currencyCode="currencyCode",e.currencyName="currencyName",e.currencyNarrowSymbol="currencyNarrowSymbol",e.currencySymbol="currencySymbol",e.minusSign="minusSign",e.number="number",e.percentSign="percentSign",e.plusSign="plusSign",e.scientificExponent="scientificExponent",e.scientificSeparator="scientificSeparator",e.unitName="unitName",e.unitNarrowSymbol="unitNarrowSymbol",e.unitSymbol="unitSymbol"}(B||(B={}))},2505(e,t,n){e.exports=n(8015)},5592(e,t,n){"use strict";var r=n(9516),o=n(7522),i=n(3948),a=n(9106),s=n(9615),c=n(2012),u=n(4202),l=n(7763),d=n(6987),f=n(1928);e.exports=function(e){return new Promise(function(t,n){var p,h=e.data,g=e.headers,y=e.responseType;function m(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(h)&&delete g["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var v=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(v+":"+w)}var S=s(e.baseURL,e.url);function x(){if(b){var r="getAllResponseHeaders"in b?c(b.getAllResponseHeaders()):null,i={data:y&&"text"!==y&&"json"!==y?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};o(function(e){t(e),m()},function(e){n(e),m()},i),b=null}}if(b.open(e.method.toUpperCase(),a(S,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=x:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(x)},b.onabort=function(){b&&(n(l("Request aborted",e,"ECONNABORTED",b)),b=null)},b.onerror=function(){n(l("Network Error",e,null,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||d.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",b)),b=null},r.isStandardBrowserEnv()){var E=(e.withCredentials||u(S))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;E&&(g[e.xsrfHeaderName]=E)}"setRequestHeader"in b&&r.forEach(g,function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete g[t]:b.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),y&&"json"!==y&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){b&&(n(!e||e&&e.type?new f("canceled"):e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),h||(h=null),b.send(h)})}},8015(e,t,n){"use strict";var r=n(9516),o=n(9012),i=n(5155),a=n(5343),s=function e(t){var n=new i(t),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(6987));s.Axios=i,s.Cancel=n(1928),s.CancelToken=n(3191),s.isCancel=n(3864),s.VERSION=n(9641).version,s.all=function(e){return Promise.all(e)},s.spread=n(7980),s.isAxiosError=n(5019),e.exports=s,e.exports.default=s},1928(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},3191(e,t,n){"use strict";var r=n(1928);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;this.promise.then(function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}}),this.promise.then=function(e){var t,r=new Promise(function(e){n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e){n.reason||(n.reason=new r(e),t(n.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o(function(t){e=t}),cancel:e}},e.exports=o},3864(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},5155(e,t,n){"use strict";var r=n(9516),o=n(9106),i=n(3471),a=n(4490),s=n(5343),c=n(4841),u=c.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach(function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))});var o,i=[];if(this.interceptors.response.forEach(function(e){i.push(e.fulfilled,e.rejected)}),!r){var l=[a,void 0];for(Array.prototype.unshift.apply(l,n),l=l.concat(i),o=Promise.resolve(e);l.length;)o=o.then(l.shift(),l.shift());return o}for(var d=e;n.length;){var f=n.shift(),p=n.shift();try{d=f(d)}catch(e){p(e);break}}try{o=a(d)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function(e){l.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}}),r.forEach(["post","put","patch"],function(e){l.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}}),e.exports=l},3471(e,t,n){"use strict";var r=n(9516);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=o},9615(e,t,n){"use strict";var r=n(9137),o=n(4680);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},7763(e,t,n){"use strict";var r=n(5449);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},4490(e,t,n){"use strict";var r=n(9516),o=n(2881),i=n(3864),a=n(6987),s=n(1928);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return c(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},5449(e){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},5343(e,t,n){"use strict";var r=n(9516);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function c(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return r.forEach(Object.keys(e).concat(Object.keys(t)),function(e){var t=u[e]||i,o=t(e);r.isUndefined(o)&&t!==c||(n[e]=o)}),n}},7522(e,t,n){"use strict";var r=n(7763);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},2881(e,t,n){"use strict";var r=n(9516),o=n(6987);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,function(n){e=n.call(i,e,t)}),e}},6987(e,t,n){"use strict";var r=n(9516),o=n(7018),i=n(5449),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=n(5592)),c),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e){if(r.isString(e))try{return(0,JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||u.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],function(e){u.headers[e]={}}),r.forEach(["post","put","patch"],function(e){u.headers[e]=r.merge(a)}),e.exports=u},9641(e){e.exports={version:"0.24.0"}},9012(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},9106(e,t,n){"use strict";var r=n(9516);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))}))}),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},4680(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},3948(e,t,n){"use strict";var r=n(9516);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},9137(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},5019(e){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},4202(e,t,n){"use strict";var r=n(9516);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},7018(e,t,n){"use strict";var r=n(9516);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},2012(e,t,n){"use strict";var r=n(9516),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}}),a):a}},7980(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4841(e,t,n){"use strict";var r=n(9641).version,o={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var i={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(o(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],c=void 0===s||a(s,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},9516(e,t,n){"use strict";var r=n(9012),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:c,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return s(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)l(arguments[r],n);return t},extend:function(e,t,n){return l(t,function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t}),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},2521(){},9288(){SVGElement.prototype.contains||Object.defineProperty(SVGElement.prototype,"contains",{configurable:!0,enumerable:!1,writable:!0,value:function(e){let t=e;do{if(this===t)return!0;t=t&&t.parentNode}while(t);return!1}})},7723(){},2485(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)&&n.length){var a=o.apply(null,n);a&&e.push(a)}else if("object"===i)for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},5889(e,t,n){"use strict";var r=n(5228)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(5748),i=n(3018),a=n(6840),s=n(5224),c=n(2938),u=n(9938),l=n(2242),d=n(9404),f=(n(1381),n(6991)),p=n(6059),h=c.draft_tree_data_support,g=h?s:a,y=d.List,m=d.Repeat,b={insertAtomicBlock:function(e,t,n){var a=e.getCurrentContent(),s=e.getSelection(),c=u.removeRange(a,s,"backward"),d=c.getSelectionAfter(),p=u.splitBlock(c,d),b=p.getSelectionAfter(),v=u.setBlockType(p,b,"atomic"),w=i.create({entity:t}),S={key:f(),type:"atomic",text:n,characterList:y(m(w,n.length))},x={key:f(),type:"unstyled"};h&&(S=r({},S,{nextSibling:x.key}),x=r({},x,{prevSibling:S.key}));var E=[new g(S),new g(x)],_=o.createFromArray(E),O=u.replaceWithFragment(v,b,_),k=O.merge({selectionBefore:s,selectionAfter:O.getSelectionAfter().set("hasFocus",!0)});return l.push(e,k,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o=e.getCurrentContent(),i=e.getSelection(),a=void 0;if("before"===r||"after"===r){var s=o.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());a=p(o,t,s,r)}else{var c=u.removeRange(o,n,"backward"),d=c.getSelectionAfter(),f=c.getBlockForKey(d.getFocusKey());if(0===d.getStartOffset())a=p(c,t,f,"before");else if(d.getEndOffset()===f.getLength())a=p(c,t,f,"after");else{var h=u.splitBlock(c,d),g=h.getSelectionAfter(),y=h.getBlockForKey(g.getFocusKey());a=p(h,t,y,"before")}}var m=a.merge({selectionBefore:i,selectionAfter:a.getSelectionAfter().set("hasFocus",!0)});return l.push(e,m,"move-block")}};e.exports=b},5748(e,t,n){"use strict";var r=n(9404).OrderedMap,o={createFromArray:function(e){return r(e.map(function(e){return[e.getKey(),e]}))}};e.exports=o},9981(e,t,n){"use strict";var r=n(9404),o=n(9395),i=n(8227),a=r.List,s=r.Repeat,c=r.Record,u=o.thatReturnsTrue,l=c({start:null,end:null}),d=c({start:null,end:null,decoratorKey:null,leaves:null}),f={generate:function(e,t,n){var r=t.getLength();if(!r)return a.of(new d({start:0,end:0,decoratorKey:null,leaves:a.of(new l({start:0,end:0}))}));var o=[],c=n?n.getDecorations(t,e):a(s(null,r)),f=t.getCharacterList();return i(c,p,u,function(e,t){var n,r,s,h;o.push(new d({start:e,end:t,decoratorKey:c.get(e),leaves:(n=f.slice(e,t).toList(),r=e,s=[],h=n.map(function(e){return e.getStyle()}).toList(),i(h,p,u,function(e,t){s.push(new l({start:e+r,end:t+r}))}),a(s))}))}),a(o)},getFingerprint:function(e){return e.map(function(e){var t=e.get("decoratorKey");return(null!==t?t+"."+(e.get("end")-e.get("start")):"")+"."+e.get("leaves").size}).join("-")}};function p(e,t){return e===t}e.exports=f},3018(e,t,n){"use strict";var r=n(9404),o=r.Map,i=r.OrderedSet,a=r.Record,s=i(),c={style:s,entity:null},u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getStyle=function(){return this.get("style")},t.prototype.getEntity=function(){return this.get("entity")},t.prototype.hasStyle=function(e){return this.getStyle().includes(e)},t.applyStyle=function(e,n){var r=e.set("style",e.getStyle().add(n));return t.create(r)},t.removeStyle=function(e,n){var r=e.set("style",e.getStyle().remove(n));return t.create(r)},t.applyEntity=function(e,n){var r=e.getEntity()===n?e:e.set("entity",n);return t.create(r)},t.create=function(e){if(!e)return l;var n=o({style:s,entity:null}).merge(e),r=d.get(n);if(r)return r;var i=new t(n);return d=d.set(n,i),i},t}(a(c)),l=new u,d=o([[o(c),l]]);u.EMPTY=l,e.exports=u},9083(e,t,n){"use strict";var r=n(9404).List,o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._decorators=t.slice()}return e.prototype.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach(function(r,o){var i=0;(0,r.strategy)(e,function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(n,e,t,o+"."+i),i++)},t)}),r(n)},e.prototype.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},e.prototype.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();e.exports=o},6840(e,t,n){"use strict";var r=n(3018),o=n(9404),i=n(8227),a=o.List,s=o.Map,c=o.OrderedSet,u=o.Record,l=o.Repeat,d=c(),f=function(e){function t(n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=a(l(r.EMPTY,n.length))),e}(n)))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getKey=function(){return this.get("key")},t.prototype.getType=function(){return this.get("type")},t.prototype.getText=function(){return this.get("text")},t.prototype.getCharacterList=function(){return this.get("characterList")},t.prototype.getLength=function(){return this.getText().length},t.prototype.getDepth=function(){return this.get("depth")},t.prototype.getData=function(){return this.get("data")},t.prototype.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():d},t.prototype.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},t.prototype.findStyleRanges=function(e,t){i(this.getCharacterList(),p,e,t)},t.prototype.findEntityRanges=function(e,t){i(this.getCharacterList(),h,e,t)},t}(u({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:s()}));function p(e,t){return e.getStyle()===t.getStyle()}function h(e,t){return e.getEntity()===t.getEntity()}e.exports=f},5224(e,t,n){"use strict";var r=n(3018),o=n(9404),i=n(8227),a=o.List,s=o.Map,c=o.OrderedSet,u=o.Record,l=o.Repeat,d=c(),f={parent:null,characterList:a(),data:s(),depth:0,key:"",text:"",type:"unstyled",children:a(),prevSibling:null,nextSibling:null},p=function(e,t){return e.getStyle()===t.getStyle()},h=function(e,t){return e.getEntity()===t.getEntity()},g=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=a(l(r.EMPTY,n.length))),e}(n)))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getKey=function(){return this.get("key")},t.prototype.getType=function(){return this.get("type")},t.prototype.getText=function(){return this.get("text")},t.prototype.getCharacterList=function(){return this.get("characterList")},t.prototype.getLength=function(){return this.getText().length},t.prototype.getDepth=function(){return this.get("depth")},t.prototype.getData=function(){return this.get("data")},t.prototype.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():d},t.prototype.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},t.prototype.getChildKeys=function(){return this.get("children")},t.prototype.getParentKey=function(){return this.get("parent")},t.prototype.getPrevSiblingKey=function(){return this.get("prevSibling")},t.prototype.getNextSiblingKey=function(){return this.get("nextSibling")},t.prototype.findStyleRanges=function(e,t){i(this.getCharacterList(),p,e,t)},t.prototype.findEntityRanges=function(e,t){i(this.getCharacterList(),h,e,t)},t}(u(f));e.exports=g},7656(e,t,n){"use strict";var r=n(5748),o=n(3018),i=n(6840),a=n(5224),s=n(1608),c=n(2938),u=n(9404),l=n(1381),d=n(6991),f=n(1721),p=u.List,h=u.Record,g=u.Repeat,y=c.draft_tree_data_support?a:i,m=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getEntityMap=function(){return s},t.prototype.getBlockMap=function(){return this.get("blockMap")},t.prototype.getSelectionBefore=function(){return this.get("selectionBefore")},t.prototype.getSelectionAfter=function(){return this.get("selectionAfter")},t.prototype.getBlockForKey=function(e){return this.getBlockMap().get(e)},t.prototype.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getBlockAfter=function(e){return this.getBlockMap().skipUntil(function(t,n){return n===e}).skip(1).first()},t.prototype.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil(function(t,n){return n===e}).skip(1).first()},t.prototype.getBlocksAsArray=function(){return this.getBlockMap().toArray()},t.prototype.getFirstBlock=function(){return this.getBlockMap().first()},t.prototype.getLastBlock=function(){return this.getBlockMap().last()},t.prototype.getPlainText=function(e){return this.getBlockMap().map(function(e){return e?e.getText():""}).join(e||"\n")},t.prototype.getLastCreatedEntityKey=function(){return s.__getLastCreatedEntityKey()},t.prototype.hasText=function(){var e=this.getBlockMap();return e.size>1||e.first().getLength()>0},t.prototype.createEntity=function(e,t,n){return s.__create(e,t,n),this},t.prototype.mergeEntityData=function(e,t){return s.__mergeData(e,t),this},t.prototype.replaceEntityData=function(e,t){return s.__replaceData(e,t),this},t.prototype.addEntity=function(e){return s.__add(e),this},t.prototype.getEntity=function(e){return s.__get(e)},t.createFromBlockArray=function(e,n){var o=Array.isArray(e)?e:e.contentBlocks,i=r.createFromArray(o),a=i.isEmpty()?new l:l.createEmpty(i.first().getKey());return new t({blockMap:i,entityMap:n||s,selectionBefore:a,selectionAfter:a})},t.createFromText=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,r=e.split(n).map(function(e){return e=f(e),new y({key:d(),text:e,type:"unstyled",characterList:p(g(o.EMPTY,e.length))})});return t.createFromBlockArray(r)},t}(h({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}));e.exports=m},4092(e,t,n){"use strict";var r=n(3018),o=n(9404).Map,i={add:function(e,t,n){return a(e,t,n,!0)},remove:function(e,t,n){return a(e,t,n,!1)}};function a(e,t,n,i){var a=e.getBlockMap(),s=t.getStartKey(),c=t.getStartOffset(),u=t.getEndKey(),l=t.getEndOffset(),d=a.skipUntil(function(e,t){return t===s}).takeUntil(function(e,t){return t===u}).concat(o([[u,a.get(u)]])).map(function(e,t){var o,a;s===u?(o=c,a=l):(o=t===s?c:0,a=t===u?l:e.getLength());for(var d,f=e.getCharacterList();o<a;)d=f.get(o),f=f.set(o,i?r.applyStyle(d,n):r.removeStyle(d,n)),o++;return e.set("characterList",f)});return e.merge({blockMap:a.merge(d),selectionBefore:t,selectionAfter:t})}e.exports=i},3387(e,t,n){"use strict";var r=n(9404).Map,o=n(2015),i=n(8003),a=r({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:o.createElement("ul",{className:i("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:o.createElement("ol",{className:i("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:o.createElement("pre",{className:i("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=a},7918(e){"use strict";e.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},5143(e,t,n){"use strict";var r=n(5889),o=n(5748),i=n(3018),a=n(9083),s=n(6840),c=n(7656),u=n(3387),l=n(7918),d=n(3299),f=n(1124),p=n(1608),h=n(9938),g=n(5407),y=n(2242),m=n(9414),b=n(4637),v=n(1381),w=n(7470),S={Editor:d,EditorBlock:f,EditorState:y,CompositeDecorator:a,Entity:p,EntityInstance:g,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:s,ContentState:c,SelectionState:v,AtomicBlockUtils:r,KeyBindingUtil:m,Modifier:h,RichUtils:b,DefaultDraftBlockRenderMap:u,DefaultDraftInlineStyle:l,convertFromHTML:n(4712),convertFromRaw:n(428),convertToRaw:w,genKey:n(6991),getDefaultKeyBinding:n(7811),getVisibleSelectionRect:n(894)};e.exports=S},3299(e,t,n){"use strict";var r=n(5228)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(3387),i=n(7918),a=n(755),s=n(9777),c=n(2474),u=n(7784),l=n(7503),d=n(2242),f=n(2015),p=n(2326),h=n(3529),g=n(2935),y=n(4134),m=n(8003),b=n(9395),v=n(6991),w=n(7811),S=n(7392),x=n(646),E=n(6408),_=y.isBrowser("IE"),O=!_,k={edit:u,composite:a,drag:c,cut:null,render:null},C=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.focus=function(e){var t=r.props.editorState,n=t.getSelection().getHasFocus(),o=p.findDOMNode(r.editor);if(o){var i=g.getScrollParent(o),a=e||S(i),s=a.x,c=a.y;o instanceof HTMLElement||x(!1),o.focus(),i===window?window.scrollTo(s,c):h.setTop(i,c),n||r.update(d.forceSelection(t,t.getSelection()))}},r.blur=function(){var e=p.findDOMNode(r.editor);e instanceof HTMLElement||x(!1),e.blur()},r.setMode=function(e){r._handler=k[e]},r.exitCurrentMode=function(){r.setMode("edit")},r.restoreEditorDOM=function(e){r.setState({contentsKey:r.state.contentsKey+1},function(){r.focus(e)})},r.setClipboard=function(e){r._clipboard=e},r.getClipboard=function(){return r._clipboard},r.update=function(e){r._latestEditorState=e,r.props.onChange(e)},r.onDragEnter=function(){r._dragCount++},r.onDragLeave=function(){r._dragCount--,0===r._dragCount&&r.exitCurrentMode()},r._blockSelectEvents=!1,r._clipboard=null,r._handler=null,r._dragCount=0,r._editorKey=n.editorKey||v(),r._placeholderAccessibilityID="placeholder-"+r._editorKey,r._latestEditorState=n.editorState,r._latestCommittedEditorState=n.editorState,r._onBeforeInput=r._buildHandler("onBeforeInput"),r._onBlur=r._buildHandler("onBlur"),r._onCharacterData=r._buildHandler("onCharacterData"),r._onCompositionEnd=r._buildHandler("onCompositionEnd"),r._onCompositionStart=r._buildHandler("onCompositionStart"),r._onCopy=r._buildHandler("onCopy"),r._onCut=r._buildHandler("onCut"),r._onDragEnd=r._buildHandler("onDragEnd"),r._onDragOver=r._buildHandler("onDragOver"),r._onDragStart=r._buildHandler("onDragStart"),r._onDrop=r._buildHandler("onDrop"),r._onInput=r._buildHandler("onInput"),r._onFocus=r._buildHandler("onFocus"),r._onKeyDown=r._buildHandler("onKeyDown"),r._onKeyPress=r._buildHandler("onKeyPress"),r._onKeyUp=r._buildHandler("onKeyUp"),r._onMouseDown=r._buildHandler("onMouseDown"),r._onMouseUp=r._buildHandler("onMouseUp"),r._onPaste=r._buildHandler("onPaste"),r._onSelect=r._buildHandler("onSelect"),r.getEditorKey=function(){return r._editorKey},r.state={contentsKey:0},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&r(t,n)}}},t.prototype._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},t.prototype._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:E(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return f.createElement(l,e)}return null},t.prototype.render=function(){var e=this,t=this.props,n=t.blockRenderMap,o=t.blockRendererFn,a=t.blockStyleFn,c=t.customStyleFn,u=t.customStyleMap,l=t.editorState,d=t.readOnly,p=t.textAlignment,h=t.textDirectionality,g=m({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===p,"DraftEditor/alignRight":"right"===p,"DraftEditor/alignCenter":"center"===p}),y=this.props.role||"textbox",b="combobox"===y?!!this.props.ariaExpanded:null,v={blockRenderMap:n,blockRendererFn:o,blockStyleFn:a,customStyleMap:r({},i,u),customStyleFn:c,editorKey:this._editorKey,editorState:l,key:"contents"+this.state.contentsKey,textDirectionality:h};return f.createElement("div",{className:g},this._renderPlaceholder(),f.createElement("div",{className:m("DraftEditor/editorContainer"),ref:function(t){return e.editorContainer=t}},f.createElement("div",{"aria-activedescendant":d?null:this.props.ariaActiveDescendantID,"aria-autocomplete":d?null:this.props.ariaAutoComplete,"aria-controls":d?null:this.props.ariaControls,"aria-describedby":this.props.ariaDescribedBy||this._placeholderAccessibilityID,"aria-expanded":d?null:b,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:m({notranslate:!d,"public/DraftEditor/content":!0}),contentEditable:!d,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:function(t){return e.editor=t},role:d?null:y,spellCheck:O&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},f.createElement(s,v))))},t.prototype.componentDidMount=function(){this.setMode("edit"),_&&document.execCommand("AutoUrlDetect",!1,!1)},t.prototype.componentWillUpdate=function(e){this._blockSelectEvents=!0,this._latestEditorState=e.editorState},t.prototype.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestCommittedEditorState=this.props.editorState},t}(f.Component);C.defaultProps={blockRenderMap:o,blockRendererFn:b.thatReturnsNull,blockStyleFn:b.thatReturns(""),keyBindingFn:w,readOnly:!1,spellCheck:!1,stripPastedStyles:!1},e.exports=C},1124(e,t,n){"use strict";var r=n(5228)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(5203),i=n(3885),a=n(2015),s=n(2326),c=n(3529),u=n(2935),l=n(8307),d=n(5822),f=n(8003),p=n(8527),h=n(7392),g=n(1401),y=n(646),m=n(6408),b=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},v=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||b(e.selection,e.block.getKey())&&e.forceSelection},t.prototype.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=s.findDOMNode(this),r=u.getScrollParent(n),o=h(r),i=void 0;if(r===window){var a=p(n);(i=a.y+a.height-g().height)>0&&window.scrollTo(o.x,o.y+i+10)}else n instanceof HTMLElement||y(!1),(i=n.offsetHeight+n.offsetTop-(r.offsetHeight+o.y))>0&&c.setTop(r,c.getTop(r)+i+10)}},t.prototype._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),s=t.getText(),c=this.props.tree.size-1,u=b(this.props.selection,n);return this.props.tree.map(function(f,p){var h=f.get("leaves"),g=h.size-1,y=h.map(function(r,l){var d=i.encode(n,p,l),f=r.get("start"),h=r.get("end");return a.createElement(o,{key:d,offsetKey:d,block:t,start:f,selection:u?e.props.selection:null,forceSelection:e.props.forceSelection,text:s.slice(f,h),styleSet:t.getInlineStyleAt(f),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:p===c&&l===g})}).toArray(),b=f.get("decoratorKey");if(null==b)return y;if(!e.props.decorator)return y;var v=m(e.props.decorator),w=v.getComponentForKey(b);if(!w)return y;var S=v.getPropsForKey(b),x=i.encode(n,p,0),E=s.slice(h.first().get("start"),h.last().get("end")),_=d.getHTMLDirIfDifferent(l.getDirection(E),e.props.direction);return a.createElement(w,r({},S,{contentState:e.props.contentState,decoratedText:E,dir:_,key:x,entityKey:t.getEntityAt(f.get("start")),offsetKey:x}),y)}).toArray()},t.prototype.render=function(){var e=this.props,t=e.direction,n=e.offsetKey,r=f({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===t,"public/DraftStyleDefault/rtl":"RTL"===t});return a.createElement("div",{"data-offset-key":n,className:r},this._renderChildren())},t}(a.Component);e.exports=v},755(e,t,n){"use strict";var r=n(2938),o=n(9938),i=n(2242),a=n(5852),s=n(9927),c=n(3680),u=n(7759),l=!1,d=!1,f="",p={onBeforeInput:function(e,t){f=(f||"")+t.data},onCompositionStart:function(e){d=!0},onCompositionEnd:function(e){l=!1,d=!1,setTimeout(function(){l||p.resolveComposition(e)},20)},onKeyDown:function(e,t){if(!d)return p.resolveComposition(e),void e._onKeyDown(t);t.which!==a.RIGHT&&t.which!==a.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===a.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!d){l=!0;var t=f;f="";var n=i.set(e._latestEditorState,{inCompositionMode:!1}),a=n.getCurrentInlineStyle(),p=s(n.getCurrentContent(),n.getSelection()),h=!t||u(n)||a.size>0||null!==p;if(h&&e.restoreEditorDOM(),e.exitCurrentMode(),t){if(r.draft_handlebeforeinput_composed_text&&e.props.handleBeforeInput&&c(e.props.handleBeforeInput(t,n)))return;var g=o.replaceText(n.getCurrentContent(),n.getSelection(),t,a,p);e.update(i.push(n,g,"insert-characters"))}else h&&e.update(i.set(n,{nativelyRenderedContent:null,forceSelection:!0}))}}};e.exports=p},3659(e,t,n){"use strict";var r=n(5228)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(1124),i=n(3885),a=(n(2242),n(2015)),s=n(8003),c=n(798),u=n(6408),l=function(e,t,n,r){return s({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":4===t,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},t.prototype.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,s=e.blockStyleFn,d=e.customStyleMap,f=e.customStyleFn,p=e.editorState,h=e.editorKey,g=e.textDirectionality,y=p.getCurrentContent(),m=p.getSelection(),b=p.mustForceSelection(),v=p.getDecorator(),w=u(p.getDirectionMap()),S=y.getBlocksAsArray(),x=[],E=null,_=null,O=0;O<S.length;O++){var k=S[O],C=k.getKey(),A=k.getType(),T=n(k),I=void 0,P=void 0,L=void 0;T&&(I=T.component,P=T.props,L=T.editable);var D=g||w.get(C),M=i.encode(C,0,0),j={contentState:y,block:k,blockProps:P,blockStyleFn:s,customStyleMap:d,customStyleFn:f,decorator:v,direction:D,forceSelection:b,key:C,offsetKey:M,selection:m,tree:p.getBlockTree(C)},R=t.get(A)||t.get("unstyled"),N=R.wrapper,F=R.element||t.get("unstyled").element,B=k.getDepth(),U="";s&&(U=s(k)),"li"===F&&(U=c(U,l(A,B,_!==N||null===E||B>E,D)));var K=I||o,H={className:U,"data-block":!0,"data-editor":h,"data-offset-key":M,key:C};void 0!==L&&(H=r({},H,{contentEditable:L,suppressContentEditableWarning:!0}));var z=a.createElement(F,H,a.createElement(K,j));x.push({block:z,wrapperTemplate:N,key:C,offsetKey:M}),E=N?k.getDepth():null,_=N}for(var q=[],V=0;V<x.length;){var G=x[V];if(G.wrapperTemplate){var W=[];do{W.push(x[V].block),V++}while(V<x.length&&x[V].wrapperTemplate===G.wrapperTemplate);var $=a.cloneElement(G.wrapperTemplate,{key:G.key+"-wrap","data-offset-key":G.offsetKey},W);q.push($)}else q.push(G.block),V++}return a.createElement("div",{"data-contents":"true"},q)},t}(a.Component);e.exports=d},9777(e,t,n){"use strict";var r=n(3659);e.exports=r},2474(e,t,n){"use strict";var r=n(2395),o=n(9938),i=n(2242),a=n(8372),s=n(723),c=n(9450),u=n(3680),l=n(6408),d={onDragEnd:function(e){e.exitCurrentMode()},onDrop:function(e,t){var n=new r(t.nativeEvent.dataTransfer),d=e._latestEditorState,p=function(e,t){var n=null,r=null;if("function"==typeof document.caretRangeFromPoint){var o=document.caretRangeFromPoint(e.x,e.y);n=o.startContainer,r=o.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=l(n),r=l(r);var i=l(a(n));return c(t,i,r,i,r)}(t.nativeEvent,d);if(t.preventDefault(),e.exitCurrentMode(),null!=p){var h=n.getFiles();if(h.length>0){if(e.props.handleDroppedFiles&&u(e.props.handleDroppedFiles(p,h)))return;s(h,function(t){t&&e.update(f(d,p,t))})}else{var g=e._internalDrag?"internal":"external";e.props.handleDrop&&u(e.props.handleDrop(p,n,g))||(e._internalDrag?e.update(function(e,t){var n=o.moveText(e.getCurrentContent(),e.getSelection(),t);return i.push(e,n,"insert-fragment")}(d,p)):e.update(f(d,p,n.getText())))}}}};function f(e,t,n){var r=o.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return i.push(e,r,"insert-fragment")}e.exports=d},7784(e,t,n){"use strict";var r={onBeforeInput:n(3722),onBlur:n(8058),onCompositionStart:n(7141),onCopy:n(3694),onCut:n(3919),onDragOver:n(6127),onDragStart:n(4861),onFocus:n(4447),onInput:n(5091),onKeyDown:n(8136),onPaste:n(2208),onSelect:n(6207)};e.exports=r},5203(e,t,n){"use strict";var r=n(5228),o=n(6268),i=n(2015),a=n(2326),s=n(646),c=n(4660),u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,o=t.text,i=n.getKey(),u=r+o.length;if(e.hasEdgeWithin(i,r,u)){var l=a.findDOMNode(this);l||s(!1);var d=l.firstChild;d||s(!1);var f=void 0;d.nodeType===Node.TEXT_NODE?f=d:"BR"===d.tagName?f=l:(f=d.firstChild)||s(!1),c(e,f,i,r,u)}}},t.prototype.shouldComponentUpdate=function(e){var t=a.findDOMNode(this.leaf);return t||s(!1),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},t.prototype.componentDidUpdate=function(){this._setSelection()},t.prototype.componentDidMount=function(){this._setSelection()},t.prototype.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var a=this.props,s=a.customStyleMap,c=a.customStyleFn,u=a.offsetKey,l=a.styleSet,d=l.reduce(function(e,t){var n={},o=s[t];return void 0!==o&&e.textDecoration!==o.textDecoration&&(n.textDecoration=[e.textDecoration,o.textDecoration].join(" ").trim()),r(e,o,n)},{});if(c){var f=c(l,t);d=r(d,f)}return i.createElement("span",{"data-offset-key":u,ref:function(t){return e.leaf=t},style:d},i.createElement(o,null,n))},t}(i.Component);e.exports=u},7503(e,t,n){"use strict";var r=n(2015),o=n(8003),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},t.prototype.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=o({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return r.createElement("div",{className:t},r.createElement("div",{className:o("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},t}(r.Component);e.exports=i},6268(e,t,n){"use strict";var r=n(2015),o=n(2326),i=n(4134),a=n(646),s=i.isBrowser("IE <= 11"),c=s?r.createElement("span",{key:"A","data-text":"true"},"\n"):r.createElement("br",{key:"A","data-text":"true"}),u=s?r.createElement("span",{key:"B","data-text":"true"},"\n"):r.createElement("br",{key:"B","data-text":"true"}),l=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r._forceFlag=!1,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){var t=o.findDOMNode(this),n=""===e.children;return t instanceof Element||a(!1),n?!function(e){return s?"\n"===e.textContent:"BR"===e.tagName}(t):t.textContent!==e.children},t.prototype.componentDidMount=function(){this._forceFlag=!this._forceFlag},t.prototype.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},t.prototype.render=function(){return""===this.props.children?this._forceFlag?c:u:r.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true"},this.props.children)},t}(r.Component);e.exports=l},1608(e,t,n){"use strict";var r=n(5228)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(5407),i=n(9404),a=n(646),s=(0,i.Map)(),c=0;function u(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var l={getLastCreatedEntityKey:function(){return u("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),l.__getLastCreatedEntityKey()},create:function(e,t,n){return u("DraftEntity.create","contentState.createEntity"),l.__create(e,t,n)},add:function(e){return u("DraftEntity.add","contentState.addEntity"),l.__add(e)},get:function(e){return u("DraftEntity.get","contentState.getEntity"),l.__get(e)},mergeData:function(e,t){return u("DraftEntity.mergeData","contentState.mergeEntityData"),l.__mergeData(e,t)},replaceData:function(e,t){return u("DraftEntity.replaceData","contentState.replaceEntityData"),l.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return""+c},__create:function(e,t,n){return l.__add(new o({type:e,mutability:t,data:n||{}}))},__add:function(e){var t=""+ ++c;return s=s.set(t,e),t},__get:function(e){var t=s.get(e);return t||a(!1),t},__mergeData:function(e,t){var n=l.__get(e),o=r({},n.getData(),t),i=n.set("data",o);return s=s.set(e,i),i},__replaceData:function(e,t){var n=l.__get(e).set("data",t);return s=s.set(e,n),n}};e.exports=l},5407(e,t,n){"use strict";var r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getType=function(){return this.get("type")},t.prototype.getMutability=function(){return this.get("mutability")},t.prototype.getData=function(){return this.get("data")},t}((0,n(9404).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));e.exports=r},8382(e){"use strict";e.exports={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map(function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e});for(var a,s=r,c=null,u=null,l=0;l<i.length;l++){if(e<(a=s+i[l].length)&&s<t)null!==c||(c=s),u=a;else if(null!==c)break;s=a}var d=r+n.length,f=c===r,p=u===d;return(!f&&p||f&&!p)&&("forward"===o?u!==d&&u++:c!==r&&c--),{start:c,end:u}}}},8360(e){"use strict";e.exports={draft_killswitch_allow_nontextnodes:!1,draft_segmented_entities_behavior:!1,draft_handlebeforeinput_composed_text:!1,draft_tree_data_support:!1}},2938(e,t,n){"use strict";var r=n(8360);e.exports=r},7204(e){"use strict";e.exports={logSelectionStateFailure:function(){return null}}},9938(e,t,n){"use strict";var r=n(3018),o=n(4092),i=n(2938),a=n(9404),s=n(6416),c=n(508),u=n(866),l=n(9127),d=n(3136),f=n(646),p=n(5462),h=n(6044),g=n(4435),y=n(841),m=a.OrderedSet,b={replaceText:function(e,t,n,o,i){var a=h(e,t),s=g(a,t),c=r.create({style:o||m(),entity:i||null});return d(s,s.getSelectionAfter(),n,c)},insertText:function(e,t,n,r,o){return t.isCollapsed()||f(!1),b.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=u(e,t),o=b.removeRange(e,t,"backward");return b.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=h(e,t),o=g(r,t);return l(o,o.getSelectionAfter(),n)},removeRange:function(e,t,n){var r,o,a=void 0,s=void 0;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),a=e.getBlockForKey(r),s=e.getBlockForKey(o);var u=t.getStartOffset(),l=t.getEndOffset(),d=a.getEntityAt(u),f=s.getEntityAt(l-1);if(r===o&&d&&d===f){var p=c(e.getEntityMap(),a,s,t,n);return g(e,p)}var y=t;i.draft_segmented_entities_behavior&&(y=c(e.getEntityMap(),a,s,t,n));var m=h(e,y);return g(m,y)},splitBlock:function(e,t){var n=h(e,t),r=g(n,t);return y(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return o.add(e,t,n)},removeInlineStyle:function(e,t,n){return o.remove(e,t,n)},setBlockType:function(e,t,n){return p(e,t,function(e){return e.merge({type:n,depth:0})})},setBlockData:function(e,t,n){return p(e,t,function(e){return e.merge({data:n})})},mergeBlockData:function(e,t,n){return p(e,t,function(e){return e.merge({data:e.getData().merge(n)})})},applyEntity:function(e,t,n){var r=h(e,t);return s(r,t,n)}};e.exports=b},3885(e){"use strict";var t={encode:function(e,t,n){return e+"-"+t+"-"+n},decode:function(e){var t=e.split("-"),n=t[0],r=t[1],o=t[2];return{blockKey:n,decoratorKey:parseInt(r,10),leafKey:parseInt(o,10)}}};e.exports=t},46(e,t,n){"use strict";var r=n(5228)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=(n(3018),n(6840)),i=n(5224),a=n(2938),s=n(9404),c=n(4712),u=n(6991),l=n(9248),d=n(1721),f=s.List,p=s.Repeat,h=a.draft_tree_data_support,g=h?i:o,y={processHTML:function(e,t){return c(e,l,t)},processText:function(e,t,n){return e.reduce(function(e,o,i){o=d(o);var a=u(),s={key:a,type:n,text:o,characterList:f(p(t,o.length))};if(h&&0!==i){var c=i-1,l=e[c]=e[c].merge({nextSibling:a});s=r({},s,{prevSibling:l.getKey()})}return e.push(new g(s)),e},[])}};e.exports=y},1617(e,t,n){"use strict";var r="['‘’]",o="\\s|(?![_])"+n(7405).getPunctuation(),i=new RegExp("^(?:"+o+")*(?:"+r+"|(?!"+o+").)*(?:(?!"+o+").)"),a=new RegExp("(?:(?!"+o+").)(?:"+r+"|(?!"+o+").)*(?:"+o+")*$");function s(e,t){var n=t?a.exec(e):i.exec(e);return n?n[0]:e}var c={getBackward:function(e){return s(e,!0)},getForward:function(e){return s(e,!1)}};e.exports=c},1439(e){"use strict";var t={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=t},2396(e,t,n){"use strict";var r=n(5228)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(646),i=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},a={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||o(!1),Array.isArray(t)&&t.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var r=n.pop();t(r);var i=r.children;Array.isArray(i)||o(!1),n=n.concat([].concat(i.reverse()))}}(t,function(e){var t=r({},e);i(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map(function(t){return t.type===e.type?r({},t,{depth:(e.depth||0)+1}):t}))}(e)),delete t.children,n.push(t)}),e.blocks=n,r({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t={},n=[];return e.blocks.forEach(function(e){var a=i(e),s=e.depth||0,c=r({},e,{children:[]});if(!a)return t={},void n.push(c);if(t[s]=c,s>0){var u=t[s-1];return u||o(!1),void u.children.push(c)}n.push(c)}),r({},e,{blocks:n})}};e.exports=a},3914(e,t,n){"use strict";var r,o=n(9404),i=n(1708),a=n(6408),s=o.OrderedMap,c={getDirectionMap:function(e,t){r?r.reset():r=new i;var n=e.getBlockMap(),c=n.valueSeq().map(function(e){return a(r).getDirection(e.getText())}),u=s(n.keySeq().zip(c));return null!=t&&o.is(t,u)?t:u}};e.exports=c},2242(e,t,n){"use strict";var r=n(5228)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(9981),i=n(7656),a=n(3914),s=n(9404),c=n(1381),u=s.OrderedSet,l=s.Record,d=s.Stack,f=l({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:d(),selection:null,treeMap:null,undoStack:d()}),p=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._immutable=t}return e.createEmpty=function(t){return e.createWithContent(i.createFromText(""),t)},e.createWithContent=function(t,n){var r=t.getBlockMap().first().getKey();return e.create({currentContent:t,undoStack:d(),redoStack:d(),decorator:n||null,selection:c.createEmpty(r)})},e.create=function(t){var n=t.currentContent,o=t.decorator,i=r({},t,{treeMap:g(n,o),directionMap:a.getDirectionMap(n)});return new e(new f(i))},e.set=function(t,n){return new e(t.getImmutable().withMutations(function(e){var r=e.get("decorator"),i=r;null===n.decorator?i=null:n.decorator&&(i=n.decorator);var a=n.currentContent||t.getCurrentContent();if(i!==r){var s,c=e.get("treeMap");return s=i&&r?function(e,t,n,r,i){return n.merge(t.toSeq().filter(function(t){return r.getDecorations(t,e)!==i.getDecorations(t,e)}).map(function(t){return o.generate(e,t,r)}))}(a,a.getBlockMap(),c,i,r):g(a,i),void e.merge({decorator:i,treeMap:s,nativelyRenderedContent:null})}a!==t.getCurrentContent()&&e.set("treeMap",function(e,t,n,r){var i=e.getCurrentContent().set("entityMap",n),a=i.getBlockMap();return e.getImmutable().get("treeMap").merge(t.toSeq().filter(function(e,t){return e!==a.get(t)}).map(function(e){return o.generate(i,e,r)}))}(t,a.getBlockMap(),a.getEntityMap(),i)),e.merge(n)}))},e.prototype.toJS=function(){return this.getImmutable().toJS()},e.prototype.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.prototype.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.prototype.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.prototype.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.prototype.getSelection=function(){return this.getImmutable().get("selection")},e.prototype.getDecorator=function(){return this.getImmutable().get("decorator")},e.prototype.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.prototype.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.prototype.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.prototype.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.prototype.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},e.setInlineStyleOverride=function(t,n){return e.set(t,{inlineStyleOverride:n})},e.prototype.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);return r>0?o.getInlineStyleAt(r-1):o.getLength()?o.getInlineStyleAt(0):y(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);return r<o.getLength()?o.getInlineStyleAt(r):r>0?o.getInlineStyleAt(r-1):y(e,n)}(t,n)},e.prototype.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.prototype.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.prototype.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.prototype.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(e,t){return h(e,t,!1)},e.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),h(e,t,!0)},e.moveSelectionToEnd=function(t){var n=t.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return e.acceptSelection(t,new c({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},e.moveFocusToEnd=function(t){var n=e.moveSelectionToEnd(t);return e.forceSelection(n,n.getSelection())},e.push=function(t,n,r){if(t.getCurrentContent()===n)return t;var o="insert-characters"!==r,i=a.getDirectionMap(n,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var s=t.getSelection(),c=t.getCurrentContent(),u=t.getUndoStack(),l=n;s!==c.getSelectionAfter()||function(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(t,r)?(u=u.push(c),l=l.set("selectionBefore",s)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(l=l.set("selectionBefore",c.getSelectionBefore()));var f=t.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(f=null);var p={currentContent:l,directionMap:i,undoStack:u,redoStack:d(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:f};return e.set(t,p)},e.undo=function(t){if(!t.getAllowUndo())return t;var n=t.getUndoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),i=a.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:t.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var n=t.getRedoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),i=a.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,undoStack:t.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.prototype.getImmutable=function(){return this._immutable},e}();function h(e,t,n){return p.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function g(e,t){return e.getBlockMap().map(function(n){return o.generate(e,n,t)}).toOrderedMap()}function y(e,t){var n=e.getBlockMap().reverse().skipUntil(function(e,n){return n===t}).skip(1).skipUntil(function(e,t){return e.getLength()}).first();return n?n.getInlineStyleAt(n.getLength()-1):u()}e.exports=p},9414(e,t,n){"use strict";var r=n(4134).isPlatform("Mac OS X"),o={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return r&&e.altKey},hasCommandModifier:function(e){return r?!!e.metaKey&&!e.altKey:o.isCtrlKeyCommand(e)}};e.exports=o},4637(e,t,n){"use strict";var r=n(9938),o=n(2242),i=(n(1381),n(286)),a=n(6408),s={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some(function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()})},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t){switch(t){case"bold":return s.toggleInlineStyle(e,"BOLD");case"italic":return s.toggleInlineStyle(e,"ITALIC");case"underline":return s.toggleInlineStyle(e,"UNDERLINE");case"code":return s.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return s.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return s.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=r.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=o.push(e,t,"insert-characters");return o.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockBefore(r);if(i&&"atomic"===i.getType()){var a=n.getBlockMap().delete(i.getKey()),c=n.merge({blockMap:a,selectionAfter:t});if(c!==n)return o.push(e,c,"remove-range")}var u=s.tryToRemoveBlockStyle(e);return u?o.push(e,u,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),i=t.getStartKey(),a=n.getBlockForKey(i).getLength();if(t.getStartOffset()<a)return null;var s=n.getBlockAfter(i);if(!s||"atomic"!==s.getType())return null;var c=t.merge({focusKey:s.getKey(),focusOffset:s.getLength()}),u=r.removeRange(n,c,"forward");return u!==n?o.push(e,u,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),a=r.getAnchorKey();if(a!==r.getFocusKey())return t;var s=t.getCurrentContent(),c=s.getBlockForKey(a),u=c.getType();if("unordered-list-item"!==u&&"ordered-list-item"!==u)return t;e.preventDefault();var l=s.getBlockBefore(a);if(!l)return t;var d=l.getType();if("unordered-list-item"!==d&&"ordered-list-item"!==d)return t;var f=c.getDepth();if(!e.shiftKey&&f===n)return t;n=Math.min(l.getDepth()+1,n);var p=i(s,r,e.shiftKey?-1:1,n);return o.push(t,p,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),i=n.getStartKey(),s=n.getEndKey(),c=e.getCurrentContent(),u=n;if(i!==s&&0===n.getEndOffset()){var l=a(c.getBlockBefore(s));s=l.getKey(),u=u.merge({anchorKey:i,anchorOffset:n.getStartOffset(),focusKey:s,focusOffset:l.getLength(),isBackward:!1})}if(c.getBlockMap().skipWhile(function(e,t){return t!==i}).reverse().skipWhile(function(e,t){return t!==s}).some(function(e){return"atomic"===e.getType()}))return e;var d=c.getBlockForKey(i).getType()===t?"unstyled":t;return o.push(e,r.setBlockType(c,u,d),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?s.toggleBlockType(e,"code-block"):s.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),i=e.getCurrentInlineStyle();if(n.isCollapsed())return o.setInlineStyleOverride(e,i.has(t)?i.remove(t):i.add(t));var a,s=e.getCurrentContent();return a=i.has(t)?r.removeInlineStyle(s,n,t):r.applyInlineStyle(s,n,t),o.push(e,a,"change-inline-style")},toggleLink:function(e,t,n){var i=r.applyEntity(e.getCurrentContent(),t,n);return o.push(e,i,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var o=t.getAnchorKey(),i=e.getCurrentContent(),a=i.getBlockForKey(o),s=i.getFirstBlock();if(a.getLength()>0&&a!==s)return null;var c=a.getType(),u=i.getBlockBefore(o);if("code-block"===c&&u&&"code-block"===u.getType()&&0!==u.getLength())return null;if("unstyled"!==c)return r.setBlockType(i,t,"unstyled")}return null}};e.exports=s},5170(e,t,n){"use strict";var r=n(9938),o=n(2242),i=n(866),a=n(6408),s=null,c={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),c=null;if(n.isCollapsed()){var u=n.getAnchorKey(),l=t.getBlockForKey(u).getLength();if(l===n.getAnchorOffset())return e;c=n.set("focusOffset",l)}else c=n;c=a(c),s=i(t,c);var d=r.removeRange(t,c,"forward");return d===t?e:o.push(e,d,"remove-range")},paste:function(e){if(!s)return e;var t=r.replaceWithFragment(e.getCurrentContent(),e.getSelection(),s);return o.push(e,t,"insert-fragment")}};e.exports=c},1381(e,t,n){"use strict";var r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},t.prototype.getAnchorKey=function(){return this.get("anchorKey")},t.prototype.getAnchorOffset=function(){return this.get("anchorOffset")},t.prototype.getFocusKey=function(){return this.get("focusKey")},t.prototype.getFocusOffset=function(){return this.get("focusOffset")},t.prototype.getIsBackward=function(){return this.get("isBackward")},t.prototype.getHasFocus=function(){return this.get("hasFocus")},t.prototype.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset();return t<=this.getEndOffset()&&i<=n}if(e!==r&&e!==o)return!1;var a=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=a&&n>=a},t.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},t.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},t.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},t.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},t.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(e){return new t({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},t}((0,n(9404).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=r},286(e){"use strict";e.exports=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===i}).concat([[i,a.get(i)]]).map(function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)});return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},1952(e,t,n){"use strict";var r=n(3018);e.exports=function(e,t,n,o){for(var i=e.getCharacterList();t<n;)i=i.set(t,r.applyEntity(i.get(t),o)),t++;return e.set("characterList",i)}},6416(e,t,n){"use strict";var r=n(9404),o=n(1952);e.exports=function(e,t,n){var i=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),c=t.getEndKey(),u=t.getEndOffset(),l=i.skipUntil(function(e,t){return t===a}).takeUntil(function(e,t){return t===c}).toOrderedMap().merge(r.OrderedMap([[c,i.get(c)]])).map(function(e,t){var r=t===a?s:0,i=t===c?u:e.getLength();return o(e,r,i,n)});return e.merge({blockMap:i.merge(l),selectionBefore:t,selectionAfter:t})}},7470(e,t,n){"use strict";var r=n(5228)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(6840),i=n(5224),a=n(1439),s=n(7862),c=n(702),u=n(646),l=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:c(e),entityRanges:s(e,t),data:e.getData().toObject()}};e.exports=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach(function(t,n){var r=e.getEntity(a.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}}),{blocks:n,entityMap:o}}(e,t=function(e,t){var n=t.entityMap,s=[],c={},d={},f=0;return e.getBlockMap().forEach(function(e){e.findEntityRanges(function(e){return null!==e.getEntity()},function(t){var r=e.getEntityAt(t),o=a.stringify(r);d[o]||(d[o]=r,n[o]=""+f,f++)}),function(e,t,n,a){if(e instanceof o)n.push(l(e,t));else{e instanceof i||u(!1);var s=e.getParentKey(),c=a[e.getKey()]=r({},l(e,t),{children:[]});s?a[s].children.push(c):n.push(c)}}(e,n,s,c)}),{blocks:s,entityMap:n}}(e,t)),t}},4712(e,t,n){"use strict";var r,o=i||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(5228);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=n(3018),c=n(6840),u=n(5224),l=n(3387),d=n(1608),f=n(2938),p=n(9404),h=n(9404).Set,g=n(5324),y=n(8003),m=n(6991),b=n(9248),v=n(646),w=n(1721),S=f.draft_tree_data_support,x=p.List,E=p.OrderedSet,_=" ",O=new RegExp("\r","g"),k=new RegExp("\n","g"),C=new RegExp(" ","g"),A=new RegExp(" ?","g"),T=new RegExp("​?","g"),I=["bold","bolder","500","600","700","800","900"],P=["light","lighter","100","200","300","400"],L={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},D=(a(r={},y("public/DraftStyleDefault/depth0"),0),a(r,y("public/DraftStyleDefault/depth1"),1),a(r,y("public/DraftStyleDefault/depth2"),2),a(r,y("public/DraftStyleDefault/depth3"),3),a(r,y("public/DraftStyleDefault/depth4"),4),r),M=["className","href","rel","target","title"],j=["alt","className","height","src","width"],R=void 0,N={text:"",inlines:[],entities:[],blocks:[]},F={children:x(),depth:0,key:"",type:""},B=function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null},U=function(e,t,n){var r=n.filter(function(t){return t.element===e||t.wrapper===e||t.aliasedElements&&t.aliasedElements.some(function(t){return t===e})}).keySeq().toSet().toArray().sort();switch(r.length){case 0:return"unstyled";case 1:return r[0];default:return function(e,t,n){for(var r=0;r<n.length;r++){var o=n[r](e,t);if(o)return o}return null}(e,t,[B])||"unstyled"}},K=function(e,t,n){var r=e.text.slice(-1),o=t.text.slice(0,1);if("\r"!==r||"\r"!==o||n||(e.text=e.text.slice(0,-1),e.inlines.pop(),e.entities.pop(),e.blocks.pop()),"\r"===r){if(t.text===_||"\n"===t.text)return e;o!==_&&"\n"!==o||(t.text=t.text.slice(1),t.inlines.shift(),t.entities.shift())}return{text:e.text+t.text,inlines:e.inlines.concat(t.inlines),entities:e.entities.concat(t.entities),blocks:e.blocks.concat(t.blocks)}},H=function(e){e instanceof HTMLAnchorElement||v(!1);var t=e.protocol;return"http:"===t||"https:"===t||"mailto:"===t},z=function(e){var t=new Array(1);return e&&(t[0]=e),o({},N,{text:_,inlines:[E()],entities:t})},q=function(){return o({},N,{text:"\n",inlines:[E()],entities:new Array(1)})},V=function(){return o({},F,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})},G=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{text:"\r",inlines:[E()],entities:new Array(1),blocks:[V({parent:n,key:m(),type:e,depth:Math.max(0,Math.min(4,t))})]}},W=function e(t,n,r,i,a,s,c,u,l,f){var p=R,h=n.nodeName.toLowerCase(),y=t,m="unstyled",b=!1,v=a&&U(a,i,u),w=o({},N),x=void 0;if("#text"===h){var E=n.textContent,O=E.trim();if(i&&""===O&&n.parentElement){var C=n.parentElement.nodeName.toLowerCase();if("ol"===C||"ul"===C)return{chunk:o({},N),entityMap:t}}return""===O&&"pre"!==a?{chunk:z(l),entityMap:t}:("pre"!==a&&(E=E.replace(k,_)),R=h,{chunk:{text:E,inlines:Array(E.length).fill(r),entities:Array(E.length).fill(l),blocks:[]},entityMap:t})}if(R=h,"br"===h)return"br"!==p||a&&"unstyled"!==v?{chunk:q(),entityMap:t}:{chunk:G("unstyled",c,f),entityMap:t};if("img"===h&&n instanceof HTMLImageElement&&n.attributes.getNamedItem("src")&&n.attributes.getNamedItem("src").value){var A=n,T={};j.forEach(function(e){var t=A.getAttribute(e);t&&(T[e]=t)}),n.textContent="📷",l=d.__create("IMAGE","MUTABLE",T||{})}r=function(e,t,n){var r=L[e];if(r)n=n.add(r).toOrderedSet();else if(t instanceof HTMLElement){var o=t;n=n.withMutations(function(e){var t=o.style.fontWeight,n=o.style.fontStyle,r=o.style.textDecoration;I.indexOf(t)>=0?e.add("BOLD"):P.indexOf(t)>=0&&e.remove("BOLD"),"italic"===n?e.add("ITALIC"):"normal"===n&&e.remove("ITALIC"),"underline"===r&&e.add("UNDERLINE"),"line-through"===r&&e.add("STRIKETHROUGH"),"none"===r&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}).toOrderedSet()}return n}(h,n,r),"ul"!==h&&"ol"!==h||(i&&(c+=1),i=h),!S&&"li"===h&&n instanceof HTMLElement&&(c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(D).some(function(n){e.classList.contains(n)&&(t=D[n])}),t}(n,c));var F=U(h,i,u),B=i&&"li"===a&&"li"===h,V=(!a||S)&&-1!==s.indexOf(h);(B||V)&&(x=(w=G(F,c,f)).blocks[0].key,a=h,b=!S),B&&(m="ul"===i?"unordered-list-item":"ordered-list-item");var W=n.firstChild;null!=W&&(h=W.nodeName.toLowerCase());for(var $=null;W;){W instanceof HTMLAnchorElement&&W.href&&H(W)?function(){var e=W,t={};M.forEach(function(n){var r=e.getAttribute(n);r&&(t[n]=r)}),t.url=new g(e.href).toString(),$=d.__create("LINK","MUTABLE",t||{})}():$=void 0;var Y=e(y,W,r,i,a,s,c,u,$||l,S?x:null),X=Y.chunk;y=Y.entityMap,w=K(w,X,S);var Z=W.nextSibling;!f&&Z&&s.indexOf(h)>=0&&a&&(w=K(w,q())),Z&&(h=Z.nodeName.toLowerCase()),W=Z}return b&&(w=K(w,G(m,c,f))),{chunk:w,entityMap:y}},$=function(e,t,n,r){e=e.trim().replace(O,"").replace(C,_).replace(A,"").replace(T,"");var i=function(e){var t=e.get("unstyled").element,n=h([]);return e.forEach(function(e){e.aliasedElements&&e.aliasedElements.forEach(function(e){n=n.add(e)}),n=n.add(e.element)}),n.filter(function(e){return e&&e!==t}).toArray().sort()}(n),a=t(e);if(!a)return null;R=null;var s=function(e,t){return t.some(function(t){return-1!==e.indexOf("<"+t)})}(e,i)?i:["div"],c=W(r,a,E(),"ul",null,s,-1,n),u=c.chunk,l=c.entityMap;return 0===u.text.indexOf("\r")&&(u={text:u.text.slice(1),inlines:u.inlines.slice(1),entities:u.entities.slice(1),blocks:u.blocks}),"\r"===u.text.slice(-1)&&(u.text=u.text.slice(0,-1),u.inlines=u.inlines.slice(0,-1),u.entities=u.entities.slice(0,-1),u.blocks.pop()),0===u.blocks.length&&u.blocks.push(o({},N,{type:"unstyled",depth:0})),u.text.split("\r").length===u.blocks.length+1&&u.blocks.unshift({type:"unstyled",depth:0}),{chunk:u,entityMap:l}};e.exports=function(e){var t=$(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:b,arguments.length>2&&void 0!==arguments[2]?arguments[2]:l,d);if(null==t)return null;var n=t.chunk,r=t.entityMap,o=function(e){if(!e||!e.text||!Array.isArray(e.blocks))return null;var t=0,n=e.blocks,r=e.inlines,o=e.entities,i=S?u:c;return e.text.split("\r").reduce(function(e,a,c){a=w(a);var l=n[c],d=t+a.length,f=r.slice(t,d),p=o.slice(t,d),h=x(f.map(function(e,t){var n={style:e,entity:null};return p[t]&&(n.entity=p[t]),s.create(n)}));t=d+1;var g=l.depth,y=l.type,b=l.parent,v=l.key||m(),S=null;if(b){var E=e.cacheRef[b],_=e.contentBlocks[E];if(_.getChildKeys().isEmpty()&&_.getText()){var O=_.getCharacterList(),k=_.getText();S=m();var C=new u({key:S,text:k,characterList:O,parent:b,nextSibling:v});e.contentBlocks.push(C),_=_.withMutations(function(e){e.set("characterList",x()).set("text","").set("children",_.children.push(C.getKey()))})}e.contentBlocks[E]=_.set("children",_.children.push(v))}var A=new i({key:v,parent:b,type:y,depth:g,text:a,characterList:h,prevSibling:S||(0===c||n[c-1].parent!==b?null:n[c-1].key),nextSibling:c===n.length-1||n[c+1].parent!==b?null:n[c+1].key});return e.contentBlocks.push(A),e.cacheRef[A.key]=c,e},{cacheRef:{},contentBlocks:[]}).contentBlocks}(n);return{contentBlocks:o,entityMap:r}}},428(e,t,n){"use strict";var r=n(5228)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(6840),i=n(5224),a=n(7656),s=n(1608),c=n(2938),u=n(2396),l=n(9404),d=n(1381),f=n(803),p=n(2401),h=n(3830),g=n(6991),y=n(646),m=c.draft_tree_data_support,b=l.List,v=l.Map,w=l.OrderedMap,S=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||g(),data:v(o),characterList:x(e,t)}},x=function(e,t){var n=e.text,o=e.entityRanges,i=e.inlineStyleRanges,a=o||[];return f(h(n,i||[]),p(n,a.filter(function(e){return t.hasOwnProperty(e.key)}).map(function(e){return r({},e,{key:t[e.key]})})))},E=function(e){return r({},e,{key:e.key||g()})},_=function(e,t,n){var o=t.map(function(e){return r({},e,{parentRef:n})});return e.concat(o.reverse())};e.exports=function(e){Array.isArray(e.blocks)||y(!1);var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach(function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=s.__create(o,i,a||{})}),n}(e),n=function(e,t){var n=Array.isArray(e.blocks[0].children),a=m&&!n?u.fromRawStateToRawTreeState(e).blocks:e.blocks;return m?function(e,t){return e.map(E).reduce(function(n,o,a){Array.isArray(o.children)||y(!1);var s=o.children.map(E),c=new i(r({},S(o,t),{prevSibling:0===a?null:e[a-1].key,nextSibling:a===e.length-1?null:e[a+1].key,children:b(s.map(function(e){return e.key}))}));n=n.set(c.getKey(),c);for(var u=_([],s,c);u.length>0;){var l=u.pop(),d=l.parentRef,f=d.getChildKeys(),p=f.indexOf(l.key),h=Array.isArray(l.children);if(!h){h||y(!1);break}var g=l.children.map(E),m=new i(r({},S(l,t),{parent:d.getKey(),children:b(g.map(function(e){return e.key})),prevSibling:0===p?null:f.get(p-1),nextSibling:p===f.size-1?null:f.get(p+1)}));n=n.set(m.getKey(),m),u=_(u,g,m)}return n},w())}(a,t):function(e,t){return w(e.map(function(e){var n=new o(S(e,t));return[n.getKey(),n]}))}(n?u.fromRawTreeStateToRawState(e).blocks:a,t)}(e,t),c=n.isEmpty()?new d:d.createEmpty(n.first().getKey());return new a({blockMap:n,entityMap:t,selectionBefore:c,selectionAfter:c})}},803(e,t,n){"use strict";var r=n(3018),o=n(9404).List;e.exports=function(e,t){var n=e.map(function(e,n){var o=t[n];return r.create({style:e,entity:o})});return o(n)}},2401(e,t,n){"use strict";var r=n(580).substr;e.exports=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach(function(t){for(var o=r(e,0,t.offset).length,i=o+r(e,t.offset,t.length).length,a=o;a<i;a++)n[a]=t.key}),n}},3830(e,t,n){"use strict";var r=n(9404).OrderedSet,o=n(580).substr,i=r();e.exports=function(e,t){var n=Array(e.length).fill(i);return t&&t.forEach(function(t){for(var r=o(e,0,t.offset).length,i=r+o(e,t.offset,t.length).length;r<i;)n[r]=n[r].add(t.style),r++}),n}},3722(e,t,n){"use strict";var r=n(9981),o=n(9938),i=n(2242),a=n(4134),s=n(9927),c=n(3680),u=n(7759),l=n(6408),d=n(9765),f=a.isBrowser("Firefox");function p(e,t,n,r){var a=o.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return i.push(e,a,"insert-characters")}e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,o=t.data;if(o)if(e.props.handleBeforeInput&&c(e.props.handleBeforeInput(o,n)))t.preventDefault();else{var a=n.getSelection(),h=a.getStartOffset(),g=a.getEndOffset(),y=a.getAnchorKey();if(!a.isCollapsed())return t.preventDefault(),void(o===n.getCurrentContent().getPlainText().slice(h,g)?e.update(i.forceSelection(n,a.merge({focusOffset:g}))):e.update(p(n,o,n.getCurrentInlineStyle(),s(n.getCurrentContent(),n.getSelection()))));var m,b=p(n,o,n.getCurrentInlineStyle(),s(n.getCurrentContent(),n.getSelection())),v=!1;if(v||(v=u(e._latestCommittedEditorState)),!v){var w=globalThis.getSelection();if(w.anchorNode&&w.anchorNode.nodeType===Node.TEXT_NODE){var S=w.anchorNode.parentNode;v="SPAN"===S.nodeName&&S.firstChild.nodeType===Node.TEXT_NODE&&-1!==S.firstChild.nodeValue.indexOf("\t")}}if(v||(v=r.getFingerprint(n.getBlockTree(y))!==r.getFingerprint(b.getBlockTree(y))),v||(m=o,v=f&&("'"==m||"/"==m)),v||(v=l(b.getDirectionMap()).get(y)!==l(n.getDirectionMap()).get(y)),v)return t.preventDefault(),void e.update(b);b=i.set(b,{nativelyRenderedContent:b.getCurrentContent()}),e._pendingStateFromBeforeInput=b,d(function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)})}}},8058(e,t,n){"use strict";var r=n(2242),o=n(4909),i=n(9758);e.exports=function(e,t){if(i()===document.body){var n=globalThis.getSelection(),a=e.editor;1===n.rangeCount&&o(a,n.anchorNode)&&o(a,n.focusNode)&&n.removeAllRanges()}var s=e._latestEditorState,c=s.getSelection();if(c.getHasFocus()){var u=c.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(r.acceptSelection(s,u))}}},7141(e,t,n){"use strict";var r=n(2242);e.exports=function(e,t){e.setMode("composite"),e.update(r.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}},3694(e,t,n){"use strict";var r=n(1296);e.exports=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(r(e._latestEditorState))}},3919(e,t,n){"use strict";var r=n(9938),o=n(2242),i=n(2935),a=n(1296),s=n(7392);e.exports=function(e,t){var n=e._latestEditorState,c=n.getSelection(),u=t.target,l=void 0;if(c.isCollapsed())t.preventDefault();else{u instanceof Node&&(l=s(i.getScrollParent(u)));var d=a(n);e.setClipboard(d),e.setMode("cut"),setTimeout(function(){e.restoreEditorDOM(l),e.exitCurrentMode(),e.update(function(e){var t=r.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return o.push(e,t,"remove-range")}(n))},0)}}},6127(e){"use strict";e.exports=function(e,t){e._internalDrag=!1,e.setMode("drag"),t.preventDefault()}},4861(e){"use strict";e.exports=function(e){e._internalDrag=!0,e.setMode("drag")}},4447(e,t,n){"use strict";var r=n(2242),o=n(4134);e.exports=function(e,t){var n=e._latestEditorState,i=n.getSelection();if(!i.getHasFocus()){var a=i.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),o.isBrowser("Chrome < 60.0.3081.0")?e.update(r.forceSelection(n,a)):e.update(r.acceptSelection(n,a))}}},5091(e,t,n){"use strict";var r=n(2938),o=n(9938),i=n(3885),a=n(2242),s=n(4134),c=n(8372),u=n(6408),l=s.isEngine("Gecko");e.exports=function(e){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var t=globalThis.getSelection(),n=t.anchorNode,s=t.isCollapsed,d=n.nodeType!==Node.TEXT_NODE,f=n.nodeType!==Node.TEXT_NODE&&n.nodeType!==Node.ELEMENT_NODE;if(r.draft_killswitch_allow_nontextnodes){if(d)return}else if(f)return;if(n.nodeType===Node.TEXT_NODE&&(null!==n.previousSibling||null!==n.nextSibling)){var p=n.parentNode;n.nodeValue=p.textContent;for(var h=p.firstChild;null!==h;h=h.nextSibling)h!==n&&p.removeChild(h)}var g=n.textContent,y=e._latestEditorState,m=u(c(n)),b=i.decode(m),v=b.blockKey,w=b.decoratorKey,S=b.leafKey,x=y.getBlockTree(v).getIn([w,"leaves",S]),E=x.start,_=x.end,O=y.getCurrentContent(),k=O.getBlockForKey(v),C=k.getText().slice(E,_);if(g.endsWith("\n\n")&&(g=g.slice(0,-1)),g!==C){var A,T,I,P,L=y.getSelection(),D=L.merge({anchorOffset:E,focusOffset:_,isBackward:!1}),M=k.getEntityAt(E),j=M&&O.getEntity(M),R="MUTABLE"===(j&&j.getMutability()),N=R?"spellcheck-change":"apply-entity",F=o.replaceText(O,D,g,k.getInlineStyleAt(E),R?k.getEntityAt(E):null);if(l)A=t.anchorOffset,T=t.focusOffset,P=(I=E+Math.min(A,T))+Math.abs(A-T),A=I,T=P;else{var B=g.length-C.length;I=L.getStartOffset(),P=L.getEndOffset(),A=s?P+B:I,T=P+B}var U=F.merge({selectionBefore:O.getSelectionAfter(),selectionAfter:L.merge({anchorOffset:A,focusOffset:T})});e.update(a.push(y,U,N))}}},8136(e,t,n){"use strict";var r=n(9938),o=n(2242),i=n(9414),a=n(5852),s=n(5170),c=n(4134),u=n(3680),l=n(8771),d=n(4143),f=n(525),p=n(4071),h=n(5169),g=n(70),y=n(7381),m=n(2383),b=n(5935),v=n(8976),w=i.isOptionKeyCommand,S=c.isBrowser("Chrome");e.exports=function(e,t){var n=t.which,i=e._latestEditorState;switch(n){case a.RETURN:if(t.preventDefault(),e.props.handleReturn&&u(e.props.handleReturn(t,i)))return;break;case a.ESC:return t.preventDefault(),void(e.props.onEscape&&e.props.onEscape(t));case a.TAB:return void(e.props.onTab&&e.props.onTab(t));case a.UP:return void(e.props.onUpArrow&&e.props.onUpArrow(t));case a.RIGHT:return void(e.props.onRightArrow&&e.props.onRightArrow(t));case a.DOWN:return void(e.props.onDownArrow&&e.props.onDownArrow(t));case a.LEFT:return void(e.props.onLeftArrow&&e.props.onLeftArrow(t));case a.SPACE:if(S&&w(t)){t.preventDefault();var c=r.replaceText(i.getCurrentContent(),i.getSelection()," ");return void e.update(o.push(i,c,"insert-characters"))}}var x=e.props.keyBindingFn(t);if(x)if("undo"!==x){if(t.preventDefault(),!e.props.handleKeyCommand||!u(e.props.handleKeyCommand(x,i))){var E=function(e,t){switch(e){case"redo":return o.redo(t);case"delete":return m(t);case"delete-word":return f(t);case"backspace":return y(t);case"backspace-word":return d(t);case"backspace-to-start-of-line":return l(t);case"split-block":return p(t);case"transpose-characters":return b(t);case"move-selection-to-start-of-block":return g(t);case"move-selection-to-end-of-block":return h(t);case"secondary-cut":return s.cut(t);case"secondary-paste":return s.paste(t);default:return t}}(x,i);E!==i&&e.update(E)}}else v(t,i,e.update)}},2208(e,t,n){"use strict";var r=n(5748),o=n(3018),i=n(2395),a=n(9938),s=n(46),c=n(2242),u=n(4637),l=n(9927),d=n(723),f=n(3680),p=n(3676);function h(e,t,n){var r=a.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return c.push(e,r.set("entityMap",n),"insert-fragment")}e.exports=function(e,t){t.preventDefault();var n=new i(t.clipboardData);if(!n.isRichText()){var g=n.getFiles(),y=n.getText();if(g.length>0){if(e.props.handlePastedFiles&&f(e.props.handlePastedFiles(g)))return;return void d(g,function(t){if(t=t||y){var n=e._latestEditorState,i=p(t),d=o.create({style:n.getCurrentInlineStyle(),entity:l(n.getCurrentContent(),n.getSelection())}),f=u.getCurrentBlockType(n),h=s.processText(i,d,f),g=r.createFromArray(h),m=a.replaceWithFragment(n.getCurrentContent(),n.getSelection(),g);e.update(c.push(n,m,"insert-fragment"))}})}}var m=[],b=n.getText(),v=n.getHTML(),w=e._latestEditorState;if(!e.props.handlePastedText||!f(e.props.handlePastedText(b,v,w))){if(b&&(m=p(b)),!e.props.stripPastedStyles){var S=e.getClipboard();if(n.isRichText()&&S){if(-1!==v.indexOf(e.getEditorKey())||1===m.length&&1===S.size&&S.first().getText()===b)return void e.update(h(e._latestEditorState,S))}else if(S&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every(function(t,n){return t.getText()===e[n]})}(m,S))return void e.update(h(e._latestEditorState,S));if(v){var x=s.processHTML(v,e.props.blockRenderMap);if(x){var E=x.contentBlocks,_=x.entityMap;if(E){var O=r.createFromArray(E);return void e.update(h(e._latestEditorState,O,_))}}}e.setClipboard(null)}if(m.length){var k=o.create({style:w.getCurrentInlineStyle(),entity:l(w.getCurrentContent(),w.getSelection())}),C=u.getCurrentBlockType(w),A=s.processText(m,k,C),T=r.createFromArray(A);e.update(h(e._latestEditorState,T))}}}},6207(e,t,n){"use strict";var r=n(2242),o=n(2326),i=n(120),a=n(646);e.exports=function(e){if(!e._blockSelectEvents&&e._latestEditorState===e.props.editorState){var t=e.props.editorState,n=o.findDOMNode(e.editorContainer);n||a(!1),n.firstChild instanceof HTMLElement||a(!1);var s=i(t,n.firstChild),c=s.selectionState;c!==t.getSelection()&&(t=s.needsRecovery?r.forceSelection(t,c):r.acceptSelection(t,c),e.update(t))}}},7862(e,t,n){"use strict";var r=n(1439),o=n(580).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges(function(e){return!!e.getEntity()},function(i,a){var s=e.getText(),c=e.getEntityAt(i);n.push({offset:o(s.slice(0,i)),length:o(s.slice(i,a)),key:Number(t[r.stringify(c)])})}),n}},702(e,t,n){"use strict";var r=n(580),o=n(8227),i=function(e,t){return e===t},a=function(e){return!!e},s=[];e.exports=function(e){var t=e.getCharacterList().map(function(e){return e.getStyle()}).toList(),n=t.flatten().toSet().map(function(n){return function(e,t,n){var s=[],c=t.map(function(e){return e.has(n)}).toList();return o(c,i,a,function(t,o){var i=e.getText();s.push({offset:r.strlen(i.slice(0,t)),length:r.strlen(i.slice(t,o)),style:n})}),s}(e,t,n)});return Array.prototype.concat.apply(s,n.toJS())}},5989(e,t,n){"use strict";var r=n(580),o=n(5377),i=n(646);function a(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var s=e[a];0!==s.width&&1!==s.width&&(n=Math.min(n,s.top),r=Math.min(r,s.bottom),o=Math.max(o,s.top),i=Math.max(i,s.bottom))}return o<=r&&o-n<t&&i-r<t}function s(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}e.exports=function(e){e.collapsed||i(!1);var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=document.createElement("div");n.style.fontFamily=t.fontFamily,n.style.fontSize=t.fontSize,n.style.fontStyle=t.fontStyle,n.style.fontWeight=t.fontWeight,n.style.lineHeight=t.lineHeight,n.style.position="absolute",n.textContent="M";var r=document.body;r||i(!1),r.appendChild(n);var o=n.getBoundingClientRect();return r.removeChild(n),o.height}(t),c=e.endContainer,u=e.endOffset;for(e.setStart(e.startContainer,0);a(o(e),n)&&(c=e.startContainer,u=e.startOffset,c.parentNode||i(!1),e.setStartBefore(c),1!==c.nodeType||"inline"===getComputedStyle(c).display););for(var l=c,d=u-1;;){for(var f=l.nodeValue,p=d;p>=0;p--)if(!(null!=f&&p>0&&r.isSurrogatePair(f,p-1))){if(e.setStart(l,p),!a(o(e),n))break;c=l,u=p}if(-1===p||0===l.childNodes.length)break;d=s(l=l.childNodes[p])}return e.setStart(c,u),e}},8372(e,t,n){"use strict";var r=n(4453);e.exports=function(e){for(var t=e;t&&t!==document.documentElement;){var n=r(t);if(null!=n)return n;t=t.parentNode}return null}},8227(e){"use strict";e.exports=function(e,t,n,r){if(e.size){var o=0;e.reduce(function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i}),n(e.last())&&r(o,e.count())}}},6991(e){"use strict";var t={},n=Math.pow(2,24);e.exports=function(){for(var e=void 0;void 0===e||t.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*n).toString(32);return t[e]=!0,e}},508(e,t,n){"use strict";var r=n(8382),o=n(9311),i=n(646);function a(e,t,n,a,s,c,u){var l=n.getStartOffset(),d=n.getEndOffset(),f=e.__get(s).getMutability(),p=u?l:d;if("MUTABLE"===f)return n;var h=o(t,s).filter(function(e){return p<=e.end&&p>=e.start});1!=h.length&&i(!1);var g=h[0];if("IMMUTABLE"===f)return n.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1});c||(u?d=g.end:l=g.start);var y=r.getRemovalRange(l,d,t.getText().slice(g.start,g.end),g.start,a);return n.merge({anchorOffset:y.start,focusOffset:y.end,isBackward:!1})}e.exports=function(e,t,n,r,o){var i=r.getStartOffset(),s=r.getEndOffset(),c=t.getEntityAt(i),u=n.getEntityAt(s-1);if(!c&&!u)return r;var l=r;if(c&&c===u)l=a(e,t,l,o,c,!0,!0);else if(c&&u){var d=a(e,t,l,o,c,!1,!0),f=a(e,n,l,o,u,!1,!1);l=l.merge({anchorOffset:d.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(c){var p=a(e,t,l,o,c,!1,!0);l=l.merge({anchorOffset:p.getStartOffset(),isBackward:!1})}else if(u){var h=a(e,n,l,o,u,!1,!1);l=l.merge({focusOffset:h.getEndOffset(),isBackward:!1})}return l}},866(e,t,n){"use strict";var r=n(3310),o=n(6044);e.exports=function(e,t){var n=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=o(e,t).getBlockMap(),u=c.keySeq(),l=u.indexOf(n),d=u.indexOf(a)+1;return r(c.slice(l,d).map(function(e,t){var r=e.getText(),o=e.getCharacterList();return n===a?e.merge({text:r.slice(i,s),characterList:o.slice(i,s)}):t===n?e.merge({text:r.slice(i),characterList:o.slice(i)}):t===a?e.merge({text:r.slice(0,s),characterList:o.slice(0,s)}):e}))}},7811(e,t,n){"use strict";var r=n(9414),o=n(5852),i=n(4134),a=i.isPlatform("Mac OS X"),s=i.isPlatform("Windows"),c=a&&i.isBrowser("Firefox < 29"),u=r.hasCommandModifier,l=r.isCtrlKeyCommand;function d(e){return a&&e.altKey||l(e)}e.exports=function(e){switch(e.keyCode){case 66:return u(e)?"bold":null;case 68:return l(e)?"delete":null;case 72:return l(e)?"backspace":null;case 73:return u(e)?"italic":null;case 74:return u(e)?"code":null;case 75:return!s&&l(e)?"secondary-cut":null;case 77:case 79:return l(e)?"split-block":null;case 84:return a&&l(e)?"transpose-characters":null;case 85:return u(e)?"underline":null;case 87:return a&&l(e)?"backspace-word":null;case 89:return l(e)?s?"redo":"secondary-paste":null;case 90:return function(e){return u(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o.RETURN:return"split-block";case o.DELETE:return function(e){return s&&e.shiftKey?null:d(e)?"delete-word":"delete"}(e);case o.BACKSPACE:return function(e){return u(e)&&a?"backspace-to-start-of-line":d(e)?"backspace-word":"backspace"}(e);case o.LEFT:return c&&u(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return c&&u(e)?"move-selection-to-end-of-block":null;default:return null}}},120(e,t,n){"use strict";var r=n(9215);e.exports=function(e,t){var n=globalThis.getSelection();return 0===n.rangeCount?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,t,n.anchorNode,n.anchorOffset,n.focusNode,n.focusOffset)}},9215(e,t,n){"use strict";var r=n(8372),o=n(4453),i=n(9450),a=n(646),s=n(6408);function c(e,t,n){var i=t,c=r(i);if(null!=c||e&&(e===i||e.firstChild===i)||a(!1),e===i&&((i=i.firstChild)instanceof Element&&"true"===i.getAttribute("data-contents")||a(!1),n>0&&(n=i.childNodes.length)),0===n){var l=null;if(null!=c)l=c;else{var d=function(e){for(;e.firstChild&&(e.firstChild instanceof Element&&"true"===e.firstChild.getAttribute("data-blocks")||o(e.firstChild));)e=e.firstChild;return e}(i);l=s(o(d))}return{key:l,offset:0}}var f=i.childNodes[n-1],p=null,h=null;if(o(f)){var g=function(e){for(;e.lastChild&&(e.lastChild instanceof Element&&"true"===e.lastChild.getAttribute("data-blocks")||o(e.lastChild));)e=e.lastChild;return e}(f);p=s(o(g)),h=u(g)}else p=s(c),h=u(f);return{key:p,offset:h}}function u(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,n,o,a,u){var l=n.nodeType===Node.TEXT_NODE,d=a.nodeType===Node.TEXT_NODE;if(l&&d)return{selectionState:i(e,s(r(n)),o,s(r(a)),u),needsRecovery:!1};var f=null,p=null,h=!0;return l?(f={key:s(r(n)),offset:o},p=c(t,a,u)):d?(p={key:s(r(a)),offset:u},f=c(t,n,o)):(f=c(t,n,o),p=c(t,a,u),n===a&&o===u&&(h=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:i(e,f.key,f.offset,p.key,p.offset),needsRecovery:h}}},9927(e){"use strict";function t(e,t){return t&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,n){var r;if(n.isCollapsed()){var o=n.getAnchorKey(),i=n.getAnchorOffset();return i>0?(r=e.getBlockForKey(o).getEntityAt(i-1))!==e.getBlockForKey(o).getEntityAt(i)?null:t(e.getEntityMap(),r):null}var a=n.getStartKey(),s=n.getStartOffset(),c=e.getBlockForKey(a);return r=s===c.getLength()?null:c.getEntityAt(s),t(e.getEntityMap(),r)}},1296(e,t,n){"use strict";var r=n(866);e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:r(e.getCurrentContent(),t)}},7376(e,t,n){"use strict";var r=n(5224);e.exports=function(e,t){if(!(e instanceof r))return null;var n=e.getNextSiblingKey();if(n)return n;var o=e.getParentKey();if(!o)return null;for(var i=t.get(o);i&&!i.getNextSiblingKey();){var a=i.getParentKey();i=a?t.get(a):null}return i?i.getNextSiblingKey():null}},4658(e,t,n){"use strict";var r=n(5377);e.exports=function(e){var t=r(e),n=0,o=0,i=0,a=0;if(t.length){if(t.length>1&&0===t[0].width){var s=t[1];n=s.top,o=s.right,i=s.bottom,a=s.left}else{var c=t[0];n=c.top,o=c.right,i=c.bottom,a=c.left}for(var u=1;u<t.length;u++){var l=t[u];0!==l.height&&0!==l.width&&(n=Math.min(n,l.top),o=Math.max(o,l.right),i=Math.max(i,l.bottom),a=Math.min(a,l.left))}}return{top:n,right:o,bottom:i,left:a,width:o-a,height:i-n}}},5377(e,t,n){"use strict";var r=n(4134),o=n(646),i=r.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var i=r===e.commonAncestorContainer;i?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var a,s=Array.from(t.getClientRects());if(n.push(s),i)return n.reverse(),(a=[]).concat.apply(a,n);t.setEndBefore(r)}o(!1)}:function(e){return Array.from(e.getClientRects())};e.exports=i},9311(e,t,n){"use strict";var r=n(646);e.exports=function(e,t){var n=[];return e.findEntityRanges(function(e){return e.getEntity()===t},function(e,t){n.push({start:e,end:t})}),n.length||r(!1),n}},9248(e,t,n){"use strict";var r=n(4134),o=n(646),i=r.isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!i&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||o(!1),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},4453(e){"use strict";e.exports=function e(t){if(t instanceof Element){var n=t.getAttribute("data-offset-key");if(n)return n;for(var r=0;r<t.childNodes.length;r++){var o=e(t.childNodes[r]);if(o)return o}}return null}},723(e,t,n){"use strict";var r=n(646),o=/\.textClipping$/,i={"text/plain":!0,"text/html":!0,"text/rtf":!0};e.exports=function(e,t){var n=0,a=[];e.forEach(function(s){!function(e,t){if(!globalThis.FileReader||e.type&&!(e.type in i))t("");else{if(""===e.type){var n="";return o.test(e.name)&&(n=e.name.replace(o,"")),void t(n)}var a=new FileReader;a.onload=function(){var e=a.result;"string"!=typeof e&&r(!1),t(e)},a.onerror=function(){t("")},a.readAsText(e)}}(s,function(r){n++,r&&a.push(r.slice(0,5e3)),n==e.length&&t(a.join("\r"))})})}},9450(e,t,n){"use strict";var r=n(3885),o=n(6408);e.exports=function(e,t,n,i,a){var s=o(e.getSelection()),c=r.decode(t),u=c.blockKey,l=e.getBlockTree(u).getIn([c.decoratorKey,"leaves",c.leafKey]),d=r.decode(i),f=d.blockKey,p=e.getBlockTree(f).getIn([d.decoratorKey,"leaves",d.leafKey]),h=l.get("start"),g=p.get("start"),y=l?h+n:null,m=p?g+a:null;if(s.getAnchorKey()===u&&s.getAnchorOffset()===y&&s.getFocusKey()===f&&s.getFocusOffset()===m)return s;var b=!1;if(u===f){var v=l.get("end"),w=p.get("end");b=g===h&&w===v?a<n:g<h}else b=e.getCurrentContent().getBlockMap().keySeq().skipUntil(function(e){return e===u||e===f}).first()===f;return s.merge({anchorKey:u,anchorOffset:y,focusKey:f,focusOffset:m,isBackward:b})}},894(e,t,n){"use strict";var r=n(4658);e.exports=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),o=r(n),i=o.top,a=o.right,s=o.bottom,c=o.left;return 0===i&&0===a&&0===s&&0===c?null:o}},9127(e,t,n){"use strict";var r=n(5748),o=n(5224),i=n(9404),a=n(6269),s=n(646),c=n(3310),u=i.List;e.exports=function(e,t,n){t.isCollapsed()||s(!1);var i=e.getBlockMap(),l=c(n),d=t.getStartKey(),f=t.getStartOffset(),p=i.get(d);return p instanceof o&&(p.getChildKeys().isEmpty()||s(!1)),1===l.size?function(e,t,n,r,o,i){var s=n.get(o),c=s.getText(),u=s.getCharacterList(),l=o,d=i+r.getText().length,f=s.merge({text:c.slice(0,i)+r.getText()+c.slice(i),characterList:a(u,r.getCharacterList(),i),data:r.getData()});return e.merge({blockMap:n.set(o,f),selectionBefore:t,selectionAfter:t.merge({anchorKey:l,anchorOffset:d,focusKey:l,focusOffset:d,isBackward:!1})})}(e,t,i,l.first(),d,f):function(e,t,n,i,a,s){var c=n.first()instanceof o,l=[],d=i.size,f=n.get(a),p=i.first(),h=i.last(),g=h.getLength(),y=h.getKey(),m=c&&(!f.getChildKeys().isEmpty()||!p.getChildKeys().isEmpty());n.forEach(function(e,t){t===a?(m?l.push(e):l.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.slice(0,t),a=o.slice(0,t),s=n.first();return e.merge({text:i+s.getText(),characterList:a.concat(s.getCharacterList()),type:i?e.getType():s.getType(),data:s.getData()})}(e,s,i)),i.slice(m?0:1,d-1).forEach(function(e){return l.push(e)}),l.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.length,a=r.slice(t,i),s=o.slice(t,i),c=n.last();return c.merge({text:c.getText()+a,characterList:c.getCharacterList().concat(s),data:c.getData()})}(e,s,i))):l.push(e)});var b=r.createFromArray(l);return c&&(b=function(e,t,n,r){return e.withMutations(function(t){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),s=n.getParentKey(),c=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(r,e),l=c[c.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([l,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],l),c.forEach(function(e){return t.setIn([e,"parent"],s)}),s){var d=e.get(s).getChildKeys(),f=d.indexOf(o)+1,p=d.toArray();p.splice.apply(p,[f,0].concat(c)),t.setIn([s,"children"],u(p))}})}(b,0,f,p)),e.merge({blockMap:b,selectionBefore:t,selectionAfter:t.merge({anchorKey:y,anchorOffset:g,focusKey:y,focusOffset:g,isBackward:!1})})}(e,t,i,l,d,f)}},6269(e){"use strict";e.exports=function(e,t,n){if(n===e.count())t.forEach(function(t){e=e.push(t)});else if(0===n)t.reverse().forEach(function(t){e=e.unshift(t)});else{var r=e.slice(0,n),o=e.slice(n);e=r.concat(t,o).toList()}return e}},3136(e,t,n){"use strict";var r=n(9404),o=n(6269),i=n(646),a=r.Repeat;e.exports=function(e,t,n,r){t.isCollapsed()||i(!1);var s=n.length;if(!s)return e;var c=e.getBlockMap(),u=t.getStartKey(),l=t.getStartOffset(),d=c.get(u),f=d.getText(),p=d.merge({text:f.slice(0,l)+n+f.slice(l,d.getLength()),characterList:o(d.getCharacterList(),a(r,s).toList(),l)}),h=l+s;return e.merge({blockMap:c.set(u,p),selectionAfter:t.merge({anchorOffset:h,focusOffset:h})})}},3680(e){"use strict";e.exports=function(e){return"handled"===e||!0===e}},7759(e){"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some(function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some(function(e){var t=e.get("start");return o===t&&(i=!0,!0)})}),i}},8771(e,t,n){"use strict";var r=n(2242),o=n(5989),i=n(9215),a=n(8488),s=n(5188);e.exports=function(e){var t=s(e,function(e){var t=e.getSelection();if(t.isCollapsed()&&0===t.getAnchorOffset())return a(e,1);var n=globalThis.getSelection().getRangeAt(0);return n=o(n),i(e,null,n.endContainer,n.endOffset,n.startContainer,n.startOffset).selectionState},"backward");return t===e.getCurrentContent()?e:r.push(e,t,"remove-range")}},4143(e,t,n){"use strict";var r=n(1617),o=n(2242),i=n(8488),a=n(5188);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return i(e,1);var o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(0,n),s=r.getBackward(a);return i(e,s.length||1)},"backward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},525(e,t,n){"use strict";var r=n(1617),o=n(2242),i=n(7800),a=n(5188);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset(),o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(n),s=r.getForward(a);return i(e,s.length||1)},"forward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},4071(e,t,n){"use strict";var r=n(9938),o=n(2242);e.exports=function(e){var t=r.splitBlock(e.getCurrentContent(),e.getSelection());return o.push(e,t,"split-block")}},5169(e,t,n){"use strict";var r=n(2242);e.exports=function(e){var t=e.getSelection(),n=t.getEndKey(),o=e.getCurrentContent().getBlockForKey(n).getLength();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:o,focusKey:n,focusOffset:o,isBackward:!1}),forceSelection:!0})}},70(e,t,n){"use strict";var r=n(2242);e.exports=function(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},7381(e,t,n){"use strict";var r=n(2242),o=n(580),i=n(8488),a=n(5188);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a-1];return i(e,s?o.getUTF16Length(s,0):1)},"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},2383(e,t,n){"use strict";var r=n(2242),o=n(580),i=n(7800),a=n(5188);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a];return i(e,s?o.getUTF16Length(s,0):1)},"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},5935(e,t,n){"use strict";var r=n(9938),o=n(2242),i=n(866);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var a,s,c=t.getAnchorKey(),u=e.getCurrentContent(),l=u.getBlockForKey(c).getLength();if(l<=1)return e;n===l?(a=t.set("anchorOffset",n-1),s=t):s=(a=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var d=i(u,a),f=r.removeRange(u,a,"backward"),p=f.getSelectionAfter(),h=p.getAnchorOffset()-1,g=p.merge({anchorOffset:h,focusOffset:h}),y=r.replaceWithFragment(f,g,d),m=o.push(e,y,"insert-fragment");return o.acceptSelection(m,s)}},8976(e,t,n){"use strict";var r=n(2242);e.exports=function(e,t,n){var o=r.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(r.set(t,{nativelyRenderedContent:null})),setTimeout(function(){n(o)},0)):n(o);else{var i=o.getCurrentContent();n(r.set(o,{nativelyRenderedContent:i}))}}},5462(e,t,n){"use strict";var r=n(9404).Map;e.exports=function(e,t,n){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===i}).concat(r([[i,a.get(i)]])).map(n);return e.merge({blockMap:a.merge(s),selectionBefore:t,selectionAfter:t})}},6059(e,t,n){"use strict";var r=n(5224),o=n(9404),i=n(7376),a=n(646),s=o.OrderedMap,c=o.List,u=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},l=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),s=n.getKey(),l=t.getParentKey(),d=t.getNextSiblingKey(),f=t.getPrevSiblingKey(),p=n.getParentKey(),h=i?n.getNextSiblingKey():s,g=i?s:n.getPrevSiblingKey();return e.withMutations(function(e){u(l,e,function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})}),u(f,e,function(e){return e.merge({nextSibling:d})}),u(d,e,function(e){return e.merge({prevSibling:f})}),u(h,e,function(e){return e.merge({prevSibling:a})}),u(g,e,function(e){return e.merge({nextSibling:a})}),u(p,e,function(e){var t=e.getChildKeys(),n=t.indexOf(s),r=i?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,a),e.merge({children:c(o)})}),u(a,e,function(e){return e.merge({nextSibling:h,prevSibling:g,parent:p})})})};e.exports=function(e,t,n,o){"replace"===o&&a(!1);var c=n.getKey(),u=t.getKey();u===c&&a(!1);var d=e.getBlockMap(),f=t instanceof r,p=[t],h=d.delete(u);f&&(p=[],h=d.withMutations(function(e){var n=t.getNextSiblingKey(),r=i(t,e);e.toSeq().skipUntil(function(e){return e.getKey()===u}).takeWhile(function(e){var t=e.getKey(),o=t===u,i=n&&t!==n,a=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||i||a)}).forEach(function(t){p.push(t),e.delete(t.getKey())})}));var g=h.toSeq().takeUntil(function(e){return e===n}),y=h.toSeq().skipUntil(function(e){return e===n}).skip(1),m=p.map(function(e){return[e.getKey(),e]}),b=s();if("before"===o){var v=e.getBlockBefore(c);v&&v.getKey()===t.getKey()&&a(!1),b=g.concat([].concat(m,[[c,n]]),y).toOrderedMap()}else if("after"===o){var w=e.getBlockAfter(c);w&&w.getKey()===u&&a(!1),b=g.concat([[c,n]].concat(m),y).toOrderedMap()}return e.merge({blockMap:l(b,t,n,o,f),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:u,focusKey:u})})}},8488(e){"use strict";e.exports=function(e,t){var n=e.getSelection(),r=e.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,s=0;if(t>i){var c=r.getKeyBefore(o);null==c?a=o:(a=c,s=r.getBlockForKey(c).getText().length)}else s=i-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})}},7800(e){"use strict";e.exports=function(e,t){var n,r=e.getSelection(),o=r.getStartKey(),i=r.getStartOffset(),a=e.getCurrentContent(),s=o;return t>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),n=0):n=i+t,r.merge({focusKey:s,focusOffset:n})}},3310(e,t,n){"use strict";var r=n(5224),o=n(9404),i=n(6991),a=o.OrderedMap;e.exports=function(e){return e.first()instanceof r?function(e){var t={},n=void 0;return a(e.withMutations(function(e){e.forEach(function(r,o){var a=r.getKey(),s=r.getNextSiblingKey(),c=r.getPrevSiblingKey(),u=r.getChildKeys(),l=r.getParentKey(),d=i();if(t[a]=d,s&&(e.get(s)?e.setIn([s,"prevSibling"],d):e.setIn([a,"nextSibling"],null)),c&&(e.get(c)?e.setIn([c,"nextSibling"],d):e.setIn([a,"prevSibling"],null)),l&&e.get(l)){var f=e.get(l).getChildKeys();e.setIn([l,"children"],f.set(f.indexOf(r.getKey()),d))}else e.setIn([a,"parent"],null),n&&(e.setIn([n.getKey(),"nextSibling"],d),e.setIn([a,"prevSibling"],t[n.getKey()])),n=e.get(a);u.forEach(function(t){e.get(t)?e.setIn([t,"parent"],d):e.setIn([a,"children"],r.getChildKeys().filter(function(e){return e!==t}))})})}).toArray().map(function(e){return[t[e.getKey()],e.set("key",t[e.getKey()])]}))}(e):function(e){return a(e.toArray().map(function(e){var t=i();return[t,e.set("key",t)]}))}(e)}},6044(e,t,n){"use strict";var r=n(3018),o=n(8227),i=n(646);function a(e,t,n){var a=t.getCharacterList(),s=n>0?a.get(n-1):void 0,c=n<a.count()?a.get(n):void 0,u=s?s.getEntity():void 0,l=c?c.getEntity():void 0;if(l&&l===u&&"MUTABLE"!==e.__get(l).getMutability()){for(var d,f=function(e,t,n){var r;return o(e,function(e,t){return e.getEntity()===t.getEntity()},function(e){return e.getEntity()===t},function(e,t){e<=n&&t>=n&&(r={start:e,end:t})}),"object"!=typeof r&&i(!1),r}(a,l,n),p=f.start,h=f.end;p<h;)d=a.get(p),a=a.set(p,r.applyEntity(d,null)),p++;return t.set("characterList",a)}return t}e.exports=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),s=t.getStartOffset(),c=n.get(i),u=a(r,c,s);u!==c&&(o[i]=u);var l=t.getEndKey(),d=t.getEndOffset(),f=n.get(l);i===l&&(f=u);var p=a(r,f,d);return p!==f&&(o[l]=p),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)}},4435(e,t,n){"use strict";var r=n(5224),o=n(9404),i=n(7376),a=(o.List,o.Map),s=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},c=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},u=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},l=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r};e.exports=function(e,t){if(t.isCollapsed())return e;var n=e.getBlockMap(),o=t.getStartKey(),d=t.getStartOffset(),f=t.getEndKey(),p=t.getEndOffset(),h=n.get(o),g=n.get(f),y=h instanceof r,m=[];if(y){var b=g.getChildKeys(),v=c(f,n);g.getNextSiblingKey()&&(m=m.concat(v)),b.isEmpty()||(m=m.concat(v.concat([f]))),m=m.concat(c(i(g,n),n))}var w;w=h===g?function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e}(h.getCharacterList(),d,p):h.getCharacterList().slice(0,d).concat(g.getCharacterList().slice(p));var S=h.merge({text:h.getText().slice(0,d)+g.getText().slice(p),characterList:w}),x=n.toSeq().skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===f}).filter(function(e,t){return-1===m.indexOf(t)}).concat(a([[f,null]])).map(function(e,t){return t===o?S:null}),E=n.merge(x).filter(function(e){return!!e});return y&&(E=function(e,t,n,r){return e.withMutations(function(e){s(t.getKey(),e,function(n){return n.merge({nextSibling:u(t,e,r),prevSibling:l(t,e,r)})}),s(n.getKey(),e,function(t){return t.merge({nextSibling:u(n,e,r),prevSibling:l(n,e,r)})}),c(t.getKey(),r).forEach(function(t){return s(t,e,function(t){return t.merge({children:t.getChildKeys().filter(function(t){return e.get(t)}),nextSibling:u(t,e,r),prevSibling:l(t,e,r)})})}),s(t.getNextSiblingKey(),e,function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})}),s(t.getPrevSiblingKey(),e,function(n){return n.merge({nextSibling:u(t,e,r)})}),s(n.getNextSiblingKey(),e,function(t){return t.merge({prevSibling:l(n,e,r)})}),s(n.getPrevSiblingKey(),e,function(e){return e.merge({nextSibling:n.getNextSiblingKey()})}),c(n.getKey(),r).forEach(function(t){s(t,e,function(t){return t.merge({children:t.getChildKeys().filter(function(t){return e.get(t)}),nextSibling:u(t,e,r),prevSibling:l(t,e,r)})})}),function(e,t){var n=[];if(!e)return n;for(var r=i(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?i(o,t):null}return n}(n,r).forEach(function(t){return s(t,e,function(t){return t.merge({nextSibling:u(t,e,r),prevSibling:l(t,e,r)})})})})}(E,h,g,n)),e.merge({blockMap:E,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:d,focusKey:o,focusOffset:d,isBackward:!1})})}},5188(e,t,n){"use strict";var r=n(9938);e.exports=function(e,t,n){var o=e.getSelection(),i=e.getCurrentContent(),a=o;if(o.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return i}else if(e.isSelectionAtStartOfContent())return i;if((a=t(e))===o)return i}return r.removeRange(i,a,n)}},1721(e){"use strict";var t=new RegExp("\r","g");e.exports=function(e){return e.replace(t,"")}},4660(e,t,n){"use strict";var r=n(7204),o=n(4909),i=n(9758),a=n(646);function s(e,t){if(!e)return"[empty]";var n=c(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(n instanceof Element||a(!1),n.outerHTML)}function c(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return document.createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var i=e.childNodes,a=0;a<i.length;a++)o.appendChild(c(i[a],t));return o}function u(e,t){for(var n=e;n;){if(n instanceof Element&&n.hasAttribute("contenteditable"))return s(n,t);n=n.parentNode}return"Could not find contentEditable parent of node"}function l(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function d(e,t,n,a){var s=i();if(e.extend&&o(s,t)){n>l(t)&&r.logSelectionStateFailure({anonymizedDom:u(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(a.toJS())});var c=t===e.focusNode;try{e.extend(t,n)}catch(o){throw r.logSelectionStateFailure({anonymizedDom:u(t,function(t){var n=[];return t===s&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n}),extraParams:JSON.stringify({activeElementName:s?s.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:c,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:o?""+o:null,offset:n},null,2),selectionState:JSON.stringify(a.toJS(),null,2)}),o}}else{var d=e.getRangeAt(0);d.setEnd(t,n),e.addRange(d.cloneRange())}}function f(e,t,n,o){var i=document.createRange();n>l(t)&&r.logSelectionStateFailure({anonymizedDom:u(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(o.toJS())}),i.setStart(t,n),e.addRange(i)}e.exports=function(e,t,n,r,i){if(o(document.documentElement,t)){var a=globalThis.getSelection(),s=e.getAnchorKey(),c=e.getAnchorOffset(),u=e.getFocusKey(),l=e.getFocusOffset(),p=e.getIsBackward();if(!a.extend&&p){var h=s,g=c;s=u,c=l,u=h,l=g,p=!1}var y=s===n&&r<=c&&i>=c,m=u===n&&r<=l&&i>=l;if(y&&m)return a.removeAllRanges(),f(a,t,c-r,e),void d(a,t,l-r,e);if(p){if(m&&(a.removeAllRanges(),f(a,t,l-r,e)),y){var b=a.focusNode,v=a.focusOffset;a.removeAllRanges(),f(a,t,c-r,e),d(a,b,v,e)}}else y&&(a.removeAllRanges(),f(a,t,c-r,e)),m&&d(a,t,l-r,e)}}},841(e,t,n){"use strict";var r=n(5224),o=n(9404),i=n(6991),a=n(646),s=o.List,c=o.Map,u=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}};e.exports=function(e,t){t.isCollapsed()||a(!1);var n=t.getAnchorKey(),o=t.getAnchorOffset(),l=e.getBlockMap(),d=l.get(n),f=d.getText(),p=d.getCharacterList(),h=i(),g=d instanceof r,y=d.merge({text:f.slice(0,o),characterList:p.slice(0,o)}),m=y.merge({key:h,text:f.slice(o),characterList:p.slice(o),data:c()}),b=l.toSeq().takeUntil(function(e){return e===d}),v=l.toSeq().skipUntil(function(e){return e===d}).rest(),w=b.concat([[n,y],[h,m]],v).toOrderedMap();return g&&(d.getChildKeys().isEmpty()||a(!1),w=function(e,t,n){return e.withMutations(function(e){var r=t.getKey(),o=n.getKey();u(t.getParentKey(),e,function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,i=t.toArray();return i.splice(n,0,o),e.merge({children:s(i)})}),u(t.getNextSiblingKey(),e,function(e){return e.merge({prevSibling:o})}),u(r,e,function(e){return e.merge({nextSibling:o})}),u(o,e,function(e){return e.merge({prevSibling:r})})})}(w,y,m)),e.merge({blockMap:w,selectionBefore:t,selectionAfter:t.merge({anchorKey:h,anchorOffset:0,focusKey:h,focusOffset:0,isBackward:!1})})}},3676(e){"use strict";var t=/\r\n?|\n/g;e.exports=function(e){return e.split(t)}},7007(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise(function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}g(e,t,i,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&g(e,"error",t,{once:!0})}(e,o)})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var o,i,a,u;if(s(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=c(e))>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=l.bind(r);return o.listener=n,r.wrapFn=o,o}function f(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):h(o,o.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function g(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function o(i){r.once&&e.removeEventListener(t,o),n(i)})}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var u=c.length,l=h(c,u);for(n=0;n<u;++n)r(l[n],this,t)}return!0},i.prototype.addListener=function(e,t){return u(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return u(this,e,t,!0)},i.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return f(this,e,!0)},i.prototype.rawListeners=function(e){return f(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},2395(e,t,n){"use strict";var r=n(4886),o=n(1864),i=n(9395),a=new RegExp("\r\n","g"),s={"text/rtf":1,"text/html":1};function c(e){if("file"==e.kind)return e.getAsFile()}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=t,this.types=t.types?o(t.types):[]}return e.prototype.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(e){return s[e]})},e.prototype.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(a,"\n"):null},e.prototype.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},e.prototype.isLink=function(){return this.types.some(function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")})},e.prototype.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},e.prototype.isImage=function(){var e=this.types.some(function(e){return-1!=e.indexOf("application/x-moz-file")});if(e)return!0;for(var t=this.getFiles(),n=0;n<t.length;n++){var o=t[n].type;if(!r.isImage(o))return!1}return!0},e.prototype.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},e.prototype.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(c).filter(i.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},e.prototype.hasFiles=function(){return this.getFiles().length>0},e}();e.exports=u},5852(e){"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},4886(e){"use strict";var t={isImage:function(e){return"image"===n(e)[0]},isJpeg:function(e){var r=n(e);return t.isImage(e)&&("jpeg"===r[1]||"pjpeg"===r[1])}};function n(e){return e.split("/")}e.exports=t},3529(e){"use strict";function t(e,t){return!!t&&(e===t.documentElement||e===t.body)}var n={getTop:function(e){var n=e.ownerDocument;return t(e,n)?n.body.scrollTop||n.documentElement.scrollTop:e.scrollTop},setTop:function(e,n){var r=e.ownerDocument;t(e,r)?r.body.scrollTop=r.documentElement.scrollTop=n:e.scrollTop=n},getLeft:function(e){var n=e.ownerDocument;return t(e,n)?n.body.scrollLeft||n.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,n){var r=e.ownerDocument;t(e,r)?r.body.scrollLeft=r.documentElement.scrollLeft=n:e.scrollLeft=n}};e.exports=n},2935(e,t,n){"use strict";function r(e,t){var n=o.get(e,t);return"auto"===n||"scroll"===n}var o={get:n(6892),getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(r(e,"overflow")||r(e,"overflowY")||r(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=o},7405(e){"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},5324(e){"use strict";var t=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._uri=t}return e.prototype.toString=function(){return this._uri},e}();e.exports=t},8307(e,t,n){"use strict";var r=n(5822),o=n(646),i="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",a="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",s=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+i+a+"]"),c=new RegExp("["+i+a+"]");function u(e){var t=s.exec(e);return null==t?null:t[0]}function l(e){var t=u(e);return null==t?r.NEUTRAL:c.exec(t)?r.RTL:r.LTR}function d(e,t){if(t=t||r.NEUTRAL,!e.length)return t;var n=l(e);return n===r.NEUTRAL?t:n}function f(e,t){return t||(t=r.getGlobalDir()),r.isStrong(t)||o(!1),d(e,t)}var p={firstStrongChar:u,firstStrongCharDir:l,resolveBlockDir:d,getDirection:f,isDirectionLTR:function(e,t){return f(e,t)===r.LTR},isDirectionRTL:function(e,t){return f(e,t)===r.RTL}};e.exports=p},5822(e,t,n){"use strict";var r=n(646),o="LTR",i=null;function a(e){return e===o||"RTL"===e}function s(e){return a(e)||r(!1),e===o?"ltr":"rtl"}function c(e){i=e}var u={NEUTRAL:"NEUTRAL",LTR:o,RTL:"RTL",isStrong:a,getHTMLDir:s,getHTMLDirIfDifferent:function(e,t){return a(e)||r(!1),a(t)||r(!1),e===t?null:s(e)},setGlobalDir:c,initGlobalDir:function(){c(o)},getGlobalDir:function(){return i||this.initGlobalDir(),i||r(!1),i}};e.exports=u},1708(e,t,n){"use strict";var r=n(8307),o=n(5822),i=n(646),a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t?o.isStrong(t)||i(!1):t=o.getGlobalDir(),this._defaultDir=t,this.reset()}return e.prototype.reset=function(){this._lastDir=this._defaultDir},e.prototype.getDirection=function(e){return this._lastDir=r.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=a},580(e,t,n){"use strict";var r=n(646),o=/[\uD800-\uDFFF]/;function i(e){return 55296<=e&&e<=57343}function a(e){return o.test(e)}function s(e,t){return 1+i(e.charCodeAt(t))}function c(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!a(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o<r;t--)o+=s(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=s(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=s(e,i);return e.substring(o,i)}var u={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=s(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:s,hasSurrogateUnit:a,isCodeUnitInSurrogateRange:i,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||r(!1),t+1===e.length)return!1;var n=e.charCodeAt(t),o=e.charCodeAt(t+1);return 55296<=n&&n<=56319&&56320<=o&&o<=57343},strlen:function(e){if(!a(e))return e.length;for(var t=0,n=0;n<e.length;n+=s(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-t);return c(e,t=t<n?t:n,r)},substr:c};e.exports=u},4134(e,t,n){"use strict";var r=n(4534),o=n(953),i=n(3731),a=n(4793);function s(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var i=n.slice(e.length);return!!t&&(i=r?r(i):i,o.contains(i,t))}function c(e){return"Windows"===r.platformName?e.replace(/^\s*NT/,""):e}var u={isBrowser:function(e){return s(r.browserName,r.browserFullVersion,e)},isBrowserArchitecture:function(e){return s(r.browserArchitecture,null,e)},isDevice:function(e){return s(r.deviceName,null,e)},isEngine:function(e){return s(r.engineName,r.engineVersion,e)},isPlatform:function(e){return s(r.platformName,r.platformFullVersion,e,c)},isPlatformArchitecture:function(e){return s(r.platformArchitecture,null,e)}};e.exports=i(u,a)},4534(e,t,n){"use strict";var r,o="Unknown",i=(new(n(7232))).getResult(),a=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(i.browser.version),s={browserArchitecture:i.cpu.architecture||o,browserFullVersion:i.browser.version||o,browserMinorVersion:a.minor||o,browserName:i.browser.name||o,browserVersion:i.browser.major||o,deviceName:i.device.model||o,engineName:i.engine.name||o,engineVersion:i.engine.version||o,platformArchitecture:i.cpu.architecture||o,platformName:(r=i.os.name,{"Mac OS":"Mac OS X"}[r]||r||o),platformVersion:i.os.version||o,platformFullVersion:i.os.version||o};e.exports=s},953(e,t,n){"use strict";var r=n(646),o=/\./,i=/\|\|/,a=/\s+\-\s+/,s=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,c=/^(\d*)(.*)/;function u(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(o),i=f(e),a=i.modifier,s=i.rangeComponents;switch(a){case"<":return l(r,s);case"<=":return-1===(n=b(r,s))||0===n;case">=":return d(r,s);case">":return 1===b(r,s);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);return p(i)&&(r[o]=i+1+""),d(e,n)&&l(e,r)}(r,s);default:return function(e,t){return 0===b(e,t)}(r,s)}}function l(e,t){return-1===b(e,t)}function d(e,t){var n=b(e,t);return 1===n||0===n}function f(e){var t=e.split(o),n=t[0].match(s);return n||r(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function p(e){return!isNaN(e)&&isFinite(e)}function h(e){return!f(e).modifier}function g(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function y(e,t){var n=e.match(c)[1],r=t.match(c)[1],o=parseInt(n,10),i=parseInt(r,10);return p(o)&&p(i)&&o!==i?m(o,i):m(e,t)}function m(e,t){return typeof e!=typeof t&&r(!1),e>t?1:e<t?-1:0}function b(e,t){for(var n=function(e,t){g(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return g(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=y(r[i],o[i]);if(a)return a}return 0}var v={contains:function(e,t){return function(e,t){var n=e.split(i);return n.length>1?n.some(function(e){return v.contains(e,t)}):function(e,t){var n=e.split(a);if(n.length>0&&n.length<=2||r(!1),1===n.length)return u(n[0],t);var o=n[0],i=n[1];return h(o)&&h(i)||r(!1),u(">="+o,t)&&u("<="+i,t)}(e=n[0].trim(),t)}(e.trim(),t.trim())}};e.exports=v},8748(e){"use strict";var t=/-(.)/g;e.exports=function(e){return e.replace(t,function(e,t){return t.toUpperCase()})}},4909(e,t,n){"use strict";var r=n(5423);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},1864(e,t,n){"use strict";var r=n(646);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&r(!1),"number"!=typeof t&&r(!1),0===t||t-1 in e||r(!1),"function"==typeof e.callee&&r(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o<t;o++)n[o]=e[o];return n}(e):[e]}},8003(e){"use strict";function t(e){return e.replace(/\//g,"-")}e.exports=function(e){return"object"==typeof e?Object.keys(e).filter(function(t){return e[t]}).map(t).join(" "):Array.prototype.map.call(arguments,t).join(" ")}},9395(e){"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},9758(e){"use strict";e.exports=function(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}}},9824(e){"use strict";var t="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return(e=e||document).scrollingElement?e.scrollingElement:t||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},8527(e,t,n){"use strict";var r=n(7078);e.exports=function(e){var t=r(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},7078(e,t,n){"use strict";var r=n(4909);e.exports=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!r(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},7392(e,t,n){"use strict";var r=n(9824),o=n(7458);e.exports=function(e){var t=r(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=o(e),i=e===t?e.ownerDocument.documentElement:e,a=e.scrollWidth-i.clientWidth,s=e.scrollHeight-i.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,s)),n}},6892(e,t,n){"use strict";var r=n(8748),o=n(3998);function i(e){return null==e?e:String(e)}e.exports=function(e,t){var n=void 0;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return i(n.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return i(n.getPropertyValue(o(t)));if("display"===t)return"none"}return e.currentStyle?i("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[r(t)]):i(e.style&&e.style[r(t)])}},7458(e){"use strict";e.exports=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},1401(e){"use strict";function t(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function n(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function r(){return{width:window.innerWidth||t(),height:window.innerHeight||n()}}r.withoutScrollbars=function(){return{width:t(),height:n()}},e.exports=r},3998(e){"use strict";var t=/([A-Z])/g;e.exports=function(e){return e.replace(t,"-$1").toLowerCase()}},646(e){"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,s],l=0;(c=new Error(t.replace(/%s/g,function(){return u[l++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},5504(e){"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},5423(e,t,n){"use strict";var r=n(5504);e.exports=function(e){return r(e)&&3==e.nodeType}},798(e){"use strict";e.exports=function(e){e||(e="");var t=void 0,n=arguments.length;if(n>1)for(var r=1;r<n;r++)(t=arguments[r])&&(e=(e?e+" ":"")+t);return e}},3731(e){"use strict";var t=Object.prototype.hasOwnProperty;e.exports=function(e,n,r){if(!e)return null;var o={};for(var i in e)t.call(e,i)&&(o[i]=n.call(r,e[i],i,e));return o}},4793(e){"use strict";e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}},6408(e){"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},9765(e,t,n){"use strict";n(2791),e.exports=globalThis.setImmediate},4146(e,t,n){"use strict";var r=n(4363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=l(n);d&&(a=a.concat(d(n)));for(var s=c(t),g=c(n),y=0;y<a.length;++y){var m=a[y];if(!(i[m]||r&&r[m]||g&&g[m]||s&&s[m])){var b=f(n,m);try{u(t,m,b)}catch(e){}}}}return t}},9404(e){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:z(e)}function r(e){return s(e)?e:q(e)}function o(e){return c(e)?e:V(e)}function i(e){return a(e)&&!u(e)?e:G(e)}function a(e){return!(!e||!e[d])}function s(e){return!(!e||!e[f])}function c(e){return!(!e||!e[p])}function u(e){return s(e)||c(e)}function l(e){return!(!e||!e[h])}t(r,n),t(o,n),t(i,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=c,n.isAssociative=u,n.isOrdered=l,n.Keyed=r,n.Indexed=o,n.Set=i;var d="@@__IMMUTABLE_ITERABLE__@@",f="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",y=32,m=31,b={},v={value:!1},w={value:!1};function S(e){return e.value=!1,e}function x(e){e&&(e.value=!0)}function E(){}function _(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function O(e){return void 0===e.size&&(e.size=e.__iterate(C)),e.size}function k(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?O(e)+t:t}function C(){return!0}function A(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function T(e,t){return P(e,t,0)}function I(e,t){return P(e,t,t)}function P(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var L="function"==typeof Symbol&&Symbol.iterator,D="@@iterator",M=L||D;function j(e){this.next=e}function R(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function N(){return{value:void 0,done:!0}}function F(e){return!!K(e)}function B(e){return e&&"function"==typeof e.next}function U(e){var t=K(e);return t&&t.call(e)}function K(e){var t=e&&(L&&e[L]||e[D]);if("function"==typeof t)return t}function H(e){return e&&"number"==typeof e.length}function z(e){return null==e?ne():a(e)?e.toSeq():function(e){var t=ie(e)||"object"==typeof e&&new J(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function q(e){return null==e?ne().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():re(e)}function V(e){return null==e?ne():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():oe(e)}function G(e){return(null==e?ne():a(e)?s(e)?e.entrySeq():e:oe(e)).toSetSeq()}j.prototype.toString=function(){return"[Iterator]"},j.KEYS=0,j.VALUES=1,j.ENTRIES=2,j.prototype.inspect=j.prototype.toSource=function(){return this.toString()},j.prototype[M]=function(){return this},t(z,n),z.of=function(){return z(arguments)},z.prototype.toSeq=function(){return this},z.prototype.toString=function(){return this.__toString("Seq {","}")},z.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},z.prototype.__iterate=function(e,t){return ae(this,e,t,!0)},z.prototype.__iterator=function(e,t){return se(this,e,t,!0)},t(q,z),q.prototype.toKeyedSeq=function(){return this},t(V,z),V.of=function(){return V(arguments)},V.prototype.toIndexedSeq=function(){return this},V.prototype.toString=function(){return this.__toString("Seq [","]")},V.prototype.__iterate=function(e,t){return ae(this,e,t,!1)},V.prototype.__iterator=function(e,t){return se(this,e,t,!1)},t(G,z),G.of=function(){return G(arguments)},G.prototype.toSetSeq=function(){return this},z.isSeq=te,z.Keyed=q,z.Set=G,z.Indexed=V;var W,$,Y,X="@@__IMMUTABLE_SEQ__@@";function Z(e){this._array=e,this.size=e.length}function J(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function Q(e){this._iterable=e,this.size=e.length||e.size}function ee(e){this._iterator=e,this._iteratorCache=[]}function te(e){return!(!e||!e[X])}function ne(){return W||(W=new Z([]))}function re(e){var t=Array.isArray(e)?new Z(e).fromEntrySeq():B(e)?new ee(e).fromEntrySeq():F(e)?new Q(e).fromEntrySeq():"object"==typeof e?new J(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function oe(e){var t=ie(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ie(e){return H(e)?new Z(e):B(e)?new ee(e):F(e)?new Q(e):void 0}function ae(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function se(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new j(function(){var e=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:R(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function ce(e,t){return t?ue(t,e,"",{"":e}):le(e)}function ue(e,t,n,r){return Array.isArray(t)?e.call(r,n,V(t).map(function(n,r){return ue(e,n,r,t)})):de(t)?e.call(r,n,q(t).map(function(n,r){return ue(e,n,r,t)})):t}function le(e){return Array.isArray(e)?V(e).map(le).toList():de(e)?q(e).map(le).toMap():e}function de(e){return e&&(e.constructor===Object||void 0===e.constructor)}function fe(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function pe(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||c(e)!==c(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(l(e)){var r=e.entries();return t.every(function(e,t){var o=r.next().value;return o&&fe(o[1],e)&&(n||fe(o[0],t))})&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var d=!0,f=t.__iterate(function(t,r){if(n?!e.has(t):o?!fe(t,e.get(r,b)):!fe(e.get(r,b),t))return d=!1,!1});return d&&e.size===f}function he(e,t){if(!(this instanceof he))return new he(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if($)return $;$=this}}function ge(e,t){if(!e)throw new Error(t)}function ye(e,t,n){if(!(this instanceof ye))return new ye(e,t,n);if(ge(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Y)return Y;Y=this}}function me(){throw TypeError("Abstract")}function be(){}function ve(){}function we(){}z.prototype[X]=!0,t(Z,V),Z.prototype.get=function(e,t){return this.has(e)?this._array[k(this,e)]:t},Z.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},Z.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new j(function(){return o>r?{value:void 0,done:!0}:R(e,o,n[t?r-o++:o++])})},t(J,q),J.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},J.prototype.has=function(e){return this._object.hasOwnProperty(e)},J.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},J.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new j(function(){var a=r[t?o-i:i];return i++>o?{value:void 0,done:!0}:R(e,a,n[a])})},J.prototype[h]=!0,t(Q,V),Q.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=U(this._iterable),r=0;if(B(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},Q.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=U(this._iterable);if(!B(n))return new j(N);var r=0;return new j(function(){var t=n.next();return t.done?t:R(e,r++,t.value)})},t(ee,V),ee.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},ee.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new j(function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return R(e,o,r[o++])})},t(he,V),he.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},he.prototype.get=function(e,t){return this.has(e)?this._value:t},he.prototype.includes=function(e){return fe(this._value,e)},he.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:new he(this._value,I(t,n)-T(e,n))},he.prototype.reverse=function(){return this},he.prototype.indexOf=function(e){return fe(this._value,e)?0:-1},he.prototype.lastIndexOf=function(e){return fe(this._value,e)?this.size:-1},he.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},he.prototype.__iterator=function(e,t){var n=this,r=0;return new j(function(){return r<n.size?R(e,r++,n._value):{value:void 0,done:!0}})},he.prototype.equals=function(e){return e instanceof he?fe(this._value,e._value):pe(e)},t(ye,V),ye.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},ye.prototype.get=function(e,t){return this.has(e)?this._start+k(this,e)*this._step:t},ye.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},ye.prototype.slice=function(e,t){return A(e,t,this.size)?this:(e=T(e,this.size),(t=I(t,this.size))<=e?new ye(0,0):new ye(this.get(e,this._end),this.get(t,this._end),this._step))},ye.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},ye.prototype.lastIndexOf=function(e){return this.indexOf(e)},ye.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},ye.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new j(function(){var a=o;return o+=t?-r:r,i>n?{value:void 0,done:!0}:R(e,i++,a)})},ye.prototype.equals=function(e){return e instanceof ye?this._start===e._start&&this._end===e._end&&this._step===e._step:pe(this,e)},t(me,n),t(be,me),t(ve,me),t(we,me),me.Keyed=be,me.Indexed=ve,me.Set=we;var Se="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function xe(e){return e>>>1&1073741824|3221225471&e}function Ee(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return xe(n)}if("string"===t)return e.length>Pe?function(e){var t=Me[e];return void 0===t&&(t=_e(e),De===Le&&(De=0,Me={}),De++,Me[e]=t),t}(e):_e(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(Ae&&void 0!==(t=Ce.get(e)))return t;if(void 0!==(t=e[Ie]))return t;if(!ke){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ie]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++Te,1073741824&Te&&(Te=0),Ae)Ce.set(e,t);else{if(void 0!==Oe&&!1===Oe(e))throw new Error("Non-extensible objects are not allowed as keys.");if(ke)Object.defineProperty(e,Ie,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Ie]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ie]=t}}return t}(e);if("function"==typeof e.toString)return _e(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function _e(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return xe(t)}var Oe=Object.isExtensible,ke=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();var Ce,Ae="function"==typeof WeakMap;Ae&&(Ce=new WeakMap);var Te=0,Ie="__immutablehash__";"function"==typeof Symbol&&(Ie=Symbol(Ie));var Pe=16,Le=255,De=0,Me={};function je(e){ge(e!==1/0,"Cannot perform this action with an infinite size.")}function Re(e){return null==e?Xe():Ne(e)&&!l(e)?e:Xe().withMutations(function(t){var n=r(e);je(n.size),n.forEach(function(e,n){return t.set(n,e)})})}function Ne(e){return!(!e||!e[Be])}t(Re,be),Re.prototype.toString=function(){return this.__toString("Map {","}")},Re.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Re.prototype.set=function(e,t){return Ze(this,e,t)},Re.prototype.setIn=function(e,t){return this.updateIn(e,b,function(){return t})},Re.prototype.remove=function(e){return Ze(this,e,b)},Re.prototype.deleteIn=function(e){return this.updateIn(e,function(){return b})},Re.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Re.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=it(this,tn(e),t,n);return r===b?void 0:r},Re.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Xe()},Re.prototype.merge=function(){return tt(this,void 0,arguments)},Re.prototype.mergeWith=function(t){return tt(this,t,e.call(arguments,1))},Re.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,Xe(),function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]})},Re.prototype.mergeDeep=function(){return tt(this,nt,arguments)},Re.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return tt(this,rt(t),n)},Re.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,Xe(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]})},Re.prototype.sort=function(e){return At(qt(this,e))},Re.prototype.sortBy=function(e,t){return At(qt(this,t,e))},Re.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Re.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new E)},Re.prototype.asImmutable=function(){return this.__ensureOwner()},Re.prototype.wasAltered=function(){return this.__altered},Re.prototype.__iterator=function(e,t){return new Ge(this,e,t)},Re.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},Re.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ye(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Re.isMap=Ne;var Fe,Be="@@__IMMUTABLE_MAP__@@",Ue=Re.prototype;function Ke(e,t){this.ownerID=e,this.entries=t}function He(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function ze(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Ve(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function Ge(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&$e(e._root)}function We(e,t){return R(e,t[0],t[1])}function $e(e,t){return{node:e,index:0,__prev:t}}function Ye(e,t,n,r){var o=Object.create(Ue);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Xe(){return Fe||(Fe=Ye(0))}function Ze(e,t,n){var r,o;if(e._root){var i=S(v),a=S(w);if(r=Je(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===b?-1:1:0)}else{if(n===b)return e;o=1,r=new Ke(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Ye(o,r):Xe()}function Je(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===b?e:(x(s),x(a),new Ve(t,r,[o,i]))}function Qe(e){return e.constructor===Ve||e.constructor===qe}function et(e,t,n,r,o){if(e.keyHash===r)return new qe(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&m,s=(0===n?r:r>>>n)&m;return new He(t,1<<a|1<<s,a===s?[et(e,t,n+5,r,o)]:(i=new Ve(t,r,o),a<s?[e,i]:[i,e]))}function tt(e,t,n){for(var o=[],i=0;i<n.length;i++){var s=n[i],c=r(s);a(s)||(c=c.map(function(e){return ce(e)})),o.push(c)}return ot(e,t,o)}function nt(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):fe(e,t)?e:t}function rt(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return fe(t,o)?t:o}}function ot(e,t,n){return 0===(n=n.filter(function(e){return 0!==e.size})).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations(function(e){for(var r=t?function(n,r){e.update(r,b,function(e){return e===b?n:t(e,n,r)})}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)}):e.constructor(n[0])}function it(e,t,n,r){var o=e===b,i=t.next();if(i.done){var a=o?n:e,s=r(a);return s===a?e:s}ge(o||e&&e.set,"invalid keyPath");var c=i.value,u=o?b:e.get(c,b),l=it(u,t,n,r);return l===u?e:l===b?e.remove(c):(o?Xe():e).set(c,l)}function at(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e+=e>>8)+(e>>16)}function st(e,t,n,r){var o=r?e:_(e);return o[t]=n,o}Ue[Be]=!0,Ue[g]=Ue.remove,Ue.removeIn=Ue.deleteIn,Ke.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(fe(n,o[i][0]))return o[i][1];return r},Ke.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===b,c=this.entries,u=0,l=c.length;u<l&&!fe(r,c[u][0]);u++);var d=u<l;if(d?c[u][1]===o:s)return this;if(x(a),(s||!d)&&x(i),!s||1!==c.length){if(!d&&!s&&c.length>=ct)return function(e,t,n,r){e||(e=new E);for(var o=new Ve(e,Ee(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}(e,c,r,o);var f=e&&e===this.ownerID,p=f?c:_(c);return d?s?u===l-1?p.pop():p[u]=p.pop():p[u]=[r,o]:p.push([r,o]),f?(this.entries=p,this):new Ke(e,p)}},He.prototype.get=function(e,t,n,r){void 0===t&&(t=Ee(n));var o=1<<((0===e?t:t>>>e)&m),i=this.bitmap;return 0===(i&o)?r:this.nodes[at(i&o-1)].get(e+5,t,n,r)},He.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Ee(r));var s=(0===t?n:n>>>t)&m,c=1<<s,u=this.bitmap,l=0!==(u&c);if(!l&&o===b)return this;var d=at(u&c-1),f=this.nodes,p=l?f[d]:void 0,h=Je(p,e,t+5,n,r,o,i,a);if(h===p)return this;if(!l&&h&&f.length>=ut)return function(e,t,n,r,o){for(var i=0,a=new Array(y),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new ze(e,i+1,a)}(e,f,u,s,h);if(l&&!h&&2===f.length&&Qe(f[1^d]))return f[1^d];if(l&&h&&1===f.length&&Qe(h))return h;var g=e&&e===this.ownerID,v=l?h?u:u^c:u|c,w=l?h?st(f,d,h,g):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}(f,d,g):function(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}(f,d,h,g);return g?(this.bitmap=v,this.nodes=w,this):new He(e,v,w)},ze.prototype.get=function(e,t,n,r){void 0===t&&(t=Ee(n));var o=(0===e?t:t>>>e)&m,i=this.nodes[o];return i?i.get(e+5,t,n,r):r},ze.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Ee(r));var s=(0===t?n:n>>>t)&m,c=o===b,u=this.nodes,l=u[s];if(c&&!l)return this;var d=Je(l,e,t+5,n,r,o,i,a);if(d===l)return this;var f=this.count;if(l){if(!d&&--f<lt)return function(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,c=1,u=t.length;s<u;s++,c<<=1){var l=t[s];void 0!==l&&s!==r&&(o|=c,a[i++]=l)}return new He(e,o,a)}(e,u,f,s)}else f++;var p=e&&e===this.ownerID,h=st(u,s,d,p);return p?(this.count=f,this.nodes=h,this):new ze(e,f,h)},qe.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(fe(n,o[i][0]))return o[i][1];return r},qe.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Ee(r));var s=o===b;if(n!==this.keyHash)return s?this:(x(a),x(i),et(this,e,t,n,[r,o]));for(var c=this.entries,u=0,l=c.length;u<l&&!fe(r,c[u][0]);u++);var d=u<l;if(d?c[u][1]===o:s)return this;if(x(a),(s||!d)&&x(i),s&&2===l)return new Ve(e,this.keyHash,c[1^u]);var f=e&&e===this.ownerID,p=f?c:_(c);return d?s?u===l-1?p.pop():p[u]=p.pop():p[u]=[r,o]:p.push([r,o]),f?(this.entries=p,this):new qe(e,this.keyHash,p)},Ve.prototype.get=function(e,t,n,r){return fe(n,this.entry[0])?this.entry[1]:r},Ve.prototype.update=function(e,t,n,r,o,i,a){var s=o===b,c=fe(r,this.entry[0]);return(c?o===this.entry[1]:s)?this:(x(a),s?void x(i):c?e&&e===this.ownerID?(this.entry[1]=o,this):new Ve(e,this.keyHash,[r,o]):(x(i),et(this,e,t,Ee(r),[r,o])))},Ke.prototype.iterate=qe.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},He.prototype.iterate=ze.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Ve.prototype.iterate=function(e,t){return e(this.entry)},t(Ge,j),Ge.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return We(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return We(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return We(e,i.entry);t=this._stack=$e(i,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var ct=8,ut=16,lt=8;function dt(e){var t=St();if(null==e)return t;if(ft(e))return e;var n=o(e),r=n.size;return 0===r?t:(je(r),r>0&&r<y?wt(0,r,5,null,new gt(n.toArray())):t.withMutations(function(e){e.setSize(r),n.forEach(function(t,n){return e.set(n,t)})}))}function ft(e){return!(!e||!e[pt])}t(dt,ve),dt.of=function(){return this(arguments)},dt.prototype.toString=function(){return this.__toString("List [","]")},dt.prototype.get=function(e,t){if((e=k(this,e))>=0&&e<this.size){var n=_t(this,e+=this._origin);return n&&n.array[e&m]}return t},dt.prototype.set=function(e,t){return function(e,t,n){if((t=k(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?Ot(e,t).set(0,n):Ot(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,o=e._root,i=S(w);return t>=Ct(e._capacity)?r=xt(r,e.__ownerID,0,t,n,i):o=xt(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):wt(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},dt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},dt.prototype.insert=function(e,t){return this.splice(e,0,t)},dt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):St()},dt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Ot(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},dt.prototype.pop=function(){return Ot(this,0,-1)},dt.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){Ot(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},dt.prototype.shift=function(){return Ot(this,1)},dt.prototype.merge=function(){return kt(this,void 0,arguments)},dt.prototype.mergeWith=function(t){return kt(this,t,e.call(arguments,1))},dt.prototype.mergeDeep=function(){return kt(this,nt,arguments)},dt.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return kt(this,rt(t),n)},dt.prototype.setSize=function(e){return Ot(this,0,e)},dt.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:Ot(this,T(e,n),I(t,n))},dt.prototype.__iterator=function(e,t){var n=0,r=vt(this,t);return new j(function(){var t=r();return t===bt?{value:void 0,done:!0}:R(e,n++,t)})},dt.prototype.__iterate=function(e,t){for(var n,r=0,o=vt(this,t);(n=o())!==bt&&!1!==e(n,r++,this););return r},dt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?wt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},dt.isList=ft;var pt="@@__IMMUTABLE_LIST__@@",ht=dt.prototype;function gt(e,t){this.array=e,this.ownerID=t}ht[pt]=!0,ht[g]=ht.remove,ht.setIn=Ue.setIn,ht.deleteIn=ht.removeIn=Ue.removeIn,ht.update=Ue.update,ht.updateIn=Ue.updateIn,ht.mergeIn=Ue.mergeIn,ht.mergeDeepIn=Ue.mergeDeepIn,ht.withMutations=Ue.withMutations,ht.asMutable=Ue.asMutable,ht.asImmutable=Ue.asImmutable,ht.wasAltered=Ue.wasAltered,gt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&m;if(r>=this.array.length)return new gt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-5,n))===a&&i)return this}if(i&&!o)return this;var s=Et(this,e);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return o&&(s.array[r]=o),s},gt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&m;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-5,n))===i&&o===this.array.length-1)return this}var a=Et(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var yt,mt,bt={};function vt(e,t){var n=e._origin,r=e._capacity,o=Ct(r),i=e._tail;return a(e._root,e._level,0);function a(e,s,c){return 0===s?function(e,a){var s=a===o?i&&i.array:e&&e.array,c=a>n?0:n-a,u=r-a;return u>y&&(u=y),function(){if(c===u)return bt;var e=t?--u:c++;return s&&s[e]}}(e,c):function(e,o,i){var s,c=e&&e.array,u=i>n?0:n-i>>o,l=1+(r-i>>o);return l>y&&(l=y),function(){for(;;){if(s){var e=s();if(e!==bt)return e;s=null}if(u===l)return bt;var n=t?--l:u++;s=a(c&&c[n],o-5,i+(n<<o))}}}(e,s,c)}}function wt(e,t,n,r,o,i,a){var s=Object.create(ht);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function St(){return yt||(yt=wt(0,0,5))}function xt(e,t,n,r,o,i){var a,s=r>>>n&m,c=e&&s<e.array.length;if(!c&&void 0===o)return e;if(n>0){var u=e&&e.array[s],l=xt(u,t,n-5,r,o,i);return l===u?e:((a=Et(e,t)).array[s]=l,a)}return c&&e.array[s]===o?e:(x(i),a=Et(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function Et(e,t){return t&&e&&t===e.ownerID?e:new gt(e?e.array.slice():[],t)}function _t(e,t){if(t>=Ct(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&m],r-=5;return n}}function Ot(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new E,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var c=e._level,u=e._root,l=0;a+l<0;)u=new gt(u&&u.array.length?[void 0,u]:[],r),l+=1<<(c+=5);l&&(a+=l,o+=l,s+=l,i+=l);for(var d=Ct(i),f=Ct(s);f>=1<<c+5;)u=new gt(u&&u.array.length?[u]:[],r),c+=5;var p=e._tail,h=f<d?_t(e,s-1):f>d?new gt([],r):p;if(p&&f>d&&a<i&&p.array.length){for(var g=u=Et(u,r),y=c;y>5;y-=5){var b=d>>>y&m;g=g.array[b]=Et(g.array[b],r)}g.array[d>>>5&m]=p}if(s<i&&(h=h&&h.removeAfter(r,0,s)),a>=f)a-=f,s-=f,c=5,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||f<d){for(l=0;u;){var v=a>>>c&m;if(v!==f>>>c&m)break;v&&(l+=(1<<c)*v),c-=5,u=u.array[v]}u&&a>o&&(u=u.removeBefore(r,c,a-l)),u&&f<d&&(u=u.removeAfter(r,c,f-l)),l&&(a-=l,s-=l)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=c,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):wt(a,s,c,u,h)}function kt(e,t,n){for(var r=[],i=0,s=0;s<n.length;s++){var c=n[s],u=o(c);u.size>i&&(i=u.size),a(c)||(u=u.map(function(e){return ce(e)})),r.push(u)}return i>e.size&&(e=e.setSize(i)),ot(e,t,r)}function Ct(e){return e<y?0:e-1>>>5<<5}function At(e){return null==e?Pt():Tt(e)?e:Pt().withMutations(function(t){var n=r(e);je(n.size),n.forEach(function(e,n){return t.set(n,e)})})}function Tt(e){return Ne(e)&&l(e)}function It(e,t,n,r){var o=Object.create(At.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function Pt(){return mt||(mt=It(Xe(),St()))}function Lt(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),c=void 0!==s;if(n===b){if(!c)return e;a.size>=y&&a.size>=2*i.size?(r=(o=a.filter(function(e,t){return void 0!==e&&s!==t})).toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(c){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):It(r,o)}function Dt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Mt(e){this._iter=e,this.size=e.size}function jt(e){this._iter=e,this.size=e.size}function Rt(e){this._iter=e,this.size=e.size}function Nt(e){var t=Jt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Qt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new j(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(1===t?0:1,n)},t}function Ft(e,t,n){var r=Jt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,b);return i===b?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate(function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)},o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(2,o);return new j(function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return R(r,s,t.call(n,a[1],s,e),o)})},r}function Bt(e,t){var n=Jt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Nt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=Qt,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Ut(e,t,n,r){var o=Jt(e);return r&&(o.has=function(r){var o=e.get(r,b);return o!==b&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,b);return i!==b&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate(function(e,i,c){if(t.call(n,e,i,c))return s++,o(e,r?i:s-1,a)},i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(2,i),s=0;return new j(function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,u=c[0],l=c[1];if(t.call(n,l,u,e))return R(o,r?u:s++,l,i)}})},o}function Kt(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),A(t,n,o))return e;var i=T(t,o),a=I(n,o);if(i!=i||a!=a)return Kt(e.toSeq().cacheResult(),t,n,r);var s,c=a-i;c==c&&(s=c<0?0:c);var u=Jt(e);return u.size=0===s?s:e.size&&s||void 0,!r&&te(e)&&s>=0&&(u.get=function(t,n){return(t=k(this,t))>=0&&t<s?e.get(t+i,n):n}),u.__iterateUncached=function(t,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,c=!0,u=0;return e.__iterate(function(e,n){if(!c||!(c=a++<i))return u++,!1!==t(e,r?n:u-1,o)&&u!==s}),u},u.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var o=0!==s&&e.__iterator(t,n),a=0,c=0;return new j(function(){for(;a++<i;)o.next();if(++c>s)return{value:void 0,done:!0};var e=o.next();return r||1===t?e:R(t,c-1,0===t?void 0:e.value[1],e)})},u}function Ht(e,t,n,r){var o=Jt(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return e.__iterate(function(e,i,u){if(!s||!(s=t.call(n,e,i,u)))return c++,o(e,r?i:c-1,a)}),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(2,i),c=!0,u=0;return new j(function(){var e,i,l;do{if((e=s.next()).done)return r||1===o?e:R(o,u++,0===o?void 0:e.value[1],e);var d=e.value;i=d[0],l=d[1],c&&(c=t.call(n,l,i,a))}while(c);return 2===o?e:R(o,i,l,e)})},o}function zt(e,t,n){var r=Jt(e);return r.__iterateUncached=function(r,o){var i=0,s=!1;return function e(c,u){var l=this;c.__iterate(function(o,c){return(!t||u<t)&&a(o)?e(o,u+1):!1===r(o,n?c:i++,l)&&(s=!0),!s},o)}(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),s=[],c=0;return new j(function(){for(;i;){var e=i.next();if(!1===e.done){var u=e.value;if(2===r&&(u=u[1]),t&&!(s.length<t)||!a(u))return n?e:R(r,c++,u,e);s.push(i),i=u.__iterator(r,o)}else i=s.pop()}return{value:void 0,done:!0}})},r}function qt(e,t,n){t||(t=en);var r=s(e),o=0,i=e.toSeq().map(function(t,r){return[r,t,o++,n?n(t,r,e):t]}).toArray();return i.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?q(i):c(e)?V(i):G(i)}function Vt(e,t,n){if(t||(t=en),n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return Gt(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return Gt(t,e,n)?n:e})}function Gt(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function Wt(e,t,r){var o=Jt(e);return o.size=new Z(r).map(function(e){return e.size}).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map(function(e){return e=n(e),U(o?e.reverse():e)}),a=0,s=!1;return new j(function(){var n;return s||(n=i.map(function(e){return e.next()}),s=n.some(function(e){return e.done})),s?{value:void 0,done:!0}:R(e,a++,t.apply(null,n.map(function(e){return e.value})))})},o}function $t(e,t){return te(e)?t:e.constructor(t)}function Yt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Xt(e){return je(e.size),O(e)}function Zt(e){return s(e)?r:c(e)?o:i}function Jt(e){return Object.create((s(e)?q:c(e)?V:G).prototype)}function Qt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):z.prototype.cacheResult.call(this)}function en(e,t){return e>t?1:e<t?-1:0}function tn(e){var t=U(e);if(!t){if(!H(e))throw new TypeError("Expected iterable or array-like: "+e);t=U(n(e))}return t}function nn(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);(function(e,t){try{t.forEach(sn.bind(void 0,e))}catch(e){}})(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=Re(i)},o=r.prototype=Object.create(rn);return o.constructor=r,r}t(At,Re),At.of=function(){return this(arguments)},At.prototype.toString=function(){return this.__toString("OrderedMap {","}")},At.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},At.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Pt()},At.prototype.set=function(e,t){return Lt(this,e,t)},At.prototype.remove=function(e){return Lt(this,e,b)},At.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},At.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},At.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},At.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?It(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},At.isOrderedMap=Tt,At.prototype[h]=!0,At.prototype[g]=At.prototype.remove,t(Dt,q),Dt.prototype.get=function(e,t){return this._iter.get(e,t)},Dt.prototype.has=function(e){return this._iter.has(e)},Dt.prototype.valueSeq=function(){return this._iter.valueSeq()},Dt.prototype.reverse=function(){var e=this,t=Bt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Dt.prototype.map=function(e,t){var n=this,r=Ft(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Dt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?Xt(this):0,function(o){return e(o,t?--n:n++,r)}),t)},Dt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(1,t),r=t?Xt(this):0;return new j(function(){var o=n.next();return o.done?o:R(e,t?--r:r++,o.value,o)})},Dt.prototype[h]=!0,t(Mt,V),Mt.prototype.includes=function(e){return this._iter.includes(e)},Mt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},Mt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t),r=0;return new j(function(){var t=n.next();return t.done?t:R(e,r++,t.value,t)})},t(jt,G),jt.prototype.has=function(e){return this._iter.includes(e)},jt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},jt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new j(function(){var t=n.next();return t.done?t:R(e,t.value,t.value,t)})},t(Rt,q),Rt.prototype.entrySeq=function(){return this._iter.toSeq()},Rt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){Yt(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Rt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new j(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Yt(r);var o=a(r);return R(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}})},Mt.prototype.cacheResult=Dt.prototype.cacheResult=jt.prototype.cacheResult=Rt.prototype.cacheResult=Qt,t(nn,be),nn.prototype.toString=function(){return this.__toString(an(this)+" {","}")},nn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},nn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},nn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=on(this,Xe()))},nn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+an(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:on(this,n)},nn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:on(this,t)},nn.prototype.wasAltered=function(){return this._map.wasAltered()},nn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map(function(e,t){return n.get(t)}).__iterator(e,t)},nn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map(function(e,t){return n.get(t)}).__iterate(e,t)},nn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?on(this,t,e):(this.__ownerID=e,this._map=t,this)};var rn=nn.prototype;function on(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function an(e){return e._name||e.constructor.name||"Record"}function sn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){ge(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function cn(e){return null==e?gn():un(e)&&!l(e)?e:gn().withMutations(function(t){var n=i(e);je(n.size),n.forEach(function(e){return t.add(e)})})}function un(e){return!(!e||!e[dn])}rn[g]=rn.remove,rn.deleteIn=rn.removeIn=Ue.removeIn,rn.merge=Ue.merge,rn.mergeWith=Ue.mergeWith,rn.mergeIn=Ue.mergeIn,rn.mergeDeep=Ue.mergeDeep,rn.mergeDeepWith=Ue.mergeDeepWith,rn.mergeDeepIn=Ue.mergeDeepIn,rn.setIn=Ue.setIn,rn.update=Ue.update,rn.updateIn=Ue.updateIn,rn.withMutations=Ue.withMutations,rn.asMutable=Ue.asMutable,rn.asImmutable=Ue.asImmutable,t(cn,we),cn.of=function(){return this(arguments)},cn.fromKeys=function(e){return this(r(e).keySeq())},cn.prototype.toString=function(){return this.__toString("Set {","}")},cn.prototype.has=function(e){return this._map.has(e)},cn.prototype.add=function(e){return pn(this,this._map.set(e,!0))},cn.prototype.remove=function(e){return pn(this,this._map.remove(e))},cn.prototype.clear=function(){return pn(this,this._map.clear())},cn.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},cn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map(function(e){return i(e)});var n=this;return this.withMutations(function(e){n.forEach(function(n){t.every(function(e){return e.includes(n)})||e.remove(n)})})},cn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map(function(e){return i(e)});var n=this;return this.withMutations(function(e){n.forEach(function(n){t.some(function(e){return e.includes(n)})&&e.remove(n)})})},cn.prototype.merge=function(){return this.union.apply(this,arguments)},cn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},cn.prototype.sort=function(e){return yn(qt(this,e))},cn.prototype.sortBy=function(e,t){return yn(qt(this,t,e))},cn.prototype.wasAltered=function(){return this._map.wasAltered()},cn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate(function(t,r){return e(r,r,n)},t)},cn.prototype.__iterator=function(e,t){return this._map.map(function(e,t){return t}).__iterator(e,t)},cn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},cn.isSet=un;var ln,dn="@@__IMMUTABLE_SET__@@",fn=cn.prototype;function pn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function hn(e,t){var n=Object.create(fn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function gn(){return ln||(ln=hn(Xe()))}function yn(e){return null==e?Sn():mn(e)?e:Sn().withMutations(function(t){var n=i(e);je(n.size),n.forEach(function(e){return t.add(e)})})}function mn(e){return un(e)&&l(e)}fn[dn]=!0,fn[g]=fn.remove,fn.mergeDeep=fn.merge,fn.mergeDeepWith=fn.mergeWith,fn.withMutations=Ue.withMutations,fn.asMutable=Ue.asMutable,fn.asImmutable=Ue.asImmutable,fn.__empty=gn,fn.__make=hn,t(yn,cn),yn.of=function(){return this(arguments)},yn.fromKeys=function(e){return this(r(e).keySeq())},yn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},yn.isOrderedSet=mn;var bn,vn=yn.prototype;function wn(e,t){var n=Object.create(vn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Sn(){return bn||(bn=wn(Pt()))}function xn(e){return null==e?An():En(e)?e:An().unshiftAll(e)}function En(e){return!(!e||!e[On])}vn[h]=!0,vn.__empty=Sn,vn.__make=wn,t(xn,ve),xn.of=function(){return this(arguments)},xn.prototype.toString=function(){return this.__toString("Stack [","]")},xn.prototype.get=function(e,t){var n=this._head;for(e=k(this,e);n&&e--;)n=n.next;return n?n.value:t},xn.prototype.peek=function(){return this._head&&this._head.value},xn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Cn(e,t)},xn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;je(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Cn(t,n)},xn.prototype.pop=function(){return this.slice(1)},xn.prototype.unshift=function(){return this.push.apply(this,arguments)},xn.prototype.unshiftAll=function(e){return this.pushAll(e)},xn.prototype.shift=function(){return this.pop.apply(this,arguments)},xn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):An()},xn.prototype.slice=function(e,t){if(A(e,t,this.size))return this;var n=T(e,this.size);if(I(t,this.size)!==this.size)return ve.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Cn(r,o)},xn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Cn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},xn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},xn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new j(function(){if(r){var t=r.value;return r=r.next,R(e,n++,t)}return{value:void 0,done:!0}})},xn.isStack=En;var _n,On="@@__IMMUTABLE_STACK__@@",kn=xn.prototype;function Cn(e,t,n,r){var o=Object.create(kn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function An(){return _n||(_n=Cn(0))}function Tn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}kn[On]=!0,kn.withMutations=Ue.withMutations,kn.asMutable=Ue.asMutable,kn.asImmutable=Ue.asImmutable,kn.wasAltered=Ue.wasAltered,n.Iterator=j,Tn(n,{toArray:function(){je(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new Mt(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new Dt(this,!0)},toMap:function(){return Re(this.toKeyedSeq())},toObject:function(){je(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return At(this.toKeyedSeq())},toOrderedSet:function(){return yn(s(this)?this.valueSeq():this)},toSet:function(){return cn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new jt(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return xn(s(this)?this.valueSeq():this)},toList:function(){return dt(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return $t(this,function(e,t){var n=s(e),o=[e].concat(t).map(function(e){return a(e)?n&&(e=r(e)):e=n?re(e):oe(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&s(i)||c(e)&&c(i))return i}var u=new Z(o);return n?u=u.toKeyedSeq():c(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),u}(this,e.call(arguments,0)))},includes:function(e){return this.some(function(t){return fe(t,e)})},entries:function(){return this.__iterator(2)},every:function(e,t){je(this.size);var n=!0;return this.__iterate(function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1}),n},filter:function(e,t){return $t(this,Ut(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate(function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1}),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return je(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){je(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""}),t},keys:function(){return this.__iterator(0)},map:function(e,t){return $t(this,Ft(this,e,t))},reduce:function(e,t,n){var r,o;return je(this.size),arguments.length<2?o=!0:r=t,this.__iterate(function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return $t(this,Bt(this,!0))},slice:function(e,t){return $t(this,Kt(this,e,t,!0))},some:function(e,t){return!this.every(Mn(e),t)},sort:function(e){return $t(this,qt(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return O(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Re().asMutable();return e.__iterate(function(o,i){r.update(t.call(n,o,i,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return pe(this,e)},entrySeq:function(){var e=this;if(e._cache)return new Z(e._cache);var t=e.toSeq().map(Dn).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Mn(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(C)},flatMap:function(e,t){return $t(this,function(e,t,n){var r=Zt(e);return e.toSeq().map(function(o,i){return r(t.call(n,o,i,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return $t(this,zt(this,e,!0))},fromEntrySeq:function(){return new Rt(this)},get:function(e,t){return this.find(function(t,n){return fe(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,o=tn(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,b):b)===b)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=s(e),o=(l(e)?At():Re()).asMutable();e.__iterate(function(i,a){o.update(t.call(n,i,a,e),function(e){return(e=e||[]).push(r?[a,i]:i),e})});var i=Zt(e);return o.map(function(t){return $t(e,i(t))})}(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Ln).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return Vt(this,e)},maxBy:function(e,t){return Vt(this,t,e)},min:function(e){return Vt(this,e?jn(e):Fn)},minBy:function(e,t){return Vt(this,t?jn(t):Fn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return $t(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return $t(this,Ht(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Mn(e),t)},sortBy:function(e,t){return $t(this,qt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return $t(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return $t(this,function(e,t,n){var r=Jt(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate(function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)}),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(2,o),s=!0;return new j(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var o=e.value,c=o[0],u=o[1];return t.call(n,u,c,i)?2===r?e:R(r,c,u,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Mn(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=l(e),n=s(e),r=t?1:0;return function(e,t){return t=Se(t,3432918353),t=Se(t<<15|t>>>-15,461845907),t=Se(t<<13|t>>>-13,5),t=Se((t=(t+3864292196|0)^e)^t>>>16,2246822507),xe((t=Se(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+Bn(Ee(e),Ee(t))|0}:function(e,t){r=r+Bn(Ee(e),Ee(t))|0}:t?function(e){r=31*r+Ee(e)|0}:function(e){r=r+Ee(e)|0}),r)}(this))}});var In=n.prototype;In[d]=!0,In[M]=In.values,In.__toJS=In.toArray,In.__toStringMapper=Rn,In.inspect=In.toSource=function(){return this.toString()},In.chain=In.flatMap,In.contains=In.includes,function(){try{Object.defineProperty(In,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Tn(r,{flip:function(){return $t(this,Nt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey(function(t){return fe(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return fe(t,e)})},mapEntries:function(e,t){var n=this,r=0;return $t(this,this.toSeq().map(function(o,i){return e.call(t,[i,o],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return $t(this,this.toSeq().flip().map(function(r,o){return e.call(t,r,o,n)}).flip())}});var Pn=r.prototype;function Ln(e,t){return t}function Dn(e,t){return[t,e]}function Mn(e){return function(){return!e.apply(this,arguments)}}function jn(e){return function(){return-e.apply(this,arguments)}}function Rn(e){return"string"==typeof e?JSON.stringify(e):e}function Nn(){return _(arguments)}function Fn(e,t){return e<t?1:e>t?-1:0}function Bn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Pn[f]=!0,Pn[M]=In.entries,Pn.__toJS=In.toObject,Pn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Rn(e)},Tn(o,{toKeyedSeq:function(){return new Dt(this,!1)},filter:function(e,t){return $t(this,Ut(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return $t(this,Bt(this,!1))},slice:function(e,t){return $t(this,Kt(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=T(e,e<0?this.count():this.size);var r=this.slice(0,e);return $t(this,1===n?r:r.concat(_(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return $t(this,zt(this,e,!1))},get:function(e,t){return(e=k(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=k(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return $t(this,function(e,t){var n=Jt(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate(function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)},r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(1,r),a=0;return new j(function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?R(n,a++,t):R(n,a++,o.value,o)})},n}(this,e))},interleave:function(){var e=[this].concat(_(arguments)),t=Wt(this.toSeq(),V.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),$t(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return $t(this,Ht(this,e,t,!1))},zip:function(){return $t(this,Wt(this,Nn,[this].concat(_(arguments))))},zipWith:function(e){var t=_(arguments);return t[0]=this,$t(this,Wt(this,e,t))}}),o.prototype[p]=!0,o.prototype[h]=!0,Tn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=In.includes,Tn(q,r.prototype),Tn(V,o.prototype),Tn(G,i.prototype),Tn(be,r.prototype),Tn(ve,o.prototype),Tn(we,i.prototype),{Iterable:n,Seq:z,Collection:me,Map:Re,OrderedMap:At,List:dt,Stack:xn,Set:cn,OrderedSet:yn,Record:nn,Range:ye,Repeat:he,is:fe,fromJS:ce}}()},5963(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(4606);e=n.hmd(e);var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.A.Buffer:void 0,s=a?a.allocUnsafe:void 0;const c=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},7767(e,t,n){"use strict";n.d(t,{A:()=>r});const r="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis},9986(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(7767);e=n.hmd(e);var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.A.process;const s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}()},4606(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(7767),o="object"==typeof self&&self&&self.Object===Object&&self;const i=r.A||o||Function("return this")()},1719(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(4606);e=n.hmd(e);var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.A.Buffer:void 0;const s=(a?a.isBuffer:void 0)||function(){return!1}},5580(e,t,n){var r=n(6110)(n(9325),"DataView");e.exports=r},1549(e,t,n){var r=n(2032),o=n(3862),i=n(6721),a=n(2749),s=n(5749);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},79(e,t,n){var r=n(3702),o=n(80),i=n(4739),a=n(8655),s=n(1175);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},8223(e,t,n){var r=n(6110)(n(9325),"Map");e.exports=r},3661(e,t,n){var r=n(3040),o=n(7670),i=n(289),a=n(4509),s=n(2949);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},2804(e,t,n){var r=n(6110)(n(9325),"Promise");e.exports=r},6545(e,t,n){var r=n(6110)(n(9325),"Set");e.exports=r},8859(e,t,n){var r=n(3661),o=n(1380),i=n(1459);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},7217(e,t,n){var r=n(79),o=n(1420),i=n(938),a=n(3605),s=n(9817),c=n(945);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=c,e.exports=u},1873(e,t,n){var r=n(9325).Symbol;e.exports=r},7828(e,t,n){var r=n(9325).Uint8Array;e.exports=r},8303(e,t,n){var r=n(6110)(n(9325),"WeakMap");e.exports=r},1033(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},3729(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},9770(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},5325(e,t,n){var r=n(6131);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},9905(e){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},695(e,t,n){var r=n(8096),o=n(2428),i=n(6449),a=n(3656),s=n(361),c=n(7167),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),d=!n&&!l&&a(e),f=!n&&!l&&!d&&c(e),p=n||l||d||f,h=p?r(e.length,String):[],g=h.length;for(var y in e)!t&&!u.call(e,y)||p&&("length"==y||d&&("offset"==y||"parent"==y)||f&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,g))||h.push(y);return h}},4932(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},4528(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},882(e){e.exports=function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}},4248(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},1733(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},7805(e,t,n){var r=n(3360),o=n(5288);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},6547(e,t,n){var r=n(3360),o=n(5288),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},6025(e,t,n){var r=n(5288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},4733(e,t,n){var r=n(1791),o=n(5950);e.exports=function(e,t){return e&&r(t,o(t),e)}},3838(e,t,n){var r=n(1791),o=n(7241);e.exports=function(e,t){return e&&r(t,o(t),e)}},3360(e,t,n){var r=n(3243);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},9999(e,t,n){var r=n(7217),o=n(3729),i=n(6547),a=n(4733),s=n(3838),c=n(3290),u=n(3007),l=n(2271),d=n(8948),f=n(2),p=n(3349),h=n(5861),g=n(6189),y=n(7199),m=n(5529),b=n(6449),v=n(3656),w=n(7730),S=n(3805),x=n(8440),E=n(5950),_=n(7241),O="[object Arguments]",k="[object Function]",C="[object Object]",A={};A[O]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[C]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[k]=A["[object WeakMap]"]=!1,e.exports=function e(t,n,T,I,P,L){var D,M=1&n,j=2&n,R=4&n;if(T&&(D=P?T(t,I,P,L):T(t)),void 0!==D)return D;if(!S(t))return t;var N=b(t);if(N){if(D=g(t),!M)return u(t,D)}else{var F=h(t),B=F==k||"[object GeneratorFunction]"==F;if(v(t))return c(t,M);if(F==C||F==O||B&&!P){if(D=j||B?{}:m(t),!M)return j?d(t,s(D,t)):l(t,a(D,t))}else{if(!A[F])return P?t:{};D=y(t,F,M)}}L||(L=new r);var U=L.get(t);if(U)return U;L.set(t,D),x(t)?t.forEach(function(r){D.add(e(r,n,T,r,t,L))}):w(t)&&t.forEach(function(r,o){D.set(o,e(r,n,T,o,t,L))});var K=N?void 0:(R?j?p:f:j?_:E)(t);return o(K||t,function(r,o){K&&(r=t[o=r]),i(D,o,e(r,n,T,o,t,L))}),D}},9344(e,t,n){var r=n(3805),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},2523(e){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},3120(e,t,n){var r=n(4528),o=n(5891);e.exports=function e(t,n,i,a,s){var c=-1,u=t.length;for(i||(i=o),s||(s=[]);++c<u;){var l=t[c];n>0&&i(l)?n>1?e(l,n-1,i,a,s):r(s,l):a||(s[s.length]=l)}return s}},6649(e,t,n){var r=n(3221)();e.exports=r},7422(e,t,n){var r=n(1769),o=n(7797);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},2199(e,t,n){var r=n(4528),o=n(6449);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},2552(e,t,n){var r=n(1873),o=n(659),i=n(9350),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},8077(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},6131(e,t,n){var r=n(2523),o=n(5463),i=n(6959);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},7534(e,t,n){var r=n(2552),o=n(346);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},270(e,t,n){var r=n(7068),o=n(346);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},7068(e,t,n){var r=n(7217),o=n(5911),i=n(1986),a=n(689),s=n(5861),c=n(6449),u=n(3656),l=n(7167),d="[object Arguments]",f="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,y,m){var b=c(e),v=c(t),w=b?f:s(e),S=v?f:s(t),x=(w=w==d?p:w)==p,E=(S=S==d?p:S)==p,_=w==S;if(_&&u(e)){if(!u(t))return!1;b=!0,x=!1}if(_&&!x)return m||(m=new r),b||l(e)?o(e,t,n,g,y,m):i(e,t,w,n,g,y,m);if(!(1&n)){var O=x&&h.call(e,"__wrapped__"),k=E&&h.call(t,"__wrapped__");if(O||k){var C=O?e.value():e,A=k?t.value():t;return m||(m=new r),y(C,A,n,g,m)}}return!!_&&(m||(m=new r),a(e,t,n,g,y,m))}},9172(e,t,n){var r=n(5861),o=n(346);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},1799(e,t,n){var r=n(7217),o=n(270);e.exports=function(e,t,n,i){var a=n.length,s=a,c=!i;if(null==e)return!s;for(e=Object(e);a--;){var u=n[a];if(c&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var l=(u=n[a])[0],d=e[l],f=u[1];if(c&&u[2]){if(void 0===d&&!(l in e))return!1}else{var p=new r;if(i)var h=i(d,f,l,e,t,p);if(!(void 0===h?o(f,d,3,i,p):h))return!1}}return!0}},5463(e){e.exports=function(e){return e!=e}},5083(e,t,n){var r=n(1882),o=n(7296),i=n(3805),a=n(7473),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,d=u.hasOwnProperty,f=RegExp("^"+l.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:s).test(a(e))}},6038(e,t,n){var r=n(5861),o=n(346);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},4901(e,t,n){var r=n(2552),o=n(294),i=n(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},5389(e,t,n){var r=n(3663),o=n(7978),i=n(3488),a=n(6449),s=n(583);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},8984(e,t,n){var r=n(5527),o=n(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},2903(e,t,n){var r=n(3805),o=n(5527),i=n(181),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},3663(e,t,n){var r=n(1799),o=n(776),i=n(7197);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},7978(e,t,n){var r=n(270),o=n(8156),i=n(631),a=n(8586),s=n(756),c=n(7197),u=n(7797);e.exports=function(e,t){return a(e)&&s(t)?c(u(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},5250(e,t,n){var r=n(7217),o=n(7805),i=n(6649),a=n(2824),s=n(3805),c=n(7241),u=n(4974);e.exports=function e(t,n,l,d,f){t!==n&&i(n,function(i,c){if(f||(f=new r),s(i))a(t,n,c,l,e,d,f);else{var p=d?d(u(t,c),i,c+"",t,n,f):void 0;void 0===p&&(p=i),o(t,c,p)}},c)}},2824(e,t,n){var r=n(7805),o=n(3290),i=n(1961),a=n(3007),s=n(5529),c=n(2428),u=n(6449),l=n(3693),d=n(3656),f=n(1882),p=n(3805),h=n(1331),g=n(7167),y=n(4974),m=n(9884);e.exports=function(e,t,n,b,v,w,S){var x=y(e,n),E=y(t,n),_=S.get(E);if(_)r(e,n,_);else{var O=w?w(x,E,n+"",e,t,S):void 0,k=void 0===O;if(k){var C=u(E),A=!C&&d(E),T=!C&&!A&&g(E);O=E,C||A||T?u(x)?O=x:l(x)?O=a(x):A?(k=!1,O=o(E,!0)):T?(k=!1,O=i(E,!0)):O=[]:h(E)||c(E)?(O=x,c(x)?O=m(x):p(x)&&!f(x)||(O=s(E))):k=!1}k&&(S.set(E,O),v(O,E,b,w,S),S.delete(E)),r(e,n,O)}}},7237(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},7255(e,t,n){var r=n(7422);e.exports=function(e){return function(t){return r(t,e)}}},4552(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},9302(e,t,n){var r=n(3488),o=n(6757),i=n(2865);e.exports=function(e,t){return i(o(e,t,r),e+"")}},9570(e,t,n){var r=n(7334),o=n(3243),i=n(3488),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},5160(e){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},8096(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},7556(e,t,n){var r=n(1873),o=n(4932),i=n(6449),a=n(4394),s=r?r.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},4128(e,t,n){var r=n(1800),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},7301(e){e.exports=function(e){return function(t){return e(t)}}},5765(e,t,n){var r=n(8859),o=n(5325),i=n(9905),a=n(9219),s=n(4517),c=n(4247);e.exports=function(e,t,n){var u=-1,l=o,d=e.length,f=!0,p=[],h=p;if(n)f=!1,l=i;else if(d>=200){var g=t?null:s(e);if(g)return c(g);f=!1,l=a,h=new r}else h=t?[]:p;e:for(;++u<d;){var y=e[u],m=t?t(y):y;if(y=n||0!==y?y:0,f&&m==m){for(var b=h.length;b--;)if(h[b]===m)continue e;t&&h.push(m),p.push(y)}else l(h,m,n)||(h!==p&&h.push(m),p.push(y))}return p}},9931(e,t,n){var r=n(1769),o=n(8090),i=n(8969),a=n(7797);e.exports=function(e,t){return t=r(t,e),null==(e=i(e,t))||delete e[a(o(t))]}},514(e,t,n){var r=n(4932);e.exports=function(e,t){return r(t,function(t){return e[t]})}},9219(e){e.exports=function(e,t){return e.has(t)}},1769(e,t,n){var r=n(6449),o=n(8586),i=n(1802),a=n(3222);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},9653(e,t,n){var r=n(7828);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},3290(e,t,n){e=n.nmd(e);var r=n(9325),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},6169(e,t,n){var r=n(9653);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},3201(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},3736(e,t,n){var r=n(1873),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},1961(e,t,n){var r=n(9653);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},3007(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},1791(e,t,n){var r=n(6547),o=n(3360);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var u=t[s],l=i?i(n[u],e[u],u,n,e):void 0;void 0===l&&(l=e[u]),a?o(n,u,l):r(n,u,l)}return n}},2271(e,t,n){var r=n(1791),o=n(4664);e.exports=function(e,t){return r(e,o(e),t)}},8948(e,t,n){var r=n(1791),o=n(6375);e.exports=function(e,t){return r(e,o(e),t)}},5481(e,t,n){var r=n(9325)["__core-js_shared__"];e.exports=r},999(e,t,n){var r=n(9302),o=n(6800);e.exports=function(e){return r(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var c=n[r];c&&e(t,c,r,a)}return t})}},3221(e){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===n(i[c],c,i))break}return t}}},5539(e,t,n){var r=n(882),o=n(828),i=n(6645),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(i(o(t).replace(a,"")),e,"")}}},4517(e,t,n){var r=n(6545),o=n(3950),i=n(4247),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},3138(e,t,n){var r=n(1331);e.exports=function(e){return r(e)?void 0:e}},4647(e,t,n){var r=n(4552)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=r},3243(e,t,n){var r=n(6110),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},5911(e,t,n){var r=n(8859),o=n(4248),i=n(9219);e.exports=function(e,t,n,a,s,c){var u=1&n,l=e.length,d=t.length;if(l!=d&&!(u&&d>l))return!1;var f=c.get(e),p=c.get(t);if(f&&p)return f==t&&p==e;var h=-1,g=!0,y=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++h<l;){var m=e[h],b=t[h];if(a)var v=u?a(b,m,h,t,e,c):a(m,b,h,e,t,c);if(void 0!==v){if(v)continue;g=!1;break}if(y){if(!o(t,function(e,t){if(!i(y,t)&&(m===e||s(m,e,n,a,c)))return y.push(t)})){g=!1;break}}else if(m!==b&&!s(m,b,n,a,c)){g=!1;break}}return c.delete(e),c.delete(t),g}},1986(e,t,n){var r=n(1873),o=n(7828),i=n(5288),a=n(5911),s=n(317),c=n(4247),u=r?r.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var h=1&r;if(p||(p=c),e.size!=t.size&&!h)return!1;var g=f.get(e);if(g)return g==t;r|=2,f.set(e,t);var y=a(p(e),p(t),r,u,d,f);return f.delete(e),y;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},689(e,t,n){var r=n(2),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,s){var c=1&n,u=r(e),l=u.length;if(l!=r(t).length&&!c)return!1;for(var d=l;d--;){var f=u[d];if(!(c?f in t:o.call(t,f)))return!1}var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var g=!0;s.set(e,t),s.set(t,e);for(var y=c;++d<l;){var m=e[f=u[d]],b=t[f];if(i)var v=c?i(b,m,f,t,e,s):i(m,b,f,e,t,s);if(!(void 0===v?m===b||a(m,b,n,i,s):v)){g=!1;break}y||(y="constructor"==f)}if(g&&!y){var w=e.constructor,S=t.constructor;w==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof S&&S instanceof S||(g=!1)}return s.delete(e),s.delete(t),g}},8816(e,t,n){var r=n(5970),o=n(6757),i=n(2865);e.exports=function(e){return i(o(e,void 0,r),e+"")}},4840(e){var t="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis;e.exports=t},2(e,t,n){var r=n(2199),o=n(4664),i=n(5950);e.exports=function(e){return r(e,i,o)}},3349(e,t,n){var r=n(2199),o=n(6375),i=n(7241);e.exports=function(e){return r(e,i,o)}},2651(e,t,n){var r=n(4218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},776(e,t,n){var r=n(756),o=n(5950);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},6110(e,t,n){var r=n(5083),o=n(392);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},8879(e,t,n){var r=n(4335)(Object.getPrototypeOf,Object);e.exports=r},659(e,t,n){var r=n(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},4664(e,t,n){var r=n(9770),o=n(3345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return i.call(e,t)}))}:o;e.exports=s},6375(e,t,n){var r=n(4528),o=n(8879),i=n(4664),a=n(3345),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},5861(e,t,n){var r=n(5580),o=n(8223),i=n(2804),a=n(6545),s=n(8303),c=n(2552),u=n(7473),l="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",g=u(r),y=u(o),m=u(i),b=u(a),v=u(s),w=c;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=l||i&&w(i.resolve())!=d||a&&w(new a)!=f||s&&w(new s)!=p)&&(w=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case g:return h;case y:return l;case m:return d;case b:return f;case v:return p}return t}),e.exports=w},392(e){e.exports=function(e,t){return null==e?void 0:e[t]}},9326(e,t,n){var r=n(1769),o=n(2428),i=n(6449),a=n(361),s=n(294),c=n(7797);e.exports=function(e,t,n){for(var u=-1,l=(t=r(t,e)).length,d=!1;++u<l;){var f=c(t[u]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++u!=l?d:!!(l=null==e?0:e.length)&&s(l)&&a(f,l)&&(i(e)||o(e))}},5434(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},2032(e,t,n){var r=n(1042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},3862(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721(e,t,n){var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},2749(e,t,n){var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},5749(e,t,n){var r=n(1042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},6189(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},7199(e,t,n){var r=n(9653),o=n(6169),i=n(3201),a=n(3736),s=n(1961);e.exports=function(e,t,n){var c=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new c(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},5529(e,t,n){var r=n(9344),o=n(8879),i=n(5527);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},5891(e,t,n){var r=n(1873),o=n(2428),i=n(6449),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},361(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},6800(e,t,n){var r=n(5288),o=n(4894),i=n(361),a=n(3805);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},8586(e,t,n){var r=n(6449),o=n(4394),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},4218(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7296(e,t,n){var r,o=n(5481),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},5527(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},756(e,t,n){var r=n(3805);e.exports=function(e){return e==e&&!r(e)}},3702(e){e.exports=function(){this.__data__=[],this.size=0}},80(e,t,n){var r=n(6025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},4739(e,t,n){var r=n(6025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},8655(e,t,n){var r=n(6025);e.exports=function(e){return r(this.__data__,e)>-1}},1175(e,t,n){var r=n(6025);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},3040(e,t,n){var r=n(1549),o=n(79),i=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},7670(e,t,n){var r=n(2651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},289(e,t,n){var r=n(2651);e.exports=function(e){return r(this,e).get(e)}},4509(e,t,n){var r=n(2651);e.exports=function(e){return r(this,e).has(e)}},2949(e,t,n){var r=n(2651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},317(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},7197(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},2224(e,t,n){var r=n(104);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},1042(e,t,n){var r=n(6110)(Object,"create");e.exports=r},3650(e,t,n){var r=n(4335)(Object.keys,Object);e.exports=r},181(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},6009(e,t,n){e=n.nmd(e);var r=n(4840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},9350(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335(e){e.exports=function(e,t){return function(n){return e(t(n))}}},6757(e,t,n){var r=n(1033),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),c=Array(s);++a<s;)c[a]=i[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=i[a];return u[t]=n(c),r(e,this,u)}}},8969(e,t,n){var r=n(7422),o=n(5160);e.exports=function(e,t){return t.length<2?e:r(e,o(t,0,-1))}},9325(e,t,n){var r=n(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},4974(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},1380(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1459(e){e.exports=function(e){return this.__data__.has(e)}},4247(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},2865(e,t,n){var r=n(9570),o=n(1811)(r);e.exports=o},1811(e){var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},1420(e,t,n){var r=n(79);e.exports=function(){this.__data__=new r,this.size=0}},938(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},3605(e){e.exports=function(e){return this.__data__.get(e)}},9817(e){e.exports=function(e){return this.__data__.has(e)}},945(e,t,n){var r=n(79),o=n(8223),i=n(3661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},6959(e){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},1802(e,t,n){var r=n(2224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)}),t});e.exports=a},7797(e,t,n){var r=n(4394);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7473(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},1800(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},2225(e){var t="\\ud800-\\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",o="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+i+"]",s="\\d+",c="["+n+"]",u="["+r+"]",l="[^"+t+i+s+n+r+o+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",p="["+o+"]",h="(?:"+u+"|"+l+")",g="(?:"+p+"|"+l+")",y="(?:['’](?:d|ll|m|re|s|t|ve))?",m="(?:['’](?:D|LL|M|RE|S|T|VE))?",b="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",v="[\\ufe0e\\ufe0f]?",w=v+b+"(?:\\u200d(?:"+["[^"+t+"]",d,f].join("|")+")"+v+b+")*",S="(?:"+[c,d,f].join("|")+")"+w,x=RegExp([p+"?"+u+"+"+y+"(?="+[a,p,"$"].join("|")+")",g+"+"+m+"(?="+[a,p+h,"$"].join("|")+")",p+"?"+h+"+"+y,p+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,S].join("|"),"g");e.exports=function(e){return e.match(x)||[]}},7334(e){e.exports=function(e){return function(){return e}}},8221(e,t,n){var r=n(3805),o=n(124),i=n(9374),a=Math.max,s=Math.min;e.exports=function(e,t,n){var c,u,l,d,f,p,h=0,g=!1,y=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=c,r=u;return c=u=void 0,h=t,d=e.apply(r,n)}function v(e){var n=e-p;return void 0===p||n>=t||n<0||y&&e-h>=l}function w(){var e=o();if(v(e))return S(e);f=setTimeout(w,function(e){var n=t-(e-p);return y?s(n,l-(e-h)):n}(e))}function S(e){return f=void 0,m&&c?b(e):(c=u=void 0,d)}function x(){var e=o(),n=v(e);if(c=arguments,u=this,p=e,n){if(void 0===f)return function(e){return h=e,f=setTimeout(w,t),g?b(e):d}(p);if(y)return clearTimeout(f),f=setTimeout(w,t),b(p)}return void 0===f&&(f=setTimeout(w,t)),d}return t=i(t)||0,r(n)&&(g=!!n.leading,l=(y="maxWait"in n)?a(i(n.maxWait)||0,t):l,m="trailing"in n?!!n.trailing:m),x.cancel=function(){void 0!==f&&clearTimeout(f),h=0,c=p=u=f=void 0},x.flush=function(){return void 0===f?d:S(o())},x}},828(e,t,n){var r=n(4647),o=n(3222),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(i,r).replace(a,"")}},5288(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},5970(e,t,n){var r=n(3120);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},8156(e,t,n){var r=n(7422);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},631(e,t,n){var r=n(8077),o=n(9326);e.exports=function(e,t){return null!=e&&o(e,t,r)}},3488(e){e.exports=function(e){return e}},9859(e,t,n){var r=n(6131),o=n(4894),i=n(5015),a=n(1489),s=n(5880),c=Math.max;e.exports=function(e,t,n,u){e=o(e)?e:s(e),n=n&&!u?a(n):0;var l=e.length;return n<0&&(n=c(l+n,0)),i(e)?n<=l&&e.indexOf(t,n)>-1:!!l&&r(e,t,n)>-1}},2428(e,t,n){var r=n(7534),o=n(346),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},6449(e){var t=Array.isArray;e.exports=t},4894(e,t,n){var r=n(1882),o=n(294);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},3693(e,t,n){var r=n(4894),o=n(346);e.exports=function(e){return o(e)&&r(e)}},3656(e,t,n){e=n.nmd(e);var r=n(9325),o=n(9935),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||o;e.exports=c},2193(e,t,n){var r=n(8984),o=n(5861),i=n(2428),a=n(6449),s=n(4894),c=n(3656),u=n(5527),l=n(7167),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||l(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},1882(e,t,n){var r=n(2552),o=n(3805);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},7730(e,t,n){var r=n(9172),o=n(7301),i=n(6009),a=i&&i.isMap,s=a?o(a):r;e.exports=s},3805(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346(e){e.exports=function(e){return null!=e&&"object"==typeof e}},1331(e,t,n){var r=n(2552),o=n(8879),i=n(346),a=Function.prototype,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,l=c.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==l}},8440(e,t,n){var r=n(6038),o=n(7301),i=n(6009),a=i&&i.isSet,s=a?o(a):r;e.exports=s},5015(e,t,n){var r=n(2552),o=n(6449),i=n(346);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},4394(e,t,n){var r=n(2552),o=n(346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7167(e,t,n){var r=n(4901),o=n(7301),i=n(6009),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},5950(e,t,n){var r=n(695),o=n(8984),i=n(4894);e.exports=function(e){return i(e)?r(e):o(e)}},7241(e,t,n){var r=n(695),o=n(2903),i=n(4894);e.exports=function(e){return i(e)?r(e,!0):o(e)}},8090(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},5321(e,t,n){var r=n(5539)(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()});e.exports=r},104(e,t,n){var r=n(3661);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},5364(e,t,n){var r=n(5250),o=n(999)(function(e,t,n){r(e,t,n)});e.exports=o},6924(e,t,n){var r=n(5250),o=n(999)(function(e,t,n,o){r(e,t,n,o)});e.exports=o},3950(e){e.exports=function(){}},124(e,t,n){var r=n(9325);e.exports=function(){return r.Date.now()}},179(e,t,n){var r=n(4932),o=n(9999),i=n(9931),a=n(1769),s=n(1791),c=n(3138),u=n(8816),l=n(3349),d=u(function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,function(t){return t=a(t,e),u||(u=t.length>1),t}),s(e,l(e),n),u&&(n=o(n,7,c));for(var d=t.length;d--;)i(n,t[d]);return n});e.exports=d},583(e,t,n){var r=n(7237),o=n(7255),i=n(8586),a=n(7797);e.exports=function(e){return i(e)?r(a(e)):o(e)}},3345(e){e.exports=function(){return[]}},9935(e){e.exports=function(){return!1}},7400(e,t,n){var r=n(9374),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},1489(e,t,n){var r=n(7400);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},9374(e,t,n){var r=n(4128),o=n(3805),i=n(4394),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},9884(e,t,n){var r=n(1791),o=n(7241);e.exports=function(e){return r(e,o(e))}},3222(e,t,n){var r=n(7556);e.exports=function(e){return null==e?"":r(e)}},9786(e,t,n){var r=n(3120),o=n(5389),i=n(9302),a=n(5765),s=n(3693),c=n(8090),u=i(function(e){var t=c(e);return s(t)&&(t=void 0),a(r(e,1,s,!0),o(t,2))});e.exports=u},7200(e,t,n){var r=n(3222),o=0;e.exports=function(e){var t=++o;return r(e)+t}},5880(e,t,n){var r=n(514),o=n(5950);e.exports=function(e){return null==e?[]:r(e,o(e))}},6645(e,t,n){var r=n(1733),o=n(5434),i=n(3222),a=n(2225);e.exports=function(e,t,n){return e=i(e),void 0===(t=n?void 0:t)?o(e)?a(e):r(e):e.match(t)||[]}},5228(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,o){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var u in i=Object(arguments[c]))n.call(i,u)&&(s[u]=i[u]);if(t){a=t(i);for(var l=0;l<a.length;l++)r.call(i,a[l])&&(s[a[l]]=i[a[l]])}}return s}},115(e){"use strict";var t=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty,o="undefined"!=typeof Element;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){var s,c,u,l=t(e),d=t(a);if(l&&d){if((c=e.length)!=a.length)return!1;for(s=c;0!==s--;)if(!i(e[s],a[s]))return!1;return!0}if(l!=d)return!1;var f=e instanceof Date,p=a instanceof Date;if(f!=p)return!1;if(f&&p)return e.getTime()==a.getTime();var h=e instanceof RegExp,g=a instanceof RegExp;if(h!=g)return!1;if(h&&g)return e.toString()==a.toString();var y=n(e);if((c=y.length)!==n(a).length)return!1;for(s=c;0!==s--;)if(!r.call(a,y[s]))return!1;if(o&&e instanceof Element&&a instanceof Element)return e===a;for(s=c;0!==s--;)if(!("_owner"===(u=y[s])&&e.$$typeof||i(e[u],a[u])))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return i(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},2799(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case y:case g:case c:return e;default:return t}}case o:return t}}}function x(e){return S(e)===d}t.AsyncMode=l,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=c,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=y,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||S(e)===l},t.isConcurrentMode=x,t.isContextConsumer=function(e){return S(e)===u},t.isContextProvider=function(e){return S(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===f},t.isFragment=function(e){return S(e)===i},t.isLazy=function(e){return S(e)===y},t.isMemo=function(e){return S(e)===g},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===g||e.$$typeof===c||e.$$typeof===u||e.$$typeof===f||e.$$typeof===b||e.$$typeof===v||e.$$typeof===w||e.$$typeof===m)},t.typeOf=S},4363(e,t,n){"use strict";e.exports=n(2799)},7463(e,t){"use strict";var n,r,o,i,a;if(Object.defineProperty(t,"__esModule",{value:!0}),"undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,c=null,u=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(u,0),e}},l=Date.now();t.unstable_now=function(){return Date.now()-l},n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(u,0))},r=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},i=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,f=window.Date,p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var g=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var y=f.now();t.unstable_now=function(){return f.now()-y}}var m=!1,b=null,v=-1,w=5,S=0;i=function(){return t.unstable_now()>=S},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,E=x.port2;x.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();S=e+w;try{b(!0,e)?E.postMessage(null):(m=!1,b=null)}catch(e){throw E.postMessage(null),e}}else m=!1},n=function(e){b=e,m||(m=!0,E.postMessage(null))},r=function(e,n){v=p(function(){e(t.unstable_now())},n)},o=function(){h(v),v=-1}}function _(e,t){var n=e.length;e.push(t);e:for(;;){var r=Math.floor((n-1)/2),o=e[r];if(!(void 0!==o&&0<C(o,t)))break e;e[r]=t,e[n]=o,n=r}}function O(e){return void 0===(e=e[0])?null:e}function k(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],s=i+1,c=e[s];if(void 0!==a&&0>C(a,n))void 0!==c&&0>C(c,a)?(e[r]=c,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==c&&0>C(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var A=[],T=[],I=1,P=null,L=3,D=!1,M=!1,j=!1;function R(e){for(var t=O(T);null!==t;){if(null===t.callback)k(T);else{if(!(t.startTime<=e))break;k(T),t.sortIndex=t.expirationTime,_(A,t)}t=O(T)}}function N(e){if(j=!1,R(e),!M)if(null!==O(A))M=!0,n(F);else{var t=O(T);null!==t&&r(N,t.startTime-e)}}function F(e,n){M=!1,j&&(j=!1,o()),D=!0;var a=L;try{for(R(n),P=O(A);null!==P&&(!(P.expirationTime>n)||e&&!i());){var s=P.callback;if(null!==s){P.callback=null,L=P.priorityLevel;var c=s(P.expirationTime<=n);n=t.unstable_now(),"function"==typeof c?P.callback=c:P===O(A)&&k(A),R(n)}else k(A);P=O(A)}if(null!==P)var u=!0;else{var l=O(T);null!==l&&r(N,l.startTime-n),u=!1}return u}finally{P=null,L=a,D=!1}}function B(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var U=a;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=L;L=e;try{return t()}finally{L=n}},t.unstable_next=function(e){switch(L){case 1:case 2:case 3:var t=3;break;default:t=L}var n=L;L=t;try{return e()}finally{L=n}},t.unstable_scheduleCallback=function(e,i,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var c=a.delay;c="number"==typeof c&&0<c?s+c:s,a="number"==typeof a.timeout?a.timeout:B(e)}else a=B(e),c=s;return e={id:I++,callback:i,priorityLevel:e,startTime:c,expirationTime:a=c+a,sortIndex:-1},c>s?(e.sortIndex=c,_(T,e),null===O(A)&&e===O(T)&&(j?o():j=!0,r(N,c-s))):(e.sortIndex=a,_(A,e),M||D||(M=!0,n(F))),e},t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_wrapCallback=function(e){var t=L;return function(){var n=L;L=t;try{return e.apply(this,arguments)}finally{L=n}}},t.unstable_getCurrentPriorityLevel=function(){return L},t.unstable_shouldYield=function(){var e=t.unstable_now();R(e);var n=O(A);return n!==P&&null!==P&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<P.expirationTime||i()},t.unstable_requestPaint=U,t.unstable_continueExecution=function(){M||D||(M=!0,n(F))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return O(A)},t.unstable_Profiling=null},9982(e,t,n){"use strict";e.exports=n(7463)},2791(){!function(e){"use strict";if(!e.setImmediate){var t,n,r,o,i,a=1,s={},c=!1,u=e.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(e);l=l&&l.setTimeout?l:e,"[object process]"==={}.toString.call(e.process)?t=function(e){process.nextTick(function(){f(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(o="setImmediate$"+Math.random()+"$",i=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&f(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",i,!1):e.attachEvent("onmessage",i),t=function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){f(e.data)},t=function(e){r.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(n=u.documentElement,t=function(e){var t=u.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):t=function(e){setTimeout(f,0,e)},l.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var n=new Array(arguments.length-1),r=0;r<n.length;r++)n[r]=arguments[r+1];var o={callback:e,args:n};return s[a]=o,t(a),a++},l.clearImmediate=d}function d(e){delete s[e]}function f(e){if(c)setTimeout(f,0,e);else{var t=s[e];if(t){c=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{d(e),c=!1}}}}}("undefined"==typeof self?"undefined"==typeof globalThis?this:globalThis:self)},9423(e,t,n){"use strict";n.d(t,{A:()=>r}),e=n.hmd(e);const r=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:e)},818(e){e.exports=function(e,t){t=t||{};var n,r,o,i=e.ownerDocument||e,a=[],s=[],c=function(e){var t=[];function n(r,o){if(r===e.documentElement)return!1;for(var i=0,a=t.length;i<a;i++)if(t[i][0]===r)return t[i][1];var s=!1;return"none"===(o=o||e.defaultView.getComputedStyle(r)).display?s=!0:r.parentNode&&(s=n(r.parentNode)),t.push([r,s]),s}return function(t){if(t===e.documentElement)return!1;var r=e.defaultView.getComputedStyle(t);return!!n(t,r)||"hidden"===r.visibility}}(i),u=["input","select","a[href]","textarea","button","[tabindex]"],l=e.querySelectorAll(u.join(","));if(t.includeContainer){var d=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;u.some(function(t){return d.call(e,t)})&&(l=Array.prototype.slice.apply(l)).unshift(e)}for(var f=0,p=l.length;f<p;f++)n=l[f],r=parseInt(n.getAttribute("tabindex"),10),(o=isNaN(r)?n.tabIndex:r)<0||"INPUT"===n.tagName&&"hidden"===n.type||n.disabled||c(n,i)||(0===o?a.push(n):s.push({index:f,tabIndex:o,node:n}));var h=s.sort(function(e,t){return e.tabIndex===t.tabIndex?e.index-t.index:e.tabIndex-t.tabIndex}).map(function(e){return e.node});return Array.prototype.push.apply(h,a),h}},7232(e,t,n){var r;!function(o,i){"use strict";var a="function",s="object",c="model",u="name",l="type",d="vendor",f="version",p="architecture",h="console",g="mobile",y="tablet",m="smarttv",b="wearable",v={extend:function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:i},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},w={rgx:function(e,t){for(var n,r,o,c,u,l,d=0;d<t.length&&!u;){var f=t[d],p=t[d+1];for(n=r=0;n<f.length&&!u;)if(u=f[n++].exec(e))for(o=0;o<p.length;o++)l=u[++r],typeof(c=p[o])===s&&c.length>0?2==c.length?typeof c[1]==a?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3==c.length?typeof c[1]!==a||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):i:this[c[0]]=l?c[1].call(this,l,c[2]):i:4==c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):i):this[c]=l||i;d+=2}},str:function(e,t){for(var n in t)if(typeof t[n]===s&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(v.has(t[n][r],e))return"?"===n?i:n}else if(v.has(t[n],e))return"?"===n?i:n;return e}},S={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},x={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[u,f],[/(opios)[\/\s]+([\w\.]+)/i],[[u,"Opera Mini"],f],[/\s(opr)\/([\w\.]+)/i],[[u,"Opera"],f],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(bidubrowser|baidubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[u,f],[/(konqueror)\/([\w\.]+)/i],[[u,"Konqueror"],f],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[u,"IE"],f],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[u,"Edge"],f],[/(yabrowser)\/([\w\.]+)/i],[[u,"Yandex"],f],[/(Avast)\/([\w\.]+)/i],[[u,"Avast Secure Browser"],f],[/(AVG)\/([\w\.]+)/i],[[u,"AVG Secure Browser"],f],[/(puffin)\/([\w\.]+)/i],[[u,"Puffin"],f],[/(focus)\/([\w\.]+)/i],[[u,"Firefox Focus"],f],[/(opt)\/([\w\.]+)/i],[[u,"Opera Touch"],f],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[u,"UCBrowser"],f],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],f],[/(windowswechat qbcore)\/([\w\.]+)/i],[[u,"WeChat(Win) Desktop"],f],[/(micromessenger)\/([\w\.]+)/i],[[u,"WeChat"],f],[/(brave)\/([\w\.]+)/i],[[u,"Brave"],f],[/(qqbrowserlite)\/([\w\.]+)/i],[u,f],[/(QQ)\/([\d\.]+)/i],[u,f],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[u,f],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[u,f],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[u,f],[/(MetaSr)[\/\s]?([\w\.]+)/i],[u],[/(LBBROWSER)/i],[u],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[f,[u,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[f,[u,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[u,f],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[f,[u,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[u,/(.+)/,"$1 WebView"],f],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[u,/(.+(?:g|us))(.+)/,"$1 $2"],f],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[f,[u,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[u,"Sailfish Browser"],f],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[u,f],[/(dolfin)\/([\w\.]+)/i],[[u,"Dolphin"],f],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[u,"360 Browser"]],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[u,"Chrome"],f],[/(coast)\/([\w\.]+)/i],[[u,"Opera Coast"],f],[/fxios\/([\w\.-]+)/i],[f,[u,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[f,[u,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[f,u],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[u,"GSA"],f],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[u,[f,w.str,S.browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[u,f],[/(navigator|netscape)\/([\w\.-]+)/i],[[u,"Netscape"],f],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[u,f]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[p,"amd64"]],[/(ia32(?=;))/i],[[p,v.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[p,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[p,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[p,/ower/,"",v.lowerize]],[/(sun4\w)[;\)]/i],[[p,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[p,v.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[c,d,[l,y]],[/applecoremedia\/[\w\.]+ \((ipad)/],[c,[d,"Apple"],[l,y]],[/(apple\s{0,1}tv)/i],[[c,"Apple TV"],[d,"Apple"],[l,m]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[d,c,[l,y]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[c,[d,"Amazon"],[l,y]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[c,w.str,S.device.amazon.model],[d,"Amazon"],[l,g]],[/android.+aft([bms])\sbuild/i],[c,[d,"Amazon"],[l,m]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[c,d,[l,g]],[/\((ip[honed|\s\w*]+);/i],[c,[d,"Apple"],[l,g]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[d,c,[l,g]],[/\(bb10;\s(\w+)/i],[c,[d,"BlackBerry"],[l,g]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[c,[d,"Asus"],[l,y]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[d,"Sony"],[c,"Xperia Tablet"],[l,y]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[d,"Sony"],[l,g]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[d,c,[l,h]],[/android.+;\s(shield)\sbuild/i],[c,[d,"Nvidia"],[l,h]],[/(playstation\s[34portablevi]+)/i],[c,[d,"Sony"],[l,h]],[/(sprint\s(\w+))/i],[[d,w.str,S.device.sprint.vendor],[c,w.str,S.device.sprint.model],[l,g]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[d,[c,/_/g," "],[l,g]],[/(nexus\s9)/i],[c,[d,"HTC"],[l,y]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[c,[d,"Huawei"],[l,g]],[/android.+(bah2?-a?[lw]\d{2})/i],[c,[d,"Huawei"],[l,y]],[/(microsoft);\s(lumia[\s\w]+)/i],[d,c,[l,g]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[c,[d,"Microsoft"],[l,h]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[d,"Microsoft"],[l,g]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[c,[d,"Motorola"],[l,g]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[c,[d,"Motorola"],[l,y]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[d,v.trim],[c,v.trim],[l,m]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[d,"Samsung"],[l,m]],[/\(dtv[\);].+(aquos)/i],[c,[d,"Sharp"],[l,m]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[d,"Samsung"],c,[l,y]],[/smart-tv.+(samsung)/i],[d,[l,m],c],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[d,"Samsung"],c,[l,g]],[/sie-(\w*)/i],[c,[d,"Siemens"],[l,g]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[d,"Nokia"],c,[l,g]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[c,[d,"Acer"],[l,y]],[/android.+([vl]k\-?\d{3})\s+build/i],[c,[d,"LG"],[l,y]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[d,"LG"],c,[l,y]],[/(lg) netcast\.tv/i],[d,c,[l,m]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[c,[d,"LG"],[l,g]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[d,c,[l,y]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[c,[d,"Lenovo"],[l,y]],[/(lenovo)[_\s-]?([\w-]+)/i],[d,c,[l,g]],[/linux;.+((jolla));/i],[d,c,[l,g]],[/((pebble))app\/[\d\.]+\s/i],[d,c,[l,b]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[d,c,[l,g]],[/crkey/i],[[c,"Chromecast"],[d,"Google"],[l,m]],[/android.+;\s(glass)\s\d/i],[c,[d,"Google"],[l,b]],[/android.+;\s(pixel c)[\s)]/i],[c,[d,"Google"],[l,y]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[c,[d,"Google"],[l,g]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:a\d|one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[c,/_/g," "],[d,"Xiaomi"],[l,g]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[c,/_/g," "],[d,"Xiaomi"],[l,y]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[c,[d,"Meizu"],[l,g]],[/(mz)-([\w-]{2,})/i],[[d,"Meizu"],c,[l,g]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[c,[d,"OnePlus"],[l,g]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[c,[d,"RCA"],[l,y]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[c,[d,"Dell"],[l,y]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[c,[d,"Verizon"],[l,y]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[d,"Barnes & Noble"],c,[l,y]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[c,[d,"NuVision"],[l,y]],[/android.+;\s(k88)\sbuild/i],[c,[d,"ZTE"],[l,y]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[c,[d,"Swiss"],[l,g]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[c,[d,"Swiss"],[l,y]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[c,[d,"Zeki"],[l,y]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[d,"Dragon Touch"],c,[l,y]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[c,[d,"Insignia"],[l,y]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[c,[d,"NextBook"],[l,y]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[d,"Voice"],c,[l,g]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[d,"LvTel"],c,[l,g]],[/android.+;\s(PH-1)\s/i],[c,[d,"Essential"],[l,g]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[c,[d,"Envizen"],[l,y]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[d,c,[l,y]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[c,[d,"MachSpeed"],[l,y]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[d,c,[l,y]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[c,[d,"Rotor"],[l,y]],[/android.+(KS(.+))\s+build/i],[c,[d,"Amazon"],[l,y]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[d,c,[l,y]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[l,v.lowerize],d,c],[/[\s\/\(](smart-?tv)[;\)]/i],[[l,m]],[/(android[\w\.\s\-]{0,9});.+build/i],[c,[d,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[f,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[u,f],[/rv\:([\w\.]{1,9}).+(gecko)/i],[f,u]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[u,f],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[u,[f,w.str,S.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[u,"Windows"],[f,w.str,S.os.windows.version]],[/\((bb)(10);/i],[[u,"BlackBerry"],f],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[u,f],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[u,"Symbian"],f],[/\((series40);/i],[u],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[u,"Firefox OS"],f],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[u,f],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[u,"Chromium OS"],f],[/(sunos)\s?([\w\.\d]*)/i],[[u,"Solaris"],f],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[u,f],[/(haiku)\s(\w+)/i],[u,f],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[f,/_/g,"."],[u,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[u,"Mac OS"],[f,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[u,f]]},E=function(e,t){if("object"==typeof e&&(t=e,e=i),!(this instanceof E))return new E(e,t).getResult();var n=e||(o&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:""),r=t?v.extend(x,t):x;return this.getBrowser=function(){var e={name:i,version:i};return w.rgx.call(e,n,r.browser),e.major=v.major(e.version),e},this.getCPU=function(){var e={architecture:i};return w.rgx.call(e,n,r.cpu),e},this.getDevice=function(){var e={vendor:i,model:i,type:i};return w.rgx.call(e,n,r.device),e},this.getEngine=function(){var e={name:i,version:i};return w.rgx.call(e,n,r.engine),e},this.getOS=function(){var e={name:i,version:i};return w.rgx.call(e,n,r.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=e,this},this};E.VERSION="0.7.21",E.BROWSER={NAME:u,MAJOR:"major",VERSION:f},E.CPU={ARCHITECTURE:p},E.DEVICE={MODEL:c,VENDOR:d,TYPE:l,CONSOLE:h,MOBILE:g,SMARTTV:m,TABLET:y,WEARABLE:b,EMBEDDED:"embedded"},E.ENGINE={NAME:u,VERSION:f},E.OS={NAME:u,VERSION:f},void 0!==t?(e.exports&&(t=e.exports=E),t.UAParser=E):(r=function(){return E}.call(t,n,t,e))===i||(e.exports=r);var _=o&&(o.jQuery||o.Zepto);if(_&&!_.ua){var O=new E;_.ua=O.getResult(),_.ua.get=function(){return O.getUA()},_.ua.set=function(e){O.setUA(e);var t=O.getResult();for(var n in t)_.ua[n]=t[n]}}}("object"==typeof window?window:this)},2015(e){"use strict";e.exports=require("react")},2326(e){"use strict";e.exports=require("react-dom")}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.n=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.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(t,n,r){return(n=function(t){var n=function(t){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(n)?n:n+""}(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}n(9288);var r=n(8156),o=n.n(r),i=n(9423),a=function(){return Math.random().toString(36).substring(7).split("").join(".")},s={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function c(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(c)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var o=e,a=t,u=[],l=u,d=!1;function f(){l===u&&(l=u.slice())}function p(){if(d)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function h(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(d)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return f(),l.push(e),function(){if(t){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,f();var n=l.indexOf(e);l.splice(n,1),u=null}}}function g(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,a=o(a,e)}finally{d=!1}for(var t=u=l,n=0;n<t.length;n++)(0,t[n])();return e}return g({type:s.INIT}),(r={dispatch:g,subscribe:h,getState:p,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");o=e,g({type:s.REPLACE})}})[i.A]=function(){var e,t=h;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(p())}return n(),{unsubscribe:t(n)}}})[i.A]=function(){return this},e},r}function u(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function l(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(void 0,{type:s.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:s.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+s.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},s=0;s<a.length;s++){var c=a[s],l=n[c],d=e[c],f=l(d,t);if(void 0===f){var p=u(c,t);throw new Error(p)}o[c]=f,r=r||f!==d}return(r=r||a.length!==Object.keys(e).length)?o:e}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map(function(e){return e(o)});return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(n,!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},n,{dispatch:r=p.apply(void 0,i)(n.dispatch)})}}}function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(null,arguments)}function y(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function m(e){return!!e&&!!e[J]}function b(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return!t||t===Object.prototype}(e)||Array.isArray(e)||!!e[Z]||!!e.constructor[Z]||E(e)||_(e))}function v(e,t){0===w(e)?Q(e).forEach(function(n){return t(n,e[n],e)}):e.forEach(function(n,r){return t(r,n,e)})}function w(e){var t=e[J];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:E(e)?2:_(e)?3:0}function S(e,t){return 2===w(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function x(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function E(e){return W&&e instanceof Map}function _(e){return $&&e instanceof Set}function O(e){return e.o||e.t}function k(e,t){if(void 0===t&&(t=!1),Array.isArray(e))return e.slice();var n=Object.create(Object.getPrototypeOf(e));return v(e,function(r){if(r!==J){var o=Object.getOwnPropertyDescriptor(e,r),i=o.value;o.get&&(t||y(1),i=o.get.call(e)),o.enumerable?n[r]=i:Object.defineProperty(n,r,{value:i,writable:!0,configurable:!0})}}),n}function C(e,t){m(e)||Object.isFrozen(e)||!b(e)||(w(e)>1&&(e.set=e.add=e.clear=e.delete=A),Object.freeze(e),t&&v(e,function(e,t){return C(t,!0)}))}function A(){y(2)}function T(e){var t=ee[e];return t||y(19,e),t}function I(){return V}function P(e,t){t&&(T("Patches"),e.u=[],e.s=[],e.v=t)}function L(e){D(e),e.p.forEach(j),e.p=null}function D(e){e===V&&(V=e.l)}function M(e){return V={p:[],l:V,h:e,m:!0,_:0}}function j(e){var t=e[J];0===t.i||1===t.i?t.j():t.O=!0}function R(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||T("ES5").S(t,e,r),r?(n[J].P&&(L(t),y(4)),b(e)&&(e=N(t,e),t.l||B(t,e)),t.u&&T("Patches").M(n[J],e,t.u,t.s)):e=N(t,n,[]),L(t),t.u&&t.v(t.u,t.s),e!==X?e:void 0}function N(e,t,n){if(Object.isFrozen(t))return t;var r=t[J];if(!r)return v(t,function(o,i){return F(e,r,t,o,i,n)}),t;if(r.A!==e)return t;if(!r.P)return B(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=k(r.k,!0):r.o;v(o,function(t,i){return F(e,r,o,t,i,n)}),B(e,o,!1),n&&e.u&&T("Patches").R(r,n,e.u,e.s)}return r.o}function F(e,t,n,r,o,i){if(m(o)){var a=N(e,o,i&&t&&3!==t.i&&!S(t.D,r)?i.concat(r):void 0);if(c=r,u=a,2===(l=w(s=n))?s.set(c,u):3===l?(s.delete(c),s.add(u)):s[c]=u,!m(a))return;e.m=!1}var s,c,u,l;if((!t||!x(o,function(e,t){return 2===w(e)?e.get(t):e[t]}(t.t,r)))&&b(o)){if(!e.h.N&&e._<1)return;N(e,o),t&&t.A.l||B(e,o)}}function B(e,t,n){void 0===n&&(n=!1),e.h.N&&e.m&&C(t,n)}function U(e,t){var n=e[J],r=Reflect.getOwnPropertyDescriptor(n?O(n):e,t);return r&&r.value}function K(e){if(!e.P){if(e.P=!0,0===e.i||1===e.i){var t=e.o=k(e.t);v(e.p,function(e,n){t[e]=n}),e.p=void 0}e.l&&K(e.l)}}function H(e){e.o||(e.o=k(e.t))}function z(e,t,n){var r=E(t)?T("MapSet").T(t,n):_(t)?T("MapSet").F(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:I(),P:!1,I:!1,D:{},l:t,t:e,k:null,p:{},o:null,j:null,C:!1},o=r,i=te;n&&(o=[r],i=ne);var a=Proxy.revocable(o,i),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(t,n):T("ES5").J(t,n);return(n?n.A:I()).p.push(r),r}var q,V,G="undefined"!=typeof Symbol,W="undefined"!=typeof Map,$="undefined"!=typeof Set,Y="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,X=G?Symbol("immer-nothing"):((q={})["immer-nothing"]=!0,q),Z=G?Symbol("immer-draftable"):"__$immer_draftable",J=G?Symbol("immer-state"):"__$immer_state",Q=(G&&Symbol.iterator,"undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames),ee={},te={get:function(e,t){if(t===J)return e;var n=e.p;if(!e.P&&S(n,t))return n[t];var r=O(e)[t];if(e.I||!b(r))return r;if(e.P){if(r!==U(e.t,t))return r;n=e.o}return n[t]=z(e.A.h,r,e)},has:function(e,t){return t in O(e)},ownKeys:function(e){return Reflect.ownKeys(O(e))},set:function(e,t,n){if(!e.P){var r=U(e.t,t);if(n?x(r,n)||n===e.p[t]:x(r,n)&&t in e.t)return!0;H(e),K(e)}return e.D[t]=!0,e.o[t]=n,!0},deleteProperty:function(e,t){return void 0!==U(e.t,t)||t in e.t?(e.D[t]=!1,H(e),K(e)):e.D[t]&&delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=O(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&(r.writable=!0,r.configurable=1!==e.i||"length"!==t),r},defineProperty:function(){y(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){y(12)}},ne={};v(te,function(e,t){ne[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),ne.deleteProperty=function(e,t){return te.deleteProperty.call(this,e[0],t)},ne.set=function(e,t,n){return te.set.call(this,e[0],t,n,e[0])};var re=function(){function e(e){this.g=Y,this.N=!1,"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}var t=e.prototype;return t.produce=function(e,t,n){if("function"==typeof e&&"function"!=typeof t){var r=t;t=e;var o=this;return function(e){var n=this;void 0===e&&(e=r);for(var i=arguments.length,a=Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return o.produce(e,function(e){var r;return(r=t).call.apply(r,[n,e].concat(a))})}}var i;if("function"!=typeof t&&y(6),void 0!==n&&"function"!=typeof n&&y(7),b(e)){var a=M(this),s=z(this,e,void 0),c=!0;try{i=t(s),c=!1}finally{c?L(a):D(a)}return"undefined"!=typeof Promise&&i instanceof Promise?i.then(function(e){return P(a,n),R(e,a)},function(e){throw L(a),e}):(P(a,n),R(i,a))}if((i=t(e))!==X)return void 0===i&&(i=e),this.N&&C(i,!0),i},t.produceWithPatches=function(e,t){var n,r,o=this;return"function"==typeof e?function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return o.produceWithPatches(t,function(t){return e.apply(void 0,[t].concat(r))})}:[this.produce(e,t,function(e,t){n=e,r=t}),n,r]},t.createDraft=function(e){b(e)||y(8);var t=M(this),n=z(this,e,void 0);return n[J].C=!0,D(t),n},t.finishDraft=function(e,t){var n=(e&&e[J]).A;return P(n,t),R(void 0,n)},t.setAutoFreeze=function(e){this.N=e},t.setUseProxies=function(e){Y||y(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}var o=T("Patches").U;return m(e)?o(e,t):this.produce(e,function(e){return o(e,t.slice(n+1))})},e}(),oe=new re,ie=oe.produce;oe.produceWithPatches.bind(oe),oe.setAutoFreeze.bind(oe),oe.setUseProxies.bind(oe),oe.applyPatches.bind(oe),oe.createDraft.bind(oe),oe.finishDraft.bind(oe);const ae=ie;function se(e,t){return e===t}function ce(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}!function(){for(var e=arguments.length,t=Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n]}(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:se,n=null,r=null;return function(){return function(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}(t,n,arguments)||(r=e.apply(null,arguments)),n=arguments,r}});var ue=ce();ue.withExtraArgument=ce;const le=ue;function de(){return de=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},de.apply(this,arguments)}var fe="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?p:p.apply(null,arguments)};function pe(e){void 0===e&&(e={});var t=e,n=t.thunk,r=void 0===n||n,o=(t.immutableCheck,t.serializableCheck,[]);return r&&(function(e){return"boolean"==typeof e}(r)?o.push(le):o.push(le.withExtraArgument(r.extraArgument))),o}function he(e,t){function n(){if(t){var n=t.apply(void 0,arguments);if(!n)throw new Error("prepareAction did not return an object");return de({type:e,payload:n.payload},"meta"in n&&{meta:n.meta},{},"error"in n&&{error:n.error})}return{type:e,payload:arguments.length<=0?void 0:arguments[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}function ge(e,t){var n="function"==typeof t?function(e){var t={},n={addCase:function(e,r){var o="string"==typeof e?e:e.type;if(o in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[o]=r,n}};return e(n),t}(t):t;return function(t,r){return void 0===t&&(t=e),ae(t,function(e){var t=n[r.type];return t?t(e,r):void 0})}}"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var ye,me=["name","message","stack","code"],be=function(e){this.value=e},ve=function(e){if("object"==typeof e&&null!==e){var t={},n=me,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}var a=i;"string"==typeof e[a]&&(t[a]=e[a])}return t}return{message:String(e)}};function we(e,t,n){var r=he(e+"/fulfilled",function(e,t,n){return{payload:e,meta:{arg:n,requestId:t}}}),o=he(e+"/pending",function(e,t){return{payload:void 0,meta:{arg:t,requestId:e}}}),i=he(e+"/rejected",function(e,t,n,r){var o=!!e&&"AbortError"===e.name,i=!!e&&"ConditionError"===e.name;return{payload:r,error:ve(e||"Rejected"),meta:{arg:n,requestId:t,aborted:o,condition:i}}}),a="undefined"!=typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){}}}return e.prototype.abort=function(){},e}();return g(function(e){return function(s,c,u){var l,d=function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t}(),f=new a,p=new Promise(function(e,t){return f.signal.addEventListener("abort",function(){return t({name:"AbortError",message:l||"Aborted"})})});return g(function(){try{var a,l=function(e){return h?e:(n&&!n.dispatchConditionRejection&&i.match(a)&&a.meta.condition||s(a),a)},h=!1,g=function(l,h){try{var g=function(){if(n&&n.condition&&!1===n.condition(e,{getState:c,extra:u}))throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return s(o(d,e)),Promise.resolve(Promise.race([p,Promise.resolve(t(e,{dispatch:s,getState:c,extra:u,requestId:d,signal:f.signal,rejectWithValue:function(e){return new be(e)}})).then(function(t){return t instanceof be?i(null,d,e,t.value):r(t,d,e)})])).then(function(e){a=e})}()}catch(e){return h(e)}return g&&g.then?g.then(void 0,h):g}(0,function(t){a=i(t,d,e)});return Promise.resolve(g&&g.then?g.then(l):l(g))}catch(e){return Promise.reject(e)}}(),{abort:function(e){l=e,f.abort()}})}},{pending:o,rejected:i,fulfilled:r})}function Se(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}!function(){function e(e,t){var n=e[J];if(n&&!n.$){n.$=!0;var r=e[t];return n.$=!1,r}return e[t]}function t(e){e.P||(e.P=!0,e.l&&t(e.l))}function n(e){e.o||(e.o=r(e.t))}function r(e){var t=e&&e[J];if(t){t.$=!0;var n=k(t.k,!0);return t.$=!1,n}return k(e)}function o(e){for(var n=e.length-1;n>=0;n--){var r=e[n][J];if(!r.P)switch(r.i){case 5:a(r)&&t(r);break;case 4:i(r)&&t(r)}}}function i(e){for(var t=e.t,n=e.k,r=Object.keys(n),o=r.length-1;o>=0;o--){var i=r[o],a=t[i];if(void 0===a&&!S(t,i))return!0;var s=n[i],c=s&&s[J];if(c?c.t!==a:!x(s,a))return!0}return r.length!==Object.keys(t).length}function a(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);return!(!n||n.get)}function s(e){e.O&&y(3,JSON.stringify(O(e)))}var c={};!function(e,t){ee[e]=t}("ES5",{J:function(o,i){var a=Array.isArray(o),u=r(o);v(u,function(r){!function(r,o,i){var a=c[o];a?a.enumerable=i:c[o]=a={enumerable:i,get:function(){return function(t,r){s(t);var o=e(O(t),r);return t.$?o:o===e(t.t,r)&&b(o)?(n(t),t.o[r]=z(t.A.h,o,t)):o}(this[J],o)},set:function(r){!function(r,o,i){if(s(r),r.D[o]=!0,!r.P){if(x(i,e(O(r),o)))return;t(r),n(r)}r.o[o]=i}(this[J],o,r)}},Object.defineProperty(r,o,a)}(u,r,a||function(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!(!n||!n.enumerable)}(o,r))});var l={i:a?5:4,A:i?i.A:I(),P:!1,$:!1,I:!1,D:{},l:i,t:o,k:u,o:null,O:!1,C:!1};return Object.defineProperty(u,J,{value:l,writable:!0}),u},K:t,S:function(e,n,r){e.p.forEach(function(e){e[J].$=!0}),r?m(n)&&n[J].A===e&&o(e.p):(e.u&&function e(n){if(n&&"object"==typeof n){var r=n[J];if(r){var o=r.t,i=r.k,s=r.D,c=r.i;if(4===c)v(i,function(n){n!==J&&(void 0!==o[n]||S(o,n)?s[n]||e(i[n]):(s[n]=!0,t(r)))}),v(o,function(e){void 0!==i[e]||S(i,e)||(s[e]=!1,t(r))});else if(5===c){if(a(r)&&(t(r),s.length=!0),i.length<o.length)for(var u=i.length;u<o.length;u++)s[u]=!1;else for(var l=o.length;l<i.length;l++)s[l]=!0;for(var d=Math.min(i.length,o.length),f=0;f<d;f++)void 0===s[f]&&e(i[f])}}}}(e.p[0]),o(e.p))}})}();var xe=new Uint8Array(16);function Ee(){if(!ye&&!(ye="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ye(xe)}const _e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var Oe=[],ke=0;ke<256;++ke)Oe.push((ke+256).toString(16).substr(1));const Ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Oe[e[t+0]]+Oe[e[t+1]]+Oe[e[t+2]]+Oe[e[t+3]]+"-"+Oe[e[t+4]]+Oe[e[t+5]]+"-"+Oe[e[t+6]]+Oe[e[t+7]]+"-"+Oe[e[t+8]]+Oe[e[t+9]]+"-"+Oe[e[t+10]]+Oe[e[t+11]]+Oe[e[t+12]]+Oe[e[t+13]]+Oe[e[t+14]]+Oe[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&_e.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},Ae=function(e,t,n){var r=(e=e||{}).random||(e.rng||Ee)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return Ce(r)},Te=["paths"],Ie=["path_groups"],Pe=["target"];function Le(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 De(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Le(Object(r),!0).forEach(function(n){t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Me(e){let{paths:t}=e,n=Se(e,Te);return De({clientId:Ae(),paths:t.map(e=>De({clientId:Ae()},e))},n)}function je(e){const{target:{path_groups:t}}=e,n=Se(e.target,Ie),r=Se(e,Pe);return De({target:De({path_groups:t.map(e=>Me(e))},n)},r)}function Re({height:e,width:t,x:n,y:r}){return{x:n+t/2,y:r+e/2}}const Ne=e=>{if(!e||!e.length)return"";const t=e.map(({x:e,y:t},n,r)=>{if(0===n)return`M ${e} ${t}`;const o=r[n-1],i=r[n+1];return o&&i?`C ${(e+o.x)/2} ${(t+o.y)/2}, ${e} ${t}, ${(e+i.x)/2} ${(t+i.y)/2}`:""}).join(" ").trim();return t};function Fe(e){let t=0,n=0,r=Number.MAX_VALUE,o=Number.MAX_VALUE;return e.forEach(({paths:e})=>{e.forEach(({points:e})=>{e.forEach(({x:e,y:i})=>{t=Math.max(t,e),n=Math.max(n,i),r=Math.min(r,e),o=Math.min(o,i)})})}),{height:Math.max(0,n-o),width:Math.max(0,t-r),x:r===Number.MAX_VALUE?0:r,y:o===Number.MAX_VALUE?0:o}}function Be(e){return"drawing"===e?.target?.type}function Ue(e){return Re(Fe(e))}const Ke=-1;let He=function(e){return e.FRAME="frame",e.PAGE="page",e}({});const ze=({annotations:e})=>e.activeId,qe=({annotations:e},t)=>e.byId[t],Ve=({annotations:e})=>[...Object.values(e.byId)],Ge=(e,t)=>{const n=Ve(e);return t===Ke?n:n.filter(e=>o()(e,"target.location.value")===t)},We=({annotations:e})=>e.isInitialized,$e=he("SET_FIlE_ID"),Ye=he("SET_FILE_VERSION_ID"),Xe=he("SET_PERMISSIONS"),Ze=he("SET_ROTATION"),Je=he("SET_SCALE"),Qe=he("SET_VIEW_MODE"),et=ge({apiHost:"",features:{},fileId:null,fileVersionId:null,isCurrentFileVersion:!0,permissions:{},rotation:0,scale:1,token:"",viewMode:"annotations"},e=>e.addCase($e,(e,{payload:t})=>{e.fileId=t}).addCase(Ye,(e,{payload:t})=>{e.fileVersionId=t}).addCase(Xe,(e,{payload:t})=>{e.permissions=t}).addCase(Ze,(e,{payload:t})=>{e.rotation=t}).addCase(Je,(e,{payload:t})=>{e.scale=t}).addCase(Qe,(e,{payload:t})=>{e.viewMode=t})),tt=e=>e.options.apiHost,nt=e=>e.options.viewMode,rt=e=>e.options.fileId,ot=e=>e.options.fileVersionId,it=e=>e.options.isCurrentFileVersion,at=e=>e.options.permissions,st=e=>e.options.rotation,ct=e=>e.options.scale,ut=e=>e.options.token,lt=(e,t)=>o()((e=>e.options.features)(e),t,!1);function dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ft(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?dt(Object(r),!0).forEach(function(n){t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const pt=we("CREATE_ANNOTATION",async(e,{extra:t,getState:n,signal:r})=>{const o=t.api.getAnnotationsAPI(),i=n(),a=rt(i),s=ot(i),c=at(i);return r.addEventListener("abort",()=>{o.destroy()}),new Promise((t,n)=>{o.createAnnotation(a,s,e,c,t,n)})}),ht=we("FETCH_ANNOTATIONS",async(e,{extra:t,getState:n,signal:r})=>{const o=t.api.getAnnotationsAPI(),i=n(),a=rt(i),s=ot(i),c=at(i);r.addEventListener("abort",()=>{o.destroy()});const u=lt({options:n().options},"isThreadedAnnotation");return new Promise((e,t)=>{o.getAnnotations(a,s,c,e,t,1e3,!1,u)})}),gt=we("CREATE_REPLY",async({annotationId:e,message:t},{extra:n,getState:r,signal:o})=>{const i=n.api.getAnnotationsAPI(),a=r(),s=rt(a),c=at(a),u=qe(a,e),l=ft(ft({},c),u?.permissions);o.addEventListener("abort",()=>{i.destroy()});const d=await new Promise((n,r)=>{i.createAnnotationReply(s,e,l,t,n,r)});return{annotationId:e,reply:d}}),yt=we("DELETE_ANNOTATION",async(e,{extra:t,getState:n,signal:r})=>{const o=t.api.getAnnotationsAPI(),i=n(),a=rt(i),s=at(i),c=qe(i,e),u=ft(ft({},s),c?.permissions);return r.addEventListener("abort",()=>{o.destroy()}),await new Promise((t,n)=>{o.deleteAnnotation(a,e,u,t,n)}),e}),mt=we("UPDATE_ANNOTATION",async({annotationId:e,payload:t},{extra:n,getState:r,signal:o})=>{const i=n.api.getAnnotationsAPI(),a=r(),s=rt(a),c=at(a),u=qe(a,e),l=ft(ft({},c),u?.permissions);return o.addEventListener("abort",()=>{i.destroy()}),new Promise((n,r)=>{i.updateAnnotation(s,e,l,t,n,r)})}),bt=he("REMOVE_ANNOTATION"),vt=he("SET_ACTIVE_ANNOTATION_ID"),wt=he("SET_IS_INITIALIZED"),St=l({activeId:ge(null,e=>e.addCase(pt.fulfilled,()=>null).addCase(yt.fulfilled,(e,{payload:t})=>e===t?null:e).addCase(bt,(e,{payload:t})=>e===t?null:e).addCase(vt,(e,{payload:t})=>t).addCase(Qe,(e,{payload:t})=>"boundingBoxes"===t?null:e)),allIds:ge([],e=>e.addCase(pt.fulfilled,(e,{payload:{id:t}})=>{e.push(t)}).addCase(yt.fulfilled,(e,{payload:t})=>e.filter(e=>e!==t)).addCase(bt,(e,{payload:t})=>e.filter(e=>e!==t)).addCase(ht.fulfilled,(e,{payload:t})=>{t.entries.forEach(({id:t})=>-1===e.indexOf(t)&&e.push(t))})),byId:ge({},e=>e.addCase(pt.fulfilled,(e,{payload:t})=>{e[t.id]=Be(t)?je(t):t}).addCase(gt.fulfilled,(e,{payload:{annotationId:t,reply:n}})=>{const r=e[t];r&&(r.replies=[...r.replies??[],n])}).addCase(yt.fulfilled,(e,{payload:t})=>{delete e[t]}).addCase(bt,(e,{payload:t})=>{delete e[t]}).addCase(mt.fulfilled,(e,{payload:t})=>{e[t.id]=Be(t)?je(t):t}).addCase(ht.fulfilled,(e,{payload:t})=>{t.entries.forEach(t=>{e[t.id]=Be(t)?je(t):t})})),isInitialized:ge(!1,e=>{e.addCase(wt,()=>!0)})}),xt="#fff",Et="#0061d5",_t="#909090";let Ot=function(e){return e.DRAWING="drawing",e.HIGHLIGHT="highlight",e.NONE="none",e.REGION="region",e}({});const kt=he("SET_COLOR"),Ct=he("TOGGLE_ANNOTATION_MODE"),At=ge({color:Et,mode:Ot.NONE},e=>e.addCase(kt,(e,{payload:t})=>{e.color=t}).addCase(Ct,(e,{payload:t})=>{e.mode=t})),Tt=({common:e})=>e.mode,It=e=>e.common.color;let Pt=function(e){return e.init="init",e.pending="pending",e.rejected="rejected",e.staged="staged",e.started="started",e}({});const Lt=he("RESET_CREATOR"),Dt=he("SET_CREATOR_CURSOR"),Mt=he("SET_CREATOR_MESSAGE"),jt=he("SET_CREATOR_REFERENCE_ID"),Rt=he("SET_CREATOR_STAGED"),Nt=he("SET_CREATOR_STATUS"),Ft={cursor:0,error:null,message:"",referenceId:null,staged:null,status:Pt.init},Bt=ge(Ft,e=>e.addCase(pt.fulfilled,()=>Ft).addCase(pt.pending,e=>{e.error=null,e.status=Pt.pending}).addCase(pt.rejected,(e,{error:t})=>{e.error=t,e.status=Pt.rejected}).addCase(Lt,e=>{e.message="",e.referenceId=null,e.staged=null,e.status=Pt.init}).addCase(Mt,(e,{payload:t})=>{e.message=t}).addCase(jt,(e,{payload:t})=>{e.referenceId=t}).addCase(Rt,(e,{payload:t})=>{e.staged=t}).addCase(Nt,(e,{payload:t})=>{e.status=t}).addCase(Dt,(e,{payload:t})=>{e.cursor=t}).addCase(Ct,()=>Ft)),Ut=e=>e.creator.cursor,Kt=e=>e.creator.message,Ht=e=>e.creator.referenceId,zt=e=>e.creator.staged,qt=(e,t)=>{const n=zt(e);return t===Ke||n&&n.location===t?n:null},Vt=e=>e.creator.status,Gt=e=>void 0!==e?.pathGroups,Wt=e=>void 0!==e?.shapes,$t=e=>void 0!==e?.shape,Yt=he("ADD_DRAWING_PATH_GROUP",e=>({payload:Me(e)})),Xt=he("REDO_DRAWING_PATH_GROUP"),Zt=he("RESET_DRAWING"),Jt=he("SET_DRAWING_LOCATION"),Qt=he("UNDO_DRAWING_PATH_GROUP"),en={drawnPathGroups:[],location:0,stashedPathGroups:[]},tn=ge(en,e=>e.addCase(pt.fulfilled,()=>en).addCase(Yt,(e,{payload:t})=>{e.drawnPathGroups.push(t),e.stashedPathGroups=[]}).addCase(Xt,e=>{const t=e.stashedPathGroups.pop();t&&e.drawnPathGroups.push(t)}).addCase(Lt,()=>en).addCase(Zt,()=>en).addCase(Jt,(e,{payload:t})=>{e.location!==t&&(e.location=t,e.drawnPathGroups=[])}).addCase(Ct,()=>en).addCase(Qt,e=>{const t=e.drawnPathGroups.pop();t&&e.stashedPathGroups.push(t)})),nn=(e,t)=>e.drawing.location===t?e.drawing.drawnPathGroups:[],rn=(e,t)=>e.drawing.location===t?e.drawing.stashedPathGroups:[];let on=function(e){return e.CAN_CREATE_ANNOTATIONS="can_create_annotations",e.CAN_VIEW_ANNOTATIONS="can_view_annotations",e}({});var an=function(e){return e.ACTIVE_CHANGE="annotations_active_change",e.ACTIVE_SET="annotations_active_set",e.CREATOR_STAGED_CHANGE="creator_staged_change",e.CREATOR_STATUS_CHANGE="creator_status_change",e.ANNOTATION_CREATE="annotations_create",e.ANNOTATION_FETCH_ERROR="annotations_fetch_error",e.ANNOTATION_REMOVE="annotations_remove",e.ANNOTATIONS_INITIALIZED="annotations_initialized",e.ANNOTATIONS_MODE_CHANGE="annotations_mode_change",e.COLOR_SET="annotations_color_set",e.BOUNDING_BOX_HIGHLIGHTS_SET="bounding_box_highlights_set",e.BOUNDING_BOX_HIGHLIGHT_NAVIGATE="bounding_box_highlight_navigate",e.BOUNDING_BOX_HIGHLIGHT_SELECT="bounding_box_highlight_select",e.VISIBLE_SET="annotations_visible_set",e.VIEW_MODE_SET="view_mode_set",e}(an||{}),sn=function(e){return e.ANNOTATOR="annotatorevent",e.ERROR="annotationerror",e.SCALE="scaleannotations",e}(sn||{});n(2521);let cn=function(e){return e.highlight="highlight",e.region="region",e}({});const un=e=>{let t=Number.MAX_VALUE,n=Number.MAX_VALUE,r=Number.NEGATIVE_INFINITY,o=Number.NEGATIVE_INFINITY;return e.forEach(({height:e,width:i,x:a,y:s})=>{const c=a+i,u=s+e;0!==i&&0!==e&&(a<t&&(t=a),s<n&&(n=s),c>r&&(r=c),u>o&&(o=u))}),{x:t,y:n,width:r-t,height:o-n}};function ln(e){return e?.target?.type===cn.highlight}const dn=(e,t,n)=>Math.max(Math.round(e*n),Math.round(t*n),1),fn=e=>{const t=[];return((e,t=.1)=>{const n=[];return e.forEach(e=>{const r=n.pop();if(!r)return void n.push(e);const{width:o,height:i,x:a,y:s}=r,{width:c,height:u,x:l,y:d}=e,f=dn(o,c,t),p=dn(i,u,t);Math.abs(a-l)<=f&&Math.abs(s-d)<=p?n.push(i*o>u*c?r:e):(n.push(r),n.push(e))}),n})(e).forEach(e=>{const{height:n,width:r,x:o,y:i}=e;if(0===r||0===n)return;const a=t.pop();if(!a)return void t.push(e);const{height:s,width:c,x:u,y:l}=a,d=u+c,f=dn(c,r,.3),p=dn(s,n,.6),h=Math.abs(o-d)<f,g=Math.abs(i-l)<p;h&&g?t.push(un([a,e])):(t.push(a),t.push(e))}),t},pn={height:100,width:100},hn=({x:e,y:t},n)=>({x:e,y:n>0?n-t:t}),gn=({x:e,y:t},n)=>{const r=n*Math.PI/180,o=Math.cos(r),i=Math.sin(r);return{x:e*o-t*i,y:e*i+t*o}};function yn({x:e,y:t},n){const{x:r,y:o}=function(e,t){const{height:n,width:r}=e,{height:o,width:i}=pn,a=t%180==0,s=t%360==0,c=function(e,t){const{height:n,width:r}=e;switch(t){case-90:return{dx:n};case-180:return{dx:r,dy:n};case-270:return{dy:r}}return{dx:0,dy:0}}(pn,t),u=function(e,t){const[n,r,o,i]=(e=>{const{height:t,width:n,x:r,y:o}=e;return[{x:r,y:o},{x:r+n,y:o},{x:r+n,y:o+t},{x:r,y:o+t}]})(e);switch(t){case-90:return r;case-180:return o;case-270:return i;default:return n}}(e,t);if(s)return e;const l=hn(u,o),d=(({x:e,y:t},{dx:n=0,dy:r=0})=>({x:e+n,y:t+r}))(gn(l,-t),c),{x:f,y:p}=hn(d,a?o:i);return{height:a?n:r,width:a?r:n,x:f,y:p}}({height:0,width:0,x:e,y:t},n);return{x:r,y:o}}function mn(e,t,n,r){if(!n)return[e,t];const o=n.getBoundingClientRect();if(!r)return[e-o.left,t-o.top];const i=o.left+o.width/2,a=o.top+o.height/2,s=gn({x:e-i,y:t-a},-r);return[s.x+n.offsetWidth/2,s.y+n.offsetHeight/2]}const bn=({height:e,left:t,top:n,width:r})=>({height:e,width:r,x:t,y:n}),vn=he("SET_SELECTION",e=>{if(!e)return{payload:null};const{containerEl:t,containerRect:n,hasError:r,location:o,range:i,rotation:a}=e;let s=Array.from(i.getClientRects());s.length||(s=(e=>{const t=document.createNodeIterator(e.commonAncestorContainer,NodeFilter.SHOW_ALL,function(){return NodeFilter.FILTER_ACCEPT},!1),n=document.createRange(),r=[];let o=t.nextNode();for(;o;)if(0!==r.length||o===e.startContainer){if(o.nodeType===Node.TEXT_NODE&&(n.selectNodeContents(o),o===e.startContainer&&n.setStart(o,e.startOffset),o===e.endContainer&&n.setEnd(o,e.endOffset),r.push(n.getBoundingClientRect())),o===e.endContainer)break;o=t.nextNode()}else o=t.nextNode();return r})(i));const c=s.map(bn);if(a&&t){const e=c.map(e=>{const[n,r]=mn(e.x,e.y,t,a),[o,i]=mn(e.x+e.width,e.y+e.height,t,a);return{x:Math.min(n,o),y:Math.min(r,i),width:Math.abs(o-n),height:Math.abs(i-r)}});return{payload:{containerRect:{x:0,y:0,width:t.offsetWidth,height:t.offsetHeight},hasError:r,location:o,popupRect:un(c),rects:fn(e)}}}return{payload:{containerRect:bn(n),hasError:r,location:o,rects:fn(c)}}}),wn=he("SET_IS_PROMOTING"),Sn=he("SET_IS_SELECTING"),xn=ge({isPromoting:!1,isSelecting:!1,selection:null},e=>e.addCase(wn,(e,{payload:t})=>{e.isPromoting=t}).addCase(Sn,(e,{payload:t})=>{e.isSelecting=t}).addCase(vn,(e,{payload:t})=>{e.selection=t}).addCase(pt.fulfilled,e=>{e.isPromoting=!1}).addCase(Lt,e=>{e.isPromoting=!1}).addCase(Ct,e=>{e.isPromoting=!1}).addCase(Nt,e=>{e.selection=null})),En=e=>e.highlight.isPromoting,_n=e=>e.highlight.isSelecting,On=(e,t)=>{const n=(e=>e.highlight.selection)(e);return n&&n.location===t?n:null},kn=he("SET_BOUNDING_BOX_HIGHLIGHTS"),Cn=he("SET_SELECTED_BOUNDING_BOX_HIGHLIGHT"),An=he("NAVIGATE_BOUNDING_BOX_HIGHLIGHT"),Tn=ge({boundingBoxes:[],selectedId:null},e=>{e.addCase(kn,(e,{payload:t})=>{e.boundingBoxes=t,e.selectedId=null}).addCase(Cn,(e,{payload:t})=>{e.selectedId=t}).addCase(An,(e,{payload:t})=>{e.selectedId=t}).addCase(Qe,(e,{payload:t})=>{"annotations"===t&&(e.selectedId=null)})}),In=({boundingBoxHighlights:e})=>e.boundingBoxes,Pn=({boundingBoxHighlights:e},t)=>e.boundingBoxes.filter(e=>e.pageNumber===t),Ln=({boundingBoxHighlights:e})=>e.selectedId;n(7723);const Dn=we("FETCH_COLLABORATORS",async(e="",{extra:t,getState:n,signal:r})=>{const o=t.api.getCollaboratorsAPI(),i=n(),a=rt(i);return r.addEventListener("abort",()=>{o.destroy()}),new Promise((t,n)=>{o.getFileCollaborators(a,t,n,{filter_term:e,include_groups:!1,include_uploader_collabs:!1})})}),Mn=ge({collaborators:[]},e=>e.addCase(Dn.fulfilled,(e,{payload:t})=>{e.collaborators=t.entries}).addCase(Dn.rejected,e=>{e.collaborators=[]})),jn=e=>e.users.collaborators;var Rn=n(3950),Nn=n.n(Rn),Fn=n(7007);class Bn extends Fn.EventEmitter{emit(e,...t){const[n]=t;return super.emit(e,n),super.emit(sn.ANNOTATOR,{event:e,data:n}),!0}}const Un=new Bn;let Kn=function(e){return e.ERROR="error",e.PENDING="pending",e.SUCCESS="success",e}({});const Hn=e=>(t,n,r)=>((e,t)=>{const{error:n,meta:{arg:r,requestId:o}={},payload:i}=e;Un.emit(an.ANNOTATION_CREATE,{annotation:i||r,error:n,meta:{requestId:o,status:t}})})(r,e),zn=Hn(Kn.ERROR),qn=Hn(Kn.PENDING),Vn=Hn(Kn.SUCCESS),Gn=e=>{let t=null;return $t(e)&&(t="region"),Wt(e)&&(t="highlight"),t},Wn={[pt.fulfilled.toString()]:Vn,[pt.pending.toString()]:qn,[pt.rejected.toString()]:zn,[ht.rejected.toString()]:(e,t,n)=>{Un.emit(an.ANNOTATION_FETCH_ERROR,n)},[An.toString()]:(e,t)=>{const n=Ln(t);n&&Un.emit(an.BOUNDING_BOX_HIGHLIGHT_NAVIGATE,n)},[Lt.toString()]:e=>{const t=zt(e),n=Gn(t);Un.emit(an.CREATOR_STAGED_CHANGE,{type:n,status:"cancel"})},[vt.toString()]:(e,t)=>{const n=ze(e),r=ze(t),o=ot(t);n!==r&&Un.emit(an.ACTIVE_CHANGE,{annotationId:r,fileVersionId:o})},[wt.toString()]:(e,t)=>{const n=We(e),r=We(t);n!==r&&r&&Un.emit(an.ANNOTATIONS_INITIALIZED,{annotations:Ve(t)})},[Rt.toString()]:(e,t)=>{const n=zt(e),r=zt(t),o=((e,t)=>{let n=null;return null===e&&null!==t&&(n="create"),null!==e&&(n=null===t?"cancel":"update"),n})(n,r),i=Gn(n)||Gn(r);o&&i&&Un.emit(an.CREATOR_STAGED_CHANGE,{type:i,status:o})},[Nt.toString()]:(e,t)=>{const n=Vt(e),r=Vt(t);n!==r&&Un.emit(an.CREATOR_STATUS_CHANGE,{status:r,type:Tt(t)})},[Ct.toString()]:(e,t)=>{Un.emit(an.ANNOTATIONS_MODE_CHANGE,{mode:t.common.mode})}},$n=function(e=Wn){return t=>n=>r=>{const{type:o}=r,i=t.getState(),a=n(r),s=t.getState();return(e[o]||Nn())(i,s,r),a}};function Yn(e,{api:t}={}){return function(e){var t,n=e||{},r=n.reducer,o=void 0===r?void 0:r,i=n.middleware,a=void 0===i?pe():i,s=n.devTools,u=void 0===s||s,d=n.preloadedState,f=void 0===d?void 0:d,g=n.enhancers,y=void 0===g?void 0:g;if("function"==typeof o)t=o;else{if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(o))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=l(o)}var m=h.apply(void 0,a),b=p;u&&(b=fe(de({trace:!1},"object"==typeof u&&u)));var v=[m];return Array.isArray(y)?v=[m].concat(y):"function"==typeof y&&(v=y(v)),c(t,f,b.apply(void 0,v))}({devTools:!1,middleware:[...pe({thunk:{extraArgument:{api:t}}}),$n()],preloadedState:e,reducer:l({annotations:St,common:At,creator:Bt,drawing:tn,highlight:xn,boundingBoxHighlights:Tn,options:et,users:Mn})})}var Xn=n(5364),Zn=n.n(Xn);let Jn;class Qn{static getUserAgent(){return globalThis.navigator.userAgent}static isMobile(){const e=Qn.getUserAgent();return/iphone|ipad|ipod|android|blackberry|bb10|mini|windows\sce|palm/i.test(e)||/Mobi/i.test(e)}static isIE(){return/Trident/i.test(Qn.getUserAgent())}static isFirefox(){const e=Qn.getUserAgent();return/Firefox/i.test(e)&&!/Seamonkey\//i.test(e)}static isSafari(){const e=Qn.getUserAgent();return/AppleWebKit/i.test(e)&&!/Chrome\//i.test(e)}static isMobileSafari(){return Qn.isMobile()&&Qn.isSafari()&&!Qn.isMobileChromeOniOS()}static isMobileChromeOniOS(){const e=Qn.getUserAgent();return Qn.isMobile()&&/AppleWebKit/i.test(e)&&/CriOS\//i.test(e)}static canDownload(){return!Qn.isMobile()||!window.externalHost&&"download"in document.createElement("a")}static canPlayDash(){if(void 0===Jn||arguments.length>0&&void 0!==arguments[0]&&arguments[0]){const e=globalThis.MediaSource;Jn=!!e&&"function"==typeof e.isTypeSupported&&e.isTypeSupported('video/mp4; codecs="avc1.64001E"')}return Jn}static canWriteToClipboard(){return!(!globalThis.navigator.clipboard||!globalThis.navigator.clipboard.writeText)}static canReadFromClipboard(){return!(!globalThis.navigator.clipboard||!globalThis.navigator.clipboard.readText)}}const er=Qn,tr="folder_",nr="file_",rr="Content-Type",or="Accept-Language",ir="global",ar="permissions",sr=("".concat(ar,".can_share"),"".concat(ar,".can_upload"),"metadata"),cr=("".concat(sr,".").concat(ir,".").concat("boxSkillsCards"),"".concat(sr,".").concat(ir,".").concat("properties"),"".concat(sr,".").concat("enterprise",".").concat("securityClassification-6VMVochwUWo"),"can_create_annotations"),ur="can_view_annotations",lr="https://api.box.com",dr="https://upload.box.com",fr=er.canPlayDash()?"[dash,mp4][filmstrip]":"[mp4]",pr=("".concat("[3d][pdf][text][mp3][json]").concat("[jpg?dimensions=1024x1024&paged=false]").concat("[jpg?dimensions=2048x2048,png?dimensions=2048x2048]").concat(fr),"[jpg?dimensions=".concat("1024x1024","&paged=false,png?dimensions=").concat("1024x1024","][pdf][text]"),"GET"),hr="POST",gr="DELETE",yr="OPTIONS",mr=429;function br(e){return"".concat(nr).concat(e)}var vr=n(2505),wr=n.n(vr),Sr=n(9859),xr=n.n(Sr),Er=n(5321),_r=n.n(Er);const Or=new Error("Bad id or auth token. ID should be typed id like file_123 or folder_123! Token should be a string or function.");class kr{static async getToken(e,t){if(null!=t&&"string"!=typeof t&&"function"!=typeof t||!e.startsWith(tr)&&!e.startsWith(nr))throw Or;if(!t||"string"==typeof t)return t;const n=await t(e);if(!n||"string"==typeof n||"object"==typeof n&&(n.read||n.write))return n;throw Or}static async getReadToken(e,t){const n=await kr.getToken(e,t);return n&&"object"==typeof n?n.read:n}static async getReadTokens(e,t){const n=Array.isArray(e)?e:[e],r=n.map(e=>kr.getReadToken(e,t)),o=await Promise.all(r),i={};return o.forEach((e,t)=>{i[n[t]]=e}),Promise.resolve(i)}static async getWriteToken(e,t){const n=await kr.getToken(e,t);return n&&"object"==typeof n?n.write||n.read:n}static async cacheTokens(e,t){if(null!=t&&"string"!=typeof t&&"function"!=typeof t||!e.every(e=>e.startsWith(tr)||e.startsWith(nr)))throw Or;return"function"==typeof t&&await t(e),Promise.resolve()}}const Cr=kr;function Ar(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 Tr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ir=12e4,Pr=[pr,yr,"HEAD"].map(_r()),Lr=class{constructor(){let{id:e,clientName:t,language:n,token:r,version:i,sharedLink:a,sharedLinkPassword:s,responseInterceptor:c,requestInterceptor:u,retryableStatusCodes:l=[mr],shouldRetry:d=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Tr(this,"retryCount",0),Tr(this,"errorInterceptor",e=>{if(this.shouldRetryRequest(e)){this.retryCount+=1;const t=this.getExponentialRetryTimeoutInMs(this.retryCount);return new Promise((n,r)=>{this.retryTimeout=setTimeout(()=>{this.axios(e.config).then(n,r)},t)})}const t=o()(e,"response.data")||e;return this.responseInterceptor(t),Promise.reject(e)}),this.clientName=t,this.id=e,this.language=n,this.responseInterceptor=c||this.defaultResponseInterceptor,this.retryableStatusCodes=l,this.sharedLink=a,this.sharedLinkPassword=s,this.shouldRetry=d,this.token=r,this.version=i,this.axios=wr().create(),this.axiosSource=wr().CancelToken.source(),this.axios.interceptors.response.use(this.responseInterceptor,this.errorInterceptor),"function"==typeof u&&this.axios.interceptors.request.use(u)}defaultResponseInterceptor(e){return e}shouldRetryRequest(e){if(!this.shouldRetry||this.retryCount>=3)return!1;const{response:t,request:n,config:r}=e,i=o()(t,"status"),a=o()(r,"method"),s=n&&!t,c=i===mr,u=xr()(this.retryableStatusCodes,i)&&xr()(Pr,a);return s||c||u}getExponentialRetryTimeoutInMs(e){return 2**(e-1)*1e3+Math.ceil(1e3*Math.random())}getParsedUrl(e){const t=document.createElement("a");return t.href=e,{api:e.replace("".concat(t.origin,"/2.0"),""),host:t.host,hostname:t.hostname,pathname:t.pathname,origin:t.origin,protocol:t.protocol,hash:t.hash,port:t.port}}async getHeaders(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ar(Object(n),!0).forEach(function(t){Tr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ar(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({Accept:"application/json",[rr]:"application/json"},t);this.language&&!n[or]&&(n[or]=this.language),this.sharedLink&&(n.BoxApi="shared_link=".concat(this.sharedLink),this.sharedLinkPassword&&(n.BoxApi="".concat(n.BoxApi,"&shared_link_password=").concat(this.sharedLinkPassword))),this.clientName&&(n["X-Box-Client-Name"]=this.clientName),this.version&&(n["X-Box-Client-Version"]=this.version);const r=e||this.id||"",o=await Cr.getWriteToken(r,this.token);return o&&(n.Authorization="Bearer ".concat(o)),n}get(e){let{url:t,id:n,params:r={},headers:o={}}=e;return this.getHeaders(n,o).then(e=>this.axios.get(t,{cancelToken:this.axiosSource.token,params:r,headers:e,parsedUrl:this.getParsedUrl(t)}))}post(e){let{url:t,id:n,data:r,params:o,headers:i={},method:a=hr}=e;return this.getHeaders(n,i).then(e=>this.axios({url:t,data:r,params:o,method:a,parsedUrl:this.getParsedUrl(t),headers:e}))}put(e){let{url:t,id:n,data:r,params:o,headers:i={}}=e;return this.post({id:n,url:t,data:r,params:o,headers:i,method:"PUT"})}delete(e){let{url:t,id:n,data:r={},headers:o={}}=e;return this.post({id:n,url:t,data:r,headers:o,method:gr})}options(e){let{id:t,url:n,data:r,headers:o={},successHandler:i,errorHandler:a}=e;return this.getHeaders(t,o).then(e=>this.axios({url:n,data:r,method:yr,headers:e}).then(i).catch(a)).catch(a)}uploadFile(e){let{id:t,url:n,data:r,headers:o={},method:i=hr,successHandler:a,errorHandler:s,progressHandler:c,withIdleTimeout:u=!1,idleTimeoutDuration:l=Ir,idleTimeoutHandler:d}=e;return this.getHeaders(t,o).then(e=>{let t,f=c;if(u){const e=()=>{this.abort(),d&&d()};t=setTimeout(e,l),f=n=>{clearTimeout(t),t=setTimeout(e,l),c(n)}}this.axios({url:n,data:r,transformRequest:(e,t)=>{if(delete t.Accept,delete t[rr],o[rr]&&(t[rr]=o[rr]),e&&!(e instanceof Blob)&&e.attributes){const t=new FormData;return Object.keys(e).forEach(n=>{t.append(n,e[n])}),t}return e},method:i,headers:e,onUploadProgress:f,cancelToken:this.axiosSource.token}).then(e=>{clearTimeout(t),a(e)}).catch(e=>{clearTimeout(t),s(e)})}).catch(s)}abort(){this.retryTimeout&&clearTimeout(this.retryTimeout),this.axiosSource&&(this.axiosSource.cancel(),this.axiosSource=wr().CancelToken.source())}},Dr=class{constructor(){this.cache={}}set(e,t){this.cache[e]=t}merge(e,t){if(!this.has(e))throw new Error("Key ".concat(e," not in cache!"));this.set(e,Zn()({},this.get(e),t))}unset(e){delete this.cache[e]}unsetAll(e){Object.keys(this.cache).forEach(t=>{t.startsWith(e)&&delete this.cache[t]})}has(e){return{}.hasOwnProperty.call(this.cache,e)}get(e){if(this.has(e))return this.cache[e]}},Mr=class{constructor(){this.memoryStore=new Dr;try{this.localStorage=window.localStorage,this.isLocalStorageAvailable=this.canUseLocalStorage()}catch(e){this.isLocalStorageAvailable=!1}}buildKey(e){return"".concat("localStore","/").concat("0","/").concat(e)}canUseLocalStorage(){if(!this.localStorage)return!1;try{return this.localStorage.setItem(this.buildKey("TestKey"),"testValue"),this.localStorage.removeItem(this.buildKey("TestKey")),!0}catch(e){return!1}}setItem(e,t){if(this.isLocalStorageAvailable)try{this.localStorage.setItem(this.buildKey(e),JSON.stringify(t))}catch(e){}else this.memoryStore.set(e,t)}getItem(e){if(!this.isLocalStorageAvailable)return this.memoryStore.get(e);try{const t=this.localStorage.getItem(this.buildKey(e));return t?JSON.parse(t):null}catch(e){return null}}removeItem(e){if(this.isLocalStorageAvailable)try{this.localStorage.removeItem(this.buildKey(e))}catch(e){}else this.memoryStore.unset(e)}},jr="bcu-uploads-reachability-cached-results",Rr=class{constructor(){this.localStore=new Mr,this.cachedResults={},this.populateCachedResultsWithValidLocalStoreValues(),this.saveCachedResultsToLocalStore()}getCachedResultsFromLocalStore(){return this.localStore.getItem(jr)}saveCachedResultsToLocalStore(){this.localStore.setItem(jr,this.cachedResults)}isCachedHostValid(e){return e.expirationTimestampMS>Date.now()}getCachedResult(e){if(e in this.cachedResults){const t=this.cachedResults[e];if(this.isCachedHostValid(t))return t}return null}updateCachedResult(e,t){this.cachedResults[e]={isReachable:t,expirationTimestampMS:Date.now()+864e5},this.saveCachedResultsToLocalStore()}populateCachedResultsWithValidLocalStoreValues(){const e=this.getCachedResultsFromLocalStore();e&&Object.keys(e).forEach(t=>{const n=e[t];this.isCachedHostValid(n)&&(this.cachedResults[t]=n)})}getUnreachableHostsUrls(){const e=[];return this.cachedResults?(Object.keys(this.cachedResults).forEach(t=>{const n=this.cachedResults[t];this.isCachedHostValid(n)&&!n.isReachable&&e.push(t)}),e):e}async isReachable(e){if(e==="".concat(dr,"/")||e==="".concat("https://upload.app.box.com","/"))return!0;const t=this.getCachedResult(e);if(t)return t.isReachable;const n=await this.makeReachabilityRequest(e);return this.updateCachedResult(e,n),n}async makeReachabilityRequest(e){const t="".concat(e,"html5?reachability_test=run"),n={[rr]:"application/x-www-form-urlencoded; charset=UTF-8","X-File-Name":"reachability_pseudofile.txt","X-File-Size":"1234"};try{await wr().post(t,"reachability_file=test_file_data",{headers:n})}catch(e){return!1}return!0}};function Nr(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 Fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nr(Object(n),!0).forEach(function(t){Br(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Br(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ur=class{constructor(e){Br(this,"successHandler",e=>{this.isDestroyed()||"function"!=typeof this.successCallback||this.successCallback(e)}),Br(this,"errorHandler",e=>{if(!this.isDestroyed()&&"function"==typeof this.errorCallback){const{response:t}=e;t&&t.data?this.errorCallback(t.data,this.errorCode):this.errorCallback(e,this.errorCode)}}),this.cache=e.cache||new Dr,this.apiHost=e.apiHost||lr,this.uploadHost=e.uploadHost||dr,this.options=Fr({},e,{apiHost:this.apiHost,uploadHost:this.uploadHost,cache:this.cache}),this.xhr=new Lr(this.options),this.destroyed=!1,this.consoleLog=e.consoleLog&&window.console&&window.console.log||Nn(),this.consoleError=e.consoleError&&window.console&&window.console.error||Nn(),this.uploadsReachability=new Rr}destroy(){this.xhr.abort(),this.destroyed=!0}isDestroyed(){return this.destroyed}checkApiCallValidity(e,t,n){if(!n||!t)throw new Error("Bad box item!");if(!t[e])throw new Error("Insufficient Permissions!")}getBaseApiUrl(){const e=this.apiHost.endsWith("/")?"2.0":"/2.0";return"".concat(this.apiHost).concat(e)}getBaseUploadUrl(){const e=this.uploadHost.endsWith("/")?"api/2.0":"/api/2.0";return"".concat(this.uploadHost).concat(e)}getCache(){return this.cache}getUrl(e){throw new Error("Implement me!")}format(e){throw new Error("Implement me!")}get(e){let{id:t,successCallback:n,errorCallback:r,requestData:o,url:i}=e;const a=i||this.getUrl(t);return this.makeRequest(pr,t,a,n,r,o)}post(e){let{id:t,url:n,data:r,successCallback:o,errorCallback:i}=e;return this.makeRequest(hr,t,n,o,i,r)}put(e){let{id:t,url:n,data:r,successCallback:o,errorCallback:i}=e;return this.makeRequest("PUT",t,n,o,i,r)}delete(e){let{id:t,url:n,data:r,successCallback:o,errorCallback:i}=e;return this.makeRequest(gr,t,n,o,i,r)}async makeRequest(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(this.isDestroyed())return;this.successCallback=r,this.errorCallback=o;const a=this.xhr[e.toLowerCase()].bind(this.xhr);try{const{data:e}=await a(Fr({id:br(t),url:n},i));this.successHandler(e)}catch(e){this.errorHandler(e)}}};function Kr(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 Hr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kr(Object(n),!0).forEach(function(t){zr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qr=class extends Ur{hasMoreItems(e){return null!==e&&""!==e}async markerGetRequest(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this.isDestroyed())try{const i=this.getUrl(e),a=Hr({},o,{marker:t,limit:n}),{data:s}=await this.xhr.get({url:i,id:br(e),params:a}),c=this.data?this.data.entries:[];this.data=Hr({},s,{entries:c.concat(s.entries)});const u=s.next_marker;if(r&&this.hasMoreItems(u))return void this.markerGetRequest(e,u,n,r,o);this.successHandler(this.data)}catch(e){this.errorHandler(e)}}async markerGet(e){let{id:t,successCallback:n,errorCallback:r,marker:o="",limit:i=1e3,requestData:a,shouldFetchAll:s=!0}=e;return this.successCallback=n,this.errorCallback=r,this.markerGetRequest(t,o,i,s,a)}};function Vr(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 Gr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Wr=e=>{const t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vr(Object(n),!0).forEach(function(t){Gr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,{tagged_message:e.message});return e.replies&&e.replies.length&&(t.replies=e.replies.map(Wr)),t};function $r(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 Yr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$r(Object(n),!0).forEach(function(t){Xr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Zr extends qr{constructor(){super(...arguments),Xr(this,"successHandler",e=>{if(this.isDestroyed()||"function"!=typeof this.successCallback)return;if(!e)return void this.successCallback();if(!e.entries)return e.type&&"comment"===e.type?void this.successCallback(Wr(e)):void this.successCallback(this.formatReplies(e));if(e.entries.length&&"comment"===e.entries[0].type){const t=e.entries.map(Wr);return void this.successCallback(Yr({},e,{entries:t}))}const t=e.entries.map(this.formatReplies);this.successCallback(Yr({},e,{entries:t}))})}formatReplies(e){return e.replies&&e.replies.length?Yr({},e,{replies:e.replies.map(Wr)}):e}getUrl(){return"".concat(this.getBaseApiUrl(),"/undoc/annotations")}getUrlForId(e){return"".concat(this.getUrl(),"/").concat(e)}getUrlWithRepliesForId(e){return"".concat(this.getUrlForId(e),"/replies")}createAnnotation(e,t,n,r,o,i){this.errorCode="create_annotation_error";try{this.checkApiCallValidity(cr,r,e)}catch(e){return void i(e,this.errorCode)}const a={description:{type:"reply"},file_version:{id:t,type:"file_version"}};this.post({id:e,data:{data:Zn()(a,n)},errorCallback:i,successCallback:o,url:this.getUrl()})}updateAnnotation(e,t,n,r,o,i){this.errorCode="edit_annotation_error";const{message:a,status:s}=r;if(a)try{this.checkApiCallValidity("can_edit",n,e)}catch(e){return void i(e,this.errorCode)}if(s)try{this.checkApiCallValidity("can_resolve",n,e)}catch(e){return void i(e,this.errorCode)}this.put({id:e,data:{data:{description:a?{message:a}:void 0,status:s}},errorCallback:i,successCallback:o,url:this.getUrlForId(t)})}deleteAnnotation(e,t,n,r,o){this.errorCode="delete_annotation_error";try{this.checkApiCallValidity("can_delete",n,e)}catch(e){return void o(e,this.errorCode)}this.delete({id:e,errorCallback:o,successCallback:r,url:this.getUrlForId(t)})}getAnnotation(e,t,n,r,o,i){this.errorCode="fetch_annotation_error";try{this.checkApiCallValidity(ur,n,e)}catch(e){return void o(e,this.errorCode)}const a=i?{params:{fields:"replies"}}:void 0;this.get({id:e,errorCallback:o,successCallback:r,url:this.getUrlForId(t),requestData:a})}getAnnotations(e,t,n,r,o,i,a,s){this.errorCode="fetch_annotations_error";try{this.checkApiCallValidity(ur,n,e)}catch(e){return void o(e,this.errorCode)}const c=Yr({file_id:e,file_version_id:t},s?{fields:"replies"}:null);this.markerGet({id:e,errorCallback:o,limit:i,requestData:c,shouldFetchAll:a,successCallback:r})}getAnnotationReplies(e,t,n,r,o){this.errorCode="fetch_replies_error";try{this.checkApiCallValidity(ur,n,e)}catch(e){return void o(e,this.errorCode)}this.get({id:e,errorCallback:o,successCallback:r,url:this.getUrlWithRepliesForId(t)})}createAnnotationReply(e,t,n,r,o,i){this.errorCode="create_reply_error";try{this.checkApiCallValidity(cr,n,e)}catch(e){return void i(e,this.errorCode)}this.post({id:e,data:{data:{message:r}},errorCallback:i,successCallback:o,url:"".concat(this.getUrlWithRepliesForId(t),"?file_id=").concat(e)})}}function Jr(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 Qr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const eo=class extends qr{constructor(){var e;super(...arguments),e=this,Qr(this,"successHandler",e=>{if(this.isDestroyed()||"function"!=typeof this.successCallback)return;const t=e.entries.map(e=>{let t;return"group"===e.type?t=e:(t=e,t.email=t.login),{id:e.id,name:e.name,item:t}});this.successCallback(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jr(Object(n),!0).forEach(function(t){Qr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,{entries:t}))}),Qr(this,"getCollaboratorsWithQuery",function(t,n,r,o){let{includeGroups:i=!1}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};o&&""!==o.trim()&&e.getFileCollaborators(t,n,r,{filter_term:o,include_groups:i,include_uploader_collabs:!1})})}getUrl(e){if(!e)throw new Error("Missing file id!");return"".concat(this.getBaseApiUrl(),"/files/").concat(e,"/collaborators")}getFileCollaborators(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:25;this.markerGet({id:e,limit:o,successCallback:t,errorCallback:n,requestData:r})}};function to(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}class no{constructor(e){t(this,"options",void 0),this.options=function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?to(Object(r),!0).forEach(function(n){t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):to(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({apiHost:lr,clientName:"box-annotations"},e)}getAnnotationsAPI(){return new Zr(this.options)}getCollaboratorsAPI(){return new eo(this.options)}}var ro=n(2015),oo=n.n(ro);const io=require("react-dom/client"),ao=require("react-redux");function so(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 co(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?so(Object(r),!0).forEach(function(n){t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):so(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}class uo{constructor({location:e=1,referenceEl:n,resinTags:r={},targetType:o=He.PAGE}){t(this,"location",void 0),t(this,"reactEl",void 0),t(this,"root",null),t(this,"targetType",void 0),t(this,"referenceEl",void 0),this.location=e,this.reactEl=this.insert(n,co(co({},r),{},{feature:"annotations"})),this.referenceEl=n,this.targetType=o,this.root=io.createRoot(this.reactEl),this.decorate()}decorate(){throw new Error("Method not implemented.")}destroy(){this.root&&this.root.unmount(),this.reactEl.parentNode&&this.reactEl.parentNode.removeChild(this.reactEl)}exists(e){return e.contains(this.reactEl)}insert(e,t={}){const n=e.ownerDocument||document,r=e.parentNode||n,o=n.createElement("div");return o.classList.add("ba-Layer"),a=t,(i=o)&&Object.values(a).length&&Object.entries(a).forEach(([e,t])=>{const n=`data-resin-${e.toLowerCase()}`,r=function(e){return"object"==typeof e||"function"==typeof e||"symbol"==typeof e?"":"string"==typeof e?e:String(e)}(t);r&&i.setAttribute(n,r)}),r.insertBefore(o,e.nextSibling);var i,a}render(e){throw new Error("Method not implemented.")}style(e){return g(this.reactEl.style,e)}}function lo(){const e=(0,ao.useDispatch)();return oo().useEffect(()=>{const t=t=>{t.target?.closest?.(".ba-PopupV2, .ba-Popup")||e(vt(null))};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}}),null}class fo extends uo{decorate(){this.reactEl.classList.add("ba-Layer--deselect"),this.reactEl.dataset.testid="ba-Layer--deselect"}render({store:e}){this.root||(this.root=io.createRoot(this.reactEl)),this.root.render(ro.createElement(ao.Provider,{store:e},ro.createElement(lo,null)))}}class po{addListener(e,t){Un.addListener(e,t)}emit(e,...t){Un.emit(e,...t)}removeAllListeners(){Un.removeAllListeners()}removeListener(e,t){Un.removeListener(e,t)}}const ho=require("react-intl");function go(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 yo(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?go(Object(r),!0).forEach(function(n){t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):go(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const mo=(e="en-US")=>e.substr(0,e.indexOf("-"));window.Intl.PluralRules||(n(1624),n(8139)),window.Intl.RelativeTimeFormat||(n(1113),n(2844));const bo=yo(yo({},{"ba.annotationsClose":"Close","ba.annotationsCreateError":"We’re sorry, the annotation could not be created.","ba.annotationsLoadError":"We’re sorry, the annotations failed to load for this file.","ba.annotationsPost":"Post","ba.annotationsSave":"Save","ba.boundingBoxHighlight.viewNextReference":"View next reference","ba.boundingBoxHighlight.viewPrevReference":"View previous reference","ba.popup.reply.comment":"Comment","ba.popup.reply.field":"Type a comment","ba.popup.reply.mentionLoading":"Loading users...","ba.popup.reply.mentionSelector":"Mention a collaborator","ba.popups.cancel":"Cancel","ba.popups.drawing.addComment":"Add Comment","ba.popups.drawing.delete":"Delete","ba.popups.drawing.redo":"Redo","ba.popups.drawing.undo":"Undo","ba.popups.popupCursor.regionPrompt":"Draw a box to comment","ba.popups.popupHighlight.promoter":"Highlight and Comment","ba.popups.popupHighlight.restrictedPrompt":"Comments restricted to single page","ba.popups.popupList.prompt":"Mention someone to notify them","ba.popups.post":"Post","ba.popups.replyField.placeholder":"Type a comment..."}),{"be.accessStatsPermissionsError":"Sorry, you do not have permission to see the access stats for this file.","be.activityFeed.fullDateTime":"{time, date, full} at {time, time, short}","be.activityFeedItemApiError":"There was a problem loading the activity feed. Please refresh the page or try again later.","be.activitySidebar.activityFeed.annotationMissingError":"This comment no longer exists","be.activitySidebar.activityFeed.commentMissingError":"This comment no longer exists","be.activitySidebar.activityFeed.feedInlineErrorTitle":"Error","be.activitySidebar.activityFeed.hideReplies":"Hide replies","be.activitySidebar.activityFeed.reply":"Reply","be.activitySidebar.activityFeed.replyInThread":"Reply in thread","be.activitySidebar.activityFeed.showReplies":"See {repliesToLoadCount, plural, one {# reply} other {# replies}}","be.activitySidebar.activityFeed.taskMissingError":"This task no longer exists","be.activitySidebarFilter.status.allActivity":"All Activity","be.activitySidebarFilter.status.allComments":"All Comments","be.activitySidebarFilter.status.open":"Unresolved Comments","be.activitySidebarFilter.status.resolved":"Resolved Comments","be.activitySidebarFilter.status.tasks":"Tasks","be.add":"Add","be.additionalTab.blockedByShieldAccessPolicy":"Use of this app is blocked due to a security policy.","be.annotationThread.errorDeleteAnnotation":"There was an error deleting this item.","be.annotationThread.errorEditAnnotation":"This annotation could not be modified.","be.annotattionThread.errorFetchAnnotation":"The annotation could not be fetched.","be.api.appActivityDeleteErrorMessage":"There was an error deleting this item.","be.api.commentCreateConflictMessage":"This comment already exists.","be.api.commentCreateErrorMessage":"There was an error creating this comment.","be.api.commentDeleteErrorMessage":"There was an error deleting this comment.","be.api.commentUpdateErrorMessage":"This comment could not be modified.","be.api.repliesFetchErrorMessage":"The replies to this comment could not be loaded.","be.api.taskActionErrorTitle":"Error","be.api.taskApproveErrorMessage":"An error has occurred while approving this task. Please refresh the page and try again.","be.api.taskCompleteErrorMessage":"An error has occurred while completing this task. Please refresh the page and try again.","be.api.taskCreateErrorMessage":"An error occurred while creating this task. Please try again.","be.api.taskDeleteErrorMessage":"There was an error while deleting this task. Please refresh the page and try again.","be.api.taskGroupExceedsWarningTitle":"One or more groups can not receive this task as a group size cannot exceed the limit of {max} assignees per group.","be.api.taskRejectErrorMessage":"An error has occurred while rejecting this task. Please refresh the page and try again.","be.appActivity.altIcon":"{appActivityName} Icon","be.appActivity.deleteMenuItem":"Delete","be.appActivity.deletePrompt":"Are you sure you want to permanently delete this app activity?","be.back":"Back","be.bookmark":"Bookmark","be.boxEditBlacklistedError":"This file cannot be opened locally","be.boxEditErrorBlockedByPolicy":"Local editing of this content has been disabled based on an access policy","be.boxToolsInstallMessage":"Install {boxTools} to open this file on your desktop","be.cancel":"Cancel","be.choose":"Choose","be.close":"Close","be.collaboratedFolder":"Collaborated Folder","be.collapse":"Collapse","be.contentInsights.contentAnalyticsErrorText":"There was a problem loading content insights. Please try again.","be.contentInsights.contentAnalyticsPermissionError":"Oops! You no longer have access to view content insights.","be.contentInsights.contentInsightsTitle":"Content Insights","be.contentInsights.downloadGraphLabel":"Chart displaying the number of downloads over the selected time period","be.contentInsights.downloadGraphType":"DOWNLOADS","be.contentInsights.openContentInsightsButton":"See Details","be.contentInsights.peopleGraphLabel":"Chart displaying the number of users over the selected time period","be.contentInsights.peopleTitle":"PEOPLE","be.contentInsights.previewGraphLabel":"Chart displaying the number of previews over the selected time period","be.contentInsights.previewGraphType":"PREVIEWS","be.contentInsights.trendDown":"Trending down","be.contentInsights.trendMonth":"PAST MONTH","be.contentInsights.trendThreeMonths":"PAST 3 MONTHS","be.contentInsights.trendUp":"Trending up","be.contentInsights.trendWeek":"PAST WEEK","be.contentInsights.trendYear":"PAST YEAR","be.contentSharing.badRequestError":"The request for this item was malformed.","be.contentSharing.collaboratorsLoadingError":"Could not retrieve collaborators for this item.","be.contentSharing.getContactsError":"Could not retrieve contacts.","be.contentSharing.loadingError":"Could not load shared link for this item.","be.contentSharing.noAccessError":"You do not have access to this item.","be.contentSharing.notFoundError":"Could not find shared link for this item.","be.contentSharing.sendInvitesError":"Could not send invites.","be.contentSharing.sendInvitesSuccess":"Successfully invited collaborators.","be.contentSharing.sharedLinkRemovalSuccess":"The shared link for this item was removed.","be.contentSharing.sharedLinkSettingsUpdateSuccess":"The shared link for this item was successfully updated.","be.contentSharing.sharedLinkUpdateError":"Could not update the shared link for this item.","be.contentSidebar.activityFeed.annotationActivity.annotationActivityDeleteMenuItem":"Delete","be.contentSidebar.activityFeed.annotationActivity.annotationActivityDeletePrompt":"Are you sure you want to permanently delete this comment?","be.contentSidebar.activityFeed.annotationActivity.annotationActivityEditMenuItem":"Modify","be.contentSidebar.activityFeed.annotationActivity.annotationActivityPostedFullDateTime":"{time, date, full} at {time, time, short}","be.contentSidebar.activityFeed.annotationActivity.annotationActivityResolveMenuItem":"Resolve","be.contentSidebar.activityFeed.annotationActivity.annotationActivityUnresolveMenuItem":"Unresolve","be.contentSidebar.activityFeed.annotationActivityPageItem":"Page {number}","be.contentSidebar.activityFeed.annotationActivityVersionLink":"Version {number}","be.contentSidebar.activityFeed.annotationActivityVersionUnavailable":"Version Unavailable","be.contentSidebar.activityFeed.comment.commentDeleteMenuItem":"Delete","be.contentSidebar.activityFeed.comment.commentDeletePrompt":"Are you sure you want to permanently delete this comment?","be.contentSidebar.activityFeed.comment.commentEditMenuItem":"Modify","be.contentSidebar.activityFeed.comment.commentPostedFullDateTime":"{time, date, full} at {time, time, short}","be.contentSidebar.activityFeed.comment.commentResolveMenuItem":"Resolve","be.contentSidebar.activityFeed.comment.commentUnresolveMenuItem":"Unresolve","be.contentSidebar.activityFeed.comment.hideReplies":"Hide replies","be.contentSidebar.activityFeed.comment.inlineCommentAnnotationIconTitle":"Inline Comment","be.contentSidebar.activityFeed.comment.reply":"Reply","be.contentSidebar.activityFeed.comment.replyInThread":"Reply in thread","be.contentSidebar.activityFeed.comment.showReplies":"See {repliesToLoadCount, plural, one {# reply} other {# replies}}","be.contentSidebar.activityFeed.commentForm.approvalAddAssignee":"Add an assignee","be.contentSidebar.activityFeed.commentForm.approvalAddTask":"Add Task","be.contentSidebar.activityFeed.commentForm.approvalAddTaskTooltip":"Assigning a task to someone will send them a notification with the message in the comment box and allow them to approve or deny.","be.contentSidebar.activityFeed.commentForm.approvalAssignees":"Assignees","be.contentSidebar.activityFeed.commentForm.approvalDueDate":"Due Date","be.contentSidebar.activityFeed.commentForm.approvalSelectDate":"Select a date","be.contentSidebar.activityFeed.commentForm.atMentionTip":"@mention users to notify them.","be.contentSidebar.activityFeed.commentForm.atMentionTipDescription":"Use the @ symbol to mention users and use the up and down arrow keys to scroll through autocomplete suggestions.","be.contentSidebar.activityFeed.commentForm.commentCancel":"Cancel","be.contentSidebar.activityFeed.commentForm.commentLabel":"Write a comment","be.contentSidebar.activityFeed.commentForm.commentPost":"Post","be.contentSidebar.activityFeed.commentForm.commentWrite":"Write a comment","be.contentSidebar.activityFeed.commmon.showOriginalMessage":"Show Original","be.contentSidebar.activityFeed.common.activityStatusResolved":"RESOLVED","be.contentSidebar.activityFeed.common.editedMessage":" (edited)","be.contentSidebar.activityFeed.common.seeLessMessage":"See less","be.contentSidebar.activityFeed.common.seeMoreMessage":"See more","be.contentSidebar.activityFeed.common.translateMessage":"Translate","be.contentSidebar.activityFeed.task.approvalTaskAnnotationIconTitle":"Approval Task","be.contentSidebar.activityFeed.task.generalTaskAnnotationIconTitle":"General Task","be.contentSidebar.activityFeed.task.taskAnyAffordanceTooltip":"Only one assignee is required to complete this task","be.contentSidebar.activityFeed.task.taskDeleteMenuItem":"Delete task","be.contentSidebar.activityFeed.task.taskDeletePrompt":"Are you sure you want to permanently delete this task?","be.contentSidebar.activityFeed.task.taskEditMenuItem":"Modify task","be.contentSidebar.activityFeed.task.taskMultipleFilesAffordanceTooltip":"There are multiple files associated with this task","be.contentSidebar.activityFeed.taskForm.taskAnyCheckboxLabel":"Only one assignee is required to complete this task","be.contentSidebar.activityFeed.taskForm.taskAnyInfoGroupTooltip":"Selecting this option will require only one assignee to complete this task. This will include assignees across all groups.","be.contentSidebar.activityFeed.taskForm.taskAnyInfoTooltip":"By default, all assignees are required to take action before a task is complete. Selecting this option will require only one assignee to complete this task.","be.contentSidebar.activityFeed.taskForm.taskApprovalAssigneeRemovalWarningMessage":"Unable to remove assignee(s) because the task is now approved.","be.contentSidebar.activityFeed.taskForm.taskCreateErrorTitle":"Error","be.contentSidebar.activityFeed.taskForm.taskCreateGroupLabel":"Group","be.contentSidebar.activityFeed.taskForm.taskEditWarningTitle":"Task Updated with Errors","be.contentSidebar.activityFeed.taskForm.taskGeneralAssigneeRemovalWarningMessage":"Unable to remove assignee(s) because the task is now completed.","be.contentSidebar.activityFeed.taskForm.taskGroupExceedsWarningTitle":"Exceeded max assignees per group","be.contentSidebar.activityFeed.taskForm.taskUpdateErrorMessage":"An error occurred while modifying this task. Please try again.","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormCancelLabel":"Cancel","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormDueDateLabel":"Due Date","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormMessageLabel":"Message","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormSelectAssigneesLabel":"Select Assignees","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormSubmitLabel":"Create","be.contentSidebar.activityFeed.taskForm.tasksEditTaskFormSubmitLabel":"Update","be.contentSidebar.activityFeed.taskNew.taskAssignmentCompleted":"Completed","be.contentSidebar.activityFeed.taskNew.taskCollaboratorLoadErrorMessage":"An error has occurred while loading collaborators for this task. Please try again.","be.contentSidebar.activityFeed.taskNew.taskDueDateLabel":"Due: {date}","be.contentSidebar.activityFeed.taskNew.taskFeedStatusDue":"DUE {dateTime}","be.contentSidebar.activityFeed.taskNew.taskShowLessAssignees":"Show Less","be.contentSidebar.activityFeed.taskNew.taskShowMoreAssignees":"Show {additionalAssigneeCount} More","be.contentSidebar.activityFeed.taskNew.taskShowMoreAssigneesOverflow":"{additionalAssigneeCount, plural, one {Show #+ More} other {Show #+ More}}","be.contentSidebar.activityFeed.taskNew.tasksFeedApproveAction":"Approve","be.contentSidebar.activityFeed.taskNew.tasksFeedApprovedLabel":"Approved","be.contentSidebar.activityFeed.taskNew.tasksFeedApprovedUppercaseLabel":"APPROVED","be.contentSidebar.activityFeed.taskNew.tasksFeedAssigneeListTitle":"Assignees","be.contentSidebar.activityFeed.taskNew.tasksFeedCompleteAction":"Mark as Complete","be.contentSidebar.activityFeed.taskNew.tasksFeedCompletedLabel":"Completed","be.contentSidebar.activityFeed.taskNew.tasksFeedCompletedUppercaseLabel":"COMPLETED","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineApproval":"{user} assigned an Approval Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineApprovalCurrentUser":"{user} assigned you an Approval Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineGeneral":"{user} assigned a Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineGeneralCurrentUser":"{user} assigned you a Task","be.contentSidebar.activityFeed.taskNew.tasksFeedInProgressLabel":"In Progress","be.contentSidebar.activityFeed.taskNew.tasksFeedInProgressUppercaseLabel":"IN PROGRESS","be.contentSidebar.activityFeed.taskNew.tasksFeedMoreAssigneesLabel":"See all assignees","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectAction":"Reject","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectedLabel":"Rejected","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectedUppercaseLabel":"REJECTED","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusApproved":"Approved {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusCompleted":"Completed {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusRejected":"Rejected {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedViewDetailsAction":"View Task Details","be.contentSidebar.addTask":"Add Task","be.contentSidebar.addTask.approval":"Approval Task","be.contentSidebar.addTask.approval.description":"Assignees will be responsible for approving or rejecting tasks","be.contentSidebar.addTask.approval.title":"Create Approval Task","be.contentSidebar.addTask.general":"General Task","be.contentSidebar.addTask.general.description":"Assignees will be responsible for marking tasks as complete","be.contentSidebar.addTask.general.title":"Create General Task","be.contentSidebar.boxSignFtuxBody":"Sign documents or send signature requests, right from where your content lives","be.contentSidebar.boxSignFtuxTitle":"Box Sign - Secure, seamless e-signatures in Box","be.contentSidebar.boxSignRequest":"Request Signature","be.contentSidebar.boxSignRequestSignature":"Request Signature","be.contentSidebar.boxSignSecurityBlockedTooltip":"This action is unavailable due to a security policy.","be.contentSidebar.boxSignSignMyself":"Sign Myself","be.contentSidebar.boxSignSignature":"Sign","be.contentSidebar.boxSignWatermarkBlockedTooltip":"This action is unavailable, because the file is watermarked.","be.contentSidebar.editTask.approval.title":"Modify Approval Task","be.contentSidebar.editTask.general.title":"Modify General Task","be.copy":"Copy","be.create":"Create","be.createDialogErrorInUse":"A folder with the same name already exists.","be.createDialogErrorInvalid":"This is an invalid folder name.","be.createDialogErrorTooLong":"This folder name is too long.","be.createDialogLabel":"New Folder","be.createDialogText":"Please enter a name.","be.currentUserErrorHeaderMessage":"Something went wrong when fetching the current user.","be.dateASC":"Date: Oldest → Newest","be.dateDESC":"Date: Newest → Oldest","be.defaultErrorMaskHeaderMessage":"We’re sorry, something went wrong.","be.defaultErrorMaskSubHeaderMessage":"Please refresh the page or try again later.","be.defaultInlineErrorContentMessage":"Please try again later.","be.defaultOpenWithDescription":"Open this file with a partner service","be.defaultSkill":"Skill Card","be.delete":"Delete","be.deleteDialogFileText":"Are you sure you want to delete {name}?","be.deleteDialogFolderText":"Are you sure you want to delete {name} and all its contents?","be.deleteDialogLabel":"Confirm Delete","be.description":"Description","be.descriptionPlaceholder":"Enter a description","be.docGenSidebar.docGenTags":"Doc Gen Tags","be.docGenSidebar.emptyTags":"This document has no tags","be.docGenSidebar.errorTags":"We couldn't load the tags","be.docGenSidebar.imageTags":"Image tags","be.docGenSidebar.refreshButton":"Refresh","be.docGenSidebar.refreshPrompt":"Please refresh the list.","be.docGenSidebar.textTags":"Text tags","be.download":"Download","be.drawAnnotation":"Drawing annotation mode","be.editLabel":"Edit","be.emptyOpenWithDescription":"No integrations are available for this file","be.error":"Error","be.errorBreadcrumb":"Error","be.errorOccured":"An error occurred","be.errorOpenWithDescription":"Opening this file with other services is currently unavailable","be.errorState":"A network error has occurred while trying to load.","be.executeIntegrationOpenWithErrorHeader":"We’re sorry, this integration is currently unavailable.","be.executeIntegrationOpenWithErrorSubHeader":"Please try again later.","be.expand":"Expand","be.externalFolder":"External Folder","be.faceSkill":"Faces","be.feedbackCtaText":"Click to provide feedback","be.feedbackFormDescription":"Beta Feedback Form","be.file":"File","be.fileAccessStatsErrorHeaderMessage":"Something went wrong when fetching the access stats.","be.fileClassificationErrorHeaderMessage":"Something went wrong when fetching classification.","be.fileDescriptionInlineErrorTitleMessage":"Something went wrong when saving the description.","be.fileRequestDisplayName":"File Request","be.folderState":"There are no items in this folder.","be.getVersionInfo":"Get version information","be.gridView":"Switch to Grid View","be.gridView.columnSize":"Column size","be.gridView.decreaseColumnSize":"Decrease column size","be.gridView.increaseColumnSize":"Increase column size","be.in":"In","be.interactedDate":"Last accessed on {date}","be.itemCreated":"Created","be.itemInteracted":"Last Accessed","be.itemModified":"Modified","be.itemName":"Name","be.itemOwner":"Owner","be.itemSize":"Size","be.itemUploader":"Uploader","be.keywordSkill":"Topics","be.keywordsAppliedList":"Keywords were applied","be.keywordsList":"Keywords: {words}","be.listView":"Switch to List View","be.loadingState":"Please wait while the items load...","be.logo":"Logo","be.max":"max","be.messageCenter.all":"All","be.messageCenter.boxEducation":"Box Education","be.messageCenter.errorFetchingPosts":"Sorry, we are having trouble showing posts at the moment. It may help to refresh the page.","be.messageCenter.events":"Events","be.messageCenter.noPosts":"There are no posts for this category at the moment.","be.messageCenter.previewError":"Sorry, we're having trouble showing this image. ","be.messageCenter.product":"Product","be.messageCenter.title":"What's New","be.metadataState":"There are no items in this folder.","be.modifiedDate":"Modified {date}","be.modifiedDateBy":"Modified {date} by {name}","be.moreOptions":"More options","be.nameASC":"Name: A → Z","be.nameDESC":"Name: Z → A","be.nameDate":"{date} by {name}","be.newFolder":"New Folder","be.nextFile":"Next File","be.nextSegment":"Next Segment","be.noActivity":"No activity to show","be.noActivityAnnotationPrompt":"Hover over the preview and use the controls at the bottom to annotate the file.","be.noActivityCommentPrompt":"Comment and @mention people to notify them.","be.open":"Open","be.pagination.nextPage":"Next Page","be.pagination.pageStatus":"{pageNumber} of {pageCount}","be.pagination.previousPage":"Previous Page","be.personalFolder":"Personal Folder","be.pointAnnotation":"Point annotation mode","be.preview":"Preview","be.previewError":"We’re sorry, the preview didn’t load. Please refresh the page.","be.previewErrorBlockedByPolicy":"Your access to this content is restricted due to a security policy.","be.previewUpdate":"A new version of this file is available.","be.previousFile":"Previous File","be.previousSegment":"Previous Segment","be.print":"Print","be.priorCollaborator":"A Prior Collaborator","be.recentsBreadcrumb":"Recents","be.recentsState":"There are no recent items yet.","be.reload":"Reload","be.remove":"Remove","be.rename":"Rename","be.renameDialogErrorInUse":"An item with the same name already exists.","be.renameDialogErrorInvalid":"This name is invalid.","be.renameDialogErrorTooLong":"This name is too long.","be.renameDialogLabel":"Rename","be.renameDialogText":"Please enter a new name for {name}:","be.resume":"Resume","be.resumeAll":"Resume All","be.retry":"Retry","be.rootBreadcrumb":"All Files","be.save":"Save","be.searchBreadcrumb":"Search Results","be.searchPlaceholder":"Search files and folders","be.searchState":"Sorry, we couldn’t find what you’re looking for.","be.selected":"{count} Selected","be.selectedBreadcrumb":"Selected Items","be.selectedState":"You haven’t selected any items yet.","be.share":"Share","be.shareAccessCollab":"Access: People in this folder","be.shareAccessCompany":"People in this company","be.shareAccessNone":"No shared link","be.shareAccessOpen":"Access: People with the link","be.shareAccessRemove":"Remove shared link","be.shareDialogLabel":"Share","be.shareDialogNone":"None","be.shareDialogText":"Shared Link:","be.sidebarAccessStats":"Access Stats","be.sidebarActivityTitle":"Activity","be.sidebarContentInsights":"Content Insights","be.sidebarDetailsTitle":"Details","be.sidebarDocGenTitle":"Doc Gen Tags","be.sidebarDocGenTooltip":"Box Doc Gen","be.sidebarFileFetchingErrorContent":"An error has occurred while fetching your Box file. Please refresh the page and try again.","be.sidebarHide":"Hide Sidebar","be.sidebarMetadataEditingErrorContent":"An error has occurred while updating metadata. Please refresh the page and try again.","be.sidebarMetadataFetchingErrorContent":"An error has occurred while fetching metadata. Please refresh the page and try again.","be.sidebarMetadataTitle":"Metadata","be.sidebarNavLabel":"Sidebar","be.sidebarProperties":"File Properties","be.sidebarShow":"Show Sidebar","be.sidebarSkillsErrorContent":"An error has occurred while updating skills. Please refresh the page and try again.","be.sidebarSkillsErrorTitle":"Skills Error","be.sidebarSkillsTitle":"Skills","be.sidebarVersions.current":"Current Version","be.sidebarVersions.delete":"Delete","be.sidebarVersions.deleteError":"File version could not be deleted.","be.sidebarVersions.deletedBy":"Deleted by {name}","be.sidebarVersions.disabledByRetention":"Disabled by retention policy","be.sidebarVersions.download":"Download","be.sidebarVersions.downloadError":"File version could not be downloaded.","be.sidebarVersions.empty":"No prior versions are available for this file.","be.sidebarVersions.fetchError":"File versions could not be retrieved.","be.sidebarVersions.fileRequestDisplayName":"File Request","be.sidebarVersions.notAvailable":"Sorry, version history is not available with your current account plan. To access versioning, select from one of our paid plans.","be.sidebarVersions.preview":"Preview","be.sidebarVersions.priorWeek":"Last Week","be.sidebarVersions.promote":"Make Current","be.sidebarVersions.promoteError":"File version could not be made current.","be.sidebarVersions.promotedBy":"Promoted from v{versionPromoted} by {name}","be.sidebarVersions.restore":"Restore","be.sidebarVersions.restoreError":"File version could not be restored.","be.sidebarVersions.restoredBy":"Restored by {name}","be.sidebarVersions.serverError":"Server Error","be.sidebarVersions.thisMonth":"This Month","be.sidebarVersions.title":"Version History","be.sidebarVersions.today":"Today","be.sidebarVersions.toggle":"Toggle Actions Menu","be.sidebarVersions.upgradeButton":"Upgrade","be.sidebarVersions.upgradeLink":"Upgrade Now","be.sidebarVersions.uploadedBy":"Uploaded by {name}","be.sidebarVersions.versionLimitExceeded":"You are limited to the last {versionLimit, number} {versionLimit, plural, one {version} other {versions}}.","be.sidebarVersions.versionMaxEntries":"Version history is limited to the last {maxVersions} entries.","be.sidebarVersions.versionNumberBadge":"V{versionNumber}","be.sidebarVersions.versionNumberLabel":"Version number {versionNumber}","be.sidebarVersions.versionRetentionDelete":"Will be deleted {time} by retention policy.","be.sidebarVersions.versionRetentionIndefinite":"Retained indefinitely by retention policy.","be.sidebarVersions.versionRetentionRemove":"Retention policy expires on {time}.","be.sidebarVersions.versionUpsell":"Sorry, version history is not available with your current account plan. To access versioning, select from one of our paid plans.","be.sidebarVersions.versionUserUnknown":"Unknown","be.sidebarVersions.yesterday":"Yesterday","be.sizeASC":"Size: Smallest → Largest","be.sizeDESC":"Size: Largest → Smallest","be.skillFileProcessingError":"We’re sorry, something went wrong with processing the file.","be.skillInvalidFileExtensionError":"We’re sorry, no skills information was found. This file extension is currently not supported.","be.skillInvalidFileSizeError":"We’re sorry, no skills information was found. This file size is currently not supported.","be.skillInvokedStatus":"We’re preparing to process your file - please hold!","be.skillNoInfoFoundError":"We’re sorry, no skills information was found.","be.skillPendingStatus":"We’re working on processing your file - please hold!","be.skillUnknownError":"Something went wrong with running this skill or fetching its data.","be.sort":"Sort","be.statusSkill":"Status","be.today":"today","be.topicsSkill":"Topics","be.transcriptEdit":"Click any section to edit.","be.transcriptSkill":"Transcript","be.upload":"Upload","be.uploadEmptyFileInput":"Browse your device","be.uploadEmptyFolderInput":"Select Folders","be.uploadEmptyWithFolderUploadDisabled":"Drag and drop files","be.uploadEmptyWithFolderUploadEnabled":"Drag and drop files and folders","be.uploadError":"A network error has occurred while trying to upload.","be.uploadErrorTooManyFiles":"You can only upload up to {fileLimit} file(s) at a time.","be.uploadInProgress":"Drag and drop to add additional files","be.uploadNoDragDrop":"Select files from your device","be.uploadOptions":"{option1} or {option2}","be.uploadSuccess":"Success! Your files have been uploaded.","be.uploadSuccessFileInput":"Select More Files","be.uploadSuccessFolderInput":"Select More Folders","be.uploadsCancelButtonTooltip":"Cancel this upload","be.uploadsDefaultErrorMessage":"Something went wrong with the upload. Please try again.","be.uploadsFileSizeLimitExceededErrorMessage":"File size exceeds the folder owner’s file size limit","be.uploadsFileSizeLimitExceededErrorMessageForUpgradeCta":"This file exceeds your plan’s upload limit. Upgrade now to store larger files.","be.uploadsFileSizeLimitExceededUpgradeMessageForUpgradeCta":"Upgrade","be.uploadsItemNameInUseErrorMessage":"A file with this name already exists.","be.uploadsManagerUploadComplete":"Completed","be.uploadsManagerUploadFailed":"Some Uploads Failed","be.uploadsManagerUploadInProgress":"Uploading","be.uploadsManagerUploadPrompt":"Drop files on this page to upload them into this folder.","be.uploadsOneOrMoreChildFoldersFailedToUploadMessage":"One or more child folders failed to upload.","be.uploadsPackageUploadErrorMessage":"Failed to upload package file. Please retry by saving as a single file.","be.uploadsPendingFolderSizeLimitErrorMessage":"Pending app folder size limit exceeded","be.uploadsProvidedFolderNameInvalidMessage":"Provided folder name, {name}, could not be used to create a folder.","be.uploadsRetryButtonTooltip":"Retry upload","be.uploadsStorageLimitErrorMessage":"Account storage limit reached","be.versionDeleted":"{name} deleted v{version_number}","be.versionMultipleUsersUploaded":"{numberOfCollaborators} collaborators uploaded v{versions}","be.versionPromoted":"{name} promoted v{version_promoted} to v{version_number}","be.versionRestored":"{name} restored v{version_number}","be.versionUploadCollapsed":"{name} uploaded v{versions}","be.versionUploaded":"{name} uploaded v{version_number}","be.yesterday":"yesterday","boxui.accessStats.accessStatsComments":"Comments","boxui.accessStats.accessStatsDownloads":"Downloads","boxui.accessStats.accessStatsEdits":"Edits","boxui.accessStats.accessStatsPreviews":"Previews","boxui.accessStats.accessStatsViewDetails":"View Details","boxui.accessStats.accessStatsViews":"Views","boxui.advancedContentInsights.advancedContentInsightsDescription":"Get actionable insights into how viewers are engaging with this content. Measure average time spent, page-by-page engagement, per person and per visit details.","boxui.advancedContentInsights.advancedContentInsightsTitleDisabled":"Activate Engagement Insights","boxui.advancedContentInsights.advancedContentInsightsTitleEnabled":"Engagement Insights is activated","boxui.avatar.externalUser":"External user","boxui.badges.beta":"BETA","boxui.badges.trial":"TRIAL","boxui.badges.upgrade":"UPGRADE","boxui.base.nextMonth":"Next Month","boxui.base.previousMonth":"Previous Month","boxui.breadcrumb.breadcrumbLabel":"Breadcrumb","boxui.categorySelector.label.more":"More","boxui.checkboxTooltip.iconInfoText":"Info","boxui.classification.add":"Add","boxui.classification.classification":"Classification","boxui.classification.classificationDarkBlue":"Dark Blue","boxui.classification.classificationGreen":"Green","boxui.classification.classificationGrey":"Grey","boxui.classification.classificationLightBlue":"Light Blue","boxui.classification.classificationOrange":"Orange","boxui.classification.classificationPurple":"Purple","boxui.classification.classificationRed":"Red","boxui.classification.classificationYellow":"Yellow","boxui.classification.definition":"Definition","boxui.classification.edit":"Edit","boxui.classification.importedBy":"Imported from {modifiedBy} on {modifiedAt}","boxui.classification.missing":"Not classified","boxui.classification.modifiedBy":"Applied by {modifiedBy} on {modifiedAt}","boxui.classification.modifiedByLabel":"Classification Label","boxui.collaboratorAvatars.collaboration.pendingCollabText":"Pending","boxui.collaboratorAvatars.collaboratorAvatarsLabel":"Shared with","boxui.collaboratorAvatars.collaborators.expirationTooltipText":"Access expires on {date}","boxui.collaboratorAvatars.collaborators.externalCollabTooltipText":"{email} is from outside of your company","boxui.collaboratorAvatars.manageAllLinkText":"Manage All","boxui.collaboratorAvatars.viewAdditionalPeopleText":"View additional people","boxui.collapsiblesidebar.collapseBtnLabel":"Collapse","boxui.collapsiblesidebar.expandBtnLabel":"Expand","boxui.contentAnswers.ask":"Ask","boxui.contentAnswers.askDisabledTooltip":"You can submit another question once Box AI has finished responding","boxui.contentAnswers.askQuestionPlaceholder":"Ask anything about this document","boxui.contentAnswers.contentAnswersTitle":"Box AI","boxui.contentAnswers.defaultTooltip":"Get instant answers about this document using Box AI","boxui.contentAnswers.disabledTooltipFileNotCompatible":"Box AI is not currently supported for this file type","boxui.contentAnswers.hasQuestionsTooltip":"Return to Box AI","boxui.contentAnswers.inlineErrorText":"The Box AI service was unavailable.","boxui.contentAnswers.intelligenceUnavailableDescription":"The Box AI service is not responding.","boxui.contentAnswers.intelligenceUnavailableHeading":"Box AI is unavailable","boxui.contentAnswers.intelligenceUnavailableTryAgain":"Please try again later.","boxui.contentAnswers.maxCharactersReachedError":"Maximum of {characterLimit} characters reached","boxui.contentAnswers.retryResponse":"Retry","boxui.contentAnswers.welcomeAskQuestionText":"Ask questions about {name}","boxui.contentAnswers.welcomeClearChatText":"This chat will be cleared when you close this document","boxui.contentAnswers.welcomeMessageTitle":"Welcome to Box AI","boxui.contentExplorer.breadcrumb":"Breadcrumb","boxui.contentExplorer.cancel":"Cancel","boxui.contentExplorer.choose":"Choose","boxui.contentExplorer.clickToGoBack":"Click to go back","boxui.contentExplorer.clickToViewPath":"Click to view path","boxui.contentExplorer.copy":"Copy","boxui.contentExplorer.emptyFolder":"There are no subfolders in this folder.","boxui.contentExplorer.emptySearch":"Sorry, we couldn't find what you're looking for.","boxui.contentExplorer.filepath":"File path","boxui.contentExplorer.folderTreeBreadcrumbsText":"{folderName} ({totalItems})","boxui.contentExplorer.includeSubfolders":"Include Subfolders","boxui.contentExplorer.move":"Move","boxui.contentExplorer.name":"Name","boxui.contentExplorer.newFolder":"New Folder","boxui.contentExplorer.numFoldersSelected":"{numSelected, plural, =0 {0 folders selected} one {1 folder selected} other {# folders selected} } ","boxui.contentExplorer.numItemsSelected":"{numSelected, plural, =0 {0 items selected} one {1 item selected} other {# items selected} } ","boxui.contentExplorer.numSelected":"{numSelected} Selected","boxui.contentExplorer.result":"{itemsCount} result","boxui.contentExplorer.results":"{itemsCount} results","boxui.contentExplorer.searchPlaceholder":"Search","boxui.contentExplorer.searchResults":"Search Results","boxui.contentExplorer.selectAll":"Select All","boxui.contentExplorer.selectItem":"Select {name}","boxui.contentexplorer.newFolder.forbidden":"You do not have permission to create a folder here.","boxui.core.cancel":"Cancel","boxui.core.close":"Close","boxui.core.copied":"Copied","boxui.core.copy":"Copy","boxui.core.done":"Done","boxui.core.guidetooltip.navigation":"{currentStepIndex} of {totalNumSteps}","boxui.core.hotkeys.altKey":"Alt","boxui.core.hotkeys.ctrlKey":"Ctrl","boxui.core.hotkeys.enterKey":"Enter","boxui.core.hotkeys.escKey":"Esc","boxui.core.hotkeys.hotkeyModalTitle":"Keyboard Shortcuts","boxui.core.hotkeys.hotkeySequence":"{key1} then {key2}","boxui.core.hotkeys.shiftKey":"Shift","boxui.core.hotkeys.spacebarKey":"Spacebar","boxui.core.okay":"Okay","boxui.core.optional":"optional","boxui.core.save":"Save","boxui.core.selection.deselectAllDescription":"Deselect all items","boxui.core.selection.downDescription":"Select next item","boxui.core.selection.selectAllDescription":"Select all items","boxui.core.selection.shiftDownDescription":"Add next item to current selection","boxui.core.selection.shiftUpDescription":"Add previous item to current selection","boxui.core.selection.shiftXDescription":"Select current item","boxui.core.selection.upDescription":"Select previous item","boxui.core.send":"Send","boxui.datePicker.chooseDate":"Choose Date","boxui.datePicker.dateClearButton":"Clear Date","boxui.datePicker.dateInputMaxError":"Please enter a date before {maxLocaleDate}","boxui.datePicker.dateInputMinError":"Please enter a date after {minLocaleDate}","boxui.datePicker.dateInputRangeError":"Please enter a date between {minLocaleDate} and {maxLocaleDate}","boxui.datePicker.iconAlertText":"Invalid Date","boxui.draftjs.mentionSelector.noUsersFound":"No users found","boxui.draftjs.mentionSelector.startMention":"Mention someone to notify them","boxui.draftjs.mentionSelector.usersFound":"{usersCount, plural, one {one user found} other {{usersCount} users found}}","boxui.errorMask.iconSadCloudText":"Sad Box Cloud","boxui.features.VirtualizedTableRenderers.allFiles":"All Files","boxui.features.VirtualizedTableRenderers.anonymousUser":"Anonymous User","boxui.features.VirtualizedTableRenderers.externalFile":"External File","boxui.features.VirtualizedTableRenderers.externalFolder":"External Folder","boxui.features.VirtualizedTableRenderers.lastModifiedBy":"{lastModified} by {user}","boxui.features.VirtualizedTableRenderers.unknownUser":"Unknown User","boxui.itemDetails.bookmarkExpiration":"This bookmark will be deleted on {expiration}.","boxui.itemDetails.created":"Created","boxui.itemDetails.deleted":"Deleted","boxui.itemDetails.description":"Description","boxui.itemDetails.descriptionPlaceholder":"Enter a description","boxui.itemDetails.enterpriseOwner":"Enterprise Owner","boxui.itemDetails.fileExpiration":"This file will be deleted on {expiration}.","boxui.itemDetails.folderExpiration":"This folder will be deleted on {expiration}.","boxui.itemDetails.modified":"Modified","boxui.itemDetails.owner":"Owner","boxui.itemDetails.retentionPolicyDescription":"Policy","boxui.itemDetails.retentionPolicyExpiration":"Policy Expiration","boxui.itemDetails.retentionPolicyExtend":"Extend","boxui.itemDetails.savedVersions":"{versionCount, number} Saved Versions","boxui.itemDetails.sharedLinkExpiration":"This shared link will be disabled on {expiration}.","boxui.itemDetails.size":"Size","boxui.itemDetails.uploader":"Uploader","boxui.itemDetails.url":"URL","boxui.itemDetails.urlPlaceholder":"Enter a valid url","boxui.media.menuButtonArialLabel":"Options","boxui.metadataInstanceEditor.allAttributesAreHidden":"All attributes in this template have been hidden.","boxui.metadataInstanceEditor.applyCascadePolicyText":"Apply template and its values to all new and existing items in this folder and its subfolders.","boxui.metadataInstanceEditor.cannotApplyCascadePolicyText":"Cascade policy cannot be applied to custom metadata at this time.","boxui.metadataInstanceEditor.cascadePolicyLearnMore":"Learn more","boxui.metadataInstanceEditor.cascadePolicyModeQuestion":"In the case of conflicts when applying this template and its values to existing items, what would you like to do? This is a one time action.","boxui.metadataInstanceEditor.cascadePolicyOverwriteMode":"Overwrite all existing template values","boxui.metadataInstanceEditor.cascadePolicySkipMode":"Skip and keep all existing template values","boxui.metadataInstanceEditor.customAdd":"Add","boxui.metadataInstanceEditor.customErrorDuplicateKey":"A field with that key already exists.","boxui.metadataInstanceEditor.customErrorInternalKey":"Keys cannot begin with a $.","boxui.metadataInstanceEditor.customErrorRequired":"A key is required.","boxui.metadataInstanceEditor.customKey":"Key","boxui.metadataInstanceEditor.customKeyPlaceholder":"e.g. Order Number","boxui.metadataInstanceEditor.customNewField":"New Field","boxui.metadataInstanceEditor.customNewFieldMessage":"Add a custom metadata field. Other people will be able to see and search for this field.","boxui.metadataInstanceEditor.customRemove":"Remove","boxui.metadataInstanceEditor.customTitle":"Custom Metadata","boxui.metadataInstanceEditor.customValue":"Value","boxui.metadataInstanceEditor.customValuePlaceholder":"e.g. 42","boxui.metadataInstanceEditor.editTooltip":"Edit Metadata","boxui.metadataInstanceEditor.enableCascadePolicy":"Enable Cascade Policy","boxui.metadataInstanceEditor.fileMetadataRemoveCustomTemplateConfirm":"Are you sure you want to delete this custom metadata and all of its values from this file?","boxui.metadataInstanceEditor.fileMetadataRemoveTemplateConfirm":'Are you sure you want to delete "{metadataName}" and all of its values from this file?',"boxui.metadataInstanceEditor.folderMetadataRemoveCustomTemplateConfirm":"Are you sure you want to delete this custom metadata and all of its values? Any metadata template values already applied to files in this folder will not be deleted.","boxui.metadataInstanceEditor.folderMetadataRemoveTemplateConfirm":'Are you sure you want to delete "{metadataName}" and all of its values? Any metadata template values already applied to files in this folder will not be deleted.',"boxui.metadataInstanceEditor.invalidValue":"Invalid Input!","boxui.metadataInstanceEditor.metadataCancel":"Cancel","boxui.metadataInstanceEditor.metadataCascadePolicyEnabledInfo":"This template and its values are being cascaded to all items in this folder and its subfolders.","boxui.metadataInstanceEditor.metadataSave":"Save","boxui.metadataInstanceEditor.noAttributesForTemplate":"There are no attributes in this template.","boxui.metadataInstanceEditor.noMetadata":"No Metadata Applied","boxui.metadataInstanceEditor.noMetadataAddTemplate":"Click 'Add' in the top right to add metadata to this item","boxui.metadataInstanceEditor.operationNotImmediate":"This operation is not immediate and may take some time.","boxui.metadataInstanceEditor.removeTemplate":"Remove","boxui.metadataInstanceEditor.templateAdd":"Add","boxui.metadataInstanceEditor.templateSearchPlaceholder":"Search all templates","boxui.metadataInstanceEditor.templatesFetchFailed":"Sorry! We could not fetch templates. Please contact your administrator","boxui.metadataInstanceEditor.templatesNoRemainingTemplates":"All templates have been added","boxui.metadataInstanceEditor.templatesNoResults":"No Results","boxui.metadataInstanceEditor.templatesServerHasNoTemplates":"Zero templates","boxui.metadataInstanceEditor.templatesTitle":"Templates","boxui.metadataInstanceFields.customAdd":"Add","boxui.metadataInstanceFields.customRemove":"Remove","boxui.metadataInstanceFields.fieldMultiSelectValue":"Select Values","boxui.metadataInstanceFields.fieldNoValue":"No Value","boxui.metadataInstanceFields.fieldSelectValue":"Select Value","boxui.metadataInstanceFields.fieldSetDate":"Set Date","boxui.metadataInstanceFields.fieldSetValue":"Set Value","boxui.metadataInstanceFields.invalidMetadataFieldType":"Invalid metadata field type!","boxui.modalDialog.backModalText":"Back","boxui.modalDialog.closeModalText":"Close Modal","boxui.newFolderModal.cancel":"Cancel","boxui.newFolderModal.create":"Create","boxui.newFolderModal.folderName.label":"Folder Name","boxui.newFolderModal.folderName.placeholder":"My New Folder","boxui.newFolderModal.title":'Create a New Folder in "{parentFolderName}"',"boxui.notification.clearNotification":"Clear Notification","boxui.presence.accessedInTheLastMinute":"Viewed less than a minute ago","boxui.presence.activeNow":"Active now","boxui.presence.commentedIntheLastMinute":"Commented less than a minute ago","boxui.presence.getLinkButton":"Get Link","boxui.presence.inviteButton":"Invite People","boxui.presence.modifiedIntheLastMinute":"Edited less than a minute ago","boxui.presence.previewPresenceFlyoutAccessStatsLink":"See all activity","boxui.presence.previewPresenceFlyoutActivityCTA":"View Recent Activity","boxui.presence.previewPresenceFlyoutCopy":"Quickly see who has commented on, edited, or viewed this file.","boxui.presence.previewedIntheLastMinute":"Previewed less than a minute ago","boxui.presence.recentActivity":"Recent Activity","boxui.presence.timeSinceLastAccessed":"Viewed {timeAgo}","boxui.presence.timeSinceLastCommented":"Commented {timeAgo}","boxui.presence.timeSinceLastModified":"Edited {timeAgo}","boxui.presence.timeSinceLastPreviewed":"Previewed {timeAgo}","boxui.presence.toggleButtonLabel":"Recent Activity","boxui.queryBar.addFilterButtonText":"+ Add Filter","boxui.queryBar.applyFiltersButtonText":"Apply","boxui.queryBar.columnsButtonText":"Columns","boxui.queryBar.columnsHiddenButtonText":"{count, plural, one {1 Column Hidden} other {{count} Columns Hidden}}","boxui.queryBar.connectorAndText":"AND","boxui.queryBar.connectorOrText":"OR","boxui.queryBar.connectorWhereText":"WHERE","boxui.queryBar.filtersButtonText":"Modify Filters","boxui.queryBar.metadataViewTemplateListHeaderTitle":"METADATA TEMPLATES","boxui.queryBar.multipleFiltersButtonText":"{number} Filters","boxui.queryBar.noFiltersAppliedText":"No Filters Applied","boxui.queryBar.noTemplatesText":"No Templates Available","boxui.queryBar.selectValuePlaceholderText":"Select value","boxui.queryBar.templatesButtonText":"Select Metadata","boxui.queryBar.templatesLoadingButtonText":"Template Name","boxui.queryBar.tooltipEnterValueError":"Please Enter a Value","boxui.queryBar.tooltipInvalidFloatError":"Please Enter a Decimal Number","boxui.queryBar.tooltipInvalidNumberError":"Please Enter an Integer","boxui.queryBar.tooltipSelectDateError":"Please Select a Date","boxui.queryBar.tooltipSelectValueError":"Please Select a Value","boxui.quickSearch.bookmark":"Bookmark","boxui.quickSearch.collaboratedFolder":"Collaborated Folder","boxui.quickSearch.externalFolder":"External Folder","boxui.quickSearch.file":"File","boxui.quickSearch.parentFolder":"Parent Folder","boxui.quickSearch.personalFolder":"Personal Folder","boxui.quickSearch.updatedText":"{date, date, medium} by {user}","boxui.quickSearch.updatedTextToday":"Today by {user}","boxui.quickSearch.updatedTextYesterday":"Yesterday by {user}","boxui.readableTime.eventTime":"{time, date, medium}","boxui.readableTime.eventTimeDate":"{time, date, medium} at {time, time, short}","boxui.readableTime.eventTimeDateShort":"{date} at {time, time, short}","boxui.readableTime.eventTimeToday":"Today at {time, time, short}","boxui.readableTime.eventTimeWeekdayLong":"{weekday}, {time, date, medium}","boxui.readableTime.eventTimeYesterday":"Yesterday at {time, time, short}","boxui.searchForm.clearButtonTitle":"Clear","boxui.searchForm.searchButtonTitle":"Search","boxui.searchForm.searchLabel":"Search query","boxui.securityCloudGame.accessibilityInstructions":"For security purposes, please drag the cloud object onto the target. You are on a {row} by {column} grid with a movable cloud object and a target area. Press spacebar to grab the cloud object, arrow keys to move, and spacebar to drop on the target.","boxui.securityCloudGame.cloudDropped":"Cloud object dropped.","boxui.securityCloudGame.cloudGrabbed":"Cloud object grabbed.","boxui.securityCloudGame.cloudObject":"Cloud object","boxui.securityCloudGame.currentPosition":"Current position: Row {row}, Column {column}.","boxui.securityCloudGame.instructions":"For security purposes, please drag the white cloud onto the dark cloud. Keyboard users: Press spacebar to grab the cloud, arrow keys to move, and spacebar to drop.","boxui.securityCloudGame.reachBottomEdge":"Reached bottom edge of grid.","boxui.securityCloudGame.reachLeftEdge":"Reached left edge of grid.","boxui.securityCloudGame.reachRightEdge":"Reached right edge of grid.","boxui.securityCloudGame.reachTopEdge":"Reached top edge of grid.","boxui.securityCloudGame.success":"Success!","boxui.securityCloudGame.target":"Target","boxui.securityCloudGame.targetInRange":"Target in range, you can drop the cloud object.","boxui.securityCloudGame.targetPosition":"Target position: Row {row}, Column {column}.","boxui.securityControls.allAppNames":"All applications: {appsList}","boxui.securityControls.appDownloadBlacklist":"Download restricted for some applications: {appNames}","boxui.securityControls.appDownloadBlacklistOverflow":"Download restricted for some applications: {appNames} +{remainingAppCount} more","boxui.securityControls.appDownloadRestricted":"Download restricted for some applications.","boxui.securityControls.appDownloadWhitelist":"Only select applications are allowed: {appNames}","boxui.securityControls.appDownloadWhitelistOverflow":"Only select applications are allowed: {appNames} +{remainingAppCount} more","boxui.securityControls.boxSignRequestRestricted":"Sign restrictions apply.","boxui.securityControls.desktopDownloadExternalOwners":"Download restricted on Box Drive, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.desktopDownloadExternalOwnersEditors":"Download restricted on Box Drive, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.desktopDownloadOwners":"Download restricted on Box Drive, except Owners/Co-Owners.","boxui.securityControls.desktopDownloadOwnersEditors":"Download restricted on Box Drive, except Owners/Co-Owners/Editors.","boxui.securityControls.downloadExternal":"Download restricted on Box Drive for external users.","boxui.securityControls.externalCollabBlock":"External collaboration restricted.","boxui.securityControls.externalCollabDomainList":"External collaboration limited to approved domains.","boxui.securityControls.mobileDownloadExternal":"Download restricted on mobile for external users.","boxui.securityControls.mobileDownloadExternalOwners":"Download restricted on mobile, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.mobileDownloadExternalOwnersEditors":"Download restricted on mobile, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.mobileDownloadOwners":"Download restricted on mobile, except Owners/Co-Owners.","boxui.securityControls.mobileDownloadOwnersEditors":"Download restricted on mobile, except Owners/Co-Owners/Editors.","boxui.securityControls.modalDescription":"Classification labels defined by your administrator can be used to label content and apply security policies.","boxui.securityControls.modalTitle":"View Classification for “{itemName}”","boxui.securityControls.securityControlsLabel":"Restrictions","boxui.securityControls.sharingCollabAndCompanyOnly":"Shared links cannot be made publicly accessible.","boxui.securityControls.sharingCollabOnly":"Shared links allowed for collaborators only.","boxui.securityControls.shortApp":"Application restrictions apply","boxui.securityControls.shortAppSign":"App and Sign restrictions apply","boxui.securityControls.shortDownload":"Download restrictions apply","boxui.securityControls.shortDownloadApp":"Download and app restrictions apply","boxui.securityControls.shortDownloadAppSign":"Download, app and Sign restrictions apply","boxui.securityControls.shortDownloadSign":"Download and Sign restrictions apply","boxui.securityControls.shortSharing":"Sharing restriction applies","boxui.securityControls.shortSharingApp":"Sharing and app restrictions apply","boxui.securityControls.shortSharingAppSign":"Sharing, app and Sign restrictions apply","boxui.securityControls.shortSharingDownload":"Sharing and download restrictions apply","boxui.securityControls.shortSharingDownloadApp":"Sharing, download and app restrictions apply","boxui.securityControls.shortSharingDownloadAppSign":"Sharing, download, app and Sign restrictions apply","boxui.securityControls.shortSharingDownloadSign":"Sharing, download and Sign restrictions apply","boxui.securityControls.shortSharingSign":"Sharing and Sign restrictions apply","boxui.securityControls.shortSign":"Sign restrictions apply","boxui.securityControls.shortWatermarking":"Watermarking applies","boxui.securityControls.viewAll":"View All","boxui.securityControls.watermarkingApplied":"Watermarking will be applied.","boxui.securityControls.webDownloadExternal":"Download restricted on web for external users.","boxui.securityControls.webDownloadExternalOwners":"Download restricted on web, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.webDownloadExternalOwnersEditors":"Download restricted on web, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.webDownloadOwners":"Download restricted on web, except Owners/Co-Owners.","boxui.securityControls.webDownloadOwnersEditors":"Download restricted on web, except Owners/Co-Owners/Editors.","boxui.select.moreInfo":"More Info","boxui.selectField.clearAll":"Clear All","boxui.selectField.noResults":"No Results","boxui.selectField.searchPlaceholder":"Search","boxui.share.accessType":"ACCESS TYPE","boxui.share.canEdit":"Can edit","boxui.share.canView":"Can view","boxui.share.coownerLevelText":"Co-owner","boxui.share.deleteTableHeaderText":"Delete","boxui.share.downloadTableHeaderText":"Download","boxui.share.editTableHeaderText":"Edit","boxui.share.editorLevelText":"Editor","boxui.share.emailSharedLink":"Email Shared Link","boxui.share.enterAtLeastOneEmail":"Enter at least one valid email","boxui.share.getLinkTableHeaderText":"Get Link","boxui.share.groupLabel":"Group","boxui.share.inviteCollaboratorsModalCancelButton":"Cancel","boxui.share.inviteCollaboratorsModalSendInvites":"Send Invites","boxui.share.inviteCollaboratorsModalTitle":"Invite to {itemName}","boxui.share.inviteFieldLabel":"Invite","boxui.share.inviteFileEditorsLabel":"Invite people to become editors of this file.","boxui.share.inviteePermissionsFieldLabel":"Invitee Permissions","boxui.share.inviteePermissionsLearnMore":"Learn More","boxui.share.message":"Message","boxui.share.messageSelectorPlaceholder":"Add a message","boxui.share.ownerTableHeaderText":"Owner","boxui.share.peopleInCompanyCanDownloadFile":"Anyone in your company with the link can view and download this file.","boxui.share.peopleInCompanyCanDownloadFolder":"Anyone in your company with the link can view this folder and download its contents.","boxui.share.peopleInCompanyCanEditFile":"Anyone in your company with the link can edit and download this file.","boxui.share.peopleInCompanyCanViewFile":"Anyone in your company with the link can view this file.","boxui.share.peopleInCompanyCanViewFolder":"Anyone in your company with the link can view this folder.","boxui.share.peopleInEnterprise":"People in {enterpriseName}","boxui.share.peopleInItemCanAccessFile":"Any collaborator on the file with the link can access this file.","boxui.share.peopleInItemCanAccessFolder":"Any collaborator on the folder with the link can access this folder.","boxui.share.peopleInItemCanDownloadFile":"Any collaborator on this file with the link can download this file.","boxui.share.peopleInItemCanDownloadFolder":"Any collaborator on this folder with the link can download this folder.","boxui.share.peopleInItemCanEditFile":"Any collaborator on this file with the link can edit this file and download its contents.","boxui.share.peopleInItemCanPreviewAndDownloadFile":"Any collaborator on this file with the link can view this file and download its contents.","boxui.share.peopleInItemCanPreviewAndDownloadFolder":"Any collaborator on this folder with the link can view this folder and download its contents.","boxui.share.peopleInItemCanPreviewFile":"Any collaborator on this file with the link can view this file.","boxui.share.peopleInItemCanPreviewFolder":"Any collaborator on this folder with the link can view this folder.","boxui.share.peopleInSpecifiedCompanyCanDownloadFile":"Anyone in {company} with the link can view and download this file.","boxui.share.peopleInSpecifiedCompanyCanDownloadFolder":"Anyone in {company} with the link can view this folder and download its contents.","boxui.share.peopleInSpecifiedCompanyCanEditFile":"Anyone in {company} with the link can edit and download this file.","boxui.share.peopleInSpecifiedCompanyCanViewFile":"Anyone in {company} with the link can view this file.","boxui.share.peopleInSpecifiedCompanyCanViewFolder":"Anyone in {company} with the link can view this folder.","boxui.share.peopleInThisFile":"People in this file","boxui.share.peopleInThisFolder":"People in this folder","boxui.share.peopleInYourCompany":"People in your company","boxui.share.peopleWithLinkCanDownloadFile":"Anyone with the link can view and download this file.","boxui.share.peopleWithLinkCanDownloadFolder":"Anyone with the link can view this folder and download its contents.","boxui.share.peopleWithLinkCanEditFile":"Anyone with the link can edit and download this file.","boxui.share.peopleWithLinkCanViewFile":"Anyone with the link can view this file.","boxui.share.peopleWithLinkCanViewFolder":"Anyone with the link can view this folder.","boxui.share.peopleWithTheLink":"People with the link","boxui.share.permissionLevelsTableHeaderText":"Permission Levels","boxui.share.personalMessageLabel":"Personal Message","boxui.share.pillSelectorPlaceholder":"Add names or email addresses","boxui.share.previewTableHeaderText":"Preview","boxui.share.previewerLevelText":"Previewer","boxui.share.previewerUploaderLevelText":"Previewer Uploader","boxui.share.referAFriendBadgeText":"REFER","boxui.share.referAFriendRewardCenterLinkText":"Click Here","boxui.share.referAFriendText":"Want a free month of Box? Refer your friend!","boxui.share.removeLink":"Remove Link","boxui.share.removeLinkConfirmationDescription":"This will permanently remove the shared link. If this item is embedded on other sites it will also become inaccessible. Any custom properties, settings and expirations will be removed as well. Do you want to continue?","boxui.share.removeLinkConfirmationTitle":"Remove Shared Link","boxui.share.settingsButtonLabel":"Open shared link settings popup","boxui.share.sharedLinkExpirationTooltip":"This link will expire on {expiration, date, long}","boxui.share.sharedLinkLabel":"Shared Link","boxui.share.sharedLinkModalTitle":"Shared Link for {itemName}","boxui.share.sharedLinkSettings.accessLevel.inCompanyView":"This content is available to anyone within your company with the link, and can be viewed.","boxui.share.sharedLinkSettings.accessLevel.inCompanyViewDownload":"This content is available to anyone within your company with the link, and can be viewed or downloaded.","boxui.share.sharedLinkSettings.accessLevel.inItem":"This content is available to invited collaborators with the link.","boxui.share.sharedLinkSettings.accessLevel.withLinkView":"This content is publicly available to anyone with the link, and can be viewed.","boxui.share.sharedLinkSettings.accessLevel.withLinkViewDownload":"This content is publicly available to anyone with the link, and can be viewed or downloaded.","boxui.share.sharedLinkSettings.allowDownloadLabel":"Allow users with the shared link to download this item","boxui.share.sharedLinkSettings.allowDownloadTitle":"Allow Download","boxui.share.sharedLinkSettings.customURLLabel":"Non-private custom URL","boxui.share.sharedLinkSettings.directDownloadBlockedByAccessPolicyWithClassification":"Download has been disabled for content due to the classification.","boxui.share.sharedLinkSettings.directDownloadBlockedByAccessPolicyWithoutClassification":"Download has been disabled for content without classification.","boxui.share.sharedLinkSettings.directDownloadBlockedByMaliciousContent":"Download for this content has been disabled due to a security policy.","boxui.share.sharedLinkSettings.directLinkLabel":"Direct Link","boxui.share.sharedLinkSettings.expirationLabel":"Disable Shared Link on","boxui.share.sharedLinkSettings.expirationTitle":"Link Expiration","boxui.share.sharedLinkSettings.inaccessibleSettingsNotice":"Certain settings may not be available for this item due to permissions.","boxui.share.sharedLinkSettings.modalTitle":"Shared Link Settings","boxui.share.sharedLinkSettings.passwordLabel":"Require password","boxui.share.sharedLinkSettings.passwordPlaceholder":"Enter a password","boxui.share.sharedLinkSettings.passwordTitle":"Password Protect","boxui.share.sharedLinkSettings.sharedLinkSettingWarningLinkText":"Learn more about shared link settings.","boxui.share.sharedLinkSettings.sharedLinkWarningText":"This content is publicly available to anyone with the link.","boxui.share.sharedLinkSettings.vanityNameNotSet":"The custom URL has not been set","boxui.share.sharedLinkSettings.vanityNamePlaceholder":"Enter a custom path (12 or more characters)","boxui.share.sharedLinkSettings.vanityURLWarning":"Custom URLs should not be used when sharing sensitive content.","boxui.share.sharedLinkURLLabel":"URL","boxui.share.upgradeGetMoreAccessControls":"Get More Access Controls","boxui.share.uploadTableHeaderText":"Upload","boxui.share.uploaderLevelText":"Uploader","boxui.share.vanityURLEnableText":"Publish content broadly with a custom, non-private URL","boxui.share.viewerLevelText":"Viewer","boxui.share.viewerUploaderLevelText":"Viewer Uploader","boxui.shareMenu.downloadOnly":"Download Only","boxui.shareMenu.editAndComment":"Edit and Comment","boxui.shareMenu.getSharedLink":"Get Shared Link","boxui.shareMenu.insufficientPermissionsMenuOption":"Insufficient sharing permissions. Please contact the folder owner.","boxui.shareMenu.insufficientPermissionsTooltip":"You have insufficient permissions to invite collaborators.","boxui.shareMenu.inviteCollabs":"Invite Collaborators","boxui.shareMenu.ownerCoownerOnlyTooltip":"You have insufficient permissions to invite collaborators. Only the owner and co-owners can invite collaborators.","boxui.shareMenu.shortcutOnly":"Shortcut Only","boxui.shareMenu.viewAndDownload":"View and Download","boxui.shareMenu.viewOnly":"View Only","boxui.timeInput.emptyTimeError":"Required field. Enter a time in the format HH:MM A.","boxui.timeInput.invalidTimeError":"Invalid time format. Enter a time in the format HH:MM A.","boxui.unifiedShare.collabAccess":"collaborator access","boxui.unifiedShare.collaboration.groupCollabText":"Group","boxui.unifiedShare.collaboration.userCollabText":"User","boxui.unifiedShare.collaboratorListTitle":"People in ‘{itemName}’","boxui.unifiedShare.collaborators.expirationTooltipClickableText":"Access expires on {date}. Click for details.","boxui.unifiedShare.contactEmailsTooltipText":"{emails}, and {remainingEmailsCount} more","boxui.unifiedShare.contactRestrictionNotice":"{count, plural, one {{count} invitation} other {{count} invitations}} cannot be sent because external collaboration is restricted due to the applied security policy.","boxui.unifiedShare.contactRestrictionNoticeInformationBarrier":"{count, plural, one {{count} invitation} other {{count} invitations}} cannot be sent due to a security policy.","boxui.unifiedShare.contactRestrictionNoticeInformationBarrierSingular":"Invitations cannot be sent to {email} due to a security policy.","boxui.unifiedShare.contactRestrictionNoticeInformationBarrierSingularGroup":'Invitations cannot be sent to "{groupName}" due to a security policy.',"boxui.unifiedShare.contactRestrictionNoticeSingular":"Invitations cannot be sent to {email} because external collaboration is restricted due to the applied security policy.","boxui.unifiedShare.contactRestrictionRemoveButtonLabel":"Remove to continue","boxui.unifiedShare.contactsExceedLimitError":"Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches.","boxui.unifiedShare.contentSharedWithExternalCollaborators":"This content will be shared with external collaborators.","boxui.unifiedShare.coownerLevelButtonLabel":"Invite as Co-owner","boxui.unifiedShare.coownerLevelDescription":"Manage security, upload, download, preview, share, edit, and delete","boxui.unifiedShare.coownerLevelText":"Co-owner","boxui.unifiedShare.disabledCreateLinkTooltip":"You do not have permission to create the link.","boxui.unifiedShare.disabledMaliciousContentShareLinkPermission":"This option isn’t available for this item due to a security policy.","boxui.unifiedShare.disabledShareLinkPermission":"This option is not available due to a security policy.","boxui.unifiedShare.editorLevelButtonLabel":"Invite as Editor","boxui.unifiedShare.editorLevelDescription":"Upload, download, preview, share, edit, and delete","boxui.unifiedShare.editorLevelFileDescription":"Upload, download, preview, share, and edit","boxui.unifiedShare.editorLevelText":"Editor","boxui.unifiedShare.emailModalTitle":"Send Link to ‘{itemName}’","boxui.unifiedShare.enterAtLeastOneEmail":"Enter at least one valid email","boxui.unifiedShare.enterEmailAddressesCalloutText":"Share this item with coworkers by entering their email addresses","boxui.unifiedShare.expiresMessage":"Expires","boxui.unifiedShare.ftuxConfirmLabel":"Got it","boxui.unifiedShare.ftuxEditPermissionTooltipBody":"Select the new edit option to easily share your file with people or groups.","boxui.unifiedShare.ftuxEditPermissionTooltipTitle":"Collaboration made easy","boxui.unifiedShare.ftuxLinkText":"Read more about shared link security here.","boxui.unifiedShare.ftuxNewUSMUserBody":"We’ve simplified the sharing experience when you click 'Share'. Invite people to this item here and toggle the link on or off below for easy sharing.","boxui.unifiedShare.ftuxNewUsmUserTitle":"Simplified sharing for files and folders","boxui.unifiedShare.ftuxSharedLinkPermissionsEditTag":"NEW","boxui.unifiedShare.groupLabel":"Group","boxui.unifiedShare.inviteDisabledTooltip":"You do not have permission to invite collaborators.","boxui.unifiedShare.inviteDisabledWeblinkTooltip":"Collaborators cannot be added to bookmarks.","boxui.unifiedShare.inviteFieldLabel":"Invite People","boxui.unifiedShare.justifiableContactRestrictionNotice":"This content requires a business justification for {count, plural, one {{count} invitation} other {{count} invitations}}. Please select a business justification below.","boxui.unifiedShare.justifiableContactRestrictionNoticeSingular":"This content requires a business justification to invite {email}. Please select a business justification below.","boxui.unifiedShare.justifiableContactRestrictionRemoveButtonLabel":"Alternatively, remove to continue","boxui.unifiedShare.justificationRequiredError":"Select a justification or remove to continue","boxui.unifiedShare.justificationSelectPlaceholder":"Select Justification","boxui.unifiedShare.levelOfCollabAccess":"Set the level of {collaboratorAccess} and increase security through one of our paid plans. {upgradeLink}","boxui.unifiedShare.linkShareOff":"Create shared link","boxui.unifiedShare.linkShareOn":"Shared link is created","boxui.unifiedShare.message":"Message","boxui.unifiedShare.modalTitle":"Share ‘{itemName}’","boxui.unifiedShare.peopleInCompanyCanAccessFile":"Anyone in your company with the link or people invited to this file can access","boxui.unifiedShare.peopleInCompanyCanAccessFolder":"Anyone in your company with the link or people invited to this folder can access","boxui.unifiedShare.peopleInCompanyCanAccessHub":"Anyone in your company with the link or people invited to this hub can access","boxui.unifiedShare.peopleInEnterpriseName":"People in {enterpriseName}","boxui.unifiedShare.peopleInItemCanAccessFile":"Only invited people can access this file","boxui.unifiedShare.peopleInItemCanAccessFolder":"Only invited people can access this folder","boxui.unifiedShare.peopleInItemCanAccessHub":"Only invited people can access this hub","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessFile":"Anyone at {company} with the link or people invited to this file can access","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessFolder":"Anyone at {company} with the link or people invited to this folder can access","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessHub":"Anyone at {company} with the link or people invited to this hub can access","boxui.unifiedShare.peopleInThisFile":"Invited people only","boxui.unifiedShare.peopleInThisFolder":"Invited people only","boxui.unifiedShare.peopleInYourCompany":"People in your company","boxui.unifiedShare.peopleWithLinkDescription":"Publicly accessible and no sign-in required","boxui.unifiedShare.peopleWithLinkSignedInRequiredDescription":"Publicly accessible, sign-in required","boxui.unifiedShare.peopleWithTheLinkText":"People with the link","boxui.unifiedShare.previewerLevelButtonLabel":"Invite as Previewer","boxui.unifiedShare.previewerLevelDescription":"Preview only","boxui.unifiedShare.previewerLevelText":"Previewer","boxui.unifiedShare.previewerUploaderLevelButtonLabel":"Invite as Previewer Uploader","boxui.unifiedShare.previewerUploaderLevelDescription":"Upload and preview","boxui.unifiedShare.previewerUploaderLevelText":"Previewer Uploader","boxui.unifiedShare.recommendedSharingTooltipCalloutText":"Based on your usage, we think {fullName} would be interested in this file.","boxui.unifiedShare.removeLinkConfirmationDescription":"This will permanently remove the shared link. If this item is embedded on other sites it will also become inaccessible. Any custom properties, settings and expirations will be removed as well. Do you want to continue?","boxui.unifiedShare.removeLinkConfirmationTitle":"Remove Shared Link","boxui.unifiedShare.removeLinkTooltip":"You do not have permission to remove the link.","boxui.unifiedShare.restrictedContactsError":"Remove to continue","boxui.unifiedShare.sendSharedLink":"Send Shared Link","boxui.unifiedShare.sendSharedLinkFieldLabel":"Email Shared Link","boxui.unifiedShare.sharedLinkDisabledTooltipCopy":"Create and copy link for sharing","boxui.unifiedShare.sharedLinkEditablePubliclyAvailable":"Publicly available for anyone to view and download. Any logged in users with the link can edit.","boxui.unifiedShare.sharedLinkElevatedEditableCompanyAvailable":"People who have access to this link can edit.","boxui.unifiedShare.sharedLinkExpirationTooltip":"This link will expire and be inaccessible on {expiration, date, long}.","boxui.unifiedShare.sharedLinkPermissionsEdit":"Can edit","boxui.unifiedShare.sharedLinkPermissionsEditTooltip":"This permission can only be changed in Box Notes","boxui.unifiedShare.sharedLinkPermissionsViewDownload":"Can view and download","boxui.unifiedShare.sharedLinkPermissionsViewOnly":"Can view only","boxui.unifiedShare.sharedLinkPubliclyAvailable":"This content is publicly available to anyone with the link.","boxui.unifiedShare.sharedLinkSectionLabel":"Share Link","boxui.unifiedShare.sharedLinkSettings":"Link Settings","boxui.unifiedShare.sharedLinkSettingsCalloutText":"Create a custom URL, enable password protection, enable link expiration, and much more","boxui.unifiedShare.suggestedCollabsTitle":"Suggested","boxui.unifiedShare.upgradeGetMoreAccessControlsDescription":"62% of customers on your plan {upgradeGetMoreAccessControlsLink} to manage collaborators’ access and permission settings","boxui.unifiedShare.upgradeGetMoreAccessControlsLink":"upgrade","boxui.unifiedShare.upgradeInlineNoticeTitle":"Upgrade Your Plan","boxui.unifiedShare.upgradeLink":"Upgrade now","boxui.unifiedShare.uploaderLevelButtonLabel":"Invite as Uploader","boxui.unifiedShare.uploaderLevelDescription":"Upload only","boxui.unifiedShare.uploaderLevelText":"Uploader","boxui.unifiedShare.viewerLevelButtonLabel":"Invite as Viewer","boxui.unifiedShare.viewerLevelDescription":"Download, preview, and share","boxui.unifiedShare.viewerLevelText":"Viewer","boxui.unifiedShare.viewerUploaderLevelButtonLabel":"Invite as Viewer Uploader","boxui.unifiedShare.viewerUploaderLevelDescription":"Upload, download, preview, share, and edit","boxui.unifiedShare.viewerUploaderLevelText":"Viewer Uploader","boxui.validation.URLError":"Invalid URL","boxui.validation.emailError":"Invalid Email Address","boxui.validation.genericError":"Invalid Input","boxui.validation.invalidDateError":"Invalid Date","boxui.validation.invalidUserError":"Invalid User","boxui.validation.requiredError":"Required Field","boxui.validation.tooLongError":"Input cannot exceed {max} characters","boxui.validation.tooShortError":"Input must be at least {min} characters"}),vo=(0,ho.createIntlCache)(),wo=(0,ho.defineMessages)({annotationsClose:{id:"ba.annotationsClose",defaultMessage:"Close"},annotationsSave:{id:"ba.annotationsSave",defaultMessage:"Save"},annotationsPost:{id:"ba.annotationsPost",defaultMessage:"Post"},annotationsCreateError:{id:"ba.annotationsCreateError",defaultMessage:"We’re sorry, the annotation could not be created."},annotationsLoadError:{id:"ba.annotationsLoadError",defaultMessage:"We’re sorry, the annotations failed to load for this file."}}),So={x:0,y:0};function xo(e,t,n={}){const{offsets:r=So,smooth:o=!1}=n,{x:i,y:a}=r,{left:s,top:c}=e.getBoundingClientRect(),{height:u,left:l,top:d,width:f}=t.getBoundingClientRect(),p=Math.round(e.clientWidth/2),h=Math.round(e.clientHeight/2),g=l-s-p+Math.round(f*(i/100)),y=d-c-h+Math.round(u*(a/100)),m=Math.max(0,Math.min(e.scrollLeft+g,e.scrollWidth)),b=Math.max(0,Math.min(e.scrollTop+y,e.scrollHeight));o?e.scrollTo({left:m,top:b,behavior:"smooth"}):(e.scrollLeft=m,e.scrollTop=b)}const Eo="ba-annotations-loaded",_o={[Ot.HIGHLIGHT]:"ba-is-create--highlight",[Ot.REGION]:"ba-is-create--region"};class Oo extends po{constructor({apiHost:e,container:n,features:r={},file:o,fileOptions:i,initialColor:a,initialMode:s,initialViewMode:c="annotations",intl:u,onCopyLink:l,token:d}){super(),t(this,"annotatedEl",void 0),t(this,"containerEl",void 0),t(this,"popupPortalEl",void 0),t(this,"container",void 0),t(this,"deselectManager",null),t(this,"features",void 0),t(this,"intl",void 0),t(this,"onCopyLink",void 0),t(this,"store",void 0),t(this,"removeAnnotation",e=>{this.store.dispatch(bt(e))}),t(this,"handleRemove",e=>{this.removeAnnotation(e)}),t(this,"handleScale",({rotationAngle:e,scale:t})=>{this.init(t,e)}),t(this,"handleSetActive",e=>{this.setActiveId(e)}),t(this,"handleSetVisible",e=>{this.setVisibility(e)}),t(this,"handleSetColor",e=>{this.setColor(e)}),t(this,"handleSetBoundingBoxHighlights",e=>{this.setBoundingBoxHighlights(e)}),t(this,"handleNavigateBoundingBoxHighlight",e=>{this.scrollToBoundingBoxHighlight(e)}),t(this,"handleSelectBoundingBoxHighlight",e=>{this.selectBoundingBoxHighlight(e)}),t(this,"handleSetViewMode",({viewMode:e})=>{this.setViewMode(e)}),t(this,"removeAnnotationClasses",()=>{if(!this.annotatedEl)return;const e=this.annotatedEl;Object.values(_o).forEach(t=>{t&&e.classList.remove(t)})});const f=i?.[o.id],p=f?.currentFileVersionId,h=f?.fileVersionId,g=o.file_version.id,y={annotations:{activeId:f?.annotations?.activeId??null},common:{color:a,mode:s},options:{apiHost:e,features:r,fileId:o.id,fileVersionId:h??g,isCurrentFileVersion:!h||h===p,permissions:o.permissions,token:d,viewMode:c}};this.container=n,this.features=r,this.intl=(({language:e,locale:t,messages:n=bo}={})=>(0,ho.createIntl)({messages:n,locale:t||mo(e)},vo))(u),this.onCopyLink=l,this.store=Yn(y,{api:new no({apiHost:e,token:d})}),this.addListener(sn.SCALE,this.handleScale),this.addListener(an.ACTIVE_SET,this.handleSetActive),this.addListener(an.ANNOTATION_REMOVE,this.handleRemove),this.addListener(an.COLOR_SET,this.handleSetColor),this.addListener(an.VISIBLE_SET,this.handleSetVisible),this.addListener(an.BOUNDING_BOX_HIGHLIGHTS_SET,this.handleSetBoundingBoxHighlights),this.addListener(an.BOUNDING_BOX_HIGHLIGHT_NAVIGATE,this.handleNavigateBoundingBoxHighlight),this.addListener(an.BOUNDING_BOX_HIGHLIGHT_SELECT,this.handleSelectBoundingBoxHighlight),this.addListener(an.VIEW_MODE_SET,this.handleSetViewMode),this.hydrate()}destroy(){this.containerEl&&this.containerEl.classList.remove("ba"),this.popupPortalEl&&(this.popupPortalEl.remove(),this.popupPortalEl=null),this.annotatedEl&&this.annotatedEl.classList.remove(Eo),this.deselectManager&&this.deselectManager.destroy(),this.removeAnnotationClasses(),this.removeListener(sn.SCALE,this.handleScale),this.removeListener(an.ACTIVE_SET,this.handleSetActive),this.removeListener(an.ANNOTATION_REMOVE,this.handleRemove),this.removeListener(an.COLOR_SET,this.handleSetColor),this.removeListener(an.VISIBLE_SET,this.handleSetVisible),this.removeListener(an.BOUNDING_BOX_HIGHLIGHTS_SET,this.handleSetBoundingBoxHighlights),this.removeListener(an.BOUNDING_BOX_HIGHLIGHT_NAVIGATE,this.handleNavigateBoundingBoxHighlight),this.removeListener(an.BOUNDING_BOX_HIGHLIGHT_SELECT,this.handleSelectBoundingBoxHighlight),this.removeListener(an.VIEW_MODE_SET,this.handleSetViewMode)}init(e=1,t=0){this.containerEl=this.getElement(this.container),this.annotatedEl=this.getAnnotatedElement(),this.annotatedEl&&this.containerEl?(this.annotatedEl.classList.add(Eo),this.containerEl.classList.add("ba"),this.popupPortalEl||(this.popupPortalEl=this.containerEl.ownerDocument.createElement("div"),this.popupPortalEl.classList.add("ba-PopupPortal"),this.containerEl.appendChild(this.popupPortalEl)),this.render(),this.store.dispatch(Ze(t)),this.store.dispatch(Je(e)),this.store.dispatch(wt())):this.emit(sn.ERROR,this.intl.formatMessage(wo.annotationsLoadError))}isFeatureEnabled(e=""){return o()(this.features,e,!1)}scrollToAnnotation(e){}scrollToBoundingBoxHighlight(e){if(!e||!this.annotatedEl)return;const t=In(this.store.getState()).find(t=>t.id===e);if(!t)return;const n=this.getScrollReferenceForHighlight(t);if(!n)return;const r={x:t.x+t.width/2,y:t.y+t.height/2};xo(this.annotatedEl,n,{offsets:this.getAdjustedScrollOffsets(r),smooth:!0})}getScrollReferenceForHighlight(e){}getAdjustedScrollOffsets(e){return e}setBoundingBoxHighlights(e){this.store.dispatch(kn(e)),this.render()}setViewMode(e){this.store.dispatch(Qe(e)),this.render()}selectBoundingBoxHighlight(e){this.store.dispatch(Cn(e)),e&&this.scrollToBoundingBoxHighlight(e)}setActiveId(e){this.store.dispatch(vt(e))}setColor(e){this.store.dispatch(kt(e))}setVisibility(e){this.containerEl&&(e?this.containerEl.classList.remove("is-hidden"):this.containerEl.classList.add("is-hidden"))}toggleAnnotationMode(e){this.store.dispatch(Ct(e))}getAnnotatedElement(){}getElement(e){return"string"==typeof e?document.querySelector(e):e}hydrate(){this.store.dispatch(ht())}render(){}postRender(){this.annotatedEl&&(this.deselectManager&&this.deselectManager.destroy(),this.deselectManager=new fo({referenceEl:this.annotatedEl}),this.deselectManager.render({store:this.store}))}}var ko=n(2326),Co=n.n(ko),Ao=n(818),To=n.n(Ao),Io=n(2485),Po=n.n(Io);function Lo(){return Lo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lo.apply(this,arguments)}function Do(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Mo extends ro.Component{constructor(){super(...arguments),Do(this,"focusFirstElement",()=>{if(!this.el)return;const e=To()(this.el);e.length>3?e[1].focus():this.trapEl&&this.trapEl.focus()}),Do(this,"focusLastElement",()=>{if(!this.el)return;const e=To()(this.el);e.length>3?e[e.length-3].focus():this.trapEl&&this.trapEl.focus()}),Do(this,"handleElKeyDown",e=>{const{handleOverlayKeyDown:t}=this.props;this.el===document.activeElement&&"Tab"===e.key&&(this.focusFirstElement(),e.stopPropagation(),e.preventDefault()),t&&t(e)}),Do(this,"handleTrapElKeyDown",e=>{"Tab"===e.key&&(e.stopPropagation(),e.preventDefault())})}componentDidMount(){this.props.shouldDefaultFocus?setTimeout(()=>{this.previousFocusEl=document.activeElement,this.focusFirstElement()},0):setTimeout(()=>{this.el&&this.el.focus()},0)}componentWillUnmount(){setTimeout(()=>{this.previousFocusEl&&this.previousFocusEl.focus()},0)}render(){const e=this.props,{children:t,className:n,getRef:r,handleOverlayKeyDown:o,shouldDefaultFocus:i,shouldOutlineFocus:a}=e,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","className","getRef","handleOverlayKeyDown","shouldDefaultFocus","shouldOutlineFocus"]);return ro.createElement("div",Lo({ref:e=>{this.el=e,r&&r(e)},className:Po()(n,{"should-outline-focus":a}),onKeyDown:this.handleElKeyDown},s),ro.createElement("i",{"aria-hidden":!0,onFocus:this.focusLastElement,tabIndex:"0"}),t,ro.createElement("i",{"aria-hidden":!0,onFocus:this.focusFirstElement,tabIndex:"0"}),ro.createElement("i",{ref:e=>{this.trapEl=e},"aria-hidden":!0,onKeyDown:this.handleTrapElKeyDown,tabIndex:"0"}))}}const jo=Mo;var Ro=n(5143);const No=new Ro.CompositeDecorator([{strategy:(e,t,n)=>{e.findEntityRanges(e=>{const t=e.getEntity();return null!==t&&"MENTION"===n.getEntity(t).getType()},t)},component:e=>{let{contentState:t,entityKey:n,children:r}=e,o="";return n&&(o=t.getEntity(n).getData().id),ro.createElement("a",{href:"/profile/".concat(o)},r)}}]),Fo=e=>{const t=/([@@﹫])\[([0-9]+):([^\]]+)]/gi.exec(e);if(!t)return null;const[n,r,o,i]=t,a=t.index;return{start:a,end:a+n.length,data:{id:o,name:i,content:"".concat(r).concat(i)}}},Bo=["@","@","﹫"].reduce((e,t)=>"".concat(e,"\\").concat(t),""),Uo=new RegExp("([".concat(Bo,"])([^").concat(Bo,"]*)$"));function Ko(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uo;const n=e.getCurrentContent(),r=e.getSelection(),o=r.getStartKey(),i=n.getBlockForKey(o),a=r.getStartOffset();let s=null;return i.findEntityRanges(e=>null===e.getEntity(),(e,n)=>{if(e<=a&&a<=n){const n=i.getText().substr(e,a-e).match(t);n&&(s={blockID:o,mentionString:n[2],mentionTrigger:n[1],start:e+n.index,end:a})}return null}),s}function Ho(e){const t=e.getCurrentContent(),n=t.getBlockMap(),r=[];let o=!1;return n.forEach(e=>{const n=e.getText(),i=[];e.findEntityRanges(()=>!0,(r,a)=>{const s=e.getEntityAt(r);if(s){const e=t.getEntity(s),c="@[".concat(e.getData().id,":").concat(n.substring(r+1,a),"]");i.push(c),o=!0}else i.push(n.substring(r,a))}),r.push(i.join(""))}),{text:r.join("\n"),hasMention:o}}var zo=n(115),qo=n.n(zo),Vo=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Go}(e)}(e)},Go="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Wo(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Yo((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function $o(e,t,n){return e.concat(t).map(function(e){return Wo(e,n)})}function Yo(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||$o,n.isMergeableObject=n.isMergeableObject||Vo;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(t){r[t]=Wo(e[t],n)}),Object.keys(t).forEach(function(o){n.isMergeableObject(t[o])&&e[o]?r[o]=Yo(e[o],t[o],n):r[o]=Wo(t[o],n)}),r}(e,t,n):Wo(t,n)}Yo.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return Yo(e,n,t)},{})};const Xo=Yo;var Zo=n(4606);const Jo=Zo.A.Symbol;var Qo=Object.prototype,ei=Qo.hasOwnProperty,ti=Qo.toString,ni=Jo?Jo.toStringTag:void 0;var ri=Object.prototype.toString;var oi=Jo?Jo.toStringTag:void 0;const ii=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":oi&&oi in Object(e)?function(e){var t=ei.call(e,ni),n=e[ni];try{e[ni]=void 0;var r=!0}catch(e){}var o=ti.call(e);return r&&(t?e[ni]=n:delete e[ni]),o}(e):function(e){return ri.call(e)}(e)},ai=function(e,t){return function(n){return e(t(n))}},si=ai(Object.getPrototypeOf,Object),ci=function(e){return null!=e&&"object"==typeof e};var ui=Function.prototype,li=Object.prototype,di=ui.toString,fi=li.hasOwnProperty,pi=di.call(Object);const hi=function(e){if(!ci(e)||"[object Object]"!=ii(e))return!1;var t=si(e);if(null===t)return!0;var n=fi.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&di.call(n)==pi},gi=function(e,t){return e===t||e!=e&&t!=t},yi=function(e,t){for(var n=e.length;n--;)if(gi(e[n][0],t))return n;return-1};var mi=Array.prototype.splice;function bi(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}bi.prototype.clear=function(){this.__data__=[],this.size=0},bi.prototype.delete=function(e){var t=this.__data__,n=yi(t,e);return!(n<0||(n==t.length-1?t.pop():mi.call(t,n,1),--this.size,0))},bi.prototype.get=function(e){var t=this.__data__,n=yi(t,e);return n<0?void 0:t[n][1]},bi.prototype.has=function(e){return yi(this.__data__,e)>-1},bi.prototype.set=function(e,t){var n=this.__data__,r=yi(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const vi=bi,wi=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Si=function(e){if(!wi(e))return!1;var t=ii(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},xi=Zo.A["__core-js_shared__"];var Ei,_i=(Ei=/[^.]+$/.exec(xi&&xi.keys&&xi.keys.IE_PROTO||""))?"Symbol(src)_1."+Ei:"";var Oi=Function.prototype.toString;const ki=function(e){if(null!=e){try{return Oi.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var Ci=/^\[object .+?Constructor\]$/,Ai=Function.prototype,Ti=Object.prototype,Ii=Ai.toString,Pi=Ti.hasOwnProperty,Li=RegExp("^"+Ii.call(Pi).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Di=function(e){return!(!wi(e)||(t=e,_i&&_i in t))&&(Si(e)?Li:Ci).test(ki(e));var t},Mi=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Di(n)?n:void 0},ji=Mi(Zo.A,"Map"),Ri=Mi(Object,"create");var Ni=Object.prototype.hasOwnProperty;var Fi=Object.prototype.hasOwnProperty;function Bi(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Bi.prototype.clear=function(){this.__data__=Ri?Ri(null):{},this.size=0},Bi.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Bi.prototype.get=function(e){var t=this.__data__;if(Ri){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Ni.call(t,e)?t[e]:void 0},Bi.prototype.has=function(e){var t=this.__data__;return Ri?void 0!==t[e]:Fi.call(t,e)},Bi.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ri&&void 0===t?"__lodash_hash_undefined__":t,this};const Ui=Bi,Ki=function(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map};function Hi(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Hi.prototype.clear=function(){this.size=0,this.__data__={hash:new Ui,map:new(ji||vi),string:new Ui}},Hi.prototype.delete=function(e){var t=Ki(this,e).delete(e);return this.size-=t?1:0,t},Hi.prototype.get=function(e){return Ki(this,e).get(e)},Hi.prototype.has=function(e){return Ki(this,e).has(e)},Hi.prototype.set=function(e,t){var n=Ki(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};const zi=Hi;function qi(e){var t=this.__data__=new vi(e);this.size=t.size}qi.prototype.clear=function(){this.__data__=new vi,this.size=0},qi.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},qi.prototype.get=function(e){return this.__data__.get(e)},qi.prototype.has=function(e){return this.__data__.has(e)},qi.prototype.set=function(e,t){var n=this.__data__;if(n instanceof vi){var r=n.__data__;if(!ji||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new zi(r)}return n.set(e,t),this.size=n.size,this};const Vi=qi,Gi=function(){try{var e=Mi(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Wi=function(e,t,n){"__proto__"==t&&Gi?Gi(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var $i=Object.prototype.hasOwnProperty;const Yi=function(e,t,n){var r=e[t];$i.call(e,t)&&gi(r,n)&&(void 0!==n||t in e)||Wi(e,t,n)},Xi=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),o?Wi(n,s,c):Yi(n,s,c)}return n},Zi=function(e){return ci(e)&&"[object Arguments]"==ii(e)};var Ji=Object.prototype,Qi=Ji.hasOwnProperty,ea=Ji.propertyIsEnumerable;const ta=Zi(function(){return arguments}())?Zi:function(e){return ci(e)&&Qi.call(e,"callee")&&!ea.call(e,"callee")},na=Array.isArray;var ra=n(1719),oa=/^(?:0|[1-9]\d*)$/;const ia=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&oa.test(e))&&e>-1&&e%1==0&&e<t},aa=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var sa={};sa["[object Float32Array]"]=sa["[object Float64Array]"]=sa["[object Int8Array]"]=sa["[object Int16Array]"]=sa["[object Int32Array]"]=sa["[object Uint8Array]"]=sa["[object Uint8ClampedArray]"]=sa["[object Uint16Array]"]=sa["[object Uint32Array]"]=!0,sa["[object Arguments]"]=sa["[object Array]"]=sa["[object ArrayBuffer]"]=sa["[object Boolean]"]=sa["[object DataView]"]=sa["[object Date]"]=sa["[object Error]"]=sa["[object Function]"]=sa["[object Map]"]=sa["[object Number]"]=sa["[object Object]"]=sa["[object RegExp]"]=sa["[object Set]"]=sa["[object String]"]=sa["[object WeakMap]"]=!1;const ca=function(e){return function(t){return e(t)}};var ua=n(9986),la=ua.A&&ua.A.isTypedArray;const da=la?ca(la):function(e){return ci(e)&&aa(e.length)&&!!sa[ii(e)]};var fa=Object.prototype.hasOwnProperty;const pa=function(e,t){var n=na(e),r=!n&&ta(e),o=!n&&!r&&(0,ra.A)(e),i=!n&&!r&&!o&&da(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=s.length;for(var u in e)!t&&!fa.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ia(u,c))||s.push(u);return s};var ha=Object.prototype;const ga=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ha)},ya=ai(Object.keys,Object);var ma=Object.prototype.hasOwnProperty;const ba=function(e){return null!=e&&aa(e.length)&&!Si(e)},va=function(e){return ba(e)?pa(e):function(e){if(!ga(e))return ya(e);var t=[];for(var n in Object(e))ma.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)};var wa=Object.prototype.hasOwnProperty;const Sa=function(e){if(!wi(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ga(e),n=[];for(var r in e)("constructor"!=r||!t&&wa.call(e,r))&&n.push(r);return n},xa=function(e){return ba(e)?pa(e,!0):Sa(e)};var Ea=n(5963);const _a=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},Oa=function(){return[]};var ka=Object.prototype.propertyIsEnumerable,Ca=Object.getOwnPropertySymbols;const Aa=Ca?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}(Ca(e),function(t){return ka.call(e,t)}))}:Oa,Ta=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},Ia=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Ta(t,Aa(e)),e=si(e);return t}:Oa,Pa=function(e,t,n){var r=t(e);return na(e)?r:Ta(r,n(e))},La=function(e){return Pa(e,va,Aa)},Da=function(e){return Pa(e,xa,Ia)},Ma=Mi(Zo.A,"DataView"),ja=Mi(Zo.A,"Promise"),Ra=Mi(Zo.A,"Set"),Na=Mi(Zo.A,"WeakMap");var Fa="[object Map]",Ba="[object Promise]",Ua="[object Set]",Ka="[object WeakMap]",Ha="[object DataView]",za=ki(Ma),qa=ki(ji),Va=ki(ja),Ga=ki(Ra),Wa=ki(Na),$a=ii;(Ma&&$a(new Ma(new ArrayBuffer(1)))!=Ha||ji&&$a(new ji)!=Fa||ja&&$a(ja.resolve())!=Ba||Ra&&$a(new Ra)!=Ua||Na&&$a(new Na)!=Ka)&&($a=function(e){var t=ii(e),n="[object Object]"==t?e.constructor:void 0,r=n?ki(n):"";if(r)switch(r){case za:return Ha;case qa:return Fa;case Va:return Ba;case Ga:return Ua;case Wa:return Ka}return t});const Ya=$a;var Xa=Object.prototype.hasOwnProperty;const Za=Zo.A.Uint8Array,Ja=function(e){var t=new e.constructor(e.byteLength);return new Za(t).set(new Za(e)),t};var Qa=/\w*$/;var es=Jo?Jo.prototype:void 0,ts=es?es.valueOf:void 0;const ns=function(e,t,n){var r,o,i,a=e.constructor;switch(t){case"[object ArrayBuffer]":return Ja(e);case"[object Boolean]":case"[object Date]":return new a(+e);case"[object DataView]":return function(e,t){var n=t?Ja(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?Ja(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":case"[object Set]":return new a;case"[object Number]":case"[object String]":return new a(e);case"[object RegExp]":return(i=new(o=e).constructor(o.source,Qa.exec(o))).lastIndex=o.lastIndex,i;case"[object Symbol]":return r=e,ts?Object(ts.call(r)):{}}};var rs=Object.create;const os=function(){function e(){}return function(t){if(!wi(t))return{};if(rs)return rs(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var is=ua.A&&ua.A.isMap;const as=is?ca(is):function(e){return ci(e)&&"[object Map]"==Ya(e)};var ss=ua.A&&ua.A.isSet;const cs=ss?ca(ss):function(e){return ci(e)&&"[object Set]"==Ya(e)};var us="[object Arguments]",ls="[object Function]",ds="[object Object]",fs={};fs[us]=fs["[object Array]"]=fs["[object ArrayBuffer]"]=fs["[object DataView]"]=fs["[object Boolean]"]=fs["[object Date]"]=fs["[object Float32Array]"]=fs["[object Float64Array]"]=fs["[object Int8Array]"]=fs["[object Int16Array]"]=fs["[object Int32Array]"]=fs["[object Map]"]=fs["[object Number]"]=fs[ds]=fs["[object RegExp]"]=fs["[object Set]"]=fs["[object String]"]=fs["[object Symbol]"]=fs["[object Uint8Array]"]=fs["[object Uint8ClampedArray]"]=fs["[object Uint16Array]"]=fs["[object Uint32Array]"]=!0,fs["[object Error]"]=fs[ls]=fs["[object WeakMap]"]=!1;const ps=function e(t,n,r,o,i,a){var s,c=1&n,u=2&n,l=4&n;if(r&&(s=i?r(t,o,i,a):r(t)),void 0!==s)return s;if(!wi(t))return t;var d=na(t);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Xa.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!c)return _a(t,s)}else{var f=Ya(t),p=f==ls||"[object GeneratorFunction]"==f;if((0,ra.A)(t))return(0,Ea.A)(t,c);if(f==ds||f==us||p&&!i){if(s=u||p?{}:function(e){return"function"!=typeof e.constructor||ga(e)?{}:os(si(e))}(t),!c)return u?function(e,t){return Xi(e,Ia(e),t)}(t,function(e,t){return e&&Xi(t,xa(t),e)}(s,t)):function(e,t){return Xi(e,Aa(e),t)}(t,function(e,t){return e&&Xi(t,va(t),e)}(s,t))}else{if(!fs[f])return i?t:{};s=ns(t,f,c)}}a||(a=new Vi);var h=a.get(t);if(h)return h;a.set(t,s),cs(t)?t.forEach(function(o){s.add(e(o,n,r,o,t,a))}):as(t)&&t.forEach(function(o,i){s.set(i,e(o,n,r,i,t,a))});var g=l?u?Da:La:u?keysIn:va,y=d?void 0:g(t);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););}(y||t,function(o,i){y&&(o=t[i=o]),Yi(s,i,e(o,n,r,i,t,a))}),s},hs=function(e){return ps(e,4)},gs=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},ys=function(e){return"symbol"==typeof e||ci(e)&&"[object Symbol]"==ii(e)};function ms(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(ms.Cache||zi),n}ms.Cache=zi;var bs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vs=/\\(\\)?/g;const ws=(Ss=ms(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(bs,function(e,n,r,o){t.push(r?o.replace(vs,"$1"):n||e)}),t},function(e){return 500===xs.size&&xs.clear(),e}),xs=Ss.cache,Ss);var Ss,xs;const Es=function(e){if("string"==typeof e||ys(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};var _s=Jo?Jo.prototype:void 0,Os=_s?_s.toString:void 0;const ks=function e(t){if("string"==typeof t)return t;if(na(t))return gs(t,e)+"";if(ys(t))return Os?Os.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},Cs=function(e){return null==e?"":ks(e)},As=function(e){return na(e)?gs(e,Es):ys(e)?[e]:_a(ws(Cs(e)))};var Ts=n(9982),Is=n(4146),Ps=n.n(Is);const Ls=function(e){return ps(e,5)};function Ds(){return Ds=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ds.apply(this,arguments)}function Ms(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function js(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Rs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Ns=function(e){return Array.isArray(e)&&0===e.length},Fs=function(e){return"function"==typeof e},Bs=function(e){return null!==e&&"object"==typeof e},Us=function(e){return String(Math.floor(Number(e)))===e},Ks=function(e){return"[object String]"===Object.prototype.toString.call(e)},Hs=function(e){return 0===ro.Children.count(e)},zs=function(e){return Bs(e)&&Fs(e.then)};function qs(e,t,n,r){void 0===r&&(r=0);for(var o=As(t);e&&r<o.length;)e=e[o[r++]];return void 0===e?n:e}function Vs(e,t,n){for(var r=hs(e),o=r,i=0,a=As(t);i<a.length-1;i++){var s=a[i],c=qs(e,a.slice(0,i+1));if(c&&(Bs(c)||Array.isArray(c)))o=o[s]=hs(c);else{var u=a[i+1];o=o[s]=Us(u)&&Number(u)>=0?[]:{}}}return(0===i?e:o)[a[i]]===n?e:(void 0===n?delete o[a[i]]:o[a[i]]=n,0===i&&void 0===n&&delete r[a[i]],r)}function Gs(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var o=0,i=Object.keys(e);o<i.length;o++){var a=i[o],s=e[a];Bs(s)?n.get(s)||(n.set(s,!0),r[a]=Array.isArray(s)?[]:{},Gs(s,t,n,r[a])):r[a]=t}return r}var Ws=(0,ro.createContext)(void 0),$s=Ws.Provider;function Ys(e,t){switch(t.type){case"SET_VALUES":return Ds({},e,{values:t.payload});case"SET_TOUCHED":return Ds({},e,{touched:t.payload});case"SET_ERRORS":return qo()(e.errors,t.payload)?e:Ds({},e,{errors:t.payload});case"SET_STATUS":return Ds({},e,{status:t.payload});case"SET_ISSUBMITTING":return Ds({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Ds({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Ds({},e,{values:Vs(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Ds({},e,{touched:Vs(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Ds({},e,{errors:Vs(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Ds({},e,{},t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Ds({},e,{touched:Gs(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return Ds({},e,{isSubmitting:!1});default:return e}}Ws.Consumer;var Xs={},Zs={};function Js(e){var t=e.validateOnChange,n=void 0===t||t,r=e.validateOnBlur,o=void 0===r||r,i=e.validateOnMount,a=void 0!==i&&i,s=e.isInitialValid,c=e.enableReinitialize,u=void 0!==c&&c,l=e.onSubmit,d=js(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),f=Ds({validateOnChange:n,validateOnBlur:o,validateOnMount:a,onSubmit:l},d),p=(0,ro.useRef)(f.initialValues),h=(0,ro.useRef)(f.initialErrors||Xs),g=(0,ro.useRef)(f.initialTouched||Zs),y=(0,ro.useRef)(f.initialStatus),m=(0,ro.useRef)(!1),b=(0,ro.useRef)({});(0,ro.useEffect)(function(){},[]),(0,ro.useEffect)(function(){return m.current=!0,function(){m.current=!1}},[]);var v=(0,ro.useReducer)(Ys,{values:f.initialValues,errors:f.initialErrors||Xs,touched:f.initialTouched||Zs,status:f.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),w=v[0],S=v[1],x=(0,ro.useCallback)(function(e,t){return new Promise(function(n,r){var o=f.validate(e,t);null==o?n(Xs):zs(o)?o.then(function(e){n(e||Xs)},function(e){r(e)}):n(o)})},[f.validate]),E=(0,ro.useCallback)(function(e,t){var n=f.validationSchema,r=Fs(n)?n(t):n,o=t&&r.validateAt?r.validateAt(t,e):function(e,t,n,r){void 0===n&&(n=!1),void 0===r&&(r={});var o=ec(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:r})}(e,r);return new Promise(function(e,t){o.then(function(){e(Xs)},function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return Vs(t,e.path,e.message);var n=e.inner,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}var a=i;qs(t,a.path)||(t=Vs(t,a.path,a.message))}}return t}(n)):t(n)})})},[f.validationSchema]),_=(0,ro.useCallback)(function(e,t){return new Promise(function(n){return n(b.current[e].validate(t))})},[]),O=(0,ro.useCallback)(function(e){var t=Object.keys(b.current).filter(function(e){return Fs(b.current[e].validate)}),n=t.length>0?t.map(function(t){return _(t,qs(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then(function(e){return e.reduce(function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=Vs(e,t[r],n)),e},{})})},[_]),k=(0,ro.useCallback)(function(e){return Promise.all([O(e),f.validationSchema?E(e):{},f.validate?x(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return Xo.all([t,n,r],{arrayMerge:tc})})},[f.validate,f.validationSchema,O,x,E]),C=rc(function(e){return void 0===e&&(e=w.values),(0,Ts.unstable_runWithPriority)(Ts.LowPriority,function(){return k(e).then(function(e){return m.current&&S({type:"SET_ERRORS",payload:e}),e}).catch(function(e){})})}),A=rc(function(e){return void 0===e&&(e=w.values),S({type:"SET_ISVALIDATING",payload:!0}),k(e).then(function(e){return m.current&&(S({type:"SET_ISVALIDATING",payload:!1}),qo()(w.errors,e)||S({type:"SET_ERRORS",payload:e})),e})});(0,ro.useEffect)(function(){a&&!0===m.current&&C(p.current)},[a,C]);var T=(0,ro.useCallback)(function(e){var t=e&&e.values?e.values:p.current,n=e&&e.errors?e.errors:h.current?h.current:f.initialErrors||{},r=e&&e.touched?e.touched:g.current?g.current:f.initialTouched||{},o=e&&e.status?e.status:y.current?y.current:f.initialStatus;p.current=t,h.current=n,g.current=r,y.current=o;var i=function(){S({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:o,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(f.onReset){var a=f.onReset(w.values,$);zs(a)?a.then(i):i()}else i()},[f.initialErrors,f.initialStatus,f.initialTouched]);(0,ro.useEffect)(function(){u||(p.current=f.initialValues)},[u,f.initialValues]),(0,ro.useEffect)(function(){u&&!0===m.current&&!qo()(p.current,f.initialValues)&&(p.current=f.initialValues,T())},[u,f.initialValues,T]),(0,ro.useEffect)(function(){u&&!0===m.current&&!qo()(h.current,f.initialErrors)&&(h.current=f.initialErrors||Xs,S({type:"SET_ERRORS",payload:f.initialErrors||Xs}))},[u,f.initialErrors]),(0,ro.useEffect)(function(){u&&!0===m.current&&!qo()(g.current,f.initialTouched)&&(g.current=f.initialTouched||Zs,S({type:"SET_TOUCHED",payload:f.initialTouched||Zs}))},[u,f.initialTouched]),(0,ro.useEffect)(function(){u&&!0===m.current&&!qo()(y.current,f.initialStatus)&&(y.current=f.initialStatus,S({type:"SET_STATUS",payload:f.initialStatus}))},[u,f.initialStatus,f.initialTouched]);var I=rc(function(e){if(Fs(b.current[e].validate)){var t=qs(w.values,e),n=b.current[e].validate(t);return zs(n)?(S({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),S({type:"SET_ISVALIDATING",payload:!1})})):(S({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return f.validationSchema?(S({type:"SET_ISVALIDATING",payload:!0}),E(w.values,e).then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),S({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),P=(0,ro.useCallback)(function(e,t){var n=t.validate;b.current[e]={validate:n}},[]),L=(0,ro.useCallback)(function(e){delete b.current[e]},[]),D=rc(function(e,t){return S({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?C(w.values):Promise.resolve()}),M=(0,ro.useCallback)(function(e){S({type:"SET_ERRORS",payload:e})},[]),j=rc(function(e,t){return S({type:"SET_VALUES",payload:e}),(void 0===t?n:t)?C(e):Promise.resolve()}),R=(0,ro.useCallback)(function(e,t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),N=rc(function(e,t,r){return S({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?C(Vs(w.values,e,t)):Promise.resolve()}),F=(0,ro.useCallback)(function(e,t){var n,r=t,o=e;if(!Ks(e)){e.persist&&e.persist();var i=e.target?e.target:e.currentTarget,a=i.type,s=i.name,c=i.id,u=i.value,l=i.checked,d=(i.outerHTML,i.options),f=i.multiple;r=t||s||c,o=/number|range/.test(a)?(n=parseFloat(u),isNaN(n)?"":n):/checkbox/.test(a)?function(e,t,n){if("boolean"==typeof e)return Boolean(t);var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,o=(i=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return Boolean(t);return t&&n&&!o?r.concat(n):o?r.slice(0,i).concat(r.slice(i+1)):r}(qs(w.values,r),l,u):f?function(e){return Array.from(e).filter(function(e){return e.selected}).map(function(e){return e.value})}(d):u}r&&N(r,o)},[N,w.values]),B=rc(function(e){if(Ks(e))return function(t){return F(t,e)};F(e)}),U=rc(function(e,t,n){return void 0===t&&(t=!0),S({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?o:n)?C(w.values):Promise.resolve()}),K=(0,ro.useCallback)(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,o=n.id,i=(n.outerHTML,t||r||o);U(i,!0)},[U]),H=rc(function(e){if(Ks(e))return function(t){return K(t,e)};K(e)}),z=(0,ro.useCallback)(function(e){Fs(e)?S({type:"SET_FORMIK_STATE",payload:e}):S({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),q=(0,ro.useCallback)(function(e){S({type:"SET_STATUS",payload:e})},[]),V=(0,ro.useCallback)(function(e){S({type:"SET_ISSUBMITTING",payload:e})},[]),G=rc(function(){return S({type:"SUBMIT_ATTEMPT"}),A().then(function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var n;try{if(void 0===(n=Y()))return}catch(e){throw e}return Promise.resolve(n).then(function(){m.current&&S({type:"SUBMIT_SUCCESS"})}).catch(function(e){if(m.current)throw S({type:"SUBMIT_FAILURE"}),e})}if(m.current&&(S({type:"SUBMIT_FAILURE"}),t))throw e})}),W=rc(function(e){e&&e.preventDefault&&Fs(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Fs(e.stopPropagation)&&e.stopPropagation(),G().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),$={resetForm:T,validateForm:A,validateField:I,setErrors:M,setFieldError:R,setFieldTouched:U,setFieldValue:N,setStatus:q,setSubmitting:V,setTouched:D,setValues:j,setFormikState:z,submitForm:G},Y=rc(function(){return l(w.values,$)}),X=rc(function(e){e&&e.preventDefault&&Fs(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Fs(e.stopPropagation)&&e.stopPropagation(),T()}),Z=(0,ro.useCallback)(function(e){return{value:qs(w.values,e),error:qs(w.errors,e),touched:!!qs(w.touched,e),initialValue:qs(p.current,e),initialTouched:!!qs(g.current,e),initialError:qs(h.current,e)}},[w.errors,w.touched,w.values]),J=(0,ro.useCallback)(function(e){return{setValue:function(t){return N(e,t)},setTouched:function(t){return U(e,t)},setError:function(t){return R(e,t)}}},[N,U,R]),Q=(0,ro.useCallback)(function(e){var t=Bs(e),n=t?e.name:e,r=qs(w.values,n),o={name:n,value:r,onChange:B,onBlur:H};if(t){var i=e.type,a=e.value,s=e.as,c=e.multiple;"checkbox"===i?void 0===a?o.checked=!!r:(o.checked=!(!Array.isArray(r)||!~r.indexOf(a)),o.value=a):"radio"===i?(o.checked=r===a,o.value=a):"select"===s&&c&&(o.value=o.value||[],o.multiple=!0)}return o},[H,B,w.values]),ee=(0,ro.useMemo)(function(){return!qo()(p.current,w.values)},[p.current,w.values]),te=(0,ro.useMemo)(function(){return void 0!==s?ee?w.errors&&0===Object.keys(w.errors).length:!1!==s&&Fs(s)?s(f):s:w.errors&&0===Object.keys(w.errors).length},[s,ee,w.errors,f]);return Ds({},w,{initialValues:p.current,initialErrors:h.current,initialTouched:g.current,initialStatus:y.current,handleBlur:H,handleChange:B,handleReset:X,handleSubmit:W,resetForm:T,setErrors:M,setFormikState:z,setFieldTouched:U,setFieldValue:N,setFieldError:R,setStatus:q,setSubmitting:V,setTouched:D,setValues:j,submitForm:G,validateForm:A,validateField:I,isValid:te,dirty:ee,unregisterField:L,registerField:P,getFieldProps:Q,getFieldMeta:Z,getFieldHelpers:J,validateOnBlur:o,validateOnChange:n,validateOnMount:a})}function Qs(e){var t=Js(e),n=e.component,r=e.children,o=e.render,i=e.innerRef;return(0,ro.useImperativeHandle)(i,function(){return t}),(0,ro.useEffect)(function(){},[]),(0,ro.createElement)($s,{value:t},n?(0,ro.createElement)(n,t):o?o(t):r?Fs(r)?r(t):Hs(r)?null:ro.Children.only(r):null)}function ec(e){var t={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);!0===Array.isArray(e[r])?t[r]=e[r].map(function(e){return!0===Array.isArray(e)||hi(e)?ec(e):""!==e?e:void 0}):hi(e[r])?t[r]=ec(e[r]):t[r]=""!==e[r]?e[r]:void 0}return t}function tc(e,t,n){var r=e.slice();return t.forEach(function(t,o){if(void 0===r[o]){var i=!1!==n.clone&&n.isMergeableObject(t);r[o]=i?Xo(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[o]=Xo(e[o],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var nc="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?ro.useLayoutEffect:ro.useEffect;function rc(e){var t=(0,ro.useRef)(e);return nc(function(){t.current=e}),(0,ro.useCallback)(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current.apply(void 0,n)},[])}var oc=(0,ro.forwardRef)(function(e,t){var n=e.action,r=js(e,["action"]),o=n||"#",i=(0,ro.useContext)(Ws),a=i.handleReset,s=i.handleSubmit;return(0,ro.createElement)("form",Object.assign({onSubmit:s,ref:t,onReset:a,action:o},r))});oc.displayName="Form";var ic=function(e,t,n){var r=ac(e);return r.splice(t,0,n),r},ac=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map(function(e){return parseInt(e)}).reduce(function(e,t){return t>e?t:e},0);return Array.from(Ds({},e,{length:t+1}))}return[]},sc=function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var o=n.props,i=o.name;(0,o.formik.setFormikState)(function(n){var o="function"==typeof r?r:e,a="function"==typeof t?t:e,s=Vs(n.values,i,e(qs(n.values,i))),c=r?o(qs(n.errors,i)):void 0,u=t?a(qs(n.touched,i)):void 0;return Ns(c)&&(c=void 0),Ns(u)&&(u=void 0),Ds({},n,{values:s,errors:r?Vs(n.errors,i,c):n.errors,touched:t?Vs(n.touched,i,u):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat(ac(t),[Ls(e)])},!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField(function(n){return function(e,t,n){var r=ac(e),o=r[t];return r[t]=r[n],r[n]=o,r}(n,e,t)},!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField(function(n){return function(e,t,n){var r=ac(e),o=r[t];return r.splice(t,1),r.splice(n,0,o),r}(n,e,t)},!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField(function(n){return ic(n,e,t)},function(t){return ic(t,e,null)},function(t){return ic(t,e,null)})},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField(function(n){return function(e,t,n){var r=ac(e);return r[t]=n,r}(n,e,t)},!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField(function(n){var r=n?[e].concat(n):[e];return t<0&&(t=r.length),r},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(Rs(n)),n.pop=n.pop.bind(Rs(n)),n}Ms(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){!qo()(qs(e.formik.values,e.name),qs(this.props.formik.values,this.props.name))&&this.props.formik.validateOnChange&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(e){var t;return this.updateArrayField(function(n){var r=n?ac(n):[];return t||(t=r[e]),Fs(r.splice)&&r.splice(e,1),r},!0,!0),t},n.pop=function(){var e;return this.updateArrayField(function(t){var n=t;return e||(e=n&&n.pop&&n.pop()),n},!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,r=t.render,o=t.children,i=t.name,a=Ds({},e,{form:js(t.formik,["validate","validationSchema"]),name:i});return n?(0,ro.createElement)(n,a):r?r(a):o?"function"==typeof o?o(a):Hs(o)?null:ro.Children.only(o):null},t}(ro.Component);sc.defaultProps={validateOnChange:!0};const cc=(0,ho.defineMessages)({ariaLabelComment:{id:"ba.popup.reply.comment",defaultMessage:"Comment"},ariaLabelMentionLoading:{id:"ba.popup.reply.mentionLoading",defaultMessage:"Loading users..."},ariaLabelMentionSelector:{id:"ba.popup.reply.mentionSelector",defaultMessage:"Mention a collaborator"},ariaLabelReplyField:{id:"ba.popup.reply.field",defaultMessage:"Type a comment"},buttonCancel:{id:"ba.popups.cancel",defaultMessage:"Cancel"},buttonPost:{id:"ba.popups.post",defaultMessage:"Post"},drawingButtonAddComment:{id:"ba.popups.drawing.addComment",defaultMessage:"Add Comment"},drawingButtonDelete:{id:"ba.popups.drawing.delete",defaultMessage:"Delete"},drawingButtonRedo:{id:"ba.popups.drawing.redo",defaultMessage:"Redo"},drawingButtonUndo:{id:"ba.popups.drawing.undo",defaultMessage:"Undo"},fieldPlaceholder:{id:"ba.popups.replyField.placeholder",defaultMessage:"Type a comment..."},popupHighlightPromoter:{id:"ba.popups.popupHighlight.promoter",defaultMessage:"Highlight and Comment"},popupHighlightRestrictedPrompt:{id:"ba.popups.popupHighlight.restrictedPrompt",defaultMessage:"Comments restricted to single page"},popupListPrompt:{id:"ba.popups.popupList.prompt",defaultMessage:"Mention someone to notify them"},regionCursorPrompt:{id:"ba.popups.popupCursor.regionPrompt",defaultMessage:"Draw a box to comment"}}),uc=["children","isDisabled","isPrimary","onClick"];function lc(e){let{children:t,isDisabled:n,isPrimary:r,onClick:o=Nn()}=e,i=Se(e,uc);return oo().createElement("button",g({"aria-disabled":!!n||void 0,className:Po()("btn",{"btn-primary":r,"is-disabled":n}),onClick:e=>{if(n)return e.preventDefault(),void e.stopPropagation();o(e)},type:"button"},i),t)}var dc=n(8221),fc=n.n(dc),pc=n(2193),hc=n.n(pc);function gc(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function yc(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function mc(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return yc(n.overflowY,t)||yc(n.overflowX,t)||function(e){var t=function(e){return e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView.frameElement:null}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function bc(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}const vc=function(e,t){var n=t.scrollMode,r=t.block,o=t.inline,i=t.boundary,a=t.skipOverflowHiddenElements,s="function"==typeof i?i:function(e){return e!==i};if(!gc(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,u=[],l=e;gc(l)&&s(l);){if((l=l.parentNode)===c){u.push(l);break}l===document.body&&mc(l)&&!mc(document.documentElement)||mc(l,a)&&u.push(l)}for(var d=window.visualViewport?visualViewport.width:innerWidth,f=window.visualViewport?visualViewport.height:innerHeight,p=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),y=g.height,m=g.width,b=g.top,v=g.right,w=g.bottom,S=g.left,x="start"===r||"nearest"===r?b:"end"===r?w:b+y/2,E="center"===o?S+m/2:"end"===o?v:S,_=[],O=0;O<u.length;O++){var k=u[O],C=k.getBoundingClientRect(),A=C.height,T=C.width,I=C.top,P=C.right,L=C.bottom,D=C.left;if("if-needed"===n&&b>=0&&S>=0&&w<=f&&v<=d&&b>=I&&w<=L&&S>=D&&v<=P)return _;var M=getComputedStyle(k),j=parseInt(M.borderLeftWidth,10),R=parseInt(M.borderTopWidth,10),N=parseInt(M.borderRightWidth,10),F=parseInt(M.borderBottomWidth,10),B=0,U=0,K="offsetWidth"in k?k.offsetWidth-k.clientWidth-j-N:0,H="offsetHeight"in k?k.offsetHeight-k.clientHeight-R-F:0;if(c===k)B="start"===r?x:"end"===r?x-f:"nearest"===r?bc(h,h+f,f,R,F,h+x,h+x+y,y):x-f/2,U="start"===o?E:"center"===o?E-d/2:"end"===o?E-d:bc(p,p+d,d,j,N,p+E,p+E+m,m),B=Math.max(0,B+h),U=Math.max(0,U+p);else{B="start"===r?x-I-R:"end"===r?x-L+F+H:"nearest"===r?bc(I,L,A,R,F+H,x,x+y,y):x-(I+A/2)+H/2,U="start"===o?E-D-j:"center"===o?E-(D+T/2)+K/2:"end"===o?E-P+N+K:bc(D,P,T,j,N+K,E,E+m,m);var z=k.scrollLeft,q=k.scrollTop;x+=q-(B=Math.max(0,Math.min(q+B,k.scrollHeight-A+H))),E+=z-(U=Math.max(0,Math.min(z+U,k.scrollWidth-T+K)))}_.push({el:k,top:B,left:U})}return _};function wc(e){return e===Object(e)&&0!==Object.keys(e).length}(Object.getOwnPropertyDescriptor(vc,"name")||{}).writable||Object.defineProperty(vc,"name",{value:"default",configurable:!0});const Sc=(e,t)=>{const{className:n,isActive:r,item:o,onClick:i,onMouseDown:a,onMouseEnter:s}=e;if(!o||!o.item||!o.item.name)return null;const{item:c}=o;return ro.createElement("li",{ref:t,"aria-selected":r,className:Po()(n,"ba-ItemRow",{"is-active":r}),"data-resin-target":"atMention","data-testid":"ba-ItemRow",onClick:i,onMouseDown:a,onMouseEnter:s,role:"option"},ro.createElement("div",{className:"ba-ItemRow-name","data-testid":"ba-ItemRow-name"},c.name),"user"===c.type&&c.email&&ro.createElement("div",{className:"ba-ItemRow-email","data-testid":"ba-ItemRow-email"},c.email))},xc=ro.forwardRef(Sc),Ec=["activeItemIndex","autoScroll","itemRowAs","items","onActivate","onSelect"],_c=e=>{let{activeItemIndex:t=0,autoScroll:n=!1,itemRowAs:r=xc,items:o,onActivate:i=Nn(),onSelect:a}=e,s=Se(e,Ec);const c=oo().useCallback(e=>{n&&e&&function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(wc(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:vc(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:wc(e)?e:{block:"start",inline:"nearest"}}(t);(function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)})})(vc(e,r),r.behavior)}}(e,{scrollMode:"if-needed",block:"nearest"})},[n]);return oo().createElement("ul",g({className:"ba-ItemList","data-testid":"ba-ItemList",role:"listbox"},s),o.map((e,n)=>oo().createElement(r,{key:e.id,ref:n===t?c:null,className:"ba-ItemList-row",isActive:n===t,item:e,onClick:e=>{a(n,e)},onMouseDown:e=>{e.preventDefault()},onMouseEnter:()=>{i(n)}})))};function Oc(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function kc(e){return e instanceof Oc(e).Element||e instanceof Element}function Cc(e){return e instanceof Oc(e).HTMLElement||e instanceof HTMLElement}function Ac(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Oc(e).ShadowRoot||e instanceof ShadowRoot)}var Tc=Math.max,Ic=Math.min,Pc=Math.round;function Lc(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Dc(){return!/^((?!chrome|android).)*safari/i.test(Lc())}function Mc(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Cc(e)&&(o=e.offsetWidth>0&&Pc(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Pc(r.height)/e.offsetHeight||1);var a=(kc(e)?Oc(e):window).visualViewport,s=!Dc()&&n,c=(r.left+(s&&a?a.offsetLeft:0))/o,u=(r.top+(s&&a?a.offsetTop:0))/i,l=r.width/o,d=r.height/i;return{width:l,height:d,top:u,right:c+l,bottom:u+d,left:c,x:c,y:u}}function jc(e){var t=Oc(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Rc(e){return e?(e.nodeName||"").toLowerCase():null}function Nc(e){return((kc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fc(e){return Mc(Nc(e)).left+jc(e).scrollLeft}function Bc(e){return Oc(e).getComputedStyle(e)}function Uc(e){var t=Bc(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Kc(e,t,n){void 0===n&&(n=!1);var r,o,i=Cc(t),a=Cc(t)&&function(e){var t=e.getBoundingClientRect(),n=Pc(t.width)/e.offsetWidth||1,r=Pc(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=Nc(t),c=Mc(e,a,n),u={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==Rc(t)||Uc(s))&&(u=(r=t)!==Oc(r)&&Cc(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:jc(r)),Cc(t)?((l=Mc(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Fc(s))),{x:c.left+u.scrollLeft-l.x,y:c.top+u.scrollTop-l.y,width:c.width,height:c.height}}function Hc(e){var t=Mc(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function zc(e){return"html"===Rc(e)?e:e.assignedSlot||e.parentNode||(Ac(e)?e.host:null)||Nc(e)}function qc(e){return["html","body","#document"].indexOf(Rc(e))>=0?e.ownerDocument.body:Cc(e)&&Uc(e)?e:qc(zc(e))}function Vc(e,t){var n;void 0===t&&(t=[]);var r=qc(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Oc(r),a=o?[i].concat(i.visualViewport||[],Uc(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Vc(zc(a)))}function Gc(e){return["table","td","th"].indexOf(Rc(e))>=0}function Wc(e){return Cc(e)&&"fixed"!==Bc(e).position?e.offsetParent:null}function $c(e){for(var t=Oc(e),n=Wc(e);n&&Gc(n)&&"static"===Bc(n).position;)n=Wc(n);return n&&("html"===Rc(n)||"body"===Rc(n)&&"static"===Bc(n).position)?t:n||function(e){var t=/firefox/i.test(Lc());if(/Trident/i.test(Lc())&&Cc(e)&&"fixed"===Bc(e).position)return null;var n=zc(e);for(Ac(n)&&(n=n.host);Cc(n)&&["html","body"].indexOf(Rc(n))<0;){var r=Bc(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var Yc="top",Xc="bottom",Zc="right",Jc="left",Qc="auto",eu=[Yc,Xc,Zc,Jc],tu="start",nu="end",ru="viewport",ou="popper",iu=eu.reduce(function(e,t){return e.concat([t+"-"+tu,t+"-"+nu])},[]),au=[].concat(eu,[Qc]).reduce(function(e,t){return e.concat([t,t+"-"+tu,t+"-"+nu])},[]),su=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function cu(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}var uu={placement:"bottom",modifiers:[],strategy:"absolute"};function lu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function du(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?uu:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},uu,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,l={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:kc(e)?Vc(e):e.contextElement?Vc(e.contextElement):[],popper:Vc(t)};var a,u,f=function(e){var t=cu(e);return su.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((a=[].concat(r,s.options.modifiers),u=a.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(u).map(function(e){return u[e]})));return s.orderedModifiers=f.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:l,options:r});c.push(i||function(){})}}),l.update()},forceUpdate:function(){if(!u){var e=s.elements,t=e.reference,n=e.popper;if(lu(t,n)){s.rects={reference:Kc(t,$c(n),"fixed"===s.options.strategy),popper:Hc(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options,c=void 0===a?{}:a,d=o.name;"function"==typeof i&&(s=i({state:s,options:c,name:d,instance:l})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise(function(e){l.forceUpdate(),e(s)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(o())})})),a}),destroy:function(){d(),u=!0}};if(!lu(e,t))return l;function d(){c.forEach(function(e){return e()}),c=[]}return l.setOptions(n).then(function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)}),l}}var fu={passive:!0};const pu={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,c=Oc(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(e){e.addEventListener("scroll",n.update,fu)}),s&&c.addEventListener("resize",n.update,fu),function(){i&&u.forEach(function(e){e.removeEventListener("scroll",n.update,fu)}),s&&c.removeEventListener("resize",n.update,fu)}},data:{}};function hu(e){return e.split("-")[0]}function gu(e){return e.split("-")[1]}function yu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function mu(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?hu(o):null,a=o?gu(o):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(i){case Yc:t={x:s,y:n.y-r.height};break;case Xc:t={x:s,y:n.y+n.height};break;case Zc:t={x:n.x+n.width,y:c};break;case Jc:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var u=i?yu(i):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case tu:t[u]=t[u]-(n[l]/2-r[l]/2);break;case nu:t[u]=t[u]+(n[l]/2-r[l]/2)}}return t}var bu={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vu(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,u=e.adaptive,l=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,h=a.y,g=void 0===h?0:h,y="function"==typeof l?l({x:p,y:g}):{x:p,y:g};p=y.x,g=y.y;var m=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),v=Jc,w=Yc,S=window;if(u){var x=$c(n),E="clientHeight",_="clientWidth";x===Oc(n)&&"static"!==Bc(x=Nc(n)).position&&"absolute"===s&&(E="scrollHeight",_="scrollWidth"),(o===Yc||(o===Jc||o===Zc)&&i===nu)&&(w=Xc,g-=(d&&x===S&&S.visualViewport?S.visualViewport.height:x[E])-r.height,g*=c?1:-1),o!==Jc&&(o!==Yc&&o!==Xc||i!==nu)||(v=Zc,p-=(d&&x===S&&S.visualViewport?S.visualViewport.width:x[_])-r.width,p*=c?1:-1)}var O,k=Object.assign({position:s},u&&bu),C=!0===l?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Pc(n*o)/o||0,y:Pc(r*o)/o||0}}({x:p,y:g},Oc(n)):{x:p,y:g};return p=C.x,g=C.y,c?Object.assign({},k,((O={})[w]=b?"0":"",O[v]=m?"0":"",O.transform=(S.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",O)):Object.assign({},k,((t={})[w]=b?g+"px":"",t[v]=m?p+"px":"",t.transform="",t))}const wu={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,c=void 0===s||s,u={placement:hu(t.placement),variation:gu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,vu(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,vu(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Su={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=au.reduce(function(e,n){return e[n]=function(e,t,n){var r=hu(e),o=[Jc,Yc].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Jc,Zc].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e},{}),s=a[t.placement],c=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};var xu={left:"right",right:"left",bottom:"top",top:"bottom"};function Eu(e){return e.replace(/left|right|bottom|top/g,function(e){return xu[e]})}var _u={start:"end",end:"start"};function Ou(e){return e.replace(/start|end/g,function(e){return _u[e]})}function ku(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ac(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Cu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Au(e,t,n){return t===ru?Cu(function(e,t){var n=Oc(e),r=Nc(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;var u=Dc();(u||!u&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s+Fc(e),y:c}}(e,n)):kc(t)?function(e,t){var n=Mc(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Cu(function(e){var t,n=Nc(e),r=jc(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Tc(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Tc(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Fc(e),c=-r.scrollTop;return"rtl"===Bc(o||n).direction&&(s+=Tc(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}(Nc(e)))}function Tu(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Iu(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function Pu(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,c=void 0===s?"clippingParents":s,u=n.rootBoundary,l=void 0===u?ru:u,d=n.elementContext,f=void 0===d?ou:d,p=n.altBoundary,h=void 0!==p&&p,g=n.padding,y=void 0===g?0:g,m=Tu("number"!=typeof y?y:Iu(y,eu)),b=f===ou?"reference":ou,v=e.rects.popper,w=e.elements[h?b:f],S=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=Vc(zc(e)),n=["absolute","fixed"].indexOf(Bc(e).position)>=0&&Cc(e)?$c(e):e;return kc(n)?t.filter(function(e){return kc(e)&&ku(e,n)&&"body"!==Rc(e)}):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(t,n){var o=Au(e,n,r);return t.top=Tc(o.top,t.top),t.right=Ic(o.right,t.right),t.bottom=Ic(o.bottom,t.bottom),t.left=Tc(o.left,t.left),t},Au(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(kc(w)?w:w.contextElement||Nc(e.elements.popper),c,l,a),x=Mc(e.elements.reference),E=mu({reference:x,element:v,strategy:"absolute",placement:o}),_=Cu(Object.assign({},v,E)),O=f===ou?_:x,k={top:S.top-O.top+m.top,bottom:O.bottom-S.bottom+m.bottom,left:S.left-O.left+m.left,right:O.right-S.right+m.right},C=e.modifiersData.offset;if(f===ou&&C){var A=C[o];Object.keys(k).forEach(function(e){var t=[Zc,Xc].indexOf(e)>=0?1:-1,n=[Yc,Xc].indexOf(e)>=0?"y":"x";k[e]+=A[n]*t})}return k}const Lu={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,u=n.padding,l=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,g=n.allowedAutoPlacements,y=t.options.placement,m=hu(y),b=c||(m!==y&&h?function(e){if(hu(e)===Qc)return[];var t=Eu(e);return[Ou(e),t,Ou(t)]}(y):[Eu(y)]),v=[y].concat(b).reduce(function(e,n){return e.concat(hu(n)===Qc?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?au:c,l=gu(r),d=l?s?iu:iu.filter(function(e){return gu(e)===l}):eu,f=d.filter(function(e){return u.indexOf(e)>=0});0===f.length&&(f=d);var p=f.reduce(function(t,n){return t[n]=Pu(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[hu(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}(t,{placement:n,boundary:l,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:g}):n)},[]),w=t.rects.reference,S=t.rects.popper,x=new Map,E=!0,_=v[0],O=0;O<v.length;O++){var k=v[O],C=hu(k),A=gu(k)===tu,T=[Yc,Xc].indexOf(C)>=0,I=T?"width":"height",P=Pu(t,{placement:k,boundary:l,rootBoundary:d,altBoundary:f,padding:u}),L=T?A?Zc:Jc:A?Xc:Yc;w[I]>S[I]&&(L=Eu(L));var D=Eu(L),M=[];if(i&&M.push(P[C]<=0),s&&M.push(P[L]<=0,P[D]<=0),M.every(function(e){return e})){_=k,E=!1;break}x.set(k,M)}if(E)for(var j=function(e){var t=v.find(function(t){var n=x.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return _=t,"break"},R=h?3:1;R>0&&"break"!==j(R);R--);t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Du(e,t,n){return Tc(e,Ic(t,n))}const Mu={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,u=n.rootBoundary,l=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,g=void 0===h?0:h,y=Pu(t,{boundary:c,rootBoundary:u,padding:d,altBoundary:l}),m=hu(t.placement),b=gu(t.placement),v=!b,w=yu(m),S="x"===w?"y":"x",x=t.modifiersData.popperOffsets,E=t.rects.reference,_=t.rects.popper,O="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,k="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(x){if(i){var T,I="y"===w?Yc:Jc,P="y"===w?Xc:Zc,L="y"===w?"height":"width",D=x[w],M=D+y[I],j=D-y[P],R=p?-_[L]/2:0,N=b===tu?E[L]:_[L],F=b===tu?-_[L]:-E[L],B=t.elements.arrow,U=p&&B?Hc(B):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=K[I],z=K[P],q=Du(0,E[L],U[L]),V=v?E[L]/2-R-q-H-k.mainAxis:N-q-H-k.mainAxis,G=v?-E[L]/2+R+q+z+k.mainAxis:F+q+z+k.mainAxis,W=t.elements.arrow&&$c(t.elements.arrow),$=W?"y"===w?W.clientTop||0:W.clientLeft||0:0,Y=null!=(T=null==C?void 0:C[w])?T:0,X=D+G-Y,Z=Du(p?Ic(M,D+V-Y-$):M,D,p?Tc(j,X):j);x[w]=Z,A[w]=Z-D}if(s){var J,Q="x"===w?Yc:Jc,ee="x"===w?Xc:Zc,te=x[S],ne="y"===S?"height":"width",re=te+y[Q],oe=te-y[ee],ie=-1!==[Yc,Jc].indexOf(m),ae=null!=(J=null==C?void 0:C[S])?J:0,se=ie?re:te-E[ne]-_[ne]-ae+k.altAxis,ce=ie?te+E[ne]+_[ne]-ae-k.altAxis:oe,ue=p&&ie?function(e,t,n){var r=Du(e,t,n);return r>n?n:r}(se,te,ce):Du(p?se:re,te,p?ce:oe);x[S]=ue,A[S]=ue-te}t.modifiersData[r]=A}},requiresIfExists:["offset"]},ju={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=hu(n.placement),c=yu(s),u=[Jc,Zc].indexOf(s)>=0?"height":"width";if(i&&a){var l=function(e,t){return Tu("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Iu(e,eu))}(o.padding,n),d=Hc(i),f="y"===c?Yc:Jc,p="y"===c?Xc:Zc,h=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],g=a[c]-n.rects.reference[c],y=$c(i),m=y?"y"===c?y.clientHeight||0:y.clientWidth||0:0,b=h/2-g/2,v=l[f],w=m-d[u]-l[p],S=m/2-d[u]/2+b,x=Du(v,S,w),E=c;n.modifiersData[r]=((t={})[E]=x,t.centerOffset=x-S,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ku(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ru(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Nu(e){return[Yc,Zc,Xc,Jc].some(function(t){return e[t]>=0})}var Fu=du({defaultModifiers:[pu,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=mu({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},wu,{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Cc(o)&&Rc(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Cc(r)&&Rc(r)&&(Object.assign(r.style,i),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},Su,Lu,Mu,ju,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Pu(t,{elementContext:"reference"}),s=Pu(t,{altBoundary:!0}),c=Ru(a,r),u=Ru(s,o,i),l=Nu(c),d=Nu(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}}]}),Bu=n(6924),Uu=n.n(Bu),Ku=n(9786),Hu=n.n(Ku);function zu(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 qu(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?zu(Object(r),!0).forEach(function(n){t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zu(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const Vu={modifiers:[],placement:"bottom"},Gu=(e,t)=>{if(Array.isArray(e)&&Array.isArray(t))return Hu()(e,t,"name")};function Wu(e,t,n={}){return Fu(e,t,Uu()({},Vu,n,Gu))}function $u(e,t,n,r){const o={bottom:r+e,height:e,left:n,right:n+t,top:r,width:t,x:n,y:r};return qu(qu({},o),{},{toJSON:()=>qu({},o)})}const Yu=["children","className","options","reference"];class Xu extends oo().PureComponent{constructor(...e){super(...e),t(this,"popper",void 0),t(this,"popupRef",oo().createRef()),t(this,"createPopper",()=>{const{options:e,reference:t}=this.props,{current:n}=this.popupRef;if(n)return Wu(t,n,e)}),t(this,"handleEvent",e=>{e.stopPropagation()})}componentDidMount(){this.popper=this.createPopper()}componentDidUpdate(e){const{options:t,reference:n}=e,{options:r,reference:o}=this.props;this.popper&&(r!==t&&this.popper.setOptions(r),o!==n&&(this.popper.destroy(),this.popper=this.createPopper()))}componentWillUnmount(){this.popper&&this.popper.destroy()}render(){const e=this.props,{children:t,className:n,options:r,reference:o}=e,i=Se(e,Yu);return oo().createElement("div",g({ref:this.popupRef,className:Po()("ba-Popup",n),onClick:this.handleEvent,onMouseDown:this.handleEvent,onMouseMove:this.handleEvent,onMouseUp:this.handleEvent,onTouchMove:this.handleEvent,onTouchStart:this.handleEvent,role:"presentation"},i),oo().createElement("div",{className:"ba-Popup-arrow"}),oo().createElement("div",{className:"ba-Popup-content"},t))}}t(Xu,"defaultProps",{options:{}});const Zu=["items","reference"],Ju={modifiers:[{name:"offset",options:{offset:[0,3]}},{name:"eventListeners",options:{scroll:!1}}],placement:"bottom-start"},Qu=e=>{let{items:t,reference:n}=e,r=Se(e,Zu);return oo().createElement(Xu,{className:"ba-PopupList",options:Ju,reference:n},hc()(t)?oo().createElement("div",{className:"ba-PopupList-prompt"},oo().createElement(ho.FormattedMessage,cc.popupListPrompt)):oo().createElement(_c,g({items:t},r)))},el=["className","collaborators","intl","editorState","isDisabled","placeholder"];class tl extends ro.Component{constructor(...e){super(...e),t(this,"state",{activeItemIndex:0,popupAutoScroll:!1,popupReference:null}),t(this,"fetchCollaborators",fc()(e=>{const{fetchCollaborators:t}=this.props,n=Ko(e),r=n?.mentionString.trim();r&&t(r)},500)),t(this,"handleResize",fc()(()=>this.updatePopupReference(),100)),t(this,"getVirtualElement",e=>{const t=window.getSelection();if(!t?.focusNode)return null;const n=t.getRangeAt(0),r=n.endContainer,o=n.endOffset,{mentionString:i,mentionTrigger:a}=e,s=i.length+a.length,c=Math.max(0,o-s);n.setStart(r,c),n.setEnd(r,c);const u=n.getBoundingClientRect();return n.setStart(r,o),n.setEnd(r,o),{getBoundingClientRect:()=>u}}),t(this,"updatePopupReference",()=>{const{editorState:e}=this.props,t=Ko(e);this.setState({popupReference:t?this.getVirtualElement(t):null})}),t(this,"saveCursorPosition",()=>{const{editorState:e,setCursorPosition:t}=this.props;t(e.getSelection().getFocusOffset())}),t(this,"stopDefaultEvent",e=>{e.preventDefault(),e.stopPropagation()}),t(this,"setPopupListActiveItem",(e,t=!1)=>this.setState({activeItemIndex:e,popupAutoScroll:t})),t(this,"handleChange",e=>{const{onChange:t}=this.props;this.fetchCollaborators(e),t(e)}),t(this,"handleSelect",e=>{const{collaborators:t,editorState:n}=this.props,r=function(e,t,n){const{start:r,end:o}=t||{},{id:i,name:a}=n,s=e.getCurrentContent(),c=e.getSelection().merge({anchorOffset:r,focusOffset:o}),u="@".concat(a),l=s.createEntity("MENTION","IMMUTABLE",{id:i}).getLastCreatedEntityKey(),d=Ro.Modifier.replaceText(s,c,u,null,l),f=c.getStartOffset()+u.length,p=c.merge({anchorOffset:f,focusOffset:f}),h=Ro.Modifier.insertText(d,p," ");return Ro.EditorState.push(e,h,"change-block-type")}(n,Ko(n),t[e]);this.handleChange(r),this.setPopupListActiveItem(0)}),t(this,"handleReturn",e=>{const{activeItemIndex:t,popupReference:n}=this.state;return n?(this.stopDefaultEvent(e),this.handleSelect(t),"handled"):"not-handled"}),t(this,"handleArrow",e=>{const{collaborators:t}=this.props,{popupReference:n}=this.state,{length:r}=t;return n&&r?(this.stopDefaultEvent(e),r):0}),t(this,"handleUpArrow",e=>{const{activeItemIndex:t}=this.state,n=this.handleArrow(e);n&&this.setPopupListActiveItem(0===t?n-1:t-1,!0)}),t(this,"handleDownArrow",e=>{const{activeItemIndex:t}=this.state,n=this.handleArrow(e);n&&this.setPopupListActiveItem(t===n-1?0:t+1,!0)}),t(this,"handleMouseDown",e=>e.preventDefault())}componentDidMount(){window.addEventListener("resize",this.handleResize)}componentDidUpdate({editorState:e}){const{editorState:t}=this.props;e!==t&&this.updatePopupReference()}componentWillUnmount(){window.removeEventListener("resize",this.handleResize),this.saveCursorPosition()}render(){const e=this.props,{className:t,collaborators:n,intl:r,editorState:o,isDisabled:i,placeholder:a}=e,s=Se(e,el),{activeItemIndex:c,popupAutoScroll:u,popupReference:l}=this.state;return ro.createElement("div",{className:Po()(t,"ba-ReplyField")},ro.createElement(Ro.Editor,g({},s,{ariaLabel:r.formatMessage(cc.ariaLabelReplyField),ariaMultiline:!0,editorState:o,handleReturn:this.handleReturn,onChange:this.handleChange,onDownArrow:this.handleDownArrow,onUpArrow:this.handleUpArrow,placeholder:a,readOnly:i,stripPastedStyles:!0,tabIndex:0,webDriverTestID:"ba-ReplyField-editor"})),l&&ro.createElement(Qu,{activeItemIndex:c,autoScroll:u,items:n,onActivate:this.setPopupListActiveItem,onMouseDown:this.handleMouseDown,onSelect:this.handleSelect,reference:l}))}}t(tl,"defaultProps",{isDisabled:!1});const nl={fetchCollaborators:Dn,setCursorPosition:Dt},rl=(0,ao.connect)(e=>({collaborators:jn(e),cursorPosition:Ut(e)}),nl)(tl),ol=({contentState:e,entityKey:t,children:n})=>{const{id:r}=e.getEntity(t).getData();return r?ro.createElement("a",{className:"ba-MentionItem-link","data-testid":"ba-MentionItem-link",href:`/profile/${r}`},n):ro.createElement("span",{className:"ba-MentionItem-link","data-testid":"ba-MentionItem-text"},n)},il=(e,t,n)=>{e.findEntityRanges(e=>{const t=e.getEntity();return null!==t&&"MENTION"===n.getEntity(t).getType()},t)},al=(0,ao.connect)(e=>({cursorPosition:Ut(e)}))((dl={handleSubmit:({editorState:e},{props:{onSubmit:t}})=>t(Ho(e).text),mapPropsToErrors:()=>({editorState:"initial"}),mapPropsToValues:({cursorPosition:e,value:t=""})=>{const n=function(e){const t=new Ro.CompositeDecorator([{strategy:il,component:ol}]);return Ro.EditorState.set(e,{decorator:t})}(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=Ro.ContentState.createFromText(e),n=t.getFirstBlock();for(;null!=n;){const e=n.getText(),r=e?Fo(e):null;if(null==r)n=t.getBlockAfter(n.getKey());else{const{data:e,start:o,end:i}=r;t.createEntity("MENTION","IMMUTABLE",e);const a=t.getLastCreatedEntityKey(),s=Ro.SelectionState.createEmpty(n.getKey()).merge({anchorOffset:o,focusOffset:i});t=Ro.Modifier.replaceText(t,s,e.content,null,a),n=t.getBlockForKey(n.getKey())}}return Ro.EditorState.createWithContent(t,No)}(t)),r=t?e:0;return{editorState:Ro.EditorState.forceSelection(n,n.getSelection().merge({anchorOffset:r,focusOffset:r,hasFocus:!0}))}},validate:({editorState:e})=>{const t={};if(e){const{text:n}=Ho(e);n&&0!==n.trim().length?n.length>1e4&&(t.editorState="maxlength"):t.editorState="required"}return t},validateOnMount:!0},pl=void 0===(fl=dl.mapPropsToValues)?function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&"function"!=typeof e[n]&&(t[n]=e[n]);return t}:fl,hl=js(dl,["mapPropsToValues"]),function(e){var t=e.displayName||e.name||e.constructor&&e.constructor.name||"Component",n=function(t){function n(){var n;return(n=t.apply(this,arguments)||this).validate=function(e){return hl.validate(e,n.props)},n.validationSchema=function(){return Fs(hl.validationSchema)?hl.validationSchema(n.props):hl.validationSchema},n.handleSubmit=function(e,t){return hl.handleSubmit(e,Ds({},t,{props:n.props}))},n.renderFormComponent=function(t){return(0,ro.createElement)(e,Object.assign({},n.props,t))},n}return Ms(n,t),n.prototype.render=function(){var e=js(this.props,["children"]);return(0,ro.createElement)(Qs,Object.assign({},e,hl,{validate:hl.validate&&this.validate,validationSchema:hl.validationSchema&&this.validationSchema,initialValues:pl(this.props),initialStatus:hl.mapPropsToStatus&&hl.mapPropsToStatus(this.props),initialErrors:hl.mapPropsToErrors&&hl.mapPropsToErrors(this.props),initialTouched:hl.mapPropsToTouched&&hl.mapPropsToTouched(this.props),onSubmit:this.handleSubmit,children:this.renderFormComponent}))},n}(ro.Component);return n.displayName="WithFormik("+t+")",Ps()(n,e)})(e=>{const{errors:t,isPending:n,onCancel:r,onChange:o,setFieldValue:i,values:a}=e,s=oo().useRef(null),c=(0,ho.useIntl)(),u=Object.keys(t).length>0,{editorState:l}=a,d=()=>{r(Ho(l).text)},f=e=>{"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),d())};return oo().useEffect(()=>{const{current:e}=s;return e&&e.addEventListener("keydown",f),()=>{e&&e.removeEventListener("keydown",f)}},[s]),oo().createElement(oc,{ref:s,className:"ba-ReplyForm","data-testid":"ba-ReplyForm",onPointerEnterCapture:void 0,onPointerLeaveCapture:void 0,placeholder:void 0},oo().createElement("div",{className:"ba-Popup-main"},oo().createElement(rl,{className:"ba-Popup-field","data-testid":"ba-Popup-field",editorState:l,intl:c,isDisabled:n,onChange:e=>{o(Ho(e).text),i("editorState",e)},placeholder:c.formatMessage(cc.fieldPlaceholder)})),oo().createElement("div",{className:"ba-Popup-footer"},oo().createElement(lc,{"data-resin-target":"cancel","data-testid":"ba-Popup-cancel",isDisabled:n,onClick:d,type:"button"},oo().createElement(ho.FormattedMessage,cc.buttonCancel)),oo().createElement(lc,{"data-resin-target":"post","data-testid":"ba-Popup-submit",isDisabled:u||n,isPrimary:!0,type:"submit"},oo().createElement(ho.FormattedMessage,cc.buttonPost))))})),sl=al,cl=["isPending","onCancel","onChange","onSubmit","value"],ul=()=>{const{userAgent:e}=navigator;return e.indexOf("Trident/")>0},ll={modifiers:[{name:"arrow",options:{element:".ba-Popup-arrow",padding:10}},{name:"flip",options:{altAxis:!1,fallbackPlacements:["bottom","top","left","right"]}},{name:"offset",options:{offset:[0,15]}},{name:"preventOverflow",options:{padding:5}}]};var dl,fl,pl,hl;function gl(e){const t=(0,ho.useIntl)(),n=oo().useRef(null),r=oo().useRef((()=>{const{modifiers:e}=ll,t=ul()?"top":"bottom";return{modifiers:ul()?[...e,{name:"eventListeners",options:{scroll:!1}}]:e,placement:t}})()),o=(0,ao.useSelector)(st),i=(0,ao.useSelector)(ct);oo().useEffect(()=>{const{current:e}=n;e?.popper&&e.popper.update()},[n,o,i]);const{isPending:a,onCancel:s,onChange:c,onSubmit:u,value:l=""}=e,d=Se(e,cl);return oo().createElement(jo,null,oo().createElement(Xu,g({ref:n,"aria-label":t.formatMessage(cc.ariaLabelComment),"data-resin-component":"popupReply",options:r.current,role:"dialog"},d),oo().createElement(sl,{isPending:a,onCancel:s,onChange:c,onSubmit:u,value:l})))}const yl=require("@box/blueprint-web"),ml=require("@box/threaded-annotations");function bl(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}const vl=/@\[(\d+):([^\]]+)\]/g,wl=e=>{if(!e)return{type:"doc",content:[]};const n=e.split("\n").map(e=>{const n=(e=>{const t=[];let n=0;vl.lastIndex=0;let r=vl.exec(e);for(;null!==r;){const[o,i,a]=r,{index:s}=r;s>n&&t.push({type:"text",text:e.slice(n,s)}),t.push({type:"mention",attrs:{authorId:"",mentionId:i,mentionedUserId:i,mentionedUserName:a}}),n=s+o.length,r=vl.exec(e)}return n<e.length&&t.push({type:"text",text:e.slice(n)}),t})(e);return function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?bl(Object(r),!0).forEach(function(n){t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bl(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({type:"paragraph"},n.length>0?{content:n}:{})});return{type:"doc",content:n}},Sl=e=>{const t=[];return e.description&&t.push((e=>({author:{email:e.created_by?.login??"",id:parseInt(e.created_by?.id??"0",10),name:e.created_by?.name??""},createdAt:new Date(e.created_at).getTime(),id:e.id,message:wl(e.description?.message??""),permissions:{canDelete:e.permissions?.can_delete??!1,canEdit:e.permissions?.can_edit??!1,canReply:e.permissions?.can_reply??!1,canResolve:e.permissions?.can_resolve??!1}}))(e)),e.replies&&e.replies.forEach(e=>{t.push((e=>({author:{email:e.created_by?.login??"",id:parseInt(e.created_by?.id??"0",10),name:e.created_by?.name??""},createdAt:new Date(e.created_at).getTime(),id:e.id,message:wl(e.message),permissions:{canDelete:e.permissions?.can_delete??!1,canEdit:!1,canReply:e.permissions?.can_reply??!1,canResolve:e.permissions?.can_resolve??!1}}))(e))}),t},xl=e=>{const t=e.item;return{email:t?.email??t?.login??"",id:parseInt(t?.id??e.id,10),name:t?.name??e.name,value:e.id}},El=(0,ro.createContext)({});function _l(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 Ol(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?_l(Object(r),!0).forEach(function(n){t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const kl=e=>e?"doc"===e.type&&e.content?e:{type:"doc",content:[e]}:{type:"doc",content:[]},Cl=({annotationId:e,onSubmit:t,popupPortalEl:n,reference:r})=>{const o=(0,ho.useIntl)(),i=(0,ao.useDispatch)(),{onCopyLink:a}=oo().useContext(El),s=oo().useRef(null),c=oo().useRef(),u=oo().useRef({modifiers:[{name:"flip",options:{altAxis:!1,fallbackPlacements:["top","left","right"]}},{name:"offset",options:{offset:[0,15]}},{name:"preventOverflow",options:{padding:5}}],placement:"bottom"}),l=(0,ao.useSelector)(tt),d=(0,ao.useSelector)(ot),f=(0,ao.useSelector)(ut),p=oo().useMemo(()=>a&&e&&d?()=>a({annotationId:e,fileVersionId:d}):void 0,[a,e,d]),h=(0,ao.useSelector)(t=>e?qe(t,e):void 0),[g,y]=oo().useState({}),m=oo().useRef(new Map),b=oo().useRef({apiHost:l,token:f});b.current={apiHost:l,token:f};const v=oo().useCallback(async e=>{const t=m.current.get(e);if(t)return t;const n=l,r=f,o=await(async(e,t,n)=>{try{const r=await fetch(`${e}/2.0/users/${n}/avatar?pic_type=large`,{headers:{Authorization:`Bearer ${t}`}});if(!r.ok)return null;const o=await r.blob();return URL.createObjectURL(o)}catch{return null}})(n,r,e);if(!o)return null;if(b.current.apiHost!==n||b.current.token!==r)return URL.revokeObjectURL(o),null;const i=m.current.get(e);return i?(URL.revokeObjectURL(o),i):(m.current.set(e,o),o)},[l,f]);oo().useEffect(()=>(s.current&&(c.current=Wu(r,s.current,u.current)),()=>{c.current?.destroy()}),[r]),oo().useEffect(()=>{const e=m.current;return()=>{e.forEach(e=>URL.revokeObjectURL(e)),e.clear()}},[]),oo().useEffect(()=>{m.current.forEach(e=>URL.revokeObjectURL(e)),m.current.clear(),y({})},[l,f]);const w=oo().useCallback(e=>{e.stopPropagation()},[]);oo().useEffect(()=>{if(!h)return;const e=Array.from(new Set(Sl(h).map(e=>String(e.author.id))));let t=!1;return Promise.all(e.map(async e=>[e,await v(e)])).then(e=>{t||y(t=>{const n=Ol({},t);return e.forEach(([e,t])=>{t&&(n[e]=t)}),n})}),()=>{t=!0}},[h,v]);const S=oo().useMemo(()=>h?Sl(h).map(e=>Ol(Ol({},e),{},{author:Ol(Ol({},e.author),{},{avatarUrl:g[String(e.author.id)]})})):[],[h,g]),x="resolved"===h?.status,E=x?h?.resolution?.resolved_by?.name??h?.modified_by?.name:void 0,_=x?h?.resolution?.resolved_at??h?.modified_at:void 0,O=_?new Date(_).getTime():void 0,k=oo().useMemo(()=>({allowEmptyQuery:!0,ariaRoleDescription:o.formatMessage(cc.ariaLabelMentionSelector),fetchAvatarUrls:async e=>{const t={};return await Promise.all(e.map(async({id:e})=>{const n=String(e),r=await v(n);r&&(t[n]=r)})),t},fetchUsers:async e=>{const t=await i(Dn(e));return Dn.fulfilled.match(t)?t.payload.entries.map(xl):[]},loadingAriaLabel:o.formatMessage(cc.ariaLabelMentionLoading)}),[i,v,o]),C=oo().useCallback(async n=>{const r=kl(n),{text:o}=(0,ml.serializeMentionMarkup)(r);e?await i(gt({annotationId:e,message:o})):t(o)},[e,i,t]),A=oo().useCallback(async(t,n)=>{if(!e||t!==e)return;const r=kl(n),{text:o}=(0,ml.serializeMentionMarkup)(r);await i(mt({annotationId:e,payload:{message:o}}))},[e,i]),T=oo().useCallback(async()=>{e&&await i(yt(e))},[e,i]),I=oo().useCallback(async()=>{if(!e)return;const t=await i(mt({annotationId:e,payload:{status:"resolved"}}));mt.fulfilled.match(t)&&i(vt(null))},[e,i]),P=oo().useCallback(async()=>{e&&await i(mt({annotationId:e,payload:{status:"open"}}))},[e,i]);return n?Co().createPortal(oo().createElement(jo,null,oo().createElement("div",{ref:s,"aria-label":o.formatMessage(cc.ariaLabelComment),className:"ba-PopupV2","data-resin-component":e?"popupThreadV2":"popupReplyV2",onClick:w,onMouseDown:w,onMouseMove:w,onMouseUp:w,onTouchMove:w,onTouchStart:w,role:"presentation"},oo().createElement(yl.BlueprintModernizationProvider,{enableModernizedComponents:!0},oo().createElement(yl.TooltipProvider,null,oo().createElement(ml.MentionContextProvider,{value:{collaborationPopoverProps:{onSubmit:()=>Promise.resolve()}}},e?oo().createElement(ml.ThreadedAnnotationsV2,{isAnnotations:!0,isResolved:x,messages:S,onAvatarClick:Nn(),onCopyLink:p,onDelete:Nn(),onEdit:A,onPost:C,onResolve:I,onThreadDelete:T,onUnresolve:P,resolvedAt:O,resolvedBy:E,userSelectorProps:k}):oo().createElement(ml.MessageEditorV2,{isFirstAnnotation:!0,onPost:C,userSelectorProps:k})))),oo().createElement("div",{"data-threaded-annotations-portal":!0}))),n):null};function Al(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 Tl(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Al(Object(r),!0).forEach(function(n){t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Al(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const Il={[Ot.DRAWING]:Gt,[Ot.HIGHLIGHT]:Wt,[Ot.REGION]:$t},Pl=["callbacks","intl","store"];function Ll(e){return function(t){let{callbacks:n,intl:r,store:o}=t,i=Se(t,Pl);return ro.createElement(ho.RawIntlProvider,{value:r},ro.createElement(ao.Provider,{store:o},ro.createElement(El.Provider,{value:n??{}},ro.createElement(e,i))))}}const Dl={display:"none"},Ml=e=>{const{x:t,y:n}=e,{x:r,y:o}=(e=>{const{height:t,width:n}=e;return{x:n/2,y:t/2}})(e);return{x:r+t,y:o+n}};function jl(e){return"region"===e?.target?.type}function Rl(e){if(!e)return Dl;const{height:t,width:n,x:r,y:o}=e;return{display:"block",height:`${t}%`,left:`${r}%`,top:`${o}%`,width:`${n}%`}}const Nl=["children","className","onDrawStart","onDrawStop","onDrawUpdate","onMouseOut","onMouseOver","status"];let Fl=function(e){return e.dragging="dragging",e.drawing="drawing",e.init="init",e}({});function Bl(e,t){const{children:n,className:r,onDrawStart:o,onDrawStop:i,onDrawUpdate:a,onMouseOut:s=Nn(),onMouseOver:c=Nn(),status:u}=e,l=Se(e,Nl);return oo().useEffect(()=>{const e=({buttons:e,clientX:t,clientY:n})=>{1===e&&u!==Fl.init&&a(t,n)},t=()=>{i()};return u!==Fl.init&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)),()=>{document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",t)}},[i,a,u]),oo().createElement("div",g({ref:t,className:r,onClick:e=>{e.preventDefault(),e.stopPropagation()},onMouseDown:({buttons:e,clientX:t,clientY:n})=>{1===e&&o(t,n)},onMouseOut:()=>{s()},onMouseOver:()=>{c()},onTouchCancel:()=>{i()},onTouchEnd:()=>{i()},onTouchMove:({targetTouches:e})=>{a(e[0].clientX,e[0].clientY)},onTouchStart:({targetTouches:e})=>{o(e[0].clientX,e[0].clientY)},role:"presentation"},l),n)}const Ul=oo().forwardRef(Bl),Kl={modifiers:[{name:"offset",options:{offset:[0,20]}}],placement:"right"},Hl=(e=0,t=0)=>()=>$u(0,0,e,t);function zl(){const e=oo().useRef(null),t=oo().useRef({getBoundingClientRect:Hl()}),n=({clientX:n,clientY:r})=>{t.current.getBoundingClientRect=Hl(n,r);const{current:o}=e;o?.popper&&o.popper.update()};return oo().useEffect(()=>(document.addEventListener("mousemove",n),()=>{document.removeEventListener("mousemove",n)}),[]),oo().createElement(Xu,{ref:e,className:"ba-PopupCursor",options:Kl,reference:t.current},oo().createElement(ho.FormattedMessage,cc.regionCursorPrompt))}function ql(e){const t=oo().useRef(Ae());return oo().useEffect(()=>{e(t.current)},[e]),t.current}function Vl(e,t){const{className:n,isActive:r,onMount:o=Nn(),shape:i}=e,a=ql(o);return oo().createElement("div",{ref:t,className:Po()("ba-RegionRect",n,{"is-active":r}),"data-ba-reference-id":a,style:Rl(i)})}const Gl=oo().forwardRef(Vl),Wl=/(auto|scroll)/,$l=["overflow","overflow-x","overflow-y"],Yl=e=>e&&e!==document.body?(e=>{if(e.nodeType!==Node.ELEMENT_NODE)return!1;const t=getComputedStyle(e,null);return $l.some(e=>Wl.test(t.getPropertyValue(e)))})(e)?e:Yl(e.parentNode):document.body,Xl=10;function Zl({className:e,onAbort:t,onStart:n,onStop:r,rotation:o=0}){const[i,a]=ro.useState(Fl.init),[s,c]=ro.useState(!1),u=ro.useRef(null),l=ro.useRef(null),d=ro.useRef(null),f=ro.useRef(null),p=ro.useRef(null),h=ro.useRef(!1),y=ro.useRef(null),m=ro.useRef(null),b=()=>{const{current:e}=u,{current:t}=l,{current:n}=f,{current:r}=d,{current:o}=p;if(!e||null===t||null===r||null===n||null===o)return null;const i=e.offsetWidth,a=e.offsetHeight,s=a-Xl,c=i-Xl,h=Math.max(0,i-0),g=Math.max(0,a-0),y=t>=c&&r>=c?t-Xl:t,m=n>=s&&o>=s?n-Xl:n,b=Math.min(Math.max(0,y<r?y:r),h),v=Math.min(Math.max(0,m<o?m:o),g),w=Math.min(Math.max(0,r>y?r:y),h),S=Math.min(Math.max(0,o>m?o:m),g);return{height:Math.max(Xl,S-v)/a*100,type:"rect",width:Math.max(Xl,w-b)/i*100,x:b/i*100,y:v/a*100}},v=ro.useCallback(()=>{const e=b();a(Fl.init),l.current=null,f.current=null,d.current=null,p.current=null,h.current=!0,e?r(e):t()},[t,r,a]),w=ro.useCallback((e,t)=>{const[r,s]=mn(e,t,u.current,o),{current:c}=l,{current:g}=f,{current:y}=d;(null!==y||((e,t,n,r)=>Math.abs(n-e)>=Xl||Math.abs(r-t)>=Xl)(c??0,g??0,r,s))&&(d.current=r,p.current=s,h.current=!0,i!==Fl.drawing&&(a(Fl.drawing),n()))},[i,n,o,a]),S=e=>{m.current=window.requestAnimationFrame(e)},x=()=>{const{current:e}=h,{current:t}=y,n=b();e&&t&&n&&(g(t.style,Rl(n)),h.current=!1),S(x)};return ro.useEffect(()=>(i!==Fl.init&&S(x),()=>{const{current:e}=m;e&&window.cancelAnimationFrame(e)}),[i]),function(e){const{enabled:t,intensity:n=.2,onScroll:r=Nn(),reference:o,size:i=50}=e,a=oo().useRef(null),s=oo().useRef(null),c=oo().useRef(null),u=oo().useRef(null),l=oo().useRef(null),d=e=>{a.current=window.requestAnimationFrame(e)},f=()=>{const{current:e}=s,{current:t}=c,{current:o}=u,{current:a}=l;if(!e||!t||null===o||null===a)return d(f);const p=t.bottom-i,h=t.left+i,g=t.right-i,y=t.top+i,m=a>p,b=o<h,v=o>g,w=a<y;if(!(m||b||v||w))return d(f);let S=e.scrollLeft,x=e.scrollTop;return b?S-=(h-o)*n:v&&(S+=(o-g)*n),w?x-=(y-a)*n:m&&(x+=(a-p)*n),e.scrollLeft=Math.max(0,Math.min(Math.round(S),e.scrollWidth)),e.scrollTop=Math.max(0,Math.min(Math.round(x),e.scrollHeight)),r(o,a),d(f)},p=({clientX:e,clientY:t})=>{u.current=e,l.current=t},h=({targetTouches:e})=>{u.current=e[0].clientX,l.current=e[0].clientY};oo().useEffect(()=>{o&&(s.current=Yl(o),c.current=s.current.getBoundingClientRect())},[o]),oo().useEffect(()=>(t&&(document.addEventListener("mousemove",p),document.addEventListener("touchmove",h),d(f)),()=>{const{current:e}=a;e&&window.cancelAnimationFrame(e),a.current=null,u.current=null,l.current=null,document.removeEventListener("mousemove",p),document.removeEventListener("touchmove",h)}),[t])}({enabled:i!==Fl.init,onScroll:(e,t)=>{w(e,t)},reference:u.current}),ro.createElement(Ul,{ref:u,className:Po()(e,"ba-RegionCreator"),"data-testid":"ba-RegionCreator",onDrawStart:(e,t)=>{const[n,r]=mn(e,t,u.current,o);a(Fl.dragging),l.current=n,f.current=r,d.current=null,p.current=null,h.current=!0},onDrawStop:v,onDrawUpdate:w,onMouseOut:()=>{c(!1)},onMouseOver:()=>{c(!0)},status:i},i===Fl.drawing&&ro.createElement(Gl,{ref:y,className:"ba-RegionCreator-rect",isActive:!0}),i===Fl.init&&s&&ro.createElement(zl,null))}function Jl(e){return 1e3*(e?.currentTime??0)}const Ql=({targetType:e,referenceEl:t,activeAnnotationId:n,annotations:r})=>{const[o,i]=(0,ro.useState)(!1),[a,s]=(0,ro.useState)(null),c=(0,ro.useCallback)(()=>Jl(t),[t]);return(0,ro.useEffect)(()=>{if(e!==He.FRAME||!t)return;const n=()=>{i(!0)},r=()=>{i(!1),s(null)},u=()=>{if(o&&null!==a){const e=c();Math.abs(e-a)<=100&&(i(!1),s(null))}};return t.addEventListener("seeking",n),t.addEventListener("seeked",r),t.addEventListener("timeupdate",u),()=>{t.removeEventListener("seeking",n),t.removeEventListener("seeked",r),t.removeEventListener("timeupdate",u)}},[e,t,o,a,c]),(0,ro.useEffect)(()=>{if(e===He.FRAME&&n&&t){const e=c(),t=r.find(e=>e.id===n);if(t){const n=t.target.location.value;Math.abs(e-n)>100&&(s(n),i(!0))}}},[n,e,t,r,c]),{isVideoSeeking:o,getCurrentVideoLocation:c}};class ed extends ro.PureComponent{constructor(...e){super(...e),t(this,"state",{}),t(this,"handleAbort",()=>{const{resetCreator:e}=this.props;e()}),t(this,"handleStart",()=>{const{setStaged:e,setStatus:t}=this.props;e(null),t(Pt.started)}),t(this,"handleStagedMount",e=>{const{setReferenceId:t}=this.props;t(e)}),t(this,"handleStop",e=>{const{location:t,setStaged:n,setStatus:r,targetType:o,referenceEl:i}=this.props;n({location:o!==He.FRAME?t:Jl(i),shape:e}),r(Pt.staged)})}render(){const{isCreating:e,rotation:t,staged:n}=this.props;return ro.createElement(ro.Fragment,null,e&&ro.createElement(Zl,{className:"ba-RegionCreation-creator",onAbort:this.handleAbort,onStart:this.handleStart,onStop:this.handleStop,rotation:t}),n&&ro.createElement("div",{className:"ba-RegionCreation-target"},ro.createElement(Gl,{isActive:!0,onMount:this.handleStagedMount,shape:n.shape})))}}t(ed,"defaultProps",{isCreating:!1,rotation:0});const td={resetCreator:Lt,setReferenceId:jt,setStaged:Rt,setStatus:Nt},nd=(0,ao.connect)((e,{location:t})=>{const n=qt(e,t);return{isCreating:Tt(e)===Ot.REGION&&Vt(e)!==Pt.pending,rotation:st(e),staged:$t(n)?n:null}},td)(Ll(ed));class rd extends uo{decorate(){this.reactEl.classList.add("ba-Layer--regionCreation"),this.reactEl.dataset.testid="ba-Layer--regionCreation"}render(e){this.root||(this.root=io.createRoot(this.reactEl)),this.root.render(ro.createElement(nd,g({targetType:this.targetType,referenceEl:this.referenceEl,location:this.location},e)))}}const od=(e,t)=>{const{annotationId:n,className:r,isActive:o,onSelect:i=Nn(),shape:a}=e;return ro.createElement("button",{ref:t,className:Po()("ba-RegionAnnotation",r,{"is-active":o}),"data-ba-annotation-id":n,"data-resin-itemid":n,"data-resin-target":"highlightRegion","data-testid":`ba-AnnotationTarget-${n}`,onFocus:()=>{i(n)},onMouseDown:e=>{1===e.buttons&&(e.preventDefault(),e.stopPropagation(),e.currentTarget.focus())},style:Rl(a),type:"button"})},id=ro.forwardRef(od);function ad(){const e=ao.useSelector(Vt),t=ao.useSelector(_n);return e===Pt.init&&!t}function sd(e){return e>=0&&e<=100}function cd({target:e}){const{shape:t}=e,{height:n,width:r,x:o,y:i}=t;return sd(n)&&sd(r)&&sd(o)&&sd(i)}function ud({target:e},{target:t}){const{shape:n}=e,{shape:r}=t;return n.height*n.width>r.height*r.width?-1:1}function ld({activeId:e,annotations:t,className:n,onSelect:r=Nn()}){const o=ad(),i=oo().createRef();return oo().createElement("div",{ref:i,className:Po()(n,{"is-listening":o}),"data-resin-component":"regionList"},t.filter(cd).sort(ud).map(({id:t,target:n})=>oo().createElement(id,{key:t,annotationId:t,isActive:e===t,onSelect:r,shape:n.shape})))}const dd=oo().memo(ld),fd={setActiveAnnotationId:vt},pd=(0,ao.connect)((e,{location:t})=>({activeAnnotationId:ze(e),annotations:Ge(e,t).filter(jl)}),fd)(Ll(e=>{const{activeAnnotationId:t,annotations:n,setActiveAnnotationId:r,referenceEl:o,targetType:i}=e,{isVideoSeeking:a}=Ql({targetType:i,referenceEl:o,activeAnnotationId:t||null,annotations:n||[]});let s=[];return i===He.FRAME?!a&&t&&(s=n.filter(e=>e.id===t)):s=n,ro.createElement(dd,{activeId:t,annotations:s,className:"ba-RegionAnnotations-list",onSelect:e=>{r(e)}})}));class hd extends uo{decorate(){this.reactEl.classList.add("ba-Layer--region"),this.reactEl.dataset.testid="ba-Layer--region"}render(e){this.root||(this.root=io.createRoot(this.reactEl)),this.root.render(ro.createElement(pd,g({location:this.location,referenceEl:this.referenceEl,targetType:this.targetType},e)))}}const gd={createDrawing:e=>(t,n)=>{const{location:r,message:o,pathGroups:i,targetType:a}=e,s=n(),c={description:{message:o,type:"reply"},file_version:{id:ot(s)},target:{location:{type:a,value:r},path_groups:i,type:"drawing"}};return t(pt(c))},createHighlight:e=>(t,n)=>{const{location:r,message:o,shapes:i}=e,a=n(),s={description:{message:o,type:"reply"},file_version:{id:ot(a)},target:{location:{type:He.PAGE,value:r},shapes:i,type:"highlight"}};return t(pt(s))},createRegion:e=>(t,n)=>{const{location:r,message:o,shape:i,targetType:a}=e,s=n(),c={description:{message:o,type:"reply"},file_version:{id:ot(s)},target:{location:{type:a,value:r},shape:i,type:"region"}};return t(pt(c))},resetCreator:Lt,setMessage:Mt},yd=(0,ao.connect)((e,{location:t})=>({activeAnnotationId:ze(e),isPromoting:En(e),isThreadedAnnotation:lt(e,"isThreadedAnnotation"),message:Kt(e),mode:Tt(e),referenceId:Ht(e),staged:qt(e,t),status:Vt(e)}),gd)(Ll(e=>{const{activeAnnotationId:t,createDrawing:n=Nn(),createHighlight:r=Nn(),createRegion:o=Nn(),isPromoting:i=!1,isThreadedAnnotation:a=!1,message:s,mode:c,popupPortalEl:u,referenceId:l,resetCreator:d,setMessage:f,staged:p,status:h,targetType:g}=e,[y,m]=ro.useState(null),[b,v]=ro.useState(null),w=(Il[c]?.(p??null)??!1)||i,S=h!==Pt.started&&h!==Pt.init,x=h===Pt.pending,E=e=>{if(!p)return;const t=e??s;Wt(p)?r(Tl(Tl({},p),{},{message:t,targetType:g})):$t(p)?o(Tl(Tl({},p),{},{message:t,targetType:g})):Gt(p)&&n(Tl(Tl({},p),{},{message:t,targetType:g}))};ro.useEffect(()=>{m(l?document.querySelector(`[data-ba-reference-id="${l}"]`):null)},[l]),ro.useEffect(()=>{if(t&&a){const e=document.querySelector(`[data-ba-annotation-id="${CSS.escape(t)}"]`);v(e)}else v(null)},[t,a]);const _=w&&S&&y&&p;return _&&a?ro.createElement("div",{className:"ba-PopupLayer-popup"},ro.createElement(Cl,{onSubmit:E,popupPortalEl:u,reference:y})):_?u?ko.createPortal(ro.createElement("div",{className:"ba-PopupLayer-popup"},ro.createElement(gl,{isPending:x,onCancel:()=>{d()},onChange:(e="")=>{f(e)},onSubmit:E,reference:y,value:s})),u):null:a&&t&&b?ro.createElement("div",{className:"ba-PopupLayer-popup"},ro.createElement(Cl,{annotationId:t,onSubmit:E,popupPortalEl:u,reference:b})):null})),md=["popupPortalEl"];class bd extends uo{constructor(e){let{popupPortalEl:n}=e;super(Se(e,md)),t(this,"popupPortalEl",void 0),this.popupPortalEl=n}decorate(){this.reactEl.classList.add("ba-Layer--popup"),this.reactEl.dataset.testid="ba-Layer--popup"}render({callbacks:e,intl:t,store:n}){this.root||(this.root=io.createRoot(this.reactEl)),this.root.render(ro.createElement(yd,{callbacks:e,intl:t,location:this.location,popupPortalEl:this.popupPortalEl,store:n,targetType:this.targetType}))}}const vd=function(e){return ro.createElement("svg",g({"data-testid":"ChevronLeft",fill:"none",focusable:"false",height:"1em",role:"img",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg"},e),ro.createElement("path",{d:"M13.293 4.293a1 1 0 1 1 1.414 1.414L8.414 12l6.293 6.293.068.076a1 1 0 0 1-1.406 1.406l-.076-.068L7 13.414a2 2 0 0 1 0-2.828l6.293-6.293Z",fill:"currentColor"}))},wd=function(e){return ro.createElement("svg",g({"data-testid":"ChevronRight",fill:"none",focusable:"false",height:"1em",role:"img",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg"},e),ro.createElement("path",{d:"M9.293 4.293a1 1 0 0 1 1.414 0L17 10.586a2 2 0 0 1 0 2.828l-6.293 6.293a1 1 0 0 1-1.414-1.414L15.586 12 9.293 5.707a1 1 0 0 1 0-1.414Z",fill:"currentColor"}))},Sd=(0,ho.defineMessages)({ariaLabelViewNextReference:{id:"ba.boundingBoxHighlight.viewNextReference",defaultMessage:"View next reference"},ariaLabelViewPrevReference:{id:"ba.boundingBoxHighlight.viewPrevReference",defaultMessage:"View previous reference"}}),xd=({currentIndex:e,total:t,onPrev:n,onNext:r})=>{const o=(0,ho.useIntl)(),i=0===e,a=e===t-1;return ro.useEffect(()=>{const e=e=>{"ArrowLeft"===e.key?(e.stopPropagation(),i||n(e)):"ArrowRight"===e.key&&(e.stopPropagation(),a||r(e))};return document.addEventListener("keydown",e,{capture:!0}),()=>document.removeEventListener("keydown",e,{capture:!0})},[i,a,n,r]),ro.createElement("div",{className:"ba-BoundingBoxHighlightNav","data-testid":"ba-BoundingBoxHighlightNav"},ro.createElement("button",{"aria-label":o.formatMessage(Sd.ariaLabelViewPrevReference),className:"ba-BoundingBoxHighlightNav-btn","data-testid":"ba-BoundingBoxHighlightNav-prev",disabled:i,onClick:n,type:"button"},ro.createElement(vd,{width:20,height:20})),ro.createElement("span",{className:"ba-BoundingBoxHighlightNav-counter"},e+1," / ",t),ro.createElement("button",{"aria-label":o.formatMessage(Sd.ariaLabelViewNextReference),className:"ba-BoundingBoxHighlightNav-btn","data-testid":"ba-BoundingBoxHighlightNav-next",disabled:a,onClick:r,type:"button"},ro.createElement(wd,{width:20,height:20})))},Ed=({boundingBox:e,currentIndex:t,isSelected:n,onNavigate:r,onSelect:o,total:i,prevId:a,nextId:s})=>{const{id:c,x:u,y:l,width:d,height:f}=e,p={display:"block",left:`${u}%`,top:`${l}%`,width:`${d}%`,height:`${f}%`};return ro.createElement("div",{className:Po()("ba-BoundingBoxHighlightRect",{"is-selected":n}),"data-testid":`ba-BoundingBoxHighlightRect-${c}`,onClick:e=>{e.stopPropagation(),o?.(c)},role:"presentation",style:p},n&&i>1&&ro.createElement(xd,{currentIndex:t,onNext:e=>{e.stopPropagation(),s&&r?.(s)},onPrev:e=>{e.stopPropagation(),a&&r?.(a)},total:i}))},_d=({allBoundingBoxes:e,boundingBoxes:t,onNavigate:n,onSelect:r,selectedId:o})=>{const i=e.length;if(0===i)return null;const a=e.findIndex(e=>e.id===o),s=a>0?e[a-1].id:void 0,c=a<i-1?e[a+1].id:void 0;return ro.createElement("div",{className:"ba-BoundingBoxHighlightList","data-testid":"ba-BoundingBoxHighlightList"},t.map(e=>ro.createElement(Ed,{key:e.id,boundingBox:e,currentIndex:a,isSelected:o===e.id,nextId:c,onNavigate:n,onSelect:r,prevId:s,total:i})))},Od=ro.memo(_d),kd={onNavigate:An,onSelect:Cn},Cd=(0,ao.connect)((e,{location:t})=>({allBoundingBoxes:In(e),boundingBoxes:Pn(e,t),selectedId:Ln(e)}),kd)(Ll(Od));class Ad extends uo{decorate(){this.reactEl.classList.add("ba-Layer--boundingBoxHighlight"),this.reactEl.dataset.testid="ba-Layer--boundingBoxHighlight"}render(e){this.root||(this.root=io.createRoot(this.reactEl)),this.root.render(ro.createElement(Cd,g({location:this.location},e)))}}const Td=["pathCommands"],Id=(e,t)=>{const{pathCommands:n}=e,r=Se(e,Td);return oo().createElement("path",g({ref:t,d:n,strokeLinecap:"round",vectorEffect:"non-scaling-stroke"},r))},Pd=oo().forwardRef(Id),Ld=(0,ro.createContext)("");function Dd({borderStrokeWidth:e=0,isDecorated:t=!1,points:n=[]}){const r=oo().useContext(Ld),o=Ne(n);return oo().createElement("g",{className:"ba-DecoratedDrawingPath"},t&&oo().createElement("g",{className:"ba-DecoratedDrawingPath-decoration"},oo().createElement(Pd,{className:"ba-DecoratedDrawingPath-shadow",filter:`url(#${r})`,pathCommands:o}),oo().createElement(Pd,{className:"ba-DecoratedDrawingPath-border",fill:"none",pathCommands:o,stroke:xt,strokeWidth:e})),oo().createElement(Pd,{pathCommands:o}))}const Md=["className","children"];function jd(e,t){let{className:n,children:r}=e,o=Se(e,Md);const{current:i}=oo().useRef(`ba-DrawingSVG-shadow_${Ae()}`);return oo().createElement("svg",g({ref:t,className:Po()("ba-DrawingSVG",n),preserveAspectRatio:"none",viewBox:"0 0 100 100"},o),oo().createElement("defs",null,oo().createElement("filter",{filterUnits:"userSpaceOnUse",id:i},oo().createElement("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"1"}))),oo().createElement(Ld.Provider,{value:i},r))}const Rd=oo().forwardRef(jd),Nd=({children:e,isActive:t=!1,rootEl:n,stroke:{color:r,size:o}})=>{let i=o,a=i+2;if(!("vector-effect"in document.body.style)){if(!n)return ro.createElement("g",{className:"ba-DrawingPathGroup"});const{clientWidth:e}=n,t=e/100;i/=t,a/=t}return ro.createElement("g",{className:Po()("ba-DrawingPathGroup",{"is-active":t}),fill:"transparent",stroke:r,strokeWidth:i},"function"==typeof e?e(a):e)},Fd=(e,t)=>{const{annotationId:n,className:r,isActive:o=!1,onSelect:i=Nn(),rootEl:a,target:{path_groups:s}}=e,c=Fe(s),{x:u,y:l}=Re(c),d=()=>{i(n)};return ro.createElement("a",{ref:t,className:Po()("ba-DrawingTarget",r,{"is-active":o}),"data-ba-annotation-id":n,"data-resin-itemid":n,"data-resin-target":"highlightDrawing","data-testid":`ba-AnnotationTarget-${n}`,href:"#",onFocus:d,onMouseDown:e=>{if(1!==e.buttons)return;const t=document.activeElement;e.preventDefault(),e.stopPropagation(),t&&t!==e.currentTarget&&t.blur&&t.blur(),e.currentTarget.focus?e.currentTarget.focus():d()},role:"button",tabIndex:0},ro.createElement("rect",g({fill:"transparent",transform:`translate(-${.1*u}, -${.1*l}) scale(1.1)`},c)),s.map(({clientId:e,paths:t,stroke:n})=>ro.createElement(Nd,{key:e,isActive:o,rootEl:a,stroke:n},e=>t.map(({clientId:t,points:n})=>ro.createElement(Dd,{key:t,borderStrokeWidth:e,isDecorated:!0,points:n})))))},Bd=ro.forwardRef(Fd);function Ud({target:{path_groups:e}}){return e.every(({paths:e})=>e.every(({points:e})=>e.every(({x:e,y:t})=>sd(e)&&sd(t))))}function Kd({target:e},{target:t}){const{height:n,width:r}=Fe(e.path_groups),{height:o,width:i}=Fe(t.path_groups);return o*i-n*r}function Hd({activeId:e=null,annotations:t,className:n,onSelect:r=Nn()}){const[o,i]=oo().useState(null),a=ad();return oo().createElement(Rd,{ref:i,className:Po()(n,{"is-listening":a}),"data-resin-component":"drawingList"},t.filter(Ud).sort(Kd).map(({id:t,target:n})=>oo().createElement(Bd,{key:t,annotationId:t,isActive:e===t,onSelect:r,rootEl:o,target:n})))}const zd=oo().memo(Hd),qd=Et;function Vd({className:e,color:t=qd,onStart:n,onStop:r,rotation:o=0,size:i=4}){const[a,s]=oo().useState(Fl.init),c=oo().useRef([]),u=oo().useRef(null),l=oo().useRef(!1),d=oo().useRef(null),f=oo().useRef(null),p=oo().useRef(null),h=oo().useMemo(()=>({color:t,size:i}),[t,i]),g=oo().useCallback(()=>{const{current:e}=u,{current:t}=c;if(!e||!t.length)return[];const n=e.offsetWidth,r=e.offsetHeight,{size:o}=h,i=n-o,a=r-o;return t.map(({x:e,y:t})=>({x:Math.min(i,Math.max(o,e))/n*100,y:Math.min(a,Math.max(o,t))/r*100}))},[h]),y=oo().useCallback(()=>{const e=g();!e||e.length<=1||(s(Fl.init),c.current=[],l.current=!0,r({paths:[{points:e}],stroke:h}))},[g,r,s,h]),m=oo().useCallback((e,t)=>{const[r,i]=mn(e,t,u.current,o),{current:d}=c;d.push({x:r,y:i}),l.current=!0,a!==Fl.drawing&&(s(Fl.drawing),n())},[a,n,o,s]),b=e=>{p.current=window.requestAnimationFrame(e)},v=()=>{const{current:e}=l,{current:t}=d;e&&t&&(t.setAttribute("d",Ne(g())),l.current=!1),b(v)};return oo().useEffect(()=>(a!==Fl.init&&b(v),()=>{const{current:e}=p;e&&window.cancelAnimationFrame(e)}),[a]),oo().useEffect(()=>{const{current:e}=u;e&&(e.style.cursor="crosshair",e.style.cursor=(e=>`url("data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='32' height='32' viewBox='0 0 32 32'>\n <defs>\n <path id='ba-DrawingCursor-b' d='M23.0868949,12.6610542 L21.7362465,14.0116939 C21.5985448,14.1493947 21.3758783,14.1493947 21.2381766,14.0116939 L17.9860729,10.7596114 C17.8483713,10.6219106 17.8483713,10.3992455 17.9860729,10.2615447 L19.3367214,8.91090502 C19.8845983,8.36303166 20.7752645,8.36303166 21.3260713,8.91090502 L23.0868949,10.6717173 C23.6377017,11.2195906 23.6377017,12.1102511 23.0868949,12.6610542 Z M16.825863,11.4217471 L9.13214756,19.1154126 L8.51102507,22.6751246 C8.4260602,23.1556124 8.8450249,23.5716446 9.32551588,23.4896101 L12.8852509,22.8655618 L20.5789664,15.1718963 C20.7166681,15.0341955 20.7166681,14.8115304 20.5789664,14.6738296 L17.3268627,11.4217471 C17.1862312,11.2840463 16.9635647,11.2840463 16.825863,11.4217471 Z M12.1352162,18.4562067 C11.974076,18.2950675 11.974076,18.0372447 12.1352162,17.8761055 L16.6471438,13.3642072 C16.8082841,13.203068 17.0661085,13.203068 17.2272488,13.3642072 C17.388389,13.5253464 17.388389,13.7831692 17.2272488,13.9443084 L12.7153212,18.4562067 C12.5541809,18.6173459 12.2963565,18.6173459 12.1352162,18.4562067 L12.1352162,18.4562067 Z M11.0775501,20.9201719 L12.4838652,20.9201719 L12.4838652,21.9836908 L10.5941293,22.3147587 L9.6829543,21.4035896 L10.0140243,19.513866 L11.0775501,19.513866 L11.0775501,20.9201719 Z'/>\n <filter id='ba-DrawingCursor-a' width='196.7%' height='196.7%' x='-48.3%' y='-41.7%' filterUnits='objectBoundingBox'>\n <feMorphology in='SourceAlpha' operator='dilate' radius='.75' result='shadowSpreadOuter1'/>\n <feOffset dy='1' in='shadowSpreadOuter1' result='shadowOffsetOuter1'/>\n <feGaussianBlur in='shadowOffsetOuter1' result='shadowBlurOuter1' stdDeviation='2'/>\n <feComposite in='shadowBlurOuter1' in2='SourceAlpha' operator='out' result='shadowBlurOuter1'/>\n <feColorMatrix in='shadowBlurOuter1' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.24647618 0'/>\n </filter>\n </defs>\n <g fill='none' stroke-linejoin='round'>\n <use fill='#000' filter='url(#ba-DrawingCursor-a)' xlink:href='#ba-DrawingCursor-b'/>\n <path fill='${e}' fill-rule='evenodd' stroke='#FFF' stroke-width='.75' d='M16.8075762,10.9097054 L21.119532,14.6460363 L13.0730631,23.2133559 L9.38862666,23.8592613 C9.02061417,23.9220923 8.67630709,23.7937251 8.44046,23.5578795 C8.23387707,23.3512979 8.11025348,23.0623685 8.12610763,22.7471873 L8.14160649,22.6106659 L8.78311611,18.9341134 L16.8075762,10.9097054 Z M10.3290377,19.888866 L10.0859707,21.276275 L10.7214427,21.9117429 L12.1088652,21.6686767 L12.1088652,21.2951719 L10.7025501,21.2951719 L10.3290377,19.888866 Z M16.912308,13.6293731 L12.4003804,18.1412714 L12.3922785,18.1528739 L12.3922785,18.1528739 L12.389361,18.1661561 C12.389361,18.1753081 12.3934679,18.1841284 12.4003804,18.1910408 C12.4072938,18.1979542 12.4161155,18.2020611 12.4252687,18.2020611 C12.4344219,18.2020611 12.4432436,18.1979542 12.450157,18.1910408 L12.450157,18.1910408 L16.9620846,13.6791425 L16.9701864,13.66754 L16.9701864,13.66754 L16.973104,13.6542578 C16.973104,13.6384287 16.9537538,13.6286304 16.912308,13.6293731 L16.912308,13.6293731 Z M20.3302976,8.125 C20.7859086,8.125 21.2419828,8.29834457 21.5912354,8.64573912 L21.5912354,8.64573912 L23.3513511,10.4058452 C23.7004504,10.7530854 23.875,11.2089541 23.875,11.6652871 C23.875,12.1211084 23.7008005,12.577481 23.3520591,12.9262201 L23.3520591,12.9262201 L21.7544376,14.5238313 L17.4797801,10.8169258 L19.0500461,8.66761683 C19.3996549,8.30599451 19.8646885,8.125 20.3302976,8.125 Z'/>\n </g>\n </svg>`)}") 6 22, crosshair`)(t))},[t,u]),oo().createElement(Ul,{ref:u,className:Po()(e,"ba-DrawingCreator"),"data-testid":"ba-DrawingCreator",onDrawStart:(e,t)=>{const[n,r]=mn(e,t,u.current,o);s(Fl.dragging),c.current=[{x:n,y:r}],l.current=!0},onDrawStop:y,onDrawUpdate:m,status:a},a!==Fl.init&&oo().createElement(Rd,{ref:f,className:"ba-DrawingCreator-current"},oo().createElement(Nd,{rootEl:f.current,stroke:h},oo().createElement(Pd,{ref:d}))))}const Gd=["children","onMount"];function Wd(e,t){const{children:n,onMount:r=Nn()}=e,o=Se(e,Gd),i=ql(r);return oo().createElement("g",g({ref:t,"data-ba-reference-id":i},o),n)}const $d=oo().forwardRef(Wd);var Yd=n(179),Xd=n.n(Yd),Zd=n(7200),Jd=n.n(Zd);class Qd extends ro.Component{constructor(){var e,t,n;super(...arguments),e=this,t="id",n=Jd()("icon"),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}render(){const e=this.props,{children:t,title:n}=e,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","title"]),o="".concat(this.id,"-title"),i=Xd()(r,["role","aria-labelledby"]);return i.focusable="false",n?(i["aria-labelledby"]=o,i.role="img"):(i["aria-hidden"]="true",i.role="presentation"),ro.createElement("svg",i,n?ro.createElement("title",{id:o},n):null,t)}}const ef=Qd;function tf(){return tf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tf.apply(this,arguments)}const nf=e=>ro.createElement(ef,tf({width:16,height:16,viewBox:"0 0 16 16"},e),ro.createElement("path",{fill:_t,d:"M8 0a8 8 0 110 16A8 8 0 018 0zm0 1a7 7 0 100 14A7 7 0 008 1zm1.313 2.743c.162 0 .301.054.417.178l2.057 2.088a.685.685 0 01.21.487c0 .178-.078.34-.21.472l-2.064 2.11a.59.59 0 01-1.005-.433c0-.146.053-.309.177-.41l.92-.858.449-.324-.828.038H7.147c-1.09 0-1.902.78-1.902 1.909 0 1.16.908 1.8 2.022 1.8h1.082c.372 0 .647.217.647.604 0 .386-.268.596-.654.596H7.267C5.442 12 4 10.856 4 9s1.33-3.084 3.147-3.084h2.29l.827.039-.58-.449-.781-.75a.543.543 0 01-.186-.418.59.59 0 01.596-.595z"}));function rf(){return rf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rf.apply(this,arguments)}const of=e=>ro.createElement(ef,rf({width:16,height:16,viewBox:"0 0 16 16"},e),ro.createElement("path",{fill:"#222",fillRule:"evenodd",d:"M14 2l-1.8 11c-.1.6-.7 1-1.2 1H5c-.6 0-1.1-.5-1.2-1L2 2h12zm-1.2 1H3.2l1.6 9.9s.1.1.2.1h6c.06 0 .12-.036.158-.065l.042-.035L12.8 3zm-2.3 1c.3 0 .5.2.5.5s-.2.5-.5.5h-5c-.3 0-.5-.2-.5-.5s.2-.5.5-.5z"}));function af(){return af=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},af.apply(this,arguments)}const sf=e=>ro.createElement(ef,af({width:16,height:16,viewBox:"0 0 16 16"},e),ro.createElement("path",{fill:_t,d:"M8 0a8 8 0 110 16A8 8 0 018 0zm0 1a7 7 0 100 14A7 7 0 008 1zM6.683 3.743a.59.59 0 01.596.595c0 .17-.07.317-.186.418l-.78.75-.58.449.827-.04h2.289c1.817 0 3.147 1.229 3.147 3.085 0 1.856-1.442 3-3.267 3H7.654C7.268 12 7 11.79 7 11.404c0-.387.276-.604.647-.604h1.082c1.114 0 2.022-.64 2.022-1.8 0-1.129-.812-1.909-1.902-1.909h-2.29l-.827-.038.449.324.92.859c.124.1.178.263.178.41a.59.59 0 01-1.005.433L4.209 6.968A.664.664 0 014 6.496c0-.186.077-.356.209-.487L6.266 3.92a.545.545 0 01.417-.178z"})),cf=function(e){return ro.createElement("svg",g({"data-testid":"ArrowBack",fill:"none",focusable:"false",height:"1em",role:"img",viewBox:"0 0 20 20",width:"1em"},e),ro.createElement("path",{d:"M6.91086 1.91058C7.2363 1.58515 7.76381 1.58515 8.08925 1.91058C8.41462 2.23602 8.41462 2.76355 8.08925 3.08896L5.34511 5.8331H12.5C14.1062 5.83312 15.3897 6.4396 16.2574 7.47291C17.1089 8.4871 17.5 9.83869 17.5 11.2498C17.5 12.6609 17.109 14.0125 16.2574 15.0266C15.3897 16.0599 14.1062 16.6664 12.5 16.6664H10C9.53987 16.6664 9.16679 16.2933 9.16671 15.8331C9.16671 15.3729 9.53979 14.9998 10 14.9998H12.5C13.6552 14.9998 14.4553 14.5803 14.9805 13.9549C15.5219 13.3102 15.8334 12.3699 15.8334 11.2498C15.8334 10.1296 15.5219 9.18935 14.9805 8.54469C14.4553 7.91928 13.6552 7.49979 12.5 7.49977H5.34511L8.08925 10.2439C8.41462 10.5694 8.41471 11.0969 8.08925 11.4223C7.76384 11.7477 7.23631 11.7477 6.91086 11.4223L2.7442 7.25563C2.41876 6.9302 2.41876 6.40268 2.7442 6.07725L6.91086 1.91058Z",fill:"#fff"}))},uf=function(e){return ro.createElement("svg",g({"data-testid":"ArrowForward",fill:"none",focusable:"false",height:"1em",role:"img",viewBox:"0 0 20 20",width:"1em"},e),ro.createElement("path",{d:"M11.9108 1.91058C12.2363 1.58515 12.7638 1.58515 13.0892 1.91058L17.2558 6.07725C17.5813 6.40268 17.5813 6.9302 17.2558 7.25563L13.0892 11.4223C12.7638 11.7477 12.2363 11.7477 11.9108 11.4223C11.5854 11.0969 11.5854 10.5694 11.9108 10.2439L14.6549 7.49977H7.5C6.34482 7.49977 5.54479 7.91927 5.01953 8.54469C4.4782 9.18935 4.16667 10.1296 4.16667 11.2498C4.16668 12.3699 4.47819 13.3102 5.01953 13.9549C5.54479 14.5803 6.34484 14.9998 7.5 14.9998H10C10.4603 14.9998 10.8333 15.3729 10.8333 15.8331C10.8333 16.2933 10.4603 16.6664 10 16.6664H7.5C5.89388 16.6664 4.6104 16.0599 3.74268 15.0266C2.89112 14.0125 2.50001 12.6609 2.5 11.2498C2.5 9.83869 2.89113 8.4871 3.74268 7.47291C4.6104 6.43958 5.89385 5.8331 7.5 5.8331H14.6549L11.9108 3.08896C11.5854 2.76354 11.5854 2.23602 11.9108 1.91058Z",fill:"#fff"}))},lf=function(e){return ro.createElement("svg",g({"data-testid":"Trash",fill:"none",focusable:"false",height:"1em",role:"img",viewBox:"0 0 20 20",width:"1em"},e),ro.createElement("path",{clipRule:"evenodd",d:"M7.55758 4.25017C7.6296 3.87481 7.75758 3.73256 7.87369 3.65128C7.99454 3.56669 8.19891 3.47991 8.56146 3.41949C8.92362 3.35914 9.39079 3.33317 9.99996 3.33317C10.6092 3.33317 11.0764 3.35914 11.4385 3.41949C11.801 3.47991 12.0054 3.56669 12.1263 3.65128C12.2424 3.73256 12.3704 3.87481 12.4424 4.25017C11.7196 4.1984 10.9065 4.1665 9.99996 4.1665C9.09346 4.1665 8.2803 4.1984 7.55758 4.25017ZM5.85575 4.42505C5.92957 3.5488 6.20244 2.78673 6.91792 2.2859C7.31791 2.0059 7.79063 1.8583 8.28746 1.7755C8.78471 1.69262 9.35921 1.6665 9.99996 1.6665C10.6408 1.6665 11.2153 1.69262 11.7125 1.7755C12.2093 1.8583 12.682 2.0059 13.082 2.2859C13.7975 2.78673 14.0704 3.5488 14.1442 4.42505C14.5419 4.47947 14.8961 4.53848 15.208 4.59789C15.7812 4.70707 16.2109 4.81752 16.5036 4.90318C16.6499 4.946 16.762 4.98262 16.8405 5.00976C16.8797 5.02333 16.9105 5.03452 16.9331 5.04294L16.9608 5.05343L16.97 5.05701L16.9735 5.05837L16.9749 5.05895C16.9752 5.05906 16.9761 5.05944 16.6666 5.83317L16.9761 5.05944C17.4035 5.23037 17.6113 5.71535 17.4404 6.14266C17.2975 6.49966 16.9356 6.70348 16.5711 6.66122L16.0734 15.1939C15.9706 16.9565 14.5113 18.3332 12.7457 18.3332H7.25422C5.48867 18.3332 4.02937 16.9565 3.92655 15.1939L3.42881 6.66122C3.06437 6.70348 2.70237 6.49966 2.55958 6.14266C2.38865 5.71535 2.5965 5.23037 3.02382 5.05944L3.33331 5.83317C3.02382 5.05944 3.02351 5.05955 3.02382 5.05944L3.02506 5.05895L3.02649 5.05837L3.02994 5.05701L3.03914 5.05343L3.06682 5.04294C3.0894 5.03452 3.12027 5.02333 3.15952 5.00976C3.23802 4.98262 3.35004 4.946 3.49637 4.90318C3.78904 4.81752 4.21877 4.70707 4.79197 4.59789C5.10387 4.53848 5.45812 4.47947 5.85575 4.42505ZM5.59039 15.0969L5.07378 6.24087L5.10382 6.23512C6.1447 6.03685 7.75911 5.83317 9.99996 5.83317C12.2409 5.83317 13.8553 6.03685 14.8961 6.23512L14.9261 6.24087L14.4095 15.0969C14.3581 15.9782 13.6285 16.6665 12.7457 16.6665H7.25422C6.37145 16.6665 5.6418 15.9782 5.59039 15.0969ZM11.6666 7.49984C12.1269 7.49984 12.5 7.87294 12.5 8.33317V14.1665C12.5 14.6268 12.1269 14.9998 11.6666 14.9998C11.2064 14.9998 10.8333 14.6268 10.8333 14.1665V8.33317C10.8333 7.87294 11.2064 7.49984 11.6666 7.49984ZM9.16662 8.33317C9.16662 7.87294 8.79354 7.49984 8.33329 7.49984C7.87307 7.49984 7.49997 7.87294 7.49997 8.33317V14.1665C7.49997 14.6268 7.87307 14.9998 8.33329 14.9998C8.79354 14.9998 9.16662 14.6268 9.16662 14.1665V8.33317Z",fill:"#fff",fillRule:"evenodd"}))},df={modifiers:[{name:"offset",options:{offset:({popper:e})=>[-e.width/2,8]}},{name:"preventOverflow",options:{padding:50}}],placement:"top"},ff=20,pf=(e,t)=>{const{canComment:n,canRedo:r,canUndo:o,className:i,onDelete:a,onRedo:s,onReply:c,onUndo:u,reference:l}=e,d=(0,ao.useSelector)(e=>lt(e,"modernization")),f=(0,ho.useIntl)();return oo().createElement(Xu,{ref:t,className:Po()(i,"ba-PopupDrawingToolbar",{"ba-PopupDrawingToolbar--modernized":d}),"data-resin-component":"popupDrawingToolbar",options:df,reference:l},oo().createElement("div",{className:"ba-PopupDrawingToolbar-group"},oo().createElement("button",{className:"ba-PopupDrawingToolbar-undo","data-testid":"ba-PopupDrawingToolbar-undo",disabled:!o,onClick:()=>u(),title:f.formatMessage(cc.drawingButtonUndo),type:"button"},d?oo().createElement(cf,{height:ff,width:ff}):oo().createElement(sf,null)),oo().createElement("button",{className:"ba-PopupDrawingToolbar-redo","data-testid":"ba-PopupDrawingToolbar-redo",disabled:!r,onClick:()=>s(),title:f.formatMessage(cc.drawingButtonRedo),type:"button"},d?oo().createElement(uf,{height:ff,width:ff}):oo().createElement(nf,null)),oo().createElement("button",{className:"ba-PopupDrawingToolbar-delete","data-testid":"ba-PopupDrawingToolbar-delete",onClick:()=>a(),title:f.formatMessage(cc.drawingButtonDelete),type:"button"},d?oo().createElement(lf,{height:ff,width:ff}):oo().createElement(of,null))),oo().createElement("div",{className:"ba-PopupDrawingToolbar-group"},oo().createElement("button",{className:"ba-PopupDrawingToolbar-comment","data-testid":"ba-PopupDrawingToolbar-comment",disabled:!n,onClick:()=>c(),type:"button"},oo().createElement(ho.FormattedMessage,cc.drawingButtonAddComment))))},hf=oo().forwardRef(pf),gf={addDrawingPathGroup:Yt,redoDrawingPathGroup:Xt,resetDrawing:Zt,setActiveAnnotationId:vt,setReferenceId:jt,setStaged:Rt,setStatus:Nt,setupDrawing:e=>(t,n)=>{const r=n();return Vt(r)===Pt.staged&&t(Zt()),t(Jt(e))},undoDrawingPathGroup:Qt},yf=(0,ao.connect)((e,{location:t})=>{const n=Vt(e);return{activeAnnotationId:ze(e),annotations:Ge(e,t).filter(Be),color:It(e),canShowPopupToolbar:n===Pt.started,drawnPathGroups:nn(e,t),isCreating:Tt(e)===Ot.DRAWING&&n!==Pt.pending,rotation:st(e),stashedPathGroups:rn(e,t)}},gf)(Ll(e=>{const{activeAnnotationId:t,addDrawingPathGroup:n,annotations:r,canShowPopupToolbar:o,color:i,drawnPathGroups:a,isCreating:s,location:c,popupPortalEl:u,redoDrawingPathGroup:l,resetDrawing:d,rotation:f,setActiveAnnotationId:p,setReferenceId:h,setStaged:g,setStatus:y,setupDrawing:m,stashedPathGroups:b,undoDrawingPathGroup:v,targetType:w,referenceEl:S}=e,[x,E]=oo().useState(!1),[_,O]=oo().useState(null),k=a.length>0,C=b.length>0,A=k||C,T=oo().useRef(null),I=oo().useRef(null),{current:P}=I,{isVideoSeeking:L,getCurrentVideoLocation:D}=Ql({targetType:w,referenceEl:S,activeAnnotationId:t,annotations:r});oo().useEffect(()=>{const{current:e}=T;e?.popper&&a.length&&e.popper.update()},[a]);let M=[];return w===He.FRAME?!L&&t&&(M=r.filter(e=>e.id===t)):M=r,oo().createElement(oo().Fragment,null,oo().createElement(zd,{activeId:t,annotations:M,className:"ba-DrawingAnnotations-list",onSelect:e=>{p(e)}}),A&&oo().createElement(Rd,{ref:O,className:"ba-DrawingAnnotations-target"},oo().createElement($d,{ref:I,onMount:e=>{h(e)}},a.map(({clientId:e,paths:t,stroke:n})=>oo().createElement(Nd,{key:e,rootEl:_,stroke:n},e=>t.map(({clientId:t,points:n})=>oo().createElement(Dd,{key:t,borderStrokeWidth:e,isDecorated:!0,points:n})))))),s&&oo().createElement(Vd,{className:"ba-DrawingAnnotations-creator",color:i,onStart:()=>{m(c),y(Pt.started),E(!0)},onStop:e=>{n(e),E(!1)},rotation:f}),s&&A&&P&&o&&u&&Co().createPortal(oo().createElement(hf,{ref:T,canComment:k,canRedo:C,canUndo:k,className:Po()("ba-DrawingAnnotations-toolbar",{"ba-is-drawing":x}),onDelete:()=>{d()},onRedo:()=>{l()},onReply:()=>{const e=w===He.FRAME?D():c;g({location:e,pathGroups:a}),y(Pt.staged)},onUndo:()=>{v()},reference:P}),u))})),mf=["popupPortalEl"];class bf extends uo{constructor(e){let{popupPortalEl:n}=e;super(Se(e,mf)),t(this,"popupPortalEl",void 0),this.popupPortalEl=n}decorate(){this.reactEl.classList.add("ba-Layer--drawing"),this.reactEl.dataset.testid="ba-Layer--drawing"}render(e){this.root||(this.root=io.createRoot(this.reactEl)),this.root.render(ro.createElement(yf,g({referenceEl:this.referenceEl,targetType:this.targetType,location:this.location,popupPortalEl:this.popupPortalEl},e)))}}const vf="ba-is-drawing";function wf(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 Sf(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?wf(Object(r),!0).forEach(function(n){t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}class xf{constructor({getSelection:e,referenceEl:n,selectionChangeDelay:r=0,store:o}){t(this,"referenceEl",void 0),t(this,"getSelection",void 0),t(this,"selectionChangeDelay",void 0),t(this,"selectionChangeTimer",void 0),t(this,"store",void 0),t(this,"handleMouseDown",({buttons:e})=>{1===e&&(clearTimeout(this.selectionChangeTimer),this.store.dispatch(Sn(!0)),this.store.dispatch(vn(null)))}),t(this,"handleMouseUp",()=>{_n(this.store.getState())&&(this.selectionChangeTimer=window.setTimeout(()=>{const e=this.getSelection(),t=st(this.store.getState());this.store.dispatch(vn(e?Sf(Sf({},e),{},{rotation:t}):null)),this.store.dispatch(Sn(!1))},this.selectionChangeDelay))}),this.getSelection=e,this.referenceEl=n,this.selectionChangeDelay=r,this.store=o}exists(e){return e.contains(this.referenceEl)}render(){this.store.dispatch(vn(null)),this.referenceEl.addEventListener("mousedown",this.handleMouseDown),document.addEventListener("mouseup",this.handleMouseUp)}style(){return this.referenceEl.style}destroy(){clearTimeout(this.selectionChangeTimer),this.referenceEl.removeEventListener("mousedown",this.handleMouseDown),document.removeEventListener("mouseup",this.handleMouseUp)}}function Ef(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 _f(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Ef(Object(r),!0).forEach(function(n){t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ef(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}class Of{constructor({getSelection:e,store:n}){t(this,"getSelection",void 0),t(this,"store",void 0),t(this,"handleSelectionChange",()=>{if(_n(this.store.getState()))return;const e=this.getSelection(),t=st(this.store.getState());this.store.dispatch(vn(e?_f(_f({},e),{},{rotation:t}):null))}),t(this,"debounceHandleSelectionChange",fc()(this.handleSelectionChange,500)),this.getSelection=e,this.store=n,document.addEventListener("selectionchange",this.debounceHandleSelectionChange)}destroy(){document.removeEventListener("selectionchange",this.debounceHandleSelectionChange)}}class kf extends ro.PureComponent{constructor(...e){super(...e),t(this,"canvasRef",ro.createRef())}componentDidMount(){this.scaleCanvas(),this.renderRects()}componentDidUpdate(){this.clearCanvas(),this.renderRects()}getContext(){const{current:e}=this.canvasRef;return e?.getContext("2d")??null}scaleCanvas(){const{current:e}=this.canvasRef;e&&(e.width=e.offsetWidth,e.height=e.offsetHeight)}clearCanvas(){const{current:e}=this.canvasRef,t=e&&e.getContext("2d");e&&t&&t.clearRect(0,0,e.width,e.height)}renderRects(){const{shapes:e}=this.props,{current:t}=this.canvasRef,n=t&&t.getContext("2d"),r=t?.height??0,o=t?.width??0,i=Array.isArray(e)?e:[e];n&&i.forEach(e=>{const{height:t,isActive:i,isHover:a,width:s,x:c,y:u}=e;if(0===s||0===t)return;const l=t/100*r,d=s/100*o,f=c/100*o,p=u/100*r;if(n.save(),n.fillStyle="#ffd700",n.globalAlpha=i||a?.66:.33,n.fillRect(f,p,d,l),n.restore(),n.save(),n.strokeStyle=xt,n.lineWidth=1,n.strokeRect(f,p,d,l),i){const e=n.getImageData(f,p,d,l);n.save(),n.shadowColor="#000",n.shadowBlur=10,n.strokeRect(f,p,d,l),n.putImageData(e,f,p),n.restore()}n.restore()})}render(){return ro.createElement("canvas",{ref:this.canvasRef,className:"ba-HighlightCanvas"})}}t(kf,"defaultProps",{shapes:[]});const Cf=({children:e,className:t},n)=>oo().createElement("svg",{ref:n,className:Po()("ba-HighlightSvg",t)},e),Af=oo().forwardRef(Cf),Tf=(e,t)=>{const{annotationId:n,className:r,isActive:o,onHover:i=Nn(),onMount:a=Nn(),onSelect:s=Nn(),shapes:c}=e,u=ql(a),l=()=>{s(n)};return oo().createElement("a",{ref:t,className:Po()("ba-HighlightTarget",r,{"is-active":o}),"data-ba-annotation-id":n,"data-ba-reference-id":u,"data-resin-itemid":n,"data-resin-target":"highlightText","data-testid":`ba-AnnotationTarget-${n}`,href:"#",onClick:e=>{e.preventDefault(),e.stopPropagation()},onFocus:l,onMouseDown:e=>{if(1!==e.buttons)return;const t=document.activeElement;e.preventDefault(),e.stopPropagation(),t&&t!==e.currentTarget&&t.blur&&t.blur(),e.currentTarget.focus?e.currentTarget.focus():l()},onMouseEnter:()=>{i(n)},onMouseLeave:()=>{i(null)},role:"button",tabIndex:0},c.map(e=>{const{height:t,width:r,x:o,y:i}=e;return oo().createElement("rect",{key:`${n}-${o}-${i}-${r}-${t}`,className:"ba-HighlightTarget-rect",fill:"none",height:`${t}%`,width:`${r}%`,x:`${o}%`,y:`${i}%`})}))},If=oo().forwardRef(Tf);function Pf(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 Lf(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Pf(Object(r),!0).forEach(function(n){t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Df({target:e}){const{shapes:t=[]}=e;return t.every(({height:e,width:t,x:n,y:r})=>sd(e)&&sd(t)&&sd(n)&&sd(r))}function Mf(e){return e.reduce((e,{height:t,width:n})=>e+t*n,0)}function jf({target:e},{target:t}){const{shapes:n}=e,{shapes:r}=t;return Mf(n)>Mf(r)?-1:1}function Rf({activeId:e=null,annotations:t,className:n,onSelect:r}){const[o,i]=oo().useState(null),a=oo().createRef(),s=ad(),c=t.filter(Df).sort(jf),u=function(e,t,n){return e.reduce((e,r)=>{const{id:o,target:{shapes:i}}=r;return e.concat(i.map(e=>Lf(Lf({},e),{},{isActive:t===o,isHover:n===o})))},[])}(c,e,o),l=e=>{i(e)};return oo().createElement("div",{className:Po()("ba-HighlightList",n),"data-resin-component":"highlightList"},oo().createElement(kf,{shapes:u}),oo().createElement(Af,{ref:a,className:Po()({"is-listening":s})},c.map(({id:t,target:n})=>oo().createElement(If,{key:t,annotationId:t,isActive:e===t,onHover:l,onSelect:r,shapes:n.shapes}))))}const Nf=oo().memo(Rf);function Ff(){return Ff=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ff.apply(this,arguments)}const Bf=e=>ro.createElement(ef,Ff({width:16,height:16,viewBox:"0 0 16 16"},e),ro.createElement("path",{d:"M5.75 1a.25.25 0 01.25.25v.5a.25.25 0 01-.25.25H4v12h1.75a.25.25 0 01.25.25v.5a.25.25 0 01-.25.25h-4.5a.25.25 0 01-.25-.25v-.5a.25.25 0 01.25-.25H3V2H1.25A.25.25 0 011 1.75v-.5A.25.25 0 011.25 1h4.5zM13 4a2 2 0 012 2v4a2 2 0 01-2 2H5.75a1 1 0 01-1-1V5a1 1 0 011-1H13zm-2.78 1.5a2.83 2.83 0 00-1.991.763l.206.372a.53.53 0 00.136.148.33.33 0 00.206.064.5.5 0 00.255-.066l.255-.148c.093-.055.202-.104.325-.148s.278-.066.465-.066c.26 0 .456.078.593.233s.206.395.206.72v.283c-.548.013-1.006.066-1.374.16s-.662.213-.883.356-.38.303-.474.48S8 9.008 8 9.2c0 .217.034.407.103.57a1.11 1.11 0 00.29.41 1.23 1.23 0 00.444.247c.17.055.358.082.56.082.17 0 .328-.014.47-.042a1.83 1.83 0 00.4-.127 2.87 2.87 0 00.36-.2 4.18 4.18 0 00.355-.29l.103.344c.034.1.08.167.14.2s.143.05.252.05H12V7.37a2.29 2.29 0 00-.119-.754 1.64 1.64 0 00-.348-.59 1.59 1.59 0 00-.561-.386 1.93 1.93 0 00-.752-.139zm.654 2.86v.815a1.812 1.812 0 01-.507.393 1.36 1.36 0 01-.614.13c-.193 0-.35-.044-.47-.132s-.18-.234-.18-.438c0-.104.03-.2.09-.287a.72.72 0 01.294-.231c.137-.066.32-.12.544-.163a6.27 6.27 0 01.843-.087z",fill:_t,fillRule:"evenodd"}));function Uf(e,t,n){ro.useEffect(()=>{function r(e){const r=t instanceof Element?t:t?.current,o=!!r?.contains(e.target);n&&!o&&n(e)}return document.addEventListener(e,r),()=>{document.removeEventListener(e,r)}},[n,t,e])}const Kf={modifiers:[{name:"arrow",options:{element:".ba-Popup-arrow"}},{name:"eventListeners",options:{scroll:!1}},{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{padding:5}}],placement:"bottom"};function Hf({onCancel:e=Nn(),onSubmit:t=Nn(),shape:n}){const r=oo().useRef(null),{height:o,width:i,x:a,y:s}=n,c={getBoundingClientRect:()=>$u(o,i,a,s)};return Uf("keydown",r,e=>{e instanceof KeyboardEvent&&"Enter"===e.key&&!e.ctrlKey&&!e.metaKey&&(e.preventDefault(),e.stopPropagation(),t())}),Uf("mousedown",r,e),oo().createElement(Xu,{"aria-live":"polite",className:"ba-PopupHighlight",options:Kf,reference:c,role:"dialog"},oo().createElement("button",{ref:r,"aria-haspopup":"dialog",className:"ba-PopupHighlight-button","data-testid":"ba-PopupHighlight-button",onClick:t,type:"button"},oo().createElement(Bf,{className:"ba-PopupHighlight-icon"}),oo().createElement(ho.FormattedMessage,cc.popupHighlightPromoter)))}const zf={modifiers:[{name:"arrow",options:{element:".ba-Popup-arrow"}},{name:"eventListeners",options:{scroll:!1}},{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{padding:5}}],placement:"bottom"};function qf({onCancel:e=Nn(),shape:t}){const n=oo().useRef(null),{height:r,width:o,x:i,y:a}=t,s={getBoundingClientRect:()=>$u(r,o,i,a)};return Uf("mousedown",n.current?.popupRef,e),oo().createElement(Xu,{ref:n,className:"ba-PopupHighlightError","data-testid":"ba-PopupHighlightError",options:zf,reference:s},oo().createElement(ho.FormattedMessage,cc.popupHighlightRestrictedPrompt))}function Vf(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 Gf(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Vf(Object(r),!0).forEach(function(n){t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const Wf={setActiveAnnotationId:vt,setIsPromoting:wn,setReferenceId:jt,setSelection:vn,setStaged:Rt,setStatus:Nt},$f=(0,ao.connect)((e,{location:t})=>{const n=qt(e,t);return{activeAnnotationId:ze(e),annotations:Ge(e,t).filter(ln),isCreating:Tt(e)===Ot.HIGHLIGHT,isPending:Vt(e)===Pt.pending,isPromoting:En(e),isSelecting:_n(e),rotation:st(e),selection:On(e,t),staged:Wt(n)?n:null}},Wf)(Ll(e=>{const{activeAnnotationId:t,annotations:n=[],isCreating:r=!1,isPending:o=!1,isPromoting:i=!1,isSelecting:a=!1,popupPortalEl:s,rotation:c,selection:u,setActiveAnnotationId:l,setIsPromoting:d,setReferenceId:f,setSelection:p,setStaged:h,setStatus:g,staged:y}=e,m=r||i,b=ro.useCallback(()=>{if(!u)return;const{containerRect:e,location:t,rects:n}=u;h({location:t,shapes:n.map(t=>Gf(Gf({},((e,t)=>{const{height:n,width:r,x:o,y:i}=e,{height:a,width:s,x:c,y:u}=t;return{height:n/a*100,width:r/s*100,x:Math.max(0,o-c)/s*100,y:Math.max(0,i-u)/a*100}})(t,e)),{},{type:"rect"}))}),g(Pt.staged)},[u,h,g]),v=()=>{p(null)},w=()=>{b(),d(!0)};return ro.useEffect(()=>{a&&!o&&(h(null),g(Pt.init))},[a,o,h,g]),ro.useEffect(()=>{r&&u&&!u.hasError&&!o&&b()},[r,o,u,b]),ro.createElement(ro.Fragment,null,ro.createElement(Nf,{activeId:t,annotations:n,onSelect:e=>{l(e)}}),m&&y&&ro.createElement("div",{className:"ba-HighlightAnnotations-target"},ro.createElement(kf,{shapes:y.shapes}),ro.createElement(Af,null,ro.createElement(If,{annotationId:"staged",isActive:!0,onMount:e=>{f(e)},shapes:y.shapes}))),!r&&u&&!u.hasError&&(()=>{const e=u.popupRect||un(u.rects),t=ro.createElement("div",{className:"ba-HighlightAnnotations-popup"},ro.createElement(Hf,{onCancel:v,onSubmit:w,shape:e}));return c&&s?Co().createPortal(t,s):t})(),u&&u.hasError&&(()=>{const e=u.popupRect||un(u.rects),t=ro.createElement("div",{className:"ba-HighlightAnnotations-popup"},ro.createElement(qf,{onCancel:v,shape:e}));return c&&s?Co().createPortal(t,s):t})())})),Yf=["popupPortalEl"];class Xf extends uo{constructor(e){let{popupPortalEl:n}=e;super(Se(e,Yf)),t(this,"popupPortalEl",void 0),this.popupPortalEl=n}decorate(){this.reactEl.classList.add("ba-Layer--highlight"),this.reactEl.dataset.testid="ba-Layer--highlight"}render(e){this.root||(this.root=io.createRoot(this.reactEl)),this.root.render(ro.createElement($f,g({location:this.location,popupPortalEl:this.popupPortalEl},e)))}}function Zf(e,t){for(let n=e;n&&n!==document.body;n=n.parentNode)if(n.classList&&n.classList.contains(t))return n;return null}function Jf(e){const t=Zf(e,"page"),n=t&&t.getAttribute("data-page-number");return n?parseInt(n,10):void 0}function Qf(){const e=window.getSelection();if(!e||e.isCollapsed||!e.rangeCount||!e.focusNode)return null;let t=e.getRangeAt(e.rangeCount-1);const n=e.getRangeAt(0);t.setStart(n.startContainer,n.startOffset);const r=Zf(t.endContainer,"textLayer"),o=Jf(t.startContainer),i=Jf(t.endContainer);if(!r||!o||!i)return null;const a=o!==i;let s=i;return a&&(t=document.createRange(),t.setEnd(e.focusNode,e.focusOffset),t.collapse(!1),s=Jf(e.focusNode)??i),{containerEl:r,containerRect:r.getBoundingClientRect(),hasError:a,location:s,range:t}}const ep="ba-is-drawing";function tp(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 np(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?tp(Object(r),!0).forEach(function(n){t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tp(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const rp=[{CONSTRUCTOR:class extends Oo{constructor(e){super(e),t(this,"annotatedEl",void 0),t(this,"highlightListener",void 0),t(this,"managers",new Map),t(this,"managersViewMode",null),t(this,"handleChangeMode",({mode:e})=>{if(!this.annotatedEl||"boundingBoxes"===nt(this.store.getState()))return;this.removeAnnotationClasses();const t=this.annotatedEl,n=_o[e];n&&t.classList.add(n)}),this.highlightListener=new Of({getSelection:Qf,store:this.store}),this.addListener(an.ANNOTATIONS_MODE_CHANGE,this.handleChangeMode)}destroy(){this.removeListener(an.ANNOTATIONS_MODE_CHANGE,this.handleChangeMode),this.highlightListener&&this.highlightListener.destroy(),this.managers&&this.managers.forEach(e=>e.forEach(e=>e.destroy())),super.destroy()}getAnnotatedElement(){return this.containerEl?.querySelector(".bp-doc")}clearManagers(){this.managers.forEach(e=>e.forEach(e=>e.destroy())),this.managers.clear(),this.managersViewMode=null}getPageManagers(e){const t=rt(this.store.getState()),n=it(this.store.getState()),r=this.getPageNumber(e),o=this.getPageReference(e),i={fileid:t,iscurrent:n},a=nt(this.store.getState()),s=this.managers.get(r)||new Set;let c=!1;if(s.forEach(t=>{t.exists(e)||(c=!0)}),c&&(s.forEach(e=>{e.destroy()}),s.clear()),0===s.size){if("boundingBoxes"===a)return s.add(new Ad({location:r,referenceEl:o,resinTags:i})),s;s.add(new bd({location:r,popupPortalEl:this.popupPortalEl,referenceEl:o,resinTags:i})),s.add(new bf({location:r,popupPortalEl:this.popupPortalEl,referenceEl:o,resinTags:i}));const t=e.querySelector(".textLayer");t&&s.add(new xf({getSelection:Qf,referenceEl:t,selectionChangeDelay:300,store:this.store})),s.add(new Xf({location:r,popupPortalEl:this.popupPortalEl,referenceEl:o,resinTags:i})),s.add(new hd({location:r,referenceEl:o,resinTags:i}));const n=e.querySelector(".canvasWrapper");s.add(new rd({location:r,referenceEl:n||o,resinTags:i}))}return s}getPageNumber(e){return parseInt(e.dataset.pageNumber||"",10)||1}getPageReference(e){const t=e.querySelector(".annotationLayer"),n=e.querySelector(".canvasWrapper"),r=e.querySelector(".textLayer");return t||r||n}getPage(e){return this.getPages().find(t=>e===this.getPageNumber(t))}getPages(){return this.annotatedEl?Array.from(this.annotatedEl.querySelectorAll(".page")):[]}render(){const e=nt(this.store.getState());null!==this.managersViewMode&&this.managersViewMode!==e&&this.clearManagers(),this.managersViewMode=e,this.getPages().filter(({dataset:e})=>e.loaded&&e.pageNumber).forEach(e=>this.renderPage(e)),this.postRender()}postRender(){"boundingBoxes"!==nt(this.store.getState())?super.postRender():this.deselectManager&&(this.deselectManager.destroy(),this.deselectManager=null)}renderPage(e){const t=this.getPageManagers(e),n=this.getPageNumber(e),r=st(this.store.getState())||0,o=e.clientWidth,i=e.clientHeight-30,a=r%180!=0,s=a?i:o,c=a?o:i;t.forEach(e=>{r?e.style({height:`${c}px`,left:"50%",top:"50%",transform:`translate(-50%, -50%) rotate(${r}deg)`,width:`${s}px`}):e.style({height:"",left:"",top:"",transform:"",width:""}),e.render({callbacks:{onCopyLink:this.onCopyLink},intl:this.intl,store:this.store})}),this.managers.set(n,t)}scrollToAnnotation(e){if(!e)return;const t=qe(this.store.getState(),e),n=t?.target.location.value??1,r=this.getPage(n);if(!(t&&n&&r&&this.annotatedEl))return;let o=null;jl(t)?o=Ml(t.target.shape):ln(t)?o=(e=>{const t=un(e),{x:n,y:r}=t,{x:o,y:i}=(e=>{const{height:t,width:n}=e;return{x:n/2,y:t/2}})(t);return{x:o+n,y:i+r}})(t.target.shapes):Be(t)&&(o=Ue(t.target.path_groups)),o&&xo(this.annotatedEl,r,{offsets:o})}getScrollReferenceForHighlight(e){return this.getPage(e.pageNumber)}},NAME:"Document",TYPES:[cn.highlight,cn.region],VIEWERS:["AutoCAD","Document","Presentation"]},{CONSTRUCTOR:class extends Oo{constructor(e){super(e),t(this,"annotatedEl",void 0),t(this,"managers",new Set),t(this,"managersViewMode",null),t(this,"storeHandler",void 0),t(this,"handleStore",()=>{const e=this.getReference();e&&(Vt(this.store.getState())===Pt.started?e.classList.add(vf):e.classList.remove(vf))}),this.storeHandler=this.store.subscribe(this.handleStore)}destroy(){this.storeHandler&&this.storeHandler(),this.managers&&this.managers.forEach(e=>e.destroy()),super.destroy()}getAnnotatedElement(){return this.containerEl?.querySelector(".bp-image")}clearManagers(){this.managers.forEach(e=>e.destroy()),this.managers.clear(),this.managersViewMode=null}getManagers(e,t){const n={fileid:rt(this.store.getState()),iscurrent:it(this.store.getState())},r=nt(this.store.getState());if(this.managers.forEach(t=>{t.exists(e)||(t.destroy(),this.managers.delete(t))}),0===this.managers.size){if("boundingBoxes"===r)return this.managers.add(new Ad({location:1,referenceEl:t,resinTags:n})),this.managers;this.managers.add(new bd({popupPortalEl:this.popupPortalEl,referenceEl:t,resinTags:n})),this.managers.add(new bf({popupPortalEl:this.popupPortalEl,referenceEl:t,resinTags:n})),this.managers.add(new hd({referenceEl:t,resinTags:n})),this.managers.add(new rd({referenceEl:t,resinTags:n}))}return this.managers}getReference(){return this.annotatedEl?.querySelector("img")}render(){const e=this.getReference(),t=st(this.store.getState())||0,n=nt(this.store.getState());this.annotatedEl&&e&&(null!==this.managersViewMode&&this.managersViewMode!==n&&this.clearManagers(),this.managersViewMode=n,this.getManagers(this.annotatedEl,e).forEach(n=>{n.style({height:`${e.offsetHeight}px`,left:`${e.offsetLeft}px`,top:`${e.offsetTop}px`,transform:`rotate(${t}deg)`,width:`${e.offsetWidth}px`}),n.render({callbacks:{onCopyLink:this.onCopyLink},intl:this.intl,store:this.store})}),this.postRender())}postRender(){"boundingBoxes"!==nt(this.store.getState())?super.postRender():this.deselectManager&&(this.deselectManager.destroy(),this.deselectManager=null)}getScrollReferenceForHighlight(){return this.getReference()}getAdjustedScrollOffsets(e){return yn(e,st(this.store.getState())||0)}scrollToAnnotation(e){if(!e)return;const t=qe(this.store.getState(),e),n=t?.target.location.value??1,r=this.getReference(),o=st(this.store.getState())||0;if(!(t&&n&&r&&this.annotatedEl))return;let i=null;jl(t)?i=Ml(t.target.shape):Be(t)&&(i=Ue(t.target.path_groups)),i&&xo(this.annotatedEl,r,{offsets:yn(i,o)})}},NAME:"Image",TYPES:[cn.region],VIEWERS:["Image"]},{CONSTRUCTOR:class extends Oo{constructor(e){super(e),t(this,"annotatedEl",void 0),t(this,"managers",new Set),t(this,"storeHandler",void 0),t(this,"handleStore",()=>{const e=this.getReference();e&&(Vt(this.store.getState())===Pt.started?e.classList.add(ep):e.classList.remove(ep))}),this.storeHandler=this.store.subscribe(this.handleStore)}destroy(){this.storeHandler&&this.storeHandler(),this.managers&&this.managers.forEach(e=>e.destroy()),super.destroy()}getAnnotatedElement(){return this.containerEl?.querySelector(".bp-media")}addManagers(e,t){this.managers.add(new bd({location:Ke,popupPortalEl:this.popupPortalEl,referenceEl:e,resinTags:t,targetType:He.FRAME})),this.managers.add(new bf({location:Ke,referenceEl:e,resinTags:t,targetType:He.FRAME})),this.managers.add(new hd({location:Ke,referenceEl:e,resinTags:t,targetType:He.FRAME})),this.managers.add(new rd({location:Ke,referenceEl:e,resinTags:t,targetType:He.FRAME}))}getManagers(e,t){const n={fileid:rt(this.store.getState()),iscurrent:it(this.store.getState())};return this.managers.forEach(t=>{t.exists(e)||(t.destroy(),this.managers.delete(t))}),0===this.managers.size&&this.addManagers(t,n),this.managers}getReference(){return this.annotatedEl?.querySelector("video")}render(){const e=this.getReference(),t=st(this.store.getState())||0;this.annotatedEl&&e&&(this.getManagers(this.annotatedEl,e).forEach(n=>{n.style({height:`${e.offsetHeight}px`,left:`${e.offsetLeft}px`,top:`${e.offsetTop}px`,transform:`rotate(${t}deg)`,width:`${e.offsetWidth}px`}),n.render({callbacks:{onCopyLink:this.onCopyLink},intl:this.intl,store:this.store})}),this.postRender())}scrollToAnnotation(e,t=-1){if(!e)return;const n=qe(this.store.getState(),e),r=n?.target?.location?.value??t,o=this.getReference();o&&this.annotatedEl&&-1!==r&&(o.pause(),o.currentTime=r/1e3)}},NAME:"Media",TYPES:[cn.region],VIEWERS:["Dash","MP4"]}];globalThis.BoxAnnotations=class{constructor(e,n){t(this,"annotators",void 0),t(this,"annotationsOptions",void 0),t(this,"viewerOptions",void 0),this.annotators=rp,this.annotationsOptions=n,this.viewerOptions=e}canLoad(e){return!(!e||!e[on.CAN_CREATE_ANNOTATIONS]&&!e[on.CAN_VIEW_ANNOTATIONS])}getAnnotators(){return Array.isArray(this.annotators)?this.annotators:[]}getAnnotatorsForViewer(e=""){return this.getAnnotators().find(t=>t.VIEWERS.includes(e))}determineAnnotator(e,t={}){const n=this.getAnnotatorsForViewer(o()(e,"viewer.NAME")),r=this.canLoad(o()(e,"file.permissions"));if(!n||!r||!1===t.enabled)return null;const i=o()(this.viewerOptions,[n.NAME,"enabledTypes"]),a=o()(t,"enabledTypes"),s=(i||a||n.TYPES||[]).filter(e=>n.TYPES.some(t=>t===e));return np(np({},n),{},{TYPES:s})}getOptions(){return this.annotationsOptions}}})()})();
|
|
2
|
+
(()=>{var e={617(e,t,r){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n};Object.defineProperty(t,"__esModule",{value:!0});var o=r(9030);function i(e,t){if(!(e instanceof a))throw new TypeError("Method Intl.PluralRules.prototype."+t+" called on incompatible receiver "+String(e))}var a=function(){function e(t,r){if(!(this&&this instanceof e?this.constructor:void 0))throw new TypeError("Intl.PluralRules must be called with 'new'");var n=o.getCanonicalLocales(t),i=Object.create(null),a=void 0===r?Object.create(null):o.toObject(r);o.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"initializedPluralRules",!0);var s=o.getOption(a,"localeMatcher","string",["best fit","lookup"],"best fit");i.localeMatcher=s,o.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"type",o.getOption(a,"type","string",["cardinal","ordinal"],"cardinal")),o.setNumberFormatDigitOptions(e.__INTERNAL_SLOT_MAP__,this,a,0,3);var c=o.createResolveLocale(e.getDefaultLocale)(e.availableLocales,n,i,e.relevantExtensionKeys,e.localeData);o.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"locale",c.locale)}return e.prototype.resolvedOptions=function(){var t=this;i(this,"resolvedOptions");var r=Object.create(null);return r.locale=o.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"locale"),r.type=o.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"type"),["minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"].forEach(function(n){var i=o.getInternalSlot(e.__INTERNAL_SLOT_MAP__,t,n);void 0!==i&&(r[n]=i)}),r.pluralCategories=n(e.localeData[r.locale].categories[r.type]),r},e.prototype.select=function(t){i(this,"select");var r,n,a,s,c,u=o.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"locale"),l=o.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"type");return e.localeData[u].fn((r=e.__INTERNAL_SLOT_MAP__,n=this,a=Math.abs(Number(t)),s=o.getInternalSlot(r,n,"minimumSignificantDigits"),c=o.getInternalSlot(r,n,"maximumSignificantDigits"),void 0!==s&&void 0!==c?function(e,t,r){var n=e.toPrecision(r);if(~n.indexOf(".")&&r>t){for(var o=r-t;o>0&&"0"===n[n.length-1];)n=n.slice(0,n.length-1),o--;if("."===n[n.length-1])return n.slice(0,n.length-1)}return n}(a,s,c):function(e,t,r,n){for(var o=n-r,i=e.toFixed(n);o>0&&"0"===i[i.length-1];)i=i.slice(0,i.length-1),o--;"."===i[i.length-1]&&(i=i.slice(0,i.length-1));var a=i.split(".")[0].length;if(a<t){for(var s="";s.length<t-a;s+="0");i=s+i}return i}(a,o.getInternalSlot(r,n,"minimumIntegerDigits"),o.getInternalSlot(r,n,"minimumFractionDigits"),o.getInternalSlot(r,n,"maximumFractionDigits"))),"ordinal"==l)},e.prototype.toString=function(){return"[object Intl.PluralRules]"},e.supportedLocalesOf=function(t,r){return o.supportedLocales(e.availableLocales,o.getCanonicalLocales(t),r)},e.__addLocaleData=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var i=function(t){Object.keys(n(t.availableLocales,Object.keys(t.aliases),Object.keys(t.parentLocales)).reduce(function(e,t){return e[t]=!0,e},{})).forEach(function(r){try{e.localeData[r]=o.unpackData(r,t)}catch(e){if(o.isMissingLocaleDataError(e))return;throw e}})},a=0,s=t;a<s.length;a++)i(s[a]);e.availableLocales=Object.keys(e.localeData),e.__defaultLocale||(e.__defaultLocale=e.availableLocales[0])},e.getDefaultLocale=function(){return e.__defaultLocale},e.localeData={},e.availableLocales=[],e.__defaultLocale="en",e.relevantExtensionKeys=[],e.polyfilled=!0,e.__INTERNAL_SLOT_MAP__=new WeakMap,e}();t.PluralRules=a;try{Object.defineProperty(a,"length",{value:0,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype.constructor,"length",{value:0,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(a.supportedLocalesOf,"length",{value:1,writable:!1,enumerable:!1,configurable:!0})}catch(e){}},8139(){Intl.PluralRules&&"function"==typeof Intl.PluralRules.__addLocaleData&&Intl.PluralRules.__addLocaleData({data:{en:{categories:{cardinal:["one","other"],ordinal:["one","two","few","other"]},fn:function(e,t){var r=String(e).split("."),n=!r[1],o=Number(r[0])==e,i=o&&r[0].slice(-1),a=o&&r[0].slice(-2);return t?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==e&&n?"one":"other"}}},aliases:{},parentLocales:{"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CA":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PH":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150"},availableLocales:["en"]})},1761(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(617);(void 0===Intl.PluralRules||!Intl.PluralRules.polyfilled&&"one"===new Intl.PluralRules("en",{minimumFractionDigits:2}).select(1))&&Object.defineProperty(Intl,"PluralRules",{value:n.PluralRules,writable:!0,enumerable:!1,configurable:!0})},1624(e,t,r){r(1761)},6190(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0});var s=r(9030),c=/^[a-z0-9]{3,8}(-[a-z0-9]{3,8})*$/i;function u(e){return e+""}function l(e,t,r,n){if(s.invariant("number"==typeof r,"value must be number, instead got "+typeof r,TypeError),s.invariant("string"==typeof n,"unit must be number, instead got "+typeof r,TypeError),isNaN(r)||r===1/0||r===-1/0)throw new RangeError("Invalid value "+r);var i=function(e){if(s.invariant("string"==typeof e,"unit must be a string, instead got "+typeof e,TypeError),"seconds"===e)return"second";if("minutes"===e)return"minute";if("hours"===e)return"hour";if("days"===e)return"day";if("weeks"===e)return"week";if("months"===e)return"month";if("quarters"===e)return"quarter";if("years"===e)return"year";if("second"!==e&&"minute"!==e&&"hour"!==e&&"day"!==e&&"week"!==e&&"month"!==e&&"quarter"!==e&&"year"!==e)throw new RangeError("Invalid unit "+e);return e}(n),a=s.getInternalSlot(e,t,"fields"),c=s.getInternalSlot(e,t,"style"),l=i;"short"===c?l=n+"-short":"narrow"===c&&(l=n+"-narrow"),l in a||(l=n);var d=a[l];if("auto"===s.getInternalSlot(e,t,"numeric")&&u(r)in d)return[{type:"literal",value:d[u(r)]}];var f,p="future";f=r,((Object.is?Object.is(f,-0):-0===f&&(0!==f||1/f==-1/0))||r<0)&&(p="past");var h=d[p],g=s.getInternalSlot(e,t,"pluralRules"),y=s.getInternalSlot(e,t,"numberFormat"),m="function"==typeof y.formatToParts?y.formatToParts(Math.abs(r)):[{type:"literal",value:y.format(Math.abs(r)),unit:n}];return function(e,t,r){var n,i,a,c,u=s.partitionPattern(e),l=[];try{for(var d=o(u),f=d.next();!f.done;f=d.next()){var p=f.value;if(s.isLiteralPart(p))l.push({type:"literal",value:p.value});else{s.invariant("0"===p.type,"Malformed pattern "+e);try{for(var h=(a=void 0,o(r)),g=h.next();!g.done;g=h.next()){var y=g.value;l.push({type:y.type,value:y.value,unit:t})}}catch(e){a={error:e}}finally{try{g&&!g.done&&(c=h.return)&&c.call(h)}finally{if(a)throw a.error}}}}}catch(e){n={error:e}}finally{try{f&&!f.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}return l}(h[g.select(r)],i,m)}var d=function(){function e(t,r){if(!(this&&this instanceof e?this.constructor:void 0))throw new TypeError("Intl.RelativeTimeFormat must be called with 'new'");s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"initializedRelativeTimeFormat",!0);var n=s.getCanonicalLocales(t),o=Object.create(null),i=void 0===r?Object.create(null):s.toObject(r),a=s.getOption(i,"localeMatcher","string",["best fit","lookup"],"best fit");o.localeMatcher=a;var u=s.getOption(i,"numberingSystem","string",void 0,void 0);if(void 0!==u&&!c.test(u))throw new RangeError("Invalid numbering system "+u);o.nu=u;var l=s.createResolveLocale(e.getDefaultLocale)(e.availableLocales,n,o,e.relevantExtensionKeys,e.localeData),d=l.locale,f=l.nu;s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"locale",d),s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"style",s.getOption(i,"style","string",["long","narrow","short"],"long")),s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numeric",s.getOption(i,"numeric","string",["always","auto"],"always")),s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"fields",e.localeData[d]),s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numberFormat",new Intl.NumberFormat(t)),s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"pluralRules",new Intl.PluralRules(t)),s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numberingSystem",f)}return e.prototype.format=function(t,r){if("object"!=typeof this)throw new TypeError("format was called on a non-object");if(!s.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"initializedRelativeTimeFormat"))throw new TypeError("format was called on a invalid context");return l(e.__INTERNAL_SLOT_MAP__,this,Number(t),u(r)).map(function(e){return e.value}).join("")},e.prototype.formatToParts=function(t,r){if("object"!=typeof this)throw new TypeError("formatToParts was called on a non-object");if(!s.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"initializedRelativeTimeFormat"))throw new TypeError("formatToParts was called on a invalid context");return l(e.__INTERNAL_SLOT_MAP__,this,Number(t),u(r))},e.prototype.resolvedOptions=function(){if("object"!=typeof this)throw new TypeError("resolvedOptions was called on a non-object");if(!s.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"initializedRelativeTimeFormat"))throw new TypeError("resolvedOptions was called on a invalid context");return{locale:s.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"locale"),style:s.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"style"),numeric:s.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numeric"),numberingSystem:s.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numberingSystem")}},e.supportedLocalesOf=function(t,r){return s.supportedLocales(e.availableLocales,s.getCanonicalLocales(t),r)},e.__addLocaleData=function(){for(var t,r,i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];var u=function(t){Object.keys(a(t.availableLocales,Object.keys(t.aliases),Object.keys(t.parentLocales)).reduce(function(e,t){return e[t]=!0,e},{})).forEach(function(r){try{e.localeData[r]=function(e,t){var r=s.getLocaleHierarchy(e,t.aliases,t.parentLocales),o=r.map(function(e){return t.data[e]}).filter(Boolean);if(!o.length)throw new Error('Missing locale data for "'+e+'", lookup hierarchy: '+r.join(", "));return o.reverse(),o.reduce(function(e,t){return n(n({},e),t)},{nu:[]})}(r,t)}catch(e){}})};try{for(var l=o(i),d=l.next();!d.done;d=l.next())u(d.value)}catch(e){t={error:e}}finally{try{d&&!d.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}e.availableLocales=Object.keys(e.localeData),e.__defaultLocale||(e.__defaultLocale=e.availableLocales[0])},e.getDefaultLocale=function(){return e.__defaultLocale},e.localeData={},e.availableLocales=[],e.__defaultLocale="en",e.relevantExtensionKeys=["nu"],e.polyfilled=!0,e.__INTERNAL_SLOT_MAP__=new WeakMap,e}();t.default=d;try{"undefined"!=typeof Symbol&&Object.defineProperty(d.prototype,Symbol.toStringTag,{value:"Intl.RelativeTimeFormat",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype.constructor,"length",{value:0,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(d.supportedLocalesOf,"length",{value:1,writable:!1,enumerable:!1,configurable:!0})}catch(e){}},2844(){Intl.RelativeTimeFormat&&"function"==typeof Intl.RelativeTimeFormat.__addLocaleData&&Intl.RelativeTimeFormat.__addLocaleData({data:{"en-001":{"year-short":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yr"},past:{one:"{0} yr ago",other:"{0} yr ago"},"-1":"last yr"},"year-narrow":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yr"},past:{one:"{0} yr ago",other:"{0} yr ago"},"-1":"last yr"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr."},"month-short":{0:"this mo",1:"next mo",future:{one:"in {0} mo",other:"in {0} mo"},past:{one:"{0} mo ago",other:"{0} mo ago"},"-1":"last mo"},"month-narrow":{0:"this mo",1:"next mo",future:{one:"in {0} mo",other:"in {0} mo"},past:{one:"{0} mo ago",other:"{0} mo ago"},"-1":"last mo"},"week-short":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wk"},past:{one:"{0} wk ago",other:"{0} wk ago"},"-1":"last wk"},"week-narrow":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wk"},past:{one:"{0} wk ago",other:"{0} wk ago"},"-1":"last wk"},"hour-short":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hr"},past:{one:"{0} hr ago",other:"{0} hr ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hr"},past:{one:"{0} hr ago",other:"{0} hr ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min",other:"in {0} min"},past:{one:"{0} min ago",other:"{0} min ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min",other:"in {0} min"},past:{one:"{0} min ago",other:"{0} min ago"}},"second-short":{0:"now",future:{one:"in {0} sec",other:"in {0} sec"},past:{one:"{0} sec ago",other:"{0} sec ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec",other:"in {0} sec"},past:{one:"{0} sec ago",other:"{0} sec ago"}}},"en-150":{"year-short":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yr"},past:{one:"{0} yr ago",other:"{0} yr ago"},"-1":"last yr"},"year-narrow":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yr"},past:{one:"{0} yr ago",other:"{0} yr ago"},"-1":"last yr"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr."},"month-short":{0:"this mo",1:"next mo",future:{one:"in {0} mo",other:"in {0} mo"},past:{one:"{0} mo ago",other:"{0} mo ago"},"-1":"last mo"},"month-narrow":{0:"this mo",1:"next mo",future:{one:"in {0} mo",other:"in {0} mo"},past:{one:"{0} mo ago",other:"{0} mo ago"},"-1":"last mo"},"week-short":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wk"},past:{one:"{0} wk ago",other:"{0} wk ago"},"-1":"last wk"},"week-narrow":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wk"},past:{one:"{0} wk ago",other:"{0} wk ago"},"-1":"last wk"},"hour-short":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hr"},past:{one:"{0} hr ago",other:"{0} hr ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hr"},past:{one:"{0} hr ago",other:"{0} hr ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min",other:"in {0} min"},past:{one:"{0} min ago",other:"{0} min ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min",other:"in {0} min"},past:{one:"{0} min ago",other:"{0} min ago"}},"second-short":{0:"now",future:{one:"in {0} sec",other:"in {0} sec"},past:{one:"{0} sec ago",other:"{0} sec ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec",other:"in {0} sec"},past:{one:"{0} sec ago",other:"{0} sec ago"}}},"en-AU":{"year-short":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yrs"},past:{one:"{0} yr ago",other:"{0} yrs ago"},"-1":"last yr"},"year-narrow":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yrs"},past:{one:"{0} yr ago",other:"{0} yrs ago"},"-1":"last yr"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtrs"},past:{one:"{0} qtr ago",other:"{0} qtrs ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtrs"},past:{one:"in {0} qtr ago",other:"{0} qtrs ago"},"-1":"last qtr."},"month-short":{0:"this mo",1:"next mo",future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"},"-1":"last mo"},"month-narrow":{0:"this mo",1:"next mo",future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"},"-1":"last mo"},"week-short":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wks"},past:{one:"{0} wk ago",other:"{0} wks ago"},"-1":"last wk"},"week-narrow":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wks"},past:{one:"{0} wk ago",other:"{0} wks ago"},"-1":"last wk"},"hour-short":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hrs"},past:{one:"{0} hr ago",other:"{0} hrs ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hrs"},past:{one:"{0} hr ago",other:"{0} hrs ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min.",other:"in {0} mins"},past:{one:"{0} min. ago",other:"{0} mins ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min.",other:"in {0} mins"},past:{one:"{0} min. ago",other:"{0} mins ago"}},"second-short":{0:"now",future:{one:"in {0} sec.",other:"in {0} secs"},past:{one:"{0} sec. ago",other:"{0} secs ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec.",other:"in {0} secs"},past:{one:"{0} sec. ago",other:"{0} secs ago"}}},"en-CA":{"year-short":{0:"this yr",1:"next yr",future:{one:"in {0} yr.",other:"in {0} yrs."},past:{one:"{0} yr. ago",other:"{0} yrs. ago"},"-1":"last yr"},"year-narrow":{0:"this yr",1:"next yr",future:{one:"in {0} yr.",other:"in {0} yrs."},past:{one:"{0} yr. ago",other:"{0} yrs. ago"},"-1":"last yr"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr.",other:"in {0} qtrs."},past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr.",other:"in {0} qtrs."},past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},"-1":"last qtr."},"month-short":{0:"this mo",1:"next mo",future:{one:"in {0} mo.",other:"in {0} mos."},past:{one:"{0} mo. ago",other:"{0} mos. ago"},"-1":"last mo"},"month-narrow":{0:"this mo",1:"next mo",future:{one:"in {0} mo.",other:"in {0} mos."},past:{one:"{0} mo. ago",other:"{0} mos. ago"},"-1":"last mo"},"week-short":{0:"this wk",1:"next wk",future:{one:"in {0} wk.",other:"in {0} wks."},past:{one:"{0} wk. ago",other:"{0} wks. ago"},"-1":"last wk"},"week-narrow":{0:"this wk",1:"next wk",future:{one:"in {0} wk.",other:"in {0} wks."},past:{one:"{0} wk. ago",other:"{0} wks. ago"},"-1":"last wk"},"hour-short":{0:"this hour",future:{one:"in {0} hr.",other:"in {0} hrs."},past:{one:"{0} hr. ago",other:"{0} hrs. ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr.",other:"in {0} hrs."},past:{one:"{0} hr. ago",other:"{0} hrs. ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min.",other:"in {0} mins."},past:{one:"{0} min. ago",other:"{0} mins. ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min.",other:"in {0} mins."},past:{one:"{0} min. ago",other:"{0} mins. ago"}},"second-short":{0:"now",future:{one:"in {0} sec.",other:"in {0} secs."},past:{one:"{0} sec. ago",other:"{0} secs. ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec.",other:"in {0} secs."},past:{one:"{0} sec. ago",other:"{0} secs. ago"}}},"en-SG":{"quarter-short":{0:"this qtr",1:"next qtr",future:{one:"in {0} qtr",other:"in {0} qtrs"},past:{one:"{0} qtr ago",other:"{0} qtrs ago"},"-1":"last qtr"},"quarter-narrow":{0:"this qtr",1:"next qtr",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr"},"month-short":{0:"this mth",1:"next mth",future:{one:"in {0} mth",other:"in {0} mth"},past:{one:"{0} mth ago",other:"{0} mth ago"},"-1":"last mth"}},en:{nu:["latn"],year:{0:"this year",1:"next year",future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"},"-1":"last year"},"year-short":{0:"this yr.",1:"next yr.",future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"},"-1":"last yr."},"year-narrow":{0:"this yr.",1:"next yr.",future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"},"-1":"last yr."},quarter:{0:"this quarter",1:"next quarter",future:{one:"in {0} quarter",other:"in {0} quarters"},past:{one:"{0} quarter ago",other:"{0} quarters ago"},"-1":"last quarter"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr.",other:"in {0} qtrs."},past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr.",other:"in {0} qtrs."},past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},"-1":"last qtr."},month:{0:"this month",1:"next month",future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"},"-1":"last month"},"month-short":{0:"this mo.",1:"next mo.",future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"},"-1":"last mo."},"month-narrow":{0:"this mo.",1:"next mo.",future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"},"-1":"last mo."},week:{0:"this week",1:"next week",future:{one:"in {0} week",other:"in {0} weeks"},past:{one:"{0} week ago",other:"{0} weeks ago"},"-1":"last week"},"week-short":{0:"this wk.",1:"next wk.",future:{one:"in {0} wk.",other:"in {0} wk."},past:{one:"{0} wk. ago",other:"{0} wk. ago"},"-1":"last wk."},"week-narrow":{0:"this wk.",1:"next wk.",future:{one:"in {0} wk.",other:"in {0} wk."},past:{one:"{0} wk. ago",other:"{0} wk. ago"},"-1":"last wk."},day:{0:"today",1:"tomorrow",future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"},"-1":"yesterday"},"day-short":{0:"today",1:"tomorrow",future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"},"-1":"yesterday"},"day-narrow":{0:"today",1:"tomorrow",future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"},"-1":"yesterday"},hour:{0:"this hour",future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}},"hour-short":{0:"this hour",future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}},minute:{0:"this minute",future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}},second:{0:"now",future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}},"second-short":{0:"now",future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}}}},availableLocales:["en-001","en-150","en-AE","en-AG","en-AI","en-AS","en-AT","en-AU","en-BB","en-BE","en-BI","en-BM","en-BS","en-BW","en-BZ","en-CA","en-CC","en-CH","en-CK","en-CM","en-CX","en-CY","en-DE","en-DG","en-DK","en-DM","en-ER","en-FI","en-FJ","en-FK","en-FM","en-GB","en-GD","en-GG","en-GH","en-GI","en-GM","en-GU","en-GY","en-HK","en-IE","en-IL","en-IM","en-IN","en-IO","en-JE","en-JM","en-KE","en-KI","en-KN","en-KY","en-LC","en-LR","en-LS","en-MG","en-MH","en-MO","en-MP","en-MS","en-MT","en-MU","en-MW","en-MY","en-NA","en-NF","en-NG","en-NL","en-NR","en-NU","en-NZ","en-PG","en-PH","en-PK","en-PN","en-PR","en-PW","en-RW","en-SB","en-SC","en-SD","en-SE","en-SG","en-SH","en-SI","en-SL","en-SS","en-SX","en-SZ","en-TC","en-TK","en-TO","en-TT","en-TV","en-TZ","en-UG","en-UM","en-US-POSIX","en-US","en-VC","en-VG","en-VI","en-VU","en-WS","en-ZA","en-ZM","en-ZW","en"],aliases:{},parentLocales:{"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CA":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PH":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150"}})},1534(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6190);"RelativeTimeFormat"in Intl||Object.defineProperty(Intl,"RelativeTimeFormat",{value:n.default,writable:!0,enumerable:!1,configurable:!0})},1113(e,t,r){r(1534)},9030(e,t,r){"use strict";r.r(t),r.d(t,{InternalSlotToken:()=>B,SANCTIONED_UNITS:()=>U,createResolveLocale:()=>I,defaultNumberOption:()=>f,getAliasesByLang:()=>h,getCanonicalLocales:()=>C,getInternalSlot:()=>b,getLocaleHierarchy:()=>M,getMultiInternalSlots:()=>v,getNumberOption:()=>p,getOption:()=>d,getParentLocalesByLang:()=>g,invariant:()=>c,isLiteralPart:()=>w,isMissingLocaleDataError:()=>N,isWellFormedCurrencyCode:()=>O,objectIs:()=>E,partitionPattern:()=>S,removeUnitNamespace:()=>K,selectUnit:()=>o,setInternalSlot:()=>y,setMultiInternalSlots:()=>m,setNumberFormatDigitOptions:()=>x,supportedLocales:()=>R,toObject:()=>u,toString:()=>l,unpackData:()=>F});var n=function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};function o(e,t,r){void 0===t&&(t=Date.now()),void 0===r&&(r={});var o=n(n({},i),r||{}),a=(+e-+t)/1e3;if(Math.abs(a)<o.second)return{value:Math.round(a),unit:"second"};var s=a/60;if(Math.abs(s)<o.minute)return{value:Math.round(s),unit:"minute"};var c=a/3600;if(Math.abs(c)<o.hour)return{value:Math.round(c),unit:"hour"};var u=a/86400;if(Math.abs(u)<o.day)return{value:Math.round(u),unit:"day"};var l=new Date(e),d=new Date(t),f=l.getFullYear()-d.getFullYear();if(Math.round(Math.abs(f))>0)return{value:Math.round(f),unit:"year"};var p=12*f+l.getMonth()-d.getMonth();if(Math.round(Math.abs(p))>0)return{value:Math.round(p),unit:"month"};var h=a/604800;return{value:Math.round(h),unit:"week"}}var i={second:45,minute:45,hour:22,day:5};const a={"aa-SAAHO":"ssy",aam:"aas",aar:"aa",abk:"ab",adp:"dz",afr:"af",aju:"jrb",aka:"ak",alb:"sq",als:"sq",amh:"am",ara:"ar",arb:"ar",arg:"an",arm:"hy","art-lojban":"jbo",asd:"snz",asm:"as",aue:"ktz",ava:"av",ave:"ae",aym:"ay",ayr:"ay",ayx:"nun","az-AZ":"az-Latn-AZ",aze:"az",azj:"az",bak:"ba",bam:"bm",baq:"eu",bcc:"bal",bcl:"bik",bel:"be",ben:"bn",bgm:"bcg",bh:"bho",bih:"bho",bis:"bi",bjd:"drl",bod:"bo",bos:"bs",bre:"br","bs-BA":"bs-Latn-BA",bul:"bg",bur:"my",bxk:"luy",bxr:"bua",cat:"ca",ccq:"rki","cel-gaulish":"xtg-x-cel-gaulish",ces:"cs",cha:"ch",che:"ce",chi:"zh",chu:"cu",chv:"cv",cjr:"mom",cka:"cmr",cld:"syr",cmk:"xch",cmn:"zh",cnr:"sr-ME",cor:"kw",cos:"co",coy:"pij",cqu:"quh",cre:"cr",cwd:"cr",cym:"cy",cze:"cs",dan:"da",deu:"de",dgo:"doi",dhd:"mwr",dik:"din",diq:"zza",dit:"dif",div:"dv",drh:"mn",drw:"fa-af",dut:"nl",dzo:"dz",ekk:"et",ell:"el",emk:"man",eng:"en",epo:"eo",esk:"ik",est:"et",eus:"eu",ewe:"ee",fao:"fo",fas:"fa",fat:"ak",fij:"fj",fin:"fi",fra:"fr",fre:"fr",fry:"fy",fuc:"ff",ful:"ff",gav:"dev",gaz:"om",gbo:"grb",geo:"ka",ger:"de",gfx:"vaj",ggn:"gvr",gla:"gd",gle:"ga",glg:"gl",glv:"gv",gno:"gon",gre:"el",grn:"gn",gti:"nyc",gug:"gn",guj:"gu",guv:"duz",gya:"gba","ha-Latn-GH":"ha-GH","ha-Latn-NE":"ha-NE","ha-Latn-NG":"ha-NG",hat:"ht",hau:"ha",hbs:"sr-Latn",hdn:"hai",hea:"hmn",heb:"he",her:"hz",him:"srx",hin:"hi",hmo:"ho",hrr:"jal",hrv:"hr",hun:"hu",hye:"hy","i-ami":"ami","i-bnn":"bnn","i-hak":"hak","i-klingon":"tlh","i-lux":"lb","i-navajo":"nv","i-pwn":"pwn","i-tao":"tao","i-tay":"tay","i-tsu":"tsu","i-default":"en-x-i-default","i-enochian":"und-x-i-enochian","i-mingo":"see-x-i-mingo",ibi:"opa",ibo:"ig",ice:"is",ido:"io",iii:"ii",ike:"iu",iku:"iu",ile:"ie",ilw:"gal",in:"id",ina:"ia",ind:"id",ipk:"ik",isl:"is",ita:"it",iw:"he",jav:"jv",jeg:"oyb",ji:"yi",jpn:"ja",jw:"jv",kal:"kl",kan:"kn",kas:"ks",kat:"ka",kau:"kr",kaz:"kk",kgc:"tdf",kgh:"kml",khk:"mn",khm:"km",kik:"ki",kin:"rw",kir:"ky","kk-Cyrl-KZ":"kk-KZ",kmr:"ku",knc:"kr",kng:"kg",knn:"kok",koj:"kwv",kom:"kv",kon:"kg",kor:"ko",kpv:"kv",krm:"bmf","ks-Arab-IN":"ks-IN",ktr:"dtp",kua:"kj",kur:"ku",kvs:"gdj",kwq:"yam",kxe:"tvd","ky-Cyrl-KG":"ky-KG",kzj:"dtp",kzt:"dtp",lao:"lo",lat:"la",lav:"lv",lbk:"bnc",lii:"raq",lim:"li",lin:"ln",lit:"lt",llo:"ngt",lmm:"rmx",ltz:"lb",lub:"lu",lug:"lg",lvs:"lv",mac:"mk",mah:"mh",mal:"ml",mao:"mi",mar:"mr",may:"ms",meg:"cir",mhr:"chm",mkd:"mk",mlg:"mg",mlt:"mt","mn-Cyrl-MN":"mn-MN",mnk:"man",mo:"ro",mol:"ro",mon:"mn",mri:"mi","ms-Latn-BN":"ms-BN","ms-Latn-MY":"ms-MY","ms-Latn-SG":"ms-SG",msa:"ms",mst:"mry",mup:"raj",mwj:"vaj",mya:"my",myd:"aog",myt:"mry",nad:"xny",nau:"na",nav:"nv",nbl:"nr",ncp:"kdz",nde:"nd",ndo:"ng",nep:"ne",nld:"nl",nno:"nn",nns:"nbr",nnx:"ngv",no:"nb","no-bok":"nb","no-BOKMAL":"nb","no-nyn":"nn","no-NYNORSK":"nn",nob:"nb",nor:"nb",npi:"ne",nts:"pij",nya:"ny",oci:"oc",ojg:"oj",oji:"oj",ori:"or",orm:"om",ory:"or",oss:"os",oun:"vaj","pa-IN":"pa-Guru-IN","pa-PK":"pa-Arab-PK",pan:"pa",pbu:"ps",pcr:"adx",per:"fa",pes:"fa",pli:"pi",plt:"mg",pmc:"huw",pmu:"phr",pnb:"lah",pol:"pl",por:"pt",ppa:"bfy",ppr:"lcq",prs:"fa-AF",pry:"prt",pus:"ps",puz:"pub",que:"qu",quz:"qu",rmy:"rom",roh:"rm",ron:"ro",rum:"ro",run:"rn",rus:"ru",sag:"sg",san:"sa",sca:"hle",scc:"sr",scr:"hr","sgn-BE-FR":"sfb","sgn-BE-NL":"vgt","sgn-CH-DE":"sgg",sh:"sr-Latn","shi-MA":"shi-Tfng-MA",sin:"si",skk:"oyb",slk:"sk",slo:"sk",slv:"sl",sme:"se",smo:"sm",sna:"sn",snd:"sd",som:"so",sot:"st",spa:"es",spy:"kln",sqi:"sq","sr-BA":"sr-Cyrl-BA","sr-ME":"sr-Latn-ME","sr-RS":"sr-Cyrl-RS","sr-XK":"sr-Cyrl-XK",src:"sc",srd:"sc",srp:"sr",ssw:"ss",sun:"su",swa:"sw",swc:"sw-CD",swe:"sv",swh:"sw",tah:"ty",tam:"ta",tat:"tt",tdu:"dtp",tel:"te",tgk:"tg",tgl:"fil",tha:"th",thc:"tpo",thx:"oyb",tib:"bo",tie:"ras",tir:"ti",tkk:"twm",tl:"fil",tlw:"weo",tmp:"tyj",tne:"kak",tnf:"fa-af",ton:"to",tsf:"taj",tsn:"tn",tso:"ts",ttq:"tmh",tuk:"tk",tur:"tr",tw:"ak",twi:"ak","tzm-Latn-MA":"tzm-MA","ug-Arab-CN":"ug-CN",uig:"ug",ukr:"uk",umu:"del",uok:"ema",urd:"ur","uz-AF":"uz-Arab-AF","uz-UZ":"uz-Latn-UZ",uzb:"uz",uzn:"uz","vai-LR":"vai-Vaii-LR",ven:"ve",vie:"vi",vol:"vo",wel:"cy",wln:"wa",wol:"wo",xba:"cax",xho:"xh",xia:"acn",xkh:"waw",xpe:"kpe",xsj:"suj",xsl:"den",ybd:"rki",ydd:"yi",yid:"yi",yma:"lrr",ymt:"mtm",yor:"yo",yos:"zom","yue-CN":"yue-Hans-CN","yue-HK":"yue-Hant-HK",yuu:"yug",zai:"zap","zh-CN":"zh-Hans-CN","zh-guoyu":"zh","zh-hakka":"hak","zh-HK":"zh-Hant-HK","zh-min-nan":"nan","zh-MO":"zh-Hant-MO","zh-SG":"zh-Hans-SG","zh-TW":"zh-Hant-TW","zh-xiang":"hsn","zh-min":"nan-x-zh-min",zha:"za",zho:"zh",zsm:"ms",zul:"zu",zyb:"za"},s={"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CA":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PH":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150","es-AR":"es-419","es-BO":"es-419","es-BR":"es-419","es-BZ":"es-419","es-CL":"es-419","es-CO":"es-419","es-CR":"es-419","es-CU":"es-419","es-DO":"es-419","es-EC":"es-419","es-GT":"es-419","es-HN":"es-419","es-MX":"es-419","es-NI":"es-419","es-PA":"es-419","es-PE":"es-419","es-PR":"es-419","es-PY":"es-419","es-SV":"es-419","es-US":"es-419","es-UY":"es-419","es-VE":"es-419","pt-AO":"pt-PT","pt-CH":"pt-PT","pt-CV":"pt-PT","pt-FR":"pt-PT","pt-GQ":"pt-PT","pt-GW":"pt-PT","pt-LU":"pt-PT","pt-MO":"pt-PT","pt-MZ":"pt-PT","pt-ST":"pt-PT","pt-TL":"pt-PT","zh-Hant-MO":"zh-Hant-HK"};function c(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}function u(e){if(null==e)throw new TypeError("undefined/null cannot be converted to object");return Object(e)}function l(e){if("symbol"==typeof e)throw TypeError("Cannot convert a Symbol value to a string");return String(e)}function d(e,t,r,n,o){var i=e[t];if(void 0!==i){if("boolean"!==r&&"string"!==r)throw new TypeError("invalid type");if("boolean"===r&&(i=Boolean(i)),"string"===r&&(i=l(i)),void 0!==n&&!n.filter(function(e){return e==i}).length)throw new RangeError(i+" is not within "+n.join(", "));return i}return o}function f(e,t,r,n){if(void 0!==e){if(e=Number(e),isNaN(e)||e<t||e>r)throw new RangeError(e+" is outside of range ["+t+", "+r+"]");return Math.floor(e)}return n}function p(e,t,r,n,o){return f(e[t],r,n,o)}function h(e){return Object.keys(a).reduce(function(t,r){return r.split("-")[0]===e&&(t[r]=a[r]),t},{})}function g(e){return Object.keys(s).reduce(function(t,r){return r.split("-")[0]===e&&(t[r]=s[r]),t},{})}function y(e,t,r,n){e.get(t)||e.set(t,Object.create(null)),e.get(t)[r]=n}function m(e,t,r){for(var n=0,o=Object.keys(r);n<o.length;n++){var i=o[n];y(e,t,i,r[i])}}function b(e,t,r){return v(e,t,r)[r]}function v(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=e.get(t);if(!o)throw new TypeError(t+" InternalSlot has not been initialized");return r.reduce(function(e,t){return e[t]=o[t],e},Object.create(null))}function w(e){return"literal"===e.type}function S(e){for(var t=[],r=e.indexOf("{"),n=0,o=0,i=e.length;r<e.length&&r>-1;)c((n=e.indexOf("}",r))>r,"Invalid pattern "+e),r>o&&t.push({type:"literal",value:e.substring(o,r)}),t.push({type:e.substring(r+1,n),value:void 0}),o=n+1,r=e.indexOf("{",o);return o<i&&t.push({type:"literal",value:e.substring(o,i)}),t}function x(e,t,r,n,o){var i=p(r,"minimumIntegerDigits",1,21,1),a=r.minimumFractionDigits,s=r.maximumFractionDigits,c=r.minimumSignificantDigits,u=r.maximumSignificantDigits;y(e,t,"minimumIntegerDigits",i),void 0!==c||void 0!==u?(y(e,t,"roundingType","significantDigits"),c=f(c,1,21,1),u=f(u,c,21,21),y(e,t,"minimumSignificantDigits",c),y(e,t,"maximumSignificantDigits",u)):void 0!==a||void 0!==s?(y(e,t,"roundingType","fractionDigits"),a=f(a,0,20,n),s=f(s,a,20,Math.max(a,o)),y(e,t,"minimumFractionDigits",a),y(e,t,"maximumFractionDigits",s)):"compact"===b(e,t,"notation")?y(e,t,"roundingType","compactRounding"):(y(e,t,"roundingType","fractionDigits"),y(e,t,"minimumFractionDigits",n),y(e,t,"maximumFractionDigits",o))}function E(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t}var _=/[^A-Z]/;function O(e){return 3===(e=e.replace(/([a-z])/g,function(e,t){return t.toUpperCase()})).length&&!_.test(e)}function C(e){var t=Intl.getCanonicalLocales;return"function"==typeof t?t(e):Intl.DateTimeFormat.supportedLocalesOf(e||"")}var k,A=(k=function(e,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},k(e,t)},function(e,t){function r(){this.constructor=e}k(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),T=function(){return T=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},T.apply(this,arguments)};function I(e){var t=function(e){return function(t,r){for(var n={locale:""},o=0,i=r;o<i.length;o++){var a=i[o],s=a.replace(D,""),c=L(t,s);if(c)return n.locale=c,a!==s&&(n.extension=a.slice(s.length+1,a.length)),n}return n.locale=e(),n}}(e),r=function(e){return function(t,r){for(var n={locale:""},o=0,i=r;o<i.length;o++){var a=i[o],s=a.replace(D,""),c=L(t,s);if(c)return n.locale=c,a!==s&&(n.extension=a.slice(s.length+1,a.length)),n}return n.locale=e(),n}}(e);return function(e,n,o,i,a){for(var s,u=(s="lookup"===o.localeMatcher?t(e,n):r(e,n)).locale,l={locale:"",dataLocale:u},d="-u",f=0,p=i;f<p.length;f++){var h=p[f],g=a[u];c("object"==typeof g&&null!==g,"locale data "+h+" must be an object");var y=g[h];c(Array.isArray(y),"keyLocaleData for "+h+" must be an array");var m=y[0];c("string"==typeof m||null===m,"value must be string or null");var b="";if(s.extension){var v=P(s.extension,h);void 0!==v&&(""!==v?~y.indexOf(v)&&(b="-"+h+"-"+(m=v)):~v.indexOf("true")&&(m="true",b="-"+h))}if(h in o){var w=o[h];c("string"==typeof w||null==w,"optionsValue must be String, Undefined or Null"),~y.indexOf(w)&&w!==m&&(m=w,b="")}l[h]=m,d+=b}if(d.length>2){var S=u.indexOf("-x-");if(-1===S)u+=d;else{var x=u.slice(0,S),E=u.slice(S,u.length);u=x+d+E}u=C(u)[0]}return l.locale=u,l}}function P(e,t){c(2===t.length,"key must have 2 elements");var r=e.length,n="-"+t+"-",o=e.indexOf(n);if(-1!==o){for(var i=o+4,a=i,s=i,u=!1;!u;){var l=e.indexOf("-",s);2===(-1===l?r-s:l-s)?u=!0:-1===l?(a=r,u=!0):(a=l,s=l+1)}return e.slice(i,a)}if(n="-"+t,-1!==(o=e.indexOf(n))&&o+3===r)return""}var D=/-u(?:-[0-9a-z]{2,8})+/gi;function L(e,t){for(var r=t;;){if(~e.indexOf(r))return r;var n=r.lastIndexOf("-");if(!~n)return;n>=2&&"-"===r[n-2]&&(n-=2),r=r.slice(0,n)}}function M(e,t,r){var n=[e];t[e]&&(e=t[e],n.push(e));var o=r[e];o&&n.push(o);for(var i=e.split("-"),a=i.length;a>1;a--)n.push(i.slice(0,a-1).join("-"));return n}function R(e,t,r){return void 0!==r&&d(r=u(r),"localeMatcher","string",["lookup","best fit"],"best fit"),function(e,t){for(var r=[],n=0,o=t;n<o.length;n++){var i=L(e,o[n].replace(D,""));i&&r.push(i)}return r}(e,t)}var j=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="MISSING_LOCALE_DATA",t}return A(t,e),t}(Error);function N(e){return"MISSING_LOCALE_DATA"===e.type}function F(e,t,r){void 0===r&&(r=function(e,t){return T(T({},e),t)});var n=M(e,t.aliases,t.parentLocales),o=n.map(function(e){return t.data[e]}).filter(Boolean);if(!o.length)throw new j('Missing locale data for "'+e+'", lookup hierarchy: '+n.join(", "));return o.reverse(),o.reduce(r,{})}var B,U=["angle-degree","area-acre","area-hectare","concentr-percent","digital-bit","digital-byte","digital-gigabit","digital-gigabyte","digital-kilobit","digital-kilobyte","digital-megabit","digital-megabyte","digital-petabyte","digital-terabit","digital-terabyte","duration-day","duration-hour","duration-millisecond","duration-minute","duration-month","duration-second","duration-week","duration-year","length-centimeter","length-foot","length-inch","length-kilometer","length-meter","length-mile-scandinavian","length-mile","length-millimeter","length-yard","mass-gram","mass-kilogram","mass-ounce","mass-pound","mass-stone","temperature-celsius","temperature-fahrenheit","volume-fluid-ounce","volume-gallon","volume-liter","volume-milliliter"];function K(e){return e.replace(/^(.*?)-/,"")}!function(e){e.compactName="compactName",e.compactSymbol="compactSymbol",e.currencyCode="currencyCode",e.currencyName="currencyName",e.currencyNarrowSymbol="currencyNarrowSymbol",e.currencySymbol="currencySymbol",e.minusSign="minusSign",e.number="number",e.percentSign="percentSign",e.plusSign="plusSign",e.scientificExponent="scientificExponent",e.scientificSeparator="scientificSeparator",e.unitName="unitName",e.unitNarrowSymbol="unitNarrowSymbol",e.unitSymbol="unitSymbol"}(B||(B={}))},2505(e,t,r){e.exports=r(8015)},5592(e,t,r){"use strict";var n=r(9516),o=r(7522),i=r(3948),a=r(9106),s=r(9615),c=r(2012),u=r(4202),l=r(7763),d=r(6987),f=r(1928);e.exports=function(e){return new Promise(function(t,r){var p,h=e.data,g=e.headers,y=e.responseType;function m(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}n.isFormData(h)&&delete g["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var v=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(v+":"+w)}var S=s(e.baseURL,e.url);function x(){if(b){var n="getAllResponseHeaders"in b?c(b.getAllResponseHeaders()):null,i={data:y&&"text"!==y&&"json"!==y?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:n,config:e,request:b};o(function(e){t(e),m()},function(e){r(e),m()},i),b=null}}if(b.open(e.method.toUpperCase(),a(S,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=x:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(x)},b.onabort=function(){b&&(r(l("Request aborted",e,"ECONNABORTED",b)),b=null)},b.onerror=function(){r(l("Network Error",e,null,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||d.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(l(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",b)),b=null},n.isStandardBrowserEnv()){var E=(e.withCredentials||u(S))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;E&&(g[e.xsrfHeaderName]=E)}"setRequestHeader"in b&&n.forEach(g,function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete g[t]:b.setRequestHeader(t,e)}),n.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),y&&"json"!==y&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){b&&(r(!e||e&&e.type?new f("canceled"):e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),h||(h=null),b.send(h)})}},8015(e,t,r){"use strict";var n=r(9516),o=r(9012),i=r(5155),a=r(5343),s=function e(t){var r=new i(t),s=o(i.prototype.request,r);return n.extend(s,i.prototype,r),n.extend(s,r),s.create=function(r){return e(a(t,r))},s}(r(6987));s.Axios=i,s.Cancel=r(1928),s.CancelToken=r(3191),s.isCancel=r(3864),s.VERSION=r(9641).version,s.all=function(e){return Promise.all(e)},s.spread=r(7980),s.isAxiosError=r(5019),e.exports=s,e.exports.default=s},1928(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},3191(e,t,r){"use strict";var n=r(1928);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var r=this;this.promise.then(function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}}),this.promise.then=function(e){var t,n=new Promise(function(e){r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e){r.reason||(r.reason=new n(e),t(r.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o(function(t){e=t}),cancel:e}},e.exports=o},3864(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},5155(e,t,r){"use strict";var n=r(9516),o=r(9106),i=r(3471),a=r(4490),s=r(5343),c=r(4841),u=c.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var r=[],n=!0;this.interceptors.request.forEach(function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(n=n&&t.synchronous,r.unshift(t.fulfilled,t.rejected))});var o,i=[];if(this.interceptors.response.forEach(function(e){i.push(e.fulfilled,e.rejected)}),!n){var l=[a,void 0];for(Array.prototype.unshift.apply(l,r),l=l.concat(i),o=Promise.resolve(e);l.length;)o=o.then(l.shift(),l.shift());return o}for(var d=e;r.length;){var f=r.shift(),p=r.shift();try{d=f(d)}catch(e){p(e);break}}try{o=a(d)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],function(e){l.prototype[e]=function(t,r){return this.request(s(r||{},{method:e,url:t,data:(r||{}).data}))}}),n.forEach(["post","put","patch"],function(e){l.prototype[e]=function(t,r,n){return this.request(s(n||{},{method:e,url:t,data:r}))}}),e.exports=l},3471(e,t,r){"use strict";var n=r(9516);function o(){this.handlers=[]}o.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=o},9615(e,t,r){"use strict";var n=r(9137),o=r(4680);e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},7763(e,t,r){"use strict";var n=r(5449);e.exports=function(e,t,r,o,i){var a=new Error(e);return n(a,t,r,o,i)}},4490(e,t,r){"use strict";var n=r(9516),o=r(2881),i=r(3864),a=r(6987),s=r(1928);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return c(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},5449(e){"use strict";e.exports=function(e,t,r,n,o){return e.config=t,r&&(e.code=r),e.request=n,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},5343(e,t,r){"use strict";var n=r(9516);e.exports=function(e,t){t=t||{};var r={};function o(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function i(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:o(void 0,e[r]):o(e[r],t[r])}function a(e){if(!n.isUndefined(t[e]))return o(void 0,t[e])}function s(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:o(void 0,e[r]):o(void 0,t[r])}function c(r){return r in t?o(e[r],t[r]):r in e?o(void 0,e[r]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return n.forEach(Object.keys(e).concat(Object.keys(t)),function(e){var t=u[e]||i,o=t(e);n.isUndefined(o)&&t!==c||(r[e]=o)}),r}},7522(e,t,r){"use strict";var n=r(7763);e.exports=function(e,t,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},2881(e,t,r){"use strict";var n=r(9516),o=r(6987);e.exports=function(e,t,r){var i=this||o;return n.forEach(r,function(r){e=r.call(i,e,t)}),e}},6987(e,t,r){"use strict";var n=r(9516),o=r(7018),i=r(5449),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=r(5592)),c),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e){if(n.isString(e))try{return(0,JSON.parse)(e),n.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||u.transitional,r=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!r&&"json"===this.responseType;if(a||o&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],function(e){u.headers[e]={}}),n.forEach(["post","put","patch"],function(e){u.headers[e]=n.merge(a)}),e.exports=u},9641(e){e.exports={version:"0.24.0"}},9012(e){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},9106(e,t,r){"use strict";var n=r(9516);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var a=[];n.forEach(t,function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))}))}),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},4680(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},3948(e,t,r){"use strict";var n=r(9516);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},9137(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},5019(e){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},4202(e,t,r){"use strict";var n=r(9516);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},7018(e,t,r){"use strict";var n=r(9516);e.exports=function(e,t){n.forEach(e,function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])})}},2012(e,t,r){"use strict";var n=r(9516),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,a={};return e?(n.forEach(e.split("\n"),function(e){if(i=e.indexOf(":"),t=n.trim(e.substr(0,i)).toLowerCase(),r=n.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}}),a):a}},7980(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4841(e,t,r){"use strict";var n=r(9641).version,o={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){o[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var i={};o.transitional=function(e,t,r){function o(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,a){if(!1===e)throw new Error(o(n," has been removed"+(t?" in "+t:"")));return t&&!i[n]&&(i[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,a)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),o=n.length;o-- >0;){var i=n[o],a=t[i];if(a){var s=e[i],c=void 0===s||a(s,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:o}},9516(e,t,r){"use strict";var n=r(9012),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:c,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return s(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function e(){var t={};function r(r,n){c(t[n])&&c(r)?t[n]=e(t[n],r):c(r)?t[n]=e({},r):i(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)l(arguments[n],r);return t},extend:function(e,t,r){return l(t,function(t,o){e[o]=r&&"function"==typeof t?n(t,r):t}),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},2521(){},9288(){SVGElement.prototype.contains||Object.defineProperty(SVGElement.prototype,"contains",{configurable:!0,enumerable:!1,writable:!0,value:function(e){let t=e;do{if(this===t)return!0;t=t&&t.parentNode}while(t);return!1}})},7723(){},2485(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},5889(e,t,r){"use strict";var n=r(5228)||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=r(5748),i=r(3018),a=r(6840),s=r(5224),c=r(2938),u=r(9938),l=r(2242),d=r(9404),f=(r(1381),r(6991)),p=r(6059),h=c.draft_tree_data_support,g=h?s:a,y=d.List,m=d.Repeat,b={insertAtomicBlock:function(e,t,r){var a=e.getCurrentContent(),s=e.getSelection(),c=u.removeRange(a,s,"backward"),d=c.getSelectionAfter(),p=u.splitBlock(c,d),b=p.getSelectionAfter(),v=u.setBlockType(p,b,"atomic"),w=i.create({entity:t}),S={key:f(),type:"atomic",text:r,characterList:y(m(w,r.length))},x={key:f(),type:"unstyled"};h&&(S=n({},S,{nextSibling:x.key}),x=n({},x,{prevSibling:S.key}));var E=[new g(S),new g(x)],_=o.createFromArray(E),O=u.replaceWithFragment(v,b,_),C=O.merge({selectionBefore:s,selectionAfter:O.getSelectionAfter().set("hasFocus",!0)});return l.push(e,C,"insert-fragment")},moveAtomicBlock:function(e,t,r,n){var o=e.getCurrentContent(),i=e.getSelection(),a=void 0;if("before"===n||"after"===n){var s=o.getBlockForKey("before"===n?r.getStartKey():r.getEndKey());a=p(o,t,s,n)}else{var c=u.removeRange(o,r,"backward"),d=c.getSelectionAfter(),f=c.getBlockForKey(d.getFocusKey());if(0===d.getStartOffset())a=p(c,t,f,"before");else if(d.getEndOffset()===f.getLength())a=p(c,t,f,"after");else{var h=u.splitBlock(c,d),g=h.getSelectionAfter(),y=h.getBlockForKey(g.getFocusKey());a=p(h,t,y,"before")}}var m=a.merge({selectionBefore:i,selectionAfter:a.getSelectionAfter().set("hasFocus",!0)});return l.push(e,m,"move-block")}};e.exports=b},5748(e,t,r){"use strict";var n=r(9404).OrderedMap,o={createFromArray:function(e){return n(e.map(function(e){return[e.getKey(),e]}))}};e.exports=o},9981(e,t,r){"use strict";var n=r(9404),o=r(9395),i=r(8227),a=n.List,s=n.Repeat,c=n.Record,u=o.thatReturnsTrue,l=c({start:null,end:null}),d=c({start:null,end:null,decoratorKey:null,leaves:null}),f={generate:function(e,t,r){var n=t.getLength();if(!n)return a.of(new d({start:0,end:0,decoratorKey:null,leaves:a.of(new l({start:0,end:0}))}));var o=[],c=r?r.getDecorations(t,e):a(s(null,n)),f=t.getCharacterList();return i(c,p,u,function(e,t){var r,n,s,h;o.push(new d({start:e,end:t,decoratorKey:c.get(e),leaves:(r=f.slice(e,t).toList(),n=e,s=[],h=r.map(function(e){return e.getStyle()}).toList(),i(h,p,u,function(e,t){s.push(new l({start:e+n,end:t+n}))}),a(s))}))}),a(o)},getFingerprint:function(e){return e.map(function(e){var t=e.get("decoratorKey");return(null!==t?t+"."+(e.get("end")-e.get("start")):"")+"."+e.get("leaves").size}).join("-")}};function p(e,t){return e===t}e.exports=f},3018(e,t,r){"use strict";var n=r(9404),o=n.Map,i=n.OrderedSet,a=n.Record,s=i(),c={style:s,entity:null},u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getStyle=function(){return this.get("style")},t.prototype.getEntity=function(){return this.get("entity")},t.prototype.hasStyle=function(e){return this.getStyle().includes(e)},t.applyStyle=function(e,r){var n=e.set("style",e.getStyle().add(r));return t.create(n)},t.removeStyle=function(e,r){var n=e.set("style",e.getStyle().remove(r));return t.create(n)},t.applyEntity=function(e,r){var n=e.getEntity()===r?e:e.set("entity",r);return t.create(n)},t.create=function(e){if(!e)return l;var r=o({style:s,entity:null}).merge(e),n=d.get(r);if(n)return n;var i=new t(r);return d=d.set(r,i),i},t}(a(c)),l=new u,d=o([[o(c),l]]);u.EMPTY=l,e.exports=u},9083(e,t,r){"use strict";var n=r(9404).List,o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._decorators=t.slice()}return e.prototype.getDecorations=function(e,t){var r=Array(e.getText().length).fill(null);return this._decorators.forEach(function(n,o){var i=0;(0,n.strategy)(e,function(e,t){(function(e,t,r){for(var n=t;n<r;n++)if(null!=e[n])return!1;return!0})(r,e,t)&&(function(e,t,r,n){for(var o=t;o<r;o++)e[o]=n}(r,e,t,o+"."+i),i++)},t)}),n(r)},e.prototype.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},e.prototype.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();e.exports=o},6840(e,t,r){"use strict";var n=r(3018),o=r(9404),i=r(8227),a=o.List,s=o.Map,c=o.OrderedSet,u=o.Record,l=o.Repeat,d=c(),f=function(e){function t(r){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,function(e){if(!e)return e;var t=e.characterList,r=e.text;return r&&!t&&(e.characterList=a(l(n.EMPTY,r.length))),e}(r)))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getKey=function(){return this.get("key")},t.prototype.getType=function(){return this.get("type")},t.prototype.getText=function(){return this.get("text")},t.prototype.getCharacterList=function(){return this.get("characterList")},t.prototype.getLength=function(){return this.getText().length},t.prototype.getDepth=function(){return this.get("depth")},t.prototype.getData=function(){return this.get("data")},t.prototype.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():d},t.prototype.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},t.prototype.findStyleRanges=function(e,t){i(this.getCharacterList(),p,e,t)},t.prototype.findEntityRanges=function(e,t){i(this.getCharacterList(),h,e,t)},t}(u({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:s()}));function p(e,t){return e.getStyle()===t.getStyle()}function h(e,t){return e.getEntity()===t.getEntity()}e.exports=f},5224(e,t,r){"use strict";var n=r(3018),o=r(9404),i=r(8227),a=o.List,s=o.Map,c=o.OrderedSet,u=o.Record,l=o.Repeat,d=c(),f={parent:null,characterList:a(),data:s(),depth:0,key:"",text:"",type:"unstyled",children:a(),prevSibling:null,nextSibling:null},p=function(e,t){return e.getStyle()===t.getStyle()},h=function(e,t){return e.getEntity()===t.getEntity()},g=function(e){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,function(e){if(!e)return e;var t=e.characterList,r=e.text;return r&&!t&&(e.characterList=a(l(n.EMPTY,r.length))),e}(r)))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getKey=function(){return this.get("key")},t.prototype.getType=function(){return this.get("type")},t.prototype.getText=function(){return this.get("text")},t.prototype.getCharacterList=function(){return this.get("characterList")},t.prototype.getLength=function(){return this.getText().length},t.prototype.getDepth=function(){return this.get("depth")},t.prototype.getData=function(){return this.get("data")},t.prototype.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():d},t.prototype.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},t.prototype.getChildKeys=function(){return this.get("children")},t.prototype.getParentKey=function(){return this.get("parent")},t.prototype.getPrevSiblingKey=function(){return this.get("prevSibling")},t.prototype.getNextSiblingKey=function(){return this.get("nextSibling")},t.prototype.findStyleRanges=function(e,t){i(this.getCharacterList(),p,e,t)},t.prototype.findEntityRanges=function(e,t){i(this.getCharacterList(),h,e,t)},t}(u(f));e.exports=g},7656(e,t,r){"use strict";var n=r(5748),o=r(3018),i=r(6840),a=r(5224),s=r(1608),c=r(2938),u=r(9404),l=r(1381),d=r(6991),f=r(1721),p=u.List,h=u.Record,g=u.Repeat,y=c.draft_tree_data_support?a:i,m=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getEntityMap=function(){return s},t.prototype.getBlockMap=function(){return this.get("blockMap")},t.prototype.getSelectionBefore=function(){return this.get("selectionBefore")},t.prototype.getSelectionAfter=function(){return this.get("selectionAfter")},t.prototype.getBlockForKey=function(e){return this.getBlockMap().get(e)},t.prototype.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getBlockAfter=function(e){return this.getBlockMap().skipUntil(function(t,r){return r===e}).skip(1).first()},t.prototype.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil(function(t,r){return r===e}).skip(1).first()},t.prototype.getBlocksAsArray=function(){return this.getBlockMap().toArray()},t.prototype.getFirstBlock=function(){return this.getBlockMap().first()},t.prototype.getLastBlock=function(){return this.getBlockMap().last()},t.prototype.getPlainText=function(e){return this.getBlockMap().map(function(e){return e?e.getText():""}).join(e||"\n")},t.prototype.getLastCreatedEntityKey=function(){return s.__getLastCreatedEntityKey()},t.prototype.hasText=function(){var e=this.getBlockMap();return e.size>1||e.first().getLength()>0},t.prototype.createEntity=function(e,t,r){return s.__create(e,t,r),this},t.prototype.mergeEntityData=function(e,t){return s.__mergeData(e,t),this},t.prototype.replaceEntityData=function(e,t){return s.__replaceData(e,t),this},t.prototype.addEntity=function(e){return s.__add(e),this},t.prototype.getEntity=function(e){return s.__get(e)},t.createFromBlockArray=function(e,r){var o=Array.isArray(e)?e:e.contentBlocks,i=n.createFromArray(o),a=i.isEmpty()?new l:l.createEmpty(i.first().getKey());return new t({blockMap:i,entityMap:r||s,selectionBefore:a,selectionAfter:a})},t.createFromText=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(r).map(function(e){return e=f(e),new y({key:d(),text:e,type:"unstyled",characterList:p(g(o.EMPTY,e.length))})});return t.createFromBlockArray(n)},t}(h({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}));e.exports=m},4092(e,t,r){"use strict";var n=r(3018),o=r(9404).Map,i={add:function(e,t,r){return a(e,t,r,!0)},remove:function(e,t,r){return a(e,t,r,!1)}};function a(e,t,r,i){var a=e.getBlockMap(),s=t.getStartKey(),c=t.getStartOffset(),u=t.getEndKey(),l=t.getEndOffset(),d=a.skipUntil(function(e,t){return t===s}).takeUntil(function(e,t){return t===u}).concat(o([[u,a.get(u)]])).map(function(e,t){var o,a;s===u?(o=c,a=l):(o=t===s?c:0,a=t===u?l:e.getLength());for(var d,f=e.getCharacterList();o<a;)d=f.get(o),f=f.set(o,i?n.applyStyle(d,r):n.removeStyle(d,r)),o++;return e.set("characterList",f)});return e.merge({blockMap:a.merge(d),selectionBefore:t,selectionAfter:t})}e.exports=i},3387(e,t,r){"use strict";var n=r(9404).Map,o=r(2015),i=r(8003),a=n({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:o.createElement("ul",{className:i("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:o.createElement("ol",{className:i("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:o.createElement("pre",{className:i("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=a},7918(e){"use strict";e.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},5143(e,t,r){"use strict";var n=r(5889),o=r(5748),i=r(3018),a=r(9083),s=r(6840),c=r(7656),u=r(3387),l=r(7918),d=r(3299),f=r(1124),p=r(1608),h=r(9938),g=r(5407),y=r(2242),m=r(9414),b=r(4637),v=r(1381),w=r(7470),S={Editor:d,EditorBlock:f,EditorState:y,CompositeDecorator:a,Entity:p,EntityInstance:g,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:s,ContentState:c,SelectionState:v,AtomicBlockUtils:n,KeyBindingUtil:m,Modifier:h,RichUtils:b,DefaultDraftBlockRenderMap:u,DefaultDraftInlineStyle:l,convertFromHTML:r(4712),convertFromRaw:r(428),convertToRaw:w,genKey:r(6991),getDefaultKeyBinding:r(7811),getVisibleSelectionRect:r(894)};e.exports=S},3299(e,t,r){"use strict";var n=r(5228)||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=r(3387),i=r(7918),a=r(755),s=r(9777),c=r(2474),u=r(7784),l=r(7503),d=r(2242),f=r(2015),p=r(2326),h=r(3529),g=r(2935),y=r(4134),m=r(8003),b=r(9395),v=r(6991),w=r(7811),S=r(7392),x=r(646),E=r(6408),_=y.isBrowser("IE"),O=!_,C={edit:u,composite:a,drag:c,cut:null,render:null},k=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.focus=function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=p.findDOMNode(n.editor);if(o){var i=g.getScrollParent(o),a=e||S(i),s=a.x,c=a.y;o instanceof HTMLElement||x(!1),o.focus(),i===window?window.scrollTo(s,c):h.setTop(i,c),r||n.update(d.forceSelection(t,t.getSelection()))}},n.blur=function(){var e=p.findDOMNode(n.editor);e instanceof HTMLElement||x(!1),e.blur()},n.setMode=function(e){n._handler=C[e]},n.exitCurrentMode=function(){n.setMode("edit")},n.restoreEditorDOM=function(e){n.setState({contentsKey:n.state.contentsKey+1},function(){n.focus(e)})},n.setClipboard=function(e){n._clipboard=e},n.getClipboard=function(){return n._clipboard},n.update=function(e){n._latestEditorState=e,n.props.onChange(e)},n.onDragEnter=function(){n._dragCount++},n.onDragLeave=function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()},n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=r.editorKey||v(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=r.editorState,n._latestCommittedEditorState=r.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},n.state={contentsKey:0},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._buildHandler=function(e){var t=this;return function(r){if(!t.props.readOnly){var n=t._handler&&t._handler[e];n&&n(t,r)}}},t.prototype._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},t.prototype._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:E(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return f.createElement(l,e)}return null},t.prototype.render=function(){var e=this,t=this.props,r=t.blockRenderMap,o=t.blockRendererFn,a=t.blockStyleFn,c=t.customStyleFn,u=t.customStyleMap,l=t.editorState,d=t.readOnly,p=t.textAlignment,h=t.textDirectionality,g=m({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===p,"DraftEditor/alignRight":"right"===p,"DraftEditor/alignCenter":"center"===p}),y=this.props.role||"textbox",b="combobox"===y?!!this.props.ariaExpanded:null,v={blockRenderMap:r,blockRendererFn:o,blockStyleFn:a,customStyleMap:n({},i,u),customStyleFn:c,editorKey:this._editorKey,editorState:l,key:"contents"+this.state.contentsKey,textDirectionality:h};return f.createElement("div",{className:g},this._renderPlaceholder(),f.createElement("div",{className:m("DraftEditor/editorContainer"),ref:function(t){return e.editorContainer=t}},f.createElement("div",{"aria-activedescendant":d?null:this.props.ariaActiveDescendantID,"aria-autocomplete":d?null:this.props.ariaAutoComplete,"aria-controls":d?null:this.props.ariaControls,"aria-describedby":this.props.ariaDescribedBy||this._placeholderAccessibilityID,"aria-expanded":d?null:b,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:m({notranslate:!d,"public/DraftEditor/content":!0}),contentEditable:!d,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:function(t){return e.editor=t},role:d?null:y,spellCheck:O&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},f.createElement(s,v))))},t.prototype.componentDidMount=function(){this.setMode("edit"),_&&document.execCommand("AutoUrlDetect",!1,!1)},t.prototype.componentWillUpdate=function(e){this._blockSelectEvents=!0,this._latestEditorState=e.editorState},t.prototype.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestCommittedEditorState=this.props.editorState},t}(f.Component);k.defaultProps={blockRenderMap:o,blockRendererFn:b.thatReturnsNull,blockStyleFn:b.thatReturns(""),keyBindingFn:w,readOnly:!1,spellCheck:!1,stripPastedStyles:!1},e.exports=k},1124(e,t,r){"use strict";var n=r(5228)||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=r(5203),i=r(3885),a=r(2015),s=r(2326),c=r(3529),u=r(2935),l=r(8307),d=r(5822),f=r(8003),p=r(8527),h=r(7392),g=r(1401),y=r(646),m=r(6408),b=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},v=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||b(e.selection,e.block.getKey())&&e.forceSelection},t.prototype.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var r=s.findDOMNode(this),n=u.getScrollParent(r),o=h(n),i=void 0;if(n===window){var a=p(r);(i=a.y+a.height-g().height)>0&&window.scrollTo(o.x,o.y+i+10)}else r instanceof HTMLElement||y(!1),(i=r.offsetHeight+r.offsetTop-(n.offsetHeight+o.y))>0&&c.setTop(n,c.getTop(n)+i+10)}},t.prototype._renderChildren=function(){var e=this,t=this.props.block,r=t.getKey(),s=t.getText(),c=this.props.tree.size-1,u=b(this.props.selection,r);return this.props.tree.map(function(f,p){var h=f.get("leaves"),g=h.size-1,y=h.map(function(n,l){var d=i.encode(r,p,l),f=n.get("start"),h=n.get("end");return a.createElement(o,{key:d,offsetKey:d,block:t,start:f,selection:u?e.props.selection:null,forceSelection:e.props.forceSelection,text:s.slice(f,h),styleSet:t.getInlineStyleAt(f),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:p===c&&l===g})}).toArray(),b=f.get("decoratorKey");if(null==b)return y;if(!e.props.decorator)return y;var v=m(e.props.decorator),w=v.getComponentForKey(b);if(!w)return y;var S=v.getPropsForKey(b),x=i.encode(r,p,0),E=s.slice(h.first().get("start"),h.last().get("end")),_=d.getHTMLDirIfDifferent(l.getDirection(E),e.props.direction);return a.createElement(w,n({},S,{contentState:e.props.contentState,decoratedText:E,dir:_,key:x,entityKey:t.getEntityAt(f.get("start")),offsetKey:x}),y)}).toArray()},t.prototype.render=function(){var e=this.props,t=e.direction,r=e.offsetKey,n=f({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===t,"public/DraftStyleDefault/rtl":"RTL"===t});return a.createElement("div",{"data-offset-key":r,className:n},this._renderChildren())},t}(a.Component);e.exports=v},755(e,t,r){"use strict";var n=r(2938),o=r(9938),i=r(2242),a=r(5852),s=r(9927),c=r(3680),u=r(7759),l=!1,d=!1,f="",p={onBeforeInput:function(e,t){f=(f||"")+t.data},onCompositionStart:function(e){d=!0},onCompositionEnd:function(e){l=!1,d=!1,setTimeout(function(){l||p.resolveComposition(e)},20)},onKeyDown:function(e,t){if(!d)return p.resolveComposition(e),void e._onKeyDown(t);t.which!==a.RIGHT&&t.which!==a.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===a.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!d){l=!0;var t=f;f="";var r=i.set(e._latestEditorState,{inCompositionMode:!1}),a=r.getCurrentInlineStyle(),p=s(r.getCurrentContent(),r.getSelection()),h=!t||u(r)||a.size>0||null!==p;if(h&&e.restoreEditorDOM(),e.exitCurrentMode(),t){if(n.draft_handlebeforeinput_composed_text&&e.props.handleBeforeInput&&c(e.props.handleBeforeInput(t,r)))return;var g=o.replaceText(r.getCurrentContent(),r.getSelection(),t,a,p);e.update(i.push(r,g,"insert-characters"))}else h&&e.update(i.set(r,{nativelyRenderedContent:null,forceSelection:!0}))}}};e.exports=p},3659(e,t,r){"use strict";var n=r(5228)||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=r(1124),i=r(3885),a=(r(2242),r(2015)),s=r(8003),c=r(798),u=r(6408),l=function(e,t,r,n){return s({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":r,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":4===t,"public/DraftStyleDefault/listLTR":"LTR"===n,"public/DraftStyleDefault/listRTL":"RTL"===n})},d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){var t=this.props.editorState,r=e.editorState;if(t.getDirectionMap()!==r.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==r.getSelection().getHasFocus())return!0;var n=r.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=r.isInCompositionMode();if(t===r||null!==n&&r.getCurrentContent()===n||o&&i)return!1;var a=t.getCurrentContent(),s=r.getCurrentContent(),c=t.getDecorator(),u=r.getDecorator();return o!==i||a!==s||c!==u||r.mustForceSelection()},t.prototype.render=function(){for(var e=this.props,t=e.blockRenderMap,r=e.blockRendererFn,s=e.blockStyleFn,d=e.customStyleMap,f=e.customStyleFn,p=e.editorState,h=e.editorKey,g=e.textDirectionality,y=p.getCurrentContent(),m=p.getSelection(),b=p.mustForceSelection(),v=p.getDecorator(),w=u(p.getDirectionMap()),S=y.getBlocksAsArray(),x=[],E=null,_=null,O=0;O<S.length;O++){var C=S[O],k=C.getKey(),A=C.getType(),T=r(C),I=void 0,P=void 0,D=void 0;T&&(I=T.component,P=T.props,D=T.editable);var L=g||w.get(k),M=i.encode(k,0,0),R={contentState:y,block:C,blockProps:P,blockStyleFn:s,customStyleMap:d,customStyleFn:f,decorator:v,direction:L,forceSelection:b,key:k,offsetKey:M,selection:m,tree:p.getBlockTree(k)},j=t.get(A)||t.get("unstyled"),N=j.wrapper,F=j.element||t.get("unstyled").element,B=C.getDepth(),U="";s&&(U=s(C)),"li"===F&&(U=c(U,l(A,B,_!==N||null===E||B>E,L)));var K=I||o,H={className:U,"data-block":!0,"data-editor":h,"data-offset-key":M,key:k};void 0!==D&&(H=n({},H,{contentEditable:D,suppressContentEditableWarning:!0}));var z=a.createElement(F,H,a.createElement(K,R));x.push({block:z,wrapperTemplate:N,key:k,offsetKey:M}),E=N?C.getDepth():null,_=N}for(var q=[],V=0;V<x.length;){var G=x[V];if(G.wrapperTemplate){var W=[];do{W.push(x[V].block),V++}while(V<x.length&&x[V].wrapperTemplate===G.wrapperTemplate);var $=a.cloneElement(G.wrapperTemplate,{key:G.key+"-wrap","data-offset-key":G.offsetKey},W);q.push($)}else q.push(G.block),V++}return a.createElement("div",{"data-contents":"true"},q)},t}(a.Component);e.exports=d},9777(e,t,r){"use strict";var n=r(3659);e.exports=n},2474(e,t,r){"use strict";var n=r(2395),o=r(9938),i=r(2242),a=r(8372),s=r(723),c=r(9450),u=r(3680),l=r(6408),d={onDragEnd:function(e){e.exitCurrentMode()},onDrop:function(e,t){var r=new n(t.nativeEvent.dataTransfer),d=e._latestEditorState,p=function(e,t){var r=null,n=null;if("function"==typeof document.caretRangeFromPoint){var o=document.caretRangeFromPoint(e.x,e.y);r=o.startContainer,n=o.startOffset}else{if(!e.rangeParent)return null;r=e.rangeParent,n=e.rangeOffset}r=l(r),n=l(n);var i=l(a(r));return c(t,i,n,i,n)}(t.nativeEvent,d);if(t.preventDefault(),e.exitCurrentMode(),null!=p){var h=r.getFiles();if(h.length>0){if(e.props.handleDroppedFiles&&u(e.props.handleDroppedFiles(p,h)))return;s(h,function(t){t&&e.update(f(d,p,t))})}else{var g=e._internalDrag?"internal":"external";e.props.handleDrop&&u(e.props.handleDrop(p,r,g))||(e._internalDrag?e.update(function(e,t){var r=o.moveText(e.getCurrentContent(),e.getSelection(),t);return i.push(e,r,"insert-fragment")}(d,p)):e.update(f(d,p,r.getText())))}}}};function f(e,t,r){var n=o.insertText(e.getCurrentContent(),t,r,e.getCurrentInlineStyle());return i.push(e,n,"insert-fragment")}e.exports=d},7784(e,t,r){"use strict";var n={onBeforeInput:r(3722),onBlur:r(8058),onCompositionStart:r(7141),onCopy:r(3694),onCut:r(3919),onDragOver:r(6127),onDragStart:r(4861),onFocus:r(4447),onInput:r(5091),onKeyDown:r(8136),onPaste:r(2208),onSelect:r(6207)};e.exports=n},5203(e,t,r){"use strict";var n=r(5228),o=r(6268),i=r(2015),a=r(2326),s=r(646),c=r(4660),u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,r=t.block,n=t.start,o=t.text,i=r.getKey(),u=n+o.length;if(e.hasEdgeWithin(i,n,u)){var l=a.findDOMNode(this);l||s(!1);var d=l.firstChild;d||s(!1);var f=void 0;d.nodeType===Node.TEXT_NODE?f=d:"BR"===d.tagName?f=l:(f=d.firstChild)||s(!1),c(e,f,i,n,u)}}},t.prototype.shouldComponentUpdate=function(e){var t=a.findDOMNode(this.leaf);return t||s(!1),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},t.prototype.componentDidUpdate=function(){this._setSelection()},t.prototype.componentDidMount=function(){this._setSelection()},t.prototype.render=function(){var e=this,t=this.props.block,r=this.props.text;r.endsWith("\n")&&this.props.isLast&&(r+="\n");var a=this.props,s=a.customStyleMap,c=a.customStyleFn,u=a.offsetKey,l=a.styleSet,d=l.reduce(function(e,t){var r={},o=s[t];return void 0!==o&&e.textDecoration!==o.textDecoration&&(r.textDecoration=[e.textDecoration,o.textDecoration].join(" ").trim()),n(e,o,r)},{});if(c){var f=c(l,t);d=n(d,f)}return i.createElement("span",{"data-offset-key":u,ref:function(t){return e.leaf=t},style:d},i.createElement(o,null,r))},t}(i.Component);e.exports=u},7503(e,t,r){"use strict";var n=r(2015),o=r(8003),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},t.prototype.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=o({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return n.createElement("div",{className:t},n.createElement("div",{className:o("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},t}(n.Component);e.exports=i},6268(e,t,r){"use strict";var n=r(2015),o=r(2326),i=r(4134),a=r(646),s=i.isBrowser("IE <= 11"),c=s?n.createElement("span",{key:"A","data-text":"true"},"\n"):n.createElement("br",{key:"A","data-text":"true"}),u=s?n.createElement("span",{key:"B","data-text":"true"},"\n"):n.createElement("br",{key:"B","data-text":"true"}),l=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n._forceFlag=!1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){var t=o.findDOMNode(this),r=""===e.children;return t instanceof Element||a(!1),r?!function(e){return s?"\n"===e.textContent:"BR"===e.tagName}(t):t.textContent!==e.children},t.prototype.componentDidMount=function(){this._forceFlag=!this._forceFlag},t.prototype.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},t.prototype.render=function(){return""===this.props.children?this._forceFlag?c:u:n.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true"},this.props.children)},t}(n.Component);e.exports=l},1608(e,t,r){"use strict";var n=r(5228)||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=r(5407),i=r(9404),a=r(646),s=(0,i.Map)(),c=0;function u(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var l={getLastCreatedEntityKey:function(){return u("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),l.__getLastCreatedEntityKey()},create:function(e,t,r){return u("DraftEntity.create","contentState.createEntity"),l.__create(e,t,r)},add:function(e){return u("DraftEntity.add","contentState.addEntity"),l.__add(e)},get:function(e){return u("DraftEntity.get","contentState.getEntity"),l.__get(e)},mergeData:function(e,t){return u("DraftEntity.mergeData","contentState.mergeEntityData"),l.__mergeData(e,t)},replaceData:function(e,t){return u("DraftEntity.replaceData","contentState.replaceEntityData"),l.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return""+c},__create:function(e,t,r){return l.__add(new o({type:e,mutability:t,data:r||{}}))},__add:function(e){var t=""+ ++c;return s=s.set(t,e),t},__get:function(e){var t=s.get(e);return t||a(!1),t},__mergeData:function(e,t){var r=l.__get(e),o=n({},r.getData(),t),i=r.set("data",o);return s=s.set(e,i),i},__replaceData:function(e,t){var r=l.__get(e).set("data",t);return s=s.set(e,r),r}};e.exports=l},5407(e,t,r){"use strict";var n=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getType=function(){return this.get("type")},t.prototype.getMutability=function(){return this.get("mutability")},t.prototype.getData=function(){return this.get("data")},t}((0,r(9404).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));e.exports=n},8382(e){"use strict";e.exports={getRemovalRange:function(e,t,r,n,o){var i=r.split(" ");i=i.map(function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e});for(var a,s=n,c=null,u=null,l=0;l<i.length;l++){if(e<(a=s+i[l].length)&&s<t)null!==c||(c=s),u=a;else if(null!==c)break;s=a}var d=n+r.length,f=c===n,p=u===d;return(!f&&p||f&&!p)&&("forward"===o?u!==d&&u++:c!==n&&c--),{start:c,end:u}}}},8360(e){"use strict";e.exports={draft_killswitch_allow_nontextnodes:!1,draft_segmented_entities_behavior:!1,draft_handlebeforeinput_composed_text:!1,draft_tree_data_support:!1}},2938(e,t,r){"use strict";var n=r(8360);e.exports=n},7204(e){"use strict";e.exports={logSelectionStateFailure:function(){return null}}},9938(e,t,r){"use strict";var n=r(3018),o=r(4092),i=r(2938),a=r(9404),s=r(6416),c=r(508),u=r(866),l=r(9127),d=r(3136),f=r(646),p=r(5462),h=r(6044),g=r(4435),y=r(841),m=a.OrderedSet,b={replaceText:function(e,t,r,o,i){var a=h(e,t),s=g(a,t),c=n.create({style:o||m(),entity:i||null});return d(s,s.getSelectionAfter(),r,c)},insertText:function(e,t,r,n,o){return t.isCollapsed()||f(!1),b.replaceText(e,t,r,n,o)},moveText:function(e,t,r){var n=u(e,t),o=b.removeRange(e,t,"backward");return b.replaceWithFragment(o,r,n)},replaceWithFragment:function(e,t,r){var n=h(e,t),o=g(n,t);return l(o,o.getSelectionAfter(),r)},removeRange:function(e,t,r){var n,o,a=void 0,s=void 0;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),n=t.getAnchorKey(),o=t.getFocusKey(),a=e.getBlockForKey(n),s=e.getBlockForKey(o);var u=t.getStartOffset(),l=t.getEndOffset(),d=a.getEntityAt(u),f=s.getEntityAt(l-1);if(n===o&&d&&d===f){var p=c(e.getEntityMap(),a,s,t,r);return g(e,p)}var y=t;i.draft_segmented_entities_behavior&&(y=c(e.getEntityMap(),a,s,t,r));var m=h(e,y);return g(m,y)},splitBlock:function(e,t){var r=h(e,t),n=g(r,t);return y(n,n.getSelectionAfter())},applyInlineStyle:function(e,t,r){return o.add(e,t,r)},removeInlineStyle:function(e,t,r){return o.remove(e,t,r)},setBlockType:function(e,t,r){return p(e,t,function(e){return e.merge({type:r,depth:0})})},setBlockData:function(e,t,r){return p(e,t,function(e){return e.merge({data:r})})},mergeBlockData:function(e,t,r){return p(e,t,function(e){return e.merge({data:e.getData().merge(r)})})},applyEntity:function(e,t,r){var n=h(e,t);return s(n,t,r)}};e.exports=b},3885(e){"use strict";var t={encode:function(e,t,r){return e+"-"+t+"-"+r},decode:function(e){var t=e.split("-"),r=t[0],n=t[1],o=t[2];return{blockKey:r,decoratorKey:parseInt(n,10),leafKey:parseInt(o,10)}}};e.exports=t},46(e,t,r){"use strict";var n=r(5228)||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=(r(3018),r(6840)),i=r(5224),a=r(2938),s=r(9404),c=r(4712),u=r(6991),l=r(9248),d=r(1721),f=s.List,p=s.Repeat,h=a.draft_tree_data_support,g=h?i:o,y={processHTML:function(e,t){return c(e,l,t)},processText:function(e,t,r){return e.reduce(function(e,o,i){o=d(o);var a=u(),s={key:a,type:r,text:o,characterList:f(p(t,o.length))};if(h&&0!==i){var c=i-1,l=e[c]=e[c].merge({nextSibling:a});s=n({},s,{prevSibling:l.getKey()})}return e.push(new g(s)),e},[])}};e.exports=y},1617(e,t,r){"use strict";var n="['‘’]",o="\\s|(?![_])"+r(7405).getPunctuation(),i=new RegExp("^(?:"+o+")*(?:"+n+"|(?!"+o+").)*(?:(?!"+o+").)"),a=new RegExp("(?:(?!"+o+").)(?:"+n+"|(?!"+o+").)*(?:"+o+")*$");function s(e,t){var r=t?a.exec(e):i.exec(e);return r?r[0]:e}var c={getBackward:function(e){return s(e,!0)},getForward:function(e){return s(e,!1)}};e.exports=c},1439(e){"use strict";var t={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=t},2396(e,t,r){"use strict";var n=r(5228)||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=r(646),i=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},a={fromRawTreeStateToRawState:function(e){var t=e.blocks,r=[];return Array.isArray(t)||o(!1),Array.isArray(t)&&t.length?(function(e,t){for(var r=[].concat(e).reverse();r.length;){var n=r.pop();t(n);var i=n.children;Array.isArray(i)||o(!1),r=r.concat([].concat(i.reverse()))}}(t,function(e){var t=n({},e);i(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map(function(t){return t.type===e.type?n({},t,{depth:(e.depth||0)+1}):t}))}(e)),delete t.children,r.push(t)}),e.blocks=r,n({},e,{blocks:r})):e},fromRawStateToRawTreeState:function(e){var t={},r=[];return e.blocks.forEach(function(e){var a=i(e),s=e.depth||0,c=n({},e,{children:[]});if(!a)return t={},void r.push(c);if(t[s]=c,s>0){var u=t[s-1];return u||o(!1),void u.children.push(c)}r.push(c)}),n({},e,{blocks:r})}};e.exports=a},3914(e,t,r){"use strict";var n,o=r(9404),i=r(1708),a=r(6408),s=o.OrderedMap,c={getDirectionMap:function(e,t){n?n.reset():n=new i;var r=e.getBlockMap(),c=r.valueSeq().map(function(e){return a(n).getDirection(e.getText())}),u=s(r.keySeq().zip(c));return null!=t&&o.is(t,u)?t:u}};e.exports=c},2242(e,t,r){"use strict";var n=r(5228)||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=r(9981),i=r(7656),a=r(3914),s=r(9404),c=r(1381),u=s.OrderedSet,l=s.Record,d=s.Stack,f=l({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:d(),selection:null,treeMap:null,undoStack:d()}),p=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._immutable=t}return e.createEmpty=function(t){return e.createWithContent(i.createFromText(""),t)},e.createWithContent=function(t,r){var n=t.getBlockMap().first().getKey();return e.create({currentContent:t,undoStack:d(),redoStack:d(),decorator:r||null,selection:c.createEmpty(n)})},e.create=function(t){var r=t.currentContent,o=t.decorator,i=n({},t,{treeMap:g(r,o),directionMap:a.getDirectionMap(r)});return new e(new f(i))},e.set=function(t,r){return new e(t.getImmutable().withMutations(function(e){var n=e.get("decorator"),i=n;null===r.decorator?i=null:r.decorator&&(i=r.decorator);var a=r.currentContent||t.getCurrentContent();if(i!==n){var s,c=e.get("treeMap");return s=i&&n?function(e,t,r,n,i){return r.merge(t.toSeq().filter(function(t){return n.getDecorations(t,e)!==i.getDecorations(t,e)}).map(function(t){return o.generate(e,t,n)}))}(a,a.getBlockMap(),c,i,n):g(a,i),void e.merge({decorator:i,treeMap:s,nativelyRenderedContent:null})}a!==t.getCurrentContent()&&e.set("treeMap",function(e,t,r,n){var i=e.getCurrentContent().set("entityMap",r),a=i.getBlockMap();return e.getImmutable().get("treeMap").merge(t.toSeq().filter(function(e,t){return e!==a.get(t)}).map(function(e){return o.generate(i,e,n)}))}(t,a.getBlockMap(),a.getEntityMap(),i)),e.merge(r)}))},e.prototype.toJS=function(){return this.getImmutable().toJS()},e.prototype.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.prototype.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.prototype.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.prototype.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.prototype.getSelection=function(){return this.getImmutable().get("selection")},e.prototype.getDecorator=function(){return this.getImmutable().get("decorator")},e.prototype.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.prototype.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.prototype.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.prototype.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.prototype.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},e.setInlineStyleOverride=function(t,r){return e.set(t,{inlineStyleOverride:r})},e.prototype.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),r=this.getSelection();return r.isCollapsed()?function(e,t){var r=t.getStartKey(),n=t.getStartOffset(),o=e.getBlockForKey(r);return n>0?o.getInlineStyleAt(n-1):o.getLength()?o.getInlineStyleAt(0):y(e,r)}(t,r):function(e,t){var r=t.getStartKey(),n=t.getStartOffset(),o=e.getBlockForKey(r);return n<o.getLength()?o.getInlineStyleAt(n):n>0?o.getInlineStyleAt(n-1):y(e,r)}(t,r)},e.prototype.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.prototype.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.prototype.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.prototype.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(e,t){return h(e,t,!1)},e.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),h(e,t,!0)},e.moveSelectionToEnd=function(t){var r=t.getCurrentContent().getLastBlock(),n=r.getKey(),o=r.getLength();return e.acceptSelection(t,new c({anchorKey:n,anchorOffset:o,focusKey:n,focusOffset:o,isBackward:!1}))},e.moveFocusToEnd=function(t){var r=e.moveSelectionToEnd(t);return e.forceSelection(r,r.getSelection())},e.push=function(t,r,n){if(t.getCurrentContent()===r)return t;var o="insert-characters"!==n,i=a.getDirectionMap(r,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:r,directionMap:i,lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var s=t.getSelection(),c=t.getCurrentContent(),u=t.getUndoStack(),l=r;s!==c.getSelectionAfter()||function(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(t,n)?(u=u.push(c),l=l.set("selectionBefore",s)):"insert-characters"!==n&&"backspace-character"!==n&&"delete-character"!==n||(l=l.set("selectionBefore",c.getSelectionBefore()));var f=t.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(n)&&(f=null);var p={currentContent:l,directionMap:i,undoStack:u,redoStack:d(),lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:o,inlineStyleOverride:f};return e.set(t,p)},e.undo=function(t){if(!t.getAllowUndo())return t;var r=t.getUndoStack(),n=r.peek();if(!n)return t;var o=t.getCurrentContent(),i=a.getDirectionMap(n,t.getDirectionMap());return e.set(t,{currentContent:n,directionMap:i,undoStack:r.shift(),redoStack:t.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var r=t.getRedoStack(),n=r.peek();if(!n)return t;var o=t.getCurrentContent(),i=a.getDirectionMap(n,t.getDirectionMap());return e.set(t,{currentContent:n,directionMap:i,undoStack:t.getUndoStack().push(o),redoStack:r.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:n.getSelectionAfter()})},e.prototype.getImmutable=function(){return this._immutable},e}();function h(e,t,r){return p.set(e,{selection:t,forceSelection:r,nativelyRenderedContent:null,inlineStyleOverride:null})}function g(e,t){return e.getBlockMap().map(function(r){return o.generate(e,r,t)}).toOrderedMap()}function y(e,t){var r=e.getBlockMap().reverse().skipUntil(function(e,r){return r===t}).skip(1).skipUntil(function(e,t){return e.getLength()}).first();return r?r.getInlineStyleAt(r.getLength()-1):u()}e.exports=p},9414(e,t,r){"use strict";var n=r(4134).isPlatform("Mac OS X"),o={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return n&&e.altKey},hasCommandModifier:function(e){return n?!!e.metaKey&&!e.altKey:o.isCtrlKeyCommand(e)}};e.exports=o},4637(e,t,r){"use strict";var n=r(9938),o=r(2242),i=(r(1381),r(286)),a=r(6408),s={currentBlockContainsLink:function(e){var t=e.getSelection(),r=e.getCurrentContent(),n=r.getEntityMap();return r.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some(function(e){var t=e.getEntity();return!!t&&"LINK"===n.__get(t).getType()})},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t){switch(t){case"bold":return s.toggleInlineStyle(e,"BOLD");case"italic":return s.toggleInlineStyle(e,"ITALIC");case"underline":return s.toggleInlineStyle(e,"UNDERLINE");case"code":return s.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return s.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return s.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=n.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),r=o.push(e,t,"insert-characters");return o.forceSelection(r,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var r=e.getCurrentContent(),n=t.getStartKey(),i=r.getBlockBefore(n);if(i&&"atomic"===i.getType()){var a=r.getBlockMap().delete(i.getKey()),c=r.merge({blockMap:a,selectionAfter:t});if(c!==r)return o.push(e,c,"remove-range")}var u=s.tryToRemoveBlockStyle(e);return u?o.push(e,u,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var r=e.getCurrentContent(),i=t.getStartKey(),a=r.getBlockForKey(i).getLength();if(t.getStartOffset()<a)return null;var s=r.getBlockAfter(i);if(!s||"atomic"!==s.getType())return null;var c=t.merge({focusKey:s.getKey(),focusOffset:s.getLength()}),u=n.removeRange(r,c,"forward");return u!==r?o.push(e,u,"remove-range"):null},onTab:function(e,t,r){var n=t.getSelection(),a=n.getAnchorKey();if(a!==n.getFocusKey())return t;var s=t.getCurrentContent(),c=s.getBlockForKey(a),u=c.getType();if("unordered-list-item"!==u&&"ordered-list-item"!==u)return t;e.preventDefault();var l=s.getBlockBefore(a);if(!l)return t;var d=l.getType();if("unordered-list-item"!==d&&"ordered-list-item"!==d)return t;var f=c.getDepth();if(!e.shiftKey&&f===r)return t;r=Math.min(l.getDepth()+1,r);var p=i(s,n,e.shiftKey?-1:1,r);return o.push(t,p,"adjust-depth")},toggleBlockType:function(e,t){var r=e.getSelection(),i=r.getStartKey(),s=r.getEndKey(),c=e.getCurrentContent(),u=r;if(i!==s&&0===r.getEndOffset()){var l=a(c.getBlockBefore(s));s=l.getKey(),u=u.merge({anchorKey:i,anchorOffset:r.getStartOffset(),focusKey:s,focusOffset:l.getLength(),isBackward:!1})}if(c.getBlockMap().skipWhile(function(e,t){return t!==i}).reverse().skipWhile(function(e,t){return t!==s}).some(function(e){return"atomic"===e.getType()}))return e;var d=c.getBlockForKey(i).getType()===t?"unstyled":t;return o.push(e,n.setBlockType(c,u,d),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),r=t.getAnchorKey(),n=t.getFocusKey();return t.isCollapsed()||r!==n?s.toggleBlockType(e,"code-block"):s.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var r=e.getSelection(),i=e.getCurrentInlineStyle();if(r.isCollapsed())return o.setInlineStyleOverride(e,i.has(t)?i.remove(t):i.add(t));var a,s=e.getCurrentContent();return a=i.has(t)?n.removeInlineStyle(s,r,t):n.applyInlineStyle(s,r,t),o.push(e,a,"change-inline-style")},toggleLink:function(e,t,r){var i=n.applyEntity(e.getCurrentContent(),t,r);return o.push(e,i,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),r=t.getAnchorOffset();if(t.isCollapsed()&&0===r){var o=t.getAnchorKey(),i=e.getCurrentContent(),a=i.getBlockForKey(o),s=i.getFirstBlock();if(a.getLength()>0&&a!==s)return null;var c=a.getType(),u=i.getBlockBefore(o);if("code-block"===c&&u&&"code-block"===u.getType()&&0!==u.getLength())return null;if("unstyled"!==c)return n.setBlockType(i,t,"unstyled")}return null}};e.exports=s},5170(e,t,r){"use strict";var n=r(9938),o=r(2242),i=r(866),a=r(6408),s=null,c={cut:function(e){var t=e.getCurrentContent(),r=e.getSelection(),c=null;if(r.isCollapsed()){var u=r.getAnchorKey(),l=t.getBlockForKey(u).getLength();if(l===r.getAnchorOffset())return e;c=r.set("focusOffset",l)}else c=r;c=a(c),s=i(t,c);var d=n.removeRange(t,c,"forward");return d===t?e:o.push(e,d,"remove-range")},paste:function(e){if(!s)return e;var t=n.replaceWithFragment(e.getCurrentContent(),e.getSelection(),s);return o.push(e,t,"insert-fragment")}};e.exports=c},1381(e,t,r){"use strict";var n=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},t.prototype.getAnchorKey=function(){return this.get("anchorKey")},t.prototype.getAnchorOffset=function(){return this.get("anchorOffset")},t.prototype.getFocusKey=function(){return this.get("focusKey")},t.prototype.getFocusOffset=function(){return this.get("focusOffset")},t.prototype.getIsBackward=function(){return this.get("isBackward")},t.prototype.getHasFocus=function(){return this.get("hasFocus")},t.prototype.hasEdgeWithin=function(e,t,r){var n=this.getAnchorKey(),o=this.getFocusKey();if(n===o&&n===e){var i=this.getStartOffset();return t<=this.getEndOffset()&&i<=r}if(e!==n&&e!==o)return!1;var a=e===n?this.getAnchorOffset():this.getFocusOffset();return t<=a&&r>=a},t.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},t.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},t.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},t.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},t.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(e){return new t({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},t}((0,r(9404).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=n},286(e){"use strict";e.exports=function(e,t,r,n){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===i}).concat([[i,a.get(i)]]).map(function(e){var t=e.getDepth()+r;return t=Math.max(0,Math.min(t,n)),e.set("depth",t)});return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},1952(e,t,r){"use strict";var n=r(3018);e.exports=function(e,t,r,o){for(var i=e.getCharacterList();t<r;)i=i.set(t,n.applyEntity(i.get(t),o)),t++;return e.set("characterList",i)}},6416(e,t,r){"use strict";var n=r(9404),o=r(1952);e.exports=function(e,t,r){var i=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),c=t.getEndKey(),u=t.getEndOffset(),l=i.skipUntil(function(e,t){return t===a}).takeUntil(function(e,t){return t===c}).toOrderedMap().merge(n.OrderedMap([[c,i.get(c)]])).map(function(e,t){var n=t===a?s:0,i=t===c?u:e.getLength();return o(e,n,i,r)});return e.merge({blockMap:i.merge(l),selectionBefore:t,selectionAfter:t})}},7470(e,t,r){"use strict";var n=r(5228)||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=r(6840),i=r(5224),a=r(1439),s=r(7862),c=r(702),u=r(646),l=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:c(e),entityRanges:s(e,t),data:e.getData().toObject()}};e.exports=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var r=t.blocks,n=t.entityMap,o={};return Object.keys(n).forEach(function(t,r){var n=e.getEntity(a.unstringify(t));o[r]={type:n.getType(),mutability:n.getMutability(),data:n.getData()}}),{blocks:r,entityMap:o}}(e,t=function(e,t){var r=t.entityMap,s=[],c={},d={},f=0;return e.getBlockMap().forEach(function(e){e.findEntityRanges(function(e){return null!==e.getEntity()},function(t){var n=e.getEntityAt(t),o=a.stringify(n);d[o]||(d[o]=n,r[o]=""+f,f++)}),function(e,t,r,a){if(e instanceof o)r.push(l(e,t));else{e instanceof i||u(!1);var s=e.getParentKey(),c=a[e.getKey()]=n({},l(e,t),{children:[]});s?a[s].children.push(c):r.push(c)}}(e,r,s,c)}),{blocks:s,entityMap:r}}(e,t)),t}},4712(e,t,r){"use strict";var n,o=i||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=r(5228);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=r(3018),c=r(6840),u=r(5224),l=r(3387),d=r(1608),f=r(2938),p=r(9404),h=r(9404).Set,g=r(5324),y=r(8003),m=r(6991),b=r(9248),v=r(646),w=r(1721),S=f.draft_tree_data_support,x=p.List,E=p.OrderedSet,_=" ",O=new RegExp("\r","g"),C=new RegExp("\n","g"),k=new RegExp(" ","g"),A=new RegExp(" ?","g"),T=new RegExp("​?","g"),I=["bold","bolder","500","600","700","800","900"],P=["light","lighter","100","200","300","400"],D={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},L=(a(n={},y("public/DraftStyleDefault/depth0"),0),a(n,y("public/DraftStyleDefault/depth1"),1),a(n,y("public/DraftStyleDefault/depth2"),2),a(n,y("public/DraftStyleDefault/depth3"),3),a(n,y("public/DraftStyleDefault/depth4"),4),n),M=["className","href","rel","target","title"],R=["alt","className","height","src","width"],j=void 0,N={text:"",inlines:[],entities:[],blocks:[]},F={children:x(),depth:0,key:"",type:""},B=function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null},U=function(e,t,r){var n=r.filter(function(t){return t.element===e||t.wrapper===e||t.aliasedElements&&t.aliasedElements.some(function(t){return t===e})}).keySeq().toSet().toArray().sort();switch(n.length){case 0:return"unstyled";case 1:return n[0];default:return function(e,t,r){for(var n=0;n<r.length;n++){var o=r[n](e,t);if(o)return o}return null}(e,t,[B])||"unstyled"}},K=function(e,t,r){var n=e.text.slice(-1),o=t.text.slice(0,1);if("\r"!==n||"\r"!==o||r||(e.text=e.text.slice(0,-1),e.inlines.pop(),e.entities.pop(),e.blocks.pop()),"\r"===n){if(t.text===_||"\n"===t.text)return e;o!==_&&"\n"!==o||(t.text=t.text.slice(1),t.inlines.shift(),t.entities.shift())}return{text:e.text+t.text,inlines:e.inlines.concat(t.inlines),entities:e.entities.concat(t.entities),blocks:e.blocks.concat(t.blocks)}},H=function(e){e instanceof HTMLAnchorElement||v(!1);var t=e.protocol;return"http:"===t||"https:"===t||"mailto:"===t},z=function(e){var t=new Array(1);return e&&(t[0]=e),o({},N,{text:_,inlines:[E()],entities:t})},q=function(){return o({},N,{text:"\n",inlines:[E()],entities:new Array(1)})},V=function(){return o({},F,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})},G=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{text:"\r",inlines:[E()],entities:new Array(1),blocks:[V({parent:r,key:m(),type:e,depth:Math.max(0,Math.min(4,t))})]}},W=function e(t,r,n,i,a,s,c,u,l,f){var p=j,h=r.nodeName.toLowerCase(),y=t,m="unstyled",b=!1,v=a&&U(a,i,u),w=o({},N),x=void 0;if("#text"===h){var E=r.textContent,O=E.trim();if(i&&""===O&&r.parentElement){var k=r.parentElement.nodeName.toLowerCase();if("ol"===k||"ul"===k)return{chunk:o({},N),entityMap:t}}return""===O&&"pre"!==a?{chunk:z(l),entityMap:t}:("pre"!==a&&(E=E.replace(C,_)),j=h,{chunk:{text:E,inlines:Array(E.length).fill(n),entities:Array(E.length).fill(l),blocks:[]},entityMap:t})}if(j=h,"br"===h)return"br"!==p||a&&"unstyled"!==v?{chunk:q(),entityMap:t}:{chunk:G("unstyled",c,f),entityMap:t};if("img"===h&&r instanceof HTMLImageElement&&r.attributes.getNamedItem("src")&&r.attributes.getNamedItem("src").value){var A=r,T={};R.forEach(function(e){var t=A.getAttribute(e);t&&(T[e]=t)}),r.textContent="📷",l=d.__create("IMAGE","MUTABLE",T||{})}n=function(e,t,r){var n=D[e];if(n)r=r.add(n).toOrderedSet();else if(t instanceof HTMLElement){var o=t;r=r.withMutations(function(e){var t=o.style.fontWeight,r=o.style.fontStyle,n=o.style.textDecoration;I.indexOf(t)>=0?e.add("BOLD"):P.indexOf(t)>=0&&e.remove("BOLD"),"italic"===r?e.add("ITALIC"):"normal"===r&&e.remove("ITALIC"),"underline"===n&&e.add("UNDERLINE"),"line-through"===n&&e.add("STRIKETHROUGH"),"none"===n&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}).toOrderedSet()}return r}(h,r,n),"ul"!==h&&"ol"!==h||(i&&(c+=1),i=h),!S&&"li"===h&&r instanceof HTMLElement&&(c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(L).some(function(r){e.classList.contains(r)&&(t=L[r])}),t}(r,c));var F=U(h,i,u),B=i&&"li"===a&&"li"===h,V=(!a||S)&&-1!==s.indexOf(h);(B||V)&&(x=(w=G(F,c,f)).blocks[0].key,a=h,b=!S),B&&(m="ul"===i?"unordered-list-item":"ordered-list-item");var W=r.firstChild;null!=W&&(h=W.nodeName.toLowerCase());for(var $=null;W;){W instanceof HTMLAnchorElement&&W.href&&H(W)?function(){var e=W,t={};M.forEach(function(r){var n=e.getAttribute(r);n&&(t[r]=n)}),t.url=new g(e.href).toString(),$=d.__create("LINK","MUTABLE",t||{})}():$=void 0;var Y=e(y,W,n,i,a,s,c,u,$||l,S?x:null),X=Y.chunk;y=Y.entityMap,w=K(w,X,S);var Z=W.nextSibling;!f&&Z&&s.indexOf(h)>=0&&a&&(w=K(w,q())),Z&&(h=Z.nodeName.toLowerCase()),W=Z}return b&&(w=K(w,G(m,c,f))),{chunk:w,entityMap:y}},$=function(e,t,r,n){e=e.trim().replace(O,"").replace(k,_).replace(A,"").replace(T,"");var i=function(e){var t=e.get("unstyled").element,r=h([]);return e.forEach(function(e){e.aliasedElements&&e.aliasedElements.forEach(function(e){r=r.add(e)}),r=r.add(e.element)}),r.filter(function(e){return e&&e!==t}).toArray().sort()}(r),a=t(e);if(!a)return null;j=null;var s=function(e,t){return t.some(function(t){return-1!==e.indexOf("<"+t)})}(e,i)?i:["div"],c=W(n,a,E(),"ul",null,s,-1,r),u=c.chunk,l=c.entityMap;return 0===u.text.indexOf("\r")&&(u={text:u.text.slice(1),inlines:u.inlines.slice(1),entities:u.entities.slice(1),blocks:u.blocks}),"\r"===u.text.slice(-1)&&(u.text=u.text.slice(0,-1),u.inlines=u.inlines.slice(0,-1),u.entities=u.entities.slice(0,-1),u.blocks.pop()),0===u.blocks.length&&u.blocks.push(o({},N,{type:"unstyled",depth:0})),u.text.split("\r").length===u.blocks.length+1&&u.blocks.unshift({type:"unstyled",depth:0}),{chunk:u,entityMap:l}};e.exports=function(e){var t=$(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:b,arguments.length>2&&void 0!==arguments[2]?arguments[2]:l,d);if(null==t)return null;var r=t.chunk,n=t.entityMap,o=function(e){if(!e||!e.text||!Array.isArray(e.blocks))return null;var t=0,r=e.blocks,n=e.inlines,o=e.entities,i=S?u:c;return e.text.split("\r").reduce(function(e,a,c){a=w(a);var l=r[c],d=t+a.length,f=n.slice(t,d),p=o.slice(t,d),h=x(f.map(function(e,t){var r={style:e,entity:null};return p[t]&&(r.entity=p[t]),s.create(r)}));t=d+1;var g=l.depth,y=l.type,b=l.parent,v=l.key||m(),S=null;if(b){var E=e.cacheRef[b],_=e.contentBlocks[E];if(_.getChildKeys().isEmpty()&&_.getText()){var O=_.getCharacterList(),C=_.getText();S=m();var k=new u({key:S,text:C,characterList:O,parent:b,nextSibling:v});e.contentBlocks.push(k),_=_.withMutations(function(e){e.set("characterList",x()).set("text","").set("children",_.children.push(k.getKey()))})}e.contentBlocks[E]=_.set("children",_.children.push(v))}var A=new i({key:v,parent:b,type:y,depth:g,text:a,characterList:h,prevSibling:S||(0===c||r[c-1].parent!==b?null:r[c-1].key),nextSibling:c===r.length-1||r[c+1].parent!==b?null:r[c+1].key});return e.contentBlocks.push(A),e.cacheRef[A.key]=c,e},{cacheRef:{},contentBlocks:[]}).contentBlocks}(r);return{contentBlocks:o,entityMap:n}}},428(e,t,r){"use strict";var n=r(5228)||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=r(6840),i=r(5224),a=r(7656),s=r(1608),c=r(2938),u=r(2396),l=r(9404),d=r(1381),f=r(803),p=r(2401),h=r(3830),g=r(6991),y=r(646),m=c.draft_tree_data_support,b=l.List,v=l.Map,w=l.OrderedMap,S=function(e,t){var r=e.key,n=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:n||"unstyled",key:r||g(),data:v(o),characterList:x(e,t)}},x=function(e,t){var r=e.text,o=e.entityRanges,i=e.inlineStyleRanges,a=o||[];return f(h(r,i||[]),p(r,a.filter(function(e){return t.hasOwnProperty(e.key)}).map(function(e){return n({},e,{key:t[e.key]})})))},E=function(e){return n({},e,{key:e.key||g()})},_=function(e,t,r){var o=t.map(function(e){return n({},e,{parentRef:r})});return e.concat(o.reverse())};e.exports=function(e){Array.isArray(e.blocks)||y(!1);var t=function(e){var t=e.entityMap,r={};return Object.keys(t).forEach(function(e){var n=t[e],o=n.type,i=n.mutability,a=n.data;r[e]=s.__create(o,i,a||{})}),r}(e),r=function(e,t){var r=Array.isArray(e.blocks[0].children),a=m&&!r?u.fromRawStateToRawTreeState(e).blocks:e.blocks;return m?function(e,t){return e.map(E).reduce(function(r,o,a){Array.isArray(o.children)||y(!1);var s=o.children.map(E),c=new i(n({},S(o,t),{prevSibling:0===a?null:e[a-1].key,nextSibling:a===e.length-1?null:e[a+1].key,children:b(s.map(function(e){return e.key}))}));r=r.set(c.getKey(),c);for(var u=_([],s,c);u.length>0;){var l=u.pop(),d=l.parentRef,f=d.getChildKeys(),p=f.indexOf(l.key),h=Array.isArray(l.children);if(!h){h||y(!1);break}var g=l.children.map(E),m=new i(n({},S(l,t),{parent:d.getKey(),children:b(g.map(function(e){return e.key})),prevSibling:0===p?null:f.get(p-1),nextSibling:p===f.size-1?null:f.get(p+1)}));r=r.set(m.getKey(),m),u=_(u,g,m)}return r},w())}(a,t):function(e,t){return w(e.map(function(e){var r=new o(S(e,t));return[r.getKey(),r]}))}(r?u.fromRawTreeStateToRawState(e).blocks:a,t)}(e,t),c=r.isEmpty()?new d:d.createEmpty(r.first().getKey());return new a({blockMap:r,entityMap:t,selectionBefore:c,selectionAfter:c})}},803(e,t,r){"use strict";var n=r(3018),o=r(9404).List;e.exports=function(e,t){var r=e.map(function(e,r){var o=t[r];return n.create({style:e,entity:o})});return o(r)}},2401(e,t,r){"use strict";var n=r(580).substr;e.exports=function(e,t){var r=Array(e.length).fill(null);return t&&t.forEach(function(t){for(var o=n(e,0,t.offset).length,i=o+n(e,t.offset,t.length).length,a=o;a<i;a++)r[a]=t.key}),r}},3830(e,t,r){"use strict";var n=r(9404).OrderedSet,o=r(580).substr,i=n();e.exports=function(e,t){var r=Array(e.length).fill(i);return t&&t.forEach(function(t){for(var n=o(e,0,t.offset).length,i=n+o(e,t.offset,t.length).length;n<i;)r[n]=r[n].add(t.style),n++}),r}},3722(e,t,r){"use strict";var n=r(9981),o=r(9938),i=r(2242),a=r(4134),s=r(9927),c=r(3680),u=r(7759),l=r(6408),d=r(9765),f=a.isBrowser("Firefox");function p(e,t,r,n){var a=o.replaceText(e.getCurrentContent(),e.getSelection(),t,r,n);return i.push(e,a,"insert-characters")}e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var r=e._latestEditorState,o=t.data;if(o)if(e.props.handleBeforeInput&&c(e.props.handleBeforeInput(o,r)))t.preventDefault();else{var a=r.getSelection(),h=a.getStartOffset(),g=a.getEndOffset(),y=a.getAnchorKey();if(!a.isCollapsed())return t.preventDefault(),void(o===r.getCurrentContent().getPlainText().slice(h,g)?e.update(i.forceSelection(r,a.merge({focusOffset:g}))):e.update(p(r,o,r.getCurrentInlineStyle(),s(r.getCurrentContent(),r.getSelection()))));var m,b=p(r,o,r.getCurrentInlineStyle(),s(r.getCurrentContent(),r.getSelection())),v=!1;if(v||(v=u(e._latestCommittedEditorState)),!v){var w=globalThis.getSelection();if(w.anchorNode&&w.anchorNode.nodeType===Node.TEXT_NODE){var S=w.anchorNode.parentNode;v="SPAN"===S.nodeName&&S.firstChild.nodeType===Node.TEXT_NODE&&-1!==S.firstChild.nodeValue.indexOf("\t")}}if(v||(v=n.getFingerprint(r.getBlockTree(y))!==n.getFingerprint(b.getBlockTree(y))),v||(m=o,v=f&&("'"==m||"/"==m)),v||(v=l(b.getDirectionMap()).get(y)!==l(r.getDirectionMap()).get(y)),v)return t.preventDefault(),void e.update(b);b=i.set(b,{nativelyRenderedContent:b.getCurrentContent()}),e._pendingStateFromBeforeInput=b,d(function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)})}}},8058(e,t,r){"use strict";var n=r(2242),o=r(4909),i=r(9758);e.exports=function(e,t){if(i()===document.body){var r=globalThis.getSelection(),a=e.editor;1===r.rangeCount&&o(a,r.anchorNode)&&o(a,r.focusNode)&&r.removeAllRanges()}var s=e._latestEditorState,c=s.getSelection();if(c.getHasFocus()){var u=c.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(n.acceptSelection(s,u))}}},7141(e,t,r){"use strict";var n=r(2242);e.exports=function(e,t){e.setMode("composite"),e.update(n.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}},3694(e,t,r){"use strict";var n=r(1296);e.exports=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(n(e._latestEditorState))}},3919(e,t,r){"use strict";var n=r(9938),o=r(2242),i=r(2935),a=r(1296),s=r(7392);e.exports=function(e,t){var r=e._latestEditorState,c=r.getSelection(),u=t.target,l=void 0;if(c.isCollapsed())t.preventDefault();else{u instanceof Node&&(l=s(i.getScrollParent(u)));var d=a(r);e.setClipboard(d),e.setMode("cut"),setTimeout(function(){e.restoreEditorDOM(l),e.exitCurrentMode(),e.update(function(e){var t=n.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return o.push(e,t,"remove-range")}(r))},0)}}},6127(e){"use strict";e.exports=function(e,t){e._internalDrag=!1,e.setMode("drag"),t.preventDefault()}},4861(e){"use strict";e.exports=function(e){e._internalDrag=!0,e.setMode("drag")}},4447(e,t,r){"use strict";var n=r(2242),o=r(4134);e.exports=function(e,t){var r=e._latestEditorState,i=r.getSelection();if(!i.getHasFocus()){var a=i.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),o.isBrowser("Chrome < 60.0.3081.0")?e.update(n.forceSelection(r,a)):e.update(n.acceptSelection(r,a))}}},5091(e,t,r){"use strict";var n=r(2938),o=r(9938),i=r(3885),a=r(2242),s=r(4134),c=r(8372),u=r(6408),l=s.isEngine("Gecko");e.exports=function(e){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var t=globalThis.getSelection(),r=t.anchorNode,s=t.isCollapsed,d=r.nodeType!==Node.TEXT_NODE,f=r.nodeType!==Node.TEXT_NODE&&r.nodeType!==Node.ELEMENT_NODE;if(n.draft_killswitch_allow_nontextnodes){if(d)return}else if(f)return;if(r.nodeType===Node.TEXT_NODE&&(null!==r.previousSibling||null!==r.nextSibling)){var p=r.parentNode;r.nodeValue=p.textContent;for(var h=p.firstChild;null!==h;h=h.nextSibling)h!==r&&p.removeChild(h)}var g=r.textContent,y=e._latestEditorState,m=u(c(r)),b=i.decode(m),v=b.blockKey,w=b.decoratorKey,S=b.leafKey,x=y.getBlockTree(v).getIn([w,"leaves",S]),E=x.start,_=x.end,O=y.getCurrentContent(),C=O.getBlockForKey(v),k=C.getText().slice(E,_);if(g.endsWith("\n\n")&&(g=g.slice(0,-1)),g!==k){var A,T,I,P,D=y.getSelection(),L=D.merge({anchorOffset:E,focusOffset:_,isBackward:!1}),M=C.getEntityAt(E),R=M&&O.getEntity(M),j="MUTABLE"===(R&&R.getMutability()),N=j?"spellcheck-change":"apply-entity",F=o.replaceText(O,L,g,C.getInlineStyleAt(E),j?C.getEntityAt(E):null);if(l)A=t.anchorOffset,T=t.focusOffset,P=(I=E+Math.min(A,T))+Math.abs(A-T),A=I,T=P;else{var B=g.length-k.length;I=D.getStartOffset(),P=D.getEndOffset(),A=s?P+B:I,T=P+B}var U=F.merge({selectionBefore:O.getSelectionAfter(),selectionAfter:D.merge({anchorOffset:A,focusOffset:T})});e.update(a.push(y,U,N))}}},8136(e,t,r){"use strict";var n=r(9938),o=r(2242),i=r(9414),a=r(5852),s=r(5170),c=r(4134),u=r(3680),l=r(8771),d=r(4143),f=r(525),p=r(4071),h=r(5169),g=r(70),y=r(7381),m=r(2383),b=r(5935),v=r(8976),w=i.isOptionKeyCommand,S=c.isBrowser("Chrome");e.exports=function(e,t){var r=t.which,i=e._latestEditorState;switch(r){case a.RETURN:if(t.preventDefault(),e.props.handleReturn&&u(e.props.handleReturn(t,i)))return;break;case a.ESC:return t.preventDefault(),void(e.props.onEscape&&e.props.onEscape(t));case a.TAB:return void(e.props.onTab&&e.props.onTab(t));case a.UP:return void(e.props.onUpArrow&&e.props.onUpArrow(t));case a.RIGHT:return void(e.props.onRightArrow&&e.props.onRightArrow(t));case a.DOWN:return void(e.props.onDownArrow&&e.props.onDownArrow(t));case a.LEFT:return void(e.props.onLeftArrow&&e.props.onLeftArrow(t));case a.SPACE:if(S&&w(t)){t.preventDefault();var c=n.replaceText(i.getCurrentContent(),i.getSelection()," ");return void e.update(o.push(i,c,"insert-characters"))}}var x=e.props.keyBindingFn(t);if(x)if("undo"!==x){if(t.preventDefault(),!e.props.handleKeyCommand||!u(e.props.handleKeyCommand(x,i))){var E=function(e,t){switch(e){case"redo":return o.redo(t);case"delete":return m(t);case"delete-word":return f(t);case"backspace":return y(t);case"backspace-word":return d(t);case"backspace-to-start-of-line":return l(t);case"split-block":return p(t);case"transpose-characters":return b(t);case"move-selection-to-start-of-block":return g(t);case"move-selection-to-end-of-block":return h(t);case"secondary-cut":return s.cut(t);case"secondary-paste":return s.paste(t);default:return t}}(x,i);E!==i&&e.update(E)}}else v(t,i,e.update)}},2208(e,t,r){"use strict";var n=r(5748),o=r(3018),i=r(2395),a=r(9938),s=r(46),c=r(2242),u=r(4637),l=r(9927),d=r(723),f=r(3680),p=r(3676);function h(e,t,r){var n=a.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return c.push(e,n.set("entityMap",r),"insert-fragment")}e.exports=function(e,t){t.preventDefault();var r=new i(t.clipboardData);if(!r.isRichText()){var g=r.getFiles(),y=r.getText();if(g.length>0){if(e.props.handlePastedFiles&&f(e.props.handlePastedFiles(g)))return;return void d(g,function(t){if(t=t||y){var r=e._latestEditorState,i=p(t),d=o.create({style:r.getCurrentInlineStyle(),entity:l(r.getCurrentContent(),r.getSelection())}),f=u.getCurrentBlockType(r),h=s.processText(i,d,f),g=n.createFromArray(h),m=a.replaceWithFragment(r.getCurrentContent(),r.getSelection(),g);e.update(c.push(r,m,"insert-fragment"))}})}}var m=[],b=r.getText(),v=r.getHTML(),w=e._latestEditorState;if(!e.props.handlePastedText||!f(e.props.handlePastedText(b,v,w))){if(b&&(m=p(b)),!e.props.stripPastedStyles){var S=e.getClipboard();if(r.isRichText()&&S){if(-1!==v.indexOf(e.getEditorKey())||1===m.length&&1===S.size&&S.first().getText()===b)return void e.update(h(e._latestEditorState,S))}else if(S&&r.types.includes("com.apple.webarchive")&&!r.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every(function(t,r){return t.getText()===e[r]})}(m,S))return void e.update(h(e._latestEditorState,S));if(v){var x=s.processHTML(v,e.props.blockRenderMap);if(x){var E=x.contentBlocks,_=x.entityMap;if(E){var O=n.createFromArray(E);return void e.update(h(e._latestEditorState,O,_))}}}e.setClipboard(null)}if(m.length){var C=o.create({style:w.getCurrentInlineStyle(),entity:l(w.getCurrentContent(),w.getSelection())}),k=u.getCurrentBlockType(w),A=s.processText(m,C,k),T=n.createFromArray(A);e.update(h(e._latestEditorState,T))}}}},6207(e,t,r){"use strict";var n=r(2242),o=r(2326),i=r(120),a=r(646);e.exports=function(e){if(!e._blockSelectEvents&&e._latestEditorState===e.props.editorState){var t=e.props.editorState,r=o.findDOMNode(e.editorContainer);r||a(!1),r.firstChild instanceof HTMLElement||a(!1);var s=i(t,r.firstChild),c=s.selectionState;c!==t.getSelection()&&(t=s.needsRecovery?n.forceSelection(t,c):n.acceptSelection(t,c),e.update(t))}}},7862(e,t,r){"use strict";var n=r(1439),o=r(580).strlen;e.exports=function(e,t){var r=[];return e.findEntityRanges(function(e){return!!e.getEntity()},function(i,a){var s=e.getText(),c=e.getEntityAt(i);r.push({offset:o(s.slice(0,i)),length:o(s.slice(i,a)),key:Number(t[n.stringify(c)])})}),r}},702(e,t,r){"use strict";var n=r(580),o=r(8227),i=function(e,t){return e===t},a=function(e){return!!e},s=[];e.exports=function(e){var t=e.getCharacterList().map(function(e){return e.getStyle()}).toList(),r=t.flatten().toSet().map(function(r){return function(e,t,r){var s=[],c=t.map(function(e){return e.has(r)}).toList();return o(c,i,a,function(t,o){var i=e.getText();s.push({offset:n.strlen(i.slice(0,t)),length:n.strlen(i.slice(t,o)),style:r})}),s}(e,t,r)});return Array.prototype.concat.apply(s,r.toJS())}},5989(e,t,r){"use strict";var n=r(580),o=r(5377),i=r(646);function a(e,t){for(var r=1/0,n=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var s=e[a];0!==s.width&&1!==s.width&&(r=Math.min(r,s.top),n=Math.min(n,s.bottom),o=Math.max(o,s.top),i=Math.max(i,s.bottom))}return o<=n&&o-r<t&&i-n<t}function s(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}e.exports=function(e){e.collapsed||i(!1);var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var r=function(e){var t=getComputedStyle(e),r=document.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var n=document.body;n||i(!1),n.appendChild(r);var o=r.getBoundingClientRect();return n.removeChild(r),o.height}(t),c=e.endContainer,u=e.endOffset;for(e.setStart(e.startContainer,0);a(o(e),r)&&(c=e.startContainer,u=e.startOffset,c.parentNode||i(!1),e.setStartBefore(c),1!==c.nodeType||"inline"===getComputedStyle(c).display););for(var l=c,d=u-1;;){for(var f=l.nodeValue,p=d;p>=0;p--)if(!(null!=f&&p>0&&n.isSurrogatePair(f,p-1))){if(e.setStart(l,p),!a(o(e),r))break;c=l,u=p}if(-1===p||0===l.childNodes.length)break;d=s(l=l.childNodes[p])}return e.setStart(c,u),e}},8372(e,t,r){"use strict";var n=r(4453);e.exports=function(e){for(var t=e;t&&t!==document.documentElement;){var r=n(t);if(null!=r)return r;t=t.parentNode}return null}},8227(e){"use strict";e.exports=function(e,t,r,n){if(e.size){var o=0;e.reduce(function(e,i,a){return t(e,i)||(r(e)&&n(o,a),o=a),i}),r(e.last())&&n(o,e.count())}}},6991(e){"use strict";var t={},r=Math.pow(2,24);e.exports=function(){for(var e=void 0;void 0===e||t.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*r).toString(32);return t[e]=!0,e}},508(e,t,r){"use strict";var n=r(8382),o=r(9311),i=r(646);function a(e,t,r,a,s,c,u){var l=r.getStartOffset(),d=r.getEndOffset(),f=e.__get(s).getMutability(),p=u?l:d;if("MUTABLE"===f)return r;var h=o(t,s).filter(function(e){return p<=e.end&&p>=e.start});1!=h.length&&i(!1);var g=h[0];if("IMMUTABLE"===f)return r.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1});c||(u?d=g.end:l=g.start);var y=n.getRemovalRange(l,d,t.getText().slice(g.start,g.end),g.start,a);return r.merge({anchorOffset:y.start,focusOffset:y.end,isBackward:!1})}e.exports=function(e,t,r,n,o){var i=n.getStartOffset(),s=n.getEndOffset(),c=t.getEntityAt(i),u=r.getEntityAt(s-1);if(!c&&!u)return n;var l=n;if(c&&c===u)l=a(e,t,l,o,c,!0,!0);else if(c&&u){var d=a(e,t,l,o,c,!1,!0),f=a(e,r,l,o,u,!1,!1);l=l.merge({anchorOffset:d.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(c){var p=a(e,t,l,o,c,!1,!0);l=l.merge({anchorOffset:p.getStartOffset(),isBackward:!1})}else if(u){var h=a(e,r,l,o,u,!1,!1);l=l.merge({focusOffset:h.getEndOffset(),isBackward:!1})}return l}},866(e,t,r){"use strict";var n=r(3310),o=r(6044);e.exports=function(e,t){var r=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=o(e,t).getBlockMap(),u=c.keySeq(),l=u.indexOf(r),d=u.indexOf(a)+1;return n(c.slice(l,d).map(function(e,t){var n=e.getText(),o=e.getCharacterList();return r===a?e.merge({text:n.slice(i,s),characterList:o.slice(i,s)}):t===r?e.merge({text:n.slice(i),characterList:o.slice(i)}):t===a?e.merge({text:n.slice(0,s),characterList:o.slice(0,s)}):e}))}},7811(e,t,r){"use strict";var n=r(9414),o=r(5852),i=r(4134),a=i.isPlatform("Mac OS X"),s=i.isPlatform("Windows"),c=a&&i.isBrowser("Firefox < 29"),u=n.hasCommandModifier,l=n.isCtrlKeyCommand;function d(e){return a&&e.altKey||l(e)}e.exports=function(e){switch(e.keyCode){case 66:return u(e)?"bold":null;case 68:return l(e)?"delete":null;case 72:return l(e)?"backspace":null;case 73:return u(e)?"italic":null;case 74:return u(e)?"code":null;case 75:return!s&&l(e)?"secondary-cut":null;case 77:case 79:return l(e)?"split-block":null;case 84:return a&&l(e)?"transpose-characters":null;case 85:return u(e)?"underline":null;case 87:return a&&l(e)?"backspace-word":null;case 89:return l(e)?s?"redo":"secondary-paste":null;case 90:return function(e){return u(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o.RETURN:return"split-block";case o.DELETE:return function(e){return s&&e.shiftKey?null:d(e)?"delete-word":"delete"}(e);case o.BACKSPACE:return function(e){return u(e)&&a?"backspace-to-start-of-line":d(e)?"backspace-word":"backspace"}(e);case o.LEFT:return c&&u(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return c&&u(e)?"move-selection-to-end-of-block":null;default:return null}}},120(e,t,r){"use strict";var n=r(9215);e.exports=function(e,t){var r=globalThis.getSelection();return 0===r.rangeCount?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:n(e,t,r.anchorNode,r.anchorOffset,r.focusNode,r.focusOffset)}},9215(e,t,r){"use strict";var n=r(8372),o=r(4453),i=r(9450),a=r(646),s=r(6408);function c(e,t,r){var i=t,c=n(i);if(null!=c||e&&(e===i||e.firstChild===i)||a(!1),e===i&&((i=i.firstChild)instanceof Element&&"true"===i.getAttribute("data-contents")||a(!1),r>0&&(r=i.childNodes.length)),0===r){var l=null;if(null!=c)l=c;else{var d=function(e){for(;e.firstChild&&(e.firstChild instanceof Element&&"true"===e.firstChild.getAttribute("data-blocks")||o(e.firstChild));)e=e.firstChild;return e}(i);l=s(o(d))}return{key:l,offset:0}}var f=i.childNodes[r-1],p=null,h=null;if(o(f)){var g=function(e){for(;e.lastChild&&(e.lastChild instanceof Element&&"true"===e.lastChild.getAttribute("data-blocks")||o(e.lastChild));)e=e.lastChild;return e}(f);p=s(o(g)),h=u(g)}else p=s(c),h=u(f);return{key:p,offset:h}}function u(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,r,o,a,u){var l=r.nodeType===Node.TEXT_NODE,d=a.nodeType===Node.TEXT_NODE;if(l&&d)return{selectionState:i(e,s(n(r)),o,s(n(a)),u),needsRecovery:!1};var f=null,p=null,h=!0;return l?(f={key:s(n(r)),offset:o},p=c(t,a,u)):d?(p={key:s(n(a)),offset:u},f=c(t,r,o)):(f=c(t,r,o),p=c(t,a,u),r===a&&o===u&&(h=!!r.firstChild&&"BR"!==r.firstChild.nodeName)),{selectionState:i(e,f.key,f.offset,p.key,p.offset),needsRecovery:h}}},9927(e){"use strict";function t(e,t){return t&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,r){var n;if(r.isCollapsed()){var o=r.getAnchorKey(),i=r.getAnchorOffset();return i>0?(n=e.getBlockForKey(o).getEntityAt(i-1))!==e.getBlockForKey(o).getEntityAt(i)?null:t(e.getEntityMap(),n):null}var a=r.getStartKey(),s=r.getStartOffset(),c=e.getBlockForKey(a);return n=s===c.getLength()?null:c.getEntityAt(s),t(e.getEntityMap(),n)}},1296(e,t,r){"use strict";var n=r(866);e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:n(e.getCurrentContent(),t)}},7376(e,t,r){"use strict";var n=r(5224);e.exports=function(e,t){if(!(e instanceof n))return null;var r=e.getNextSiblingKey();if(r)return r;var o=e.getParentKey();if(!o)return null;for(var i=t.get(o);i&&!i.getNextSiblingKey();){var a=i.getParentKey();i=a?t.get(a):null}return i?i.getNextSiblingKey():null}},4658(e,t,r){"use strict";var n=r(5377);e.exports=function(e){var t=n(e),r=0,o=0,i=0,a=0;if(t.length){if(t.length>1&&0===t[0].width){var s=t[1];r=s.top,o=s.right,i=s.bottom,a=s.left}else{var c=t[0];r=c.top,o=c.right,i=c.bottom,a=c.left}for(var u=1;u<t.length;u++){var l=t[u];0!==l.height&&0!==l.width&&(r=Math.min(r,l.top),o=Math.max(o,l.right),i=Math.max(i,l.bottom),a=Math.min(a,l.left))}}return{top:r,right:o,bottom:i,left:a,width:o-a,height:i-r}}},5377(e,t,r){"use strict";var n=r(4134),o=r(646),i=n.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),r=[],n=e.endContainer;null!=n;n=n.parentNode){var i=n===e.commonAncestorContainer;i?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var a,s=Array.from(t.getClientRects());if(r.push(s),i)return r.reverse(),(a=[]).concat.apply(a,r);t.setEndBefore(n)}o(!1)}:function(e){return Array.from(e.getClientRects())};e.exports=i},9311(e,t,r){"use strict";var n=r(646);e.exports=function(e,t){var r=[];return e.findEntityRanges(function(e){return e.getEntity()===t},function(e,t){r.push({start:e,end:t})}),r.length||n(!1),r}},9248(e,t,r){"use strict";var n=r(4134),o=r(646),i=n.isBrowser("IE <= 9");e.exports=function(e){var t,r=null;return!i&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||o(!1),t.documentElement.innerHTML=e,r=t.getElementsByTagName("body")[0]),r}},4453(e){"use strict";e.exports=function e(t){if(t instanceof Element){var r=t.getAttribute("data-offset-key");if(r)return r;for(var n=0;n<t.childNodes.length;n++){var o=e(t.childNodes[n]);if(o)return o}}return null}},723(e,t,r){"use strict";var n=r(646),o=/\.textClipping$/,i={"text/plain":!0,"text/html":!0,"text/rtf":!0};e.exports=function(e,t){var r=0,a=[];e.forEach(function(s){!function(e,t){if(!globalThis.FileReader||e.type&&!(e.type in i))t("");else{if(""===e.type){var r="";return o.test(e.name)&&(r=e.name.replace(o,"")),void t(r)}var a=new FileReader;a.onload=function(){var e=a.result;"string"!=typeof e&&n(!1),t(e)},a.onerror=function(){t("")},a.readAsText(e)}}(s,function(n){r++,n&&a.push(n.slice(0,5e3)),r==e.length&&t(a.join("\r"))})})}},9450(e,t,r){"use strict";var n=r(3885),o=r(6408);e.exports=function(e,t,r,i,a){var s=o(e.getSelection()),c=n.decode(t),u=c.blockKey,l=e.getBlockTree(u).getIn([c.decoratorKey,"leaves",c.leafKey]),d=n.decode(i),f=d.blockKey,p=e.getBlockTree(f).getIn([d.decoratorKey,"leaves",d.leafKey]),h=l.get("start"),g=p.get("start"),y=l?h+r:null,m=p?g+a:null;if(s.getAnchorKey()===u&&s.getAnchorOffset()===y&&s.getFocusKey()===f&&s.getFocusOffset()===m)return s;var b=!1;if(u===f){var v=l.get("end"),w=p.get("end");b=g===h&&w===v?a<r:g<h}else b=e.getCurrentContent().getBlockMap().keySeq().skipUntil(function(e){return e===u||e===f}).first()===f;return s.merge({anchorKey:u,anchorOffset:y,focusKey:f,focusOffset:m,isBackward:b})}},894(e,t,r){"use strict";var n=r(4658);e.exports=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var r=t.getRangeAt(0),o=n(r),i=o.top,a=o.right,s=o.bottom,c=o.left;return 0===i&&0===a&&0===s&&0===c?null:o}},9127(e,t,r){"use strict";var n=r(5748),o=r(5224),i=r(9404),a=r(6269),s=r(646),c=r(3310),u=i.List;e.exports=function(e,t,r){t.isCollapsed()||s(!1);var i=e.getBlockMap(),l=c(r),d=t.getStartKey(),f=t.getStartOffset(),p=i.get(d);return p instanceof o&&(p.getChildKeys().isEmpty()||s(!1)),1===l.size?function(e,t,r,n,o,i){var s=r.get(o),c=s.getText(),u=s.getCharacterList(),l=o,d=i+n.getText().length,f=s.merge({text:c.slice(0,i)+n.getText()+c.slice(i),characterList:a(u,n.getCharacterList(),i),data:n.getData()});return e.merge({blockMap:r.set(o,f),selectionBefore:t,selectionAfter:t.merge({anchorKey:l,anchorOffset:d,focusKey:l,focusOffset:d,isBackward:!1})})}(e,t,i,l.first(),d,f):function(e,t,r,i,a,s){var c=r.first()instanceof o,l=[],d=i.size,f=r.get(a),p=i.first(),h=i.last(),g=h.getLength(),y=h.getKey(),m=c&&(!f.getChildKeys().isEmpty()||!p.getChildKeys().isEmpty());r.forEach(function(e,t){t===a?(m?l.push(e):l.push(function(e,t,r){var n=e.getText(),o=e.getCharacterList(),i=n.slice(0,t),a=o.slice(0,t),s=r.first();return e.merge({text:i+s.getText(),characterList:a.concat(s.getCharacterList()),type:i?e.getType():s.getType(),data:s.getData()})}(e,s,i)),i.slice(m?0:1,d-1).forEach(function(e){return l.push(e)}),l.push(function(e,t,r){var n=e.getText(),o=e.getCharacterList(),i=n.length,a=n.slice(t,i),s=o.slice(t,i),c=r.last();return c.merge({text:c.getText()+a,characterList:c.getCharacterList().concat(s),data:c.getData()})}(e,s,i))):l.push(e)});var b=n.createFromArray(l);return c&&(b=function(e,t,r,n){return e.withMutations(function(t){var o=r.getKey(),i=n.getKey(),a=r.getNextSiblingKey(),s=r.getParentKey(),c=function(e,t){var r=e.getKey(),n=e,o=[];for(t.get(r)&&o.push(r);n&&n.getNextSiblingKey();){var i=n.getNextSiblingKey();if(!i)break;o.push(i),n=t.get(i)}return o}(n,e),l=c[c.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],n.getNextSiblingKey()),t.setIn([n.getNextSiblingKey(),"prevSibling"],o)),t.setIn([l,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],l),c.forEach(function(e){return t.setIn([e,"parent"],s)}),s){var d=e.get(s).getChildKeys(),f=d.indexOf(o)+1,p=d.toArray();p.splice.apply(p,[f,0].concat(c)),t.setIn([s,"children"],u(p))}})}(b,0,f,p)),e.merge({blockMap:b,selectionBefore:t,selectionAfter:t.merge({anchorKey:y,anchorOffset:g,focusKey:y,focusOffset:g,isBackward:!1})})}(e,t,i,l,d,f)}},6269(e){"use strict";e.exports=function(e,t,r){if(r===e.count())t.forEach(function(t){e=e.push(t)});else if(0===r)t.reverse().forEach(function(t){e=e.unshift(t)});else{var n=e.slice(0,r),o=e.slice(r);e=n.concat(t,o).toList()}return e}},3136(e,t,r){"use strict";var n=r(9404),o=r(6269),i=r(646),a=n.Repeat;e.exports=function(e,t,r,n){t.isCollapsed()||i(!1);var s=r.length;if(!s)return e;var c=e.getBlockMap(),u=t.getStartKey(),l=t.getStartOffset(),d=c.get(u),f=d.getText(),p=d.merge({text:f.slice(0,l)+r+f.slice(l,d.getLength()),characterList:o(d.getCharacterList(),a(n,s).toList(),l)}),h=l+s;return e.merge({blockMap:c.set(u,p),selectionAfter:t.merge({anchorOffset:h,focusOffset:h})})}},3680(e){"use strict";e.exports=function(e){return"handled"===e||!0===e}},7759(e){"use strict";e.exports=function(e){var t=e.getSelection(),r=t.getAnchorKey(),n=e.getBlockTree(r),o=t.getStartOffset(),i=!1;return n.some(function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some(function(e){var t=e.get("start");return o===t&&(i=!0,!0)})}),i}},8771(e,t,r){"use strict";var n=r(2242),o=r(5989),i=r(9215),a=r(8488),s=r(5188);e.exports=function(e){var t=s(e,function(e){var t=e.getSelection();if(t.isCollapsed()&&0===t.getAnchorOffset())return a(e,1);var r=globalThis.getSelection().getRangeAt(0);return r=o(r),i(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState},"backward");return t===e.getCurrentContent()?e:n.push(e,t,"remove-range")}},4143(e,t,r){"use strict";var n=r(1617),o=r(2242),i=r(8488),a=r(5188);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),r=t.getStartOffset();if(0===r)return i(e,1);var o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(0,r),s=n.getBackward(a);return i(e,s.length||1)},"backward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},525(e,t,r){"use strict";var n=r(1617),o=r(2242),i=r(7800),a=r(5188);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),r=t.getStartOffset(),o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(r),s=n.getForward(a);return i(e,s.length||1)},"forward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},4071(e,t,r){"use strict";var n=r(9938),o=r(2242);e.exports=function(e){var t=n.splitBlock(e.getCurrentContent(),e.getSelection());return o.push(e,t,"split-block")}},5169(e,t,r){"use strict";var n=r(2242);e.exports=function(e){var t=e.getSelection(),r=t.getEndKey(),o=e.getCurrentContent().getBlockForKey(r).getLength();return n.set(e,{selection:t.merge({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}),forceSelection:!0})}},70(e,t,r){"use strict";var n=r(2242);e.exports=function(e){var t=e.getSelection(),r=t.getStartKey();return n.set(e,{selection:t.merge({anchorKey:r,anchorOffset:0,focusKey:r,focusOffset:0,isBackward:!1}),forceSelection:!0})}},7381(e,t,r){"use strict";var n=r(2242),o=r(580),i=r(8488),a=r(5188);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),r=e.getCurrentContent(),n=t.getAnchorKey(),a=t.getAnchorOffset(),s=r.getBlockForKey(n).getText()[a-1];return i(e,s?o.getUTF16Length(s,0):1)},"backward");if(t===e.getCurrentContent())return e;var r=e.getSelection();return n.push(e,t.set("selectionBefore",r),r.isCollapsed()?"backspace-character":"remove-range")}},2383(e,t,r){"use strict";var n=r(2242),o=r(580),i=r(7800),a=r(5188);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),r=e.getCurrentContent(),n=t.getAnchorKey(),a=t.getAnchorOffset(),s=r.getBlockForKey(n).getText()[a];return i(e,s?o.getUTF16Length(s,0):1)},"forward");if(t===e.getCurrentContent())return e;var r=e.getSelection();return n.push(e,t.set("selectionBefore",r),r.isCollapsed()?"delete-character":"remove-range")}},5935(e,t,r){"use strict";var n=r(9938),o=r(2242),i=r(866);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var r=t.getAnchorOffset();if(0===r)return e;var a,s,c=t.getAnchorKey(),u=e.getCurrentContent(),l=u.getBlockForKey(c).getLength();if(l<=1)return e;r===l?(a=t.set("anchorOffset",r-1),s=t):s=(a=t.set("focusOffset",r+1)).set("anchorOffset",r+1);var d=i(u,a),f=n.removeRange(u,a,"backward"),p=f.getSelectionAfter(),h=p.getAnchorOffset()-1,g=p.merge({anchorOffset:h,focusOffset:h}),y=n.replaceWithFragment(f,g,d),m=o.push(e,y,"insert-fragment");return o.acceptSelection(m,s)}},8976(e,t,r){"use strict";var n=r(2242);e.exports=function(e,t,r){var o=n.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(r(n.set(t,{nativelyRenderedContent:null})),setTimeout(function(){r(o)},0)):r(o);else{var i=o.getCurrentContent();r(n.set(o,{nativelyRenderedContent:i}))}}},5462(e,t,r){"use strict";var n=r(9404).Map;e.exports=function(e,t,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===i}).concat(n([[i,a.get(i)]])).map(r);return e.merge({blockMap:a.merge(s),selectionBefore:t,selectionAfter:t})}},6059(e,t,r){"use strict";var n=r(5224),o=r(9404),i=r(7376),a=r(646),s=o.OrderedMap,c=o.List,u=function(e,t,r){if(e){var n=t.get(e);n&&t.set(e,r(n))}},l=function(e,t,r,n,o){if(!o)return e;var i="after"===n,a=t.getKey(),s=r.getKey(),l=t.getParentKey(),d=t.getNextSiblingKey(),f=t.getPrevSiblingKey(),p=r.getParentKey(),h=i?r.getNextSiblingKey():s,g=i?s:r.getPrevSiblingKey();return e.withMutations(function(e){u(l,e,function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})}),u(f,e,function(e){return e.merge({nextSibling:d})}),u(d,e,function(e){return e.merge({prevSibling:f})}),u(h,e,function(e){return e.merge({prevSibling:a})}),u(g,e,function(e){return e.merge({nextSibling:a})}),u(p,e,function(e){var t=e.getChildKeys(),r=t.indexOf(s),n=i?r+1:0!==r?r-1:0,o=t.toArray();return o.splice(n,0,a),e.merge({children:c(o)})}),u(a,e,function(e){return e.merge({nextSibling:h,prevSibling:g,parent:p})})})};e.exports=function(e,t,r,o){"replace"===o&&a(!1);var c=r.getKey(),u=t.getKey();u===c&&a(!1);var d=e.getBlockMap(),f=t instanceof n,p=[t],h=d.delete(u);f&&(p=[],h=d.withMutations(function(e){var r=t.getNextSiblingKey(),n=i(t,e);e.toSeq().skipUntil(function(e){return e.getKey()===u}).takeWhile(function(e){var t=e.getKey(),o=t===u,i=r&&t!==r,a=!r&&e.getParentKey()&&(!n||t!==n);return!!(o||i||a)}).forEach(function(t){p.push(t),e.delete(t.getKey())})}));var g=h.toSeq().takeUntil(function(e){return e===r}),y=h.toSeq().skipUntil(function(e){return e===r}).skip(1),m=p.map(function(e){return[e.getKey(),e]}),b=s();if("before"===o){var v=e.getBlockBefore(c);v&&v.getKey()===t.getKey()&&a(!1),b=g.concat([].concat(m,[[c,r]]),y).toOrderedMap()}else if("after"===o){var w=e.getBlockAfter(c);w&&w.getKey()===u&&a(!1),b=g.concat([[c,r]].concat(m),y).toOrderedMap()}return e.merge({blockMap:l(b,t,r,o,f),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:u,focusKey:u})})}},8488(e){"use strict";e.exports=function(e,t){var r=e.getSelection(),n=e.getCurrentContent(),o=r.getStartKey(),i=r.getStartOffset(),a=o,s=0;if(t>i){var c=n.getKeyBefore(o);null==c?a=o:(a=c,s=n.getBlockForKey(c).getText().length)}else s=i-t;return r.merge({focusKey:a,focusOffset:s,isBackward:!0})}},7800(e){"use strict";e.exports=function(e,t){var r,n=e.getSelection(),o=n.getStartKey(),i=n.getStartOffset(),a=e.getCurrentContent(),s=o;return t>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),r=0):r=i+t,n.merge({focusKey:s,focusOffset:r})}},3310(e,t,r){"use strict";var n=r(5224),o=r(9404),i=r(6991),a=o.OrderedMap;e.exports=function(e){return e.first()instanceof n?function(e){var t={},r=void 0;return a(e.withMutations(function(e){e.forEach(function(n,o){var a=n.getKey(),s=n.getNextSiblingKey(),c=n.getPrevSiblingKey(),u=n.getChildKeys(),l=n.getParentKey(),d=i();if(t[a]=d,s&&(e.get(s)?e.setIn([s,"prevSibling"],d):e.setIn([a,"nextSibling"],null)),c&&(e.get(c)?e.setIn([c,"nextSibling"],d):e.setIn([a,"prevSibling"],null)),l&&e.get(l)){var f=e.get(l).getChildKeys();e.setIn([l,"children"],f.set(f.indexOf(n.getKey()),d))}else e.setIn([a,"parent"],null),r&&(e.setIn([r.getKey(),"nextSibling"],d),e.setIn([a,"prevSibling"],t[r.getKey()])),r=e.get(a);u.forEach(function(t){e.get(t)?e.setIn([t,"parent"],d):e.setIn([a,"children"],n.getChildKeys().filter(function(e){return e!==t}))})})}).toArray().map(function(e){return[t[e.getKey()],e.set("key",t[e.getKey()])]}))}(e):function(e){return a(e.toArray().map(function(e){var t=i();return[t,e.set("key",t)]}))}(e)}},6044(e,t,r){"use strict";var n=r(3018),o=r(8227),i=r(646);function a(e,t,r){var a=t.getCharacterList(),s=r>0?a.get(r-1):void 0,c=r<a.count()?a.get(r):void 0,u=s?s.getEntity():void 0,l=c?c.getEntity():void 0;if(l&&l===u&&"MUTABLE"!==e.__get(l).getMutability()){for(var d,f=function(e,t,r){var n;return o(e,function(e,t){return e.getEntity()===t.getEntity()},function(e){return e.getEntity()===t},function(e,t){e<=r&&t>=r&&(n={start:e,end:t})}),"object"!=typeof n&&i(!1),n}(a,l,r),p=f.start,h=f.end;p<h;)d=a.get(p),a=a.set(p,n.applyEntity(d,null)),p++;return t.set("characterList",a)}return t}e.exports=function(e,t){var r=e.getBlockMap(),n=e.getEntityMap(),o={},i=t.getStartKey(),s=t.getStartOffset(),c=r.get(i),u=a(n,c,s);u!==c&&(o[i]=u);var l=t.getEndKey(),d=t.getEndOffset(),f=r.get(l);i===l&&(f=u);var p=a(n,f,d);return p!==f&&(o[l]=p),Object.keys(o).length?e.merge({blockMap:r.merge(o),selectionAfter:t}):e.set("selectionAfter",t)}},4435(e,t,r){"use strict";var n=r(5224),o=r(9404),i=r(7376),a=(o.List,o.Map),s=function(e,t,r){if(e){var n=t.get(e);n&&t.set(e,r(n))}},c=function(e,t){var r=[];if(!e)return r;for(var n=t.get(e);n&&n.getParentKey();){var o=n.getParentKey();o&&r.push(o),n=o?t.get(o):null}return r},u=function(e,t,r){if(!e)return null;for(var n=r.get(e.getKey()).getNextSiblingKey();n&&!t.get(n);)n=r.get(n).getNextSiblingKey()||null;return n},l=function(e,t,r){if(!e)return null;for(var n=r.get(e.getKey()).getPrevSiblingKey();n&&!t.get(n);)n=r.get(n).getPrevSiblingKey()||null;return n};e.exports=function(e,t){if(t.isCollapsed())return e;var r=e.getBlockMap(),o=t.getStartKey(),d=t.getStartOffset(),f=t.getEndKey(),p=t.getEndOffset(),h=r.get(o),g=r.get(f),y=h instanceof n,m=[];if(y){var b=g.getChildKeys(),v=c(f,r);g.getNextSiblingKey()&&(m=m.concat(v)),b.isEmpty()||(m=m.concat(v.concat([f]))),m=m.concat(c(i(g,r),r))}var w;w=h===g?function(e,t,r){if(0===t)for(;t<r;)e=e.shift(),t++;else if(r===e.count())for(;r>t;)e=e.pop(),r--;else{var n=e.slice(0,t),o=e.slice(r);e=n.concat(o).toList()}return e}(h.getCharacterList(),d,p):h.getCharacterList().slice(0,d).concat(g.getCharacterList().slice(p));var S=h.merge({text:h.getText().slice(0,d)+g.getText().slice(p),characterList:w}),x=r.toSeq().skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===f}).filter(function(e,t){return-1===m.indexOf(t)}).concat(a([[f,null]])).map(function(e,t){return t===o?S:null}),E=r.merge(x).filter(function(e){return!!e});return y&&(E=function(e,t,r,n){return e.withMutations(function(e){s(t.getKey(),e,function(r){return r.merge({nextSibling:u(t,e,n),prevSibling:l(t,e,n)})}),s(r.getKey(),e,function(t){return t.merge({nextSibling:u(r,e,n),prevSibling:l(r,e,n)})}),c(t.getKey(),n).forEach(function(t){return s(t,e,function(t){return t.merge({children:t.getChildKeys().filter(function(t){return e.get(t)}),nextSibling:u(t,e,n),prevSibling:l(t,e,n)})})}),s(t.getNextSiblingKey(),e,function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})}),s(t.getPrevSiblingKey(),e,function(r){return r.merge({nextSibling:u(t,e,n)})}),s(r.getNextSiblingKey(),e,function(t){return t.merge({prevSibling:l(r,e,n)})}),s(r.getPrevSiblingKey(),e,function(e){return e.merge({nextSibling:r.getNextSiblingKey()})}),c(r.getKey(),n).forEach(function(t){s(t,e,function(t){return t.merge({children:t.getChildKeys().filter(function(t){return e.get(t)}),nextSibling:u(t,e,n),prevSibling:l(t,e,n)})})}),function(e,t){var r=[];if(!e)return r;for(var n=i(e,t);n&&t.get(n);){var o=t.get(n);r.push(n),n=o.getParentKey()?i(o,t):null}return r}(r,n).forEach(function(t){return s(t,e,function(t){return t.merge({nextSibling:u(t,e,n),prevSibling:l(t,e,n)})})})})}(E,h,g,r)),e.merge({blockMap:E,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:d,focusKey:o,focusOffset:d,isBackward:!1})})}},5188(e,t,r){"use strict";var n=r(9938);e.exports=function(e,t,r){var o=e.getSelection(),i=e.getCurrentContent(),a=o;if(o.isCollapsed()){if("forward"===r){if(e.isSelectionAtEndOfContent())return i}else if(e.isSelectionAtStartOfContent())return i;if((a=t(e))===o)return i}return n.removeRange(i,a,r)}},1721(e){"use strict";var t=new RegExp("\r","g");e.exports=function(e){return e.replace(t,"")}},4660(e,t,r){"use strict";var n=r(7204),o=r(4909),i=r(9758),a=r(646);function s(e,t){if(!e)return"[empty]";var r=c(e,t);return r.nodeType===Node.TEXT_NODE?r.textContent:(r instanceof Element||a(!1),r.outerHTML)}function c(e,t){var r=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var n=e.textContent.length;return document.createTextNode("[text "+n+(r.length?" | "+r.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&r.length&&o.setAttribute("data-labels",r.join(", "));for(var i=e.childNodes,a=0;a<i.length;a++)o.appendChild(c(i[a],t));return o}function u(e,t){for(var r=e;r;){if(r instanceof Element&&r.hasAttribute("contenteditable"))return s(r,t);r=r.parentNode}return"Could not find contentEditable parent of node"}function l(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function d(e,t,r,a){var s=i();if(e.extend&&o(s,t)){r>l(t)&&n.logSelectionStateFailure({anonymizedDom:u(t),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(a.toJS())});var c=t===e.focusNode;try{e.extend(t,r)}catch(o){throw n.logSelectionStateFailure({anonymizedDom:u(t,function(t){var r=[];return t===s&&r.push("active element"),t===e.anchorNode&&r.push("selection anchor node"),t===e.focusNode&&r.push("selection focus node"),r}),extraParams:JSON.stringify({activeElementName:s?s.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:c,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:o?""+o:null,offset:r},null,2),selectionState:JSON.stringify(a.toJS(),null,2)}),o}}else{var d=e.getRangeAt(0);d.setEnd(t,r),e.addRange(d.cloneRange())}}function f(e,t,r,o){var i=document.createRange();r>l(t)&&n.logSelectionStateFailure({anonymizedDom:u(t),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(o.toJS())}),i.setStart(t,r),e.addRange(i)}e.exports=function(e,t,r,n,i){if(o(document.documentElement,t)){var a=globalThis.getSelection(),s=e.getAnchorKey(),c=e.getAnchorOffset(),u=e.getFocusKey(),l=e.getFocusOffset(),p=e.getIsBackward();if(!a.extend&&p){var h=s,g=c;s=u,c=l,u=h,l=g,p=!1}var y=s===r&&n<=c&&i>=c,m=u===r&&n<=l&&i>=l;if(y&&m)return a.removeAllRanges(),f(a,t,c-n,e),void d(a,t,l-n,e);if(p){if(m&&(a.removeAllRanges(),f(a,t,l-n,e)),y){var b=a.focusNode,v=a.focusOffset;a.removeAllRanges(),f(a,t,c-n,e),d(a,b,v,e)}}else y&&(a.removeAllRanges(),f(a,t,c-n,e)),m&&d(a,t,l-n,e)}}},841(e,t,r){"use strict";var n=r(5224),o=r(9404),i=r(6991),a=r(646),s=o.List,c=o.Map,u=function(e,t,r){if(e){var n=t.get(e);n&&t.set(e,r(n))}};e.exports=function(e,t){t.isCollapsed()||a(!1);var r=t.getAnchorKey(),o=t.getAnchorOffset(),l=e.getBlockMap(),d=l.get(r),f=d.getText(),p=d.getCharacterList(),h=i(),g=d instanceof n,y=d.merge({text:f.slice(0,o),characterList:p.slice(0,o)}),m=y.merge({key:h,text:f.slice(o),characterList:p.slice(o),data:c()}),b=l.toSeq().takeUntil(function(e){return e===d}),v=l.toSeq().skipUntil(function(e){return e===d}).rest(),w=b.concat([[r,y],[h,m]],v).toOrderedMap();return g&&(d.getChildKeys().isEmpty()||a(!1),w=function(e,t,r){return e.withMutations(function(e){var n=t.getKey(),o=r.getKey();u(t.getParentKey(),e,function(e){var t=e.getChildKeys(),r=t.indexOf(n)+1,i=t.toArray();return i.splice(r,0,o),e.merge({children:s(i)})}),u(t.getNextSiblingKey(),e,function(e){return e.merge({prevSibling:o})}),u(n,e,function(e){return e.merge({nextSibling:o})}),u(o,e,function(e){return e.merge({prevSibling:n})})})}(w,y,m)),e.merge({blockMap:w,selectionBefore:t,selectionAfter:t.merge({anchorKey:h,anchorOffset:0,focusKey:h,focusOffset:0,isBackward:!1})})}},3676(e){"use strict";var t=/\r\n?|\n/g;e.exports=function(e){return e.split(t)}},7007(e){"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise(function(r,n){function o(r){e.removeListener(t,i),n(r)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}g(e,t,i,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&g(e,"error",t,{once:!0})}(e,o)})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){var o,i,a,u;if(s(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),a=i[t]),void 0===a)a=i[t]=r,++e._eventsCount;else if("function"==typeof a?a=i[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=c(e))>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=l.bind(n);return o.listener=r,n.wrapFn=o,o}function f(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):h(o,o.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function h(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function g(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function o(i){n.once&&e.removeEventListener(t,o),r(i)})}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else{var u=c.length,l=h(c,u);for(r=0;r<u;++r)n(l[r],this,t)}return!0},i.prototype.addListener=function(e,t){return u(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return u(this,e,t,!0)},i.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},i.prototype.removeListener=function(e,t){var r,n,o,i,a;if(s(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},i.prototype.listeners=function(e){return f(this,e,!0)},i.prototype.rawListeners=function(e){return f(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},2395(e,t,r){"use strict";var n=r(4886),o=r(1864),i=r(9395),a=new RegExp("\r\n","g"),s={"text/rtf":1,"text/html":1};function c(e){if("file"==e.kind)return e.getAsFile()}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=t,this.types=t.types?o(t.types):[]}return e.prototype.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(e){return s[e]})},e.prototype.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(a,"\n"):null},e.prototype.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},e.prototype.isLink=function(){return this.types.some(function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")})},e.prototype.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},e.prototype.isImage=function(){var e=this.types.some(function(e){return-1!=e.indexOf("application/x-moz-file")});if(e)return!0;for(var t=this.getFiles(),r=0;r<t.length;r++){var o=t[r].type;if(!n.isImage(o))return!1}return!0},e.prototype.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},e.prototype.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(c).filter(i.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},e.prototype.hasFiles=function(){return this.getFiles().length>0},e}();e.exports=u},5852(e){"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},4886(e){"use strict";var t={isImage:function(e){return"image"===r(e)[0]},isJpeg:function(e){var n=r(e);return t.isImage(e)&&("jpeg"===n[1]||"pjpeg"===n[1])}};function r(e){return e.split("/")}e.exports=t},3529(e){"use strict";function t(e,t){return!!t&&(e===t.documentElement||e===t.body)}var r={getTop:function(e){var r=e.ownerDocument;return t(e,r)?r.body.scrollTop||r.documentElement.scrollTop:e.scrollTop},setTop:function(e,r){var n=e.ownerDocument;t(e,n)?n.body.scrollTop=n.documentElement.scrollTop=r:e.scrollTop=r},getLeft:function(e){var r=e.ownerDocument;return t(e,r)?r.body.scrollLeft||r.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,r){var n=e.ownerDocument;t(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=r:e.scrollLeft=r}};e.exports=r},2935(e,t,r){"use strict";function n(e,t){var r=o.get(e,t);return"auto"===r||"scroll"===r}var o={get:r(6892),getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(n(e,"overflow")||n(e,"overflowY")||n(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=o},7405(e){"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},5324(e){"use strict";var t=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._uri=t}return e.prototype.toString=function(){return this._uri},e}();e.exports=t},8307(e,t,r){"use strict";var n=r(5822),o=r(646),i="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",a="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",s=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+i+a+"]"),c=new RegExp("["+i+a+"]");function u(e){var t=s.exec(e);return null==t?null:t[0]}function l(e){var t=u(e);return null==t?n.NEUTRAL:c.exec(t)?n.RTL:n.LTR}function d(e,t){if(t=t||n.NEUTRAL,!e.length)return t;var r=l(e);return r===n.NEUTRAL?t:r}function f(e,t){return t||(t=n.getGlobalDir()),n.isStrong(t)||o(!1),d(e,t)}var p={firstStrongChar:u,firstStrongCharDir:l,resolveBlockDir:d,getDirection:f,isDirectionLTR:function(e,t){return f(e,t)===n.LTR},isDirectionRTL:function(e,t){return f(e,t)===n.RTL}};e.exports=p},5822(e,t,r){"use strict";var n=r(646),o="LTR",i=null;function a(e){return e===o||"RTL"===e}function s(e){return a(e)||n(!1),e===o?"ltr":"rtl"}function c(e){i=e}var u={NEUTRAL:"NEUTRAL",LTR:o,RTL:"RTL",isStrong:a,getHTMLDir:s,getHTMLDirIfDifferent:function(e,t){return a(e)||n(!1),a(t)||n(!1),e===t?null:s(e)},setGlobalDir:c,initGlobalDir:function(){c(o)},getGlobalDir:function(){return i||this.initGlobalDir(),i||n(!1),i}};e.exports=u},1708(e,t,r){"use strict";var n=r(8307),o=r(5822),i=r(646),a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t?o.isStrong(t)||i(!1):t=o.getGlobalDir(),this._defaultDir=t,this.reset()}return e.prototype.reset=function(){this._lastDir=this._defaultDir},e.prototype.getDirection=function(e){return this._lastDir=n.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=a},580(e,t,r){"use strict";var n=r(646),o=/[\uD800-\uDFFF]/;function i(e){return 55296<=e&&e<=57343}function a(e){return o.test(e)}function s(e,t){return 1+i(e.charCodeAt(t))}function c(e,t,r){if(t=t||0,r=void 0===r?1/0:r||0,!a(e))return e.substr(t,r);var n=e.length;if(n<=0||t>n||r<=0)return"";var o=0;if(t>0){for(;t>0&&o<n;t--)o+=s(e,o);if(o>=n)return""}else if(t<0){for(o=n;t<0&&0<o;t++)o-=s(e,o-1);o<0&&(o=0)}var i=n;if(r<n)for(i=o;r>0&&i<n;r--)i+=s(e,i);return e.substring(o,i)}var u={getCodePoints:function(e){for(var t=[],r=0;r<e.length;r+=s(e,r))t.push(e.codePointAt(r));return t},getUTF16Length:s,hasSurrogateUnit:a,isCodeUnitInSurrogateRange:i,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||n(!1),t+1===e.length)return!1;var r=e.charCodeAt(t),o=e.charCodeAt(t+1);return 55296<=r&&r<=56319&&56320<=o&&o<=57343},strlen:function(e){if(!a(e))return e.length;for(var t=0,r=0;r<e.length;r+=s(e,r))t++;return t},substring:function(e,t,r){(t=t||0)<0&&(t=0),(r=void 0===r?1/0:r||0)<0&&(r=0);var n=Math.abs(r-t);return c(e,t=t<r?t:r,n)},substr:c};e.exports=u},4134(e,t,r){"use strict";var n=r(4534),o=r(953),i=r(3731),a=r(4793);function s(e,t,r,n){if(e===r)return!0;if(!r.startsWith(e))return!1;var i=r.slice(e.length);return!!t&&(i=n?n(i):i,o.contains(i,t))}function c(e){return"Windows"===n.platformName?e.replace(/^\s*NT/,""):e}var u={isBrowser:function(e){return s(n.browserName,n.browserFullVersion,e)},isBrowserArchitecture:function(e){return s(n.browserArchitecture,null,e)},isDevice:function(e){return s(n.deviceName,null,e)},isEngine:function(e){return s(n.engineName,n.engineVersion,e)},isPlatform:function(e){return s(n.platformName,n.platformFullVersion,e,c)},isPlatformArchitecture:function(e){return s(n.platformArchitecture,null,e)}};e.exports=i(u,a)},4534(e,t,r){"use strict";var n,o="Unknown",i=(new(r(7232))).getResult(),a=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(i.browser.version),s={browserArchitecture:i.cpu.architecture||o,browserFullVersion:i.browser.version||o,browserMinorVersion:a.minor||o,browserName:i.browser.name||o,browserVersion:i.browser.major||o,deviceName:i.device.model||o,engineName:i.engine.name||o,engineVersion:i.engine.version||o,platformArchitecture:i.cpu.architecture||o,platformName:(n=i.os.name,{"Mac OS":"Mac OS X"}[n]||n||o),platformVersion:i.os.version||o,platformFullVersion:i.os.version||o};e.exports=s},953(e,t,r){"use strict";var n=r(646),o=/\./,i=/\|\|/,a=/\s+\-\s+/,s=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,c=/^(\d*)(.*)/;function u(e,t){if(""===(e=e.trim()))return!0;var r,n=t.split(o),i=f(e),a=i.modifier,s=i.rangeComponents;switch(a){case"<":return l(n,s);case"<=":return-1===(r=b(n,s))||0===r;case">=":return d(n,s);case">":return 1===b(n,s);case"~":case"~>":return function(e,t){var r=t.slice(),n=t.slice();n.length>1&&n.pop();var o=n.length-1,i=parseInt(n[o],10);return p(i)&&(n[o]=i+1+""),d(e,r)&&l(e,n)}(n,s);default:return function(e,t){return 0===b(e,t)}(n,s)}}function l(e,t){return-1===b(e,t)}function d(e,t){var r=b(e,t);return 1===r||0===r}function f(e){var t=e.split(o),r=t[0].match(s);return r||n(!1),{modifier:r[1],rangeComponents:[r[2]].concat(t.slice(1))}}function p(e){return!isNaN(e)&&isFinite(e)}function h(e){return!f(e).modifier}function g(e,t){for(var r=e.length;r<t;r++)e[r]="0"}function y(e,t){var r=e.match(c)[1],n=t.match(c)[1],o=parseInt(r,10),i=parseInt(n,10);return p(o)&&p(i)&&o!==i?m(o,i):m(e,t)}function m(e,t){return typeof e!=typeof t&&n(!1),e>t?1:e<t?-1:0}function b(e,t){for(var r=function(e,t){g(e=e.slice(),(t=t.slice()).length);for(var r=0;r<t.length;r++){var n=t[r].match(/^[x*]$/i);if(n&&(t[r]=e[r]="0","*"===n[0]&&r===t.length-1))for(var o=r;o<e.length;o++)e[o]="0"}return g(t,e.length),[e,t]}(e,t),n=r[0],o=r[1],i=0;i<o.length;i++){var a=y(n[i],o[i]);if(a)return a}return 0}var v={contains:function(e,t){return function(e,t){var r=e.split(i);return r.length>1?r.some(function(e){return v.contains(e,t)}):function(e,t){var r=e.split(a);if(r.length>0&&r.length<=2||n(!1),1===r.length)return u(r[0],t);var o=r[0],i=r[1];return h(o)&&h(i)||n(!1),u(">="+o,t)&&u("<="+i,t)}(e=r[0].trim(),t)}(e.trim(),t.trim())}};e.exports=v},8748(e){"use strict";var t=/-(.)/g;e.exports=function(e){return e.replace(t,function(e,t){return t.toUpperCase()})}},4909(e,t,r){"use strict";var n=r(5423);e.exports=function e(t,r){return!(!t||!r)&&(t===r||!n(t)&&(n(r)?e(t,r.parentNode):"contains"in t?t.contains(r):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(r))))}},1864(e,t,r){"use strict";var n=r(646);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&n(!1),"number"!=typeof t&&n(!1),0===t||t-1 in e||n(!1),"function"==typeof e.callee&&n(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var r=Array(t),o=0;o<t;o++)r[o]=e[o];return r}(e):[e]}},8003(e){"use strict";function t(e){return e.replace(/\//g,"-")}e.exports=function(e){return"object"==typeof e?Object.keys(e).filter(function(t){return e[t]}).map(t).join(" "):Array.prototype.map.call(arguments,t).join(" ")}},9395(e){"use strict";function t(e){return function(){return e}}var r=function(){};r.thatReturns=t,r.thatReturnsFalse=t(!1),r.thatReturnsTrue=t(!0),r.thatReturnsNull=t(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},9758(e){"use strict";e.exports=function(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}}},9824(e){"use strict";var t="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return(e=e||document).scrollingElement?e.scrollingElement:t||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},8527(e,t,r){"use strict";var n=r(7078);e.exports=function(e){var t=n(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},7078(e,t,r){"use strict";var n=r(4909);e.exports=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!n(t,e))return{left:0,right:0,top:0,bottom:0};var r=e.getBoundingClientRect();return{left:Math.round(r.left)-t.clientLeft,right:Math.round(r.right)-t.clientLeft,top:Math.round(r.top)-t.clientTop,bottom:Math.round(r.bottom)-t.clientTop}}},7392(e,t,r){"use strict";var n=r(9824),o=r(7458);e.exports=function(e){var t=n(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var r=o(e),i=e===t?e.ownerDocument.documentElement:e,a=e.scrollWidth-i.clientWidth,s=e.scrollHeight-i.clientHeight;return r.x=Math.max(0,Math.min(r.x,a)),r.y=Math.max(0,Math.min(r.y,s)),r}},6892(e,t,r){"use strict";var n=r(8748),o=r(3998);function i(e){return null==e?e:String(e)}e.exports=function(e,t){var r=void 0;if(window.getComputedStyle&&(r=window.getComputedStyle(e,null)))return i(r.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(r=document.defaultView.getComputedStyle(e,null))return i(r.getPropertyValue(o(t)));if("display"===t)return"none"}return e.currentStyle?i("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[n(t)]):i(e.style&&e.style[n(t)])}},7458(e){"use strict";e.exports=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},1401(e){"use strict";function t(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function r(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function n(){return{width:window.innerWidth||t(),height:window.innerHeight||r()}}n.withoutScrollbars=function(){return{width:t(),height:r()}},e.exports=n},3998(e){"use strict";var t=/([A-Z])/g;e.exports=function(e){return e.replace(t,"-$1").toLowerCase()}},646(e){"use strict";e.exports=function(e,t,r,n,o,i,a,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,o,i,a,s],l=0;(c=new Error(t.replace(/%s/g,function(){return u[l++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},5504(e){"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},5423(e,t,r){"use strict";var n=r(5504);e.exports=function(e){return n(e)&&3==e.nodeType}},798(e){"use strict";e.exports=function(e){e||(e="");var t=void 0,r=arguments.length;if(r>1)for(var n=1;n<r;n++)(t=arguments[n])&&(e=(e?e+" ":"")+t);return e}},3731(e){"use strict";var t=Object.prototype.hasOwnProperty;e.exports=function(e,r,n){if(!e)return null;var o={};for(var i in e)t.call(e,i)&&(o[i]=r.call(n,e[i],i,e));return o}},4793(e){"use strict";e.exports=function(e){var t={};return function(r){return t.hasOwnProperty(r)||(t[r]=e.call(this,r)),t[r]}}},6408(e){"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},9765(e,t,r){"use strict";r(2791),e.exports=globalThis.setImmediate},4146(e,t,r){"use strict";var n=r(4363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=p(r);o&&o!==h&&e(t,o,n)}var a=l(r);d&&(a=a.concat(d(r)));for(var s=c(t),g=c(r),y=0;y<a.length;++y){var m=a[y];if(!(i[m]||n&&n[m]||g&&g[m]||s&&s[m])){var b=f(r,m);try{u(t,m,b)}catch(e){}}}}return t}},9404(e){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function r(e){return a(e)?e:z(e)}function n(e){return s(e)?e:q(e)}function o(e){return c(e)?e:V(e)}function i(e){return a(e)&&!u(e)?e:G(e)}function a(e){return!(!e||!e[d])}function s(e){return!(!e||!e[f])}function c(e){return!(!e||!e[p])}function u(e){return s(e)||c(e)}function l(e){return!(!e||!e[h])}t(n,r),t(o,r),t(i,r),r.isIterable=a,r.isKeyed=s,r.isIndexed=c,r.isAssociative=u,r.isOrdered=l,r.Keyed=n,r.Indexed=o,r.Set=i;var d="@@__IMMUTABLE_ITERABLE__@@",f="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",y=32,m=31,b={},v={value:!1},w={value:!1};function S(e){return e.value=!1,e}function x(e){e&&(e.value=!0)}function E(){}function _(e,t){t=t||0;for(var r=Math.max(0,e.length-t),n=new Array(r),o=0;o<r;o++)n[o]=e[o+t];return n}function O(e){return void 0===e.size&&(e.size=e.__iterate(k)),e.size}function C(e,t){if("number"!=typeof t){var r=t>>>0;if(""+r!==t||4294967295===r)return NaN;t=r}return t<0?O(e)+t:t}function k(){return!0}function A(e,t,r){return(0===e||void 0!==r&&e<=-r)&&(void 0===t||void 0!==r&&t>=r)}function T(e,t){return P(e,t,0)}function I(e,t){return P(e,t,t)}function P(e,t,r){return void 0===e?r:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var D="function"==typeof Symbol&&Symbol.iterator,L="@@iterator",M=D||L;function R(e){this.next=e}function j(e,t,r,n){var o=0===e?t:1===e?r:[t,r];return n?n.value=o:n={value:o,done:!1},n}function N(){return{value:void 0,done:!0}}function F(e){return!!K(e)}function B(e){return e&&"function"==typeof e.next}function U(e){var t=K(e);return t&&t.call(e)}function K(e){var t=e&&(D&&e[D]||e[L]);if("function"==typeof t)return t}function H(e){return e&&"number"==typeof e.length}function z(e){return null==e?re():a(e)?e.toSeq():function(e){var t=ie(e)||"object"==typeof e&&new J(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function q(e){return null==e?re().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():ne(e)}function V(e){return null==e?re():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():oe(e)}function G(e){return(null==e?re():a(e)?s(e)?e.entrySeq():e:oe(e)).toSetSeq()}R.prototype.toString=function(){return"[Iterator]"},R.KEYS=0,R.VALUES=1,R.ENTRIES=2,R.prototype.inspect=R.prototype.toSource=function(){return this.toString()},R.prototype[M]=function(){return this},t(z,r),z.of=function(){return z(arguments)},z.prototype.toSeq=function(){return this},z.prototype.toString=function(){return this.__toString("Seq {","}")},z.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},z.prototype.__iterate=function(e,t){return ae(this,e,t,!0)},z.prototype.__iterator=function(e,t){return se(this,e,t,!0)},t(q,z),q.prototype.toKeyedSeq=function(){return this},t(V,z),V.of=function(){return V(arguments)},V.prototype.toIndexedSeq=function(){return this},V.prototype.toString=function(){return this.__toString("Seq [","]")},V.prototype.__iterate=function(e,t){return ae(this,e,t,!1)},V.prototype.__iterator=function(e,t){return se(this,e,t,!1)},t(G,z),G.of=function(){return G(arguments)},G.prototype.toSetSeq=function(){return this},z.isSeq=te,z.Keyed=q,z.Set=G,z.Indexed=V;var W,$,Y,X="@@__IMMUTABLE_SEQ__@@";function Z(e){this._array=e,this.size=e.length}function J(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function Q(e){this._iterable=e,this.size=e.length||e.size}function ee(e){this._iterator=e,this._iteratorCache=[]}function te(e){return!(!e||!e[X])}function re(){return W||(W=new Z([]))}function ne(e){var t=Array.isArray(e)?new Z(e).fromEntrySeq():B(e)?new ee(e).fromEntrySeq():F(e)?new Q(e).fromEntrySeq():"object"==typeof e?new J(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function oe(e){var t=ie(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ie(e){return H(e)?new Z(e):B(e)?new ee(e):F(e)?new Q(e):void 0}function ae(e,t,r,n){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[r?i-a:a];if(!1===t(s[1],n?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,r)}function se(e,t,r,n){var o=e._cache;if(o){var i=o.length-1,a=0;return new R(function(){var e=o[r?i-a:a];return a++>i?{value:void 0,done:!0}:j(t,n?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,r)}function ce(e,t){return t?ue(t,e,"",{"":e}):le(e)}function ue(e,t,r,n){return Array.isArray(t)?e.call(n,r,V(t).map(function(r,n){return ue(e,r,n,t)})):de(t)?e.call(n,r,q(t).map(function(r,n){return ue(e,r,n,t)})):t}function le(e){return Array.isArray(e)?V(e).map(le).toList():de(e)?q(e).map(le).toMap():e}function de(e){return e&&(e.constructor===Object||void 0===e.constructor)}function fe(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function pe(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||c(e)!==c(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var r=!u(e);if(l(e)){var n=e.entries();return t.every(function(e,t){var o=n.next().value;return o&&fe(o[1],e)&&(r||fe(o[0],t))})&&n.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var d=!0,f=t.__iterate(function(t,n){if(r?!e.has(t):o?!fe(t,e.get(n,b)):!fe(e.get(n,b),t))return d=!1,!1});return d&&e.size===f}function he(e,t){if(!(this instanceof he))return new he(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if($)return $;$=this}}function ge(e,t){if(!e)throw new Error(t)}function ye(e,t,r){if(!(this instanceof ye))return new ye(e,t,r);if(ge(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),r=void 0===r?1:Math.abs(r),t<e&&(r=-r),this._start=e,this._end=t,this._step=r,this.size=Math.max(0,Math.ceil((t-e)/r-1)+1),0===this.size){if(Y)return Y;Y=this}}function me(){throw TypeError("Abstract")}function be(){}function ve(){}function we(){}z.prototype[X]=!0,t(Z,V),Z.prototype.get=function(e,t){return this.has(e)?this._array[C(this,e)]:t},Z.prototype.__iterate=function(e,t){for(var r=this._array,n=r.length-1,o=0;o<=n;o++)if(!1===e(r[t?n-o:o],o,this))return o+1;return o},Z.prototype.__iterator=function(e,t){var r=this._array,n=r.length-1,o=0;return new R(function(){return o>n?{value:void 0,done:!0}:j(e,o,r[t?n-o++:o++])})},t(J,q),J.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},J.prototype.has=function(e){return this._object.hasOwnProperty(e)},J.prototype.__iterate=function(e,t){for(var r=this._object,n=this._keys,o=n.length-1,i=0;i<=o;i++){var a=n[t?o-i:i];if(!1===e(r[a],a,this))return i+1}return i},J.prototype.__iterator=function(e,t){var r=this._object,n=this._keys,o=n.length-1,i=0;return new R(function(){var a=n[t?o-i:i];return i++>o?{value:void 0,done:!0}:j(e,a,r[a])})},J.prototype[h]=!0,t(Q,V),Q.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var r=U(this._iterable),n=0;if(B(r))for(var o;!(o=r.next()).done&&!1!==e(o.value,n++,this););return n},Q.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var r=U(this._iterable);if(!B(r))return new R(N);var n=0;return new R(function(){var t=r.next();return t.done?t:j(e,n++,t.value)})},t(ee,V),ee.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var r,n=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(r=n.next()).done;){var a=r.value;if(o[i]=a,!1===e(a,i++,this))break}return i},ee.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var r=this._iterator,n=this._iteratorCache,o=0;return new R(function(){if(o>=n.length){var t=r.next();if(t.done)return t;n[o]=t.value}return j(e,o,n[o++])})},t(he,V),he.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},he.prototype.get=function(e,t){return this.has(e)?this._value:t},he.prototype.includes=function(e){return fe(this._value,e)},he.prototype.slice=function(e,t){var r=this.size;return A(e,t,r)?this:new he(this._value,I(t,r)-T(e,r))},he.prototype.reverse=function(){return this},he.prototype.indexOf=function(e){return fe(this._value,e)?0:-1},he.prototype.lastIndexOf=function(e){return fe(this._value,e)?this.size:-1},he.prototype.__iterate=function(e,t){for(var r=0;r<this.size;r++)if(!1===e(this._value,r,this))return r+1;return r},he.prototype.__iterator=function(e,t){var r=this,n=0;return new R(function(){return n<r.size?j(e,n++,r._value):{value:void 0,done:!0}})},he.prototype.equals=function(e){return e instanceof he?fe(this._value,e._value):pe(e)},t(ye,V),ye.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},ye.prototype.get=function(e,t){return this.has(e)?this._start+C(this,e)*this._step:t},ye.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},ye.prototype.slice=function(e,t){return A(e,t,this.size)?this:(e=T(e,this.size),(t=I(t,this.size))<=e?new ye(0,0):new ye(this.get(e,this._end),this.get(t,this._end),this._step))},ye.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var r=t/this._step;if(r>=0&&r<this.size)return r}return-1},ye.prototype.lastIndexOf=function(e){return this.indexOf(e)},ye.prototype.__iterate=function(e,t){for(var r=this.size-1,n=this._step,o=t?this._start+r*n:this._start,i=0;i<=r;i++){if(!1===e(o,i,this))return i+1;o+=t?-n:n}return i},ye.prototype.__iterator=function(e,t){var r=this.size-1,n=this._step,o=t?this._start+r*n:this._start,i=0;return new R(function(){var a=o;return o+=t?-n:n,i>r?{value:void 0,done:!0}:j(e,i++,a)})},ye.prototype.equals=function(e){return e instanceof ye?this._start===e._start&&this._end===e._end&&this._step===e._step:pe(this,e)},t(me,r),t(be,me),t(ve,me),t(we,me),me.Keyed=be,me.Indexed=ve,me.Set=we;var Se="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var r=65535&(e|=0),n=65535&(t|=0);return r*n+((e>>>16)*n+r*(t>>>16)<<16>>>0)|0};function xe(e){return e>>>1&1073741824|3221225471&e}function Ee(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var r=0|e;for(r!==e&&(r^=4294967295*e);e>4294967295;)r^=e/=4294967295;return xe(r)}if("string"===t)return e.length>Pe?function(e){var t=Me[e];return void 0===t&&(t=_e(e),Le===De&&(Le=0,Me={}),Le++,Me[e]=t),t}(e):_e(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(Ae&&void 0!==(t=ke.get(e)))return t;if(void 0!==(t=e[Ie]))return t;if(!Ce){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ie]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++Te,1073741824&Te&&(Te=0),Ae)ke.set(e,t);else{if(void 0!==Oe&&!1===Oe(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Ce)Object.defineProperty(e,Ie,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Ie]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ie]=t}}return t}(e);if("function"==typeof e.toString)return _e(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function _e(e){for(var t=0,r=0;r<e.length;r++)t=31*t+e.charCodeAt(r)|0;return xe(t)}var Oe=Object.isExtensible,Ce=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();var ke,Ae="function"==typeof WeakMap;Ae&&(ke=new WeakMap);var Te=0,Ie="__immutablehash__";"function"==typeof Symbol&&(Ie=Symbol(Ie));var Pe=16,De=255,Le=0,Me={};function Re(e){ge(e!==1/0,"Cannot perform this action with an infinite size.")}function je(e){return null==e?Xe():Ne(e)&&!l(e)?e:Xe().withMutations(function(t){var r=n(e);Re(r.size),r.forEach(function(e,r){return t.set(r,e)})})}function Ne(e){return!(!e||!e[Be])}t(je,be),je.prototype.toString=function(){return this.__toString("Map {","}")},je.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},je.prototype.set=function(e,t){return Ze(this,e,t)},je.prototype.setIn=function(e,t){return this.updateIn(e,b,function(){return t})},je.prototype.remove=function(e){return Ze(this,e,b)},je.prototype.deleteIn=function(e){return this.updateIn(e,function(){return b})},je.prototype.update=function(e,t,r){return 1===arguments.length?e(this):this.updateIn([e],t,r)},je.prototype.updateIn=function(e,t,r){r||(r=t,t=void 0);var n=it(this,tr(e),t,r);return n===b?void 0:n},je.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Xe()},je.prototype.merge=function(){return tt(this,void 0,arguments)},je.prototype.mergeWith=function(t){return tt(this,t,e.call(arguments,1))},je.prototype.mergeIn=function(t){var r=e.call(arguments,1);return this.updateIn(t,Xe(),function(e){return"function"==typeof e.merge?e.merge.apply(e,r):r[r.length-1]})},je.prototype.mergeDeep=function(){return tt(this,rt,arguments)},je.prototype.mergeDeepWith=function(t){var r=e.call(arguments,1);return tt(this,nt(t),r)},je.prototype.mergeDeepIn=function(t){var r=e.call(arguments,1);return this.updateIn(t,Xe(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,r):r[r.length-1]})},je.prototype.sort=function(e){return At(qt(this,e))},je.prototype.sortBy=function(e,t){return At(qt(this,t,e))},je.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},je.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new E)},je.prototype.asImmutable=function(){return this.__ensureOwner()},je.prototype.wasAltered=function(){return this.__altered},je.prototype.__iterator=function(e,t){return new Ge(this,e,t)},je.prototype.__iterate=function(e,t){var r=this,n=0;return this._root&&this._root.iterate(function(t){return n++,e(t[1],t[0],r)},t),n},je.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ye(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},je.isMap=Ne;var Fe,Be="@@__IMMUTABLE_MAP__@@",Ue=je.prototype;function Ke(e,t){this.ownerID=e,this.entries=t}function He(e,t,r){this.ownerID=e,this.bitmap=t,this.nodes=r}function ze(e,t,r){this.ownerID=e,this.count=t,this.nodes=r}function qe(e,t,r){this.ownerID=e,this.keyHash=t,this.entries=r}function Ve(e,t,r){this.ownerID=e,this.keyHash=t,this.entry=r}function Ge(e,t,r){this._type=t,this._reverse=r,this._stack=e._root&&$e(e._root)}function We(e,t){return j(e,t[0],t[1])}function $e(e,t){return{node:e,index:0,__prev:t}}function Ye(e,t,r,n){var o=Object.create(Ue);return o.size=e,o._root=t,o.__ownerID=r,o.__hash=n,o.__altered=!1,o}function Xe(){return Fe||(Fe=Ye(0))}function Ze(e,t,r){var n,o;if(e._root){var i=S(v),a=S(w);if(n=Je(e._root,e.__ownerID,0,void 0,t,r,i,a),!a.value)return e;o=e.size+(i.value?r===b?-1:1:0)}else{if(r===b)return e;o=1,n=new Ke(e.__ownerID,[[t,r]])}return e.__ownerID?(e.size=o,e._root=n,e.__hash=void 0,e.__altered=!0,e):n?Ye(o,n):Xe()}function Je(e,t,r,n,o,i,a,s){return e?e.update(t,r,n,o,i,a,s):i===b?e:(x(s),x(a),new Ve(t,n,[o,i]))}function Qe(e){return e.constructor===Ve||e.constructor===qe}function et(e,t,r,n,o){if(e.keyHash===n)return new qe(t,n,[e.entry,o]);var i,a=(0===r?e.keyHash:e.keyHash>>>r)&m,s=(0===r?n:n>>>r)&m;return new He(t,1<<a|1<<s,a===s?[et(e,t,r+5,n,o)]:(i=new Ve(t,n,o),a<s?[e,i]:[i,e]))}function tt(e,t,r){for(var o=[],i=0;i<r.length;i++){var s=r[i],c=n(s);a(s)||(c=c.map(function(e){return ce(e)})),o.push(c)}return ot(e,t,o)}function rt(e,t,r){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):fe(e,t)?e:t}function nt(e){return function(t,r,n){if(t&&t.mergeDeepWith&&a(r))return t.mergeDeepWith(e,r);var o=e(t,r,n);return fe(t,o)?t:o}}function ot(e,t,r){return 0===(r=r.filter(function(e){return 0!==e.size})).length?e:0!==e.size||e.__ownerID||1!==r.length?e.withMutations(function(e){for(var n=t?function(r,n){e.update(n,b,function(e){return e===b?r:t(e,r,n)})}:function(t,r){e.set(r,t)},o=0;o<r.length;o++)r[o].forEach(n)}):e.constructor(r[0])}function it(e,t,r,n){var o=e===b,i=t.next();if(i.done){var a=o?r:e,s=n(a);return s===a?e:s}ge(o||e&&e.set,"invalid keyPath");var c=i.value,u=o?b:e.get(c,b),l=it(u,t,r,n);return l===u?e:l===b?e.remove(c):(o?Xe():e).set(c,l)}function at(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e+=e>>8)+(e>>16)}function st(e,t,r,n){var o=n?e:_(e);return o[t]=r,o}Ue[Be]=!0,Ue[g]=Ue.remove,Ue.removeIn=Ue.deleteIn,Ke.prototype.get=function(e,t,r,n){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(fe(r,o[i][0]))return o[i][1];return n},Ke.prototype.update=function(e,t,r,n,o,i,a){for(var s=o===b,c=this.entries,u=0,l=c.length;u<l&&!fe(n,c[u][0]);u++);var d=u<l;if(d?c[u][1]===o:s)return this;if(x(a),(s||!d)&&x(i),!s||1!==c.length){if(!d&&!s&&c.length>=ct)return function(e,t,r,n){e||(e=new E);for(var o=new Ve(e,Ee(r),[r,n]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}(e,c,n,o);var f=e&&e===this.ownerID,p=f?c:_(c);return d?s?u===l-1?p.pop():p[u]=p.pop():p[u]=[n,o]:p.push([n,o]),f?(this.entries=p,this):new Ke(e,p)}},He.prototype.get=function(e,t,r,n){void 0===t&&(t=Ee(r));var o=1<<((0===e?t:t>>>e)&m),i=this.bitmap;return 0===(i&o)?n:this.nodes[at(i&o-1)].get(e+5,t,r,n)},He.prototype.update=function(e,t,r,n,o,i,a){void 0===r&&(r=Ee(n));var s=(0===t?r:r>>>t)&m,c=1<<s,u=this.bitmap,l=0!==(u&c);if(!l&&o===b)return this;var d=at(u&c-1),f=this.nodes,p=l?f[d]:void 0,h=Je(p,e,t+5,r,n,o,i,a);if(h===p)return this;if(!l&&h&&f.length>=ut)return function(e,t,r,n,o){for(var i=0,a=new Array(y),s=0;0!==r;s++,r>>>=1)a[s]=1&r?t[i++]:void 0;return a[n]=o,new ze(e,i+1,a)}(e,f,u,s,h);if(l&&!h&&2===f.length&&Qe(f[1^d]))return f[1^d];if(l&&h&&1===f.length&&Qe(h))return h;var g=e&&e===this.ownerID,v=l?h?u:u^c:u|c,w=l?h?st(f,d,h,g):function(e,t,r){var n=e.length-1;if(r&&t===n)return e.pop(),e;for(var o=new Array(n),i=0,a=0;a<n;a++)a===t&&(i=1),o[a]=e[a+i];return o}(f,d,g):function(e,t,r,n){var o=e.length+1;if(n&&t+1===o)return e[t]=r,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=r,a=-1):i[s]=e[s+a];return i}(f,d,h,g);return g?(this.bitmap=v,this.nodes=w,this):new He(e,v,w)},ze.prototype.get=function(e,t,r,n){void 0===t&&(t=Ee(r));var o=(0===e?t:t>>>e)&m,i=this.nodes[o];return i?i.get(e+5,t,r,n):n},ze.prototype.update=function(e,t,r,n,o,i,a){void 0===r&&(r=Ee(n));var s=(0===t?r:r>>>t)&m,c=o===b,u=this.nodes,l=u[s];if(c&&!l)return this;var d=Je(l,e,t+5,r,n,o,i,a);if(d===l)return this;var f=this.count;if(l){if(!d&&--f<lt)return function(e,t,r,n){for(var o=0,i=0,a=new Array(r),s=0,c=1,u=t.length;s<u;s++,c<<=1){var l=t[s];void 0!==l&&s!==n&&(o|=c,a[i++]=l)}return new He(e,o,a)}(e,u,f,s)}else f++;var p=e&&e===this.ownerID,h=st(u,s,d,p);return p?(this.count=f,this.nodes=h,this):new ze(e,f,h)},qe.prototype.get=function(e,t,r,n){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(fe(r,o[i][0]))return o[i][1];return n},qe.prototype.update=function(e,t,r,n,o,i,a){void 0===r&&(r=Ee(n));var s=o===b;if(r!==this.keyHash)return s?this:(x(a),x(i),et(this,e,t,r,[n,o]));for(var c=this.entries,u=0,l=c.length;u<l&&!fe(n,c[u][0]);u++);var d=u<l;if(d?c[u][1]===o:s)return this;if(x(a),(s||!d)&&x(i),s&&2===l)return new Ve(e,this.keyHash,c[1^u]);var f=e&&e===this.ownerID,p=f?c:_(c);return d?s?u===l-1?p.pop():p[u]=p.pop():p[u]=[n,o]:p.push([n,o]),f?(this.entries=p,this):new qe(e,this.keyHash,p)},Ve.prototype.get=function(e,t,r,n){return fe(r,this.entry[0])?this.entry[1]:n},Ve.prototype.update=function(e,t,r,n,o,i,a){var s=o===b,c=fe(n,this.entry[0]);return(c?o===this.entry[1]:s)?this:(x(a),s?void x(i):c?e&&e===this.ownerID?(this.entry[1]=o,this):new Ve(e,this.keyHash,[n,o]):(x(i),et(this,e,t,Ee(n),[n,o])))},Ke.prototype.iterate=qe.prototype.iterate=function(e,t){for(var r=this.entries,n=0,o=r.length-1;n<=o;n++)if(!1===e(r[t?o-n:n]))return!1},He.prototype.iterate=ze.prototype.iterate=function(e,t){for(var r=this.nodes,n=0,o=r.length-1;n<=o;n++){var i=r[t?o-n:n];if(i&&!1===i.iterate(e,t))return!1}},Ve.prototype.iterate=function(e,t){return e(this.entry)},t(Ge,R),Ge.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var r,n=t.node,o=t.index++;if(n.entry){if(0===o)return We(e,n.entry)}else if(n.entries){if(o<=(r=n.entries.length-1))return We(e,n.entries[this._reverse?r-o:o])}else if(o<=(r=n.nodes.length-1)){var i=n.nodes[this._reverse?r-o:o];if(i){if(i.entry)return We(e,i.entry);t=this._stack=$e(i,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var ct=8,ut=16,lt=8;function dt(e){var t=St();if(null==e)return t;if(ft(e))return e;var r=o(e),n=r.size;return 0===n?t:(Re(n),n>0&&n<y?wt(0,n,5,null,new gt(r.toArray())):t.withMutations(function(e){e.setSize(n),r.forEach(function(t,r){return e.set(r,t)})}))}function ft(e){return!(!e||!e[pt])}t(dt,ve),dt.of=function(){return this(arguments)},dt.prototype.toString=function(){return this.__toString("List [","]")},dt.prototype.get=function(e,t){if((e=C(this,e))>=0&&e<this.size){var r=_t(this,e+=this._origin);return r&&r.array[e&m]}return t},dt.prototype.set=function(e,t){return function(e,t,r){if((t=C(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?Ot(e,t).set(0,r):Ot(e,0,t+1).set(t,r)});t+=e._origin;var n=e._tail,o=e._root,i=S(w);return t>=kt(e._capacity)?n=xt(n,e.__ownerID,0,t,r,i):o=xt(o,e.__ownerID,e._level,t,r,i),i.value?e.__ownerID?(e._root=o,e._tail=n,e.__hash=void 0,e.__altered=!0,e):wt(e._origin,e._capacity,e._level,o,n):e}(this,e,t)},dt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},dt.prototype.insert=function(e,t){return this.splice(e,0,t)},dt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):St()},dt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(r){Ot(r,0,t+e.length);for(var n=0;n<e.length;n++)r.set(t+n,e[n])})},dt.prototype.pop=function(){return Ot(this,0,-1)},dt.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){Ot(t,-e.length);for(var r=0;r<e.length;r++)t.set(r,e[r])})},dt.prototype.shift=function(){return Ot(this,1)},dt.prototype.merge=function(){return Ct(this,void 0,arguments)},dt.prototype.mergeWith=function(t){return Ct(this,t,e.call(arguments,1))},dt.prototype.mergeDeep=function(){return Ct(this,rt,arguments)},dt.prototype.mergeDeepWith=function(t){var r=e.call(arguments,1);return Ct(this,nt(t),r)},dt.prototype.setSize=function(e){return Ot(this,0,e)},dt.prototype.slice=function(e,t){var r=this.size;return A(e,t,r)?this:Ot(this,T(e,r),I(t,r))},dt.prototype.__iterator=function(e,t){var r=0,n=vt(this,t);return new R(function(){var t=n();return t===bt?{value:void 0,done:!0}:j(e,r++,t)})},dt.prototype.__iterate=function(e,t){for(var r,n=0,o=vt(this,t);(r=o())!==bt&&!1!==e(r,n++,this););return n},dt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?wt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},dt.isList=ft;var pt="@@__IMMUTABLE_LIST__@@",ht=dt.prototype;function gt(e,t){this.array=e,this.ownerID=t}ht[pt]=!0,ht[g]=ht.remove,ht.setIn=Ue.setIn,ht.deleteIn=ht.removeIn=Ue.removeIn,ht.update=Ue.update,ht.updateIn=Ue.updateIn,ht.mergeIn=Ue.mergeIn,ht.mergeDeepIn=Ue.mergeDeepIn,ht.withMutations=Ue.withMutations,ht.asMutable=Ue.asMutable,ht.asImmutable=Ue.asImmutable,ht.wasAltered=Ue.wasAltered,gt.prototype.removeBefore=function(e,t,r){if(r===t?1<<t:0===this.array.length)return this;var n=r>>>t&m;if(n>=this.array.length)return new gt([],e);var o,i=0===n;if(t>0){var a=this.array[n];if((o=a&&a.removeBefore(e,t-5,r))===a&&i)return this}if(i&&!o)return this;var s=Et(this,e);if(!i)for(var c=0;c<n;c++)s.array[c]=void 0;return o&&(s.array[n]=o),s},gt.prototype.removeAfter=function(e,t,r){if(r===(t?1<<t:0)||0===this.array.length)return this;var n,o=r-1>>>t&m;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((n=i&&i.removeAfter(e,t-5,r))===i&&o===this.array.length-1)return this}var a=Et(this,e);return a.array.splice(o+1),n&&(a.array[o]=n),a};var yt,mt,bt={};function vt(e,t){var r=e._origin,n=e._capacity,o=kt(n),i=e._tail;return a(e._root,e._level,0);function a(e,s,c){return 0===s?function(e,a){var s=a===o?i&&i.array:e&&e.array,c=a>r?0:r-a,u=n-a;return u>y&&(u=y),function(){if(c===u)return bt;var e=t?--u:c++;return s&&s[e]}}(e,c):function(e,o,i){var s,c=e&&e.array,u=i>r?0:r-i>>o,l=1+(n-i>>o);return l>y&&(l=y),function(){for(;;){if(s){var e=s();if(e!==bt)return e;s=null}if(u===l)return bt;var r=t?--l:u++;s=a(c&&c[r],o-5,i+(r<<o))}}}(e,s,c)}}function wt(e,t,r,n,o,i,a){var s=Object.create(ht);return s.size=t-e,s._origin=e,s._capacity=t,s._level=r,s._root=n,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function St(){return yt||(yt=wt(0,0,5))}function xt(e,t,r,n,o,i){var a,s=n>>>r&m,c=e&&s<e.array.length;if(!c&&void 0===o)return e;if(r>0){var u=e&&e.array[s],l=xt(u,t,r-5,n,o,i);return l===u?e:((a=Et(e,t)).array[s]=l,a)}return c&&e.array[s]===o?e:(x(i),a=Et(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function Et(e,t){return t&&e&&t===e.ownerID?e:new gt(e?e.array.slice():[],t)}function _t(e,t){if(t>=kt(e._capacity))return e._tail;if(t<1<<e._level+5){for(var r=e._root,n=e._level;r&&n>0;)r=r.array[t>>>n&m],n-=5;return r}}function Ot(e,t,r){void 0!==t&&(t|=0),void 0!==r&&(r|=0);var n=e.__ownerID||new E,o=e._origin,i=e._capacity,a=o+t,s=void 0===r?i:r<0?i+r:o+r;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var c=e._level,u=e._root,l=0;a+l<0;)u=new gt(u&&u.array.length?[void 0,u]:[],n),l+=1<<(c+=5);l&&(a+=l,o+=l,s+=l,i+=l);for(var d=kt(i),f=kt(s);f>=1<<c+5;)u=new gt(u&&u.array.length?[u]:[],n),c+=5;var p=e._tail,h=f<d?_t(e,s-1):f>d?new gt([],n):p;if(p&&f>d&&a<i&&p.array.length){for(var g=u=Et(u,n),y=c;y>5;y-=5){var b=d>>>y&m;g=g.array[b]=Et(g.array[b],n)}g.array[d>>>5&m]=p}if(s<i&&(h=h&&h.removeAfter(n,0,s)),a>=f)a-=f,s-=f,c=5,u=null,h=h&&h.removeBefore(n,0,a);else if(a>o||f<d){for(l=0;u;){var v=a>>>c&m;if(v!==f>>>c&m)break;v&&(l+=(1<<c)*v),c-=5,u=u.array[v]}u&&a>o&&(u=u.removeBefore(n,c,a-l)),u&&f<d&&(u=u.removeAfter(n,c,f-l)),l&&(a-=l,s-=l)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=c,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):wt(a,s,c,u,h)}function Ct(e,t,r){for(var n=[],i=0,s=0;s<r.length;s++){var c=r[s],u=o(c);u.size>i&&(i=u.size),a(c)||(u=u.map(function(e){return ce(e)})),n.push(u)}return i>e.size&&(e=e.setSize(i)),ot(e,t,n)}function kt(e){return e<y?0:e-1>>>5<<5}function At(e){return null==e?Pt():Tt(e)?e:Pt().withMutations(function(t){var r=n(e);Re(r.size),r.forEach(function(e,r){return t.set(r,e)})})}function Tt(e){return Ne(e)&&l(e)}function It(e,t,r,n){var o=Object.create(At.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=r,o.__hash=n,o}function Pt(){return mt||(mt=It(Xe(),St()))}function Dt(e,t,r){var n,o,i=e._map,a=e._list,s=i.get(t),c=void 0!==s;if(r===b){if(!c)return e;a.size>=y&&a.size>=2*i.size?(n=(o=a.filter(function(e,t){return void 0!==e&&s!==t})).toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(n.__ownerID=o.__ownerID=e.__ownerID)):(n=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(c){if(r===a.get(s)[1])return e;n=i,o=a.set(s,[t,r])}else n=i.set(t,a.size),o=a.set(a.size,[t,r]);return e.__ownerID?(e.size=n.size,e._map=n,e._list=o,e.__hash=void 0,e):It(n,o)}function Lt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Mt(e){this._iter=e,this.size=e.size}function Rt(e){this._iter=e,this.size=e.size}function jt(e){this._iter=e,this.size=e.size}function Nt(e){var t=Jt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Qt,t.__iterateUncached=function(t,r){var n=this;return e.__iterate(function(e,r){return!1!==t(r,e,n)},r)},t.__iteratorUncached=function(t,r){if(2===t){var n=e.__iterator(t,r);return new R(function(){var e=n.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(1===t?0:1,r)},t}function Ft(e,t,r){var n=Jt(e);return n.size=e.size,n.has=function(t){return e.has(t)},n.get=function(n,o){var i=e.get(n,b);return i===b?o:t.call(r,i,n,e)},n.__iterateUncached=function(n,o){var i=this;return e.__iterate(function(e,o,a){return!1!==n(t.call(r,e,o,a),o,i)},o)},n.__iteratorUncached=function(n,o){var i=e.__iterator(2,o);return new R(function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return j(n,s,t.call(r,a[1],s,e),o)})},n}function Bt(e,t){var r=Jt(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=Nt(e);return t.reverse=function(){return e.flip()},t}),r.get=function(r,n){return e.get(t?r:-1-r,n)},r.has=function(r){return e.has(t?r:-1-r)},r.includes=function(t){return e.includes(t)},r.cacheResult=Qt,r.__iterate=function(t,r){var n=this;return e.__iterate(function(e,r){return t(e,r,n)},!r)},r.__iterator=function(t,r){return e.__iterator(t,!r)},r}function Ut(e,t,r,n){var o=Jt(e);return n&&(o.has=function(n){var o=e.get(n,b);return o!==b&&!!t.call(r,o,n,e)},o.get=function(n,o){var i=e.get(n,b);return i!==b&&t.call(r,i,n,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate(function(e,i,c){if(t.call(r,e,i,c))return s++,o(e,n?i:s-1,a)},i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(2,i),s=0;return new R(function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,u=c[0],l=c[1];if(t.call(r,l,u,e))return j(o,n?u:s++,l,i)}})},o}function Kt(e,t,r,n){var o=e.size;if(void 0!==t&&(t|=0),void 0!==r&&(r|=0),A(t,r,o))return e;var i=T(t,o),a=I(r,o);if(i!=i||a!=a)return Kt(e.toSeq().cacheResult(),t,r,n);var s,c=a-i;c==c&&(s=c<0?0:c);var u=Jt(e);return u.size=0===s?s:e.size&&s||void 0,!n&&te(e)&&s>=0&&(u.get=function(t,r){return(t=C(this,t))>=0&&t<s?e.get(t+i,r):r}),u.__iterateUncached=function(t,r){var o=this;if(0===s)return 0;if(r)return this.cacheResult().__iterate(t,r);var a=0,c=!0,u=0;return e.__iterate(function(e,r){if(!c||!(c=a++<i))return u++,!1!==t(e,n?r:u-1,o)&&u!==s}),u},u.__iteratorUncached=function(t,r){if(0!==s&&r)return this.cacheResult().__iterator(t,r);var o=0!==s&&e.__iterator(t,r),a=0,c=0;return new R(function(){for(;a++<i;)o.next();if(++c>s)return{value:void 0,done:!0};var e=o.next();return n||1===t?e:j(t,c-1,0===t?void 0:e.value[1],e)})},u}function Ht(e,t,r,n){var o=Jt(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return e.__iterate(function(e,i,u){if(!s||!(s=t.call(r,e,i,u)))return c++,o(e,n?i:c-1,a)}),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(2,i),c=!0,u=0;return new R(function(){var e,i,l;do{if((e=s.next()).done)return n||1===o?e:j(o,u++,0===o?void 0:e.value[1],e);var d=e.value;i=d[0],l=d[1],c&&(c=t.call(r,l,i,a))}while(c);return 2===o?e:j(o,i,l,e)})},o}function zt(e,t,r){var n=Jt(e);return n.__iterateUncached=function(n,o){var i=0,s=!1;return function e(c,u){var l=this;c.__iterate(function(o,c){return(!t||u<t)&&a(o)?e(o,u+1):!1===n(o,r?c:i++,l)&&(s=!0),!s},o)}(e,0),i},n.__iteratorUncached=function(n,o){var i=e.__iterator(n,o),s=[],c=0;return new R(function(){for(;i;){var e=i.next();if(!1===e.done){var u=e.value;if(2===n&&(u=u[1]),t&&!(s.length<t)||!a(u))return r?e:j(n,c++,u,e);s.push(i),i=u.__iterator(n,o)}else i=s.pop()}return{value:void 0,done:!0}})},n}function qt(e,t,r){t||(t=er);var n=s(e),o=0,i=e.toSeq().map(function(t,n){return[n,t,o++,r?r(t,n,e):t]}).toArray();return i.sort(function(e,r){return t(e[3],r[3])||e[2]-r[2]}).forEach(n?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),n?q(i):c(e)?V(i):G(i)}function Vt(e,t,r){if(t||(t=er),r){var n=e.toSeq().map(function(t,n){return[t,r(t,n,e)]}).reduce(function(e,r){return Gt(t,e[1],r[1])?r:e});return n&&n[0]}return e.reduce(function(e,r){return Gt(t,e,r)?r:e})}function Gt(e,t,r){var n=e(r,t);return 0===n&&r!==t&&(null==r||r!=r)||n>0}function Wt(e,t,n){var o=Jt(e);return o.size=new Z(n).map(function(e){return e.size}).min(),o.__iterate=function(e,t){for(var r,n=this.__iterator(1,t),o=0;!(r=n.next()).done&&!1!==e(r.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=n.map(function(e){return e=r(e),U(o?e.reverse():e)}),a=0,s=!1;return new R(function(){var r;return s||(r=i.map(function(e){return e.next()}),s=r.some(function(e){return e.done})),s?{value:void 0,done:!0}:j(e,a++,t.apply(null,r.map(function(e){return e.value})))})},o}function $t(e,t){return te(e)?t:e.constructor(t)}function Yt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Xt(e){return Re(e.size),O(e)}function Zt(e){return s(e)?n:c(e)?o:i}function Jt(e){return Object.create((s(e)?q:c(e)?V:G).prototype)}function Qt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):z.prototype.cacheResult.call(this)}function er(e,t){return e>t?1:e<t?-1:0}function tr(e){var t=U(e);if(!t){if(!H(e))throw new TypeError("Expected iterable or array-like: "+e);t=U(r(e))}return t}function rr(e,t){var r,n=function(i){if(i instanceof n)return i;if(!(this instanceof n))return new n(i);if(!r){r=!0;var a=Object.keys(e);(function(e,t){try{t.forEach(ar.bind(void 0,e))}catch(e){}})(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=je(i)},o=n.prototype=Object.create(nr);return o.constructor=n,n}t(At,je),At.of=function(){return this(arguments)},At.prototype.toString=function(){return this.__toString("OrderedMap {","}")},At.prototype.get=function(e,t){var r=this._map.get(e);return void 0!==r?this._list.get(r)[1]:t},At.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Pt()},At.prototype.set=function(e,t){return Dt(this,e,t)},At.prototype.remove=function(e){return Dt(this,e,b)},At.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},At.prototype.__iterate=function(e,t){var r=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],r)},t)},At.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},At.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),r=this._list.__ensureOwner(e);return e?It(t,r,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=r,this)},At.isOrderedMap=Tt,At.prototype[h]=!0,At.prototype[g]=At.prototype.remove,t(Lt,q),Lt.prototype.get=function(e,t){return this._iter.get(e,t)},Lt.prototype.has=function(e){return this._iter.has(e)},Lt.prototype.valueSeq=function(){return this._iter.valueSeq()},Lt.prototype.reverse=function(){var e=this,t=Bt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Lt.prototype.map=function(e,t){var r=this,n=Ft(this,e,t);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(e,t)}),n},Lt.prototype.__iterate=function(e,t){var r,n=this;return this._iter.__iterate(this._useKeys?function(t,r){return e(t,r,n)}:(r=t?Xt(this):0,function(o){return e(o,t?--r:r++,n)}),t)},Lt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var r=this._iter.__iterator(1,t),n=t?Xt(this):0;return new R(function(){var o=r.next();return o.done?o:j(e,t?--n:n++,o.value,o)})},Lt.prototype[h]=!0,t(Mt,V),Mt.prototype.includes=function(e){return this._iter.includes(e)},Mt.prototype.__iterate=function(e,t){var r=this,n=0;return this._iter.__iterate(function(t){return e(t,n++,r)},t)},Mt.prototype.__iterator=function(e,t){var r=this._iter.__iterator(1,t),n=0;return new R(function(){var t=r.next();return t.done?t:j(e,n++,t.value,t)})},t(Rt,G),Rt.prototype.has=function(e){return this._iter.includes(e)},Rt.prototype.__iterate=function(e,t){var r=this;return this._iter.__iterate(function(t){return e(t,t,r)},t)},Rt.prototype.__iterator=function(e,t){var r=this._iter.__iterator(1,t);return new R(function(){var t=r.next();return t.done?t:j(e,t.value,t.value,t)})},t(jt,q),jt.prototype.entrySeq=function(){return this._iter.toSeq()},jt.prototype.__iterate=function(e,t){var r=this;return this._iter.__iterate(function(t){if(t){Yt(t);var n=a(t);return e(n?t.get(1):t[1],n?t.get(0):t[0],r)}},t)},jt.prototype.__iterator=function(e,t){var r=this._iter.__iterator(1,t);return new R(function(){for(;;){var t=r.next();if(t.done)return t;var n=t.value;if(n){Yt(n);var o=a(n);return j(e,o?n.get(0):n[0],o?n.get(1):n[1],t)}}})},Mt.prototype.cacheResult=Lt.prototype.cacheResult=Rt.prototype.cacheResult=jt.prototype.cacheResult=Qt,t(rr,be),rr.prototype.toString=function(){return this.__toString(ir(this)+" {","}")},rr.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},rr.prototype.get=function(e,t){if(!this.has(e))return t;var r=this._defaultValues[e];return this._map?this._map.get(e,r):r},rr.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=or(this,Xe()))},rr.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+ir(this));var r=this._map&&this._map.set(e,t);return this.__ownerID||r===this._map?this:or(this,r)},rr.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:or(this,t)},rr.prototype.wasAltered=function(){return this._map.wasAltered()},rr.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},rr.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},rr.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?or(this,t,e):(this.__ownerID=e,this._map=t,this)};var nr=rr.prototype;function or(e,t,r){var n=Object.create(Object.getPrototypeOf(e));return n._map=t,n.__ownerID=r,n}function ir(e){return e._name||e.constructor.name||"Record"}function ar(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){ge(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function sr(e){return null==e?hr():cr(e)&&!l(e)?e:hr().withMutations(function(t){var r=i(e);Re(r.size),r.forEach(function(e){return t.add(e)})})}function cr(e){return!(!e||!e[lr])}nr[g]=nr.remove,nr.deleteIn=nr.removeIn=Ue.removeIn,nr.merge=Ue.merge,nr.mergeWith=Ue.mergeWith,nr.mergeIn=Ue.mergeIn,nr.mergeDeep=Ue.mergeDeep,nr.mergeDeepWith=Ue.mergeDeepWith,nr.mergeDeepIn=Ue.mergeDeepIn,nr.setIn=Ue.setIn,nr.update=Ue.update,nr.updateIn=Ue.updateIn,nr.withMutations=Ue.withMutations,nr.asMutable=Ue.asMutable,nr.asImmutable=Ue.asImmutable,t(sr,we),sr.of=function(){return this(arguments)},sr.fromKeys=function(e){return this(n(e).keySeq())},sr.prototype.toString=function(){return this.__toString("Set {","}")},sr.prototype.has=function(e){return this._map.has(e)},sr.prototype.add=function(e){return fr(this,this._map.set(e,!0))},sr.prototype.remove=function(e){return fr(this,this._map.remove(e))},sr.prototype.clear=function(){return fr(this,this._map.clear())},sr.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var r=0;r<t.length;r++)i(t[r]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},sr.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map(function(e){return i(e)});var r=this;return this.withMutations(function(e){r.forEach(function(r){t.every(function(e){return e.includes(r)})||e.remove(r)})})},sr.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map(function(e){return i(e)});var r=this;return this.withMutations(function(e){r.forEach(function(r){t.some(function(e){return e.includes(r)})&&e.remove(r)})})},sr.prototype.merge=function(){return this.union.apply(this,arguments)},sr.prototype.mergeWith=function(t){var r=e.call(arguments,1);return this.union.apply(this,r)},sr.prototype.sort=function(e){return gr(qt(this,e))},sr.prototype.sortBy=function(e,t){return gr(qt(this,t,e))},sr.prototype.wasAltered=function(){return this._map.wasAltered()},sr.prototype.__iterate=function(e,t){var r=this;return this._map.__iterate(function(t,n){return e(n,n,r)},t)},sr.prototype.__iterator=function(e,t){return this._map.map(function(e,t){return t}).__iterator(e,t)},sr.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},sr.isSet=cr;var ur,lr="@@__IMMUTABLE_SET__@@",dr=sr.prototype;function fr(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function pr(e,t){var r=Object.create(dr);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}function hr(){return ur||(ur=pr(Xe()))}function gr(e){return null==e?wr():yr(e)?e:wr().withMutations(function(t){var r=i(e);Re(r.size),r.forEach(function(e){return t.add(e)})})}function yr(e){return cr(e)&&l(e)}dr[lr]=!0,dr[g]=dr.remove,dr.mergeDeep=dr.merge,dr.mergeDeepWith=dr.mergeWith,dr.withMutations=Ue.withMutations,dr.asMutable=Ue.asMutable,dr.asImmutable=Ue.asImmutable,dr.__empty=hr,dr.__make=pr,t(gr,sr),gr.of=function(){return this(arguments)},gr.fromKeys=function(e){return this(n(e).keySeq())},gr.prototype.toString=function(){return this.__toString("OrderedSet {","}")},gr.isOrderedSet=yr;var mr,br=gr.prototype;function vr(e,t){var r=Object.create(br);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}function wr(){return mr||(mr=vr(Pt()))}function Sr(e){return null==e?kr():xr(e)?e:kr().unshiftAll(e)}function xr(e){return!(!e||!e[_r])}br[h]=!0,br.__empty=wr,br.__make=vr,t(Sr,ve),Sr.of=function(){return this(arguments)},Sr.prototype.toString=function(){return this.__toString("Stack [","]")},Sr.prototype.get=function(e,t){var r=this._head;for(e=C(this,e);r&&e--;)r=r.next;return r?r.value:t},Sr.prototype.peek=function(){return this._head&&this._head.value},Sr.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,r=arguments.length-1;r>=0;r--)t={value:arguments[r],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Cr(e,t)},Sr.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Re(e.size);var t=this.size,r=this._head;return e.reverse().forEach(function(e){t++,r={value:e,next:r}}),this.__ownerID?(this.size=t,this._head=r,this.__hash=void 0,this.__altered=!0,this):Cr(t,r)},Sr.prototype.pop=function(){return this.slice(1)},Sr.prototype.unshift=function(){return this.push.apply(this,arguments)},Sr.prototype.unshiftAll=function(e){return this.pushAll(e)},Sr.prototype.shift=function(){return this.pop.apply(this,arguments)},Sr.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):kr()},Sr.prototype.slice=function(e,t){if(A(e,t,this.size))return this;var r=T(e,this.size);if(I(t,this.size)!==this.size)return ve.prototype.slice.call(this,e,t);for(var n=this.size-r,o=this._head;r--;)o=o.next;return this.__ownerID?(this.size=n,this._head=o,this.__hash=void 0,this.__altered=!0,this):Cr(n,o)},Sr.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Cr(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Sr.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var r=0,n=this._head;n&&!1!==e(n.value,r++,this);)n=n.next;return r},Sr.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var r=0,n=this._head;return new R(function(){if(n){var t=n.value;return n=n.next,j(e,r++,t)}return{value:void 0,done:!0}})},Sr.isStack=xr;var Er,_r="@@__IMMUTABLE_STACK__@@",Or=Sr.prototype;function Cr(e,t,r,n){var o=Object.create(Or);return o.size=e,o._head=t,o.__ownerID=r,o.__hash=n,o.__altered=!1,o}function kr(){return Er||(Er=Cr(0))}function Ar(e,t){var r=function(r){e.prototype[r]=t[r]};return Object.keys(t).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(r),e}Or[_r]=!0,Or.withMutations=Ue.withMutations,Or.asMutable=Ue.asMutable,Or.asImmutable=Ue.asImmutable,Or.wasAltered=Ue.wasAltered,r.Iterator=R,Ar(r,{toArray:function(){Re(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,r){e[r]=t}),e},toIndexedSeq:function(){return new Mt(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new Lt(this,!0)},toMap:function(){return je(this.toKeyedSeq())},toObject:function(){Re(this.size);var e={};return this.__iterate(function(t,r){e[r]=t}),e},toOrderedMap:function(){return At(this.toKeyedSeq())},toOrderedSet:function(){return gr(s(this)?this.valueSeq():this)},toSet:function(){return sr(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Rt(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Sr(s(this)?this.valueSeq():this)},toList:function(){return dt(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return $t(this,function(e,t){var r=s(e),o=[e].concat(t).map(function(e){return a(e)?r&&(e=n(e)):e=r?ne(e):oe(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||r&&s(i)||c(e)&&c(i))return i}var u=new Z(o);return r?u=u.toKeyedSeq():c(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce(function(e,t){if(void 0!==e){var r=t.size;if(void 0!==r)return e+r}},0),u}(this,e.call(arguments,0)))},includes:function(e){return this.some(function(t){return fe(t,e)})},entries:function(){return this.__iterator(2)},every:function(e,t){Re(this.size);var r=!0;return this.__iterate(function(n,o,i){if(!e.call(t,n,o,i))return r=!1,!1}),r},filter:function(e,t){return $t(this,Ut(this,e,t,!0))},find:function(e,t,r){var n=this.findEntry(e,t);return n?n[1]:r},findEntry:function(e,t){var r;return this.__iterate(function(n,o,i){if(e.call(t,n,o,i))return r=[o,n],!1}),r},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Re(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Re(this.size),e=void 0!==e?""+e:",";var t="",r=!0;return this.__iterate(function(n){r?r=!1:t+=e,t+=null!=n?n.toString():""}),t},keys:function(){return this.__iterator(0)},map:function(e,t){return $t(this,Ft(this,e,t))},reduce:function(e,t,r){var n,o;return Re(this.size),arguments.length<2?o=!0:n=t,this.__iterate(function(t,i,a){o?(o=!1,n=t):n=e.call(r,n,t,i,a)}),n},reduceRight:function(e,t,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return $t(this,Bt(this,!0))},slice:function(e,t){return $t(this,Kt(this,e,t,!0))},some:function(e,t){return!this.every(Lr(e),t)},sort:function(e){return $t(this,qt(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return O(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,r){var n=je().asMutable();return e.__iterate(function(o,i){n.update(t.call(r,o,i,e),0,function(e){return e+1})}),n.asImmutable()}(this,e,t)},equals:function(e){return pe(this,e)},entrySeq:function(){var e=this;if(e._cache)return new Z(e._cache);var t=e.toSeq().map(Dr).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Lr(e),t)},findLast:function(e,t,r){return this.toKeyedSeq().reverse().find(e,t,r)},first:function(){return this.find(k)},flatMap:function(e,t){return $t(this,function(e,t,r){var n=Zt(e);return e.toSeq().map(function(o,i){return n(t.call(r,o,i,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return $t(this,zt(this,e,!0))},fromEntrySeq:function(){return new jt(this)},get:function(e,t){return this.find(function(t,r){return fe(r,e)},void 0,t)},getIn:function(e,t){for(var r,n=this,o=tr(e);!(r=o.next()).done;){var i=r.value;if((n=n&&n.get?n.get(i,b):b)===b)return t}return n},groupBy:function(e,t){return function(e,t,r){var n=s(e),o=(l(e)?At():je()).asMutable();e.__iterate(function(i,a){o.update(t.call(r,i,a,e),function(e){return(e=e||[]).push(n?[a,i]:i),e})});var i=Zt(e);return o.map(function(t){return $t(e,i(t))})}(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:r(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:r(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Pr).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return Vt(this,e)},maxBy:function(e,t){return Vt(this,t,e)},min:function(e){return Vt(this,e?Mr(e):Nr)},minBy:function(e,t){return Vt(this,t?Mr(t):Nr,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return $t(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return $t(this,Ht(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Lr(e),t)},sortBy:function(e,t){return $t(this,qt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return $t(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return $t(this,function(e,t,r){var n=Jt(e);return n.__iterateUncached=function(n,o){var i=this;if(o)return this.cacheResult().__iterate(n,o);var a=0;return e.__iterate(function(e,o,s){return t.call(r,e,o,s)&&++a&&n(e,o,i)}),a},n.__iteratorUncached=function(n,o){var i=this;if(o)return this.cacheResult().__iterator(n,o);var a=e.__iterator(2,o),s=!0;return new R(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var o=e.value,c=o[0],u=o[1];return t.call(r,u,c,i)?2===n?e:j(n,c,u,e):(s=!1,{value:void 0,done:!0})})},n}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Lr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=l(e),r=s(e),n=t?1:0;return function(e,t){return t=Se(t,3432918353),t=Se(t<<15|t>>>-15,461845907),t=Se(t<<13|t>>>-13,5),t=Se((t=(t+3864292196|0)^e)^t>>>16,2246822507),xe((t=Se(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(r?t?function(e,t){n=31*n+Fr(Ee(e),Ee(t))|0}:function(e,t){n=n+Fr(Ee(e),Ee(t))|0}:t?function(e){n=31*n+Ee(e)|0}:function(e){n=n+Ee(e)|0}),n)}(this))}});var Tr=r.prototype;Tr[d]=!0,Tr[M]=Tr.values,Tr.__toJS=Tr.toArray,Tr.__toStringMapper=Rr,Tr.inspect=Tr.toSource=function(){return this.toString()},Tr.chain=Tr.flatMap,Tr.contains=Tr.includes,function(){try{Object.defineProperty(Tr,"length",{get:function(){if(!r.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Ar(n,{flip:function(){return $t(this,Nt(this))},findKey:function(e,t){var r=this.findEntry(e,t);return r&&r[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey(function(t){return fe(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return fe(t,e)})},mapEntries:function(e,t){var r=this,n=0;return $t(this,this.toSeq().map(function(o,i){return e.call(t,[i,o],n++,r)}).fromEntrySeq())},mapKeys:function(e,t){var r=this;return $t(this,this.toSeq().flip().map(function(n,o){return e.call(t,n,o,r)}).flip())}});var Ir=n.prototype;function Pr(e,t){return t}function Dr(e,t){return[t,e]}function Lr(e){return function(){return!e.apply(this,arguments)}}function Mr(e){return function(){return-e.apply(this,arguments)}}function Rr(e){return"string"==typeof e?JSON.stringify(e):e}function jr(){return _(arguments)}function Nr(e,t){return e<t?1:e>t?-1:0}function Fr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Ir[f]=!0,Ir[M]=Tr.entries,Ir.__toJS=Tr.toObject,Ir.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Rr(e)},Ar(o,{toKeyedSeq:function(){return new Lt(this,!1)},filter:function(e,t){return $t(this,Ut(this,e,t,!1))},findIndex:function(e,t){var r=this.findEntry(e,t);return r?r[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return $t(this,Bt(this,!1))},slice:function(e,t){return $t(this,Kt(this,e,t,!1))},splice:function(e,t){var r=arguments.length;if(t=Math.max(0|t,0),0===r||2===r&&!t)return this;e=T(e,e<0?this.count():this.size);var n=this.slice(0,e);return $t(this,1===r?n:n.concat(_(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var r=this.toKeyedSeq().findLastKey(e,t);return void 0===r?-1:r},first:function(){return this.get(0)},flatten:function(e){return $t(this,zt(this,e,!1))},get:function(e,t){return(e=C(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,r){return r===e},void 0,t)},has:function(e){return(e=C(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return $t(this,function(e,t){var r=Jt(e);return r.size=e.size&&2*e.size-1,r.__iterateUncached=function(r,n){var o=this,i=0;return e.__iterate(function(e,n){return(!i||!1!==r(t,i++,o))&&!1!==r(e,i++,o)},n),i},r.__iteratorUncached=function(r,n){var o,i=e.__iterator(1,n),a=0;return new R(function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?j(r,a++,t):j(r,a++,o.value,o)})},r}(this,e))},interleave:function(){var e=[this].concat(_(arguments)),t=Wt(this.toSeq(),V.of,e),r=t.flatten(!0);return t.size&&(r.size=t.size*e.length),$t(this,r)},last:function(){return this.get(-1)},skipWhile:function(e,t){return $t(this,Ht(this,e,t,!1))},zip:function(){return $t(this,Wt(this,jr,[this].concat(_(arguments))))},zipWith:function(e){var t=_(arguments);return t[0]=this,$t(this,Wt(this,e,t))}}),o.prototype[p]=!0,o.prototype[h]=!0,Ar(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Tr.includes,Ar(q,n.prototype),Ar(V,o.prototype),Ar(G,i.prototype),Ar(be,n.prototype),Ar(ve,o.prototype),Ar(we,i.prototype),{Iterable:r,Seq:z,Collection:me,Map:je,OrderedMap:At,List:dt,Stack:Sr,Set:sr,OrderedSet:gr,Record:rr,Range:ye,Repeat:he,is:fe,fromJS:ce}}()},5963(e,t,r){"use strict";r.d(t,{A:()=>c});var n=r(4606);e=r.hmd(e);var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.A.Buffer:void 0,s=a?a.allocUnsafe:void 0;const c=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},7767(e,t,r){"use strict";r.d(t,{A:()=>n});const n="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis},9986(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(7767);e=r.hmd(e);var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.A.process;const s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}()},4606(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(7767),o="object"==typeof self&&self&&self.Object===Object&&self;const i=n.A||o||Function("return this")()},1719(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(4606);e=r.hmd(e);var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.A.Buffer:void 0;const s=(a?a.isBuffer:void 0)||function(){return!1}},5580(e,t,r){var n=r(6110)(r(9325),"DataView");e.exports=n},1549(e,t,r){var n=r(2032),o=r(3862),i=r(6721),a=r(2749),s=r(5749);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},79(e,t,r){var n=r(3702),o=r(80),i=r(4739),a=r(8655),s=r(1175);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},8223(e,t,r){var n=r(6110)(r(9325),"Map");e.exports=n},3661(e,t,r){var n=r(3040),o=r(7670),i=r(289),a=r(4509),s=r(2949);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},2804(e,t,r){var n=r(6110)(r(9325),"Promise");e.exports=n},6545(e,t,r){var n=r(6110)(r(9325),"Set");e.exports=n},8859(e,t,r){var n=r(3661),o=r(1380),i=r(1459);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},7217(e,t,r){var n=r(79),o=r(1420),i=r(938),a=r(3605),s=r(9817),c=r(945);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=c,e.exports=u},1873(e,t,r){var n=r(9325).Symbol;e.exports=n},7828(e,t,r){var n=r(9325).Uint8Array;e.exports=n},8303(e,t,r){var n=r(6110)(r(9325),"WeakMap");e.exports=n},1033(e){e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},3729(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},9770(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}},5325(e,t,r){var n=r(6131);e.exports=function(e,t){return!(null==e||!e.length)&&n(e,t,0)>-1}},9905(e){e.exports=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}},695(e,t,r){var n=r(8096),o=r(2428),i=r(6449),a=r(3656),s=r(361),c=r(7167),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),l=!r&&o(e),d=!r&&!l&&a(e),f=!r&&!l&&!d&&c(e),p=r||l||d||f,h=p?n(e.length,String):[],g=h.length;for(var y in e)!t&&!u.call(e,y)||p&&("length"==y||d&&("offset"==y||"parent"==y)||f&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,g))||h.push(y);return h}},4932(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}},4528(e){e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},882(e){e.exports=function(e,t,r,n){var o=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}},4248(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},1733(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},7805(e,t,r){var n=r(3360),o=r(5288);e.exports=function(e,t,r){(void 0!==r&&!o(e[t],r)||void 0===r&&!(t in e))&&n(e,t,r)}},6547(e,t,r){var n=r(3360),o=r(5288),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];i.call(e,t)&&o(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},6025(e,t,r){var n=r(5288);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},4733(e,t,r){var n=r(1791),o=r(5950);e.exports=function(e,t){return e&&n(t,o(t),e)}},3838(e,t,r){var n=r(1791),o=r(7241);e.exports=function(e,t){return e&&n(t,o(t),e)}},3360(e,t,r){var n=r(3243);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},9999(e,t,r){var n=r(7217),o=r(3729),i=r(6547),a=r(4733),s=r(3838),c=r(3290),u=r(3007),l=r(2271),d=r(8948),f=r(2),p=r(3349),h=r(5861),g=r(6189),y=r(7199),m=r(5529),b=r(6449),v=r(3656),w=r(7730),S=r(3805),x=r(8440),E=r(5950),_=r(7241),O="[object Arguments]",C="[object Function]",k="[object Object]",A={};A[O]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[k]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[C]=A["[object WeakMap]"]=!1,e.exports=function e(t,r,T,I,P,D){var L,M=1&r,R=2&r,j=4&r;if(T&&(L=P?T(t,I,P,D):T(t)),void 0!==L)return L;if(!S(t))return t;var N=b(t);if(N){if(L=g(t),!M)return u(t,L)}else{var F=h(t),B=F==C||"[object GeneratorFunction]"==F;if(v(t))return c(t,M);if(F==k||F==O||B&&!P){if(L=R||B?{}:m(t),!M)return R?d(t,s(L,t)):l(t,a(L,t))}else{if(!A[F])return P?t:{};L=y(t,F,M)}}D||(D=new n);var U=D.get(t);if(U)return U;D.set(t,L),x(t)?t.forEach(function(n){L.add(e(n,r,T,n,t,D))}):w(t)&&t.forEach(function(n,o){L.set(o,e(n,r,T,o,t,D))});var K=N?void 0:(j?R?p:f:R?_:E)(t);return o(K||t,function(n,o){K&&(n=t[o=n]),i(L,o,e(n,r,T,o,t,D))}),L}},9344(e,t,r){var n=r(3805),o=Object.create,i=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=i},2523(e){e.exports=function(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},3120(e,t,r){var n=r(4528),o=r(5891);e.exports=function e(t,r,i,a,s){var c=-1,u=t.length;for(i||(i=o),s||(s=[]);++c<u;){var l=t[c];r>0&&i(l)?r>1?e(l,r-1,i,a,s):n(s,l):a||(s[s.length]=l)}return s}},6649(e,t,r){var n=r(3221)();e.exports=n},7422(e,t,r){var n=r(1769),o=r(7797);e.exports=function(e,t){for(var r=0,i=(t=n(t,e)).length;null!=e&&r<i;)e=e[o(t[r++])];return r&&r==i?e:void 0}},2199(e,t,r){var n=r(4528),o=r(6449);e.exports=function(e,t,r){var i=t(e);return o(e)?i:n(i,r(e))}},2552(e,t,r){var n=r(1873),o=r(659),i=r(9350),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},8077(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},6131(e,t,r){var n=r(2523),o=r(5463),i=r(6959);e.exports=function(e,t,r){return t==t?i(e,t,r):n(e,o,r)}},7534(e,t,r){var n=r(2552),o=r(346);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},270(e,t,r){var n=r(7068),o=r(346);e.exports=function e(t,r,i,a,s){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!=t&&r!=r:n(t,r,i,a,e,s))}},7068(e,t,r){var n=r(7217),o=r(5911),i=r(1986),a=r(689),s=r(5861),c=r(6449),u=r(3656),l=r(7167),d="[object Arguments]",f="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,g,y,m){var b=c(e),v=c(t),w=b?f:s(e),S=v?f:s(t),x=(w=w==d?p:w)==p,E=(S=S==d?p:S)==p,_=w==S;if(_&&u(e)){if(!u(t))return!1;b=!0,x=!1}if(_&&!x)return m||(m=new n),b||l(e)?o(e,t,r,g,y,m):i(e,t,w,r,g,y,m);if(!(1&r)){var O=x&&h.call(e,"__wrapped__"),C=E&&h.call(t,"__wrapped__");if(O||C){var k=O?e.value():e,A=C?t.value():t;return m||(m=new n),y(k,A,r,g,m)}}return!!_&&(m||(m=new n),a(e,t,r,g,y,m))}},9172(e,t,r){var n=r(5861),o=r(346);e.exports=function(e){return o(e)&&"[object Map]"==n(e)}},1799(e,t,r){var n=r(7217),o=r(270);e.exports=function(e,t,r,i){var a=r.length,s=a,c=!i;if(null==e)return!s;for(e=Object(e);a--;){var u=r[a];if(c&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var l=(u=r[a])[0],d=e[l],f=u[1];if(c&&u[2]){if(void 0===d&&!(l in e))return!1}else{var p=new n;if(i)var h=i(d,f,l,e,t,p);if(!(void 0===h?o(f,d,3,i,p):h))return!1}}return!0}},5463(e){e.exports=function(e){return e!=e}},5083(e,t,r){var n=r(1882),o=r(7296),i=r(3805),a=r(7473),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,d=u.hasOwnProperty,f=RegExp("^"+l.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?f:s).test(a(e))}},6038(e,t,r){var n=r(5861),o=r(346);e.exports=function(e){return o(e)&&"[object Set]"==n(e)}},4901(e,t,r){var n=r(2552),o=r(294),i=r(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[n(e)]}},5389(e,t,r){var n=r(3663),o=r(7978),i=r(3488),a=r(6449),s=r(583);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):n(e):s(e)}},8984(e,t,r){var n=r(5527),o=r(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},2903(e,t,r){var n=r(3805),o=r(5527),i=r(181),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=o(e),r=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&r.push(s);return r}},3663(e,t,r){var n=r(1799),o=r(776),i=r(7197);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},7978(e,t,r){var n=r(270),o=r(8156),i=r(631),a=r(8586),s=r(756),c=r(7197),u=r(7797);e.exports=function(e,t){return a(e)&&s(t)?c(u(e),t):function(r){var a=o(r,e);return void 0===a&&a===t?i(r,e):n(t,a,3)}}},5250(e,t,r){var n=r(7217),o=r(7805),i=r(6649),a=r(2824),s=r(3805),c=r(7241),u=r(4974);e.exports=function e(t,r,l,d,f){t!==r&&i(r,function(i,c){if(f||(f=new n),s(i))a(t,r,c,l,e,d,f);else{var p=d?d(u(t,c),i,c+"",t,r,f):void 0;void 0===p&&(p=i),o(t,c,p)}},c)}},2824(e,t,r){var n=r(7805),o=r(3290),i=r(1961),a=r(3007),s=r(5529),c=r(2428),u=r(6449),l=r(3693),d=r(3656),f=r(1882),p=r(3805),h=r(1331),g=r(7167),y=r(4974),m=r(9884);e.exports=function(e,t,r,b,v,w,S){var x=y(e,r),E=y(t,r),_=S.get(E);if(_)n(e,r,_);else{var O=w?w(x,E,r+"",e,t,S):void 0,C=void 0===O;if(C){var k=u(E),A=!k&&d(E),T=!k&&!A&&g(E);O=E,k||A||T?u(x)?O=x:l(x)?O=a(x):A?(C=!1,O=o(E,!0)):T?(C=!1,O=i(E,!0)):O=[]:h(E)||c(E)?(O=x,c(x)?O=m(x):p(x)&&!f(x)||(O=s(E))):C=!1}C&&(S.set(E,O),v(O,E,b,w,S),S.delete(E)),n(e,r,O)}}},7237(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},7255(e,t,r){var n=r(7422);e.exports=function(e){return function(t){return n(t,e)}}},4552(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},9302(e,t,r){var n=r(3488),o=r(6757),i=r(2865);e.exports=function(e,t){return i(o(e,t,n),e+"")}},9570(e,t,r){var n=r(7334),o=r(3243),i=r(3488),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i;e.exports=a},5160(e){e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}},8096(e){e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},7556(e,t,r){var n=r(1873),o=r(4932),i=r(6449),a=r(4394),s=n?n.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return c?c.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},4128(e,t,r){var n=r(1800),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},7301(e){e.exports=function(e){return function(t){return e(t)}}},5765(e,t,r){var n=r(8859),o=r(5325),i=r(9905),a=r(9219),s=r(4517),c=r(4247);e.exports=function(e,t,r){var u=-1,l=o,d=e.length,f=!0,p=[],h=p;if(r)f=!1,l=i;else if(d>=200){var g=t?null:s(e);if(g)return c(g);f=!1,l=a,h=new n}else h=t?[]:p;e:for(;++u<d;){var y=e[u],m=t?t(y):y;if(y=r||0!==y?y:0,f&&m==m){for(var b=h.length;b--;)if(h[b]===m)continue e;t&&h.push(m),p.push(y)}else l(h,m,r)||(h!==p&&h.push(m),p.push(y))}return p}},9931(e,t,r){var n=r(1769),o=r(8090),i=r(8969),a=r(7797);e.exports=function(e,t){return t=n(t,e),null==(e=i(e,t))||delete e[a(o(t))]}},514(e,t,r){var n=r(4932);e.exports=function(e,t){return n(t,function(t){return e[t]})}},9219(e){e.exports=function(e,t){return e.has(t)}},1769(e,t,r){var n=r(6449),o=r(8586),i=r(1802),a=r(3222);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:i(a(e))}},9653(e,t,r){var n=r(7828);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},3290(e,t,r){e=r.nmd(e);var n=r(9325),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},6169(e,t,r){var n=r(9653);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},3201(e){var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},3736(e,t,r){var n=r(1873),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},1961(e,t,r){var n=r(9653);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},3007(e){e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},1791(e,t,r){var n=r(6547),o=r(3360);e.exports=function(e,t,r,i){var a=!r;r||(r={});for(var s=-1,c=t.length;++s<c;){var u=t[s],l=i?i(r[u],e[u],u,r,e):void 0;void 0===l&&(l=e[u]),a?o(r,u,l):n(r,u,l)}return r}},2271(e,t,r){var n=r(1791),o=r(4664);e.exports=function(e,t){return n(e,o(e),t)}},8948(e,t,r){var n=r(1791),o=r(6375);e.exports=function(e,t){return n(e,o(e),t)}},5481(e,t,r){var n=r(9325)["__core-js_shared__"];e.exports=n},999(e,t,r){var n=r(9302),o=r(6800);e.exports=function(e){return n(function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++n<i;){var c=r[n];c&&e(t,c,n,a)}return t})}},3221(e){e.exports=function(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===r(i[c],c,i))break}return t}}},5539(e,t,r){var n=r(882),o=r(828),i=r(6645),a=RegExp("['’]","g");e.exports=function(e){return function(t){return n(i(o(t).replace(a,"")),e,"")}}},4517(e,t,r){var n=r(6545),o=r(3950),i=r(4247),a=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:o;e.exports=a},3138(e,t,r){var n=r(1331);e.exports=function(e){return n(e)?void 0:e}},4647(e,t,r){var n=r(4552)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=n},3243(e,t,r){var n=r(6110),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},5911(e,t,r){var n=r(8859),o=r(4248),i=r(9219);e.exports=function(e,t,r,a,s,c){var u=1&r,l=e.length,d=t.length;if(l!=d&&!(u&&d>l))return!1;var f=c.get(e),p=c.get(t);if(f&&p)return f==t&&p==e;var h=-1,g=!0,y=2&r?new n:void 0;for(c.set(e,t),c.set(t,e);++h<l;){var m=e[h],b=t[h];if(a)var v=u?a(b,m,h,t,e,c):a(m,b,h,e,t,c);if(void 0!==v){if(v)continue;g=!1;break}if(y){if(!o(t,function(e,t){if(!i(y,t)&&(m===e||s(m,e,r,a,c)))return y.push(t)})){g=!1;break}}else if(m!==b&&!s(m,b,r,a,c)){g=!1;break}}return c.delete(e),c.delete(t),g}},1986(e,t,r){var n=r(1873),o=r(7828),i=r(5288),a=r(5911),s=r(317),c=r(4247),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,d,f){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var h=1&n;if(p||(p=c),e.size!=t.size&&!h)return!1;var g=f.get(e);if(g)return g==t;n|=2,f.set(e,t);var y=a(p(e),p(t),n,u,d,f);return f.delete(e),y;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},689(e,t,r){var n=r(2),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,a,s){var c=1&r,u=n(e),l=u.length;if(l!=n(t).length&&!c)return!1;for(var d=l;d--;){var f=u[d];if(!(c?f in t:o.call(t,f)))return!1}var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var g=!0;s.set(e,t),s.set(t,e);for(var y=c;++d<l;){var m=e[f=u[d]],b=t[f];if(i)var v=c?i(b,m,f,t,e,s):i(m,b,f,e,t,s);if(!(void 0===v?m===b||a(m,b,r,i,s):v)){g=!1;break}y||(y="constructor"==f)}if(g&&!y){var w=e.constructor,S=t.constructor;w==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof S&&S instanceof S||(g=!1)}return s.delete(e),s.delete(t),g}},8816(e,t,r){var n=r(5970),o=r(6757),i=r(2865);e.exports=function(e){return i(o(e,void 0,n),e+"")}},4840(e){var t="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis;e.exports=t},2(e,t,r){var n=r(2199),o=r(4664),i=r(5950);e.exports=function(e){return n(e,i,o)}},3349(e,t,r){var n=r(2199),o=r(6375),i=r(7241);e.exports=function(e){return n(e,i,o)}},2651(e,t,r){var n=r(4218);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},776(e,t,r){var n=r(756),o=r(5950);e.exports=function(e){for(var t=o(e),r=t.length;r--;){var i=t[r],a=e[i];t[r]=[i,a,n(a)]}return t}},6110(e,t,r){var n=r(5083),o=r(392);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},8879(e,t,r){var n=r(4335)(Object.getPrototypeOf,Object);e.exports=n},659(e,t,r){var n=r(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[s]=r:delete e[s]),o}},4664(e,t,r){var n=r(9770),o=r(3345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),n(a(e),function(t){return i.call(e,t)}))}:o;e.exports=s},6375(e,t,r){var n=r(4528),o=r(8879),i=r(4664),a=r(3345),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,i(e)),e=o(e);return t}:a;e.exports=s},5861(e,t,r){var n=r(5580),o=r(8223),i=r(2804),a=r(6545),s=r(8303),c=r(2552),u=r(7473),l="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",g=u(n),y=u(o),m=u(i),b=u(a),v=u(s),w=c;(n&&w(new n(new ArrayBuffer(1)))!=h||o&&w(new o)!=l||i&&w(i.resolve())!=d||a&&w(new a)!=f||s&&w(new s)!=p)&&(w=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case g:return h;case y:return l;case m:return d;case b:return f;case v:return p}return t}),e.exports=w},392(e){e.exports=function(e,t){return null==e?void 0:e[t]}},9326(e,t,r){var n=r(1769),o=r(2428),i=r(6449),a=r(361),s=r(294),c=r(7797);e.exports=function(e,t,r){for(var u=-1,l=(t=n(t,e)).length,d=!1;++u<l;){var f=c(t[u]);if(!(d=null!=e&&r(e,f)))break;e=e[f]}return d||++u!=l?d:!!(l=null==e?0:e.length)&&s(l)&&a(f,l)&&(i(e)||o(e))}},5434(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},2032(e,t,r){var n=r(1042);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},3862(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721(e,t,r){var n=r(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},2749(e,t,r){var n=r(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},5749(e,t,r){var n=r(1042);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},6189(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},7199(e,t,r){var n=r(9653),o=r(6169),i=r(3201),a=r(3736),s=r(1961);e.exports=function(e,t,r){var c=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new c(+e);case"[object DataView]":return o(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,r);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},5529(e,t,r){var n=r(9344),o=r(8879),i=r(5527);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:n(o(e))}},5891(e,t,r){var n=r(1873),o=r(2428),i=r(6449),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},361(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},6800(e,t,r){var n=r(5288),o=r(4894),i=r(361),a=r(3805);e.exports=function(e,t,r){if(!a(r))return!1;var s=typeof t;return!!("number"==s?o(r)&&i(t,r.length):"string"==s&&t in r)&&n(r[t],e)}},8586(e,t,r){var n=r(6449),o=r(4394),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},4218(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7296(e,t,r){var n,o=r(5481),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},5527(e){var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},756(e,t,r){var n=r(3805);e.exports=function(e){return e==e&&!n(e)}},3702(e){e.exports=function(){this.__data__=[],this.size=0}},80(e,t,r){var n=r(6025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0||(r==t.length-1?t.pop():o.call(t,r,1),--this.size,0))}},4739(e,t,r){var n=r(6025);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},8655(e,t,r){var n=r(6025);e.exports=function(e){return n(this.__data__,e)>-1}},1175(e,t,r){var n=r(6025);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},3040(e,t,r){var n=r(1549),o=r(79),i=r(8223);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},7670(e,t,r){var n=r(2651);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},289(e,t,r){var n=r(2651);e.exports=function(e){return n(this,e).get(e)}},4509(e,t,r){var n=r(2651);e.exports=function(e){return n(this,e).has(e)}},2949(e,t,r){var n=r(2651);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},317(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}},7197(e){e.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},2224(e,t,r){var n=r(104);e.exports=function(e){var t=n(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}},1042(e,t,r){var n=r(6110)(Object,"create");e.exports=n},3650(e,t,r){var n=r(4335)(Object.keys,Object);e.exports=n},181(e){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},6009(e,t,r){e=r.nmd(e);var n=r(4840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},9350(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335(e){e.exports=function(e,t){return function(r){return e(t(r))}}},6757(e,t,r){var n=r(1033),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),c=Array(s);++a<s;)c[a]=i[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=i[a];return u[t]=r(c),n(e,this,u)}}},8969(e,t,r){var n=r(7422),o=r(5160);e.exports=function(e,t){return t.length<2?e:n(e,o(t,0,-1))}},9325(e,t,r){var n=r(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},4974(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},1380(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1459(e){e.exports=function(e){return this.__data__.has(e)}},4247(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}},2865(e,t,r){var n=r(9570),o=r(1811)(n);e.exports=o},1811(e){var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},1420(e,t,r){var n=r(79);e.exports=function(){this.__data__=new n,this.size=0}},938(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},3605(e){e.exports=function(e){return this.__data__.get(e)}},9817(e){e.exports=function(e){return this.__data__.has(e)}},945(e,t,r){var n=r(79),o=r(8223),i=r(3661);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},6959(e){e.exports=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}},1802(e,t,r){var n=r(2224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,r,n,o){t.push(n?o.replace(i,"$1"):r||e)}),t});e.exports=a},7797(e,t,r){var n=r(4394);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7473(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},1800(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},2225(e){var t="\\ud800-\\udfff",r="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",o="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+i+"]",s="\\d+",c="["+r+"]",u="["+n+"]",l="[^"+t+i+s+r+n+o+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",p="["+o+"]",h="(?:"+u+"|"+l+")",g="(?:"+p+"|"+l+")",y="(?:['’](?:d|ll|m|re|s|t|ve))?",m="(?:['’](?:D|LL|M|RE|S|T|VE))?",b="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",v="[\\ufe0e\\ufe0f]?",w=v+b+"(?:\\u200d(?:"+["[^"+t+"]",d,f].join("|")+")"+v+b+")*",S="(?:"+[c,d,f].join("|")+")"+w,x=RegExp([p+"?"+u+"+"+y+"(?="+[a,p,"$"].join("|")+")",g+"+"+m+"(?="+[a,p+h,"$"].join("|")+")",p+"?"+h+"+"+y,p+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,S].join("|"),"g");e.exports=function(e){return e.match(x)||[]}},7334(e){e.exports=function(e){return function(){return e}}},8221(e,t,r){var n=r(3805),o=r(124),i=r(9374),a=Math.max,s=Math.min;e.exports=function(e,t,r){var c,u,l,d,f,p,h=0,g=!1,y=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var r=c,n=u;return c=u=void 0,h=t,d=e.apply(n,r)}function v(e){var r=e-p;return void 0===p||r>=t||r<0||y&&e-h>=l}function w(){var e=o();if(v(e))return S(e);f=setTimeout(w,function(e){var r=t-(e-p);return y?s(r,l-(e-h)):r}(e))}function S(e){return f=void 0,m&&c?b(e):(c=u=void 0,d)}function x(){var e=o(),r=v(e);if(c=arguments,u=this,p=e,r){if(void 0===f)return function(e){return h=e,f=setTimeout(w,t),g?b(e):d}(p);if(y)return clearTimeout(f),f=setTimeout(w,t),b(p)}return void 0===f&&(f=setTimeout(w,t)),d}return t=i(t)||0,n(r)&&(g=!!r.leading,l=(y="maxWait"in r)?a(i(r.maxWait)||0,t):l,m="trailing"in r?!!r.trailing:m),x.cancel=function(){void 0!==f&&clearTimeout(f),h=0,c=p=u=f=void 0},x.flush=function(){return void 0===f?d:S(o())},x}},828(e,t,r){var n=r(4647),o=r(3222),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(i,n).replace(a,"")}},5288(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},5970(e,t,r){var n=r(3120);e.exports=function(e){return null!=e&&e.length?n(e,1):[]}},8156(e,t,r){var n=r(7422);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},631(e,t,r){var n=r(8077),o=r(9326);e.exports=function(e,t){return null!=e&&o(e,t,n)}},3488(e){e.exports=function(e){return e}},9859(e,t,r){var n=r(6131),o=r(4894),i=r(5015),a=r(1489),s=r(5880),c=Math.max;e.exports=function(e,t,r,u){e=o(e)?e:s(e),r=r&&!u?a(r):0;var l=e.length;return r<0&&(r=c(l+r,0)),i(e)?r<=l&&e.indexOf(t,r)>-1:!!l&&n(e,t,r)>-1}},2428(e,t,r){var n=r(7534),o=r(346),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},6449(e){var t=Array.isArray;e.exports=t},4894(e,t,r){var n=r(1882),o=r(294);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},3693(e,t,r){var n=r(4894),o=r(346);e.exports=function(e){return o(e)&&n(e)}},3656(e,t,r){e=r.nmd(e);var n=r(9325),o=r(9935),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?n.Buffer:void 0,c=(s?s.isBuffer:void 0)||o;e.exports=c},2193(e,t,r){var n=r(8984),o=r(5861),i=r(2428),a=r(6449),s=r(4894),c=r(3656),u=r(5527),l=r(7167),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||l(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!n(e).length;for(var r in e)if(d.call(e,r))return!1;return!0}},1882(e,t,r){var n=r(2552),o=r(3805);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},7730(e,t,r){var n=r(9172),o=r(7301),i=r(6009),a=i&&i.isMap,s=a?o(a):n;e.exports=s},3805(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346(e){e.exports=function(e){return null!=e&&"object"==typeof e}},1331(e,t,r){var n=r(2552),o=r(8879),i=r(346),a=Function.prototype,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,l=c.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=u.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==l}},8440(e,t,r){var n=r(6038),o=r(7301),i=r(6009),a=i&&i.isSet,s=a?o(a):n;e.exports=s},5015(e,t,r){var n=r(2552),o=r(6449),i=r(346);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==n(e)}},4394(e,t,r){var n=r(2552),o=r(346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},7167(e,t,r){var n=r(4901),o=r(7301),i=r(6009),a=i&&i.isTypedArray,s=a?o(a):n;e.exports=s},5950(e,t,r){var n=r(695),o=r(8984),i=r(4894);e.exports=function(e){return i(e)?n(e):o(e)}},7241(e,t,r){var n=r(695),o=r(2903),i=r(4894);e.exports=function(e){return i(e)?n(e,!0):o(e)}},8090(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},5321(e,t,r){var n=r(5539)(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()});e.exports=n},104(e,t,r){var n=r(3661);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},5364(e,t,r){var n=r(5250),o=r(999)(function(e,t,r){n(e,t,r)});e.exports=o},6924(e,t,r){var n=r(5250),o=r(999)(function(e,t,r,o){n(e,t,r,o)});e.exports=o},3950(e){e.exports=function(){}},124(e,t,r){var n=r(9325);e.exports=function(){return n.Date.now()}},179(e,t,r){var n=r(4932),o=r(9999),i=r(9931),a=r(1769),s=r(1791),c=r(3138),u=r(8816),l=r(3349),d=u(function(e,t){var r={};if(null==e)return r;var u=!1;t=n(t,function(t){return t=a(t,e),u||(u=t.length>1),t}),s(e,l(e),r),u&&(r=o(r,7,c));for(var d=t.length;d--;)i(r,t[d]);return r});e.exports=d},583(e,t,r){var n=r(7237),o=r(7255),i=r(8586),a=r(7797);e.exports=function(e){return i(e)?n(a(e)):o(e)}},3345(e){e.exports=function(){return[]}},9935(e){e.exports=function(){return!1}},7400(e,t,r){var n=r(9374),o=1/0;e.exports=function(e){return e?(e=n(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},1489(e,t,r){var n=r(7400);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},9374(e,t,r){var n=r(4128),o=r(3805),i=r(4394),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=s.test(e);return r||c.test(e)?u(e.slice(2),r?2:8):a.test(e)?NaN:+e}},9884(e,t,r){var n=r(1791),o=r(7241);e.exports=function(e){return n(e,o(e))}},3222(e,t,r){var n=r(7556);e.exports=function(e){return null==e?"":n(e)}},9786(e,t,r){var n=r(3120),o=r(5389),i=r(9302),a=r(5765),s=r(3693),c=r(8090),u=i(function(e){var t=c(e);return s(t)&&(t=void 0),a(n(e,1,s,!0),o(t,2))});e.exports=u},7200(e,t,r){var n=r(3222),o=0;e.exports=function(e){var t=++o;return n(e)+t}},5880(e,t,r){var n=r(514),o=r(5950);e.exports=function(e){return null==e?[]:n(e,o(e))}},6645(e,t,r){var n=r(1733),o=r(5434),i=r(3222),a=r(2225);e.exports=function(e,t,r){return e=i(e),void 0===(t=r?void 0:t)?o(e)?a(e):n(e):e.match(t)||[]}},5228(e){"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=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={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var u in i=Object(arguments[c]))r.call(i,u)&&(s[u]=i[u]);if(t){a=t(i);for(var l=0;l<a.length;l++)n.call(i,a[l])&&(s[a[l]]=i[a[l]])}}return s}},115(e){"use strict";var t=Array.isArray,r=Object.keys,n=Object.prototype.hasOwnProperty,o="undefined"!=typeof Element;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){var s,c,u,l=t(e),d=t(a);if(l&&d){if((c=e.length)!=a.length)return!1;for(s=c;0!==s--;)if(!i(e[s],a[s]))return!1;return!0}if(l!=d)return!1;var f=e instanceof Date,p=a instanceof Date;if(f!=p)return!1;if(f&&p)return e.getTime()==a.getTime();var h=e instanceof RegExp,g=a instanceof RegExp;if(h!=g)return!1;if(h&&g)return e.toString()==a.toString();var y=r(e);if((c=y.length)!==r(a).length)return!1;for(s=c;0!==s--;)if(!n.call(a,y[s]))return!1;if(o&&e instanceof Element&&a instanceof Element)return e===a;for(s=c;0!==s--;)if(!("_owner"===(u=y[s])&&e.$$typeof||i(e[u],a[u])))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return i(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},2799(e,t){"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,v=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case y:case g:case c:return e;default:return t}}case o:return t}}}function x(e){return S(e)===d}t.AsyncMode=l,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=c,t.Element=n,t.ForwardRef=f,t.Fragment=i,t.Lazy=y,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||S(e)===l},t.isConcurrentMode=x,t.isContextConsumer=function(e){return S(e)===u},t.isContextProvider=function(e){return S(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return S(e)===f},t.isFragment=function(e){return S(e)===i},t.isLazy=function(e){return S(e)===y},t.isMemo=function(e){return S(e)===g},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===g||e.$$typeof===c||e.$$typeof===u||e.$$typeof===f||e.$$typeof===b||e.$$typeof===v||e.$$typeof===w||e.$$typeof===m)},t.typeOf=S},4363(e,t,r){"use strict";e.exports=r(2799)},7463(e,t){"use strict";var r,n,o,i,a;if(Object.defineProperty(t,"__esModule",{value:!0}),"undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,c=null,u=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(u,0),e}},l=Date.now();t.unstable_now=function(){return Date.now()-l},r=function(e){null!==s?setTimeout(r,0,e):(s=e,setTimeout(u,0))},n=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},i=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,f=window.Date,p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var g=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var y=f.now();t.unstable_now=function(){return f.now()-y}}var m=!1,b=null,v=-1,w=5,S=0;i=function(){return t.unstable_now()>=S},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,E=x.port2;x.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();S=e+w;try{b(!0,e)?E.postMessage(null):(m=!1,b=null)}catch(e){throw E.postMessage(null),e}}else m=!1},r=function(e){b=e,m||(m=!0,E.postMessage(null))},n=function(e,r){v=p(function(){e(t.unstable_now())},r)},o=function(){h(v),v=-1}}function _(e,t){var r=e.length;e.push(t);e:for(;;){var n=Math.floor((r-1)/2),o=e[n];if(!(void 0!==o&&0<k(o,t)))break e;e[n]=t,e[r]=o,r=n}}function O(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,o=e.length;n<o;){var i=2*(n+1)-1,a=e[i],s=i+1,c=e[s];if(void 0!==a&&0>k(a,r))void 0!==c&&0>k(c,a)?(e[n]=c,e[s]=r,n=s):(e[n]=a,e[i]=r,n=i);else{if(!(void 0!==c&&0>k(c,r)))break e;e[n]=c,e[s]=r,n=s}}}return t}return null}function k(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}var A=[],T=[],I=1,P=null,D=3,L=!1,M=!1,R=!1;function j(e){for(var t=O(T);null!==t;){if(null===t.callback)C(T);else{if(!(t.startTime<=e))break;C(T),t.sortIndex=t.expirationTime,_(A,t)}t=O(T)}}function N(e){if(R=!1,j(e),!M)if(null!==O(A))M=!0,r(F);else{var t=O(T);null!==t&&n(N,t.startTime-e)}}function F(e,r){M=!1,R&&(R=!1,o()),L=!0;var a=D;try{for(j(r),P=O(A);null!==P&&(!(P.expirationTime>r)||e&&!i());){var s=P.callback;if(null!==s){P.callback=null,D=P.priorityLevel;var c=s(P.expirationTime<=r);r=t.unstable_now(),"function"==typeof c?P.callback=c:P===O(A)&&C(A),j(r)}else C(A);P=O(A)}if(null!==P)var u=!0;else{var l=O(T);null!==l&&n(N,l.startTime-r),u=!1}return u}finally{P=null,D=a,L=!1}}function B(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var U=a;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=D;D=e;try{return t()}finally{D=r}},t.unstable_next=function(e){switch(D){case 1:case 2:case 3:var t=3;break;default:t=D}var r=D;D=t;try{return e()}finally{D=r}},t.unstable_scheduleCallback=function(e,i,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var c=a.delay;c="number"==typeof c&&0<c?s+c:s,a="number"==typeof a.timeout?a.timeout:B(e)}else a=B(e),c=s;return e={id:I++,callback:i,priorityLevel:e,startTime:c,expirationTime:a=c+a,sortIndex:-1},c>s?(e.sortIndex=c,_(T,e),null===O(A)&&e===O(T)&&(R?o():R=!0,n(N,c-s))):(e.sortIndex=a,_(A,e),M||L||(M=!0,r(F))),e},t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_wrapCallback=function(e){var t=D;return function(){var r=D;D=t;try{return e.apply(this,arguments)}finally{D=r}}},t.unstable_getCurrentPriorityLevel=function(){return D},t.unstable_shouldYield=function(){var e=t.unstable_now();j(e);var r=O(A);return r!==P&&null!==P&&null!==r&&null!==r.callback&&r.startTime<=e&&r.expirationTime<P.expirationTime||i()},t.unstable_requestPaint=U,t.unstable_continueExecution=function(){M||L||(M=!0,r(F))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return O(A)},t.unstable_Profiling=null},9982(e,t,r){"use strict";e.exports=r(7463)},2791(){!function(e){"use strict";if(!e.setImmediate){var t,r,n,o,i,a=1,s={},c=!1,u=e.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(e);l=l&&l.setTimeout?l:e,"[object process]"==={}.toString.call(e.process)?t=function(e){process.nextTick(function(){f(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?(o="setImmediate$"+Math.random()+"$",i=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&f(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",i,!1):e.attachEvent("onmessage",i),t=function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((n=new MessageChannel).port1.onmessage=function(e){f(e.data)},t=function(e){n.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(r=u.documentElement,t=function(e){var t=u.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):t=function(e){setTimeout(f,0,e)},l.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var r=new Array(arguments.length-1),n=0;n<r.length;n++)r[n]=arguments[n+1];var o={callback:e,args:r};return s[a]=o,t(a),a++},l.clearImmediate=d}function d(e){delete s[e]}function f(e){if(c)setTimeout(f,0,e);else{var t=s[e];if(t){c=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(void 0,r)}}(t)}finally{d(e),c=!1}}}}}("undefined"==typeof self?"undefined"==typeof globalThis?this:globalThis:self)},9423(e,t,r){"use strict";r.d(t,{A:()=>n}),e=r.hmd(e);const n=function(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:e)},818(e){e.exports=function(e,t){t=t||{};var r,n,o,i=e.ownerDocument||e,a=[],s=[],c=function(e){var t=[];function r(n,o){if(n===e.documentElement)return!1;for(var i=0,a=t.length;i<a;i++)if(t[i][0]===n)return t[i][1];var s=!1;return"none"===(o=o||e.defaultView.getComputedStyle(n)).display?s=!0:n.parentNode&&(s=r(n.parentNode)),t.push([n,s]),s}return function(t){if(t===e.documentElement)return!1;var n=e.defaultView.getComputedStyle(t);return!!r(t,n)||"hidden"===n.visibility}}(i),u=["input","select","a[href]","textarea","button","[tabindex]"],l=e.querySelectorAll(u.join(","));if(t.includeContainer){var d=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;u.some(function(t){return d.call(e,t)})&&(l=Array.prototype.slice.apply(l)).unshift(e)}for(var f=0,p=l.length;f<p;f++)r=l[f],n=parseInt(r.getAttribute("tabindex"),10),(o=isNaN(n)?r.tabIndex:n)<0||"INPUT"===r.tagName&&"hidden"===r.type||r.disabled||c(r,i)||(0===o?a.push(r):s.push({index:f,tabIndex:o,node:r}));var h=s.sort(function(e,t){return e.tabIndex===t.tabIndex?e.index-t.index:e.tabIndex-t.tabIndex}).map(function(e){return e.node});return Array.prototype.push.apply(h,a),h}},7232(e,t,r){var n;!function(o,i){"use strict";var a="function",s="object",c="model",u="name",l="type",d="vendor",f="version",p="architecture",h="console",g="mobile",y="tablet",m="smarttv",b="wearable",v={extend:function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:i},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},w={rgx:function(e,t){for(var r,n,o,c,u,l,d=0;d<t.length&&!u;){var f=t[d],p=t[d+1];for(r=n=0;r<f.length&&!u;)if(u=f[r++].exec(e))for(o=0;o<p.length;o++)l=u[++n],typeof(c=p[o])===s&&c.length>0?2==c.length?typeof c[1]==a?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3==c.length?typeof c[1]!==a||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):i:this[c[0]]=l?c[1].call(this,l,c[2]):i:4==c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):i):this[c]=l||i;d+=2}},str:function(e,t){for(var r in t)if(typeof t[r]===s&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(v.has(t[r][n],e))return"?"===r?i:r}else if(v.has(t[r],e))return"?"===r?i:r;return e}},S={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},x={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[u,f],[/(opios)[\/\s]+([\w\.]+)/i],[[u,"Opera Mini"],f],[/\s(opr)\/([\w\.]+)/i],[[u,"Opera"],f],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(bidubrowser|baidubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[u,f],[/(konqueror)\/([\w\.]+)/i],[[u,"Konqueror"],f],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[u,"IE"],f],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[u,"Edge"],f],[/(yabrowser)\/([\w\.]+)/i],[[u,"Yandex"],f],[/(Avast)\/([\w\.]+)/i],[[u,"Avast Secure Browser"],f],[/(AVG)\/([\w\.]+)/i],[[u,"AVG Secure Browser"],f],[/(puffin)\/([\w\.]+)/i],[[u,"Puffin"],f],[/(focus)\/([\w\.]+)/i],[[u,"Firefox Focus"],f],[/(opt)\/([\w\.]+)/i],[[u,"Opera Touch"],f],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[u,"UCBrowser"],f],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],f],[/(windowswechat qbcore)\/([\w\.]+)/i],[[u,"WeChat(Win) Desktop"],f],[/(micromessenger)\/([\w\.]+)/i],[[u,"WeChat"],f],[/(brave)\/([\w\.]+)/i],[[u,"Brave"],f],[/(qqbrowserlite)\/([\w\.]+)/i],[u,f],[/(QQ)\/([\d\.]+)/i],[u,f],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[u,f],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[u,f],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[u,f],[/(MetaSr)[\/\s]?([\w\.]+)/i],[u],[/(LBBROWSER)/i],[u],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[f,[u,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[f,[u,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[u,f],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[f,[u,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[u,/(.+)/,"$1 WebView"],f],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[u,/(.+(?:g|us))(.+)/,"$1 $2"],f],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[f,[u,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[u,"Sailfish Browser"],f],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[u,f],[/(dolfin)\/([\w\.]+)/i],[[u,"Dolphin"],f],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[u,"360 Browser"]],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[u,"Chrome"],f],[/(coast)\/([\w\.]+)/i],[[u,"Opera Coast"],f],[/fxios\/([\w\.-]+)/i],[f,[u,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[f,[u,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[f,u],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[u,"GSA"],f],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[u,[f,w.str,S.browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[u,f],[/(navigator|netscape)\/([\w\.-]+)/i],[[u,"Netscape"],f],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[u,f]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[p,"amd64"]],[/(ia32(?=;))/i],[[p,v.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[p,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[p,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[p,/ower/,"",v.lowerize]],[/(sun4\w)[;\)]/i],[[p,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[p,v.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[c,d,[l,y]],[/applecoremedia\/[\w\.]+ \((ipad)/],[c,[d,"Apple"],[l,y]],[/(apple\s{0,1}tv)/i],[[c,"Apple TV"],[d,"Apple"],[l,m]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[d,c,[l,y]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[c,[d,"Amazon"],[l,y]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[c,w.str,S.device.amazon.model],[d,"Amazon"],[l,g]],[/android.+aft([bms])\sbuild/i],[c,[d,"Amazon"],[l,m]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[c,d,[l,g]],[/\((ip[honed|\s\w*]+);/i],[c,[d,"Apple"],[l,g]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[d,c,[l,g]],[/\(bb10;\s(\w+)/i],[c,[d,"BlackBerry"],[l,g]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[c,[d,"Asus"],[l,y]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[d,"Sony"],[c,"Xperia Tablet"],[l,y]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[d,"Sony"],[l,g]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[d,c,[l,h]],[/android.+;\s(shield)\sbuild/i],[c,[d,"Nvidia"],[l,h]],[/(playstation\s[34portablevi]+)/i],[c,[d,"Sony"],[l,h]],[/(sprint\s(\w+))/i],[[d,w.str,S.device.sprint.vendor],[c,w.str,S.device.sprint.model],[l,g]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[d,[c,/_/g," "],[l,g]],[/(nexus\s9)/i],[c,[d,"HTC"],[l,y]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[c,[d,"Huawei"],[l,g]],[/android.+(bah2?-a?[lw]\d{2})/i],[c,[d,"Huawei"],[l,y]],[/(microsoft);\s(lumia[\s\w]+)/i],[d,c,[l,g]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[c,[d,"Microsoft"],[l,h]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[d,"Microsoft"],[l,g]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[c,[d,"Motorola"],[l,g]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[c,[d,"Motorola"],[l,y]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[d,v.trim],[c,v.trim],[l,m]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[d,"Samsung"],[l,m]],[/\(dtv[\);].+(aquos)/i],[c,[d,"Sharp"],[l,m]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[d,"Samsung"],c,[l,y]],[/smart-tv.+(samsung)/i],[d,[l,m],c],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[d,"Samsung"],c,[l,g]],[/sie-(\w*)/i],[c,[d,"Siemens"],[l,g]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[d,"Nokia"],c,[l,g]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[c,[d,"Acer"],[l,y]],[/android.+([vl]k\-?\d{3})\s+build/i],[c,[d,"LG"],[l,y]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[d,"LG"],c,[l,y]],[/(lg) netcast\.tv/i],[d,c,[l,m]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[c,[d,"LG"],[l,g]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[d,c,[l,y]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[c,[d,"Lenovo"],[l,y]],[/(lenovo)[_\s-]?([\w-]+)/i],[d,c,[l,g]],[/linux;.+((jolla));/i],[d,c,[l,g]],[/((pebble))app\/[\d\.]+\s/i],[d,c,[l,b]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[d,c,[l,g]],[/crkey/i],[[c,"Chromecast"],[d,"Google"],[l,m]],[/android.+;\s(glass)\s\d/i],[c,[d,"Google"],[l,b]],[/android.+;\s(pixel c)[\s)]/i],[c,[d,"Google"],[l,y]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[c,[d,"Google"],[l,g]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:a\d|one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[c,/_/g," "],[d,"Xiaomi"],[l,g]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[c,/_/g," "],[d,"Xiaomi"],[l,y]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[c,[d,"Meizu"],[l,g]],[/(mz)-([\w-]{2,})/i],[[d,"Meizu"],c,[l,g]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[c,[d,"OnePlus"],[l,g]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[c,[d,"RCA"],[l,y]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[c,[d,"Dell"],[l,y]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[c,[d,"Verizon"],[l,y]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[d,"Barnes & Noble"],c,[l,y]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[c,[d,"NuVision"],[l,y]],[/android.+;\s(k88)\sbuild/i],[c,[d,"ZTE"],[l,y]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[c,[d,"Swiss"],[l,g]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[c,[d,"Swiss"],[l,y]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[c,[d,"Zeki"],[l,y]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[d,"Dragon Touch"],c,[l,y]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[c,[d,"Insignia"],[l,y]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[c,[d,"NextBook"],[l,y]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[d,"Voice"],c,[l,g]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[d,"LvTel"],c,[l,g]],[/android.+;\s(PH-1)\s/i],[c,[d,"Essential"],[l,g]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[c,[d,"Envizen"],[l,y]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[d,c,[l,y]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[c,[d,"MachSpeed"],[l,y]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[d,c,[l,y]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[c,[d,"Rotor"],[l,y]],[/android.+(KS(.+))\s+build/i],[c,[d,"Amazon"],[l,y]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[d,c,[l,y]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[l,v.lowerize],d,c],[/[\s\/\(](smart-?tv)[;\)]/i],[[l,m]],[/(android[\w\.\s\-]{0,9});.+build/i],[c,[d,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[f,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[u,f],[/rv\:([\w\.]{1,9}).+(gecko)/i],[f,u]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[u,f],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[u,[f,w.str,S.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[u,"Windows"],[f,w.str,S.os.windows.version]],[/\((bb)(10);/i],[[u,"BlackBerry"],f],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[u,f],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[u,"Symbian"],f],[/\((series40);/i],[u],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[u,"Firefox OS"],f],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[u,f],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[u,"Chromium OS"],f],[/(sunos)\s?([\w\.\d]*)/i],[[u,"Solaris"],f],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[u,f],[/(haiku)\s(\w+)/i],[u,f],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[f,/_/g,"."],[u,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[u,"Mac OS"],[f,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[u,f]]},E=function(e,t){if("object"==typeof e&&(t=e,e=i),!(this instanceof E))return new E(e,t).getResult();var r=e||(o&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:""),n=t?v.extend(x,t):x;return this.getBrowser=function(){var e={name:i,version:i};return w.rgx.call(e,r,n.browser),e.major=v.major(e.version),e},this.getCPU=function(){var e={architecture:i};return w.rgx.call(e,r,n.cpu),e},this.getDevice=function(){var e={vendor:i,model:i,type:i};return w.rgx.call(e,r,n.device),e},this.getEngine=function(){var e={name:i,version:i};return w.rgx.call(e,r,n.engine),e},this.getOS=function(){var e={name:i,version:i};return w.rgx.call(e,r,n.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=e,this},this};E.VERSION="0.7.21",E.BROWSER={NAME:u,MAJOR:"major",VERSION:f},E.CPU={ARCHITECTURE:p},E.DEVICE={MODEL:c,VENDOR:d,TYPE:l,CONSOLE:h,MOBILE:g,SMARTTV:m,TABLET:y,WEARABLE:b,EMBEDDED:"embedded"},E.ENGINE={NAME:u,VERSION:f},E.OS={NAME:u,VERSION:f},void 0!==t?(e.exports&&(t=e.exports=E),t.UAParser=E):(n=function(){return E}.call(t,r,t,e))===i||(e.exports=n);var _=o&&(o.jQuery||o.Zepto);if(_&&!_.ua){var O=new E;_.ua=O.getResult(),_.ua.get=function(){return O.getUA()},_.ua.set=function(e){O.setUA(e);var t=O.getResult();for(var r in t)_.ua[r]=t[r]}}}("object"==typeof window?window:this)},2015(e){"use strict";e.exports=require("react")},2326(e){"use strict";e.exports=require("react-dom")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(t,r,n){return(r=function(t){var r=function(t){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}r(9288);var n=r(8156),o=r.n(n),i=r(9423),a=function(){return Math.random().toString(36).substring(7).split("").join(".")},s={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function c(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(c)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var o=e,a=t,u=[],l=u,d=!1;function f(){l===u&&(l=u.slice())}function p(){if(d)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function h(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(d)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return f(),l.push(e),function(){if(t){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,f();var r=l.indexOf(e);l.splice(r,1),u=null}}}function g(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,a=o(a,e)}finally{d=!1}for(var t=u=l,r=0;r<t.length;r++)(0,t[r])();return e}return g({type:s.INIT}),(n={dispatch:g,subscribe:h,getState:p,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");o=e,g({type:s.REPLACE})}})[i.A]=function(){var e,t=h;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function r(){e.next&&e.next(p())}return r(),{unsubscribe:t(r)}}})[i.A]=function(){return this},e},n}function u(e,t){var r=t&&t.type;return"Given "+(r&&'action "'+String(r)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function l(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var o=t[n];"function"==typeof e[o]&&(r[o]=e[o])}var i,a=Object.keys(r);try{!function(e){Object.keys(e).forEach(function(t){var r=e[t];if(void 0===r(void 0,{type:s.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===r(void 0,{type:s.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+s.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}(r)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var n=!1,o={},s=0;s<a.length;s++){var c=a[s],l=r[c],d=e[c],f=l(d,t);if(void 0===f){var p=u(c,t);throw new Error(p)}o[c]=f,n=n||f!==d}return(n=n||a.length!==Object.keys(e).length)?o:e}}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){var r=Object.keys(e);return Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(e)),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r}function p(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function h(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},i=t.map(function(e){return e(o)});return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(r,!0).forEach(function(t){d(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},r,{dispatch:n=p.apply(void 0,i)(r.dispatch)})}}}function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},g.apply(null,arguments)}function y(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function m(e){return!!e&&!!e[J]}function b(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return!t||t===Object.prototype}(e)||Array.isArray(e)||!!e[Z]||!!e.constructor[Z]||E(e)||_(e))}function v(e,t){0===w(e)?Q(e).forEach(function(r){return t(r,e[r],e)}):e.forEach(function(r,n){return t(n,r,e)})}function w(e){var t=e[J];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:E(e)?2:_(e)?3:0}function S(e,t){return 2===w(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function x(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function E(e){return W&&e instanceof Map}function _(e){return $&&e instanceof Set}function O(e){return e.o||e.t}function C(e,t){if(void 0===t&&(t=!1),Array.isArray(e))return e.slice();var r=Object.create(Object.getPrototypeOf(e));return v(e,function(n){if(n!==J){var o=Object.getOwnPropertyDescriptor(e,n),i=o.value;o.get&&(t||y(1),i=o.get.call(e)),o.enumerable?r[n]=i:Object.defineProperty(r,n,{value:i,writable:!0,configurable:!0})}}),r}function k(e,t){m(e)||Object.isFrozen(e)||!b(e)||(w(e)>1&&(e.set=e.add=e.clear=e.delete=A),Object.freeze(e),t&&v(e,function(e,t){return k(t,!0)}))}function A(){y(2)}function T(e){var t=ee[e];return t||y(19,e),t}function I(){return V}function P(e,t){t&&(T("Patches"),e.u=[],e.s=[],e.v=t)}function D(e){L(e),e.p.forEach(R),e.p=null}function L(e){e===V&&(V=e.l)}function M(e){return V={p:[],l:V,h:e,m:!0,_:0}}function R(e){var t=e[J];0===t.i||1===t.i?t.j():t.O=!0}function j(e,t){t._=t.p.length;var r=t.p[0],n=void 0!==e&&e!==r;return t.h.g||T("ES5").S(t,e,n),n?(r[J].P&&(D(t),y(4)),b(e)&&(e=N(t,e),t.l||B(t,e)),t.u&&T("Patches").M(r[J],e,t.u,t.s)):e=N(t,r,[]),D(t),t.u&&t.v(t.u,t.s),e!==X?e:void 0}function N(e,t,r){if(Object.isFrozen(t))return t;var n=t[J];if(!n)return v(t,function(o,i){return F(e,n,t,o,i,r)}),t;if(n.A!==e)return t;if(!n.P)return B(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=C(n.k,!0):n.o;v(o,function(t,i){return F(e,n,o,t,i,r)}),B(e,o,!1),r&&e.u&&T("Patches").R(n,r,e.u,e.s)}return n.o}function F(e,t,r,n,o,i){if(m(o)){var a=N(e,o,i&&t&&3!==t.i&&!S(t.D,n)?i.concat(n):void 0);if(c=n,u=a,2===(l=w(s=r))?s.set(c,u):3===l?(s.delete(c),s.add(u)):s[c]=u,!m(a))return;e.m=!1}var s,c,u,l;if((!t||!x(o,function(e,t){return 2===w(e)?e.get(t):e[t]}(t.t,n)))&&b(o)){if(!e.h.N&&e._<1)return;N(e,o),t&&t.A.l||B(e,o)}}function B(e,t,r){void 0===r&&(r=!1),e.h.N&&e.m&&k(t,r)}function U(e,t){var r=e[J],n=Reflect.getOwnPropertyDescriptor(r?O(r):e,t);return n&&n.value}function K(e){if(!e.P){if(e.P=!0,0===e.i||1===e.i){var t=e.o=C(e.t);v(e.p,function(e,r){t[e]=r}),e.p=void 0}e.l&&K(e.l)}}function H(e){e.o||(e.o=C(e.t))}function z(e,t,r){var n=E(t)?T("MapSet").T(t,r):_(t)?T("MapSet").F(t,r):e.g?function(e,t){var r=Array.isArray(e),n={i:r?1:0,A:t?t.A:I(),P:!1,I:!1,D:{},l:t,t:e,k:null,p:{},o:null,j:null,C:!1},o=n,i=te;r&&(o=[n],i=re);var a=Proxy.revocable(o,i),s=a.revoke,c=a.proxy;return n.k=c,n.j=s,c}(t,r):T("ES5").J(t,r);return(r?r.A:I()).p.push(n),n}var q,V,G="undefined"!=typeof Symbol,W="undefined"!=typeof Map,$="undefined"!=typeof Set,Y="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,X=G?Symbol("immer-nothing"):((q={})["immer-nothing"]=!0,q),Z=G?Symbol("immer-draftable"):"__$immer_draftable",J=G?Symbol("immer-state"):"__$immer_state",Q=(G&&Symbol.iterator,"undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames),ee={},te={get:function(e,t){if(t===J)return e;var r=e.p;if(!e.P&&S(r,t))return r[t];var n=O(e)[t];if(e.I||!b(n))return n;if(e.P){if(n!==U(e.t,t))return n;r=e.o}return r[t]=z(e.A.h,n,e)},has:function(e,t){return t in O(e)},ownKeys:function(e){return Reflect.ownKeys(O(e))},set:function(e,t,r){if(!e.P){var n=U(e.t,t);if(r?x(n,r)||r===e.p[t]:x(n,r)&&t in e.t)return!0;H(e),K(e)}return e.D[t]=!0,e.o[t]=r,!0},deleteProperty:function(e,t){return void 0!==U(e.t,t)||t in e.t?(e.D[t]=!1,H(e),K(e)):e.D[t]&&delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=O(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&(n.writable=!0,n.configurable=1!==e.i||"length"!==t),n},defineProperty:function(){y(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){y(12)}},re={};v(te,function(e,t){re[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),re.deleteProperty=function(e,t){return te.deleteProperty.call(this,e[0],t)},re.set=function(e,t,r){return te.set.call(this,e[0],t,r,e[0])};var ne=function(){function e(e){this.g=Y,this.N=!1,"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}var t=e.prototype;return t.produce=function(e,t,r){if("function"==typeof e&&"function"!=typeof t){var n=t;t=e;var o=this;return function(e){var r=this;void 0===e&&(e=n);for(var i=arguments.length,a=Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return o.produce(e,function(e){var n;return(n=t).call.apply(n,[r,e].concat(a))})}}var i;if("function"!=typeof t&&y(6),void 0!==r&&"function"!=typeof r&&y(7),b(e)){var a=M(this),s=z(this,e,void 0),c=!0;try{i=t(s),c=!1}finally{c?D(a):L(a)}return"undefined"!=typeof Promise&&i instanceof Promise?i.then(function(e){return P(a,r),j(e,a)},function(e){throw D(a),e}):(P(a,r),j(i,a))}if((i=t(e))!==X)return void 0===i&&(i=e),this.N&&k(i,!0),i},t.produceWithPatches=function(e,t){var r,n,o=this;return"function"==typeof e?function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return o.produceWithPatches(t,function(t){return e.apply(void 0,[t].concat(n))})}:[this.produce(e,t,function(e,t){r=e,n=t}),r,n]},t.createDraft=function(e){b(e)||y(8);var t=M(this),r=z(this,e,void 0);return r[J].C=!0,L(t),r},t.finishDraft=function(e,t){var r=(e&&e[J]).A;return P(r,t),j(void 0,r)},t.setAutoFreeze=function(e){this.N=e},t.setUseProxies=function(e){Y||y(20),this.g=e},t.applyPatches=function(e,t){var r;for(r=t.length-1;r>=0;r--){var n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}var o=T("Patches").U;return m(e)?o(e,t):this.produce(e,function(e){return o(e,t.slice(r+1))})},e}(),oe=new ne,ie=oe.produce;oe.produceWithPatches.bind(oe),oe.setAutoFreeze.bind(oe),oe.setUseProxies.bind(oe),oe.applyPatches.bind(oe),oe.createDraft.bind(oe),oe.finishDraft.bind(oe);const ae=ie;function se(e,t){return e===t}function ce(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(o){return"function"==typeof o?o(r,n,e):t(o)}}}}!function(){for(var e=arguments.length,t=Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r]}(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:se,r=null,n=null;return function(){return function(e,t,r){if(null===t||null===r||t.length!==r.length)return!1;for(var n=t.length,o=0;o<n;o++)if(!e(t[o],r[o]))return!1;return!0}(t,r,arguments)||(n=e.apply(null,arguments)),r=arguments,n}});var ue=ce();ue.withExtraArgument=ce;const le=ue;function de(){return de=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},de.apply(this,arguments)}var fe="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?p:p.apply(null,arguments)};function pe(e){void 0===e&&(e={});var t=e,r=t.thunk,n=void 0===r||r,o=(t.immutableCheck,t.serializableCheck,[]);return n&&(function(e){return"boolean"==typeof e}(n)?o.push(le):o.push(le.withExtraArgument(n.extraArgument))),o}function he(e,t){function r(){if(t){var r=t.apply(void 0,arguments);if(!r)throw new Error("prepareAction did not return an object");return de({type:e,payload:r.payload},"meta"in r&&{meta:r.meta},{},"error"in r&&{error:r.error})}return{type:e,payload:arguments.length<=0?void 0:arguments[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(t){return t.type===e},r}function ge(e,t){var r="function"==typeof t?function(e){var t={},r={addCase:function(e,n){var o="string"==typeof e?e:e.type;if(o in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[o]=n,r}};return e(r),t}(t):t;return function(t,n){return void 0===t&&(t=e),ae(t,function(e){var t=r[n.type];return t?t(e,n):void 0})}}"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var ye,me=["name","message","stack","code"],be=function(e){this.value=e},ve=function(e){if("object"==typeof e&&null!==e){var t={},r=me,n=Array.isArray(r),o=0;for(r=n?r:r[Symbol.iterator]();;){var i;if(n){if(o>=r.length)break;i=r[o++]}else{if((o=r.next()).done)break;i=o.value}var a=i;"string"==typeof e[a]&&(t[a]=e[a])}return t}return{message:String(e)}};function we(e,t,r){var n=he(e+"/fulfilled",function(e,t,r){return{payload:e,meta:{arg:r,requestId:t}}}),o=he(e+"/pending",function(e,t){return{payload:void 0,meta:{arg:t,requestId:e}}}),i=he(e+"/rejected",function(e,t,r,n){var o=!!e&&"AbortError"===e.name,i=!!e&&"ConditionError"===e.name;return{payload:n,error:ve(e||"Rejected"),meta:{arg:r,requestId:t,aborted:o,condition:i}}}),a="undefined"!=typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){}}}return e.prototype.abort=function(){},e}();return g(function(e){return function(s,c,u){var l,d=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t}(),f=new a,p=new Promise(function(e,t){return f.signal.addEventListener("abort",function(){return t({name:"AbortError",message:l||"Aborted"})})});return g(function(){try{var a,l=function(e){return h?e:(r&&!r.dispatchConditionRejection&&i.match(a)&&a.meta.condition||s(a),a)},h=!1,g=function(l,h){try{var g=function(){if(r&&r.condition&&!1===r.condition(e,{getState:c,extra:u}))throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return s(o(d,e)),Promise.resolve(Promise.race([p,Promise.resolve(t(e,{dispatch:s,getState:c,extra:u,requestId:d,signal:f.signal,rejectWithValue:function(e){return new be(e)}})).then(function(t){return t instanceof be?i(null,d,e,t.value):n(t,d,e)})])).then(function(e){a=e})}()}catch(e){return h(e)}return g&&g.then?g.then(void 0,h):g}(0,function(t){a=i(t,d,e)});return Promise.resolve(g&&g.then?g.then(l):l(g))}catch(e){return Promise.reject(e)}}(),{abort:function(e){l=e,f.abort()}})}},{pending:o,rejected:i,fulfilled:n})}function Se(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}!function(){function e(e,t){var r=e[J];if(r&&!r.$){r.$=!0;var n=e[t];return r.$=!1,n}return e[t]}function t(e){e.P||(e.P=!0,e.l&&t(e.l))}function r(e){e.o||(e.o=n(e.t))}function n(e){var t=e&&e[J];if(t){t.$=!0;var r=C(t.k,!0);return t.$=!1,r}return C(e)}function o(e){for(var r=e.length-1;r>=0;r--){var n=e[r][J];if(!n.P)switch(n.i){case 5:a(n)&&t(n);break;case 4:i(n)&&t(n)}}}function i(e){for(var t=e.t,r=e.k,n=Object.keys(r),o=n.length-1;o>=0;o--){var i=n[o],a=t[i];if(void 0===a&&!S(t,i))return!0;var s=r[i],c=s&&s[J];if(c?c.t!==a:!x(s,a))return!0}return n.length!==Object.keys(t).length}function a(e){var t=e.k;if(t.length!==e.t.length)return!0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);return!(!r||r.get)}function s(e){e.O&&y(3,JSON.stringify(O(e)))}var c={};!function(e,t){ee[e]=t}("ES5",{J:function(o,i){var a=Array.isArray(o),u=n(o);v(u,function(n){!function(n,o,i){var a=c[o];a?a.enumerable=i:c[o]=a={enumerable:i,get:function(){return function(t,n){s(t);var o=e(O(t),n);return t.$?o:o===e(t.t,n)&&b(o)?(r(t),t.o[n]=z(t.A.h,o,t)):o}(this[J],o)},set:function(n){!function(n,o,i){if(s(n),n.D[o]=!0,!n.P){if(x(i,e(O(n),o)))return;t(n),r(n)}n.o[o]=i}(this[J],o,n)}},Object.defineProperty(n,o,a)}(u,n,a||function(e,t){var r=Object.getOwnPropertyDescriptor(e,t);return!(!r||!r.enumerable)}(o,n))});var l={i:a?5:4,A:i?i.A:I(),P:!1,$:!1,I:!1,D:{},l:i,t:o,k:u,o:null,O:!1,C:!1};return Object.defineProperty(u,J,{value:l,writable:!0}),u},K:t,S:function(e,r,n){e.p.forEach(function(e){e[J].$=!0}),n?m(r)&&r[J].A===e&&o(e.p):(e.u&&function e(r){if(r&&"object"==typeof r){var n=r[J];if(n){var o=n.t,i=n.k,s=n.D,c=n.i;if(4===c)v(i,function(r){r!==J&&(void 0!==o[r]||S(o,r)?s[r]||e(i[r]):(s[r]=!0,t(n)))}),v(o,function(e){void 0!==i[e]||S(i,e)||(s[e]=!1,t(n))});else if(5===c){if(a(n)&&(t(n),s.length=!0),i.length<o.length)for(var u=i.length;u<o.length;u++)s[u]=!1;else for(var l=o.length;l<i.length;l++)s[l]=!0;for(var d=Math.min(i.length,o.length),f=0;f<d;f++)void 0===s[f]&&e(i[f])}}}}(e.p[0]),o(e.p))}})}();var xe=new Uint8Array(16);function Ee(){if(!ye&&!(ye="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ye(xe)}const _e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var Oe=[],Ce=0;Ce<256;++Ce)Oe.push((Ce+256).toString(16).substr(1));const ke=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(Oe[e[t+0]]+Oe[e[t+1]]+Oe[e[t+2]]+Oe[e[t+3]]+"-"+Oe[e[t+4]]+Oe[e[t+5]]+"-"+Oe[e[t+6]]+Oe[e[t+7]]+"-"+Oe[e[t+8]]+Oe[e[t+9]]+"-"+Oe[e[t+10]]+Oe[e[t+11]]+Oe[e[t+12]]+Oe[e[t+13]]+Oe[e[t+14]]+Oe[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&_e.test(e)}(r))throw TypeError("Stringified UUID is invalid");return r},Ae=function(e,t,r){var n=(e=e||{}).random||(e.rng||Ee)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return ke(n)},Te=["paths"],Ie=["path_groups"],Pe=["target"];function De(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Le(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?De(Object(n),!0).forEach(function(r){t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Me(e){let{paths:t}=e,r=Se(e,Te);return Le({clientId:Ae(),paths:t.map(e=>Le({clientId:Ae()},e))},r)}function Re(e){const{target:{path_groups:t}}=e,r=Se(e.target,Ie),n=Se(e,Pe);return Le({target:Le({path_groups:t.map(e=>Me(e))},r)},n)}function je({height:e,width:t,x:r,y:n}){return{x:r+t/2,y:n+e/2}}const Ne=e=>{if(!e||!e.length)return"";const t=e.map(({x:e,y:t},r,n)=>{if(0===r)return`M ${e} ${t}`;const o=n[r-1],i=n[r+1];return o&&i?`C ${(e+o.x)/2} ${(t+o.y)/2}, ${e} ${t}, ${(e+i.x)/2} ${(t+i.y)/2}`:""}).join(" ").trim();return t};function Fe(e){let t=0,r=0,n=Number.MAX_VALUE,o=Number.MAX_VALUE;return e.forEach(({paths:e})=>{e.forEach(({points:e})=>{e.forEach(({x:e,y:i})=>{t=Math.max(t,e),r=Math.max(r,i),n=Math.min(n,e),o=Math.min(o,i)})})}),{height:Math.max(0,r-o),width:Math.max(0,t-n),x:n===Number.MAX_VALUE?0:n,y:o===Number.MAX_VALUE?0:o}}function Be(e){return"drawing"===e?.target?.type}function Ue(e){return je(Fe(e))}const Ke=-1;let He=function(e){return e.FRAME="frame",e.PAGE="page",e}({});const ze=({annotations:e})=>e.activeId,qe=({annotations:e},t)=>e.byId[t],Ve=({annotations:e})=>[...Object.values(e.byId)],Ge=(e,t)=>{const r=Ve(e);return t===Ke?r:r.filter(e=>o()(e,"target.location.value")===t)},We=({annotations:e})=>e.isInitialized,$e=he("SET_FIlE_ID"),Ye=he("SET_FILE_VERSION_ID"),Xe=he("SET_PERMISSIONS"),Ze=he("SET_ROTATION"),Je=he("SET_SCALE"),Qe=he("SET_VIEW_MODE"),et=ge({apiHost:"",features:{},fileId:null,fileVersionId:null,isCurrentFileVersion:!0,permissions:{},rotation:0,scale:1,token:"",viewMode:"annotations"},e=>e.addCase($e,(e,{payload:t})=>{e.fileId=t}).addCase(Ye,(e,{payload:t})=>{e.fileVersionId=t}).addCase(Xe,(e,{payload:t})=>{e.permissions=t}).addCase(Ze,(e,{payload:t})=>{e.rotation=t}).addCase(Je,(e,{payload:t})=>{e.scale=t}).addCase(Qe,(e,{payload:t})=>{e.viewMode=t})),tt=e=>e.options.apiHost,rt=e=>e.options.viewMode,nt=e=>e.options.fileId,ot=e=>e.options.fileVersionId,it=e=>e.options.isCurrentFileVersion,at=e=>e.options.permissions,st=e=>e.options.rotation,ct=e=>e.options.scale,ut=e=>e.options.token,lt=(e,t)=>o()((e=>e.options.features)(e),t,!1);function dt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ft(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?dt(Object(n),!0).forEach(function(r){t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const pt=we("CREATE_ANNOTATION",async(e,{extra:t,getState:r,signal:n})=>{const o=t.api.getAnnotationsAPI(),i=r(),a=nt(i),s=ot(i),c=at(i);return n.addEventListener("abort",()=>{o.destroy()}),new Promise((t,r)=>{o.createAnnotation(a,s,e,c,t,r)})}),ht=we("FETCH_ANNOTATIONS",async(e,{extra:t,getState:r,signal:n})=>{const o=t.api.getAnnotationsAPI(),i=r(),a=nt(i),s=ot(i),c=at(i);n.addEventListener("abort",()=>{o.destroy()});const u=lt({options:r().options},"isThreadedAnnotation");return new Promise((e,t)=>{o.getAnnotations(a,s,c,e,t,1e3,!1,u)})}),gt=we("CREATE_REPLY",async({annotationId:e,message:t},{extra:r,getState:n,signal:o})=>{const i=r.api.getAnnotationsAPI(),a=n(),s=nt(a),c=at(a),u=qe(a,e),l=ft(ft({},c),u?.permissions);o.addEventListener("abort",()=>{i.destroy()});const d=await new Promise((r,n)=>{i.createAnnotationReply(s,e,l,t,r,n)});return{annotationId:e,reply:d}}),yt=we("DELETE_ANNOTATION",async(e,{extra:t,getState:r,signal:n})=>{const o=t.api.getAnnotationsAPI(),i=r(),a=nt(i),s=at(i),c=qe(i,e),u=ft(ft({},s),c?.permissions);return n.addEventListener("abort",()=>{o.destroy()}),await new Promise((t,r)=>{o.deleteAnnotation(a,e,u,t,r)}),e}),mt=we("UPDATE_ANNOTATION",async({annotationId:e,payload:t},{extra:r,getState:n,signal:o})=>{const i=r.api.getAnnotationsAPI(),a=n(),s=nt(a),c=at(a),u=qe(a,e),l=ft(ft({},c),u?.permissions);return o.addEventListener("abort",()=>{i.destroy()}),new Promise((r,n)=>{i.updateAnnotation(s,e,l,t,r,n)})}),bt=we("UPDATE_REPLY",async({annotationId:e,replyId:t,payload:r},{extra:n,getState:o,signal:i})=>{const a=n.api.getThreadedCommentsAPI(),s=o(),c=nt(s),u=qe(s,e),l=u?.replies?.find(e=>e.id===t);if(!l)throw new Error(`updateReplyAction: reply ${t} not found on annotation ${e}`);return i.addEventListener("abort",()=>{a.destroy()}),{annotationId:e,reply:await new Promise((e,n)=>{a.updateComment({commentId:t,errorCallback:n,fileId:c,message:r.message,permissions:l.permissions??{},status:r.status,successCallback:e})})}}),vt=we("DELETE_REPLY",async({annotationId:e,replyId:t},{extra:r,getState:n,signal:o})=>{const i=r.api.getThreadedCommentsAPI(),a=n(),s=nt(a),c=qe(a,e),u=c?.replies?.find(e=>e.id===t);if(!u)throw new Error(`deleteReplyAction: reply ${t} not found on annotation ${e}`);return o.addEventListener("abort",()=>{i.destroy()}),await new Promise((e,r)=>{i.deleteComment({commentId:t,errorCallback:r,fileId:s,permissions:u.permissions??{},successCallback:e})}),{annotationId:e,replyId:t}}),wt=he("APPLY_SIDEBAR_ANNOTATION_UPDATE"),St=he("APPLY_SIDEBAR_REPLY_CREATE"),xt=he("APPLY_SIDEBAR_REPLY_DELETE"),Et=he("APPLY_SIDEBAR_REPLY_UPDATE"),_t=he("REMOVE_ANNOTATION"),Ot=he("SET_ACTIVE_ANNOTATION_ID"),Ct=he("SET_IS_INITIALIZED");function kt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function At(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?kt(Object(n),!0).forEach(function(r){t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const Tt=l({activeId:ge(null,e=>e.addCase(pt.fulfilled,()=>null).addCase(yt.fulfilled,(e,{payload:t})=>e===t?null:e).addCase(_t,(e,{payload:t})=>e===t?null:e).addCase(Ot,(e,{payload:t})=>t).addCase(Qe,(e,{payload:t})=>"boundingBoxes"===t?null:e)),allIds:ge([],e=>e.addCase(pt.fulfilled,(e,{payload:{id:t}})=>{e.push(t)}).addCase(yt.fulfilled,(e,{payload:t})=>e.filter(e=>e!==t)).addCase(_t,(e,{payload:t})=>e.filter(e=>e!==t)).addCase(ht.fulfilled,(e,{payload:t})=>{t.entries.forEach(({id:t})=>-1===e.indexOf(t)&&e.push(t))})),byId:ge({},e=>e.addCase(pt.fulfilled,(e,{payload:t})=>{e[t.id]=Be(t)?Re(t):t}).addCase(gt.fulfilled,(e,{payload:{annotationId:t,reply:r}})=>{const n=e[t];n&&(n.replies=[...n.replies??[],r])}).addCase(yt.fulfilled,(e,{payload:t})=>{delete e[t]}).addCase(_t,(e,{payload:t})=>{delete e[t]}).addCase(mt.fulfilled,(e,{payload:t})=>{e[t.id]=Be(t)?Re(t):t}).addCase(bt.fulfilled,(e,{payload:{annotationId:t,reply:r}})=>{const n=e[t];n&&n.replies&&(n.replies=n.replies.map(e=>e.id===r.id?r:e))}).addCase(vt.fulfilled,(e,{payload:{annotationId:t,replyId:r}})=>{const n=e[t];n&&n.replies&&(n.replies=n.replies.filter(e=>e.id!==r))}).addCase(wt,(e,{payload:t})=>{const r=e[t.id];r&&Object.entries(t).forEach(([e,t])=>{void 0!==t&&(r[e]=t)})}).addCase(St,(e,{payload:{annotationId:t,reply:r}})=>{const n=e[t];if(!n)return;const o=n.replies??[];o.some(e=>e.id===r.id)||(n.replies=[...o,r])}).addCase(Et,(e,{payload:{annotationId:t,reply:r}})=>{const n=e[t];n&&n.replies&&(n.replies=n.replies.map(e=>e.id===r.id?At(At({},e),r):e))}).addCase(xt,(e,{payload:{annotationId:t,replyId:r}})=>{const n=e[t];n&&n.replies&&(n.replies=n.replies.filter(e=>e.id!==r))}).addCase(ht.fulfilled,(e,{payload:t})=>{t.entries.forEach(t=>{e[t.id]=Be(t)?Re(t):t})})),isInitialized:ge(!1,e=>{e.addCase(Ct,()=>!0)})}),It="#fff",Pt="#0061d5",Dt="#909090";let Lt=function(e){return e.DRAWING="drawing",e.HIGHLIGHT="highlight",e.NONE="none",e.REGION="region",e}({});const Mt=he("SET_COLOR"),Rt=he("TOGGLE_ANNOTATION_MODE"),jt=ge({color:Pt,mode:Lt.NONE},e=>e.addCase(Mt,(e,{payload:t})=>{e.color=t}).addCase(Rt,(e,{payload:t})=>{e.mode=t})),Nt=({common:e})=>e.mode,Ft=e=>e.common.color;let Bt=function(e){return e.init="init",e.pending="pending",e.rejected="rejected",e.staged="staged",e.started="started",e}({});const Ut=he("RESET_CREATOR"),Kt=he("SET_CREATOR_CURSOR"),Ht=he("SET_CREATOR_MESSAGE"),zt=he("SET_CREATOR_REFERENCE_ID"),qt=he("SET_CREATOR_STAGED"),Vt=he("SET_CREATOR_STATUS"),Gt={cursor:0,error:null,message:"",referenceId:null,staged:null,status:Bt.init},Wt=ge(Gt,e=>e.addCase(pt.fulfilled,()=>Gt).addCase(pt.pending,e=>{e.error=null,e.status=Bt.pending}).addCase(pt.rejected,(e,{error:t})=>{e.error=t,e.status=Bt.rejected}).addCase(Ut,e=>{e.message="",e.referenceId=null,e.staged=null,e.status=Bt.init}).addCase(Ht,(e,{payload:t})=>{e.message=t}).addCase(zt,(e,{payload:t})=>{e.referenceId=t}).addCase(qt,(e,{payload:t})=>{e.staged=t}).addCase(Vt,(e,{payload:t})=>{e.status=t}).addCase(Kt,(e,{payload:t})=>{e.cursor=t}).addCase(Rt,()=>Gt)),$t=e=>e.creator.cursor,Yt=e=>e.creator.message,Xt=e=>e.creator.referenceId,Zt=e=>e.creator.staged,Jt=(e,t)=>{const r=Zt(e);return t===Ke||r&&r.location===t?r:null},Qt=e=>e.creator.status,er=e=>void 0!==e?.pathGroups,tr=e=>void 0!==e?.shapes,rr=e=>void 0!==e?.shape,nr=he("ADD_DRAWING_PATH_GROUP",e=>({payload:Me(e)})),or=he("REDO_DRAWING_PATH_GROUP"),ir=he("RESET_DRAWING"),ar=he("SET_DRAWING_LOCATION"),sr=he("UNDO_DRAWING_PATH_GROUP"),cr={drawnPathGroups:[],location:0,stashedPathGroups:[]},ur=ge(cr,e=>e.addCase(pt.fulfilled,()=>cr).addCase(nr,(e,{payload:t})=>{e.drawnPathGroups.push(t),e.stashedPathGroups=[]}).addCase(or,e=>{const t=e.stashedPathGroups.pop();t&&e.drawnPathGroups.push(t)}).addCase(Ut,()=>cr).addCase(ir,()=>cr).addCase(ar,(e,{payload:t})=>{e.location!==t&&(e.location=t,e.drawnPathGroups=[])}).addCase(Rt,()=>cr).addCase(sr,e=>{const t=e.drawnPathGroups.pop();t&&e.stashedPathGroups.push(t)})),lr=(e,t)=>e.drawing.location===t?e.drawing.drawnPathGroups:[],dr=(e,t)=>e.drawing.location===t?e.drawing.stashedPathGroups:[];let fr=function(e){return e.CAN_CREATE_ANNOTATIONS="can_create_annotations",e.CAN_VIEW_ANNOTATIONS="can_view_annotations",e}({});var pr=function(e){return e.ACTIVE_SET="annotations_active_set",e.ANNOTATION_REMOVE="annotations_remove",e.BOUNDING_BOX_HIGHLIGHTS_SET="bounding_box_highlights_set",e.BOUNDING_BOX_HIGHLIGHT_SELECT="bounding_box_highlight_select",e.COLOR_SET="annotations_color_set",e.VIEW_MODE_SET="view_mode_set",e.VISIBLE_SET="annotations_visible_set",e.ACTIVE_CHANGE="annotations_active_change",e.ANNOTATION_CREATE="annotations_create",e.ANNOTATION_DELETE="annotations_delete",e.ANNOTATION_FETCH_ERROR="annotations_fetch_error",e.ANNOTATION_REPLY_CREATE="annotations_reply_create",e.ANNOTATION_REPLY_DELETE="annotations_reply_delete",e.ANNOTATION_REPLY_UPDATE="annotations_reply_update",e.ANNOTATION_UPDATE="annotations_update",e.ANNOTATIONS_INITIALIZED="annotations_initialized",e.ANNOTATIONS_MODE_CHANGE="annotations_mode_change",e.CREATOR_STAGED_CHANGE="creator_staged_change",e.CREATOR_STATUS_CHANGE="creator_status_change",e.BOUNDING_BOX_HIGHLIGHT_NAVIGATE="bounding_box_highlight_navigate",e}(pr||{}),hr=function(e){return e.SIDEBAR_ANNOTATION_UPDATE="sidebar.annotations_update",e.SIDEBAR_REPLY_CREATE="sidebar.annotations_reply_create",e.SIDEBAR_REPLY_DELETE="sidebar.annotations_reply_delete",e.SIDEBAR_REPLY_UPDATE="sidebar.annotations_reply_update",e}(hr||{}),gr=function(e){return e.ANNOTATOR="annotatorevent",e.ERROR="annotationerror",e.SCALE="scaleannotations",e}(gr||{});r(2521);let yr=function(e){return e.highlight="highlight",e.region="region",e}({});const mr=e=>{let t=Number.MAX_VALUE,r=Number.MAX_VALUE,n=Number.NEGATIVE_INFINITY,o=Number.NEGATIVE_INFINITY;return e.forEach(({height:e,width:i,x:a,y:s})=>{const c=a+i,u=s+e;0!==i&&0!==e&&(a<t&&(t=a),s<r&&(r=s),c>n&&(n=c),u>o&&(o=u))}),{x:t,y:r,width:n-t,height:o-r}};function br(e){return e?.target?.type===yr.highlight}const vr=(e,t,r)=>Math.max(Math.round(e*r),Math.round(t*r),1),wr=e=>{const t=[];return((e,t=.1)=>{const r=[];return e.forEach(e=>{const n=r.pop();if(!n)return void r.push(e);const{width:o,height:i,x:a,y:s}=n,{width:c,height:u,x:l,y:d}=e,f=vr(o,c,t),p=vr(i,u,t);Math.abs(a-l)<=f&&Math.abs(s-d)<=p?r.push(i*o>u*c?n:e):(r.push(n),r.push(e))}),r})(e).forEach(e=>{const{height:r,width:n,x:o,y:i}=e;if(0===n||0===r)return;const a=t.pop();if(!a)return void t.push(e);const{height:s,width:c,x:u,y:l}=a,d=u+c,f=vr(c,n,.3),p=vr(s,r,.6),h=Math.abs(o-d)<f,g=Math.abs(i-l)<p;h&&g?t.push(mr([a,e])):(t.push(a),t.push(e))}),t},Sr={height:100,width:100},xr=({x:e,y:t},r)=>({x:e,y:r>0?r-t:t}),Er=({x:e,y:t},r)=>{const n=r*Math.PI/180,o=Math.cos(n),i=Math.sin(n);return{x:e*o-t*i,y:e*i+t*o}};function _r({x:e,y:t},r){const{x:n,y:o}=function(e,t){const{height:r,width:n}=e,{height:o,width:i}=Sr,a=t%180==0,s=t%360==0,c=function(e,t){const{height:r,width:n}=e;switch(t){case-90:return{dx:r};case-180:return{dx:n,dy:r};case-270:return{dy:n}}return{dx:0,dy:0}}(Sr,t),u=function(e,t){const[r,n,o,i]=(e=>{const{height:t,width:r,x:n,y:o}=e;return[{x:n,y:o},{x:n+r,y:o},{x:n+r,y:o+t},{x:n,y:o+t}]})(e);switch(t){case-90:return n;case-180:return o;case-270:return i;default:return r}}(e,t);if(s)return e;const l=xr(u,o),d=(({x:e,y:t},{dx:r=0,dy:n=0})=>({x:e+r,y:t+n}))(Er(l,-t),c),{x:f,y:p}=xr(d,a?o:i);return{height:a?r:n,width:a?n:r,x:f,y:p}}({height:0,width:0,x:e,y:t},r);return{x:n,y:o}}function Or(e,t,r,n){if(!r)return[e,t];const o=r.getBoundingClientRect();if(!n)return[e-o.left,t-o.top];const i=o.left+o.width/2,a=o.top+o.height/2,s=Er({x:e-i,y:t-a},-n);return[s.x+r.offsetWidth/2,s.y+r.offsetHeight/2]}const Cr=({height:e,left:t,top:r,width:n})=>({height:e,width:n,x:t,y:r}),kr=he("SET_SELECTION",e=>{if(!e)return{payload:null};const{containerEl:t,containerRect:r,hasError:n,location:o,range:i,rotation:a}=e;let s=Array.from(i.getClientRects());s.length||(s=(e=>{const t=document.createNodeIterator(e.commonAncestorContainer,NodeFilter.SHOW_ALL,function(){return NodeFilter.FILTER_ACCEPT},!1),r=document.createRange(),n=[];let o=t.nextNode();for(;o;)if(0!==n.length||o===e.startContainer){if(o.nodeType===Node.TEXT_NODE&&(r.selectNodeContents(o),o===e.startContainer&&r.setStart(o,e.startOffset),o===e.endContainer&&r.setEnd(o,e.endOffset),n.push(r.getBoundingClientRect())),o===e.endContainer)break;o=t.nextNode()}else o=t.nextNode();return n})(i));const c=s.map(Cr);if(a&&t){const e=c.map(e=>{const[r,n]=Or(e.x,e.y,t,a),[o,i]=Or(e.x+e.width,e.y+e.height,t,a);return{x:Math.min(r,o),y:Math.min(n,i),width:Math.abs(o-r),height:Math.abs(i-n)}});return{payload:{containerRect:{x:0,y:0,width:t.offsetWidth,height:t.offsetHeight},hasError:n,location:o,popupRect:mr(c),rects:wr(e)}}}return{payload:{containerRect:Cr(r),hasError:n,location:o,rects:wr(c)}}}),Ar=he("SET_IS_PROMOTING"),Tr=he("SET_IS_SELECTING"),Ir=ge({isPromoting:!1,isSelecting:!1,selection:null},e=>e.addCase(Ar,(e,{payload:t})=>{e.isPromoting=t}).addCase(Tr,(e,{payload:t})=>{e.isSelecting=t}).addCase(kr,(e,{payload:t})=>{e.selection=t}).addCase(pt.fulfilled,e=>{e.isPromoting=!1}).addCase(Ut,e=>{e.isPromoting=!1}).addCase(Rt,e=>{e.isPromoting=!1}).addCase(Vt,e=>{e.selection=null})),Pr=e=>e.highlight.isPromoting,Dr=e=>e.highlight.isSelecting,Lr=(e,t)=>{const r=(e=>e.highlight.selection)(e);return r&&r.location===t?r:null},Mr=he("SET_BOUNDING_BOX_HIGHLIGHTS"),Rr=he("SET_SELECTED_BOUNDING_BOX_HIGHLIGHT"),jr=he("NAVIGATE_BOUNDING_BOX_HIGHLIGHT"),Nr=ge({boundingBoxes:[],selectedId:null},e=>{e.addCase(Mr,(e,{payload:t})=>{e.boundingBoxes=t,e.selectedId=null}).addCase(Rr,(e,{payload:t})=>{e.selectedId=t}).addCase(jr,(e,{payload:t})=>{e.selectedId=t}).addCase(Qe,(e,{payload:t})=>{"annotations"===t&&(e.selectedId=null)})}),Fr=({boundingBoxHighlights:e})=>e.boundingBoxes,Br=({boundingBoxHighlights:e},t)=>e.boundingBoxes.filter(e=>e.pageNumber===t),Ur=({boundingBoxHighlights:e})=>e.selectedId;r(7723);const Kr=we("FETCH_COLLABORATORS",async(e="",{extra:t,getState:r,signal:n})=>{const o=t.api.getCollaboratorsAPI(),i=r(),a=nt(i);return n.addEventListener("abort",()=>{o.destroy()}),new Promise((t,r)=>{o.getFileCollaborators(a,t,r,{filter_term:e,include_groups:!1,include_uploader_collabs:!1})})}),Hr=ge({collaborators:[]},e=>e.addCase(Kr.fulfilled,(e,{payload:t})=>{e.collaborators=t.entries}).addCase(Kr.rejected,e=>{e.collaborators=[]})),zr=e=>e.users.collaborators;var qr=r(3950),Vr=r.n(qr),Gr=r(7007);class Wr extends Gr.EventEmitter{emit(e,...t){const[r]=t;return super.emit(e,r),super.emit(gr.ANNOTATOR,{event:e,data:r}),!0}}const $r=new Wr;let Yr=function(e){return e.ERROR="error",e.PENDING="pending",e.SUCCESS="success",e}({});const Xr=e=>(t,r,n)=>((e,t)=>{const{error:r,meta:{arg:n,requestId:o}={},payload:i}=e;$r.emit(pr.ANNOTATION_CREATE,{annotation:i||n,error:r,meta:{requestId:o,status:t}})})(n,e),Zr=Xr(Yr.ERROR),Jr=Xr(Yr.PENDING),Qr=Xr(Yr.SUCCESS),en=e=>(t,r,n)=>((e,t)=>{const{error:r,meta:{arg:n,requestId:o}={},payload:i}=e;if(t===Yr.SUCCESS&&!i)return;const a=i??n;$r.emit(pr.ANNOTATION_DELETE,{annotation:a?{id:a}:void 0,error:r,meta:{requestId:o,status:t}})})(n,e),tn=en(Yr.ERROR),rn=en(Yr.PENDING),nn=en(Yr.SUCCESS),on=e=>(t,r,n)=>((e,t)=>{const{error:r,meta:{arg:n,requestId:o}={},payload:i}=e;if(t===Yr.SUCCESS&&!i?.reply)return;const a=i?.annotationId??n?.annotationId;$r.emit(pr.ANNOTATION_REPLY_CREATE,{annotation:a?{id:a}:void 0,annotationReply:i?.reply,error:r,meta:{requestId:o,status:t}})})(n,e),an=on(Yr.ERROR),sn=on(Yr.PENDING),cn=on(Yr.SUCCESS),un=e=>(t,r,n)=>((e,t)=>{const{error:r,meta:{arg:n,requestId:o}={},payload:i}=e;if(t===Yr.SUCCESS&&!i)return;const a=i?.annotationId??n?.annotationId,s=i?.replyId??n?.replyId;$r.emit(pr.ANNOTATION_REPLY_DELETE,{annotation:a?{id:a}:void 0,annotationReply:s?{id:s}:void 0,error:r,meta:{requestId:o,status:t}})})(n,e),ln=un(Yr.ERROR),dn=un(Yr.PENDING),fn=un(Yr.SUCCESS),pn=e=>(t,r,n)=>((e,t)=>{const{error:r,meta:{arg:n,requestId:o}={},payload:i}=e;if(t===Yr.SUCCESS&&!i?.reply)return;const a=i?.annotationId??n?.annotationId,s=i?.reply??(n?{id:n.replyId}:void 0);$r.emit(pr.ANNOTATION_REPLY_UPDATE,{annotation:a?{id:a}:void 0,annotationReply:s,error:r,meta:{requestId:o,status:t}})})(n,e),hn=pn(Yr.ERROR),gn=pn(Yr.PENDING),yn=pn(Yr.SUCCESS),mn=e=>{let t=null;return rr(e)&&(t="region"),tr(e)&&(t="highlight"),t},bn=e=>(t,r,n)=>((e,t)=>{const{error:r,meta:{arg:n,requestId:o}={},payload:i}=e;if(t===Yr.SUCCESS&&!i)return;const a=i??(n?{id:n.annotationId}:void 0);$r.emit(pr.ANNOTATION_UPDATE,{annotation:a,error:r,meta:{requestId:o,status:t}})})(n,e),vn=bn(Yr.ERROR),wn=bn(Yr.PENDING),Sn=bn(Yr.SUCCESS),xn={[pt.fulfilled.toString()]:Qr,[pt.pending.toString()]:Jr,[pt.rejected.toString()]:Zr,[gt.fulfilled.toString()]:cn,[gt.pending.toString()]:sn,[gt.rejected.toString()]:an,[yt.fulfilled.toString()]:nn,[yt.pending.toString()]:rn,[yt.rejected.toString()]:tn,[vt.fulfilled.toString()]:fn,[vt.pending.toString()]:dn,[vt.rejected.toString()]:ln,[ht.rejected.toString()]:(e,t,r)=>{$r.emit(pr.ANNOTATION_FETCH_ERROR,r)},[jr.toString()]:(e,t)=>{const r=Ur(t);r&&$r.emit(pr.BOUNDING_BOX_HIGHLIGHT_NAVIGATE,r)},[Ut.toString()]:e=>{const t=Zt(e),r=mn(t);$r.emit(pr.CREATOR_STAGED_CHANGE,{type:r,status:"cancel"})},[Ot.toString()]:(e,t)=>{const r=ze(e),n=ze(t),o=ot(t);r!==n&&$r.emit(pr.ACTIVE_CHANGE,{annotationId:n,fileVersionId:o})},[Ct.toString()]:(e,t)=>{const r=We(e),n=We(t);r!==n&&n&&$r.emit(pr.ANNOTATIONS_INITIALIZED,{annotations:Ve(t)})},[qt.toString()]:(e,t)=>{const r=Zt(e),n=Zt(t),o=((e,t)=>{let r=null;return null===e&&null!==t&&(r="create"),null!==e&&(r=null===t?"cancel":"update"),r})(r,n),i=mn(r)||mn(n);o&&i&&$r.emit(pr.CREATOR_STAGED_CHANGE,{type:i,status:o})},[Vt.toString()]:(e,t)=>{const r=Qt(e),n=Qt(t);r!==n&&$r.emit(pr.CREATOR_STATUS_CHANGE,{status:n,type:Nt(t)})},[Rt.toString()]:(e,t)=>{$r.emit(pr.ANNOTATIONS_MODE_CHANGE,{mode:t.common.mode})},[mt.fulfilled.toString()]:Sn,[mt.pending.toString()]:wn,[mt.rejected.toString()]:vn,[bt.fulfilled.toString()]:yn,[bt.pending.toString()]:gn,[bt.rejected.toString()]:hn},En=function(e=xn){return t=>r=>n=>{const{type:o}=n,i=t.getState(),a=r(n),s=t.getState();return(e[o]||Vr())(i,s,n),a}};function _n(e,{api:t}={}){return function(e){var t,r=e||{},n=r.reducer,o=void 0===n?void 0:n,i=r.middleware,a=void 0===i?pe():i,s=r.devTools,u=void 0===s||s,d=r.preloadedState,f=void 0===d?void 0:d,g=r.enhancers,y=void 0===g?void 0:g;if("function"==typeof o)t=o;else{if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(o))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=l(o)}var m=h.apply(void 0,a),b=p;u&&(b=fe(de({trace:!1},"object"==typeof u&&u)));var v=[m];return Array.isArray(y)?v=[m].concat(y):"function"==typeof y&&(v=y(v)),c(t,f,b.apply(void 0,v))}({devTools:!1,middleware:[...pe({thunk:{extraArgument:{api:t}}}),En()],preloadedState:e,reducer:l({annotations:Tt,common:jt,creator:Wt,drawing:ur,highlight:Ir,boundingBoxHighlights:Nr,options:et,users:Hr})})}var On=r(5364),Cn=r.n(On);let kn;class An{static getUserAgent(){return globalThis.navigator.userAgent}static isMobile(){const e=An.getUserAgent();return/iphone|ipad|ipod|android|blackberry|bb10|mini|windows\sce|palm/i.test(e)||/Mobi/i.test(e)}static isIE(){return/Trident/i.test(An.getUserAgent())}static isFirefox(){const e=An.getUserAgent();return/Firefox/i.test(e)&&!/Seamonkey\//i.test(e)}static isSafari(){const e=An.getUserAgent();return/AppleWebKit/i.test(e)&&!/Chrome\//i.test(e)}static isMobileSafari(){return An.isMobile()&&An.isSafari()&&!An.isMobileChromeOniOS()}static isMobileChromeOniOS(){const e=An.getUserAgent();return An.isMobile()&&/AppleWebKit/i.test(e)&&/CriOS\//i.test(e)}static canDownload(){return!An.isMobile()||!window.externalHost&&"download"in document.createElement("a")}static canPlayDash(){if(void 0===kn||arguments.length>0&&void 0!==arguments[0]&&arguments[0]){const e=globalThis.MediaSource;kn=!!e&&"function"==typeof e.isTypeSupported&&e.isTypeSupported('video/mp4; codecs="avc1.64001E"')}return kn}static canWriteToClipboard(){return!(!globalThis.navigator.clipboard||!globalThis.navigator.clipboard.writeText)}static canReadFromClipboard(){return!(!globalThis.navigator.clipboard||!globalThis.navigator.clipboard.readText)}}const Tn=An,In="folder_",Pn="file_",Dn="Content-Type",Ln="Accept-Language",Mn="global",Rn="permissions",jn=("".concat(Rn,".can_share"),"".concat(Rn,".can_upload"),"metadata"),Nn=("".concat(jn,".").concat(Mn,".").concat("boxSkillsCards"),"".concat(jn,".").concat(Mn,".").concat("properties"),"".concat(jn,".").concat("enterprise",".").concat("securityClassification-6VMVochwUWo"),"can_comment"),Fn="can_create_annotations",Bn="can_delete",Un="can_edit",Kn="can_resolve",Hn="can_view_annotations",zn="https://api.box.com",qn="https://upload.box.com",Vn="fetch_replies_error",Gn="create_reply_error",Wn=Tn.canPlayDash()?"[dash,mp4][filmstrip]":"[mp4]",$n=("".concat("[3d][pdf][text][mp3][json]").concat("[jpg?dimensions=1024x1024&paged=false]").concat("[jpg?dimensions=2048x2048,png?dimensions=2048x2048]").concat(Wn),"[jpg?dimensions=".concat("1024x1024","&paged=false,png?dimensions=").concat("1024x1024","][pdf][text]"),"GET"),Yn="POST",Xn="DELETE",Zn="OPTIONS",Jn=429;function Qn(e){return"".concat(Pn).concat(e)}var eo=r(2505),to=r.n(eo),ro=r(9859),no=r.n(ro),oo=r(5321),io=r.n(oo);const ao=new Error("Bad id or auth token. ID should be typed id like file_123 or folder_123! Token should be a string or function.");class so{static async getToken(e,t){if(null!=t&&"string"!=typeof t&&"function"!=typeof t||!e.startsWith(In)&&!e.startsWith(Pn))throw ao;if(!t||"string"==typeof t)return t;const r=await t(e);if(!r||"string"==typeof r||"object"==typeof r&&(r.read||r.write))return r;throw ao}static async getReadToken(e,t){const r=await so.getToken(e,t);return r&&"object"==typeof r?r.read:r}static async getReadTokens(e,t){const r=Array.isArray(e)?e:[e],n=r.map(e=>so.getReadToken(e,t)),o=await Promise.all(n),i={};return o.forEach((e,t)=>{i[r[t]]=e}),Promise.resolve(i)}static async getWriteToken(e,t){const r=await so.getToken(e,t);return r&&"object"==typeof r?r.write||r.read:r}static async cacheTokens(e,t){if(null!=t&&"string"!=typeof t&&"function"!=typeof t||!e.every(e=>e.startsWith(In)||e.startsWith(Pn)))throw ao;return"function"==typeof t&&await t(e),Promise.resolve()}}const co=so;function uo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function lo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const fo=12e4,po=[$n,Zn,"HEAD"].map(io()),ho=class{constructor(){let{id:e,clientName:t,language:r,token:n,version:i,sharedLink:a,sharedLinkPassword:s,responseInterceptor:c,requestInterceptor:u,retryableStatusCodes:l=[Jn],shouldRetry:d=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};lo(this,"retryCount",0),lo(this,"errorInterceptor",e=>{if(this.shouldRetryRequest(e)){this.retryCount+=1;const t=this.getExponentialRetryTimeoutInMs(this.retryCount);return new Promise((r,n)=>{this.retryTimeout=setTimeout(()=>{this.axios(e.config).then(r,n)},t)})}const t=o()(e,"response.data")||e;return this.responseInterceptor(t),Promise.reject(e)}),this.clientName=t,this.id=e,this.language=r,this.responseInterceptor=c||this.defaultResponseInterceptor,this.retryableStatusCodes=l,this.sharedLink=a,this.sharedLinkPassword=s,this.shouldRetry=d,this.token=n,this.version=i,this.axios=to().create(),this.axiosSource=to().CancelToken.source(),this.axios.interceptors.response.use(this.responseInterceptor,this.errorInterceptor),"function"==typeof u&&this.axios.interceptors.request.use(u)}defaultResponseInterceptor(e){return e}shouldRetryRequest(e){if(!this.shouldRetry||this.retryCount>=3)return!1;const{response:t,request:r,config:n}=e,i=o()(t,"status"),a=o()(n,"method"),s=r&&!t,c=i===Jn,u=no()(this.retryableStatusCodes,i)&&no()(po,a);return s||c||u}getExponentialRetryTimeoutInMs(e){return 2**(e-1)*1e3+Math.ceil(1e3*Math.random())}getParsedUrl(e){const t=document.createElement("a");return t.href=e,{api:e.replace("".concat(t.origin,"/2.0"),""),host:t.host,hostname:t.hostname,pathname:t.pathname,origin:t.origin,protocol:t.protocol,hash:t.hash,port:t.port}}async getHeaders(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?uo(Object(r),!0).forEach(function(t){lo(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uo(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({Accept:"application/json",[Dn]:"application/json"},t);this.language&&!r[Ln]&&(r[Ln]=this.language),this.sharedLink&&(r.BoxApi="shared_link=".concat(this.sharedLink),this.sharedLinkPassword&&(r.BoxApi="".concat(r.BoxApi,"&shared_link_password=").concat(this.sharedLinkPassword))),this.clientName&&(r["X-Box-Client-Name"]=this.clientName),this.version&&(r["X-Box-Client-Version"]=this.version);const n=e||this.id||"",o=await co.getWriteToken(n,this.token);return o&&(r.Authorization="Bearer ".concat(o)),r}get(e){let{url:t,id:r,params:n={},headers:o={}}=e;return this.getHeaders(r,o).then(e=>this.axios.get(t,{cancelToken:this.axiosSource.token,params:n,headers:e,parsedUrl:this.getParsedUrl(t)}))}post(e){let{url:t,id:r,data:n,params:o,headers:i={},method:a=Yn}=e;return this.getHeaders(r,i).then(e=>this.axios({url:t,data:n,params:o,method:a,parsedUrl:this.getParsedUrl(t),headers:e}))}put(e){let{url:t,id:r,data:n,params:o,headers:i={}}=e;return this.post({id:r,url:t,data:n,params:o,headers:i,method:"PUT"})}delete(e){let{url:t,id:r,data:n={},headers:o={}}=e;return this.post({id:r,url:t,data:n,headers:o,method:Xn})}options(e){let{id:t,url:r,data:n,headers:o={},successHandler:i,errorHandler:a}=e;return this.getHeaders(t,o).then(e=>this.axios({url:r,data:n,method:Zn,headers:e}).then(i).catch(a)).catch(a)}uploadFile(e){let{id:t,url:r,data:n,headers:o={},method:i=Yn,successHandler:a,errorHandler:s,progressHandler:c,withIdleTimeout:u=!1,idleTimeoutDuration:l=fo,idleTimeoutHandler:d}=e;return this.getHeaders(t,o).then(e=>{let t,f=c;if(u){const e=()=>{this.abort(),d&&d()};t=setTimeout(e,l),f=r=>{clearTimeout(t),t=setTimeout(e,l),c(r)}}this.axios({url:r,data:n,transformRequest:(e,t)=>{if(delete t.Accept,delete t[Dn],o[Dn]&&(t[Dn]=o[Dn]),e&&!(e instanceof Blob)&&e.attributes){const t=new FormData;return Object.keys(e).forEach(r=>{t.append(r,e[r])}),t}return e},method:i,headers:e,onUploadProgress:f,cancelToken:this.axiosSource.token}).then(e=>{clearTimeout(t),a(e)}).catch(e=>{clearTimeout(t),s(e)})}).catch(s)}abort(){this.retryTimeout&&clearTimeout(this.retryTimeout),this.axiosSource&&(this.axiosSource.cancel(),this.axiosSource=to().CancelToken.source())}},go=class{constructor(){this.cache={}}set(e,t){this.cache[e]=t}merge(e,t){if(!this.has(e))throw new Error("Key ".concat(e," not in cache!"));this.set(e,Cn()({},this.get(e),t))}unset(e){delete this.cache[e]}unsetAll(e){Object.keys(this.cache).forEach(t=>{t.startsWith(e)&&delete this.cache[t]})}has(e){return{}.hasOwnProperty.call(this.cache,e)}get(e){if(this.has(e))return this.cache[e]}},yo=class{constructor(){this.memoryStore=new go;try{this.localStorage=window.localStorage,this.isLocalStorageAvailable=this.canUseLocalStorage()}catch(e){this.isLocalStorageAvailable=!1}}buildKey(e){return"".concat("localStore","/").concat("0","/").concat(e)}canUseLocalStorage(){if(!this.localStorage)return!1;try{return this.localStorage.setItem(this.buildKey("TestKey"),"testValue"),this.localStorage.removeItem(this.buildKey("TestKey")),!0}catch(e){return!1}}setItem(e,t){if(this.isLocalStorageAvailable)try{this.localStorage.setItem(this.buildKey(e),JSON.stringify(t))}catch(e){}else this.memoryStore.set(e,t)}getItem(e){if(!this.isLocalStorageAvailable)return this.memoryStore.get(e);try{const t=this.localStorage.getItem(this.buildKey(e));return t?JSON.parse(t):null}catch(e){return null}}removeItem(e){if(this.isLocalStorageAvailable)try{this.localStorage.removeItem(this.buildKey(e))}catch(e){}else this.memoryStore.unset(e)}},mo="bcu-uploads-reachability-cached-results",bo=class{constructor(){this.localStore=new yo,this.cachedResults={},this.populateCachedResultsWithValidLocalStoreValues(),this.saveCachedResultsToLocalStore()}getCachedResultsFromLocalStore(){return this.localStore.getItem(mo)}saveCachedResultsToLocalStore(){this.localStore.setItem(mo,this.cachedResults)}isCachedHostValid(e){return e.expirationTimestampMS>Date.now()}getCachedResult(e){if(e in this.cachedResults){const t=this.cachedResults[e];if(this.isCachedHostValid(t))return t}return null}updateCachedResult(e,t){this.cachedResults[e]={isReachable:t,expirationTimestampMS:Date.now()+864e5},this.saveCachedResultsToLocalStore()}populateCachedResultsWithValidLocalStoreValues(){const e=this.getCachedResultsFromLocalStore();e&&Object.keys(e).forEach(t=>{const r=e[t];this.isCachedHostValid(r)&&(this.cachedResults[t]=r)})}getUnreachableHostsUrls(){const e=[];return this.cachedResults?(Object.keys(this.cachedResults).forEach(t=>{const r=this.cachedResults[t];this.isCachedHostValid(r)&&!r.isReachable&&e.push(t)}),e):e}async isReachable(e){if(e==="".concat(qn,"/")||e==="".concat("https://upload.app.box.com","/"))return!0;const t=this.getCachedResult(e);if(t)return t.isReachable;const r=await this.makeReachabilityRequest(e);return this.updateCachedResult(e,r),r}async makeReachabilityRequest(e){const t="".concat(e,"html5?reachability_test=run"),r={[Dn]:"application/x-www-form-urlencoded; charset=UTF-8","X-File-Name":"reachability_pseudofile.txt","X-File-Size":"1234"};try{await to().post(t,"reachability_file=test_file_data",{headers:r})}catch(e){return!1}return!0}};function vo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function wo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vo(Object(r),!0).forEach(function(t){So(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vo(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function So(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const xo=class{constructor(e){So(this,"successHandler",e=>{this.isDestroyed()||"function"!=typeof this.successCallback||this.successCallback(e)}),So(this,"errorHandler",e=>{if(!this.isDestroyed()&&"function"==typeof this.errorCallback){const{response:t}=e;t&&t.data?this.errorCallback(t.data,this.errorCode):this.errorCallback(e,this.errorCode)}}),this.cache=e.cache||new go,this.apiHost=e.apiHost||zn,this.uploadHost=e.uploadHost||qn,this.options=wo({},e,{apiHost:this.apiHost,uploadHost:this.uploadHost,cache:this.cache}),this.xhr=new ho(this.options),this.destroyed=!1,this.consoleLog=e.consoleLog&&window.console&&window.console.log||Vr(),this.consoleError=e.consoleError&&window.console&&window.console.error||Vr(),this.uploadsReachability=new bo}destroy(){this.xhr.abort(),this.destroyed=!0}isDestroyed(){return this.destroyed}checkApiCallValidity(e,t,r){if(!r||!t)throw new Error("Bad box item!");if(!t[e])throw new Error("Insufficient Permissions!")}getBaseApiUrl(){const e=this.apiHost.endsWith("/")?"2.0":"/2.0";return"".concat(this.apiHost).concat(e)}getBaseUploadUrl(){const e=this.uploadHost.endsWith("/")?"api/2.0":"/api/2.0";return"".concat(this.uploadHost).concat(e)}getCache(){return this.cache}getUrl(e){throw new Error("Implement me!")}format(e){throw new Error("Implement me!")}get(e){let{id:t,successCallback:r,errorCallback:n,requestData:o,url:i}=e;const a=i||this.getUrl(t);return this.makeRequest($n,t,a,r,n,o)}post(e){let{id:t,url:r,data:n,successCallback:o,errorCallback:i}=e;return this.makeRequest(Yn,t,r,o,i,n)}put(e){let{id:t,url:r,data:n,successCallback:o,errorCallback:i}=e;return this.makeRequest("PUT",t,r,o,i,n)}delete(e){let{id:t,url:r,data:n,successCallback:o,errorCallback:i}=e;return this.makeRequest(Xn,t,r,o,i,n)}async makeRequest(e,t,r,n,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(this.isDestroyed())return;this.successCallback=n,this.errorCallback=o;const a=this.xhr[e.toLowerCase()].bind(this.xhr);try{const{data:e}=await a(wo({id:Qn(t),url:r},i));this.successHandler(e)}catch(e){this.errorHandler(e)}}};function Eo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Eo(Object(r),!0).forEach(function(t){Oo(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eo(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Oo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Co=class extends xo{hasMoreItems(e){return null!==e&&""!==e}async markerGetRequest(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this.isDestroyed())try{const i=this.getUrl(e),a=_o({},o,{marker:t,limit:r}),{data:s}=await this.xhr.get({url:i,id:Qn(e),params:a}),c=this.data?this.data.entries:[];this.data=_o({},s,{entries:c.concat(s.entries)});const u=s.next_marker;if(n&&this.hasMoreItems(u))return void this.markerGetRequest(e,u,r,n,o);this.successHandler(this.data)}catch(e){this.errorHandler(e)}}async markerGet(e){let{id:t,successCallback:r,errorCallback:n,marker:o="",limit:i=1e3,requestData:a,shouldFetchAll:s=!0}=e;return this.successCallback=r,this.errorCallback=n,this.markerGetRequest(t,o,i,s,a)}};function ko(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ao(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const To=e=>{const t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ko(Object(r),!0).forEach(function(t){Ao(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ko(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e,{tagged_message:e.message});return e.replies&&e.replies.length&&(t.replies=e.replies.map(To)),t};function Io(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Po(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Io(Object(r),!0).forEach(function(t){Do(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Io(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Do(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Lo extends Co{constructor(){super(...arguments),Do(this,"successHandler",e=>{if(this.isDestroyed()||"function"!=typeof this.successCallback)return;if(!e)return void this.successCallback();if(!e.entries)return e.type&&"comment"===e.type?void this.successCallback(To(e)):void this.successCallback(this.formatReplies(e));if(e.entries.length&&"comment"===e.entries[0].type){const t=e.entries.map(To);return void this.successCallback(Po({},e,{entries:t}))}const t=e.entries.map(this.formatReplies);this.successCallback(Po({},e,{entries:t}))})}formatReplies(e){return e.replies&&e.replies.length?Po({},e,{replies:e.replies.map(To)}):e}getUrl(){return"".concat(this.getBaseApiUrl(),"/undoc/annotations")}getUrlForId(e){return"".concat(this.getUrl(),"/").concat(e)}getUrlWithRepliesForId(e){return"".concat(this.getUrlForId(e),"/replies")}createAnnotation(e,t,r,n,o,i){this.errorCode="create_annotation_error";try{this.checkApiCallValidity(Fn,n,e)}catch(e){return void i(e,this.errorCode)}const a={description:{type:"reply"},file_version:{id:t,type:"file_version"}};this.post({id:e,data:{data:Cn()(a,r)},errorCallback:i,successCallback:o,url:this.getUrl()})}updateAnnotation(e,t,r,n,o,i){this.errorCode="edit_annotation_error";const{message:a,status:s}=n;if(a)try{this.checkApiCallValidity(Un,r,e)}catch(e){return void i(e,this.errorCode)}if(s)try{this.checkApiCallValidity(Kn,r,e)}catch(e){return void i(e,this.errorCode)}this.put({id:e,data:{data:{description:a?{message:a}:void 0,status:s}},errorCallback:i,successCallback:o,url:this.getUrlForId(t)})}deleteAnnotation(e,t,r,n,o){this.errorCode="delete_annotation_error";try{this.checkApiCallValidity(Bn,r,e)}catch(e){return void o(e,this.errorCode)}this.delete({id:e,errorCallback:o,successCallback:n,url:this.getUrlForId(t)})}getAnnotation(e,t,r,n,o,i){this.errorCode="fetch_annotation_error";try{this.checkApiCallValidity(Hn,r,e)}catch(e){return void o(e,this.errorCode)}const a=i?{params:{fields:"replies"}}:void 0;this.get({id:e,errorCallback:o,successCallback:n,url:this.getUrlForId(t),requestData:a})}getAnnotations(e,t,r,n,o,i,a,s){this.errorCode="fetch_annotations_error";try{this.checkApiCallValidity(Hn,r,e)}catch(e){return void o(e,this.errorCode)}const c=Po({file_id:e,file_version_id:t},s?{fields:"replies"}:null);this.markerGet({id:e,errorCallback:o,limit:i,requestData:c,shouldFetchAll:a,successCallback:n})}getAnnotationReplies(e,t,r,n,o){this.errorCode=Vn;try{this.checkApiCallValidity(Hn,r,e)}catch(e){return void o(e,this.errorCode)}this.get({id:e,errorCallback:o,successCallback:n,url:this.getUrlWithRepliesForId(t)})}createAnnotationReply(e,t,r,n,o,i){this.errorCode=Gn;try{this.checkApiCallValidity(Fn,r,e)}catch(e){return void i(e,this.errorCode)}this.post({id:e,data:{data:{message:n}},errorCallback:i,successCallback:o,url:"".concat(this.getUrlWithRepliesForId(t),"?file_id=").concat(e)})}}function Mo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ro(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const jo=class extends Co{constructor(){var e;super(...arguments),e=this,Ro(this,"successHandler",e=>{if(this.isDestroyed()||"function"!=typeof this.successCallback)return;const t=e.entries.map(e=>{let t;return"group"===e.type?t=e:(t=e,t.email=t.login),{id:e.id,name:e.name,item:t}});this.successCallback(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mo(Object(r),!0).forEach(function(t){Ro(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mo(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e,{entries:t}))}),Ro(this,"getCollaboratorsWithQuery",function(t,r,n,o){let{includeGroups:i=!1}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};o&&""!==o.trim()&&e.getFileCollaborators(t,r,n,{filter_term:o,include_groups:i,include_uploader_collabs:!1})})}getUrl(e){if(!e)throw new Error("Missing file id!");return"".concat(this.getBaseApiUrl(),"/files/").concat(e,"/collaborators")}getFileCollaborators(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:25;this.markerGet({id:e,limit:o,successCallback:t,errorCallback:r,requestData:n})}};function No(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Fo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?No(Object(r),!0).forEach(function(t){Bo(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):No(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Bo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Uo=class extends Co{constructor(){super(...arguments),Bo(this,"successHandler",e=>{if(this.isDestroyed()||"function"!=typeof this.successCallback)return;if(!e)return void this.successCallback();if(!e.entries)return void this.successCallback(To(e));const t=e.entries.map(To);this.successCallback(Fo({},e,{entries:t}))})}getUrl(e){return"".concat(this.getBaseApiUrl(),"/undoc/comments").concat(e?"?file_id=".concat(e):"")}getUrlForId(e){return"".concat(this.getUrl(),"/").concat(e)}getUrlWithRepliesForId(e,t){return"".concat(this.getUrlForId(e),"/replies").concat(t?"?file_id=".concat(t):"")}createComment(e){let{file:t,message:r,successCallback:n,errorCallback:o}=e;this.errorCode="create_comment_error";const{id:i,permissions:a}=t;try{this.checkApiCallValidity(Nn,a,i)}catch(e){return void o(e,this.errorCode)}this.post({id:i,url:this.getUrl(i),data:{data:{message:r}},successCallback:n,errorCallback:o})}updateComment(e){let{fileId:t,commentId:r,status:n,message:o,permissions:i,successCallback:a,errorCallback:s}=e;if(this.errorCode="update_comment_error",o)try{this.checkApiCallValidity(Un,i,t)}catch(e){return void s(e,this.errorCode)}if(n)try{this.checkApiCallValidity(Kn,i,t)}catch(e){return void s(e,this.errorCode)}const c={data:{status:n,message:o}};this.put({id:t,url:this.getUrlForId(r),data:c,successCallback:a,errorCallback:s})}deleteComment(e){let{fileId:t,commentId:r,permissions:n,successCallback:o,errorCallback:i}=e;this.errorCode="delete_comment_error";try{this.checkApiCallValidity(Bn,n,t)}catch(e){return void i(e,this.errorCode)}this.delete({id:t,url:this.getUrlForId(r),successCallback:o,errorCallback:i})}getComment(e){let{commentId:t,errorCallback:r,fileId:n,permissions:o,successCallback:i}=e;this.errorCode="fetch_comment_error";try{this.checkApiCallValidity(Nn,o,n)}catch(e){return void r(e,this.errorCode)}this.get({id:n,errorCallback:r,successCallback:i,url:this.getUrlForId(t)})}getComments(e){let{fileId:t,permissions:r,successCallback:n,errorCallback:o,marker:i,limit:a,shouldFetchAll:s,repliesCount:c}=e;this.errorCode="fetch_comments_error";try{this.checkApiCallValidity(Nn,r,t)}catch(e){return void o(e,this.errorCode)}this.markerGet({id:t,successCallback:n,errorCallback:o,marker:i,limit:a,requestData:Fo({},c?{replies_count:c}:null),shouldFetchAll:s})}getCommentReplies(e){let{fileId:t,commentId:r,permissions:n,successCallback:o,errorCallback:i}=e;this.errorCode=Vn;try{this.checkApiCallValidity(Nn,n,t)}catch(e){return void i(e,this.errorCode)}this.get({id:t,errorCallback:i,successCallback:o,url:this.getUrlWithRepliesForId(r)})}createCommentReply(e){let{fileId:t,commentId:r,permissions:n,successCallback:o,errorCallback:i,message:a}=e;this.errorCode=Gn;try{this.checkApiCallValidity(Nn,n,t)}catch(e){return void i(e,this.errorCode)}this.post({id:t,data:{data:{message:a}},errorCallback:i,successCallback:o,url:this.getUrlWithRepliesForId(r,t)})}};function Ko(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}class Ho{constructor(e){t(this,"options",void 0),this.options=function(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?Ko(Object(n),!0).forEach(function(r){t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ko(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({apiHost:zn,clientName:"box-annotations"},e)}getAnnotationsAPI(){return new Lo(this.options)}getCollaboratorsAPI(){return new jo(this.options)}getThreadedCommentsAPI(){return new Uo(this.options)}}var zo=r(2015),qo=r.n(zo);const Vo=require("react-dom/client"),Go=require("react-redux");function Wo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function $o(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?Wo(Object(n),!0).forEach(function(r){t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}class Yo{constructor({location:e=1,referenceEl:r,resinTags:n={},targetType:o=He.PAGE}){t(this,"location",void 0),t(this,"reactEl",void 0),t(this,"root",null),t(this,"targetType",void 0),t(this,"referenceEl",void 0),this.location=e,this.reactEl=this.insert(r,$o($o({},n),{},{feature:"annotations"})),this.referenceEl=r,this.targetType=o,this.root=Vo.createRoot(this.reactEl),this.decorate()}decorate(){throw new Error("Method not implemented.")}destroy(){this.root&&this.root.unmount(),this.reactEl.parentNode&&this.reactEl.parentNode.removeChild(this.reactEl)}exists(e){return e.contains(this.reactEl)}insert(e,t={}){const r=e.ownerDocument||document,n=e.parentNode||r,o=r.createElement("div");return o.classList.add("ba-Layer"),a=t,(i=o)&&Object.values(a).length&&Object.entries(a).forEach(([e,t])=>{const r=`data-resin-${e.toLowerCase()}`,n=function(e){return"object"==typeof e||"function"==typeof e||"symbol"==typeof e?"":"string"==typeof e?e:String(e)}(t);n&&i.setAttribute(r,n)}),n.insertBefore(o,e.nextSibling);var i,a}render(e){throw new Error("Method not implemented.")}style(e){return g(this.reactEl.style,e)}}function Xo(){const e=(0,Go.useDispatch)();return qo().useEffect(()=>{const t=t=>{t.target?.closest?.(".ba-PopupV2, .ba-Popup")||e(Ot(null))};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}}),null}class Zo extends Yo{decorate(){this.reactEl.classList.add("ba-Layer--deselect"),this.reactEl.dataset.testid="ba-Layer--deselect"}render({store:e}){this.root||(this.root=Vo.createRoot(this.reactEl)),this.root.render(zo.createElement(Go.Provider,{store:e},zo.createElement(Xo,null)))}}class Jo{addListener(e,t){$r.addListener(e,t)}emit(e,...t){$r.emit(e,...t)}removeAllListeners(){$r.removeAllListeners()}removeListener(e,t){$r.removeListener(e,t)}}const Qo=require("react-intl");function ei(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ti(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?ei(Object(n),!0).forEach(function(r){t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ei(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const ri=(e="en-US")=>e.substr(0,e.indexOf("-"));window.Intl.PluralRules||(r(1624),r(8139)),window.Intl.RelativeTimeFormat||(r(1113),r(2844));const ni=ti(ti({},{"ba.annotationsClose":"Close","ba.annotationsCreateError":"We’re sorry, the annotation could not be created.","ba.annotationsLoadError":"We’re sorry, the annotations failed to load for this file.","ba.annotationsPost":"Post","ba.annotationsSave":"Save","ba.boundingBoxHighlight.viewNextReference":"View next reference","ba.boundingBoxHighlight.viewPrevReference":"View previous reference","ba.popup.reply.comment":"Comment","ba.popup.reply.field":"Type a comment","ba.popup.reply.mentionLoading":"Loading users...","ba.popup.reply.mentionSelector":"Mention a collaborator","ba.popups.cancel":"Cancel","ba.popups.drawing.addComment":"Add Comment","ba.popups.drawing.delete":"Delete","ba.popups.drawing.redo":"Redo","ba.popups.drawing.undo":"Undo","ba.popups.popupCursor.regionPrompt":"Draw a box to comment","ba.popups.popupHighlight.promoter":"Highlight and Comment","ba.popups.popupHighlight.restrictedPrompt":"Comments restricted to single page","ba.popups.popupList.prompt":"Mention someone to notify them","ba.popups.post":"Post","ba.popups.replyField.placeholder":"Type a comment..."}),{"be.accessStatsPermissionsError":"Sorry, you do not have permission to see the access stats for this file.","be.activityFeed.fullDateTime":"{time, date, full} at {time, time, short}","be.activityFeedItemApiError":"There was a problem loading the activity feed. Please refresh the page or try again later.","be.activitySidebar.activityFeed.annotationMissingError":"This comment no longer exists","be.activitySidebar.activityFeed.commentMissingError":"This comment no longer exists","be.activitySidebar.activityFeed.feedInlineErrorTitle":"Error","be.activitySidebar.activityFeed.hideReplies":"Hide replies","be.activitySidebar.activityFeed.reply":"Reply","be.activitySidebar.activityFeed.replyInThread":"Reply in thread","be.activitySidebar.activityFeed.showReplies":"See {repliesToLoadCount, plural, one {# reply} other {# replies}}","be.activitySidebar.activityFeed.taskMissingError":"This task no longer exists","be.activitySidebarFilter.status.allActivity":"All Activity","be.activitySidebarFilter.status.allComments":"All Comments","be.activitySidebarFilter.status.open":"Unresolved Comments","be.activitySidebarFilter.status.resolved":"Resolved Comments","be.activitySidebarFilter.status.tasks":"Tasks","be.add":"Add","be.additionalTab.blockedByShieldAccessPolicy":"Use of this app is blocked due to a security policy.","be.annotationThread.errorDeleteAnnotation":"There was an error deleting this item.","be.annotationThread.errorEditAnnotation":"This annotation could not be modified.","be.annotattionThread.errorFetchAnnotation":"The annotation could not be fetched.","be.api.appActivityDeleteErrorMessage":"There was an error deleting this item.","be.api.commentCreateConflictMessage":"This comment already exists.","be.api.commentCreateErrorMessage":"There was an error creating this comment.","be.api.commentDeleteErrorMessage":"There was an error deleting this comment.","be.api.commentUpdateErrorMessage":"This comment could not be modified.","be.api.repliesFetchErrorMessage":"The replies to this comment could not be loaded.","be.api.taskActionErrorTitle":"Error","be.api.taskApproveErrorMessage":"An error has occurred while approving this task. Please refresh the page and try again.","be.api.taskCompleteErrorMessage":"An error has occurred while completing this task. Please refresh the page and try again.","be.api.taskCreateErrorMessage":"An error occurred while creating this task. Please try again.","be.api.taskDeleteErrorMessage":"There was an error while deleting this task. Please refresh the page and try again.","be.api.taskGroupExceedsWarningTitle":"One or more groups can not receive this task as a group size cannot exceed the limit of {max} assignees per group.","be.api.taskRejectErrorMessage":"An error has occurred while rejecting this task. Please refresh the page and try again.","be.appActivity.altIcon":"{appActivityName} Icon","be.appActivity.deleteMenuItem":"Delete","be.appActivity.deletePrompt":"Are you sure you want to permanently delete this app activity?","be.back":"Back","be.bookmark":"Bookmark","be.boxEditBlacklistedError":"This file cannot be opened locally","be.boxEditErrorBlockedByPolicy":"Local editing of this content has been disabled based on an access policy","be.boxToolsInstallMessage":"Install {boxTools} to open this file on your desktop","be.cancel":"Cancel","be.choose":"Choose","be.close":"Close","be.collaboratedFolder":"Collaborated Folder","be.collapse":"Collapse","be.contentInsights.contentAnalyticsErrorText":"There was a problem loading content insights. Please try again.","be.contentInsights.contentAnalyticsPermissionError":"Oops! You no longer have access to view content insights.","be.contentInsights.contentInsightsTitle":"Content Insights","be.contentInsights.downloadGraphLabel":"Chart displaying the number of downloads over the selected time period","be.contentInsights.downloadGraphType":"DOWNLOADS","be.contentInsights.openContentInsightsButton":"See Details","be.contentInsights.peopleGraphLabel":"Chart displaying the number of users over the selected time period","be.contentInsights.peopleTitle":"PEOPLE","be.contentInsights.previewGraphLabel":"Chart displaying the number of previews over the selected time period","be.contentInsights.previewGraphType":"PREVIEWS","be.contentInsights.trendDown":"Trending down","be.contentInsights.trendMonth":"PAST MONTH","be.contentInsights.trendThreeMonths":"PAST 3 MONTHS","be.contentInsights.trendUp":"Trending up","be.contentInsights.trendWeek":"PAST WEEK","be.contentInsights.trendYear":"PAST YEAR","be.contentSharing.badRequestError":"The request for this item was malformed.","be.contentSharing.collaboratorsLoadingError":"Could not retrieve collaborators for this item.","be.contentSharing.getContactsError":"Could not retrieve contacts.","be.contentSharing.loadingError":"Could not load shared link for this item.","be.contentSharing.noAccessError":"You do not have access to this item.","be.contentSharing.notFoundError":"Could not find shared link for this item.","be.contentSharing.sendInvitesError":"Could not send invites.","be.contentSharing.sendInvitesSuccess":"Successfully invited collaborators.","be.contentSharing.sharedLinkRemovalSuccess":"The shared link for this item was removed.","be.contentSharing.sharedLinkSettingsUpdateSuccess":"The shared link for this item was successfully updated.","be.contentSharing.sharedLinkUpdateError":"Could not update the shared link for this item.","be.contentSidebar.activityFeed.annotationActivity.annotationActivityDeleteMenuItem":"Delete","be.contentSidebar.activityFeed.annotationActivity.annotationActivityDeletePrompt":"Are you sure you want to permanently delete this comment?","be.contentSidebar.activityFeed.annotationActivity.annotationActivityEditMenuItem":"Modify","be.contentSidebar.activityFeed.annotationActivity.annotationActivityPostedFullDateTime":"{time, date, full} at {time, time, short}","be.contentSidebar.activityFeed.annotationActivity.annotationActivityResolveMenuItem":"Resolve","be.contentSidebar.activityFeed.annotationActivity.annotationActivityUnresolveMenuItem":"Unresolve","be.contentSidebar.activityFeed.annotationActivityPageItem":"Page {number}","be.contentSidebar.activityFeed.annotationActivityVersionLink":"Version {number}","be.contentSidebar.activityFeed.annotationActivityVersionUnavailable":"Version Unavailable","be.contentSidebar.activityFeed.comment.commentDeleteMenuItem":"Delete","be.contentSidebar.activityFeed.comment.commentDeletePrompt":"Are you sure you want to permanently delete this comment?","be.contentSidebar.activityFeed.comment.commentEditMenuItem":"Modify","be.contentSidebar.activityFeed.comment.commentPostedFullDateTime":"{time, date, full} at {time, time, short}","be.contentSidebar.activityFeed.comment.commentResolveMenuItem":"Resolve","be.contentSidebar.activityFeed.comment.commentUnresolveMenuItem":"Unresolve","be.contentSidebar.activityFeed.comment.hideReplies":"Hide replies","be.contentSidebar.activityFeed.comment.inlineCommentAnnotationIconTitle":"Inline Comment","be.contentSidebar.activityFeed.comment.reply":"Reply","be.contentSidebar.activityFeed.comment.replyInThread":"Reply in thread","be.contentSidebar.activityFeed.comment.showReplies":"See {repliesToLoadCount, plural, one {# reply} other {# replies}}","be.contentSidebar.activityFeed.commentForm.approvalAddAssignee":"Add an assignee","be.contentSidebar.activityFeed.commentForm.approvalAddTask":"Add Task","be.contentSidebar.activityFeed.commentForm.approvalAddTaskTooltip":"Assigning a task to someone will send them a notification with the message in the comment box and allow them to approve or deny.","be.contentSidebar.activityFeed.commentForm.approvalAssignees":"Assignees","be.contentSidebar.activityFeed.commentForm.approvalDueDate":"Due Date","be.contentSidebar.activityFeed.commentForm.approvalSelectDate":"Select a date","be.contentSidebar.activityFeed.commentForm.atMentionTip":"@mention users to notify them.","be.contentSidebar.activityFeed.commentForm.atMentionTipDescription":"Use the @ symbol to mention users and use the up and down arrow keys to scroll through autocomplete suggestions.","be.contentSidebar.activityFeed.commentForm.commentCancel":"Cancel","be.contentSidebar.activityFeed.commentForm.commentLabel":"Write a comment","be.contentSidebar.activityFeed.commentForm.commentPost":"Post","be.contentSidebar.activityFeed.commentForm.commentWrite":"Write a comment","be.contentSidebar.activityFeed.commmon.showOriginalMessage":"Show Original","be.contentSidebar.activityFeed.common.activityStatusResolved":"RESOLVED","be.contentSidebar.activityFeed.common.editedMessage":" (edited)","be.contentSidebar.activityFeed.common.seeLessMessage":"See less","be.contentSidebar.activityFeed.common.seeMoreMessage":"See more","be.contentSidebar.activityFeed.common.translateMessage":"Translate","be.contentSidebar.activityFeed.task.approvalTaskAnnotationIconTitle":"Approval Task","be.contentSidebar.activityFeed.task.generalTaskAnnotationIconTitle":"General Task","be.contentSidebar.activityFeed.task.taskAnyAffordanceTooltip":"Only one assignee is required to complete this task","be.contentSidebar.activityFeed.task.taskDeleteMenuItem":"Delete task","be.contentSidebar.activityFeed.task.taskDeletePrompt":"Are you sure you want to permanently delete this task?","be.contentSidebar.activityFeed.task.taskEditMenuItem":"Modify task","be.contentSidebar.activityFeed.task.taskMultipleFilesAffordanceTooltip":"There are multiple files associated with this task","be.contentSidebar.activityFeed.taskForm.taskAnyCheckboxLabel":"Only one assignee is required to complete this task","be.contentSidebar.activityFeed.taskForm.taskAnyInfoGroupTooltip":"Selecting this option will require only one assignee to complete this task. This will include assignees across all groups.","be.contentSidebar.activityFeed.taskForm.taskAnyInfoTooltip":"By default, all assignees are required to take action before a task is complete. Selecting this option will require only one assignee to complete this task.","be.contentSidebar.activityFeed.taskForm.taskApprovalAssigneeRemovalWarningMessage":"Unable to remove assignee(s) because the task is now approved.","be.contentSidebar.activityFeed.taskForm.taskCreateErrorTitle":"Error","be.contentSidebar.activityFeed.taskForm.taskCreateGroupLabel":"Group","be.contentSidebar.activityFeed.taskForm.taskEditWarningTitle":"Task Updated with Errors","be.contentSidebar.activityFeed.taskForm.taskGeneralAssigneeRemovalWarningMessage":"Unable to remove assignee(s) because the task is now completed.","be.contentSidebar.activityFeed.taskForm.taskGroupExceedsWarningTitle":"Exceeded max assignees per group","be.contentSidebar.activityFeed.taskForm.taskUpdateErrorMessage":"An error occurred while modifying this task. Please try again.","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormCancelLabel":"Cancel","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormDueDateLabel":"Due Date","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormMessageLabel":"Message","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormSelectAssigneesLabel":"Select Assignees","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormSubmitLabel":"Create","be.contentSidebar.activityFeed.taskForm.tasksEditTaskFormSubmitLabel":"Update","be.contentSidebar.activityFeed.taskNew.taskAssignmentCompleted":"Completed","be.contentSidebar.activityFeed.taskNew.taskCollaboratorLoadErrorMessage":"An error has occurred while loading collaborators for this task. Please try again.","be.contentSidebar.activityFeed.taskNew.taskDueDateLabel":"Due: {date}","be.contentSidebar.activityFeed.taskNew.taskFeedStatusDue":"DUE {dateTime}","be.contentSidebar.activityFeed.taskNew.taskShowLessAssignees":"Show Less","be.contentSidebar.activityFeed.taskNew.taskShowMoreAssignees":"Show {additionalAssigneeCount} More","be.contentSidebar.activityFeed.taskNew.taskShowMoreAssigneesOverflow":"{additionalAssigneeCount, plural, one {Show #+ More} other {Show #+ More}}","be.contentSidebar.activityFeed.taskNew.tasksFeedApproveAction":"Approve","be.contentSidebar.activityFeed.taskNew.tasksFeedApprovedLabel":"Approved","be.contentSidebar.activityFeed.taskNew.tasksFeedApprovedUppercaseLabel":"APPROVED","be.contentSidebar.activityFeed.taskNew.tasksFeedAssigneeListTitle":"Assignees","be.contentSidebar.activityFeed.taskNew.tasksFeedCompleteAction":"Mark as Complete","be.contentSidebar.activityFeed.taskNew.tasksFeedCompletedLabel":"Completed","be.contentSidebar.activityFeed.taskNew.tasksFeedCompletedUppercaseLabel":"COMPLETED","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineApproval":"{user} assigned an Approval Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineApprovalCurrentUser":"{user} assigned you an Approval Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineGeneral":"{user} assigned a Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineGeneralCurrentUser":"{user} assigned you a Task","be.contentSidebar.activityFeed.taskNew.tasksFeedInProgressLabel":"In Progress","be.contentSidebar.activityFeed.taskNew.tasksFeedInProgressUppercaseLabel":"IN PROGRESS","be.contentSidebar.activityFeed.taskNew.tasksFeedMoreAssigneesLabel":"See all assignees","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectAction":"Reject","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectedLabel":"Rejected","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectedUppercaseLabel":"REJECTED","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusApproved":"Approved {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusCompleted":"Completed {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusRejected":"Rejected {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedViewDetailsAction":"View Task Details","be.contentSidebar.addTask":"Add Task","be.contentSidebar.addTask.approval":"Approval Task","be.contentSidebar.addTask.approval.description":"Assignees will be responsible for approving or rejecting tasks","be.contentSidebar.addTask.approval.title":"Create Approval Task","be.contentSidebar.addTask.general":"General Task","be.contentSidebar.addTask.general.description":"Assignees will be responsible for marking tasks as complete","be.contentSidebar.addTask.general.title":"Create General Task","be.contentSidebar.boxSignFtuxBody":"Sign documents or send signature requests, right from where your content lives","be.contentSidebar.boxSignFtuxTitle":"Box Sign - Secure, seamless e-signatures in Box","be.contentSidebar.boxSignRequest":"Request Signature","be.contentSidebar.boxSignRequestSignature":"Request Signature","be.contentSidebar.boxSignSecurityBlockedTooltip":"This action is unavailable due to a security policy.","be.contentSidebar.boxSignSignMyself":"Sign Myself","be.contentSidebar.boxSignSignature":"Sign","be.contentSidebar.boxSignWatermarkBlockedTooltip":"This action is unavailable, because the file is watermarked.","be.contentSidebar.editTask.approval.title":"Modify Approval Task","be.contentSidebar.editTask.general.title":"Modify General Task","be.copy":"Copy","be.create":"Create","be.createDialogErrorInUse":"A folder with the same name already exists.","be.createDialogErrorInvalid":"This is an invalid folder name.","be.createDialogErrorTooLong":"This folder name is too long.","be.createDialogLabel":"New Folder","be.createDialogText":"Please enter a name.","be.currentUserErrorHeaderMessage":"Something went wrong when fetching the current user.","be.dateASC":"Date: Oldest → Newest","be.dateDESC":"Date: Newest → Oldest","be.defaultErrorMaskHeaderMessage":"We’re sorry, something went wrong.","be.defaultErrorMaskSubHeaderMessage":"Please refresh the page or try again later.","be.defaultInlineErrorContentMessage":"Please try again later.","be.defaultOpenWithDescription":"Open this file with a partner service","be.defaultSkill":"Skill Card","be.delete":"Delete","be.deleteDialogFileText":"Are you sure you want to delete {name}?","be.deleteDialogFolderText":"Are you sure you want to delete {name} and all its contents?","be.deleteDialogLabel":"Confirm Delete","be.description":"Description","be.descriptionPlaceholder":"Enter a description","be.docGenSidebar.docGenTags":"Doc Gen Tags","be.docGenSidebar.emptyTags":"This document has no tags","be.docGenSidebar.errorTags":"We couldn't load the tags","be.docGenSidebar.imageTags":"Image tags","be.docGenSidebar.refreshButton":"Refresh","be.docGenSidebar.refreshPrompt":"Please refresh the list.","be.docGenSidebar.textTags":"Text tags","be.download":"Download","be.drawAnnotation":"Drawing annotation mode","be.editLabel":"Edit","be.emptyOpenWithDescription":"No integrations are available for this file","be.error":"Error","be.errorBreadcrumb":"Error","be.errorOccured":"An error occurred","be.errorOpenWithDescription":"Opening this file with other services is currently unavailable","be.errorState":"A network error has occurred while trying to load.","be.executeIntegrationOpenWithErrorHeader":"We’re sorry, this integration is currently unavailable.","be.executeIntegrationOpenWithErrorSubHeader":"Please try again later.","be.expand":"Expand","be.externalFolder":"External Folder","be.faceSkill":"Faces","be.feedbackCtaText":"Click to provide feedback","be.feedbackFormDescription":"Beta Feedback Form","be.file":"File","be.fileAccessStatsErrorHeaderMessage":"Something went wrong when fetching the access stats.","be.fileClassificationErrorHeaderMessage":"Something went wrong when fetching classification.","be.fileDescriptionInlineErrorTitleMessage":"Something went wrong when saving the description.","be.fileRequestDisplayName":"File Request","be.folderState":"There are no items in this folder.","be.getVersionInfo":"Get version information","be.gridView":"Switch to Grid View","be.gridView.columnSize":"Column size","be.gridView.decreaseColumnSize":"Decrease column size","be.gridView.increaseColumnSize":"Increase column size","be.in":"In","be.interactedDate":"Last accessed on {date}","be.itemCreated":"Created","be.itemInteracted":"Last Accessed","be.itemModified":"Modified","be.itemName":"Name","be.itemOwner":"Owner","be.itemSize":"Size","be.itemUploader":"Uploader","be.keywordSkill":"Topics","be.keywordsAppliedList":"Keywords were applied","be.keywordsList":"Keywords: {words}","be.listView":"Switch to List View","be.loadingState":"Please wait while the items load...","be.logo":"Logo","be.max":"max","be.messageCenter.all":"All","be.messageCenter.boxEducation":"Box Education","be.messageCenter.errorFetchingPosts":"Sorry, we are having trouble showing posts at the moment. It may help to refresh the page.","be.messageCenter.events":"Events","be.messageCenter.noPosts":"There are no posts for this category at the moment.","be.messageCenter.previewError":"Sorry, we're having trouble showing this image. ","be.messageCenter.product":"Product","be.messageCenter.title":"What's New","be.metadataState":"There are no items in this folder.","be.modifiedDate":"Modified {date}","be.modifiedDateBy":"Modified {date} by {name}","be.moreOptions":"More options","be.nameASC":"Name: A → Z","be.nameDESC":"Name: Z → A","be.nameDate":"{date} by {name}","be.newFolder":"New Folder","be.nextFile":"Next File","be.nextSegment":"Next Segment","be.noActivity":"No activity to show","be.noActivityAnnotationPrompt":"Hover over the preview and use the controls at the bottom to annotate the file.","be.noActivityCommentPrompt":"Comment and @mention people to notify them.","be.open":"Open","be.pagination.nextPage":"Next Page","be.pagination.pageStatus":"{pageNumber} of {pageCount}","be.pagination.previousPage":"Previous Page","be.personalFolder":"Personal Folder","be.pointAnnotation":"Point annotation mode","be.preview":"Preview","be.previewError":"We’re sorry, the preview didn’t load. Please refresh the page.","be.previewErrorBlockedByPolicy":"Your access to this content is restricted due to a security policy.","be.previewUpdate":"A new version of this file is available.","be.previousFile":"Previous File","be.previousSegment":"Previous Segment","be.print":"Print","be.priorCollaborator":"A Prior Collaborator","be.recentsBreadcrumb":"Recents","be.recentsState":"There are no recent items yet.","be.reload":"Reload","be.remove":"Remove","be.rename":"Rename","be.renameDialogErrorInUse":"An item with the same name already exists.","be.renameDialogErrorInvalid":"This name is invalid.","be.renameDialogErrorTooLong":"This name is too long.","be.renameDialogLabel":"Rename","be.renameDialogText":"Please enter a new name for {name}:","be.resume":"Resume","be.resumeAll":"Resume All","be.retry":"Retry","be.rootBreadcrumb":"All Files","be.save":"Save","be.searchBreadcrumb":"Search Results","be.searchPlaceholder":"Search files and folders","be.searchState":"Sorry, we couldn’t find what you’re looking for.","be.selected":"{count} Selected","be.selectedBreadcrumb":"Selected Items","be.selectedState":"You haven’t selected any items yet.","be.share":"Share","be.shareAccessCollab":"Access: People in this folder","be.shareAccessCompany":"People in this company","be.shareAccessNone":"No shared link","be.shareAccessOpen":"Access: People with the link","be.shareAccessRemove":"Remove shared link","be.shareDialogLabel":"Share","be.shareDialogNone":"None","be.shareDialogText":"Shared Link:","be.sidebarAccessStats":"Access Stats","be.sidebarActivityTitle":"Activity","be.sidebarContentInsights":"Content Insights","be.sidebarDetailsTitle":"Details","be.sidebarDocGenTitle":"Doc Gen Tags","be.sidebarDocGenTooltip":"Box Doc Gen","be.sidebarFileFetchingErrorContent":"An error has occurred while fetching your Box file. Please refresh the page and try again.","be.sidebarHide":"Hide Sidebar","be.sidebarMetadataEditingErrorContent":"An error has occurred while updating metadata. Please refresh the page and try again.","be.sidebarMetadataFetchingErrorContent":"An error has occurred while fetching metadata. Please refresh the page and try again.","be.sidebarMetadataTitle":"Metadata","be.sidebarNavLabel":"Sidebar","be.sidebarProperties":"File Properties","be.sidebarShow":"Show Sidebar","be.sidebarSkillsErrorContent":"An error has occurred while updating skills. Please refresh the page and try again.","be.sidebarSkillsErrorTitle":"Skills Error","be.sidebarSkillsTitle":"Skills","be.sidebarVersions.current":"Current Version","be.sidebarVersions.delete":"Delete","be.sidebarVersions.deleteError":"File version could not be deleted.","be.sidebarVersions.deletedBy":"Deleted by {name}","be.sidebarVersions.disabledByRetention":"Disabled by retention policy","be.sidebarVersions.download":"Download","be.sidebarVersions.downloadError":"File version could not be downloaded.","be.sidebarVersions.empty":"No prior versions are available for this file.","be.sidebarVersions.fetchError":"File versions could not be retrieved.","be.sidebarVersions.fileRequestDisplayName":"File Request","be.sidebarVersions.notAvailable":"Sorry, version history is not available with your current account plan. To access versioning, select from one of our paid plans.","be.sidebarVersions.preview":"Preview","be.sidebarVersions.priorWeek":"Last Week","be.sidebarVersions.promote":"Make Current","be.sidebarVersions.promoteError":"File version could not be made current.","be.sidebarVersions.promotedBy":"Promoted from v{versionPromoted} by {name}","be.sidebarVersions.restore":"Restore","be.sidebarVersions.restoreError":"File version could not be restored.","be.sidebarVersions.restoredBy":"Restored by {name}","be.sidebarVersions.serverError":"Server Error","be.sidebarVersions.thisMonth":"This Month","be.sidebarVersions.title":"Version History","be.sidebarVersions.today":"Today","be.sidebarVersions.toggle":"Toggle Actions Menu","be.sidebarVersions.upgradeButton":"Upgrade","be.sidebarVersions.upgradeLink":"Upgrade Now","be.sidebarVersions.uploadedBy":"Uploaded by {name}","be.sidebarVersions.versionLimitExceeded":"You are limited to the last {versionLimit, number} {versionLimit, plural, one {version} other {versions}}.","be.sidebarVersions.versionMaxEntries":"Version history is limited to the last {maxVersions} entries.","be.sidebarVersions.versionNumberBadge":"V{versionNumber}","be.sidebarVersions.versionNumberLabel":"Version number {versionNumber}","be.sidebarVersions.versionRetentionDelete":"Will be deleted {time} by retention policy.","be.sidebarVersions.versionRetentionIndefinite":"Retained indefinitely by retention policy.","be.sidebarVersions.versionRetentionRemove":"Retention policy expires on {time}.","be.sidebarVersions.versionUpsell":"Sorry, version history is not available with your current account plan. To access versioning, select from one of our paid plans.","be.sidebarVersions.versionUserUnknown":"Unknown","be.sidebarVersions.yesterday":"Yesterday","be.sizeASC":"Size: Smallest → Largest","be.sizeDESC":"Size: Largest → Smallest","be.skillFileProcessingError":"We’re sorry, something went wrong with processing the file.","be.skillInvalidFileExtensionError":"We’re sorry, no skills information was found. This file extension is currently not supported.","be.skillInvalidFileSizeError":"We’re sorry, no skills information was found. This file size is currently not supported.","be.skillInvokedStatus":"We’re preparing to process your file - please hold!","be.skillNoInfoFoundError":"We’re sorry, no skills information was found.","be.skillPendingStatus":"We’re working on processing your file - please hold!","be.skillUnknownError":"Something went wrong with running this skill or fetching its data.","be.sort":"Sort","be.statusSkill":"Status","be.today":"today","be.topicsSkill":"Topics","be.transcriptEdit":"Click any section to edit.","be.transcriptSkill":"Transcript","be.upload":"Upload","be.uploadEmptyFileInput":"Browse your device","be.uploadEmptyFolderInput":"Select Folders","be.uploadEmptyWithFolderUploadDisabled":"Drag and drop files","be.uploadEmptyWithFolderUploadEnabled":"Drag and drop files and folders","be.uploadError":"A network error has occurred while trying to upload.","be.uploadErrorTooManyFiles":"You can only upload up to {fileLimit} file(s) at a time.","be.uploadInProgress":"Drag and drop to add additional files","be.uploadNoDragDrop":"Select files from your device","be.uploadOptions":"{option1} or {option2}","be.uploadSuccess":"Success! Your files have been uploaded.","be.uploadSuccessFileInput":"Select More Files","be.uploadSuccessFolderInput":"Select More Folders","be.uploadsCancelButtonTooltip":"Cancel this upload","be.uploadsDefaultErrorMessage":"Something went wrong with the upload. Please try again.","be.uploadsFileSizeLimitExceededErrorMessage":"File size exceeds the folder owner’s file size limit","be.uploadsFileSizeLimitExceededErrorMessageForUpgradeCta":"This file exceeds your plan’s upload limit. Upgrade now to store larger files.","be.uploadsFileSizeLimitExceededUpgradeMessageForUpgradeCta":"Upgrade","be.uploadsItemNameInUseErrorMessage":"A file with this name already exists.","be.uploadsManagerUploadComplete":"Completed","be.uploadsManagerUploadFailed":"Some Uploads Failed","be.uploadsManagerUploadInProgress":"Uploading","be.uploadsManagerUploadPrompt":"Drop files on this page to upload them into this folder.","be.uploadsOneOrMoreChildFoldersFailedToUploadMessage":"One or more child folders failed to upload.","be.uploadsPackageUploadErrorMessage":"Failed to upload package file. Please retry by saving as a single file.","be.uploadsPendingFolderSizeLimitErrorMessage":"Pending app folder size limit exceeded","be.uploadsProvidedFolderNameInvalidMessage":"Provided folder name, {name}, could not be used to create a folder.","be.uploadsRetryButtonTooltip":"Retry upload","be.uploadsStorageLimitErrorMessage":"Account storage limit reached","be.versionDeleted":"{name} deleted v{version_number}","be.versionMultipleUsersUploaded":"{numberOfCollaborators} collaborators uploaded v{versions}","be.versionPromoted":"{name} promoted v{version_promoted} to v{version_number}","be.versionRestored":"{name} restored v{version_number}","be.versionUploadCollapsed":"{name} uploaded v{versions}","be.versionUploaded":"{name} uploaded v{version_number}","be.yesterday":"yesterday","boxui.accessStats.accessStatsComments":"Comments","boxui.accessStats.accessStatsDownloads":"Downloads","boxui.accessStats.accessStatsEdits":"Edits","boxui.accessStats.accessStatsPreviews":"Previews","boxui.accessStats.accessStatsViewDetails":"View Details","boxui.accessStats.accessStatsViews":"Views","boxui.advancedContentInsights.advancedContentInsightsDescription":"Get actionable insights into how viewers are engaging with this content. Measure average time spent, page-by-page engagement, per person and per visit details.","boxui.advancedContentInsights.advancedContentInsightsTitleDisabled":"Activate Engagement Insights","boxui.advancedContentInsights.advancedContentInsightsTitleEnabled":"Engagement Insights is activated","boxui.avatar.externalUser":"External user","boxui.badges.beta":"BETA","boxui.badges.trial":"TRIAL","boxui.badges.upgrade":"UPGRADE","boxui.base.nextMonth":"Next Month","boxui.base.previousMonth":"Previous Month","boxui.breadcrumb.breadcrumbLabel":"Breadcrumb","boxui.categorySelector.label.more":"More","boxui.checkboxTooltip.iconInfoText":"Info","boxui.classification.add":"Add","boxui.classification.classification":"Classification","boxui.classification.classificationDarkBlue":"Dark Blue","boxui.classification.classificationGreen":"Green","boxui.classification.classificationGrey":"Grey","boxui.classification.classificationLightBlue":"Light Blue","boxui.classification.classificationOrange":"Orange","boxui.classification.classificationPurple":"Purple","boxui.classification.classificationRed":"Red","boxui.classification.classificationYellow":"Yellow","boxui.classification.definition":"Definition","boxui.classification.edit":"Edit","boxui.classification.importedBy":"Imported from {modifiedBy} on {modifiedAt}","boxui.classification.missing":"Not classified","boxui.classification.modifiedBy":"Applied by {modifiedBy} on {modifiedAt}","boxui.classification.modifiedByLabel":"Classification Label","boxui.collaboratorAvatars.collaboration.pendingCollabText":"Pending","boxui.collaboratorAvatars.collaboratorAvatarsLabel":"Shared with","boxui.collaboratorAvatars.collaborators.expirationTooltipText":"Access expires on {date}","boxui.collaboratorAvatars.collaborators.externalCollabTooltipText":"{email} is from outside of your company","boxui.collaboratorAvatars.manageAllLinkText":"Manage All","boxui.collaboratorAvatars.viewAdditionalPeopleText":"View additional people","boxui.collapsiblesidebar.collapseBtnLabel":"Collapse","boxui.collapsiblesidebar.expandBtnLabel":"Expand","boxui.contentAnswers.ask":"Ask","boxui.contentAnswers.askDisabledTooltip":"You can submit another question once Box AI has finished responding","boxui.contentAnswers.askQuestionPlaceholder":"Ask anything about this document","boxui.contentAnswers.contentAnswersTitle":"Box AI","boxui.contentAnswers.defaultTooltip":"Get instant answers about this document using Box AI","boxui.contentAnswers.disabledTooltipFileNotCompatible":"Box AI is not currently supported for this file type","boxui.contentAnswers.hasQuestionsTooltip":"Return to Box AI","boxui.contentAnswers.inlineErrorText":"The Box AI service was unavailable.","boxui.contentAnswers.intelligenceUnavailableDescription":"The Box AI service is not responding.","boxui.contentAnswers.intelligenceUnavailableHeading":"Box AI is unavailable","boxui.contentAnswers.intelligenceUnavailableTryAgain":"Please try again later.","boxui.contentAnswers.maxCharactersReachedError":"Maximum of {characterLimit} characters reached","boxui.contentAnswers.retryResponse":"Retry","boxui.contentAnswers.welcomeAskQuestionText":"Ask questions about {name}","boxui.contentAnswers.welcomeClearChatText":"This chat will be cleared when you close this document","boxui.contentAnswers.welcomeMessageTitle":"Welcome to Box AI","boxui.contentExplorer.breadcrumb":"Breadcrumb","boxui.contentExplorer.cancel":"Cancel","boxui.contentExplorer.choose":"Choose","boxui.contentExplorer.clickToGoBack":"Click to go back","boxui.contentExplorer.clickToViewPath":"Click to view path","boxui.contentExplorer.copy":"Copy","boxui.contentExplorer.emptyFolder":"There are no subfolders in this folder.","boxui.contentExplorer.emptySearch":"Sorry, we couldn't find what you're looking for.","boxui.contentExplorer.filepath":"File path","boxui.contentExplorer.folderTreeBreadcrumbsText":"{folderName} ({totalItems})","boxui.contentExplorer.includeSubfolders":"Include Subfolders","boxui.contentExplorer.move":"Move","boxui.contentExplorer.name":"Name","boxui.contentExplorer.newFolder":"New Folder","boxui.contentExplorer.numFoldersSelected":"{numSelected, plural, =0 {0 folders selected} one {1 folder selected} other {# folders selected} } ","boxui.contentExplorer.numItemsSelected":"{numSelected, plural, =0 {0 items selected} one {1 item selected} other {# items selected} } ","boxui.contentExplorer.numSelected":"{numSelected} Selected","boxui.contentExplorer.result":"{itemsCount} result","boxui.contentExplorer.results":"{itemsCount} results","boxui.contentExplorer.searchPlaceholder":"Search","boxui.contentExplorer.searchResults":"Search Results","boxui.contentExplorer.selectAll":"Select All","boxui.contentExplorer.selectItem":"Select {name}","boxui.contentexplorer.newFolder.forbidden":"You do not have permission to create a folder here.","boxui.core.cancel":"Cancel","boxui.core.close":"Close","boxui.core.copied":"Copied","boxui.core.copy":"Copy","boxui.core.done":"Done","boxui.core.guidetooltip.navigation":"{currentStepIndex} of {totalNumSteps}","boxui.core.hotkeys.altKey":"Alt","boxui.core.hotkeys.ctrlKey":"Ctrl","boxui.core.hotkeys.enterKey":"Enter","boxui.core.hotkeys.escKey":"Esc","boxui.core.hotkeys.hotkeyModalTitle":"Keyboard Shortcuts","boxui.core.hotkeys.hotkeySequence":"{key1} then {key2}","boxui.core.hotkeys.shiftKey":"Shift","boxui.core.hotkeys.spacebarKey":"Spacebar","boxui.core.okay":"Okay","boxui.core.optional":"optional","boxui.core.save":"Save","boxui.core.selection.deselectAllDescription":"Deselect all items","boxui.core.selection.downDescription":"Select next item","boxui.core.selection.selectAllDescription":"Select all items","boxui.core.selection.shiftDownDescription":"Add next item to current selection","boxui.core.selection.shiftUpDescription":"Add previous item to current selection","boxui.core.selection.shiftXDescription":"Select current item","boxui.core.selection.upDescription":"Select previous item","boxui.core.send":"Send","boxui.datePicker.chooseDate":"Choose Date","boxui.datePicker.dateClearButton":"Clear Date","boxui.datePicker.dateInputMaxError":"Please enter a date before {maxLocaleDate}","boxui.datePicker.dateInputMinError":"Please enter a date after {minLocaleDate}","boxui.datePicker.dateInputRangeError":"Please enter a date between {minLocaleDate} and {maxLocaleDate}","boxui.datePicker.iconAlertText":"Invalid Date","boxui.draftjs.mentionSelector.noUsersFound":"No users found","boxui.draftjs.mentionSelector.startMention":"Mention someone to notify them","boxui.draftjs.mentionSelector.usersFound":"{usersCount, plural, one {one user found} other {{usersCount} users found}}","boxui.errorMask.iconSadCloudText":"Sad Box Cloud","boxui.features.VirtualizedTableRenderers.allFiles":"All Files","boxui.features.VirtualizedTableRenderers.anonymousUser":"Anonymous User","boxui.features.VirtualizedTableRenderers.externalFile":"External File","boxui.features.VirtualizedTableRenderers.externalFolder":"External Folder","boxui.features.VirtualizedTableRenderers.lastModifiedBy":"{lastModified} by {user}","boxui.features.VirtualizedTableRenderers.unknownUser":"Unknown User","boxui.itemDetails.bookmarkExpiration":"This bookmark will be deleted on {expiration}.","boxui.itemDetails.created":"Created","boxui.itemDetails.deleted":"Deleted","boxui.itemDetails.description":"Description","boxui.itemDetails.descriptionPlaceholder":"Enter a description","boxui.itemDetails.enterpriseOwner":"Enterprise Owner","boxui.itemDetails.fileExpiration":"This file will be deleted on {expiration}.","boxui.itemDetails.folderExpiration":"This folder will be deleted on {expiration}.","boxui.itemDetails.modified":"Modified","boxui.itemDetails.owner":"Owner","boxui.itemDetails.retentionPolicyDescription":"Policy","boxui.itemDetails.retentionPolicyExpiration":"Policy Expiration","boxui.itemDetails.retentionPolicyExtend":"Extend","boxui.itemDetails.savedVersions":"{versionCount, number} Saved Versions","boxui.itemDetails.sharedLinkExpiration":"This shared link will be disabled on {expiration}.","boxui.itemDetails.size":"Size","boxui.itemDetails.uploader":"Uploader","boxui.itemDetails.url":"URL","boxui.itemDetails.urlPlaceholder":"Enter a valid url","boxui.media.menuButtonArialLabel":"Options","boxui.metadataInstanceEditor.allAttributesAreHidden":"All attributes in this template have been hidden.","boxui.metadataInstanceEditor.applyCascadePolicyText":"Apply template and its values to all new and existing items in this folder and its subfolders.","boxui.metadataInstanceEditor.cannotApplyCascadePolicyText":"Cascade policy cannot be applied to custom metadata at this time.","boxui.metadataInstanceEditor.cascadePolicyLearnMore":"Learn more","boxui.metadataInstanceEditor.cascadePolicyModeQuestion":"In the case of conflicts when applying this template and its values to existing items, what would you like to do? This is a one time action.","boxui.metadataInstanceEditor.cascadePolicyOverwriteMode":"Overwrite all existing template values","boxui.metadataInstanceEditor.cascadePolicySkipMode":"Skip and keep all existing template values","boxui.metadataInstanceEditor.customAdd":"Add","boxui.metadataInstanceEditor.customErrorDuplicateKey":"A field with that key already exists.","boxui.metadataInstanceEditor.customErrorInternalKey":"Keys cannot begin with a $.","boxui.metadataInstanceEditor.customErrorRequired":"A key is required.","boxui.metadataInstanceEditor.customKey":"Key","boxui.metadataInstanceEditor.customKeyPlaceholder":"e.g. Order Number","boxui.metadataInstanceEditor.customNewField":"New Field","boxui.metadataInstanceEditor.customNewFieldMessage":"Add a custom metadata field. Other people will be able to see and search for this field.","boxui.metadataInstanceEditor.customRemove":"Remove","boxui.metadataInstanceEditor.customTitle":"Custom Metadata","boxui.metadataInstanceEditor.customValue":"Value","boxui.metadataInstanceEditor.customValuePlaceholder":"e.g. 42","boxui.metadataInstanceEditor.editTooltip":"Edit Metadata","boxui.metadataInstanceEditor.enableCascadePolicy":"Enable Cascade Policy","boxui.metadataInstanceEditor.fileMetadataRemoveCustomTemplateConfirm":"Are you sure you want to delete this custom metadata and all of its values from this file?","boxui.metadataInstanceEditor.fileMetadataRemoveTemplateConfirm":'Are you sure you want to delete "{metadataName}" and all of its values from this file?',"boxui.metadataInstanceEditor.folderMetadataRemoveCustomTemplateConfirm":"Are you sure you want to delete this custom metadata and all of its values? Any metadata template values already applied to files in this folder will not be deleted.","boxui.metadataInstanceEditor.folderMetadataRemoveTemplateConfirm":'Are you sure you want to delete "{metadataName}" and all of its values? Any metadata template values already applied to files in this folder will not be deleted.',"boxui.metadataInstanceEditor.invalidValue":"Invalid Input!","boxui.metadataInstanceEditor.metadataCancel":"Cancel","boxui.metadataInstanceEditor.metadataCascadePolicyEnabledInfo":"This template and its values are being cascaded to all items in this folder and its subfolders.","boxui.metadataInstanceEditor.metadataSave":"Save","boxui.metadataInstanceEditor.noAttributesForTemplate":"There are no attributes in this template.","boxui.metadataInstanceEditor.noMetadata":"No Metadata Applied","boxui.metadataInstanceEditor.noMetadataAddTemplate":"Click 'Add' in the top right to add metadata to this item","boxui.metadataInstanceEditor.operationNotImmediate":"This operation is not immediate and may take some time.","boxui.metadataInstanceEditor.removeTemplate":"Remove","boxui.metadataInstanceEditor.templateAdd":"Add","boxui.metadataInstanceEditor.templateSearchPlaceholder":"Search all templates","boxui.metadataInstanceEditor.templatesFetchFailed":"Sorry! We could not fetch templates. Please contact your administrator","boxui.metadataInstanceEditor.templatesNoRemainingTemplates":"All templates have been added","boxui.metadataInstanceEditor.templatesNoResults":"No Results","boxui.metadataInstanceEditor.templatesServerHasNoTemplates":"Zero templates","boxui.metadataInstanceEditor.templatesTitle":"Templates","boxui.metadataInstanceFields.customAdd":"Add","boxui.metadataInstanceFields.customRemove":"Remove","boxui.metadataInstanceFields.fieldMultiSelectValue":"Select Values","boxui.metadataInstanceFields.fieldNoValue":"No Value","boxui.metadataInstanceFields.fieldSelectValue":"Select Value","boxui.metadataInstanceFields.fieldSetDate":"Set Date","boxui.metadataInstanceFields.fieldSetValue":"Set Value","boxui.metadataInstanceFields.invalidMetadataFieldType":"Invalid metadata field type!","boxui.modalDialog.backModalText":"Back","boxui.modalDialog.closeModalText":"Close Modal","boxui.newFolderModal.cancel":"Cancel","boxui.newFolderModal.create":"Create","boxui.newFolderModal.folderName.label":"Folder Name","boxui.newFolderModal.folderName.placeholder":"My New Folder","boxui.newFolderModal.title":'Create a New Folder in "{parentFolderName}"',"boxui.notification.clearNotification":"Clear Notification","boxui.presence.accessedInTheLastMinute":"Viewed less than a minute ago","boxui.presence.activeNow":"Active now","boxui.presence.commentedIntheLastMinute":"Commented less than a minute ago","boxui.presence.getLinkButton":"Get Link","boxui.presence.inviteButton":"Invite People","boxui.presence.modifiedIntheLastMinute":"Edited less than a minute ago","boxui.presence.previewPresenceFlyoutAccessStatsLink":"See all activity","boxui.presence.previewPresenceFlyoutActivityCTA":"View Recent Activity","boxui.presence.previewPresenceFlyoutCopy":"Quickly see who has commented on, edited, or viewed this file.","boxui.presence.previewedIntheLastMinute":"Previewed less than a minute ago","boxui.presence.recentActivity":"Recent Activity","boxui.presence.timeSinceLastAccessed":"Viewed {timeAgo}","boxui.presence.timeSinceLastCommented":"Commented {timeAgo}","boxui.presence.timeSinceLastModified":"Edited {timeAgo}","boxui.presence.timeSinceLastPreviewed":"Previewed {timeAgo}","boxui.presence.toggleButtonLabel":"Recent Activity","boxui.queryBar.addFilterButtonText":"+ Add Filter","boxui.queryBar.applyFiltersButtonText":"Apply","boxui.queryBar.columnsButtonText":"Columns","boxui.queryBar.columnsHiddenButtonText":"{count, plural, one {1 Column Hidden} other {{count} Columns Hidden}}","boxui.queryBar.connectorAndText":"AND","boxui.queryBar.connectorOrText":"OR","boxui.queryBar.connectorWhereText":"WHERE","boxui.queryBar.filtersButtonText":"Modify Filters","boxui.queryBar.metadataViewTemplateListHeaderTitle":"METADATA TEMPLATES","boxui.queryBar.multipleFiltersButtonText":"{number} Filters","boxui.queryBar.noFiltersAppliedText":"No Filters Applied","boxui.queryBar.noTemplatesText":"No Templates Available","boxui.queryBar.selectValuePlaceholderText":"Select value","boxui.queryBar.templatesButtonText":"Select Metadata","boxui.queryBar.templatesLoadingButtonText":"Template Name","boxui.queryBar.tooltipEnterValueError":"Please Enter a Value","boxui.queryBar.tooltipInvalidFloatError":"Please Enter a Decimal Number","boxui.queryBar.tooltipInvalidNumberError":"Please Enter an Integer","boxui.queryBar.tooltipSelectDateError":"Please Select a Date","boxui.queryBar.tooltipSelectValueError":"Please Select a Value","boxui.quickSearch.bookmark":"Bookmark","boxui.quickSearch.collaboratedFolder":"Collaborated Folder","boxui.quickSearch.externalFolder":"External Folder","boxui.quickSearch.file":"File","boxui.quickSearch.parentFolder":"Parent Folder","boxui.quickSearch.personalFolder":"Personal Folder","boxui.quickSearch.updatedText":"{date, date, medium} by {user}","boxui.quickSearch.updatedTextToday":"Today by {user}","boxui.quickSearch.updatedTextYesterday":"Yesterday by {user}","boxui.readableTime.eventTime":"{time, date, medium}","boxui.readableTime.eventTimeDate":"{time, date, medium} at {time, time, short}","boxui.readableTime.eventTimeDateShort":"{date} at {time, time, short}","boxui.readableTime.eventTimeToday":"Today at {time, time, short}","boxui.readableTime.eventTimeWeekdayLong":"{weekday}, {time, date, medium}","boxui.readableTime.eventTimeYesterday":"Yesterday at {time, time, short}","boxui.searchForm.clearButtonTitle":"Clear","boxui.searchForm.searchButtonTitle":"Search","boxui.searchForm.searchLabel":"Search query","boxui.securityCloudGame.accessibilityInstructions":"For security purposes, please drag the cloud object onto the target. You are on a {row} by {column} grid with a movable cloud object and a target area. Press spacebar to grab the cloud object, arrow keys to move, and spacebar to drop on the target.","boxui.securityCloudGame.cloudDropped":"Cloud object dropped.","boxui.securityCloudGame.cloudGrabbed":"Cloud object grabbed.","boxui.securityCloudGame.cloudObject":"Cloud object","boxui.securityCloudGame.currentPosition":"Current position: Row {row}, Column {column}.","boxui.securityCloudGame.instructions":"For security purposes, please drag the white cloud onto the dark cloud. Keyboard users: Press spacebar to grab the cloud, arrow keys to move, and spacebar to drop.","boxui.securityCloudGame.reachBottomEdge":"Reached bottom edge of grid.","boxui.securityCloudGame.reachLeftEdge":"Reached left edge of grid.","boxui.securityCloudGame.reachRightEdge":"Reached right edge of grid.","boxui.securityCloudGame.reachTopEdge":"Reached top edge of grid.","boxui.securityCloudGame.success":"Success!","boxui.securityCloudGame.target":"Target","boxui.securityCloudGame.targetInRange":"Target in range, you can drop the cloud object.","boxui.securityCloudGame.targetPosition":"Target position: Row {row}, Column {column}.","boxui.securityControls.allAppNames":"All applications: {appsList}","boxui.securityControls.appDownloadBlacklist":"Download restricted for some applications: {appNames}","boxui.securityControls.appDownloadBlacklistOverflow":"Download restricted for some applications: {appNames} +{remainingAppCount} more","boxui.securityControls.appDownloadRestricted":"Download restricted for some applications.","boxui.securityControls.appDownloadWhitelist":"Only select applications are allowed: {appNames}","boxui.securityControls.appDownloadWhitelistOverflow":"Only select applications are allowed: {appNames} +{remainingAppCount} more","boxui.securityControls.boxSignRequestRestricted":"Sign restrictions apply.","boxui.securityControls.desktopDownloadExternalOwners":"Download restricted on Box Drive, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.desktopDownloadExternalOwnersEditors":"Download restricted on Box Drive, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.desktopDownloadOwners":"Download restricted on Box Drive, except Owners/Co-Owners.","boxui.securityControls.desktopDownloadOwnersEditors":"Download restricted on Box Drive, except Owners/Co-Owners/Editors.","boxui.securityControls.downloadExternal":"Download restricted on Box Drive for external users.","boxui.securityControls.externalCollabBlock":"External collaboration restricted.","boxui.securityControls.externalCollabDomainList":"External collaboration limited to approved domains.","boxui.securityControls.mobileDownloadExternal":"Download restricted on mobile for external users.","boxui.securityControls.mobileDownloadExternalOwners":"Download restricted on mobile, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.mobileDownloadExternalOwnersEditors":"Download restricted on mobile, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.mobileDownloadOwners":"Download restricted on mobile, except Owners/Co-Owners.","boxui.securityControls.mobileDownloadOwnersEditors":"Download restricted on mobile, except Owners/Co-Owners/Editors.","boxui.securityControls.modalDescription":"Classification labels defined by your administrator can be used to label content and apply security policies.","boxui.securityControls.modalTitle":"View Classification for “{itemName}”","boxui.securityControls.securityControlsLabel":"Restrictions","boxui.securityControls.sharingCollabAndCompanyOnly":"Shared links cannot be made publicly accessible.","boxui.securityControls.sharingCollabOnly":"Shared links allowed for collaborators only.","boxui.securityControls.shortApp":"Application restrictions apply","boxui.securityControls.shortAppSign":"App and Sign restrictions apply","boxui.securityControls.shortDownload":"Download restrictions apply","boxui.securityControls.shortDownloadApp":"Download and app restrictions apply","boxui.securityControls.shortDownloadAppSign":"Download, app and Sign restrictions apply","boxui.securityControls.shortDownloadSign":"Download and Sign restrictions apply","boxui.securityControls.shortSharing":"Sharing restriction applies","boxui.securityControls.shortSharingApp":"Sharing and app restrictions apply","boxui.securityControls.shortSharingAppSign":"Sharing, app and Sign restrictions apply","boxui.securityControls.shortSharingDownload":"Sharing and download restrictions apply","boxui.securityControls.shortSharingDownloadApp":"Sharing, download and app restrictions apply","boxui.securityControls.shortSharingDownloadAppSign":"Sharing, download, app and Sign restrictions apply","boxui.securityControls.shortSharingDownloadSign":"Sharing, download and Sign restrictions apply","boxui.securityControls.shortSharingSign":"Sharing and Sign restrictions apply","boxui.securityControls.shortSign":"Sign restrictions apply","boxui.securityControls.shortWatermarking":"Watermarking applies","boxui.securityControls.viewAll":"View All","boxui.securityControls.watermarkingApplied":"Watermarking will be applied.","boxui.securityControls.webDownloadExternal":"Download restricted on web for external users.","boxui.securityControls.webDownloadExternalOwners":"Download restricted on web, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.webDownloadExternalOwnersEditors":"Download restricted on web, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.webDownloadOwners":"Download restricted on web, except Owners/Co-Owners.","boxui.securityControls.webDownloadOwnersEditors":"Download restricted on web, except Owners/Co-Owners/Editors.","boxui.select.moreInfo":"More Info","boxui.selectField.clearAll":"Clear All","boxui.selectField.noResults":"No Results","boxui.selectField.searchPlaceholder":"Search","boxui.share.accessType":"ACCESS TYPE","boxui.share.canEdit":"Can edit","boxui.share.canView":"Can view","boxui.share.coownerLevelText":"Co-owner","boxui.share.deleteTableHeaderText":"Delete","boxui.share.downloadTableHeaderText":"Download","boxui.share.editTableHeaderText":"Edit","boxui.share.editorLevelText":"Editor","boxui.share.emailSharedLink":"Email Shared Link","boxui.share.enterAtLeastOneEmail":"Enter at least one valid email","boxui.share.getLinkTableHeaderText":"Get Link","boxui.share.groupLabel":"Group","boxui.share.inviteCollaboratorsModalCancelButton":"Cancel","boxui.share.inviteCollaboratorsModalSendInvites":"Send Invites","boxui.share.inviteCollaboratorsModalTitle":"Invite to {itemName}","boxui.share.inviteFieldLabel":"Invite","boxui.share.inviteFileEditorsLabel":"Invite people to become editors of this file.","boxui.share.inviteePermissionsFieldLabel":"Invitee Permissions","boxui.share.inviteePermissionsLearnMore":"Learn More","boxui.share.message":"Message","boxui.share.messageSelectorPlaceholder":"Add a message","boxui.share.ownerTableHeaderText":"Owner","boxui.share.peopleInCompanyCanDownloadFile":"Anyone in your company with the link can view and download this file.","boxui.share.peopleInCompanyCanDownloadFolder":"Anyone in your company with the link can view this folder and download its contents.","boxui.share.peopleInCompanyCanEditFile":"Anyone in your company with the link can edit and download this file.","boxui.share.peopleInCompanyCanViewFile":"Anyone in your company with the link can view this file.","boxui.share.peopleInCompanyCanViewFolder":"Anyone in your company with the link can view this folder.","boxui.share.peopleInEnterprise":"People in {enterpriseName}","boxui.share.peopleInItemCanAccessFile":"Any collaborator on the file with the link can access this file.","boxui.share.peopleInItemCanAccessFolder":"Any collaborator on the folder with the link can access this folder.","boxui.share.peopleInItemCanDownloadFile":"Any collaborator on this file with the link can download this file.","boxui.share.peopleInItemCanDownloadFolder":"Any collaborator on this folder with the link can download this folder.","boxui.share.peopleInItemCanEditFile":"Any collaborator on this file with the link can edit this file and download its contents.","boxui.share.peopleInItemCanPreviewAndDownloadFile":"Any collaborator on this file with the link can view this file and download its contents.","boxui.share.peopleInItemCanPreviewAndDownloadFolder":"Any collaborator on this folder with the link can view this folder and download its contents.","boxui.share.peopleInItemCanPreviewFile":"Any collaborator on this file with the link can view this file.","boxui.share.peopleInItemCanPreviewFolder":"Any collaborator on this folder with the link can view this folder.","boxui.share.peopleInSpecifiedCompanyCanDownloadFile":"Anyone in {company} with the link can view and download this file.","boxui.share.peopleInSpecifiedCompanyCanDownloadFolder":"Anyone in {company} with the link can view this folder and download its contents.","boxui.share.peopleInSpecifiedCompanyCanEditFile":"Anyone in {company} with the link can edit and download this file.","boxui.share.peopleInSpecifiedCompanyCanViewFile":"Anyone in {company} with the link can view this file.","boxui.share.peopleInSpecifiedCompanyCanViewFolder":"Anyone in {company} with the link can view this folder.","boxui.share.peopleInThisFile":"People in this file","boxui.share.peopleInThisFolder":"People in this folder","boxui.share.peopleInYourCompany":"People in your company","boxui.share.peopleWithLinkCanDownloadFile":"Anyone with the link can view and download this file.","boxui.share.peopleWithLinkCanDownloadFolder":"Anyone with the link can view this folder and download its contents.","boxui.share.peopleWithLinkCanEditFile":"Anyone with the link can edit and download this file.","boxui.share.peopleWithLinkCanViewFile":"Anyone with the link can view this file.","boxui.share.peopleWithLinkCanViewFolder":"Anyone with the link can view this folder.","boxui.share.peopleWithTheLink":"People with the link","boxui.share.permissionLevelsTableHeaderText":"Permission Levels","boxui.share.personalMessageLabel":"Personal Message","boxui.share.pillSelectorPlaceholder":"Add names or email addresses","boxui.share.previewTableHeaderText":"Preview","boxui.share.previewerLevelText":"Previewer","boxui.share.previewerUploaderLevelText":"Previewer Uploader","boxui.share.referAFriendBadgeText":"REFER","boxui.share.referAFriendRewardCenterLinkText":"Click Here","boxui.share.referAFriendText":"Want a free month of Box? Refer your friend!","boxui.share.removeLink":"Remove Link","boxui.share.removeLinkConfirmationDescription":"This will permanently remove the shared link. If this item is embedded on other sites it will also become inaccessible. Any custom properties, settings and expirations will be removed as well. Do you want to continue?","boxui.share.removeLinkConfirmationTitle":"Remove Shared Link","boxui.share.settingsButtonLabel":"Open shared link settings popup","boxui.share.sharedLinkExpirationTooltip":"This link will expire on {expiration, date, long}","boxui.share.sharedLinkLabel":"Shared Link","boxui.share.sharedLinkModalTitle":"Shared Link for {itemName}","boxui.share.sharedLinkSettings.accessLevel.inCompanyView":"This content is available to anyone within your company with the link, and can be viewed.","boxui.share.sharedLinkSettings.accessLevel.inCompanyViewDownload":"This content is available to anyone within your company with the link, and can be viewed or downloaded.","boxui.share.sharedLinkSettings.accessLevel.inItem":"This content is available to invited collaborators with the link.","boxui.share.sharedLinkSettings.accessLevel.withLinkView":"This content is publicly available to anyone with the link, and can be viewed.","boxui.share.sharedLinkSettings.accessLevel.withLinkViewDownload":"This content is publicly available to anyone with the link, and can be viewed or downloaded.","boxui.share.sharedLinkSettings.allowDownloadLabel":"Allow users with the shared link to download this item","boxui.share.sharedLinkSettings.allowDownloadTitle":"Allow Download","boxui.share.sharedLinkSettings.customURLLabel":"Non-private custom URL","boxui.share.sharedLinkSettings.directDownloadBlockedByAccessPolicyWithClassification":"Download has been disabled for content due to the classification.","boxui.share.sharedLinkSettings.directDownloadBlockedByAccessPolicyWithoutClassification":"Download has been disabled for content without classification.","boxui.share.sharedLinkSettings.directDownloadBlockedByMaliciousContent":"Download for this content has been disabled due to a security policy.","boxui.share.sharedLinkSettings.directLinkLabel":"Direct Link","boxui.share.sharedLinkSettings.expirationLabel":"Disable Shared Link on","boxui.share.sharedLinkSettings.expirationTitle":"Link Expiration","boxui.share.sharedLinkSettings.inaccessibleSettingsNotice":"Certain settings may not be available for this item due to permissions.","boxui.share.sharedLinkSettings.modalTitle":"Shared Link Settings","boxui.share.sharedLinkSettings.passwordLabel":"Require password","boxui.share.sharedLinkSettings.passwordPlaceholder":"Enter a password","boxui.share.sharedLinkSettings.passwordTitle":"Password Protect","boxui.share.sharedLinkSettings.sharedLinkSettingWarningLinkText":"Learn more about shared link settings.","boxui.share.sharedLinkSettings.sharedLinkWarningText":"This content is publicly available to anyone with the link.","boxui.share.sharedLinkSettings.vanityNameNotSet":"The custom URL has not been set","boxui.share.sharedLinkSettings.vanityNamePlaceholder":"Enter a custom path (12 or more characters)","boxui.share.sharedLinkSettings.vanityURLWarning":"Custom URLs should not be used when sharing sensitive content.","boxui.share.sharedLinkURLLabel":"URL","boxui.share.upgradeGetMoreAccessControls":"Get More Access Controls","boxui.share.uploadTableHeaderText":"Upload","boxui.share.uploaderLevelText":"Uploader","boxui.share.vanityURLEnableText":"Publish content broadly with a custom, non-private URL","boxui.share.viewerLevelText":"Viewer","boxui.share.viewerUploaderLevelText":"Viewer Uploader","boxui.shareMenu.downloadOnly":"Download Only","boxui.shareMenu.editAndComment":"Edit and Comment","boxui.shareMenu.getSharedLink":"Get Shared Link","boxui.shareMenu.insufficientPermissionsMenuOption":"Insufficient sharing permissions. Please contact the folder owner.","boxui.shareMenu.insufficientPermissionsTooltip":"You have insufficient permissions to invite collaborators.","boxui.shareMenu.inviteCollabs":"Invite Collaborators","boxui.shareMenu.ownerCoownerOnlyTooltip":"You have insufficient permissions to invite collaborators. Only the owner and co-owners can invite collaborators.","boxui.shareMenu.shortcutOnly":"Shortcut Only","boxui.shareMenu.viewAndDownload":"View and Download","boxui.shareMenu.viewOnly":"View Only","boxui.timeInput.emptyTimeError":"Required field. Enter a time in the format HH:MM A.","boxui.timeInput.invalidTimeError":"Invalid time format. Enter a time in the format HH:MM A.","boxui.unifiedShare.collabAccess":"collaborator access","boxui.unifiedShare.collaboration.groupCollabText":"Group","boxui.unifiedShare.collaboration.userCollabText":"User","boxui.unifiedShare.collaboratorListTitle":"People in ‘{itemName}’","boxui.unifiedShare.collaborators.expirationTooltipClickableText":"Access expires on {date}. Click for details.","boxui.unifiedShare.contactEmailsTooltipText":"{emails}, and {remainingEmailsCount} more","boxui.unifiedShare.contactRestrictionNotice":"{count, plural, one {{count} invitation} other {{count} invitations}} cannot be sent because external collaboration is restricted due to the applied security policy.","boxui.unifiedShare.contactRestrictionNoticeInformationBarrier":"{count, plural, one {{count} invitation} other {{count} invitations}} cannot be sent due to a security policy.","boxui.unifiedShare.contactRestrictionNoticeInformationBarrierSingular":"Invitations cannot be sent to {email} due to a security policy.","boxui.unifiedShare.contactRestrictionNoticeInformationBarrierSingularGroup":'Invitations cannot be sent to "{groupName}" due to a security policy.',"boxui.unifiedShare.contactRestrictionNoticeSingular":"Invitations cannot be sent to {email} because external collaboration is restricted due to the applied security policy.","boxui.unifiedShare.contactRestrictionRemoveButtonLabel":"Remove to continue","boxui.unifiedShare.contactsExceedLimitError":"Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches.","boxui.unifiedShare.contentSharedWithExternalCollaborators":"This content will be shared with external collaborators.","boxui.unifiedShare.coownerLevelButtonLabel":"Invite as Co-owner","boxui.unifiedShare.coownerLevelDescription":"Manage security, upload, download, preview, share, edit, and delete","boxui.unifiedShare.coownerLevelText":"Co-owner","boxui.unifiedShare.disabledCreateLinkTooltip":"You do not have permission to create the link.","boxui.unifiedShare.disabledMaliciousContentShareLinkPermission":"This option isn’t available for this item due to a security policy.","boxui.unifiedShare.disabledShareLinkPermission":"This option is not available due to a security policy.","boxui.unifiedShare.editorLevelButtonLabel":"Invite as Editor","boxui.unifiedShare.editorLevelDescription":"Upload, download, preview, share, edit, and delete","boxui.unifiedShare.editorLevelFileDescription":"Upload, download, preview, share, and edit","boxui.unifiedShare.editorLevelText":"Editor","boxui.unifiedShare.emailModalTitle":"Send Link to ‘{itemName}’","boxui.unifiedShare.enterAtLeastOneEmail":"Enter at least one valid email","boxui.unifiedShare.enterEmailAddressesCalloutText":"Share this item with coworkers by entering their email addresses","boxui.unifiedShare.expiresMessage":"Expires","boxui.unifiedShare.ftuxConfirmLabel":"Got it","boxui.unifiedShare.ftuxEditPermissionTooltipBody":"Select the new edit option to easily share your file with people or groups.","boxui.unifiedShare.ftuxEditPermissionTooltipTitle":"Collaboration made easy","boxui.unifiedShare.ftuxLinkText":"Read more about shared link security here.","boxui.unifiedShare.ftuxNewUSMUserBody":"We’ve simplified the sharing experience when you click 'Share'. Invite people to this item here and toggle the link on or off below for easy sharing.","boxui.unifiedShare.ftuxNewUsmUserTitle":"Simplified sharing for files and folders","boxui.unifiedShare.ftuxSharedLinkPermissionsEditTag":"NEW","boxui.unifiedShare.groupLabel":"Group","boxui.unifiedShare.inviteDisabledTooltip":"You do not have permission to invite collaborators.","boxui.unifiedShare.inviteDisabledWeblinkTooltip":"Collaborators cannot be added to bookmarks.","boxui.unifiedShare.inviteFieldLabel":"Invite People","boxui.unifiedShare.justifiableContactRestrictionNotice":"This content requires a business justification for {count, plural, one {{count} invitation} other {{count} invitations}}. Please select a business justification below.","boxui.unifiedShare.justifiableContactRestrictionNoticeSingular":"This content requires a business justification to invite {email}. Please select a business justification below.","boxui.unifiedShare.justifiableContactRestrictionRemoveButtonLabel":"Alternatively, remove to continue","boxui.unifiedShare.justificationRequiredError":"Select a justification or remove to continue","boxui.unifiedShare.justificationSelectPlaceholder":"Select Justification","boxui.unifiedShare.levelOfCollabAccess":"Set the level of {collaboratorAccess} and increase security through one of our paid plans. {upgradeLink}","boxui.unifiedShare.linkShareOff":"Create shared link","boxui.unifiedShare.linkShareOn":"Shared link is created","boxui.unifiedShare.message":"Message","boxui.unifiedShare.modalTitle":"Share ‘{itemName}’","boxui.unifiedShare.peopleInCompanyCanAccessFile":"Anyone in your company with the link or people invited to this file can access","boxui.unifiedShare.peopleInCompanyCanAccessFolder":"Anyone in your company with the link or people invited to this folder can access","boxui.unifiedShare.peopleInCompanyCanAccessHub":"Anyone in your company with the link or people invited to this hub can access","boxui.unifiedShare.peopleInEnterpriseName":"People in {enterpriseName}","boxui.unifiedShare.peopleInItemCanAccessFile":"Only invited people can access this file","boxui.unifiedShare.peopleInItemCanAccessFolder":"Only invited people can access this folder","boxui.unifiedShare.peopleInItemCanAccessHub":"Only invited people can access this hub","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessFile":"Anyone at {company} with the link or people invited to this file can access","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessFolder":"Anyone at {company} with the link or people invited to this folder can access","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessHub":"Anyone at {company} with the link or people invited to this hub can access","boxui.unifiedShare.peopleInThisFile":"Invited people only","boxui.unifiedShare.peopleInThisFolder":"Invited people only","boxui.unifiedShare.peopleInYourCompany":"People in your company","boxui.unifiedShare.peopleWithLinkDescription":"Publicly accessible and no sign-in required","boxui.unifiedShare.peopleWithLinkSignedInRequiredDescription":"Publicly accessible, sign-in required","boxui.unifiedShare.peopleWithTheLinkText":"People with the link","boxui.unifiedShare.previewerLevelButtonLabel":"Invite as Previewer","boxui.unifiedShare.previewerLevelDescription":"Preview only","boxui.unifiedShare.previewerLevelText":"Previewer","boxui.unifiedShare.previewerUploaderLevelButtonLabel":"Invite as Previewer Uploader","boxui.unifiedShare.previewerUploaderLevelDescription":"Upload and preview","boxui.unifiedShare.previewerUploaderLevelText":"Previewer Uploader","boxui.unifiedShare.recommendedSharingTooltipCalloutText":"Based on your usage, we think {fullName} would be interested in this file.","boxui.unifiedShare.removeLinkConfirmationDescription":"This will permanently remove the shared link. If this item is embedded on other sites it will also become inaccessible. Any custom properties, settings and expirations will be removed as well. Do you want to continue?","boxui.unifiedShare.removeLinkConfirmationTitle":"Remove Shared Link","boxui.unifiedShare.removeLinkTooltip":"You do not have permission to remove the link.","boxui.unifiedShare.restrictedContactsError":"Remove to continue","boxui.unifiedShare.sendSharedLink":"Send Shared Link","boxui.unifiedShare.sendSharedLinkFieldLabel":"Email Shared Link","boxui.unifiedShare.sharedLinkDisabledTooltipCopy":"Create and copy link for sharing","boxui.unifiedShare.sharedLinkEditablePubliclyAvailable":"Publicly available for anyone to view and download. Any logged in users with the link can edit.","boxui.unifiedShare.sharedLinkElevatedEditableCompanyAvailable":"People who have access to this link can edit.","boxui.unifiedShare.sharedLinkExpirationTooltip":"This link will expire and be inaccessible on {expiration, date, long}.","boxui.unifiedShare.sharedLinkPermissionsEdit":"Can edit","boxui.unifiedShare.sharedLinkPermissionsEditTooltip":"This permission can only be changed in Box Notes","boxui.unifiedShare.sharedLinkPermissionsViewDownload":"Can view and download","boxui.unifiedShare.sharedLinkPermissionsViewOnly":"Can view only","boxui.unifiedShare.sharedLinkPubliclyAvailable":"This content is publicly available to anyone with the link.","boxui.unifiedShare.sharedLinkSectionLabel":"Share Link","boxui.unifiedShare.sharedLinkSettings":"Link Settings","boxui.unifiedShare.sharedLinkSettingsCalloutText":"Create a custom URL, enable password protection, enable link expiration, and much more","boxui.unifiedShare.suggestedCollabsTitle":"Suggested","boxui.unifiedShare.upgradeGetMoreAccessControlsDescription":"62% of customers on your plan {upgradeGetMoreAccessControlsLink} to manage collaborators’ access and permission settings","boxui.unifiedShare.upgradeGetMoreAccessControlsLink":"upgrade","boxui.unifiedShare.upgradeInlineNoticeTitle":"Upgrade Your Plan","boxui.unifiedShare.upgradeLink":"Upgrade now","boxui.unifiedShare.uploaderLevelButtonLabel":"Invite as Uploader","boxui.unifiedShare.uploaderLevelDescription":"Upload only","boxui.unifiedShare.uploaderLevelText":"Uploader","boxui.unifiedShare.viewerLevelButtonLabel":"Invite as Viewer","boxui.unifiedShare.viewerLevelDescription":"Download, preview, and share","boxui.unifiedShare.viewerLevelText":"Viewer","boxui.unifiedShare.viewerUploaderLevelButtonLabel":"Invite as Viewer Uploader","boxui.unifiedShare.viewerUploaderLevelDescription":"Upload, download, preview, share, and edit","boxui.unifiedShare.viewerUploaderLevelText":"Viewer Uploader","boxui.validation.URLError":"Invalid URL","boxui.validation.emailError":"Invalid Email Address","boxui.validation.genericError":"Invalid Input","boxui.validation.invalidDateError":"Invalid Date","boxui.validation.invalidUserError":"Invalid User","boxui.validation.requiredError":"Required Field","boxui.validation.tooLongError":"Input cannot exceed {max} characters","boxui.validation.tooShortError":"Input must be at least {min} characters"}),oi=(0,Qo.createIntlCache)(),ii=(0,Qo.defineMessages)({annotationsClose:{id:"ba.annotationsClose",defaultMessage:"Close"},annotationsSave:{id:"ba.annotationsSave",defaultMessage:"Save"},annotationsPost:{id:"ba.annotationsPost",defaultMessage:"Post"},annotationsCreateError:{id:"ba.annotationsCreateError",defaultMessage:"We’re sorry, the annotation could not be created."},annotationsLoadError:{id:"ba.annotationsLoadError",defaultMessage:"We’re sorry, the annotations failed to load for this file."}}),ai={x:0,y:0};function si(e,t,r={}){const{offsets:n=ai,smooth:o=!1}=r,{x:i,y:a}=n,{left:s,top:c}=e.getBoundingClientRect(),{height:u,left:l,top:d,width:f}=t.getBoundingClientRect(),p=Math.round(e.clientWidth/2),h=Math.round(e.clientHeight/2),g=l-s-p+Math.round(f*(i/100)),y=d-c-h+Math.round(u*(a/100)),m=Math.max(0,Math.min(e.scrollLeft+g,e.scrollWidth)),b=Math.max(0,Math.min(e.scrollTop+y,e.scrollHeight));o?e.scrollTo({left:m,top:b,behavior:"smooth"}):(e.scrollLeft=m,e.scrollTop=b)}const ci="ba-annotations-loaded",ui={[Lt.HIGHLIGHT]:"ba-is-create--highlight",[Lt.REGION]:"ba-is-create--region"};class li extends Jo{constructor({apiHost:e,container:r,features:n={},file:o,fileOptions:i,initialColor:a,initialMode:s,initialViewMode:c="annotations",intl:u,onCopyLink:l,token:d}){super(),t(this,"annotatedEl",void 0),t(this,"containerEl",void 0),t(this,"popupPortalEl",void 0),t(this,"container",void 0),t(this,"deselectManager",null),t(this,"features",void 0),t(this,"intl",void 0),t(this,"onCopyLink",void 0),t(this,"store",void 0),t(this,"removeAnnotation",e=>{this.store.dispatch(_t(e))}),t(this,"handleRemove",e=>{this.removeAnnotation(e)}),t(this,"handleScale",({rotationAngle:e,scale:t})=>{this.init(t,e)}),t(this,"handleSetActive",e=>{this.setActiveId(e)}),t(this,"handleSetVisible",e=>{this.setVisibility(e)}),t(this,"handleSetColor",e=>{this.setColor(e)}),t(this,"handleSetBoundingBoxHighlights",e=>{this.setBoundingBoxHighlights(e)}),t(this,"handleNavigateBoundingBoxHighlight",e=>{this.scrollToBoundingBoxHighlight(e)}),t(this,"handleSelectBoundingBoxHighlight",e=>{this.selectBoundingBoxHighlight(e)}),t(this,"handleSetViewMode",({viewMode:e})=>{this.setViewMode(e)}),t(this,"handleSidebarAnnotationUpdate",e=>{this.store.dispatch(wt(e))}),t(this,"handleSidebarReplyCreate",e=>{this.store.dispatch(St(e))}),t(this,"handleSidebarReplyUpdate",e=>{this.store.dispatch(Et(e))}),t(this,"handleSidebarReplyDelete",({annotationId:e,id:t})=>{this.store.dispatch(xt({annotationId:e,replyId:t}))}),t(this,"removeAnnotationClasses",()=>{if(!this.annotatedEl)return;const e=this.annotatedEl;Object.values(ui).forEach(t=>{t&&e.classList.remove(t)})});const f=i?.[o.id],p=f?.currentFileVersionId,h=f?.fileVersionId,g=o.file_version.id,y={annotations:{activeId:f?.annotations?.activeId??null},common:{color:a,mode:s},options:{apiHost:e,features:n,fileId:o.id,fileVersionId:h??g,isCurrentFileVersion:!h||h===p,permissions:o.permissions,token:d,viewMode:c}};this.container=r,this.features=n,this.intl=(({language:e,locale:t,messages:r=ni}={})=>(0,Qo.createIntl)({messages:r,locale:t||ri(e)},oi))(u),this.onCopyLink=l,this.store=_n(y,{api:new Ho({apiHost:e,token:d})}),this.addListener(gr.SCALE,this.handleScale),this.addListener(pr.ACTIVE_SET,this.handleSetActive),this.addListener(pr.ANNOTATION_REMOVE,this.handleRemove),this.addListener(pr.COLOR_SET,this.handleSetColor),this.addListener(pr.VISIBLE_SET,this.handleSetVisible),this.addListener(pr.BOUNDING_BOX_HIGHLIGHTS_SET,this.handleSetBoundingBoxHighlights),this.addListener(pr.BOUNDING_BOX_HIGHLIGHT_NAVIGATE,this.handleNavigateBoundingBoxHighlight),this.addListener(pr.BOUNDING_BOX_HIGHLIGHT_SELECT,this.handleSelectBoundingBoxHighlight),this.addListener(pr.VIEW_MODE_SET,this.handleSetViewMode),this.addListener(hr.SIDEBAR_ANNOTATION_UPDATE,this.handleSidebarAnnotationUpdate),this.addListener(hr.SIDEBAR_REPLY_CREATE,this.handleSidebarReplyCreate),this.addListener(hr.SIDEBAR_REPLY_UPDATE,this.handleSidebarReplyUpdate),this.addListener(hr.SIDEBAR_REPLY_DELETE,this.handleSidebarReplyDelete),this.hydrate()}destroy(){this.containerEl&&this.containerEl.classList.remove("ba"),this.popupPortalEl&&(this.popupPortalEl.remove(),this.popupPortalEl=null),this.annotatedEl&&this.annotatedEl.classList.remove(ci),this.deselectManager&&this.deselectManager.destroy(),this.removeAnnotationClasses(),this.removeListener(gr.SCALE,this.handleScale),this.removeListener(pr.ACTIVE_SET,this.handleSetActive),this.removeListener(pr.ANNOTATION_REMOVE,this.handleRemove),this.removeListener(pr.COLOR_SET,this.handleSetColor),this.removeListener(pr.VISIBLE_SET,this.handleSetVisible),this.removeListener(pr.BOUNDING_BOX_HIGHLIGHTS_SET,this.handleSetBoundingBoxHighlights),this.removeListener(pr.BOUNDING_BOX_HIGHLIGHT_NAVIGATE,this.handleNavigateBoundingBoxHighlight),this.removeListener(pr.BOUNDING_BOX_HIGHLIGHT_SELECT,this.handleSelectBoundingBoxHighlight),this.removeListener(pr.VIEW_MODE_SET,this.handleSetViewMode),this.removeListener(hr.SIDEBAR_ANNOTATION_UPDATE,this.handleSidebarAnnotationUpdate),this.removeListener(hr.SIDEBAR_REPLY_CREATE,this.handleSidebarReplyCreate),this.removeListener(hr.SIDEBAR_REPLY_UPDATE,this.handleSidebarReplyUpdate),this.removeListener(hr.SIDEBAR_REPLY_DELETE,this.handleSidebarReplyDelete)}init(e=1,t=0){this.containerEl=this.getElement(this.container),this.annotatedEl=this.getAnnotatedElement(),this.annotatedEl&&this.containerEl?(this.annotatedEl.classList.add(ci),this.containerEl.classList.add("ba"),this.popupPortalEl||(this.popupPortalEl=this.containerEl.ownerDocument.createElement("div"),this.popupPortalEl.classList.add("ba-PopupPortal"),this.containerEl.appendChild(this.popupPortalEl)),this.render(),this.store.dispatch(Ze(t)),this.store.dispatch(Je(e)),this.store.dispatch(Ct())):this.emit(gr.ERROR,this.intl.formatMessage(ii.annotationsLoadError))}isFeatureEnabled(e=""){return o()(this.features,e,!1)}scrollToAnnotation(e){}scrollToBoundingBoxHighlight(e){if(!e||!this.annotatedEl)return;const t=Fr(this.store.getState()).find(t=>t.id===e);if(!t)return;const r=this.getScrollReferenceForHighlight(t);if(!r)return;const n={x:t.x+t.width/2,y:t.y+t.height/2};si(this.annotatedEl,r,{offsets:this.getAdjustedScrollOffsets(n),smooth:!0})}getScrollReferenceForHighlight(e){}getAdjustedScrollOffsets(e){return e}setBoundingBoxHighlights(e){this.store.dispatch(Mr(e)),this.render()}setViewMode(e){this.store.dispatch(Qe(e)),this.render()}selectBoundingBoxHighlight(e){this.store.dispatch(Rr(e)),e&&this.scrollToBoundingBoxHighlight(e)}setActiveId(e){this.store.dispatch(Ot(e))}setColor(e){this.store.dispatch(Mt(e))}setVisibility(e){this.containerEl&&(e?this.containerEl.classList.remove("is-hidden"):this.containerEl.classList.add("is-hidden"))}toggleAnnotationMode(e){this.store.dispatch(Rt(e))}getAnnotatedElement(){}getElement(e){return"string"==typeof e?document.querySelector(e):e}hydrate(){this.store.dispatch(ht())}render(){}postRender(){this.annotatedEl&&(this.deselectManager&&this.deselectManager.destroy(),this.deselectManager=new Zo({referenceEl:this.annotatedEl}),this.deselectManager.render({store:this.store}))}}var di=r(2326),fi=r.n(di),pi=r(818),hi=r.n(pi),gi=r(2485),yi=r.n(gi);function mi(){return mi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mi.apply(this,arguments)}function bi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class vi extends zo.Component{constructor(){super(...arguments),bi(this,"focusFirstElement",()=>{if(!this.el)return;const e=hi()(this.el);e.length>3?e[1].focus():this.trapEl&&this.trapEl.focus()}),bi(this,"focusLastElement",()=>{if(!this.el)return;const e=hi()(this.el);e.length>3?e[e.length-3].focus():this.trapEl&&this.trapEl.focus()}),bi(this,"handleElKeyDown",e=>{const{handleOverlayKeyDown:t}=this.props;this.el===document.activeElement&&"Tab"===e.key&&(this.focusFirstElement(),e.stopPropagation(),e.preventDefault()),t&&t(e)}),bi(this,"handleTrapElKeyDown",e=>{"Tab"===e.key&&(e.stopPropagation(),e.preventDefault())})}componentDidMount(){this.props.shouldDefaultFocus?setTimeout(()=>{this.previousFocusEl=document.activeElement,this.focusFirstElement()},0):setTimeout(()=>{this.el&&this.el.focus()},0)}componentWillUnmount(){setTimeout(()=>{this.previousFocusEl&&this.previousFocusEl.focus()},0)}render(){const e=this.props,{children:t,className:r,getRef:n,handleOverlayKeyDown:o,shouldDefaultFocus:i,shouldOutlineFocus:a}=e,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["children","className","getRef","handleOverlayKeyDown","shouldDefaultFocus","shouldOutlineFocus"]);return zo.createElement("div",mi({ref:e=>{this.el=e,n&&n(e)},className:yi()(r,{"should-outline-focus":a}),onKeyDown:this.handleElKeyDown},s),zo.createElement("i",{"aria-hidden":!0,onFocus:this.focusLastElement,tabIndex:"0"}),t,zo.createElement("i",{"aria-hidden":!0,onFocus:this.focusFirstElement,tabIndex:"0"}),zo.createElement("i",{ref:e=>{this.trapEl=e},"aria-hidden":!0,onKeyDown:this.handleTrapElKeyDown,tabIndex:"0"}))}}const wi=vi;var Si=r(5143);const xi=new Si.CompositeDecorator([{strategy:(e,t,r)=>{e.findEntityRanges(e=>{const t=e.getEntity();return null!==t&&"MENTION"===r.getEntity(t).getType()},t)},component:e=>{let{contentState:t,entityKey:r,children:n}=e,o="";return r&&(o=t.getEntity(r).getData().id),zo.createElement("a",{href:"/profile/".concat(o)},n)}}]),Ei=e=>{const t=/([@@﹫])\[([0-9]+):([^\]]+)]/gi.exec(e);if(!t)return null;const[r,n,o,i]=t,a=t.index;return{start:a,end:a+r.length,data:{id:o,name:i,content:"".concat(n).concat(i)}}},_i=["@","@","﹫"].reduce((e,t)=>"".concat(e,"\\").concat(t),""),Oi=new RegExp("([".concat(_i,"])([^").concat(_i,"]*)$"));function Ci(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Oi;const r=e.getCurrentContent(),n=e.getSelection(),o=n.getStartKey(),i=r.getBlockForKey(o),a=n.getStartOffset();let s=null;return i.findEntityRanges(e=>null===e.getEntity(),(e,r)=>{if(e<=a&&a<=r){const r=i.getText().substr(e,a-e).match(t);r&&(s={blockID:o,mentionString:r[2],mentionTrigger:r[1],start:e+r.index,end:a})}return null}),s}function ki(e){const t=e.getCurrentContent(),r=t.getBlockMap(),n=[];let o=!1;return r.forEach(e=>{const r=e.getText(),i=[];e.findEntityRanges(()=>!0,(n,a)=>{const s=e.getEntityAt(n);if(s){const e=t.getEntity(s),c="@[".concat(e.getData().id,":").concat(r.substring(n+1,a),"]");i.push(c),o=!0}else i.push(r.substring(n,a))}),n.push(i.join(""))}),{text:n.join("\n"),hasMention:o}}var Ai=r(115),Ti=r.n(Ai),Ii=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Pi}(e)}(e)},Pi="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Di(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Mi((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function Li(e,t,r){return e.concat(t).map(function(e){return Di(e,r)})}function Mi(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||Li,r.isMergeableObject=r.isMergeableObject||Ii;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):function(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(t){n[t]=Di(e[t],r)}),Object.keys(t).forEach(function(o){r.isMergeableObject(t[o])&&e[o]?n[o]=Mi(e[o],t[o],r):n[o]=Di(t[o],r)}),n}(e,t,r):Di(t,r)}Mi.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,r){return Mi(e,r,t)},{})};const Ri=Mi;var ji=r(4606);const Ni=ji.A.Symbol;var Fi=Object.prototype,Bi=Fi.hasOwnProperty,Ui=Fi.toString,Ki=Ni?Ni.toStringTag:void 0;var Hi=Object.prototype.toString;var zi=Ni?Ni.toStringTag:void 0;const qi=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":zi&&zi in Object(e)?function(e){var t=Bi.call(e,Ki),r=e[Ki];try{e[Ki]=void 0;var n=!0}catch(e){}var o=Ui.call(e);return n&&(t?e[Ki]=r:delete e[Ki]),o}(e):function(e){return Hi.call(e)}(e)},Vi=function(e,t){return function(r){return e(t(r))}},Gi=Vi(Object.getPrototypeOf,Object),Wi=function(e){return null!=e&&"object"==typeof e};var $i=Function.prototype,Yi=Object.prototype,Xi=$i.toString,Zi=Yi.hasOwnProperty,Ji=Xi.call(Object);const Qi=function(e){if(!Wi(e)||"[object Object]"!=qi(e))return!1;var t=Gi(e);if(null===t)return!0;var r=Zi.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Xi.call(r)==Ji},ea=function(e,t){return e===t||e!=e&&t!=t},ta=function(e,t){for(var r=e.length;r--;)if(ea(e[r][0],t))return r;return-1};var ra=Array.prototype.splice;function na(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}na.prototype.clear=function(){this.__data__=[],this.size=0},na.prototype.delete=function(e){var t=this.__data__,r=ta(t,e);return!(r<0||(r==t.length-1?t.pop():ra.call(t,r,1),--this.size,0))},na.prototype.get=function(e){var t=this.__data__,r=ta(t,e);return r<0?void 0:t[r][1]},na.prototype.has=function(e){return ta(this.__data__,e)>-1},na.prototype.set=function(e,t){var r=this.__data__,n=ta(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};const oa=na,ia=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},aa=function(e){if(!ia(e))return!1;var t=qi(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},sa=ji.A["__core-js_shared__"];var ca,ua=(ca=/[^.]+$/.exec(sa&&sa.keys&&sa.keys.IE_PROTO||""))?"Symbol(src)_1."+ca:"";var la=Function.prototype.toString;const da=function(e){if(null!=e){try{return la.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var fa=/^\[object .+?Constructor\]$/,pa=Function.prototype,ha=Object.prototype,ga=pa.toString,ya=ha.hasOwnProperty,ma=RegExp("^"+ga.call(ya).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const ba=function(e){return!(!ia(e)||(t=e,ua&&ua in t))&&(aa(e)?ma:fa).test(da(e));var t},va=function(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return ba(r)?r:void 0},wa=va(ji.A,"Map"),Sa=va(Object,"create");var xa=Object.prototype.hasOwnProperty;var Ea=Object.prototype.hasOwnProperty;function _a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}_a.prototype.clear=function(){this.__data__=Sa?Sa(null):{},this.size=0},_a.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},_a.prototype.get=function(e){var t=this.__data__;if(Sa){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return xa.call(t,e)?t[e]:void 0},_a.prototype.has=function(e){var t=this.__data__;return Sa?void 0!==t[e]:Ea.call(t,e)},_a.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Sa&&void 0===t?"__lodash_hash_undefined__":t,this};const Oa=_a,Ca=function(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map};function ka(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ka.prototype.clear=function(){this.size=0,this.__data__={hash:new Oa,map:new(wa||oa),string:new Oa}},ka.prototype.delete=function(e){var t=Ca(this,e).delete(e);return this.size-=t?1:0,t},ka.prototype.get=function(e){return Ca(this,e).get(e)},ka.prototype.has=function(e){return Ca(this,e).has(e)},ka.prototype.set=function(e,t){var r=Ca(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};const Aa=ka;function Ta(e){var t=this.__data__=new oa(e);this.size=t.size}Ta.prototype.clear=function(){this.__data__=new oa,this.size=0},Ta.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Ta.prototype.get=function(e){return this.__data__.get(e)},Ta.prototype.has=function(e){return this.__data__.has(e)},Ta.prototype.set=function(e,t){var r=this.__data__;if(r instanceof oa){var n=r.__data__;if(!wa||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Aa(n)}return r.set(e,t),this.size=r.size,this};const Ia=Ta,Pa=function(){try{var e=va(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Da=function(e,t,r){"__proto__"==t&&Pa?Pa(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};var La=Object.prototype.hasOwnProperty;const Ma=function(e,t,r){var n=e[t];La.call(e,t)&&ea(n,r)&&(void 0!==r||t in e)||Da(e,t,r)},Ra=function(e,t,r,n){var o=!r;r||(r={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=n?n(r[s],e[s],s,r,e):void 0;void 0===c&&(c=e[s]),o?Da(r,s,c):Ma(r,s,c)}return r},ja=function(e){return Wi(e)&&"[object Arguments]"==qi(e)};var Na=Object.prototype,Fa=Na.hasOwnProperty,Ba=Na.propertyIsEnumerable;const Ua=ja(function(){return arguments}())?ja:function(e){return Wi(e)&&Fa.call(e,"callee")&&!Ba.call(e,"callee")},Ka=Array.isArray;var Ha=r(1719),za=/^(?:0|[1-9]\d*)$/;const qa=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&za.test(e))&&e>-1&&e%1==0&&e<t},Va=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Ga={};Ga["[object Float32Array]"]=Ga["[object Float64Array]"]=Ga["[object Int8Array]"]=Ga["[object Int16Array]"]=Ga["[object Int32Array]"]=Ga["[object Uint8Array]"]=Ga["[object Uint8ClampedArray]"]=Ga["[object Uint16Array]"]=Ga["[object Uint32Array]"]=!0,Ga["[object Arguments]"]=Ga["[object Array]"]=Ga["[object ArrayBuffer]"]=Ga["[object Boolean]"]=Ga["[object DataView]"]=Ga["[object Date]"]=Ga["[object Error]"]=Ga["[object Function]"]=Ga["[object Map]"]=Ga["[object Number]"]=Ga["[object Object]"]=Ga["[object RegExp]"]=Ga["[object Set]"]=Ga["[object String]"]=Ga["[object WeakMap]"]=!1;const Wa=function(e){return function(t){return e(t)}};var $a=r(9986),Ya=$a.A&&$a.A.isTypedArray;const Xa=Ya?Wa(Ya):function(e){return Wi(e)&&Va(e.length)&&!!Ga[qi(e)]};var Za=Object.prototype.hasOwnProperty;const Ja=function(e,t){var r=Ka(e),n=!r&&Ua(e),o=!r&&!n&&(0,Ha.A)(e),i=!r&&!n&&!o&&Xa(e),a=r||n||o||i,s=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=s.length;for(var u in e)!t&&!Za.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||qa(u,c))||s.push(u);return s};var Qa=Object.prototype;const es=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Qa)},ts=Vi(Object.keys,Object);var rs=Object.prototype.hasOwnProperty;const ns=function(e){return null!=e&&Va(e.length)&&!aa(e)},os=function(e){return ns(e)?Ja(e):function(e){if(!es(e))return ts(e);var t=[];for(var r in Object(e))rs.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)};var is=Object.prototype.hasOwnProperty;const as=function(e){if(!ia(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=es(e),r=[];for(var n in e)("constructor"!=n||!t&&is.call(e,n))&&r.push(n);return r},ss=function(e){return ns(e)?Ja(e,!0):as(e)};var cs=r(5963);const us=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},ls=function(){return[]};var ds=Object.prototype.propertyIsEnumerable,fs=Object.getOwnPropertySymbols;const ps=fs?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}(fs(e),function(t){return ds.call(e,t)}))}:ls,hs=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e},gs=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)hs(t,ps(e)),e=Gi(e);return t}:ls,ys=function(e,t,r){var n=t(e);return Ka(e)?n:hs(n,r(e))},ms=function(e){return ys(e,os,ps)},bs=function(e){return ys(e,ss,gs)},vs=va(ji.A,"DataView"),ws=va(ji.A,"Promise"),Ss=va(ji.A,"Set"),xs=va(ji.A,"WeakMap");var Es="[object Map]",_s="[object Promise]",Os="[object Set]",Cs="[object WeakMap]",ks="[object DataView]",As=da(vs),Ts=da(wa),Is=da(ws),Ps=da(Ss),Ds=da(xs),Ls=qi;(vs&&Ls(new vs(new ArrayBuffer(1)))!=ks||wa&&Ls(new wa)!=Es||ws&&Ls(ws.resolve())!=_s||Ss&&Ls(new Ss)!=Os||xs&&Ls(new xs)!=Cs)&&(Ls=function(e){var t=qi(e),r="[object Object]"==t?e.constructor:void 0,n=r?da(r):"";if(n)switch(n){case As:return ks;case Ts:return Es;case Is:return _s;case Ps:return Os;case Ds:return Cs}return t});const Ms=Ls;var Rs=Object.prototype.hasOwnProperty;const js=ji.A.Uint8Array,Ns=function(e){var t=new e.constructor(e.byteLength);return new js(t).set(new js(e)),t};var Fs=/\w*$/;var Bs=Ni?Ni.prototype:void 0,Us=Bs?Bs.valueOf:void 0;const Ks=function(e,t,r){var n,o,i,a=e.constructor;switch(t){case"[object ArrayBuffer]":return Ns(e);case"[object Boolean]":case"[object Date]":return new a(+e);case"[object DataView]":return function(e,t){var r=t?Ns(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var r=t?Ns(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,r);case"[object Map]":case"[object Set]":return new a;case"[object Number]":case"[object String]":return new a(e);case"[object RegExp]":return(i=new(o=e).constructor(o.source,Fs.exec(o))).lastIndex=o.lastIndex,i;case"[object Symbol]":return n=e,Us?Object(Us.call(n)):{}}};var Hs=Object.create;const zs=function(){function e(){}return function(t){if(!ia(t))return{};if(Hs)return Hs(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var qs=$a.A&&$a.A.isMap;const Vs=qs?Wa(qs):function(e){return Wi(e)&&"[object Map]"==Ms(e)};var Gs=$a.A&&$a.A.isSet;const Ws=Gs?Wa(Gs):function(e){return Wi(e)&&"[object Set]"==Ms(e)};var $s="[object Arguments]",Ys="[object Function]",Xs="[object Object]",Zs={};Zs[$s]=Zs["[object Array]"]=Zs["[object ArrayBuffer]"]=Zs["[object DataView]"]=Zs["[object Boolean]"]=Zs["[object Date]"]=Zs["[object Float32Array]"]=Zs["[object Float64Array]"]=Zs["[object Int8Array]"]=Zs["[object Int16Array]"]=Zs["[object Int32Array]"]=Zs["[object Map]"]=Zs["[object Number]"]=Zs[Xs]=Zs["[object RegExp]"]=Zs["[object Set]"]=Zs["[object String]"]=Zs["[object Symbol]"]=Zs["[object Uint8Array]"]=Zs["[object Uint8ClampedArray]"]=Zs["[object Uint16Array]"]=Zs["[object Uint32Array]"]=!0,Zs["[object Error]"]=Zs[Ys]=Zs["[object WeakMap]"]=!1;const Js=function e(t,r,n,o,i,a){var s,c=1&r,u=2&r,l=4&r;if(n&&(s=i?n(t,o,i,a):n(t)),void 0!==s)return s;if(!ia(t))return t;var d=Ka(t);if(d){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Rs.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(t),!c)return us(t,s)}else{var f=Ms(t),p=f==Ys||"[object GeneratorFunction]"==f;if((0,Ha.A)(t))return(0,cs.A)(t,c);if(f==Xs||f==$s||p&&!i){if(s=u||p?{}:function(e){return"function"!=typeof e.constructor||es(e)?{}:zs(Gi(e))}(t),!c)return u?function(e,t){return Ra(e,gs(e),t)}(t,function(e,t){return e&&Ra(t,ss(t),e)}(s,t)):function(e,t){return Ra(e,ps(e),t)}(t,function(e,t){return e&&Ra(t,os(t),e)}(s,t))}else{if(!Zs[f])return i?t:{};s=Ks(t,f,c)}}a||(a=new Ia);var h=a.get(t);if(h)return h;a.set(t,s),Ws(t)?t.forEach(function(o){s.add(e(o,r,n,o,t,a))}):Vs(t)&&t.forEach(function(o,i){s.set(i,e(o,r,n,i,t,a))});var g=l?u?bs:ms:u?keysIn:os,y=d?void 0:g(t);return function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););}(y||t,function(o,i){y&&(o=t[i=o]),Ma(s,i,e(o,r,n,i,t,a))}),s},Qs=function(e){return Js(e,4)},ec=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},tc=function(e){return"symbol"==typeof e||Wi(e)&&"[object Symbol]"==qi(e)};function rc(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(rc.Cache||Aa),r}rc.Cache=Aa;var nc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oc=/\\(\\)?/g;const ic=(ac=rc(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(nc,function(e,r,n,o){t.push(n?o.replace(oc,"$1"):r||e)}),t},function(e){return 500===sc.size&&sc.clear(),e}),sc=ac.cache,ac);var ac,sc;const cc=function(e){if("string"==typeof e||tc(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};var uc=Ni?Ni.prototype:void 0,lc=uc?uc.toString:void 0;const dc=function e(t){if("string"==typeof t)return t;if(Ka(t))return ec(t,e)+"";if(tc(t))return lc?lc.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},fc=function(e){return null==e?"":dc(e)},pc=function(e){return Ka(e)?ec(e,cc):tc(e)?[e]:us(ic(fc(e)))};var hc=r(9982),gc=r(4146),yc=r.n(gc);const mc=function(e){return Js(e,5)};function bc(){return bc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bc.apply(this,arguments)}function vc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function wc(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function Sc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var xc=function(e){return Array.isArray(e)&&0===e.length},Ec=function(e){return"function"==typeof e},_c=function(e){return null!==e&&"object"==typeof e},Oc=function(e){return String(Math.floor(Number(e)))===e},Cc=function(e){return"[object String]"===Object.prototype.toString.call(e)},kc=function(e){return 0===zo.Children.count(e)},Ac=function(e){return _c(e)&&Ec(e.then)};function Tc(e,t,r,n){void 0===n&&(n=0);for(var o=pc(t);e&&n<o.length;)e=e[o[n++]];return void 0===e?r:e}function Ic(e,t,r){for(var n=Qs(e),o=n,i=0,a=pc(t);i<a.length-1;i++){var s=a[i],c=Tc(e,a.slice(0,i+1));if(c&&(_c(c)||Array.isArray(c)))o=o[s]=Qs(c);else{var u=a[i+1];o=o[s]=Oc(u)&&Number(u)>=0?[]:{}}}return(0===i?e:o)[a[i]]===r?e:(void 0===r?delete o[a[i]]:o[a[i]]=r,0===i&&void 0===r&&delete n[a[i]],n)}function Pc(e,t,r,n){void 0===r&&(r=new WeakMap),void 0===n&&(n={});for(var o=0,i=Object.keys(e);o<i.length;o++){var a=i[o],s=e[a];_c(s)?r.get(s)||(r.set(s,!0),n[a]=Array.isArray(s)?[]:{},Pc(s,t,r,n[a])):n[a]=t}return n}var Dc=(0,zo.createContext)(void 0),Lc=Dc.Provider;function Mc(e,t){switch(t.type){case"SET_VALUES":return bc({},e,{values:t.payload});case"SET_TOUCHED":return bc({},e,{touched:t.payload});case"SET_ERRORS":return Ti()(e.errors,t.payload)?e:bc({},e,{errors:t.payload});case"SET_STATUS":return bc({},e,{status:t.payload});case"SET_ISSUBMITTING":return bc({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return bc({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return bc({},e,{values:Ic(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return bc({},e,{touched:Ic(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return bc({},e,{errors:Ic(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return bc({},e,{},t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return bc({},e,{touched:Pc(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return bc({},e,{isSubmitting:!1});default:return e}}Dc.Consumer;var Rc={},jc={};function Nc(e){var t=e.validateOnChange,r=void 0===t||t,n=e.validateOnBlur,o=void 0===n||n,i=e.validateOnMount,a=void 0!==i&&i,s=e.isInitialValid,c=e.enableReinitialize,u=void 0!==c&&c,l=e.onSubmit,d=wc(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),f=bc({validateOnChange:r,validateOnBlur:o,validateOnMount:a,onSubmit:l},d),p=(0,zo.useRef)(f.initialValues),h=(0,zo.useRef)(f.initialErrors||Rc),g=(0,zo.useRef)(f.initialTouched||jc),y=(0,zo.useRef)(f.initialStatus),m=(0,zo.useRef)(!1),b=(0,zo.useRef)({});(0,zo.useEffect)(function(){},[]),(0,zo.useEffect)(function(){return m.current=!0,function(){m.current=!1}},[]);var v=(0,zo.useReducer)(Mc,{values:f.initialValues,errors:f.initialErrors||Rc,touched:f.initialTouched||jc,status:f.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),w=v[0],S=v[1],x=(0,zo.useCallback)(function(e,t){return new Promise(function(r,n){var o=f.validate(e,t);null==o?r(Rc):Ac(o)?o.then(function(e){r(e||Rc)},function(e){n(e)}):r(o)})},[f.validate]),E=(0,zo.useCallback)(function(e,t){var r=f.validationSchema,n=Ec(r)?r(t):r,o=t&&n.validateAt?n.validateAt(t,e):function(e,t,r,n){void 0===r&&(r=!1),void 0===n&&(n={});var o=Bc(e);return t[r?"validateSync":"validate"](o,{abortEarly:!1,context:n})}(e,n);return new Promise(function(e,t){o.then(function(){e(Rc)},function(r){"ValidationError"===r.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return Ic(t,e.path,e.message);var r=e.inner,n=Array.isArray(r),o=0;for(r=n?r:r[Symbol.iterator]();;){var i;if(n){if(o>=r.length)break;i=r[o++]}else{if((o=r.next()).done)break;i=o.value}var a=i;Tc(t,a.path)||(t=Ic(t,a.path,a.message))}}return t}(r)):t(r)})})},[f.validationSchema]),_=(0,zo.useCallback)(function(e,t){return new Promise(function(r){return r(b.current[e].validate(t))})},[]),O=(0,zo.useCallback)(function(e){var t=Object.keys(b.current).filter(function(e){return Ec(b.current[e].validate)}),r=t.length>0?t.map(function(t){return _(t,Tc(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(r).then(function(e){return e.reduce(function(e,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(e=Ic(e,t[n],r)),e},{})})},[_]),C=(0,zo.useCallback)(function(e){return Promise.all([O(e),f.validationSchema?E(e):{},f.validate?x(e):{}]).then(function(e){var t=e[0],r=e[1],n=e[2];return Ri.all([t,r,n],{arrayMerge:Uc})})},[f.validate,f.validationSchema,O,x,E]),k=Hc(function(e){return void 0===e&&(e=w.values),(0,hc.unstable_runWithPriority)(hc.LowPriority,function(){return C(e).then(function(e){return m.current&&S({type:"SET_ERRORS",payload:e}),e}).catch(function(e){})})}),A=Hc(function(e){return void 0===e&&(e=w.values),S({type:"SET_ISVALIDATING",payload:!0}),C(e).then(function(e){return m.current&&(S({type:"SET_ISVALIDATING",payload:!1}),Ti()(w.errors,e)||S({type:"SET_ERRORS",payload:e})),e})});(0,zo.useEffect)(function(){a&&!0===m.current&&k(p.current)},[a,k]);var T=(0,zo.useCallback)(function(e){var t=e&&e.values?e.values:p.current,r=e&&e.errors?e.errors:h.current?h.current:f.initialErrors||{},n=e&&e.touched?e.touched:g.current?g.current:f.initialTouched||{},o=e&&e.status?e.status:y.current?y.current:f.initialStatus;p.current=t,h.current=r,g.current=n,y.current=o;var i=function(){S({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:o,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(f.onReset){var a=f.onReset(w.values,$);Ac(a)?a.then(i):i()}else i()},[f.initialErrors,f.initialStatus,f.initialTouched]);(0,zo.useEffect)(function(){u||(p.current=f.initialValues)},[u,f.initialValues]),(0,zo.useEffect)(function(){u&&!0===m.current&&!Ti()(p.current,f.initialValues)&&(p.current=f.initialValues,T())},[u,f.initialValues,T]),(0,zo.useEffect)(function(){u&&!0===m.current&&!Ti()(h.current,f.initialErrors)&&(h.current=f.initialErrors||Rc,S({type:"SET_ERRORS",payload:f.initialErrors||Rc}))},[u,f.initialErrors]),(0,zo.useEffect)(function(){u&&!0===m.current&&!Ti()(g.current,f.initialTouched)&&(g.current=f.initialTouched||jc,S({type:"SET_TOUCHED",payload:f.initialTouched||jc}))},[u,f.initialTouched]),(0,zo.useEffect)(function(){u&&!0===m.current&&!Ti()(y.current,f.initialStatus)&&(y.current=f.initialStatus,S({type:"SET_STATUS",payload:f.initialStatus}))},[u,f.initialStatus,f.initialTouched]);var I=Hc(function(e){if(Ec(b.current[e].validate)){var t=Tc(w.values,e),r=b.current[e].validate(t);return Ac(r)?(S({type:"SET_ISVALIDATING",payload:!0}),r.then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),S({type:"SET_ISVALIDATING",payload:!1})})):(S({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return f.validationSchema?(S({type:"SET_ISVALIDATING",payload:!0}),E(w.values,e).then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),S({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),P=(0,zo.useCallback)(function(e,t){var r=t.validate;b.current[e]={validate:r}},[]),D=(0,zo.useCallback)(function(e){delete b.current[e]},[]),L=Hc(function(e,t){return S({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?k(w.values):Promise.resolve()}),M=(0,zo.useCallback)(function(e){S({type:"SET_ERRORS",payload:e})},[]),R=Hc(function(e,t){return S({type:"SET_VALUES",payload:e}),(void 0===t?r:t)?k(e):Promise.resolve()}),j=(0,zo.useCallback)(function(e,t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),N=Hc(function(e,t,n){return S({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===n?r:n)?k(Ic(w.values,e,t)):Promise.resolve()}),F=(0,zo.useCallback)(function(e,t){var r,n=t,o=e;if(!Cc(e)){e.persist&&e.persist();var i=e.target?e.target:e.currentTarget,a=i.type,s=i.name,c=i.id,u=i.value,l=i.checked,d=(i.outerHTML,i.options),f=i.multiple;n=t||s||c,o=/number|range/.test(a)?(r=parseFloat(u),isNaN(r)?"":r):/checkbox/.test(a)?function(e,t,r){if("boolean"==typeof e)return Boolean(t);var n=[],o=!1,i=-1;if(Array.isArray(e))n=e,o=(i=e.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return Boolean(t);return t&&r&&!o?n.concat(r):o?n.slice(0,i).concat(n.slice(i+1)):n}(Tc(w.values,n),l,u):f?function(e){return Array.from(e).filter(function(e){return e.selected}).map(function(e){return e.value})}(d):u}n&&N(n,o)},[N,w.values]),B=Hc(function(e){if(Cc(e))return function(t){return F(t,e)};F(e)}),U=Hc(function(e,t,r){return void 0===t&&(t=!0),S({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===r?o:r)?k(w.values):Promise.resolve()}),K=(0,zo.useCallback)(function(e,t){e.persist&&e.persist();var r=e.target,n=r.name,o=r.id,i=(r.outerHTML,t||n||o);U(i,!0)},[U]),H=Hc(function(e){if(Cc(e))return function(t){return K(t,e)};K(e)}),z=(0,zo.useCallback)(function(e){Ec(e)?S({type:"SET_FORMIK_STATE",payload:e}):S({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),q=(0,zo.useCallback)(function(e){S({type:"SET_STATUS",payload:e})},[]),V=(0,zo.useCallback)(function(e){S({type:"SET_ISSUBMITTING",payload:e})},[]),G=Hc(function(){return S({type:"SUBMIT_ATTEMPT"}),A().then(function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var r;try{if(void 0===(r=Y()))return}catch(e){throw e}return Promise.resolve(r).then(function(){m.current&&S({type:"SUBMIT_SUCCESS"})}).catch(function(e){if(m.current)throw S({type:"SUBMIT_FAILURE"}),e})}if(m.current&&(S({type:"SUBMIT_FAILURE"}),t))throw e})}),W=Hc(function(e){e&&e.preventDefault&&Ec(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Ec(e.stopPropagation)&&e.stopPropagation(),G().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),$={resetForm:T,validateForm:A,validateField:I,setErrors:M,setFieldError:j,setFieldTouched:U,setFieldValue:N,setStatus:q,setSubmitting:V,setTouched:L,setValues:R,setFormikState:z,submitForm:G},Y=Hc(function(){return l(w.values,$)}),X=Hc(function(e){e&&e.preventDefault&&Ec(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Ec(e.stopPropagation)&&e.stopPropagation(),T()}),Z=(0,zo.useCallback)(function(e){return{value:Tc(w.values,e),error:Tc(w.errors,e),touched:!!Tc(w.touched,e),initialValue:Tc(p.current,e),initialTouched:!!Tc(g.current,e),initialError:Tc(h.current,e)}},[w.errors,w.touched,w.values]),J=(0,zo.useCallback)(function(e){return{setValue:function(t){return N(e,t)},setTouched:function(t){return U(e,t)},setError:function(t){return j(e,t)}}},[N,U,j]),Q=(0,zo.useCallback)(function(e){var t=_c(e),r=t?e.name:e,n=Tc(w.values,r),o={name:r,value:n,onChange:B,onBlur:H};if(t){var i=e.type,a=e.value,s=e.as,c=e.multiple;"checkbox"===i?void 0===a?o.checked=!!n:(o.checked=!(!Array.isArray(n)||!~n.indexOf(a)),o.value=a):"radio"===i?(o.checked=n===a,o.value=a):"select"===s&&c&&(o.value=o.value||[],o.multiple=!0)}return o},[H,B,w.values]),ee=(0,zo.useMemo)(function(){return!Ti()(p.current,w.values)},[p.current,w.values]),te=(0,zo.useMemo)(function(){return void 0!==s?ee?w.errors&&0===Object.keys(w.errors).length:!1!==s&&Ec(s)?s(f):s:w.errors&&0===Object.keys(w.errors).length},[s,ee,w.errors,f]);return bc({},w,{initialValues:p.current,initialErrors:h.current,initialTouched:g.current,initialStatus:y.current,handleBlur:H,handleChange:B,handleReset:X,handleSubmit:W,resetForm:T,setErrors:M,setFormikState:z,setFieldTouched:U,setFieldValue:N,setFieldError:j,setStatus:q,setSubmitting:V,setTouched:L,setValues:R,submitForm:G,validateForm:A,validateField:I,isValid:te,dirty:ee,unregisterField:D,registerField:P,getFieldProps:Q,getFieldMeta:Z,getFieldHelpers:J,validateOnBlur:o,validateOnChange:r,validateOnMount:a})}function Fc(e){var t=Nc(e),r=e.component,n=e.children,o=e.render,i=e.innerRef;return(0,zo.useImperativeHandle)(i,function(){return t}),(0,zo.useEffect)(function(){},[]),(0,zo.createElement)(Lc,{value:t},r?(0,zo.createElement)(r,t):o?o(t):n?Ec(n)?n(t):kc(n)?null:zo.Children.only(n):null)}function Bc(e){var t={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);!0===Array.isArray(e[n])?t[n]=e[n].map(function(e){return!0===Array.isArray(e)||Qi(e)?Bc(e):""!==e?e:void 0}):Qi(e[n])?t[n]=Bc(e[n]):t[n]=""!==e[n]?e[n]:void 0}return t}function Uc(e,t,r){var n=e.slice();return t.forEach(function(t,o){if(void 0===n[o]){var i=!1!==r.clone&&r.isMergeableObject(t);n[o]=i?Ri(Array.isArray(t)?[]:{},t,r):t}else r.isMergeableObject(t)?n[o]=Ri(e[o],t,r):-1===e.indexOf(t)&&n.push(t)}),n}var Kc="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?zo.useLayoutEffect:zo.useEffect;function Hc(e){var t=(0,zo.useRef)(e);return Kc(function(){t.current=e}),(0,zo.useCallback)(function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current.apply(void 0,r)},[])}var zc=(0,zo.forwardRef)(function(e,t){var r=e.action,n=wc(e,["action"]),o=r||"#",i=(0,zo.useContext)(Dc),a=i.handleReset,s=i.handleSubmit;return(0,zo.createElement)("form",Object.assign({onSubmit:s,ref:t,onReset:a,action:o},n))});zc.displayName="Form";var qc=function(e,t,r){var n=Vc(e);return n.splice(t,0,r),n},Vc=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map(function(e){return parseInt(e)}).reduce(function(e,t){return t>e?t:e},0);return Array.from(bc({},e,{length:t+1}))}return[]},Gc=function(e){function t(t){var r;return(r=e.call(this,t)||this).updateArrayField=function(e,t,n){var o=r.props,i=o.name;(0,o.formik.setFormikState)(function(r){var o="function"==typeof n?n:e,a="function"==typeof t?t:e,s=Ic(r.values,i,e(Tc(r.values,i))),c=n?o(Tc(r.errors,i)):void 0,u=t?a(Tc(r.touched,i)):void 0;return xc(c)&&(c=void 0),xc(u)&&(u=void 0),bc({},r,{values:s,errors:n?Ic(r.errors,i,c):r.errors,touched:t?Ic(r.touched,i,u):r.touched})})},r.push=function(e){return r.updateArrayField(function(t){return[].concat(Vc(t),[mc(e)])},!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField(function(r){return function(e,t,r){var n=Vc(e),o=n[t];return n[t]=n[r],n[r]=o,n}(r,e,t)},!0,!0)},r.handleSwap=function(e,t){return function(){return r.swap(e,t)}},r.move=function(e,t){return r.updateArrayField(function(r){return function(e,t,r){var n=Vc(e),o=n[t];return n.splice(t,1),n.splice(r,0,o),n}(r,e,t)},!0,!0)},r.handleMove=function(e,t){return function(){return r.move(e,t)}},r.insert=function(e,t){return r.updateArrayField(function(r){return qc(r,e,t)},function(t){return qc(t,e,null)},function(t){return qc(t,e,null)})},r.handleInsert=function(e,t){return function(){return r.insert(e,t)}},r.replace=function(e,t){return r.updateArrayField(function(r){return function(e,t,r){var n=Vc(e);return n[t]=r,n}(r,e,t)},!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField(function(r){var n=r?[e].concat(r):[e];return t<0&&(t=n.length),n},function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r},function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r}),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(Sc(r)),r.pop=r.pop.bind(Sc(r)),r}vc(t,e);var r=t.prototype;return r.componentDidUpdate=function(e){!Ti()(Tc(e.formik.values,e.name),Tc(this.props.formik.values,this.props.name))&&this.props.formik.validateOnChange&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(e){var t;return this.updateArrayField(function(r){var n=r?Vc(r):[];return t||(t=n[e]),Ec(n.splice)&&n.splice(e,1),n},!0,!0),t},r.pop=function(){var e;return this.updateArrayField(function(t){var r=t;return e||(e=r&&r.pop&&r.pop()),r},!0,!0),e},r.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,r=t.component,n=t.render,o=t.children,i=t.name,a=bc({},e,{form:wc(t.formik,["validate","validationSchema"]),name:i});return r?(0,zo.createElement)(r,a):n?n(a):o?"function"==typeof o?o(a):kc(o)?null:zo.Children.only(o):null},t}(zo.Component);Gc.defaultProps={validateOnChange:!0};const Wc=(0,Qo.defineMessages)({ariaLabelComment:{id:"ba.popup.reply.comment",defaultMessage:"Comment"},ariaLabelMentionLoading:{id:"ba.popup.reply.mentionLoading",defaultMessage:"Loading users..."},ariaLabelMentionSelector:{id:"ba.popup.reply.mentionSelector",defaultMessage:"Mention a collaborator"},ariaLabelReplyField:{id:"ba.popup.reply.field",defaultMessage:"Type a comment"},buttonCancel:{id:"ba.popups.cancel",defaultMessage:"Cancel"},buttonPost:{id:"ba.popups.post",defaultMessage:"Post"},drawingButtonAddComment:{id:"ba.popups.drawing.addComment",defaultMessage:"Add Comment"},drawingButtonDelete:{id:"ba.popups.drawing.delete",defaultMessage:"Delete"},drawingButtonRedo:{id:"ba.popups.drawing.redo",defaultMessage:"Redo"},drawingButtonUndo:{id:"ba.popups.drawing.undo",defaultMessage:"Undo"},fieldPlaceholder:{id:"ba.popups.replyField.placeholder",defaultMessage:"Type a comment..."},popupHighlightPromoter:{id:"ba.popups.popupHighlight.promoter",defaultMessage:"Highlight and Comment"},popupHighlightRestrictedPrompt:{id:"ba.popups.popupHighlight.restrictedPrompt",defaultMessage:"Comments restricted to single page"},popupListPrompt:{id:"ba.popups.popupList.prompt",defaultMessage:"Mention someone to notify them"},regionCursorPrompt:{id:"ba.popups.popupCursor.regionPrompt",defaultMessage:"Draw a box to comment"}}),$c=["children","isDisabled","isPrimary","onClick"];function Yc(e){let{children:t,isDisabled:r,isPrimary:n,onClick:o=Vr()}=e,i=Se(e,$c);return qo().createElement("button",g({"aria-disabled":!!r||void 0,className:yi()("btn",{"btn-primary":n,"is-disabled":r}),onClick:e=>{if(r)return e.preventDefault(),void e.stopPropagation();o(e)},type:"button"},i),t)}var Xc=r(8221),Zc=r.n(Xc),Jc=r(2193),Qc=r.n(Jc);function eu(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function tu(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function ru(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return tu(r.overflowY,t)||tu(r.overflowX,t)||function(e){var t=function(e){return e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView.frameElement:null}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function nu(e,t,r,n,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=r||a>=t&&s>=r?i-e-n:a>t&&s<r||i<e&&s>r?a-t+o:0}const ou=function(e,t){var r=t.scrollMode,n=t.block,o=t.inline,i=t.boundary,a=t.skipOverflowHiddenElements,s="function"==typeof i?i:function(e){return e!==i};if(!eu(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,u=[],l=e;eu(l)&&s(l);){if((l=l.parentNode)===c){u.push(l);break}l===document.body&&ru(l)&&!ru(document.documentElement)||ru(l,a)&&u.push(l)}for(var d=window.visualViewport?visualViewport.width:innerWidth,f=window.visualViewport?visualViewport.height:innerHeight,p=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),y=g.height,m=g.width,b=g.top,v=g.right,w=g.bottom,S=g.left,x="start"===n||"nearest"===n?b:"end"===n?w:b+y/2,E="center"===o?S+m/2:"end"===o?v:S,_=[],O=0;O<u.length;O++){var C=u[O],k=C.getBoundingClientRect(),A=k.height,T=k.width,I=k.top,P=k.right,D=k.bottom,L=k.left;if("if-needed"===r&&b>=0&&S>=0&&w<=f&&v<=d&&b>=I&&w<=D&&S>=L&&v<=P)return _;var M=getComputedStyle(C),R=parseInt(M.borderLeftWidth,10),j=parseInt(M.borderTopWidth,10),N=parseInt(M.borderRightWidth,10),F=parseInt(M.borderBottomWidth,10),B=0,U=0,K="offsetWidth"in C?C.offsetWidth-C.clientWidth-R-N:0,H="offsetHeight"in C?C.offsetHeight-C.clientHeight-j-F:0;if(c===C)B="start"===n?x:"end"===n?x-f:"nearest"===n?nu(h,h+f,f,j,F,h+x,h+x+y,y):x-f/2,U="start"===o?E:"center"===o?E-d/2:"end"===o?E-d:nu(p,p+d,d,R,N,p+E,p+E+m,m),B=Math.max(0,B+h),U=Math.max(0,U+p);else{B="start"===n?x-I-j:"end"===n?x-D+F+H:"nearest"===n?nu(I,D,A,j,F+H,x,x+y,y):x-(I+A/2)+H/2,U="start"===o?E-L-R:"center"===o?E-(L+T/2)+K/2:"end"===o?E-P+N+K:nu(L,P,T,R,N+K,E,E+m,m);var z=C.scrollLeft,q=C.scrollTop;x+=q-(B=Math.max(0,Math.min(q+B,C.scrollHeight-A+H))),E+=z-(U=Math.max(0,Math.min(z+U,C.scrollWidth-T+K)))}_.push({el:C,top:B,left:U})}return _};function iu(e){return e===Object(e)&&0!==Object.keys(e).length}(Object.getOwnPropertyDescriptor(ou,"name")||{}).writable||Object.defineProperty(ou,"name",{value:"default",configurable:!0});const au=(e,t)=>{const{className:r,isActive:n,item:o,onClick:i,onMouseDown:a,onMouseEnter:s}=e;if(!o||!o.item||!o.item.name)return null;const{item:c}=o;return zo.createElement("li",{ref:t,"aria-selected":n,className:yi()(r,"ba-ItemRow",{"is-active":n}),"data-resin-target":"atMention","data-testid":"ba-ItemRow",onClick:i,onMouseDown:a,onMouseEnter:s,role:"option"},zo.createElement("div",{className:"ba-ItemRow-name","data-testid":"ba-ItemRow-name"},c.name),"user"===c.type&&c.email&&zo.createElement("div",{className:"ba-ItemRow-email","data-testid":"ba-ItemRow-email"},c.email))},su=zo.forwardRef(au),cu=["activeItemIndex","autoScroll","itemRowAs","items","onActivate","onSelect"],uu=e=>{let{activeItemIndex:t=0,autoScroll:r=!1,itemRowAs:n=su,items:o,onActivate:i=Vr(),onSelect:a}=e,s=Se(e,cu);const c=qo().useCallback(e=>{r&&e&&function(e,t){var r=!e.ownerDocument.documentElement.contains(e);if(iu(t)&&"function"==typeof t.behavior)return t.behavior(r?[]:ou(e,t));if(!r){var n=function(e){return!1===e?{block:"end",inline:"nearest"}:iu(e)?e:{block:"start",inline:"nearest"}}(t);(function(e,t){void 0===t&&(t="auto");var r="scrollBehavior"in document.body.style;e.forEach(function(e){var n=e.el,o=e.top,i=e.left;n.scroll&&r?n.scroll({top:o,left:i,behavior:t}):(n.scrollTop=o,n.scrollLeft=i)})})(ou(e,n),n.behavior)}}(e,{scrollMode:"if-needed",block:"nearest"})},[r]);return qo().createElement("ul",g({className:"ba-ItemList","data-testid":"ba-ItemList",role:"listbox"},s),o.map((e,r)=>qo().createElement(n,{key:e.id,ref:r===t?c:null,className:"ba-ItemList-row",isActive:r===t,item:e,onClick:e=>{a(r,e)},onMouseDown:e=>{e.preventDefault()},onMouseEnter:()=>{i(r)}})))};function lu(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function du(e){return e instanceof lu(e).Element||e instanceof Element}function fu(e){return e instanceof lu(e).HTMLElement||e instanceof HTMLElement}function pu(e){return"undefined"!=typeof ShadowRoot&&(e instanceof lu(e).ShadowRoot||e instanceof ShadowRoot)}var hu=Math.max,gu=Math.min,yu=Math.round;function mu(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function bu(){return!/^((?!chrome|android).)*safari/i.test(mu())}function vu(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&fu(e)&&(o=e.offsetWidth>0&&yu(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&yu(n.height)/e.offsetHeight||1);var a=(du(e)?lu(e):window).visualViewport,s=!bu()&&r,c=(n.left+(s&&a?a.offsetLeft:0))/o,u=(n.top+(s&&a?a.offsetTop:0))/i,l=n.width/o,d=n.height/i;return{width:l,height:d,top:u,right:c+l,bottom:u+d,left:c,x:c,y:u}}function wu(e){var t=lu(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Su(e){return e?(e.nodeName||"").toLowerCase():null}function xu(e){return((du(e)?e.ownerDocument:e.document)||window.document).documentElement}function Eu(e){return vu(xu(e)).left+wu(e).scrollLeft}function _u(e){return lu(e).getComputedStyle(e)}function Ou(e){var t=_u(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Cu(e,t,r){void 0===r&&(r=!1);var n,o,i=fu(t),a=fu(t)&&function(e){var t=e.getBoundingClientRect(),r=yu(t.width)/e.offsetWidth||1,n=yu(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),s=xu(t),c=vu(e,a,r),u={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!r)&&(("body"!==Su(t)||Ou(s))&&(u=(n=t)!==lu(n)&&fu(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:wu(n)),fu(t)?((l=vu(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Eu(s))),{x:c.left+u.scrollLeft-l.x,y:c.top+u.scrollTop-l.y,width:c.width,height:c.height}}function ku(e){var t=vu(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Au(e){return"html"===Su(e)?e:e.assignedSlot||e.parentNode||(pu(e)?e.host:null)||xu(e)}function Tu(e){return["html","body","#document"].indexOf(Su(e))>=0?e.ownerDocument.body:fu(e)&&Ou(e)?e:Tu(Au(e))}function Iu(e,t){var r;void 0===t&&(t=[]);var n=Tu(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=lu(n),a=o?[i].concat(i.visualViewport||[],Ou(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(Iu(Au(a)))}function Pu(e){return["table","td","th"].indexOf(Su(e))>=0}function Du(e){return fu(e)&&"fixed"!==_u(e).position?e.offsetParent:null}function Lu(e){for(var t=lu(e),r=Du(e);r&&Pu(r)&&"static"===_u(r).position;)r=Du(r);return r&&("html"===Su(r)||"body"===Su(r)&&"static"===_u(r).position)?t:r||function(e){var t=/firefox/i.test(mu());if(/Trident/i.test(mu())&&fu(e)&&"fixed"===_u(e).position)return null;var r=Au(e);for(pu(r)&&(r=r.host);fu(r)&&["html","body"].indexOf(Su(r))<0;){var n=_u(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var Mu="top",Ru="bottom",ju="right",Nu="left",Fu="auto",Bu=[Mu,Ru,ju,Nu],Uu="start",Ku="end",Hu="viewport",zu="popper",qu=Bu.reduce(function(e,t){return e.concat([t+"-"+Uu,t+"-"+Ku])},[]),Vu=[].concat(Bu,[Fu]).reduce(function(e,t){return e.concat([t,t+"-"+Uu,t+"-"+Ku])},[]),Gu=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Wu(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){r.has(e.name)||o(e)}),n}var $u={placement:"bottom",modifiers:[],strategy:"absolute"};function Yu(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Xu(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,i=void 0===o?$u:o;return function(e,t,r){void 0===r&&(r=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},$u,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,l={state:s,setOptions:function(r){var o="function"==typeof r?r(s.options):r;d(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:du(e)?Iu(e):e.contextElement?Iu(e.contextElement):[],popper:Iu(t)};var a,u,f=function(e){var t=Wu(e);return Gu.reduce(function(e,r){return e.concat(t.filter(function(e){return e.phase===r}))},[])}((a=[].concat(n,s.options.modifiers),u=a.reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{}),Object.keys(u).map(function(e){return u[e]})));return s.orderedModifiers=f.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:l,options:n});c.push(i||function(){})}}),l.update()},forceUpdate:function(){if(!u){var e=s.elements,t=e.reference,r=e.popper;if(Yu(t,r)){s.rects={reference:Cu(t,Lu(r),"fixed"===s.options.strategy),popper:ku(r)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var o=s.orderedModifiers[n],i=o.fn,a=o.options,c=void 0===a?{}:a,d=o.name;"function"==typeof i&&(s=i({state:s,options:c,name:d,instance:l})||s)}else s.reset=!1,n=-1}}},update:(o=function(){return new Promise(function(e){l.forceUpdate(),e(s)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(o())})})),a}),destroy:function(){d(),u=!0}};if(!Yu(e,t))return l;function d(){c.forEach(function(e){return e()}),c=[]}return l.setOptions(r).then(function(e){!u&&r.onFirstUpdate&&r.onFirstUpdate(e)}),l}}var Zu={passive:!0};const Ju={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,s=void 0===a||a,c=lu(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(e){e.addEventListener("scroll",r.update,Zu)}),s&&c.addEventListener("resize",r.update,Zu),function(){i&&u.forEach(function(e){e.removeEventListener("scroll",r.update,Zu)}),s&&c.removeEventListener("resize",r.update,Zu)}},data:{}};function Qu(e){return e.split("-")[0]}function el(e){return e.split("-")[1]}function tl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function rl(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?Qu(o):null,a=o?el(o):null,s=r.x+r.width/2-n.width/2,c=r.y+r.height/2-n.height/2;switch(i){case Mu:t={x:s,y:r.y-n.height};break;case Ru:t={x:s,y:r.y+r.height};break;case ju:t={x:r.x+r.width,y:c};break;case Nu:t={x:r.x-n.width,y:c};break;default:t={x:r.x,y:r.y}}var u=i?tl(i):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case Uu:t[u]=t[u]-(r[l]/2-n[l]/2);break;case Ku:t[u]=t[u]+(r[l]/2-n[l]/2)}}return t}var nl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ol(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,u=e.adaptive,l=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,h=a.y,g=void 0===h?0:h,y="function"==typeof l?l({x:p,y:g}):{x:p,y:g};p=y.x,g=y.y;var m=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),v=Nu,w=Mu,S=window;if(u){var x=Lu(r),E="clientHeight",_="clientWidth";x===lu(r)&&"static"!==_u(x=xu(r)).position&&"absolute"===s&&(E="scrollHeight",_="scrollWidth"),(o===Mu||(o===Nu||o===ju)&&i===Ku)&&(w=Ru,g-=(d&&x===S&&S.visualViewport?S.visualViewport.height:x[E])-n.height,g*=c?1:-1),o!==Nu&&(o!==Mu&&o!==Ru||i!==Ku)||(v=ju,p-=(d&&x===S&&S.visualViewport?S.visualViewport.width:x[_])-n.width,p*=c?1:-1)}var O,C=Object.assign({position:s},u&&nl),k=!0===l?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:yu(r*o)/o||0,y:yu(n*o)/o||0}}({x:p,y:g},lu(r)):{x:p,y:g};return p=k.x,g=k.y,c?Object.assign({},C,((O={})[w]=b?"0":"",O[v]=m?"0":"",O.transform=(S.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",O)):Object.assign({},C,((t={})[w]=b?g+"px":"",t[v]=m?p+"px":"",t.transform="",t))}const il={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,a=void 0===i||i,s=r.roundOffsets,c=void 0===s||s,u={placement:Qu(t.placement),variation:el(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ol(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ol(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},al={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=Vu.reduce(function(e,r){return e[r]=function(e,t,r){var n=Qu(e),o=[Nu,Mu].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Nu,ju].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,i),e},{}),s=a[t.placement],c=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=a}};var sl={left:"right",right:"left",bottom:"top",top:"bottom"};function cl(e){return e.replace(/left|right|bottom|top/g,function(e){return sl[e]})}var ul={start:"end",end:"start"};function ll(e){return e.replace(/start|end/g,function(e){return ul[e]})}function dl(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&pu(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function fl(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function pl(e,t,r){return t===Hu?fl(function(e,t){var r=lu(e),n=xu(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;var u=bu();(u||!u&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s+Eu(e),y:c}}(e,r)):du(t)?function(e,t){var r=vu(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):fl(function(e){var t,r=xu(e),n=wu(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=hu(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=hu(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+Eu(e),c=-n.scrollTop;return"rtl"===_u(o||r).direction&&(s+=hu(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}(xu(e)))}function hl(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function gl(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}function yl(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,a=void 0===i?e.strategy:i,s=r.boundary,c=void 0===s?"clippingParents":s,u=r.rootBoundary,l=void 0===u?Hu:u,d=r.elementContext,f=void 0===d?zu:d,p=r.altBoundary,h=void 0!==p&&p,g=r.padding,y=void 0===g?0:g,m=hl("number"!=typeof y?y:gl(y,Bu)),b=f===zu?"reference":zu,v=e.rects.popper,w=e.elements[h?b:f],S=function(e,t,r,n){var o="clippingParents"===t?function(e){var t=Iu(Au(e)),r=["absolute","fixed"].indexOf(_u(e).position)>=0&&fu(e)?Lu(e):e;return du(r)?t.filter(function(e){return du(e)&&dl(e,r)&&"body"!==Su(e)}):[]}(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(t,r){var o=pl(e,r,n);return t.top=hu(o.top,t.top),t.right=gu(o.right,t.right),t.bottom=gu(o.bottom,t.bottom),t.left=hu(o.left,t.left),t},pl(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(du(w)?w:w.contextElement||xu(e.elements.popper),c,l,a),x=vu(e.elements.reference),E=rl({reference:x,element:v,strategy:"absolute",placement:o}),_=fl(Object.assign({},v,E)),O=f===zu?_:x,C={top:S.top-O.top+m.top,bottom:O.bottom-S.bottom+m.bottom,left:S.left-O.left+m.left,right:O.right-S.right+m.right},k=e.modifiersData.offset;if(f===zu&&k){var A=k[o];Object.keys(C).forEach(function(e){var t=[ju,Ru].indexOf(e)>=0?1:-1,r=[Mu,Ru].indexOf(e)>=0?"y":"x";C[e]+=A[r]*t})}return C}const ml={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0===a||a,c=r.fallbackPlacements,u=r.padding,l=r.boundary,d=r.rootBoundary,f=r.altBoundary,p=r.flipVariations,h=void 0===p||p,g=r.allowedAutoPlacements,y=t.options.placement,m=Qu(y),b=c||(m!==y&&h?function(e){if(Qu(e)===Fu)return[];var t=cl(e);return[ll(e),t,ll(t)]}(y):[cl(y)]),v=[y].concat(b).reduce(function(e,r){return e.concat(Qu(r)===Fu?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,u=void 0===c?Vu:c,l=el(n),d=l?s?qu:qu.filter(function(e){return el(e)===l}):Bu,f=d.filter(function(e){return u.indexOf(e)>=0});0===f.length&&(f=d);var p=f.reduce(function(t,r){return t[r]=yl(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[Qu(r)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}(t,{placement:r,boundary:l,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:g}):r)},[]),w=t.rects.reference,S=t.rects.popper,x=new Map,E=!0,_=v[0],O=0;O<v.length;O++){var C=v[O],k=Qu(C),A=el(C)===Uu,T=[Mu,Ru].indexOf(k)>=0,I=T?"width":"height",P=yl(t,{placement:C,boundary:l,rootBoundary:d,altBoundary:f,padding:u}),D=T?A?ju:Nu:A?Ru:Mu;w[I]>S[I]&&(D=cl(D));var L=cl(D),M=[];if(i&&M.push(P[k]<=0),s&&M.push(P[D]<=0,P[L]<=0),M.every(function(e){return e})){_=C,E=!1;break}x.set(C,M)}if(E)for(var R=function(e){var t=v.find(function(t){var r=x.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return _=t,"break"},j=h?3:1;j>0&&"break"!==R(j);j--);t.placement!==_&&(t.modifiersData[n]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function bl(e,t,r){return hu(e,gu(t,r))}const vl={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0!==a&&a,c=r.boundary,u=r.rootBoundary,l=r.altBoundary,d=r.padding,f=r.tether,p=void 0===f||f,h=r.tetherOffset,g=void 0===h?0:h,y=yl(t,{boundary:c,rootBoundary:u,padding:d,altBoundary:l}),m=Qu(t.placement),b=el(t.placement),v=!b,w=tl(m),S="x"===w?"y":"x",x=t.modifiersData.popperOffsets,E=t.rects.reference,_=t.rects.popper,O="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,C="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(x){if(i){var T,I="y"===w?Mu:Nu,P="y"===w?Ru:ju,D="y"===w?"height":"width",L=x[w],M=L+y[I],R=L-y[P],j=p?-_[D]/2:0,N=b===Uu?E[D]:_[D],F=b===Uu?-_[D]:-E[D],B=t.elements.arrow,U=p&&B?ku(B):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=K[I],z=K[P],q=bl(0,E[D],U[D]),V=v?E[D]/2-j-q-H-C.mainAxis:N-q-H-C.mainAxis,G=v?-E[D]/2+j+q+z+C.mainAxis:F+q+z+C.mainAxis,W=t.elements.arrow&&Lu(t.elements.arrow),$=W?"y"===w?W.clientTop||0:W.clientLeft||0:0,Y=null!=(T=null==k?void 0:k[w])?T:0,X=L+G-Y,Z=bl(p?gu(M,L+V-Y-$):M,L,p?hu(R,X):R);x[w]=Z,A[w]=Z-L}if(s){var J,Q="x"===w?Mu:Nu,ee="x"===w?Ru:ju,te=x[S],re="y"===S?"height":"width",ne=te+y[Q],oe=te-y[ee],ie=-1!==[Mu,Nu].indexOf(m),ae=null!=(J=null==k?void 0:k[S])?J:0,se=ie?ne:te-E[re]-_[re]-ae+C.altAxis,ce=ie?te+E[re]+_[re]-ae-C.altAxis:oe,ue=p&&ie?function(e,t,r){var n=bl(e,t,r);return n>r?r:n}(se,te,ce):bl(p?se:ne,te,p?ce:oe);x[S]=ue,A[S]=ue-te}t.modifiersData[n]=A}},requiresIfExists:["offset"]},wl={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Qu(r.placement),c=tl(s),u=[Nu,ju].indexOf(s)>=0?"height":"width";if(i&&a){var l=function(e,t){return hl("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:gl(e,Bu))}(o.padding,r),d=ku(i),f="y"===c?Mu:Nu,p="y"===c?Ru:ju,h=r.rects.reference[u]+r.rects.reference[c]-a[c]-r.rects.popper[u],g=a[c]-r.rects.reference[c],y=Lu(i),m=y?"y"===c?y.clientHeight||0:y.clientWidth||0:0,b=h/2-g/2,v=l[f],w=m-d[u]-l[p],S=m/2-d[u]/2+b,x=bl(v,S,w),E=c;r.modifiersData[n]=((t={})[E]=x,t.centerOffset=x-S,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&dl(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Sl(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function xl(e){return[Mu,ju,Ru,Nu].some(function(t){return e[t]>=0})}var El=Xu({defaultModifiers:[Ju,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=rl({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},il,{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];fu(o)&&Su(o)&&(Object.assign(o.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});fu(n)&&Su(n)&&(Object.assign(n.style,i),Object.keys(o).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},al,ml,vl,wl,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=yl(t,{elementContext:"reference"}),s=yl(t,{altBoundary:!0}),c=Sl(a,n),u=Sl(s,o,i),l=xl(c),d=xl(u);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}}]}),_l=r(6924),Ol=r.n(_l),Cl=r(9786),kl=r.n(Cl);function Al(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Tl(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?Al(Object(n),!0).forEach(function(r){t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Al(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const Il={modifiers:[],placement:"bottom"},Pl=(e,t)=>{if(Array.isArray(e)&&Array.isArray(t))return kl()(e,t,"name")};function Dl(e,t,r={}){return El(e,t,Ol()({},Il,r,Pl))}function Ll(e,t,r,n){const o={bottom:n+e,height:e,left:r,right:r+t,top:n,width:t,x:r,y:n};return Tl(Tl({},o),{},{toJSON:()=>Tl({},o)})}const Ml=["children","className","options","reference"];class Rl extends qo().PureComponent{constructor(...e){super(...e),t(this,"popper",void 0),t(this,"popupRef",qo().createRef()),t(this,"createPopper",()=>{const{options:e,reference:t}=this.props,{current:r}=this.popupRef;if(r)return Dl(t,r,e)}),t(this,"handleEvent",e=>{e.stopPropagation()})}componentDidMount(){this.popper=this.createPopper()}componentDidUpdate(e){const{options:t,reference:r}=e,{options:n,reference:o}=this.props;this.popper&&(n!==t&&this.popper.setOptions(n),o!==r&&(this.popper.destroy(),this.popper=this.createPopper()))}componentWillUnmount(){this.popper&&this.popper.destroy()}render(){const e=this.props,{children:t,className:r,options:n,reference:o}=e,i=Se(e,Ml);return qo().createElement("div",g({ref:this.popupRef,className:yi()("ba-Popup",r),onClick:this.handleEvent,onMouseDown:this.handleEvent,onMouseMove:this.handleEvent,onMouseUp:this.handleEvent,onTouchMove:this.handleEvent,onTouchStart:this.handleEvent,role:"presentation"},i),qo().createElement("div",{className:"ba-Popup-arrow"}),qo().createElement("div",{className:"ba-Popup-content"},t))}}t(Rl,"defaultProps",{options:{}});const jl=["items","reference"],Nl={modifiers:[{name:"offset",options:{offset:[0,3]}},{name:"eventListeners",options:{scroll:!1}}],placement:"bottom-start"},Fl=e=>{let{items:t,reference:r}=e,n=Se(e,jl);return qo().createElement(Rl,{className:"ba-PopupList",options:Nl,reference:r},Qc()(t)?qo().createElement("div",{className:"ba-PopupList-prompt"},qo().createElement(Qo.FormattedMessage,Wc.popupListPrompt)):qo().createElement(uu,g({items:t},n)))},Bl=["className","collaborators","intl","editorState","isDisabled","placeholder"];class Ul extends zo.Component{constructor(...e){super(...e),t(this,"state",{activeItemIndex:0,popupAutoScroll:!1,popupReference:null}),t(this,"fetchCollaborators",Zc()(e=>{const{fetchCollaborators:t}=this.props,r=Ci(e),n=r?.mentionString.trim();n&&t(n)},500)),t(this,"handleResize",Zc()(()=>this.updatePopupReference(),100)),t(this,"getVirtualElement",e=>{const t=window.getSelection();if(!t?.focusNode)return null;const r=t.getRangeAt(0),n=r.endContainer,o=r.endOffset,{mentionString:i,mentionTrigger:a}=e,s=i.length+a.length,c=Math.max(0,o-s);r.setStart(n,c),r.setEnd(n,c);const u=r.getBoundingClientRect();return r.setStart(n,o),r.setEnd(n,o),{getBoundingClientRect:()=>u}}),t(this,"updatePopupReference",()=>{const{editorState:e}=this.props,t=Ci(e);this.setState({popupReference:t?this.getVirtualElement(t):null})}),t(this,"saveCursorPosition",()=>{const{editorState:e,setCursorPosition:t}=this.props;t(e.getSelection().getFocusOffset())}),t(this,"stopDefaultEvent",e=>{e.preventDefault(),e.stopPropagation()}),t(this,"setPopupListActiveItem",(e,t=!1)=>this.setState({activeItemIndex:e,popupAutoScroll:t})),t(this,"handleChange",e=>{const{onChange:t}=this.props;this.fetchCollaborators(e),t(e)}),t(this,"handleSelect",e=>{const{collaborators:t,editorState:r}=this.props,n=function(e,t,r){const{start:n,end:o}=t||{},{id:i,name:a}=r,s=e.getCurrentContent(),c=e.getSelection().merge({anchorOffset:n,focusOffset:o}),u="@".concat(a),l=s.createEntity("MENTION","IMMUTABLE",{id:i}).getLastCreatedEntityKey(),d=Si.Modifier.replaceText(s,c,u,null,l),f=c.getStartOffset()+u.length,p=c.merge({anchorOffset:f,focusOffset:f}),h=Si.Modifier.insertText(d,p," ");return Si.EditorState.push(e,h,"change-block-type")}(r,Ci(r),t[e]);this.handleChange(n),this.setPopupListActiveItem(0)}),t(this,"handleReturn",e=>{const{activeItemIndex:t,popupReference:r}=this.state;return r?(this.stopDefaultEvent(e),this.handleSelect(t),"handled"):"not-handled"}),t(this,"handleArrow",e=>{const{collaborators:t}=this.props,{popupReference:r}=this.state,{length:n}=t;return r&&n?(this.stopDefaultEvent(e),n):0}),t(this,"handleUpArrow",e=>{const{activeItemIndex:t}=this.state,r=this.handleArrow(e);r&&this.setPopupListActiveItem(0===t?r-1:t-1,!0)}),t(this,"handleDownArrow",e=>{const{activeItemIndex:t}=this.state,r=this.handleArrow(e);r&&this.setPopupListActiveItem(t===r-1?0:t+1,!0)}),t(this,"handleMouseDown",e=>e.preventDefault())}componentDidMount(){window.addEventListener("resize",this.handleResize)}componentDidUpdate({editorState:e}){const{editorState:t}=this.props;e!==t&&this.updatePopupReference()}componentWillUnmount(){window.removeEventListener("resize",this.handleResize),this.saveCursorPosition()}render(){const e=this.props,{className:t,collaborators:r,intl:n,editorState:o,isDisabled:i,placeholder:a}=e,s=Se(e,Bl),{activeItemIndex:c,popupAutoScroll:u,popupReference:l}=this.state;return zo.createElement("div",{className:yi()(t,"ba-ReplyField")},zo.createElement(Si.Editor,g({},s,{ariaLabel:n.formatMessage(Wc.ariaLabelReplyField),ariaMultiline:!0,editorState:o,handleReturn:this.handleReturn,onChange:this.handleChange,onDownArrow:this.handleDownArrow,onUpArrow:this.handleUpArrow,placeholder:a,readOnly:i,stripPastedStyles:!0,tabIndex:0,webDriverTestID:"ba-ReplyField-editor"})),l&&zo.createElement(Fl,{activeItemIndex:c,autoScroll:u,items:r,onActivate:this.setPopupListActiveItem,onMouseDown:this.handleMouseDown,onSelect:this.handleSelect,reference:l}))}}t(Ul,"defaultProps",{isDisabled:!1});const Kl={fetchCollaborators:Kr,setCursorPosition:Kt},Hl=(0,Go.connect)(e=>({collaborators:zr(e),cursorPosition:$t(e)}),Kl)(Ul),zl=({contentState:e,entityKey:t,children:r})=>{const{id:n}=e.getEntity(t).getData();return n?zo.createElement("a",{className:"ba-MentionItem-link","data-testid":"ba-MentionItem-link",href:`/profile/${n}`},r):zo.createElement("span",{className:"ba-MentionItem-link","data-testid":"ba-MentionItem-text"},r)},ql=(e,t,r)=>{e.findEntityRanges(e=>{const t=e.getEntity();return null!==t&&"MENTION"===r.getEntity(t).getType()},t)},Vl=(0,Go.connect)(e=>({cursorPosition:$t(e)}))((Xl={handleSubmit:({editorState:e},{props:{onSubmit:t}})=>t(ki(e).text),mapPropsToErrors:()=>({editorState:"initial"}),mapPropsToValues:({cursorPosition:e,value:t=""})=>{const r=function(e){const t=new Si.CompositeDecorator([{strategy:ql,component:zl}]);return Si.EditorState.set(e,{decorator:t})}(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=Si.ContentState.createFromText(e),r=t.getFirstBlock();for(;null!=r;){const e=r.getText(),n=e?Ei(e):null;if(null==n)r=t.getBlockAfter(r.getKey());else{const{data:e,start:o,end:i}=n;t.createEntity("MENTION","IMMUTABLE",e);const a=t.getLastCreatedEntityKey(),s=Si.SelectionState.createEmpty(r.getKey()).merge({anchorOffset:o,focusOffset:i});t=Si.Modifier.replaceText(t,s,e.content,null,a),r=t.getBlockForKey(r.getKey())}}return Si.EditorState.createWithContent(t,xi)}(t)),n=t?e:0;return{editorState:Si.EditorState.forceSelection(r,r.getSelection().merge({anchorOffset:n,focusOffset:n,hasFocus:!0}))}},validate:({editorState:e})=>{const t={};if(e){const{text:r}=ki(e);r&&0!==r.trim().length?r.length>1e4&&(t.editorState="maxlength"):t.editorState="required"}return t},validateOnMount:!0},Jl=void 0===(Zl=Xl.mapPropsToValues)?function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&"function"!=typeof e[r]&&(t[r]=e[r]);return t}:Zl,Ql=wc(Xl,["mapPropsToValues"]),function(e){var t=e.displayName||e.name||e.constructor&&e.constructor.name||"Component",r=function(t){function r(){var r;return(r=t.apply(this,arguments)||this).validate=function(e){return Ql.validate(e,r.props)},r.validationSchema=function(){return Ec(Ql.validationSchema)?Ql.validationSchema(r.props):Ql.validationSchema},r.handleSubmit=function(e,t){return Ql.handleSubmit(e,bc({},t,{props:r.props}))},r.renderFormComponent=function(t){return(0,zo.createElement)(e,Object.assign({},r.props,t))},r}return vc(r,t),r.prototype.render=function(){var e=wc(this.props,["children"]);return(0,zo.createElement)(Fc,Object.assign({},e,Ql,{validate:Ql.validate&&this.validate,validationSchema:Ql.validationSchema&&this.validationSchema,initialValues:Jl(this.props),initialStatus:Ql.mapPropsToStatus&&Ql.mapPropsToStatus(this.props),initialErrors:Ql.mapPropsToErrors&&Ql.mapPropsToErrors(this.props),initialTouched:Ql.mapPropsToTouched&&Ql.mapPropsToTouched(this.props),onSubmit:this.handleSubmit,children:this.renderFormComponent}))},r}(zo.Component);return r.displayName="WithFormik("+t+")",yc()(r,e)})(e=>{const{errors:t,isPending:r,onCancel:n,onChange:o,setFieldValue:i,values:a}=e,s=qo().useRef(null),c=(0,Qo.useIntl)(),u=Object.keys(t).length>0,{editorState:l}=a,d=()=>{n(ki(l).text)},f=e=>{"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),d())};return qo().useEffect(()=>{const{current:e}=s;return e&&e.addEventListener("keydown",f),()=>{e&&e.removeEventListener("keydown",f)}},[s]),qo().createElement(zc,{ref:s,className:"ba-ReplyForm","data-testid":"ba-ReplyForm",onPointerEnterCapture:void 0,onPointerLeaveCapture:void 0,placeholder:void 0},qo().createElement("div",{className:"ba-Popup-main"},qo().createElement(Hl,{className:"ba-Popup-field","data-testid":"ba-Popup-field",editorState:l,intl:c,isDisabled:r,onChange:e=>{o(ki(e).text),i("editorState",e)},placeholder:c.formatMessage(Wc.fieldPlaceholder)})),qo().createElement("div",{className:"ba-Popup-footer"},qo().createElement(Yc,{"data-resin-target":"cancel","data-testid":"ba-Popup-cancel",isDisabled:r,onClick:d,type:"button"},qo().createElement(Qo.FormattedMessage,Wc.buttonCancel)),qo().createElement(Yc,{"data-resin-target":"post","data-testid":"ba-Popup-submit",isDisabled:u||r,isPrimary:!0,type:"submit"},qo().createElement(Qo.FormattedMessage,Wc.buttonPost))))})),Gl=Vl,Wl=["isPending","onCancel","onChange","onSubmit","value"],$l=()=>{const{userAgent:e}=navigator;return e.indexOf("Trident/")>0},Yl={modifiers:[{name:"arrow",options:{element:".ba-Popup-arrow",padding:10}},{name:"flip",options:{altAxis:!1,fallbackPlacements:["bottom","top","left","right"]}},{name:"offset",options:{offset:[0,15]}},{name:"preventOverflow",options:{padding:5}}]};var Xl,Zl,Jl,Ql;function ed(e){const t=(0,Qo.useIntl)(),r=qo().useRef(null),n=qo().useRef((()=>{const{modifiers:e}=Yl,t=$l()?"top":"bottom";return{modifiers:$l()?[...e,{name:"eventListeners",options:{scroll:!1}}]:e,placement:t}})()),o=(0,Go.useSelector)(st),i=(0,Go.useSelector)(ct);qo().useEffect(()=>{const{current:e}=r;e?.popper&&e.popper.update()},[r,o,i]);const{isPending:a,onCancel:s,onChange:c,onSubmit:u,value:l=""}=e,d=Se(e,Wl);return qo().createElement(wi,null,qo().createElement(Rl,g({ref:r,"aria-label":t.formatMessage(Wc.ariaLabelComment),"data-resin-component":"popupReply",options:n.current,role:"dialog"},d),qo().createElement(Gl,{isPending:a,onCancel:s,onChange:c,onSubmit:u,value:l})))}const td=require("@box/blueprint-web"),rd=require("@box/threaded-annotations");function nd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}const od=/@\[(\d+):([^\]]+)\]/g,id=e=>{if(!e)return{type:"doc",content:[]};const r=e.split("\n").map(e=>{const r=(e=>{const t=[];let r=0;od.lastIndex=0;let n=od.exec(e);for(;null!==n;){const[o,i,a]=n,{index:s}=n;s>r&&t.push({type:"text",text:e.slice(r,s)}),t.push({type:"mention",attrs:{authorId:"",mentionId:i,mentionedUserId:i,mentionedUserName:a}}),r=s+o.length,n=od.exec(e)}return r<e.length&&t.push({type:"text",text:e.slice(r)}),t})(e);return function(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?nd(Object(n),!0).forEach(function(r){t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({type:"paragraph"},r.length>0?{content:r}:{})});return{type:"doc",content:r}},ad=(e,t)=>{if(!t)return;const r=new Date(t).getTime();return Number.isNaN(r)?void 0:r!==new Date(e).getTime()?r:void 0},sd=e=>{const t=[];return e.description&&t.push((e=>({author:{email:e.created_by?.login??"",id:parseInt(e.created_by?.id??"0",10),name:e.created_by?.name??""},createdAt:new Date(e.created_at).getTime(),id:e.id,message:id(e.description?.message??""),permissions:{canDelete:e.permissions?.can_delete??!1,canEdit:e.permissions?.can_edit??!1,canReply:e.permissions?.can_reply??!1,canResolve:e.permissions?.can_resolve??!1},updatedAt:ad(e.created_at,e.modified_at)}))(e)),e.replies&&e.replies.forEach(e=>{t.push((e=>({author:{email:e.created_by?.login??"",id:parseInt(e.created_by?.id??"0",10),name:e.created_by?.name??""},createdAt:new Date(e.created_at).getTime(),id:e.id,message:id(e.message),permissions:{canDelete:e.permissions?.can_delete??!1,canEdit:e.permissions?.can_edit??!1,canReply:e.permissions?.can_reply??!1,canResolve:e.permissions?.can_resolve??!1},updatedAt:ad(e.created_at,e.modified_at)}))(e))}),t},cd=e=>{const t=e.item;return{email:t?.email??t?.login??"",id:parseInt(t?.id??e.id,10),name:t?.name??e.name,value:e.id}},ud=(0,zo.createContext)({});function ld(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function dd(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?ld(Object(n),!0).forEach(function(r){t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ld(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const fd=e=>e?"doc"===e.type&&e.content?e:{type:"doc",content:[e]}:{type:"doc",content:[]},pd=({annotationId:e,onSubmit:t,popupPortalEl:r,reference:n})=>{const o=(0,Qo.useIntl)(),i=(0,Go.useDispatch)(),{onCopyLink:a}=qo().useContext(ud),s=qo().useRef(null),c=qo().useRef(),u=qo().useRef({modifiers:[{name:"flip",options:{altAxis:!1,fallbackPlacements:["top","left","right"]}},{name:"offset",options:{offset:[0,15]}},{name:"preventOverflow",options:{padding:5}}],placement:"bottom"}),l=(0,Go.useSelector)(tt),d=(0,Go.useSelector)(nt),f=(0,Go.useSelector)(ot),p=(0,Go.useSelector)(ut),h=qo().useMemo(()=>a&&e&&f?()=>a({annotationId:e,fileVersionId:f}):void 0,[a,e,f]),g=(0,Go.useSelector)(t=>e?qe(t,e):void 0),[y,m]=qo().useState({}),b=qo().useRef(new Map),v=qo().useRef({apiHost:l,token:p});v.current={apiHost:l,token:p};const w=qo().useCallback(async e=>{const t=b.current.get(e);if(t)return t;const r=l,n=p,o=await(async(e,t,r,n)=>{try{if(!r)return null;const o=await(async(e,t)=>{const r="function"==typeof e?await e(t):e;return r?"string"==typeof r?r:(n=t in r?r[t]:r)?"string"==typeof n?n:n.read??n.write??null:null:null;var n})(t,`file_${r}`);if(!o)return null;const i=await fetch(`${e}/2.0/users/${n}/avatar?pic_type=large`,{headers:{Authorization:`Bearer ${o}`}});if(!i.ok)return null;const a=await i.blob();return URL.createObjectURL(a)}catch{return null}})(r,n,d,e);if(!o)return null;if(v.current.apiHost!==r||v.current.token!==n)return URL.revokeObjectURL(o),null;const i=b.current.get(e);return i?(URL.revokeObjectURL(o),i):(b.current.set(e,o),o)},[l,d,p]);qo().useEffect(()=>(s.current&&(c.current=Dl(n,s.current,u.current)),()=>{c.current?.destroy()}),[n]),qo().useEffect(()=>{const e=b.current;return()=>{e.forEach(e=>URL.revokeObjectURL(e)),e.clear()}},[]),qo().useEffect(()=>{b.current.forEach(e=>URL.revokeObjectURL(e)),b.current.clear(),m({})},[l,p]);const S=qo().useCallback(e=>{e.stopPropagation()},[]);qo().useEffect(()=>{if(!g)return;const e=Array.from(new Set(sd(g).map(e=>String(e.author.id))));let t=!1;return Promise.all(e.map(async e=>[e,await w(e)])).then(e=>{t||m(t=>{const r=dd({},t);return e.forEach(([e,t])=>{t&&(r[e]=t)}),r})}),()=>{t=!0}},[g,w]);const x=qo().useMemo(()=>g?sd(g).map(e=>dd(dd({},e),{},{author:dd(dd({},e.author),{},{avatarUrl:y[String(e.author.id)]})})):[],[g,y]),E="resolved"===g?.status,_=E?g?.resolution?.resolved_by?.name??g?.modified_by?.name:void 0,O=E?g?.resolution?.resolved_at??g?.modified_at:void 0,C=O?new Date(O).getTime():void 0,k=qo().useMemo(()=>({allowEmptyQuery:!0,ariaRoleDescription:o.formatMessage(Wc.ariaLabelMentionSelector),fetchAvatarUrls:async e=>{const t={};return await Promise.all(e.map(async({id:e})=>{const r=String(e),n=await w(r);n&&(t[r]=n)})),t},fetchUsers:async e=>{const t=await i(Kr(e));return Kr.fulfilled.match(t)?t.payload.entries.map(cd):[]},loadingAriaLabel:o.formatMessage(Wc.ariaLabelMentionLoading)}),[i,w,o]),A=qo().useCallback(async r=>{const n=fd(r),{text:o}=(0,rd.serializeMentionMarkup)(n);e?await i(gt({annotationId:e,message:o})):t(o)},[e,i,t]),T=qo().useCallback(async(t,r)=>{if(!e)return;const n=fd(r),{text:o}=(0,rd.serializeMentionMarkup)(n);t!==e?await i(bt({annotationId:e,replyId:t,payload:{message:o}})):await i(mt({annotationId:e,payload:{message:o}}))},[e,i]),I=qo().useCallback(async()=>{e&&await i(yt(e))},[e,i]),P=qo().useCallback(async t=>{e&&t!==e&&await i(vt({annotationId:e,replyId:t}))},[e,i]),D=qo().useCallback(async()=>{if(!e)return;const t=await i(mt({annotationId:e,payload:{status:"resolved"}}));mt.fulfilled.match(t)&&i(Ot(null))},[e,i]),L=qo().useCallback(async()=>{e&&await i(mt({annotationId:e,payload:{status:"open"}}))},[e,i]);return r?fi().createPortal(qo().createElement(wi,null,qo().createElement("div",{ref:s,"aria-label":o.formatMessage(Wc.ariaLabelComment),className:"ba-PopupV2","data-resin-component":e?"popupThreadV2":"popupReplyV2",onClick:S,onMouseDown:S,onMouseMove:S,onMouseUp:S,onTouchMove:S,onTouchStart:S,role:"presentation"},qo().createElement(td.BlueprintModernizationProvider,{enableModernizedComponents:!0},qo().createElement(td.TooltipProvider,null,qo().createElement(rd.MentionContextProvider,{value:{collaborationPopoverProps:{onSubmit:()=>Promise.resolve()}}},e?qo().createElement(rd.ThreadedAnnotationsV2,{isAnnotations:!0,isResolved:E,messages:x,onAvatarClick:Vr(),onCopyLink:h,onDelete:P,onEdit:T,onPost:A,onResolve:D,onThreadDelete:I,onUnresolve:L,resolvedAt:C,resolvedBy:_,userSelectorProps:k}):qo().createElement(rd.MessageEditorV2,{isFirstAnnotation:!0,onPost:A,userSelectorProps:k})))),qo().createElement("div",{"data-threaded-annotations-portal":!0}))),r):null};function hd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function gd(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?hd(Object(n),!0).forEach(function(r){t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const yd={[Lt.DRAWING]:er,[Lt.HIGHLIGHT]:tr,[Lt.REGION]:rr},md=["callbacks","intl","store"];function bd(e){return function(t){let{callbacks:r,intl:n,store:o}=t,i=Se(t,md);return zo.createElement(Qo.RawIntlProvider,{value:n},zo.createElement(Go.Provider,{store:o},zo.createElement(ud.Provider,{value:r??{}},zo.createElement(e,i))))}}const vd={display:"none"},wd=e=>{const{x:t,y:r}=e,{x:n,y:o}=(e=>{const{height:t,width:r}=e;return{x:r/2,y:t/2}})(e);return{x:n+t,y:o+r}};function Sd(e){return"region"===e?.target?.type}function xd(e){if(!e)return vd;const{height:t,width:r,x:n,y:o}=e;return{display:"block",height:`${t}%`,left:`${n}%`,top:`${o}%`,width:`${r}%`}}const Ed=["children","className","onDrawStart","onDrawStop","onDrawUpdate","onMouseOut","onMouseOver","status"];let _d=function(e){return e.dragging="dragging",e.drawing="drawing",e.init="init",e}({});function Od(e,t){const{children:r,className:n,onDrawStart:o,onDrawStop:i,onDrawUpdate:a,onMouseOut:s=Vr(),onMouseOver:c=Vr(),status:u}=e,l=Se(e,Ed);return qo().useEffect(()=>{const e=({buttons:e,clientX:t,clientY:r})=>{1===e&&u!==_d.init&&a(t,r)},t=()=>{i()};return u!==_d.init&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)),()=>{document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",t)}},[i,a,u]),qo().createElement("div",g({ref:t,className:n,onClick:e=>{e.preventDefault(),e.stopPropagation()},onMouseDown:({buttons:e,clientX:t,clientY:r})=>{1===e&&o(t,r)},onMouseOut:()=>{s()},onMouseOver:()=>{c()},onTouchCancel:()=>{i()},onTouchEnd:()=>{i()},onTouchMove:({targetTouches:e})=>{a(e[0].clientX,e[0].clientY)},onTouchStart:({targetTouches:e})=>{o(e[0].clientX,e[0].clientY)},role:"presentation"},l),r)}const Cd=qo().forwardRef(Od),kd={modifiers:[{name:"offset",options:{offset:[0,20]}}],placement:"right"},Ad=(e=0,t=0)=>()=>Ll(0,0,e,t);function Td(){const e=qo().useRef(null),t=qo().useRef({getBoundingClientRect:Ad()}),r=({clientX:r,clientY:n})=>{t.current.getBoundingClientRect=Ad(r,n);const{current:o}=e;o?.popper&&o.popper.update()};return qo().useEffect(()=>(document.addEventListener("mousemove",r),()=>{document.removeEventListener("mousemove",r)}),[]),qo().createElement(Rl,{ref:e,className:"ba-PopupCursor",options:kd,reference:t.current},qo().createElement(Qo.FormattedMessage,Wc.regionCursorPrompt))}function Id(e){const t=qo().useRef(Ae());return qo().useEffect(()=>{e(t.current)},[e]),t.current}function Pd(e,t){const{className:r,isActive:n,onMount:o=Vr(),shape:i}=e,a=Id(o);return qo().createElement("div",{ref:t,className:yi()("ba-RegionRect",r,{"is-active":n}),"data-ba-reference-id":a,style:xd(i)})}const Dd=qo().forwardRef(Pd),Ld=/(auto|scroll)/,Md=["overflow","overflow-x","overflow-y"],Rd=e=>e&&e!==document.body?(e=>{if(e.nodeType!==Node.ELEMENT_NODE)return!1;const t=getComputedStyle(e,null);return Md.some(e=>Ld.test(t.getPropertyValue(e)))})(e)?e:Rd(e.parentNode):document.body,jd=10;function Nd({className:e,onAbort:t,onStart:r,onStop:n,rotation:o=0}){const[i,a]=zo.useState(_d.init),[s,c]=zo.useState(!1),u=zo.useRef(null),l=zo.useRef(null),d=zo.useRef(null),f=zo.useRef(null),p=zo.useRef(null),h=zo.useRef(!1),y=zo.useRef(null),m=zo.useRef(null),b=()=>{const{current:e}=u,{current:t}=l,{current:r}=f,{current:n}=d,{current:o}=p;if(!e||null===t||null===n||null===r||null===o)return null;const i=e.offsetWidth,a=e.offsetHeight,s=a-jd,c=i-jd,h=Math.max(0,i-0),g=Math.max(0,a-0),y=t>=c&&n>=c?t-jd:t,m=r>=s&&o>=s?r-jd:r,b=Math.min(Math.max(0,y<n?y:n),h),v=Math.min(Math.max(0,m<o?m:o),g),w=Math.min(Math.max(0,n>y?n:y),h),S=Math.min(Math.max(0,o>m?o:m),g);return{height:Math.max(jd,S-v)/a*100,type:"rect",width:Math.max(jd,w-b)/i*100,x:b/i*100,y:v/a*100}},v=zo.useCallback(()=>{const e=b();a(_d.init),l.current=null,f.current=null,d.current=null,p.current=null,h.current=!0,e?n(e):t()},[t,n,a]),w=zo.useCallback((e,t)=>{const[n,s]=Or(e,t,u.current,o),{current:c}=l,{current:g}=f,{current:y}=d;(null!==y||((e,t,r,n)=>Math.abs(r-e)>=jd||Math.abs(n-t)>=jd)(c??0,g??0,n,s))&&(d.current=n,p.current=s,h.current=!0,i!==_d.drawing&&(a(_d.drawing),r()))},[i,r,o,a]),S=e=>{m.current=window.requestAnimationFrame(e)},x=()=>{const{current:e}=h,{current:t}=y,r=b();e&&t&&r&&(g(t.style,xd(r)),h.current=!1),S(x)};return zo.useEffect(()=>(i!==_d.init&&S(x),()=>{const{current:e}=m;e&&window.cancelAnimationFrame(e)}),[i]),function(e){const{enabled:t,intensity:r=.2,onScroll:n=Vr(),reference:o,size:i=50}=e,a=qo().useRef(null),s=qo().useRef(null),c=qo().useRef(null),u=qo().useRef(null),l=qo().useRef(null),d=e=>{a.current=window.requestAnimationFrame(e)},f=()=>{const{current:e}=s,{current:t}=c,{current:o}=u,{current:a}=l;if(!e||!t||null===o||null===a)return d(f);const p=t.bottom-i,h=t.left+i,g=t.right-i,y=t.top+i,m=a>p,b=o<h,v=o>g,w=a<y;if(!(m||b||v||w))return d(f);let S=e.scrollLeft,x=e.scrollTop;return b?S-=(h-o)*r:v&&(S+=(o-g)*r),w?x-=(y-a)*r:m&&(x+=(a-p)*r),e.scrollLeft=Math.max(0,Math.min(Math.round(S),e.scrollWidth)),e.scrollTop=Math.max(0,Math.min(Math.round(x),e.scrollHeight)),n(o,a),d(f)},p=({clientX:e,clientY:t})=>{u.current=e,l.current=t},h=({targetTouches:e})=>{u.current=e[0].clientX,l.current=e[0].clientY};qo().useEffect(()=>{o&&(s.current=Rd(o),c.current=s.current.getBoundingClientRect())},[o]),qo().useEffect(()=>(t&&(document.addEventListener("mousemove",p),document.addEventListener("touchmove",h),d(f)),()=>{const{current:e}=a;e&&window.cancelAnimationFrame(e),a.current=null,u.current=null,l.current=null,document.removeEventListener("mousemove",p),document.removeEventListener("touchmove",h)}),[t])}({enabled:i!==_d.init,onScroll:(e,t)=>{w(e,t)},reference:u.current}),zo.createElement(Cd,{ref:u,className:yi()(e,"ba-RegionCreator"),"data-testid":"ba-RegionCreator",onDrawStart:(e,t)=>{const[r,n]=Or(e,t,u.current,o);a(_d.dragging),l.current=r,f.current=n,d.current=null,p.current=null,h.current=!0},onDrawStop:v,onDrawUpdate:w,onMouseOut:()=>{c(!1)},onMouseOver:()=>{c(!0)},status:i},i===_d.drawing&&zo.createElement(Dd,{ref:y,className:"ba-RegionCreator-rect",isActive:!0}),i===_d.init&&s&&zo.createElement(Td,null))}function Fd(e){return 1e3*(e?.currentTime??0)}const Bd=({targetType:e,referenceEl:t,activeAnnotationId:r,annotations:n})=>{const[o,i]=(0,zo.useState)(!1),[a,s]=(0,zo.useState)(null),c=(0,zo.useCallback)(()=>Fd(t),[t]);return(0,zo.useEffect)(()=>{if(e!==He.FRAME||!t)return;const r=()=>{i(!0)},n=()=>{i(!1),s(null)},u=()=>{if(o&&null!==a){const e=c();Math.abs(e-a)<=100&&(i(!1),s(null))}};return t.addEventListener("seeking",r),t.addEventListener("seeked",n),t.addEventListener("timeupdate",u),()=>{t.removeEventListener("seeking",r),t.removeEventListener("seeked",n),t.removeEventListener("timeupdate",u)}},[e,t,o,a,c]),(0,zo.useEffect)(()=>{if(e===He.FRAME&&r&&t){const e=c(),t=n.find(e=>e.id===r);if(t){const r=t.target.location.value;Math.abs(e-r)>100&&(s(r),i(!0))}}},[r,e,t,n,c]),{isVideoSeeking:o,getCurrentVideoLocation:c}};class Ud extends zo.PureComponent{constructor(...e){super(...e),t(this,"state",{}),t(this,"handleAbort",()=>{const{resetCreator:e}=this.props;e()}),t(this,"handleStart",()=>{const{setStaged:e,setStatus:t}=this.props;e(null),t(Bt.started)}),t(this,"handleStagedMount",e=>{const{setReferenceId:t}=this.props;t(e)}),t(this,"handleStop",e=>{const{location:t,setStaged:r,setStatus:n,targetType:o,referenceEl:i}=this.props;r({location:o!==He.FRAME?t:Fd(i),shape:e}),n(Bt.staged)})}render(){const{isCreating:e,rotation:t,staged:r}=this.props;return zo.createElement(zo.Fragment,null,e&&zo.createElement(Nd,{className:"ba-RegionCreation-creator",onAbort:this.handleAbort,onStart:this.handleStart,onStop:this.handleStop,rotation:t}),r&&zo.createElement("div",{className:"ba-RegionCreation-target"},zo.createElement(Dd,{isActive:!0,onMount:this.handleStagedMount,shape:r.shape})))}}t(Ud,"defaultProps",{isCreating:!1,rotation:0});const Kd={resetCreator:Ut,setReferenceId:zt,setStaged:qt,setStatus:Vt},Hd=(0,Go.connect)((e,{location:t})=>{const r=Jt(e,t);return{isCreating:Nt(e)===Lt.REGION&&Qt(e)!==Bt.pending,rotation:st(e),staged:rr(r)?r:null}},Kd)(bd(Ud));class zd extends Yo{decorate(){this.reactEl.classList.add("ba-Layer--regionCreation"),this.reactEl.dataset.testid="ba-Layer--regionCreation"}render(e){this.root||(this.root=Vo.createRoot(this.reactEl)),this.root.render(zo.createElement(Hd,g({targetType:this.targetType,referenceEl:this.referenceEl,location:this.location},e)))}}const qd=(e,t)=>{const{annotationId:r,className:n,isActive:o,onSelect:i=Vr(),shape:a}=e;return zo.createElement("button",{ref:t,className:yi()("ba-RegionAnnotation",n,{"is-active":o}),"data-ba-annotation-id":r,"data-resin-itemid":r,"data-resin-target":"highlightRegion","data-testid":`ba-AnnotationTarget-${r}`,onFocus:()=>{i(r)},onMouseDown:e=>{1===e.buttons&&(e.preventDefault(),e.stopPropagation(),e.currentTarget.focus())},style:xd(a),type:"button"})},Vd=zo.forwardRef(qd);function Gd(){const e=Go.useSelector(Qt),t=Go.useSelector(Dr);return e===Bt.init&&!t}function Wd(e){return e>=0&&e<=100}function $d({target:e}){const{shape:t}=e,{height:r,width:n,x:o,y:i}=t;return Wd(r)&&Wd(n)&&Wd(o)&&Wd(i)}function Yd({target:e},{target:t}){const{shape:r}=e,{shape:n}=t;return r.height*r.width>n.height*n.width?-1:1}function Xd({activeId:e,annotations:t,className:r,onSelect:n=Vr()}){const o=Gd(),i=qo().createRef();return qo().createElement("div",{ref:i,className:yi()(r,{"is-listening":o}),"data-resin-component":"regionList"},t.filter($d).sort(Yd).map(({id:t,target:r})=>qo().createElement(Vd,{key:t,annotationId:t,isActive:e===t,onSelect:n,shape:r.shape})))}const Zd=qo().memo(Xd),Jd={setActiveAnnotationId:Ot},Qd=(0,Go.connect)((e,{location:t})=>({activeAnnotationId:ze(e),annotations:Ge(e,t).filter(Sd)}),Jd)(bd(e=>{const{activeAnnotationId:t,annotations:r,setActiveAnnotationId:n,referenceEl:o,targetType:i}=e,{isVideoSeeking:a}=Bd({targetType:i,referenceEl:o,activeAnnotationId:t||null,annotations:r||[]});let s=[];return i===He.FRAME?!a&&t&&(s=r.filter(e=>e.id===t)):s=r,zo.createElement(Zd,{activeId:t,annotations:s,className:"ba-RegionAnnotations-list",onSelect:e=>{n(e)}})}));class ef extends Yo{decorate(){this.reactEl.classList.add("ba-Layer--region"),this.reactEl.dataset.testid="ba-Layer--region"}render(e){this.root||(this.root=Vo.createRoot(this.reactEl)),this.root.render(zo.createElement(Qd,g({location:this.location,referenceEl:this.referenceEl,targetType:this.targetType},e)))}}const tf={createDrawing:e=>(t,r)=>{const{location:n,message:o,pathGroups:i,targetType:a}=e,s=r(),c={description:{message:o,type:"reply"},file_version:{id:ot(s)},target:{location:{type:a,value:n},path_groups:i,type:"drawing"}};return t(pt(c))},createHighlight:e=>(t,r)=>{const{location:n,message:o,shapes:i}=e,a=r(),s={description:{message:o,type:"reply"},file_version:{id:ot(a)},target:{location:{type:He.PAGE,value:n},shapes:i,type:"highlight"}};return t(pt(s))},createRegion:e=>(t,r)=>{const{location:n,message:o,shape:i,targetType:a}=e,s=r(),c={description:{message:o,type:"reply"},file_version:{id:ot(s)},target:{location:{type:a,value:n},shape:i,type:"region"}};return t(pt(c))},resetCreator:Ut,setMessage:Ht},rf=(0,Go.connect)((e,{location:t})=>({activeAnnotationId:ze(e),isPromoting:Pr(e),isThreadedAnnotation:lt(e,"isThreadedAnnotation"),message:Yt(e),mode:Nt(e),referenceId:Xt(e),staged:Jt(e,t),status:Qt(e)}),tf)(bd(e=>{const{activeAnnotationId:t,createDrawing:r=Vr(),createHighlight:n=Vr(),createRegion:o=Vr(),isPromoting:i=!1,isThreadedAnnotation:a=!1,message:s,mode:c,popupPortalEl:u,referenceId:l,resetCreator:d,setMessage:f,staged:p,status:h,targetType:g}=e,[y,m]=zo.useState(null),[b,v]=zo.useState(null),w=(yd[c]?.(p??null)??!1)||i,S=h!==Bt.started&&h!==Bt.init,x=h===Bt.pending,E=e=>{if(!p)return;const t=e??s;tr(p)?n(gd(gd({},p),{},{message:t,targetType:g})):rr(p)?o(gd(gd({},p),{},{message:t,targetType:g})):er(p)&&r(gd(gd({},p),{},{message:t,targetType:g}))};zo.useEffect(()=>{m(l?document.querySelector(`[data-ba-reference-id="${l}"]`):null)},[l]),zo.useEffect(()=>{if(!t||!a)return v(null),Vr();const e=`[data-ba-annotation-id="${CSS.escape(t)}"]`,r=document.querySelector(e);if(r)return v(r),Vr();v(null);const n=new MutationObserver(()=>{const t=document.querySelector(e);t&&(v(t),n.disconnect())});n.observe(document.body,{childList:!0,subtree:!0});const o=window.setTimeout(()=>{n.disconnect()},1e4);return()=>{n.disconnect(),window.clearTimeout(o)}},[t,a]);const _=w&&S&&y&&p;return _&&a?zo.createElement("div",{className:"ba-PopupLayer-popup"},zo.createElement(pd,{onSubmit:E,popupPortalEl:u,reference:y})):_?u?di.createPortal(zo.createElement("div",{className:"ba-PopupLayer-popup"},zo.createElement(ed,{isPending:x,onCancel:()=>{d()},onChange:(e="")=>{f(e)},onSubmit:E,reference:y,value:s})),u):null:a&&t&&b?zo.createElement("div",{className:"ba-PopupLayer-popup"},zo.createElement(pd,{annotationId:t,onSubmit:E,popupPortalEl:u,reference:b})):null})),nf=["popupPortalEl"];class of extends Yo{constructor(e){let{popupPortalEl:r}=e;super(Se(e,nf)),t(this,"popupPortalEl",void 0),this.popupPortalEl=r}decorate(){this.reactEl.classList.add("ba-Layer--popup"),this.reactEl.dataset.testid="ba-Layer--popup"}render({callbacks:e,intl:t,store:r}){this.root||(this.root=Vo.createRoot(this.reactEl)),this.root.render(zo.createElement(rf,{callbacks:e,intl:t,location:this.location,popupPortalEl:this.popupPortalEl,store:r,targetType:this.targetType}))}}const af=function(e){return zo.createElement("svg",g({"data-testid":"ChevronLeft",fill:"none",focusable:"false",height:"1em",role:"img",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg"},e),zo.createElement("path",{d:"M13.293 4.293a1 1 0 1 1 1.414 1.414L8.414 12l6.293 6.293.068.076a1 1 0 0 1-1.406 1.406l-.076-.068L7 13.414a2 2 0 0 1 0-2.828l6.293-6.293Z",fill:"currentColor"}))},sf=function(e){return zo.createElement("svg",g({"data-testid":"ChevronRight",fill:"none",focusable:"false",height:"1em",role:"img",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg"},e),zo.createElement("path",{d:"M9.293 4.293a1 1 0 0 1 1.414 0L17 10.586a2 2 0 0 1 0 2.828l-6.293 6.293a1 1 0 0 1-1.414-1.414L15.586 12 9.293 5.707a1 1 0 0 1 0-1.414Z",fill:"currentColor"}))},cf=(0,Qo.defineMessages)({ariaLabelViewNextReference:{id:"ba.boundingBoxHighlight.viewNextReference",defaultMessage:"View next reference"},ariaLabelViewPrevReference:{id:"ba.boundingBoxHighlight.viewPrevReference",defaultMessage:"View previous reference"}}),uf=({currentIndex:e,total:t,onPrev:r,onNext:n})=>{const o=(0,Qo.useIntl)(),i=0===e,a=e===t-1;return zo.useEffect(()=>{const e=e=>{"ArrowLeft"===e.key?(e.stopPropagation(),i||r(e)):"ArrowRight"===e.key&&(e.stopPropagation(),a||n(e))};return document.addEventListener("keydown",e,{capture:!0}),()=>document.removeEventListener("keydown",e,{capture:!0})},[i,a,r,n]),zo.createElement("div",{className:"ba-BoundingBoxHighlightNav","data-testid":"ba-BoundingBoxHighlightNav"},zo.createElement("button",{"aria-label":o.formatMessage(cf.ariaLabelViewPrevReference),className:"ba-BoundingBoxHighlightNav-btn","data-testid":"ba-BoundingBoxHighlightNav-prev",disabled:i,onClick:r,type:"button"},zo.createElement(af,{width:20,height:20})),zo.createElement("span",{className:"ba-BoundingBoxHighlightNav-counter"},e+1," / ",t),zo.createElement("button",{"aria-label":o.formatMessage(cf.ariaLabelViewNextReference),className:"ba-BoundingBoxHighlightNav-btn","data-testid":"ba-BoundingBoxHighlightNav-next",disabled:a,onClick:n,type:"button"},zo.createElement(sf,{width:20,height:20})))},lf=({boundingBox:e,currentIndex:t,isSelected:r,onNavigate:n,onSelect:o,total:i,prevId:a,nextId:s})=>{const{id:c,x:u,y:l,width:d,height:f}=e,p={display:"block",left:`${u}%`,top:`${l}%`,width:`${d}%`,height:`${f}%`};return zo.createElement("div",{className:yi()("ba-BoundingBoxHighlightRect",{"is-selected":r}),"data-testid":`ba-BoundingBoxHighlightRect-${c}`,onClick:e=>{e.stopPropagation(),o?.(c)},role:"presentation",style:p},r&&i>1&&zo.createElement(uf,{currentIndex:t,onNext:e=>{e.stopPropagation(),s&&n?.(s)},onPrev:e=>{e.stopPropagation(),a&&n?.(a)},total:i}))},df=({allBoundingBoxes:e,boundingBoxes:t,onNavigate:r,onSelect:n,selectedId:o})=>{const i=e.length;if(0===i)return null;const a=e.findIndex(e=>e.id===o),s=a>0?e[a-1].id:void 0,c=a<i-1?e[a+1].id:void 0;return zo.createElement("div",{className:"ba-BoundingBoxHighlightList","data-testid":"ba-BoundingBoxHighlightList"},t.map(e=>zo.createElement(lf,{key:e.id,boundingBox:e,currentIndex:a,isSelected:o===e.id,nextId:c,onNavigate:r,onSelect:n,prevId:s,total:i})))},ff=zo.memo(df),pf={onNavigate:jr,onSelect:Rr},hf=(0,Go.connect)((e,{location:t})=>({allBoundingBoxes:Fr(e),boundingBoxes:Br(e,t),selectedId:Ur(e)}),pf)(bd(ff));class gf extends Yo{decorate(){this.reactEl.classList.add("ba-Layer--boundingBoxHighlight"),this.reactEl.dataset.testid="ba-Layer--boundingBoxHighlight"}render(e){this.root||(this.root=Vo.createRoot(this.reactEl)),this.root.render(zo.createElement(hf,g({location:this.location},e)))}}const yf=["pathCommands"],mf=(e,t)=>{const{pathCommands:r}=e,n=Se(e,yf);return qo().createElement("path",g({ref:t,d:r,strokeLinecap:"round",vectorEffect:"non-scaling-stroke"},n))},bf=qo().forwardRef(mf),vf=(0,zo.createContext)("");function wf({borderStrokeWidth:e=0,isDecorated:t=!1,points:r=[]}){const n=qo().useContext(vf),o=Ne(r);return qo().createElement("g",{className:"ba-DecoratedDrawingPath"},t&&qo().createElement("g",{className:"ba-DecoratedDrawingPath-decoration"},qo().createElement(bf,{className:"ba-DecoratedDrawingPath-shadow",filter:`url(#${n})`,pathCommands:o}),qo().createElement(bf,{className:"ba-DecoratedDrawingPath-border",fill:"none",pathCommands:o,stroke:It,strokeWidth:e})),qo().createElement(bf,{pathCommands:o}))}const Sf=["className","children"];function xf(e,t){let{className:r,children:n}=e,o=Se(e,Sf);const{current:i}=qo().useRef(`ba-DrawingSVG-shadow_${Ae()}`);return qo().createElement("svg",g({ref:t,className:yi()("ba-DrawingSVG",r),preserveAspectRatio:"none",viewBox:"0 0 100 100"},o),qo().createElement("defs",null,qo().createElement("filter",{filterUnits:"userSpaceOnUse",id:i},qo().createElement("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"1"}))),qo().createElement(vf.Provider,{value:i},n))}const Ef=qo().forwardRef(xf),_f=({children:e,isActive:t=!1,rootEl:r,stroke:{color:n,size:o}})=>{let i=o,a=i+2;if(!("vector-effect"in document.body.style)){if(!r)return zo.createElement("g",{className:"ba-DrawingPathGroup"});const{clientWidth:e}=r,t=e/100;i/=t,a/=t}return zo.createElement("g",{className:yi()("ba-DrawingPathGroup",{"is-active":t}),fill:"transparent",stroke:n,strokeWidth:i},"function"==typeof e?e(a):e)},Of=(e,t)=>{const{annotationId:r,className:n,isActive:o=!1,onSelect:i=Vr(),rootEl:a,target:{path_groups:s}}=e,c=Fe(s),{x:u,y:l}=je(c),d=()=>{i(r)};return zo.createElement("a",{ref:t,className:yi()("ba-DrawingTarget",n,{"is-active":o}),"data-ba-annotation-id":r,"data-resin-itemid":r,"data-resin-target":"highlightDrawing","data-testid":`ba-AnnotationTarget-${r}`,href:"#",onFocus:d,onMouseDown:e=>{if(1!==e.buttons)return;const t=document.activeElement;e.preventDefault(),e.stopPropagation(),t&&t!==e.currentTarget&&t.blur&&t.blur(),e.currentTarget.focus?e.currentTarget.focus():d()},role:"button",tabIndex:0},zo.createElement("rect",g({fill:"transparent",transform:`translate(-${.1*u}, -${.1*l}) scale(1.1)`},c)),s.map(({clientId:e,paths:t,stroke:r})=>zo.createElement(_f,{key:e,isActive:o,rootEl:a,stroke:r},e=>t.map(({clientId:t,points:r})=>zo.createElement(wf,{key:t,borderStrokeWidth:e,isDecorated:!0,points:r})))))},Cf=zo.forwardRef(Of);function kf({target:{path_groups:e}}){return e.every(({paths:e})=>e.every(({points:e})=>e.every(({x:e,y:t})=>Wd(e)&&Wd(t))))}function Af({target:e},{target:t}){const{height:r,width:n}=Fe(e.path_groups),{height:o,width:i}=Fe(t.path_groups);return o*i-r*n}function Tf({activeId:e=null,annotations:t,className:r,onSelect:n=Vr()}){const[o,i]=qo().useState(null),a=Gd();return qo().createElement(Ef,{ref:i,className:yi()(r,{"is-listening":a}),"data-resin-component":"drawingList"},t.filter(kf).sort(Af).map(({id:t,target:r})=>qo().createElement(Cf,{key:t,annotationId:t,isActive:e===t,onSelect:n,rootEl:o,target:r})))}const If=qo().memo(Tf),Pf=Pt;function Df({className:e,color:t=Pf,onStart:r,onStop:n,rotation:o=0,size:i=4}){const[a,s]=qo().useState(_d.init),c=qo().useRef([]),u=qo().useRef(null),l=qo().useRef(!1),d=qo().useRef(null),f=qo().useRef(null),p=qo().useRef(null),h=qo().useMemo(()=>({color:t,size:i}),[t,i]),g=qo().useCallback(()=>{const{current:e}=u,{current:t}=c;if(!e||!t.length)return[];const r=e.offsetWidth,n=e.offsetHeight,{size:o}=h,i=r-o,a=n-o;return t.map(({x:e,y:t})=>({x:Math.min(i,Math.max(o,e))/r*100,y:Math.min(a,Math.max(o,t))/n*100}))},[h]),y=qo().useCallback(()=>{const e=g();!e||e.length<=1||(s(_d.init),c.current=[],l.current=!0,n({paths:[{points:e}],stroke:h}))},[g,n,s,h]),m=qo().useCallback((e,t)=>{const[n,i]=Or(e,t,u.current,o),{current:d}=c;d.push({x:n,y:i}),l.current=!0,a!==_d.drawing&&(s(_d.drawing),r())},[a,r,o,s]),b=e=>{p.current=window.requestAnimationFrame(e)},v=()=>{const{current:e}=l,{current:t}=d;e&&t&&(t.setAttribute("d",Ne(g())),l.current=!1),b(v)};return qo().useEffect(()=>(a!==_d.init&&b(v),()=>{const{current:e}=p;e&&window.cancelAnimationFrame(e)}),[a]),qo().useEffect(()=>{const{current:e}=u;e&&(e.style.cursor="crosshair",e.style.cursor=(e=>`url("data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='32' height='32' viewBox='0 0 32 32'>\n <defs>\n <path id='ba-DrawingCursor-b' d='M23.0868949,12.6610542 L21.7362465,14.0116939 C21.5985448,14.1493947 21.3758783,14.1493947 21.2381766,14.0116939 L17.9860729,10.7596114 C17.8483713,10.6219106 17.8483713,10.3992455 17.9860729,10.2615447 L19.3367214,8.91090502 C19.8845983,8.36303166 20.7752645,8.36303166 21.3260713,8.91090502 L23.0868949,10.6717173 C23.6377017,11.2195906 23.6377017,12.1102511 23.0868949,12.6610542 Z M16.825863,11.4217471 L9.13214756,19.1154126 L8.51102507,22.6751246 C8.4260602,23.1556124 8.8450249,23.5716446 9.32551588,23.4896101 L12.8852509,22.8655618 L20.5789664,15.1718963 C20.7166681,15.0341955 20.7166681,14.8115304 20.5789664,14.6738296 L17.3268627,11.4217471 C17.1862312,11.2840463 16.9635647,11.2840463 16.825863,11.4217471 Z M12.1352162,18.4562067 C11.974076,18.2950675 11.974076,18.0372447 12.1352162,17.8761055 L16.6471438,13.3642072 C16.8082841,13.203068 17.0661085,13.203068 17.2272488,13.3642072 C17.388389,13.5253464 17.388389,13.7831692 17.2272488,13.9443084 L12.7153212,18.4562067 C12.5541809,18.6173459 12.2963565,18.6173459 12.1352162,18.4562067 L12.1352162,18.4562067 Z M11.0775501,20.9201719 L12.4838652,20.9201719 L12.4838652,21.9836908 L10.5941293,22.3147587 L9.6829543,21.4035896 L10.0140243,19.513866 L11.0775501,19.513866 L11.0775501,20.9201719 Z'/>\n <filter id='ba-DrawingCursor-a' width='196.7%' height='196.7%' x='-48.3%' y='-41.7%' filterUnits='objectBoundingBox'>\n <feMorphology in='SourceAlpha' operator='dilate' radius='.75' result='shadowSpreadOuter1'/>\n <feOffset dy='1' in='shadowSpreadOuter1' result='shadowOffsetOuter1'/>\n <feGaussianBlur in='shadowOffsetOuter1' result='shadowBlurOuter1' stdDeviation='2'/>\n <feComposite in='shadowBlurOuter1' in2='SourceAlpha' operator='out' result='shadowBlurOuter1'/>\n <feColorMatrix in='shadowBlurOuter1' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.24647618 0'/>\n </filter>\n </defs>\n <g fill='none' stroke-linejoin='round'>\n <use fill='#000' filter='url(#ba-DrawingCursor-a)' xlink:href='#ba-DrawingCursor-b'/>\n <path fill='${e}' fill-rule='evenodd' stroke='#FFF' stroke-width='.75' d='M16.8075762,10.9097054 L21.119532,14.6460363 L13.0730631,23.2133559 L9.38862666,23.8592613 C9.02061417,23.9220923 8.67630709,23.7937251 8.44046,23.5578795 C8.23387707,23.3512979 8.11025348,23.0623685 8.12610763,22.7471873 L8.14160649,22.6106659 L8.78311611,18.9341134 L16.8075762,10.9097054 Z M10.3290377,19.888866 L10.0859707,21.276275 L10.7214427,21.9117429 L12.1088652,21.6686767 L12.1088652,21.2951719 L10.7025501,21.2951719 L10.3290377,19.888866 Z M16.912308,13.6293731 L12.4003804,18.1412714 L12.3922785,18.1528739 L12.3922785,18.1528739 L12.389361,18.1661561 C12.389361,18.1753081 12.3934679,18.1841284 12.4003804,18.1910408 C12.4072938,18.1979542 12.4161155,18.2020611 12.4252687,18.2020611 C12.4344219,18.2020611 12.4432436,18.1979542 12.450157,18.1910408 L12.450157,18.1910408 L16.9620846,13.6791425 L16.9701864,13.66754 L16.9701864,13.66754 L16.973104,13.6542578 C16.973104,13.6384287 16.9537538,13.6286304 16.912308,13.6293731 L16.912308,13.6293731 Z M20.3302976,8.125 C20.7859086,8.125 21.2419828,8.29834457 21.5912354,8.64573912 L21.5912354,8.64573912 L23.3513511,10.4058452 C23.7004504,10.7530854 23.875,11.2089541 23.875,11.6652871 C23.875,12.1211084 23.7008005,12.577481 23.3520591,12.9262201 L23.3520591,12.9262201 L21.7544376,14.5238313 L17.4797801,10.8169258 L19.0500461,8.66761683 C19.3996549,8.30599451 19.8646885,8.125 20.3302976,8.125 Z'/>\n </g>\n </svg>`)}") 6 22, crosshair`)(t))},[t,u]),qo().createElement(Cd,{ref:u,className:yi()(e,"ba-DrawingCreator"),"data-testid":"ba-DrawingCreator",onDrawStart:(e,t)=>{const[r,n]=Or(e,t,u.current,o);s(_d.dragging),c.current=[{x:r,y:n}],l.current=!0},onDrawStop:y,onDrawUpdate:m,status:a},a!==_d.init&&qo().createElement(Ef,{ref:f,className:"ba-DrawingCreator-current"},qo().createElement(_f,{rootEl:f.current,stroke:h},qo().createElement(bf,{ref:d}))))}const Lf=["children","onMount"];function Mf(e,t){const{children:r,onMount:n=Vr()}=e,o=Se(e,Lf),i=Id(n);return qo().createElement("g",g({ref:t,"data-ba-reference-id":i},o),r)}const Rf=qo().forwardRef(Mf);var jf=r(179),Nf=r.n(jf),Ff=r(7200),Bf=r.n(Ff);class Uf extends zo.Component{constructor(){var e,t,r;super(...arguments),e=this,t="id",r=Bf()("icon"),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}render(){const e=this.props,{children:t,title:r}=e,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["children","title"]),o="".concat(this.id,"-title"),i=Nf()(n,["role","aria-labelledby"]);return i.focusable="false",r?(i["aria-labelledby"]=o,i.role="img"):(i["aria-hidden"]="true",i.role="presentation"),zo.createElement("svg",i,r?zo.createElement("title",{id:o},r):null,t)}}const Kf=Uf;function Hf(){return Hf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hf.apply(this,arguments)}const zf=e=>zo.createElement(Kf,Hf({width:16,height:16,viewBox:"0 0 16 16"},e),zo.createElement("path",{fill:Dt,d:"M8 0a8 8 0 110 16A8 8 0 018 0zm0 1a7 7 0 100 14A7 7 0 008 1zm1.313 2.743c.162 0 .301.054.417.178l2.057 2.088a.685.685 0 01.21.487c0 .178-.078.34-.21.472l-2.064 2.11a.59.59 0 01-1.005-.433c0-.146.053-.309.177-.41l.92-.858.449-.324-.828.038H7.147c-1.09 0-1.902.78-1.902 1.909 0 1.16.908 1.8 2.022 1.8h1.082c.372 0 .647.217.647.604 0 .386-.268.596-.654.596H7.267C5.442 12 4 10.856 4 9s1.33-3.084 3.147-3.084h2.29l.827.039-.58-.449-.781-.75a.543.543 0 01-.186-.418.59.59 0 01.596-.595z"}));function qf(){return qf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qf.apply(this,arguments)}const Vf=e=>zo.createElement(Kf,qf({width:16,height:16,viewBox:"0 0 16 16"},e),zo.createElement("path",{fill:"#222",fillRule:"evenodd",d:"M14 2l-1.8 11c-.1.6-.7 1-1.2 1H5c-.6 0-1.1-.5-1.2-1L2 2h12zm-1.2 1H3.2l1.6 9.9s.1.1.2.1h6c.06 0 .12-.036.158-.065l.042-.035L12.8 3zm-2.3 1c.3 0 .5.2.5.5s-.2.5-.5.5h-5c-.3 0-.5-.2-.5-.5s.2-.5.5-.5z"}));function Gf(){return Gf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gf.apply(this,arguments)}const Wf=e=>zo.createElement(Kf,Gf({width:16,height:16,viewBox:"0 0 16 16"},e),zo.createElement("path",{fill:Dt,d:"M8 0a8 8 0 110 16A8 8 0 018 0zm0 1a7 7 0 100 14A7 7 0 008 1zM6.683 3.743a.59.59 0 01.596.595c0 .17-.07.317-.186.418l-.78.75-.58.449.827-.04h2.289c1.817 0 3.147 1.229 3.147 3.085 0 1.856-1.442 3-3.267 3H7.654C7.268 12 7 11.79 7 11.404c0-.387.276-.604.647-.604h1.082c1.114 0 2.022-.64 2.022-1.8 0-1.129-.812-1.909-1.902-1.909h-2.29l-.827-.038.449.324.92.859c.124.1.178.263.178.41a.59.59 0 01-1.005.433L4.209 6.968A.664.664 0 014 6.496c0-.186.077-.356.209-.487L6.266 3.92a.545.545 0 01.417-.178z"})),$f=function(e){return zo.createElement("svg",g({"data-testid":"ArrowBack",fill:"none",focusable:"false",height:"1em",role:"img",viewBox:"0 0 20 20",width:"1em"},e),zo.createElement("path",{d:"M6.91086 1.91058C7.2363 1.58515 7.76381 1.58515 8.08925 1.91058C8.41462 2.23602 8.41462 2.76355 8.08925 3.08896L5.34511 5.8331H12.5C14.1062 5.83312 15.3897 6.4396 16.2574 7.47291C17.1089 8.4871 17.5 9.83869 17.5 11.2498C17.5 12.6609 17.109 14.0125 16.2574 15.0266C15.3897 16.0599 14.1062 16.6664 12.5 16.6664H10C9.53987 16.6664 9.16679 16.2933 9.16671 15.8331C9.16671 15.3729 9.53979 14.9998 10 14.9998H12.5C13.6552 14.9998 14.4553 14.5803 14.9805 13.9549C15.5219 13.3102 15.8334 12.3699 15.8334 11.2498C15.8334 10.1296 15.5219 9.18935 14.9805 8.54469C14.4553 7.91928 13.6552 7.49979 12.5 7.49977H5.34511L8.08925 10.2439C8.41462 10.5694 8.41471 11.0969 8.08925 11.4223C7.76384 11.7477 7.23631 11.7477 6.91086 11.4223L2.7442 7.25563C2.41876 6.9302 2.41876 6.40268 2.7442 6.07725L6.91086 1.91058Z",fill:"#fff"}))},Yf=function(e){return zo.createElement("svg",g({"data-testid":"ArrowForward",fill:"none",focusable:"false",height:"1em",role:"img",viewBox:"0 0 20 20",width:"1em"},e),zo.createElement("path",{d:"M11.9108 1.91058C12.2363 1.58515 12.7638 1.58515 13.0892 1.91058L17.2558 6.07725C17.5813 6.40268 17.5813 6.9302 17.2558 7.25563L13.0892 11.4223C12.7638 11.7477 12.2363 11.7477 11.9108 11.4223C11.5854 11.0969 11.5854 10.5694 11.9108 10.2439L14.6549 7.49977H7.5C6.34482 7.49977 5.54479 7.91927 5.01953 8.54469C4.4782 9.18935 4.16667 10.1296 4.16667 11.2498C4.16668 12.3699 4.47819 13.3102 5.01953 13.9549C5.54479 14.5803 6.34484 14.9998 7.5 14.9998H10C10.4603 14.9998 10.8333 15.3729 10.8333 15.8331C10.8333 16.2933 10.4603 16.6664 10 16.6664H7.5C5.89388 16.6664 4.6104 16.0599 3.74268 15.0266C2.89112 14.0125 2.50001 12.6609 2.5 11.2498C2.5 9.83869 2.89113 8.4871 3.74268 7.47291C4.6104 6.43958 5.89385 5.8331 7.5 5.8331H14.6549L11.9108 3.08896C11.5854 2.76354 11.5854 2.23602 11.9108 1.91058Z",fill:"#fff"}))},Xf=function(e){return zo.createElement("svg",g({"data-testid":"Trash",fill:"none",focusable:"false",height:"1em",role:"img",viewBox:"0 0 20 20",width:"1em"},e),zo.createElement("path",{clipRule:"evenodd",d:"M7.55758 4.25017C7.6296 3.87481 7.75758 3.73256 7.87369 3.65128C7.99454 3.56669 8.19891 3.47991 8.56146 3.41949C8.92362 3.35914 9.39079 3.33317 9.99996 3.33317C10.6092 3.33317 11.0764 3.35914 11.4385 3.41949C11.801 3.47991 12.0054 3.56669 12.1263 3.65128C12.2424 3.73256 12.3704 3.87481 12.4424 4.25017C11.7196 4.1984 10.9065 4.1665 9.99996 4.1665C9.09346 4.1665 8.2803 4.1984 7.55758 4.25017ZM5.85575 4.42505C5.92957 3.5488 6.20244 2.78673 6.91792 2.2859C7.31791 2.0059 7.79063 1.8583 8.28746 1.7755C8.78471 1.69262 9.35921 1.6665 9.99996 1.6665C10.6408 1.6665 11.2153 1.69262 11.7125 1.7755C12.2093 1.8583 12.682 2.0059 13.082 2.2859C13.7975 2.78673 14.0704 3.5488 14.1442 4.42505C14.5419 4.47947 14.8961 4.53848 15.208 4.59789C15.7812 4.70707 16.2109 4.81752 16.5036 4.90318C16.6499 4.946 16.762 4.98262 16.8405 5.00976C16.8797 5.02333 16.9105 5.03452 16.9331 5.04294L16.9608 5.05343L16.97 5.05701L16.9735 5.05837L16.9749 5.05895C16.9752 5.05906 16.9761 5.05944 16.6666 5.83317L16.9761 5.05944C17.4035 5.23037 17.6113 5.71535 17.4404 6.14266C17.2975 6.49966 16.9356 6.70348 16.5711 6.66122L16.0734 15.1939C15.9706 16.9565 14.5113 18.3332 12.7457 18.3332H7.25422C5.48867 18.3332 4.02937 16.9565 3.92655 15.1939L3.42881 6.66122C3.06437 6.70348 2.70237 6.49966 2.55958 6.14266C2.38865 5.71535 2.5965 5.23037 3.02382 5.05944L3.33331 5.83317C3.02382 5.05944 3.02351 5.05955 3.02382 5.05944L3.02506 5.05895L3.02649 5.05837L3.02994 5.05701L3.03914 5.05343L3.06682 5.04294C3.0894 5.03452 3.12027 5.02333 3.15952 5.00976C3.23802 4.98262 3.35004 4.946 3.49637 4.90318C3.78904 4.81752 4.21877 4.70707 4.79197 4.59789C5.10387 4.53848 5.45812 4.47947 5.85575 4.42505ZM5.59039 15.0969L5.07378 6.24087L5.10382 6.23512C6.1447 6.03685 7.75911 5.83317 9.99996 5.83317C12.2409 5.83317 13.8553 6.03685 14.8961 6.23512L14.9261 6.24087L14.4095 15.0969C14.3581 15.9782 13.6285 16.6665 12.7457 16.6665H7.25422C6.37145 16.6665 5.6418 15.9782 5.59039 15.0969ZM11.6666 7.49984C12.1269 7.49984 12.5 7.87294 12.5 8.33317V14.1665C12.5 14.6268 12.1269 14.9998 11.6666 14.9998C11.2064 14.9998 10.8333 14.6268 10.8333 14.1665V8.33317C10.8333 7.87294 11.2064 7.49984 11.6666 7.49984ZM9.16662 8.33317C9.16662 7.87294 8.79354 7.49984 8.33329 7.49984C7.87307 7.49984 7.49997 7.87294 7.49997 8.33317V14.1665C7.49997 14.6268 7.87307 14.9998 8.33329 14.9998C8.79354 14.9998 9.16662 14.6268 9.16662 14.1665V8.33317Z",fill:"#fff",fillRule:"evenodd"}))},Zf={modifiers:[{name:"offset",options:{offset:({popper:e})=>[-e.width/2,8]}},{name:"preventOverflow",options:{padding:50}}],placement:"top"},Jf=20,Qf=(e,t)=>{const{canComment:r,canRedo:n,canUndo:o,className:i,onDelete:a,onRedo:s,onReply:c,onUndo:u,reference:l}=e,d=(0,Go.useSelector)(e=>lt(e,"modernization")),f=(0,Qo.useIntl)();return qo().createElement(Rl,{ref:t,className:yi()(i,"ba-PopupDrawingToolbar",{"ba-PopupDrawingToolbar--modernized":d}),"data-resin-component":"popupDrawingToolbar",options:Zf,reference:l},qo().createElement("div",{className:"ba-PopupDrawingToolbar-group"},qo().createElement("button",{className:"ba-PopupDrawingToolbar-undo","data-testid":"ba-PopupDrawingToolbar-undo",disabled:!o,onClick:()=>u(),title:f.formatMessage(Wc.drawingButtonUndo),type:"button"},d?qo().createElement($f,{height:Jf,width:Jf}):qo().createElement(Wf,null)),qo().createElement("button",{className:"ba-PopupDrawingToolbar-redo","data-testid":"ba-PopupDrawingToolbar-redo",disabled:!n,onClick:()=>s(),title:f.formatMessage(Wc.drawingButtonRedo),type:"button"},d?qo().createElement(Yf,{height:Jf,width:Jf}):qo().createElement(zf,null)),qo().createElement("button",{className:"ba-PopupDrawingToolbar-delete","data-testid":"ba-PopupDrawingToolbar-delete",onClick:()=>a(),title:f.formatMessage(Wc.drawingButtonDelete),type:"button"},d?qo().createElement(Xf,{height:Jf,width:Jf}):qo().createElement(Vf,null))),qo().createElement("div",{className:"ba-PopupDrawingToolbar-group"},qo().createElement("button",{className:"ba-PopupDrawingToolbar-comment","data-testid":"ba-PopupDrawingToolbar-comment",disabled:!r,onClick:()=>c(),type:"button"},qo().createElement(Qo.FormattedMessage,Wc.drawingButtonAddComment))))},ep=qo().forwardRef(Qf),tp={addDrawingPathGroup:nr,redoDrawingPathGroup:or,resetDrawing:ir,setActiveAnnotationId:Ot,setReferenceId:zt,setStaged:qt,setStatus:Vt,setupDrawing:e=>(t,r)=>{const n=r();return Qt(n)===Bt.staged&&t(ir()),t(ar(e))},undoDrawingPathGroup:sr},rp=(0,Go.connect)((e,{location:t})=>{const r=Qt(e);return{activeAnnotationId:ze(e),annotations:Ge(e,t).filter(Be),color:Ft(e),canShowPopupToolbar:r===Bt.started,drawnPathGroups:lr(e,t),isCreating:Nt(e)===Lt.DRAWING&&r!==Bt.pending,rotation:st(e),stashedPathGroups:dr(e,t)}},tp)(bd(e=>{const{activeAnnotationId:t,addDrawingPathGroup:r,annotations:n,canShowPopupToolbar:o,color:i,drawnPathGroups:a,isCreating:s,location:c,popupPortalEl:u,redoDrawingPathGroup:l,resetDrawing:d,rotation:f,setActiveAnnotationId:p,setReferenceId:h,setStaged:g,setStatus:y,setupDrawing:m,stashedPathGroups:b,undoDrawingPathGroup:v,targetType:w,referenceEl:S}=e,[x,E]=qo().useState(!1),[_,O]=qo().useState(null),C=a.length>0,k=b.length>0,A=C||k,T=qo().useRef(null),I=qo().useRef(null),{current:P}=I,{isVideoSeeking:D,getCurrentVideoLocation:L}=Bd({targetType:w,referenceEl:S,activeAnnotationId:t,annotations:n});qo().useEffect(()=>{const{current:e}=T;e?.popper&&a.length&&e.popper.update()},[a]);let M=[];return w===He.FRAME?!D&&t&&(M=n.filter(e=>e.id===t)):M=n,qo().createElement(qo().Fragment,null,qo().createElement(If,{activeId:t,annotations:M,className:"ba-DrawingAnnotations-list",onSelect:e=>{p(e)}}),A&&qo().createElement(Ef,{ref:O,className:"ba-DrawingAnnotations-target"},qo().createElement(Rf,{ref:I,onMount:e=>{h(e)}},a.map(({clientId:e,paths:t,stroke:r})=>qo().createElement(_f,{key:e,rootEl:_,stroke:r},e=>t.map(({clientId:t,points:r})=>qo().createElement(wf,{key:t,borderStrokeWidth:e,isDecorated:!0,points:r})))))),s&&qo().createElement(Df,{className:"ba-DrawingAnnotations-creator",color:i,onStart:()=>{m(c),y(Bt.started),E(!0)},onStop:e=>{r(e),E(!1)},rotation:f}),s&&A&&P&&o&&u&&fi().createPortal(qo().createElement(ep,{ref:T,canComment:C,canRedo:k,canUndo:C,className:yi()("ba-DrawingAnnotations-toolbar",{"ba-is-drawing":x}),onDelete:()=>{d()},onRedo:()=>{l()},onReply:()=>{const e=w===He.FRAME?L():c;g({location:e,pathGroups:a}),y(Bt.staged)},onUndo:()=>{v()},reference:P}),u))})),np=["popupPortalEl"];class op extends Yo{constructor(e){let{popupPortalEl:r}=e;super(Se(e,np)),t(this,"popupPortalEl",void 0),this.popupPortalEl=r}decorate(){this.reactEl.classList.add("ba-Layer--drawing"),this.reactEl.dataset.testid="ba-Layer--drawing"}render(e){this.root||(this.root=Vo.createRoot(this.reactEl)),this.root.render(zo.createElement(rp,g({referenceEl:this.referenceEl,targetType:this.targetType,location:this.location,popupPortalEl:this.popupPortalEl},e)))}}const ip="ba-is-drawing";function ap(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function sp(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?ap(Object(n),!0).forEach(function(r){t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ap(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}class cp{constructor({getSelection:e,referenceEl:r,selectionChangeDelay:n=0,store:o}){t(this,"referenceEl",void 0),t(this,"getSelection",void 0),t(this,"selectionChangeDelay",void 0),t(this,"selectionChangeTimer",void 0),t(this,"store",void 0),t(this,"handleMouseDown",({buttons:e})=>{1===e&&(clearTimeout(this.selectionChangeTimer),this.store.dispatch(Tr(!0)),this.store.dispatch(kr(null)))}),t(this,"handleMouseUp",()=>{Dr(this.store.getState())&&(this.selectionChangeTimer=window.setTimeout(()=>{const e=this.getSelection(),t=st(this.store.getState());this.store.dispatch(kr(e?sp(sp({},e),{},{rotation:t}):null)),this.store.dispatch(Tr(!1))},this.selectionChangeDelay))}),this.getSelection=e,this.referenceEl=r,this.selectionChangeDelay=n,this.store=o}exists(e){return e.contains(this.referenceEl)}render(){this.store.dispatch(kr(null)),this.referenceEl.addEventListener("mousedown",this.handleMouseDown),document.addEventListener("mouseup",this.handleMouseUp)}style(){return this.referenceEl.style}destroy(){clearTimeout(this.selectionChangeTimer),this.referenceEl.removeEventListener("mousedown",this.handleMouseDown),document.removeEventListener("mouseup",this.handleMouseUp)}}function up(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function lp(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?up(Object(n),!0).forEach(function(r){t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):up(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}class dp{constructor({getSelection:e,store:r}){t(this,"getSelection",void 0),t(this,"store",void 0),t(this,"handleSelectionChange",()=>{if(Dr(this.store.getState()))return;const e=this.getSelection(),t=st(this.store.getState());this.store.dispatch(kr(e?lp(lp({},e),{},{rotation:t}):null))}),t(this,"debounceHandleSelectionChange",Zc()(this.handleSelectionChange,500)),this.getSelection=e,this.store=r,document.addEventListener("selectionchange",this.debounceHandleSelectionChange)}destroy(){document.removeEventListener("selectionchange",this.debounceHandleSelectionChange)}}class fp extends zo.PureComponent{constructor(...e){super(...e),t(this,"canvasRef",zo.createRef())}componentDidMount(){this.scaleCanvas(),this.renderRects()}componentDidUpdate(){this.clearCanvas(),this.renderRects()}getContext(){const{current:e}=this.canvasRef;return e?.getContext("2d")??null}scaleCanvas(){const{current:e}=this.canvasRef;e&&(e.width=e.offsetWidth,e.height=e.offsetHeight)}clearCanvas(){const{current:e}=this.canvasRef,t=e&&e.getContext("2d");e&&t&&t.clearRect(0,0,e.width,e.height)}renderRects(){const{shapes:e}=this.props,{current:t}=this.canvasRef,r=t&&t.getContext("2d"),n=t?.height??0,o=t?.width??0,i=Array.isArray(e)?e:[e];r&&i.forEach(e=>{const{height:t,isActive:i,isHover:a,width:s,x:c,y:u}=e;if(0===s||0===t)return;const l=t/100*n,d=s/100*o,f=c/100*o,p=u/100*n;if(r.save(),r.fillStyle="#ffd700",r.globalAlpha=i||a?.66:.33,r.fillRect(f,p,d,l),r.restore(),r.save(),r.strokeStyle=It,r.lineWidth=1,r.strokeRect(f,p,d,l),i){const e=r.getImageData(f,p,d,l);r.save(),r.shadowColor="#000",r.shadowBlur=10,r.strokeRect(f,p,d,l),r.putImageData(e,f,p),r.restore()}r.restore()})}render(){return zo.createElement("canvas",{ref:this.canvasRef,className:"ba-HighlightCanvas"})}}t(fp,"defaultProps",{shapes:[]});const pp=({children:e,className:t},r)=>qo().createElement("svg",{ref:r,className:yi()("ba-HighlightSvg",t)},e),hp=qo().forwardRef(pp),gp=(e,t)=>{const{annotationId:r,className:n,isActive:o,onHover:i=Vr(),onMount:a=Vr(),onSelect:s=Vr(),shapes:c}=e,u=Id(a),l=()=>{s(r)};return qo().createElement("a",{ref:t,className:yi()("ba-HighlightTarget",n,{"is-active":o}),"data-ba-annotation-id":r,"data-ba-reference-id":u,"data-resin-itemid":r,"data-resin-target":"highlightText","data-testid":`ba-AnnotationTarget-${r}`,href:"#",onClick:e=>{e.preventDefault(),e.stopPropagation()},onFocus:l,onMouseDown:e=>{if(1!==e.buttons)return;const t=document.activeElement;e.preventDefault(),e.stopPropagation(),t&&t!==e.currentTarget&&t.blur&&t.blur(),e.currentTarget.focus?e.currentTarget.focus():l()},onMouseEnter:()=>{i(r)},onMouseLeave:()=>{i(null)},role:"button",tabIndex:0},c.map(e=>{const{height:t,width:n,x:o,y:i}=e;return qo().createElement("rect",{key:`${r}-${o}-${i}-${n}-${t}`,className:"ba-HighlightTarget-rect",fill:"none",height:`${t}%`,width:`${n}%`,x:`${o}%`,y:`${i}%`})}))},yp=qo().forwardRef(gp);function mp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function bp(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?mp(Object(n),!0).forEach(function(r){t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vp({target:e}){const{shapes:t=[]}=e;return t.every(({height:e,width:t,x:r,y:n})=>Wd(e)&&Wd(t)&&Wd(r)&&Wd(n))}function wp(e){return e.reduce((e,{height:t,width:r})=>e+t*r,0)}function Sp({target:e},{target:t}){const{shapes:r}=e,{shapes:n}=t;return wp(r)>wp(n)?-1:1}function xp({activeId:e=null,annotations:t,className:r,onSelect:n}){const[o,i]=qo().useState(null),a=qo().createRef(),s=Gd(),c=t.filter(vp).sort(Sp),u=function(e,t,r){return e.reduce((e,n)=>{const{id:o,target:{shapes:i}}=n;return e.concat(i.map(e=>bp(bp({},e),{},{isActive:t===o,isHover:r===o})))},[])}(c,e,o),l=e=>{i(e)};return qo().createElement("div",{className:yi()("ba-HighlightList",r),"data-resin-component":"highlightList"},qo().createElement(fp,{shapes:u}),qo().createElement(hp,{ref:a,className:yi()({"is-listening":s})},c.map(({id:t,target:r})=>qo().createElement(yp,{key:t,annotationId:t,isActive:e===t,onHover:l,onSelect:n,shapes:r.shapes}))))}const Ep=qo().memo(xp);function _p(){return _p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_p.apply(this,arguments)}const Op=e=>zo.createElement(Kf,_p({width:16,height:16,viewBox:"0 0 16 16"},e),zo.createElement("path",{d:"M5.75 1a.25.25 0 01.25.25v.5a.25.25 0 01-.25.25H4v12h1.75a.25.25 0 01.25.25v.5a.25.25 0 01-.25.25h-4.5a.25.25 0 01-.25-.25v-.5a.25.25 0 01.25-.25H3V2H1.25A.25.25 0 011 1.75v-.5A.25.25 0 011.25 1h4.5zM13 4a2 2 0 012 2v4a2 2 0 01-2 2H5.75a1 1 0 01-1-1V5a1 1 0 011-1H13zm-2.78 1.5a2.83 2.83 0 00-1.991.763l.206.372a.53.53 0 00.136.148.33.33 0 00.206.064.5.5 0 00.255-.066l.255-.148c.093-.055.202-.104.325-.148s.278-.066.465-.066c.26 0 .456.078.593.233s.206.395.206.72v.283c-.548.013-1.006.066-1.374.16s-.662.213-.883.356-.38.303-.474.48S8 9.008 8 9.2c0 .217.034.407.103.57a1.11 1.11 0 00.29.41 1.23 1.23 0 00.444.247c.17.055.358.082.56.082.17 0 .328-.014.47-.042a1.83 1.83 0 00.4-.127 2.87 2.87 0 00.36-.2 4.18 4.18 0 00.355-.29l.103.344c.034.1.08.167.14.2s.143.05.252.05H12V7.37a2.29 2.29 0 00-.119-.754 1.64 1.64 0 00-.348-.59 1.59 1.59 0 00-.561-.386 1.93 1.93 0 00-.752-.139zm.654 2.86v.815a1.812 1.812 0 01-.507.393 1.36 1.36 0 01-.614.13c-.193 0-.35-.044-.47-.132s-.18-.234-.18-.438c0-.104.03-.2.09-.287a.72.72 0 01.294-.231c.137-.066.32-.12.544-.163a6.27 6.27 0 01.843-.087z",fill:Dt,fillRule:"evenodd"}));function Cp(e,t,r){zo.useEffect(()=>{function n(e){const n=t instanceof Element?t:t?.current,o=!!n?.contains(e.target);r&&!o&&r(e)}return document.addEventListener(e,n),()=>{document.removeEventListener(e,n)}},[r,t,e])}const kp={modifiers:[{name:"arrow",options:{element:".ba-Popup-arrow"}},{name:"eventListeners",options:{scroll:!1}},{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{padding:5}}],placement:"bottom"};function Ap({onCancel:e=Vr(),onSubmit:t=Vr(),shape:r}){const n=qo().useRef(null),{height:o,width:i,x:a,y:s}=r,c={getBoundingClientRect:()=>Ll(o,i,a,s)};return Cp("keydown",n,e=>{e instanceof KeyboardEvent&&"Enter"===e.key&&!e.ctrlKey&&!e.metaKey&&(e.preventDefault(),e.stopPropagation(),t())}),Cp("mousedown",n,e),qo().createElement(Rl,{"aria-live":"polite",className:"ba-PopupHighlight",options:kp,reference:c,role:"dialog"},qo().createElement("button",{ref:n,"aria-haspopup":"dialog",className:"ba-PopupHighlight-button","data-testid":"ba-PopupHighlight-button",onClick:t,type:"button"},qo().createElement(Op,{className:"ba-PopupHighlight-icon"}),qo().createElement(Qo.FormattedMessage,Wc.popupHighlightPromoter)))}const Tp={modifiers:[{name:"arrow",options:{element:".ba-Popup-arrow"}},{name:"eventListeners",options:{scroll:!1}},{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{padding:5}}],placement:"bottom"};function Ip({onCancel:e=Vr(),shape:t}){const r=qo().useRef(null),{height:n,width:o,x:i,y:a}=t,s={getBoundingClientRect:()=>Ll(n,o,i,a)};return Cp("mousedown",r.current?.popupRef,e),qo().createElement(Rl,{ref:r,className:"ba-PopupHighlightError","data-testid":"ba-PopupHighlightError",options:Tp,reference:s},qo().createElement(Qo.FormattedMessage,Wc.popupHighlightRestrictedPrompt))}function Pp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Dp(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?Pp(Object(n),!0).forEach(function(r){t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const Lp={setActiveAnnotationId:Ot,setIsPromoting:Ar,setReferenceId:zt,setSelection:kr,setStaged:qt,setStatus:Vt},Mp=(0,Go.connect)((e,{location:t})=>{const r=Jt(e,t);return{activeAnnotationId:ze(e),annotations:Ge(e,t).filter(br),isCreating:Nt(e)===Lt.HIGHLIGHT,isPending:Qt(e)===Bt.pending,isPromoting:Pr(e),isSelecting:Dr(e),rotation:st(e),selection:Lr(e,t),staged:tr(r)?r:null}},Lp)(bd(e=>{const{activeAnnotationId:t,annotations:r=[],isCreating:n=!1,isPending:o=!1,isPromoting:i=!1,isSelecting:a=!1,popupPortalEl:s,rotation:c,selection:u,setActiveAnnotationId:l,setIsPromoting:d,setReferenceId:f,setSelection:p,setStaged:h,setStatus:g,staged:y}=e,m=n||i,b=zo.useCallback(()=>{if(!u)return;const{containerRect:e,location:t,rects:r}=u;h({location:t,shapes:r.map(t=>Dp(Dp({},((e,t)=>{const{height:r,width:n,x:o,y:i}=e,{height:a,width:s,x:c,y:u}=t;return{height:r/a*100,width:n/s*100,x:Math.max(0,o-c)/s*100,y:Math.max(0,i-u)/a*100}})(t,e)),{},{type:"rect"}))}),g(Bt.staged)},[u,h,g]),v=()=>{p(null)},w=()=>{b(),d(!0)};return zo.useEffect(()=>{a&&!o&&(h(null),g(Bt.init))},[a,o,h,g]),zo.useEffect(()=>{n&&u&&!u.hasError&&!o&&b()},[n,o,u,b]),zo.createElement(zo.Fragment,null,zo.createElement(Ep,{activeId:t,annotations:r,onSelect:e=>{l(e)}}),m&&y&&zo.createElement("div",{className:"ba-HighlightAnnotations-target"},zo.createElement(fp,{shapes:y.shapes}),zo.createElement(hp,null,zo.createElement(yp,{annotationId:"staged",isActive:!0,onMount:e=>{f(e)},shapes:y.shapes}))),!n&&u&&!u.hasError&&(()=>{const e=u.popupRect||mr(u.rects),t=zo.createElement("div",{className:"ba-HighlightAnnotations-popup"},zo.createElement(Ap,{onCancel:v,onSubmit:w,shape:e}));return c&&s?fi().createPortal(t,s):t})(),u&&u.hasError&&(()=>{const e=u.popupRect||mr(u.rects),t=zo.createElement("div",{className:"ba-HighlightAnnotations-popup"},zo.createElement(Ip,{onCancel:v,shape:e}));return c&&s?fi().createPortal(t,s):t})())})),Rp=["popupPortalEl"];class jp extends Yo{constructor(e){let{popupPortalEl:r}=e;super(Se(e,Rp)),t(this,"popupPortalEl",void 0),this.popupPortalEl=r}decorate(){this.reactEl.classList.add("ba-Layer--highlight"),this.reactEl.dataset.testid="ba-Layer--highlight"}render(e){this.root||(this.root=Vo.createRoot(this.reactEl)),this.root.render(zo.createElement(Mp,g({location:this.location,popupPortalEl:this.popupPortalEl},e)))}}function Np(e,t){for(let r=e;r&&r!==document.body;r=r.parentNode)if(r.classList&&r.classList.contains(t))return r;return null}function Fp(e){const t=Np(e,"page"),r=t&&t.getAttribute("data-page-number");return r?parseInt(r,10):void 0}function Bp(){const e=window.getSelection();if(!e||e.isCollapsed||!e.rangeCount||!e.focusNode)return null;let t=e.getRangeAt(e.rangeCount-1);const r=e.getRangeAt(0);t.setStart(r.startContainer,r.startOffset);const n=Np(t.endContainer,"textLayer"),o=Fp(t.startContainer),i=Fp(t.endContainer);if(!n||!o||!i)return null;const a=o!==i;let s=i;return a&&(t=document.createRange(),t.setEnd(e.focusNode,e.focusOffset),t.collapse(!1),s=Fp(e.focusNode)??i),{containerEl:n,containerRect:n.getBoundingClientRect(),hasError:a,location:s,range:t}}const Up="ba-is-drawing";function Kp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Hp(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?Kp(Object(n),!0).forEach(function(r){t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const zp=[{CONSTRUCTOR:class extends li{constructor(e){super(e),t(this,"annotatedEl",void 0),t(this,"highlightListener",void 0),t(this,"managers",new Map),t(this,"managersViewMode",null),t(this,"handleChangeMode",({mode:e})=>{if(!this.annotatedEl||"boundingBoxes"===rt(this.store.getState()))return;this.removeAnnotationClasses();const t=this.annotatedEl,r=ui[e];r&&t.classList.add(r)}),this.highlightListener=new dp({getSelection:Bp,store:this.store}),this.addListener(pr.ANNOTATIONS_MODE_CHANGE,this.handleChangeMode)}destroy(){this.removeListener(pr.ANNOTATIONS_MODE_CHANGE,this.handleChangeMode),this.highlightListener&&this.highlightListener.destroy(),this.managers&&this.managers.forEach(e=>e.forEach(e=>e.destroy())),super.destroy()}getAnnotatedElement(){return this.containerEl?.querySelector(".bp-doc")}clearManagers(){this.managers.forEach(e=>e.forEach(e=>e.destroy())),this.managers.clear(),this.managersViewMode=null}getPageManagers(e){const t=nt(this.store.getState()),r=it(this.store.getState()),n=this.getPageNumber(e),o=this.getPageReference(e),i={fileid:t,iscurrent:r},a=rt(this.store.getState()),s=this.managers.get(n)||new Set;let c=!1;if(s.forEach(t=>{t.exists(e)||(c=!0)}),c&&(s.forEach(e=>{e.destroy()}),s.clear()),0===s.size){if("boundingBoxes"===a)return s.add(new gf({location:n,referenceEl:o,resinTags:i})),s;s.add(new of({location:n,popupPortalEl:this.popupPortalEl,referenceEl:o,resinTags:i})),s.add(new op({location:n,popupPortalEl:this.popupPortalEl,referenceEl:o,resinTags:i}));const t=e.querySelector(".textLayer");t&&s.add(new cp({getSelection:Bp,referenceEl:t,selectionChangeDelay:300,store:this.store})),s.add(new jp({location:n,popupPortalEl:this.popupPortalEl,referenceEl:o,resinTags:i})),s.add(new ef({location:n,referenceEl:o,resinTags:i}));const r=e.querySelector(".canvasWrapper");s.add(new zd({location:n,referenceEl:r||o,resinTags:i}))}return s}getPageNumber(e){return parseInt(e.dataset.pageNumber||"",10)||1}getPageReference(e){const t=e.querySelector(".annotationLayer"),r=e.querySelector(".canvasWrapper"),n=e.querySelector(".textLayer");return t||n||r}getPage(e){return this.getPages().find(t=>e===this.getPageNumber(t))}getPages(){return this.annotatedEl?Array.from(this.annotatedEl.querySelectorAll(".page")):[]}render(){const e=rt(this.store.getState());null!==this.managersViewMode&&this.managersViewMode!==e&&this.clearManagers(),this.managersViewMode=e,this.getPages().filter(({dataset:e})=>e.loaded&&e.pageNumber).forEach(e=>this.renderPage(e)),this.postRender()}postRender(){"boundingBoxes"!==rt(this.store.getState())?super.postRender():this.deselectManager&&(this.deselectManager.destroy(),this.deselectManager=null)}renderPage(e){const t=this.getPageManagers(e),r=this.getPageNumber(e),n=st(this.store.getState())||0,o=e.clientWidth,i=e.clientHeight-30,a=n%180!=0,s=a?i:o,c=a?o:i;t.forEach(e=>{n?e.style({height:`${c}px`,left:"50%",top:"50%",transform:`translate(-50%, -50%) rotate(${n}deg)`,width:`${s}px`}):e.style({height:"",left:"",top:"",transform:"",width:""}),e.render({callbacks:{onCopyLink:this.onCopyLink},intl:this.intl,store:this.store})}),this.managers.set(r,t)}scrollToAnnotation(e){if(!e)return;const t=qe(this.store.getState(),e),r=t?.target.location.value??1,n=this.getPage(r);if(!(t&&r&&n&&this.annotatedEl))return;let o=null;Sd(t)?o=wd(t.target.shape):br(t)?o=(e=>{const t=mr(e),{x:r,y:n}=t,{x:o,y:i}=(e=>{const{height:t,width:r}=e;return{x:r/2,y:t/2}})(t);return{x:o+r,y:i+n}})(t.target.shapes):Be(t)&&(o=Ue(t.target.path_groups)),o&&si(this.annotatedEl,n,{offsets:o})}getScrollReferenceForHighlight(e){return this.getPage(e.pageNumber)}},NAME:"Document",TYPES:[yr.highlight,yr.region],VIEWERS:["AutoCAD","Document","Presentation"]},{CONSTRUCTOR:class extends li{constructor(e){super(e),t(this,"annotatedEl",void 0),t(this,"managers",new Set),t(this,"managersViewMode",null),t(this,"storeHandler",void 0),t(this,"handleStore",()=>{const e=this.getReference();e&&(Qt(this.store.getState())===Bt.started?e.classList.add(ip):e.classList.remove(ip))}),this.storeHandler=this.store.subscribe(this.handleStore)}destroy(){this.storeHandler&&this.storeHandler(),this.managers&&this.managers.forEach(e=>e.destroy()),super.destroy()}getAnnotatedElement(){return this.containerEl?.querySelector(".bp-image")}clearManagers(){this.managers.forEach(e=>e.destroy()),this.managers.clear(),this.managersViewMode=null}getManagers(e,t){const r={fileid:nt(this.store.getState()),iscurrent:it(this.store.getState())},n=rt(this.store.getState());if(this.managers.forEach(t=>{t.exists(e)||(t.destroy(),this.managers.delete(t))}),0===this.managers.size){if("boundingBoxes"===n)return this.managers.add(new gf({location:1,referenceEl:t,resinTags:r})),this.managers;this.managers.add(new of({popupPortalEl:this.popupPortalEl,referenceEl:t,resinTags:r})),this.managers.add(new op({popupPortalEl:this.popupPortalEl,referenceEl:t,resinTags:r})),this.managers.add(new ef({referenceEl:t,resinTags:r})),this.managers.add(new zd({referenceEl:t,resinTags:r}))}return this.managers}getReference(){return this.annotatedEl?.querySelector("img")}render(){const e=this.getReference(),t=st(this.store.getState())||0,r=rt(this.store.getState());this.annotatedEl&&e&&(null!==this.managersViewMode&&this.managersViewMode!==r&&this.clearManagers(),this.managersViewMode=r,this.getManagers(this.annotatedEl,e).forEach(r=>{r.style({height:`${e.offsetHeight}px`,left:`${e.offsetLeft}px`,top:`${e.offsetTop}px`,transform:`rotate(${t}deg)`,width:`${e.offsetWidth}px`}),r.render({callbacks:{onCopyLink:this.onCopyLink},intl:this.intl,store:this.store})}),this.postRender())}postRender(){"boundingBoxes"!==rt(this.store.getState())?super.postRender():this.deselectManager&&(this.deselectManager.destroy(),this.deselectManager=null)}getScrollReferenceForHighlight(){return this.getReference()}getAdjustedScrollOffsets(e){return _r(e,st(this.store.getState())||0)}scrollToAnnotation(e){if(!e)return;const t=qe(this.store.getState(),e),r=t?.target.location.value??1,n=this.getReference(),o=st(this.store.getState())||0;if(!(t&&r&&n&&this.annotatedEl))return;let i=null;Sd(t)?i=wd(t.target.shape):Be(t)&&(i=Ue(t.target.path_groups)),i&&si(this.annotatedEl,n,{offsets:_r(i,o)})}},NAME:"Image",TYPES:[yr.region],VIEWERS:["Image"]},{CONSTRUCTOR:class extends li{constructor(e){super(e),t(this,"annotatedEl",void 0),t(this,"managers",new Set),t(this,"storeHandler",void 0),t(this,"handleStore",()=>{const e=this.getReference();e&&(Qt(this.store.getState())===Bt.started?e.classList.add(Up):e.classList.remove(Up))}),this.storeHandler=this.store.subscribe(this.handleStore)}destroy(){this.storeHandler&&this.storeHandler(),this.managers&&this.managers.forEach(e=>e.destroy()),super.destroy()}getAnnotatedElement(){return this.containerEl?.querySelector(".bp-media")}addManagers(e,t){this.managers.add(new of({location:Ke,popupPortalEl:this.popupPortalEl,referenceEl:e,resinTags:t,targetType:He.FRAME})),this.managers.add(new op({location:Ke,referenceEl:e,resinTags:t,targetType:He.FRAME})),this.managers.add(new ef({location:Ke,referenceEl:e,resinTags:t,targetType:He.FRAME})),this.managers.add(new zd({location:Ke,referenceEl:e,resinTags:t,targetType:He.FRAME}))}getManagers(e,t){const r={fileid:nt(this.store.getState()),iscurrent:it(this.store.getState())};return this.managers.forEach(t=>{t.exists(e)||(t.destroy(),this.managers.delete(t))}),0===this.managers.size&&this.addManagers(t,r),this.managers}getReference(){return this.annotatedEl?.querySelector("video")}render(){const e=this.getReference(),t=st(this.store.getState())||0;this.annotatedEl&&e&&(this.getManagers(this.annotatedEl,e).forEach(r=>{r.style({height:`${e.offsetHeight}px`,left:`${e.offsetLeft}px`,top:`${e.offsetTop}px`,transform:`rotate(${t}deg)`,width:`${e.offsetWidth}px`}),r.render({callbacks:{onCopyLink:this.onCopyLink},intl:this.intl,store:this.store})}),this.postRender())}scrollToAnnotation(e,t=-1){if(!e)return;const r=qe(this.store.getState(),e),n=r?.target?.location?.value??t,o=this.getReference();o&&this.annotatedEl&&-1!==n&&(o.pause(),o.currentTime=n/1e3)}},NAME:"Media",TYPES:[yr.region],VIEWERS:["Dash","MP4"]}];globalThis.BoxAnnotations=class{constructor(e,r){t(this,"annotators",void 0),t(this,"annotationsOptions",void 0),t(this,"viewerOptions",void 0),this.annotators=zp,this.annotationsOptions=r,this.viewerOptions=e}canLoad(e){return!(!e||!e[fr.CAN_CREATE_ANNOTATIONS]&&!e[fr.CAN_VIEW_ANNOTATIONS])}getAnnotators(){return Array.isArray(this.annotators)?this.annotators:[]}getAnnotatorsForViewer(e=""){return this.getAnnotators().find(t=>t.VIEWERS.includes(e))}determineAnnotator(e,t={}){const r=this.getAnnotatorsForViewer(o()(e,"viewer.NAME")),n=this.canLoad(o()(e,"file.permissions"));if(!r||!n||!1===t.enabled)return null;const i=o()(this.viewerOptions,[r.NAME,"enabledTypes"]),a=o()(t,"enabledTypes"),s=(i||a||r.TYPES||[]).filter(e=>r.TYPES.some(t=>t===e));return Hp(Hp({},r),{},{TYPES:s})}getOptions(){return this.annotationsOptions}}})()})();
|