@pdftron/webviewer 11.7.0 → 11.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
  (window.webpackJsonp=window.webpackJsonp||[]).push([[26,6,20,21,31,83],{1565:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;const r=n(1675),o=n(1620),i=n(1621),a=n(1676);t.AttributeMap=a.default;const l=n(1622);t.Op=l.default;const s=n(1677);t.OpIterator=s.default;const c=String.fromCharCode(0),u=(e,t)=>{if("object"!=typeof e||null===e)throw new Error("cannot retain a "+typeof e);if("object"!=typeof t||null===t)throw new Error("cannot retain a "+typeof t);const n=Object.keys(e)[0];if(!n||n!==Object.keys(t)[0])throw new Error(`embed types not matched: ${n} != ${Object.keys(t)[0]}`);return[n,e[n],t[n]]};class f{constructor(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}static registerEmbed(e,t){this.handlers[e]=t}static unregisterEmbed(e){delete this.handlers[e]}static getHandler(e){const t=this.handlers[e];if(!t)throw new Error(`no handlers for embed type "${e}"`);return t}insert(e,t){const n={};return"string"==typeof e&&0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))}delete(e){return e<=0?this:this.push({delete:e})}retain(e,t){if("number"==typeof e&&e<=0)return this;const n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)}push(e){let t=this.ops.length,n=this.ops[t-1];if(e=o(e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,n=this.ops[t-1],"object"!=typeof n))return this.ops.unshift(e),this;if(i(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this}chop(){const e=this.ops[this.ops.length-1];return e&&"number"==typeof e.retain&&!e.attributes&&this.ops.pop(),this}filter(e){return this.ops.filter(e)}forEach(e){this.ops.forEach(e)}map(e){return this.ops.map(e)}partition(e){const t=[],n=[];return this.forEach(r=>{(e(r)?t:n).push(r)}),[t,n]}reduce(e,t){return this.ops.reduce(e,t)}changeLength(){return this.reduce((e,t)=>t.insert?e+l.default.length(t):t.delete?e-t.delete:e,0)}length(){return this.reduce((e,t)=>e+l.default.length(t),0)}slice(e=0,t=1/0){const n=[],r=new s.default(this.ops);let o=0;for(;o<t&&r.hasNext();){let i;o<e?i=r.next(e-o):(i=r.next(t-o),n.push(i)),o+=l.default.length(i)}return new f(n)}compose(e){const t=new s.default(this.ops),n=new s.default(e.ops),r=[],o=n.peek();if(null!=o&&"number"==typeof o.retain&&null==o.attributes){let e=o.retain;for(;"insert"===t.peekType()&&t.peekLength()<=e;)e-=t.peekLength(),r.push(t.next());o.retain-e>0&&n.next(o.retain-e)}const l=new f(r);for(;t.hasNext()||n.hasNext();)if("insert"===n.peekType())l.push(n.next());else if("delete"===t.peekType())l.push(t.next());else{const e=Math.min(t.peekLength(),n.peekLength()),r=t.next(e),o=n.next(e);if(o.retain){const s={};if("number"==typeof r.retain)s.retain="number"==typeof o.retain?e:o.retain;else if("number"==typeof o.retain)null==r.retain?s.insert=r.insert:s.retain=r.retain;else{const e=null==r.retain?"insert":"retain",[t,n,i]=u(r[e],o.retain),a=f.getHandler(t);s[e]={[t]:a.compose(n,i,"retain"===e)}}const c=a.default.compose(r.attributes,o.attributes,"number"==typeof r.retain);if(c&&(s.attributes=c),l.push(s),!n.hasNext()&&i(l.ops[l.ops.length-1],s)){const e=new f(t.rest());return l.concat(e).chop()}}else"number"==typeof o.delete&&("number"==typeof r.retain||"object"==typeof r.retain&&null!==r.retain)&&l.push(o)}return l.chop()}concat(e){const t=new f(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t}diff(e,t){if(this.ops===e.ops)return new f;const n=[this,e].map(t=>t.map(n=>{if(null!=n.insert)return"string"==typeof n.insert?n.insert:c;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")}).join("")),o=new f,l=r(n[0],n[1],t,!0),u=new s.default(this.ops),d=new s.default(e.ops);return l.forEach(e=>{let t=e[1].length;for(;t>0;){let n=0;switch(e[0]){case r.INSERT:n=Math.min(d.peekLength(),t),o.push(d.next(n));break;case r.DELETE:n=Math.min(t,u.peekLength()),u.next(n),o.delete(n);break;case r.EQUAL:n=Math.min(u.peekLength(),d.peekLength(),t);const e=u.next(n),l=d.next(n);i(e.insert,l.insert)?o.retain(n,a.default.diff(e.attributes,l.attributes)):o.push(l).delete(n)}t-=n}}),o.chop()}eachLine(e,t="\n"){const n=new s.default(this.ops);let r=new f,o=0;for(;n.hasNext();){if("insert"!==n.peekType())return;const i=n.peek(),a=l.default.length(i)-n.peekLength(),s="string"==typeof i.insert?i.insert.indexOf(t,a)-a:-1;if(s<0)r.push(n.next());else if(s>0)r.push(n.next(s));else{if(!1===e(r,n.next(1).attributes||{},o))return;o+=1,r=new f}}r.length()>0&&e(r,{},o)}invert(e){const t=new f;return this.reduce((n,r)=>{if(r.insert)t.delete(l.default.length(r));else{if("number"==typeof r.retain&&null==r.attributes)return t.retain(r.retain),n+r.retain;if(r.delete||"number"==typeof r.retain){const o=r.delete||r.retain;return e.slice(n,n+o).forEach(e=>{r.delete?t.push(e):r.retain&&r.attributes&&t.retain(l.default.length(e),a.default.invert(r.attributes,e.attributes))}),n+o}if("object"==typeof r.retain&&null!==r.retain){const o=e.slice(n,n+1),i=new s.default(o.ops).next(),[l,c,d]=u(r.retain,i.insert),p=f.getHandler(l);return t.retain({[l]:p.invert(c,d)},a.default.invert(r.attributes,i.attributes)),n+1}}return n},0),t.chop()}transform(e,t=!1){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);const n=e,r=new s.default(this.ops),o=new s.default(n.ops),i=new f;for(;r.hasNext()||o.hasNext();)if("insert"!==r.peekType()||!t&&"insert"===o.peekType())if("insert"===o.peekType())i.push(o.next());else{const e=Math.min(r.peekLength(),o.peekLength()),n=r.next(e),l=o.next(e);if(n.delete)continue;if(l.delete)i.push(l);else{const r=n.retain,o=l.retain;let s="object"==typeof o&&null!==o?o:e;if("object"==typeof r&&null!==r&&"object"==typeof o&&null!==o){const e=Object.keys(r)[0];if(e===Object.keys(o)[0]){const n=f.getHandler(e);n&&(s={[e]:n.transform(r[e],o[e],t)})}}i.retain(s,a.default.transform(n.attributes,l.attributes,t))}}else i.retain(l.default.length(r.next()));return i.chop()}transformPosition(e,t=!1){t=!!t;const n=new s.default(this.ops);let r=0;for(;n.hasNext()&&r<=e;){const o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r<e||!t)&&(e+=o),r+=o):e-=Math.min(o,e-r)}return e}}f.Op=l.default,f.OpIterator=s.default,f.AttributeMap=a.default,f.handlers={},t.default=f,e.exports=f,e.exports.default=f},1571:function(e,t,n){"use strict";var r=n(0),o=n.n(r).a.createContext();t.a=o},1582:function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"Attributor",(function(){return a})),n.d(r,"AttributorStore",(function(){return h})),n.d(r,"BlockBlot",(function(){return _})),n.d(r,"ClassAttributor",(function(){return f})),n.d(r,"ContainerBlot",(function(){return A})),n.d(r,"EmbedBlot",(function(){return T})),n.d(r,"InlineBlot",(function(){return E})),n.d(r,"LeafBlot",(function(){return v})),n.d(r,"ParentBlot",(function(){return S})),n.d(r,"Registry",(function(){return c})),n.d(r,"Scope",(function(){return i})),n.d(r,"ScrollBlot",(function(){return N})),n.d(r,"StyleAttributor",(function(){return p})),n.d(r,"TextBlot",(function(){return R}));n(9),n(10),n(14),n(21),n(76),n(20),n(22),n(18),n(16),n(48),n(24),n(47),n(49),n(17),n(19),n(11),n(13),n(30),n(38),n(34),n(81),n(27),n(12),n(44),n(118),n(31),n(28),n(228),n(627),n(37),n(8),n(181),n(153),n(29);var o=n(1591),i=(e=>(e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY",e))(i||{});class a{constructor(e,t,n={}){this.attrName=e,this.keyName=t;const r=i.TYPE&i.ATTRIBUTE;this.scope=null!=n.scope?n.scope&i.LEVEL|r:i.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}static keys(e){return Array.from(e.attributes).map(e=>e.name)}add(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)}canAdd(e,t){return null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1)}remove(e){e.removeAttribute(this.keyName)}value(e){const t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""}}class l extends Error{constructor(e){super(e="[Parchment] "+e),this.message=e,this.name=this.constructor.name}}const s=class e{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,t=!1){if(null==e)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(t){let n=null;try{n=e.parentNode}catch{return null}return this.find(n,t)}return null}create(t,n,r){const o=this.query(n);if(null==o)throw new l(`Unable to create ${n} blot`);const i=o,a=n instanceof Node||n.nodeType===Node.TEXT_NODE?n:i.create(r),s=new i(t,a,r);return e.blots.set(s.domNode,s),s}find(t,n=!1){return e.find(t,n)}query(e,t=i.ANY){let n;return"string"==typeof e?n=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?n=this.types.text:"number"==typeof e?e&i.LEVEL&i.BLOCK?n=this.types.block:e&i.LEVEL&i.INLINE&&(n=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(e=>(n=this.classes[e],!!n)),n=n||this.tags[e.tagName]),null==n?null:"scope"in n&&t&i.LEVEL&n.scope&&t&i.TYPE&n.scope?n:null}register(...e){return e.map(e=>{const t="blotName"in e,n="attrName"in e;if(!t&&!n)throw new l("Invalid definition");if(t&&"abstract"===e.blotName)throw new l("Cannot register abstract class");const r=t?e.blotName:n?e.attrName:void 0;return this.types[r]=e,n?"string"==typeof e.keyName&&(this.attributes[e.keyName]=e):t&&(e.className&&(this.classes[e.className]=e),e.tagName&&(Array.isArray(e.tagName)?e.tagName=e.tagName.map(e=>e.toUpperCase()):e.tagName=e.tagName.toUpperCase(),(Array.isArray(e.tagName)?e.tagName:[e.tagName]).forEach(t=>{(null==this.tags[t]||null==e.className)&&(this.tags[t]=e)}))),e})}};s.blots=new WeakMap;let c=s;function u(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter(e=>0===e.indexOf(t+"-"))}const f=class extends a{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(e=>e.split("-").slice(0,-1).join("-"))}add(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(`${this.keyName}-${t}`),!0)}remove(e){u(e,this.keyName).forEach(t=>{e.classList.remove(t)}),0===e.classList.length&&e.removeAttribute("class")}value(e){const t=(u(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}};function d(e){const t=e.split("-"),n=t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join("");return t[0]+n}const p=class extends a{static keys(e){return(e.getAttribute("style")||"").split(";").map(e=>e.split(":")[0].trim())}add(e,t){return!!this.canAdd(e,t)&&(e.style[d(this.keyName)]=t,!0)}remove(e){e.style[d(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[d(this.keyName)];return this.canAdd(e,t)?t:""}};const h=class{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=c.find(this.domNode);if(null==e)return;const t=a.keys(this.domNode),n=f.keys(this.domNode),r=p.keys(this.domNode);t.concat(n).concat(r).forEach(t=>{const n=e.scroll.query(t,i.ATTRIBUTE);n instanceof a&&(this.attributes[n.attrName]=n)})}copy(e){Object.keys(this.attributes).forEach(t=>{const n=this.attributes[t].value(this.domNode);e.format(t,n)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(e=>{this.attributes[e].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,t)=>(e[t]=this.attributes[t].value(this.domNode),e),{})}},m=class{constructor(e,t){this.scroll=e,this.domNode=t,c.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(null==this.tagName)throw new l("Blot definition missing tagName");let t,n;return Array.isArray(this.tagName)?("string"==typeof e?(n=e.toUpperCase(),parseInt(n,10).toString()===n&&(n=parseInt(n,10))):"number"==typeof e&&(n=e),t="number"==typeof n?document.createElement(this.tagName[n-1]):n&&this.tagName.indexOf(n)>-1?document.createElement(n):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){null!=this.parent&&this.parent.removeChild(this),c.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,n,r){const o=this.isolate(e,t);if(null!=this.scroll.query(n,i.BLOT)&&r)o.wrap(n,r);else if(null!=this.scroll.query(n,i.ATTRIBUTE)){const e=this.scroll.create(this.statics.scope);o.wrap(e),e.format(n,r)}}insertAt(e,t,n){const r=null==n?this.scroll.create("text",t):this.scroll.create(t,n),o=this.split(e);this.parent.insertBefore(r,o||void 0)}isolate(e,t){const n=this.split(e);if(null==n)throw new Error("Attempt to isolate at end");return n.split(t),n}length(){return 1}offset(e=this.parent){return null==this.parent||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,t){const n="string"==typeof e?this.scroll.create(e,t):e;return null!=this.parent&&(this.parent.insertBefore(n,this.next||void 0),this.remove()),n}split(e,t){return 0===e?this:this.next}update(e,t){}wrap(e,t){const n="string"==typeof e?this.scroll.create(e,t):e;if(null!=this.parent&&this.parent.insertBefore(n,this.next||void 0),"function"!=typeof n.appendChild)throw new l("Cannot wrap "+e);return n.appendChild(this),n}};m.blotName="abstract";let b=m;const y=class extends b{static value(e){return!0}index(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(e,t){let n=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};y.scope=i.INLINE_BLOT;const v=y;class g{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const t=e.slice(1);this.append(...t)}}at(e){const t=this.iterator();let n=t();for(;n&&e>0;)e-=1,n=t();return n}contains(e){const t=this.iterator();let n=t();for(;n;){if(n===e)return!0;n=t()}return!1}indexOf(e){const t=this.iterator();let n=t(),r=0;for(;n;){if(n===e)return r;r+=1,n=t()}return-1}insertBefore(e,t){null!=e&&(this.remove(e),e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let t=0,n=this.head;for(;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1}remove(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const t=e;return null!=e&&(e=e.next),t}}find(e,t=!1){const n=this.iterator();let r=n();for(;r;){const o=r.length();if(e<o||t&&e===o&&(null==r.next||0!==r.next.length()))return[r,e];e-=o,r=n()}return[null,0]}forEach(e){const t=this.iterator();let n=t();for(;n;)e(n),n=t()}forEachAt(e,t,n){if(t<=0)return;const[r,o]=this.find(e);let i=e-o;const a=this.iterator(r);let l=a();for(;l&&i<e+t;){const r=l.length();e>i?n(l,e-i,Math.min(t,i+r-e)):n(l,0,Math.min(r,e+t-i)),i+=r,l=a()}}map(e){return this.reduce((t,n)=>(t.push(e(n)),t),[])}reduce(e,t){const n=this.iterator();let r=n();for(;r;)t=e(t,r),r=n();return t}}function w(e,t){const n=t.find(e);if(n)return n;try{return t.create(e)}catch{const n=t.create(i.INLINE);return Array.from(e.childNodes).forEach(e=>{n.domNode.appendChild(e)}),e.parentNode&&e.parentNode.replaceChild(n.domNode,e),n.attach(),n}}const x=class e extends b{constructor(e,t){super(e,t),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(t){null!=this.uiNode&&this.uiNode.remove(),this.uiNode=t,e.uiClass&&this.uiNode.classList.add(e.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new g,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=w(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(e){if(e instanceof l)return;throw e}})}deleteAt(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(e,t,n)=>{e.deleteAt(t,n)})}descendant(t,n=0){const[r,o]=this.children.find(n);return null==t.blotName&&t(r)||null!=t.blotName&&r instanceof t?[r,o]:r instanceof e?r.descendant(t,o):[null,-1]}descendants(t,n=0,r=Number.MAX_VALUE){let o=[],i=r;return this.children.forEachAt(n,r,(n,r,a)=>{(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&o.push(n),n instanceof e&&(o=o.concat(n.descendants(t,r,i))),i-=a}),o}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(n=>{t||this.statics.allowedChildren.some(e=>n instanceof e)||(n.statics.scope===i.BLOCK_BLOT?(null!=n.next&&this.splitAfter(n),null!=n.prev&&this.splitAfter(n.prev),n.parent.unwrap(),t=!0):n instanceof e?n.unwrap():n.remove())})}formatAt(e,t,n,r){this.children.forEachAt(e,t,(e,t,o)=>{e.formatAt(t,o,n,r)})}insertAt(e,t,n){const[r,o]=this.children.find(e);if(r)r.insertAt(o,t,n);else{const e=null==n?this.scroll.create("text",t):this.scroll.create(t,n);this.appendChild(e)}}insertBefore(e,t){null!=e.parent&&e.parent.children.remove(e);let n=null;this.children.insertBefore(e,t||null),e.parent=this,null!=t&&(n=t.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==n)&&this.domNode.insertBefore(e.domNode,n),e.attach()}length(){return this.children.reduce((e,t)=>e+t.length(),0)}moveChildren(e,t){this.children.forEach(n=>{e.insertBefore(n,t)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),null!=this.uiNode&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),0===this.children.length)if(null!=this.statics.defaultChild){const e=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(e)}else this.remove()}path(t,n=!1){const[r,o]=this.children.find(t,n),i=[[this,t]];return r instanceof e?i.concat(r.path(o,n)):(null!=r&&i.push([r,o]),i)}removeChild(e){this.children.remove(e)}replaceWith(t,n){const r="string"==typeof t?this.scroll.create(t,n):t;return r instanceof e&&this.moveChildren(r),super.replaceWith(r)}split(e,t=!1){if(!t){if(0===e)return this;if(e===this.length())return this.next}const n=this.clone();return this.parent&&this.parent.insertBefore(n,this.next||void 0),this.children.forEachAt(e,this.length(),(e,r,o)=>{const i=e.split(r,t);null!=i&&n.appendChild(i)}),n}splitAfter(e){const t=this.clone();for(;null!=e.next;)t.appendChild(e.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,t){const n=[],r=[];e.forEach(e=>{e.target===this.domNode&&"childList"===e.type&&(n.push(...e.addedNodes),r.push(...e.removedNodes))}),r.forEach(e=>{if(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const t=this.scroll.find(e);null!=t&&(null==t.domNode.parentNode||t.domNode.parentNode===this.domNode)&&t.detach()}),n.filter(e=>e.parentNode===this.domNode&&e!==this.uiNode).sort((e,t)=>e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(e=>{let t=null;null!=e.nextSibling&&(t=this.scroll.find(e.nextSibling));const n=w(e,this.scroll);(n.next!==t||null==n.next)&&(null!=n.parent&&n.parent.removeChild(this),this.insertBefore(n,t||void 0))}),this.enforceAllowedChildren()}};x.uiClass="";const S=x;const O=class e extends S{static create(e){return super.create(e)}static formats(t,n){const r=n.query(e.blotName);if(null==r||t.tagName!==r.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new h(this.domNode)}format(t,n){if(t!==this.statics.blotName||n){const e=this.scroll.query(t,i.INLINE);if(null==e)return;e instanceof a?this.attributes.attribute(e,n):n&&(t!==this.statics.blotName||this.formats()[t]!==n)&&this.replaceWith(t,n)}else this.children.forEach(t=>{t instanceof e||(t=t.wrap(e.blotName,!0)),this.attributes.copy(t)}),this.unwrap()}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return null!=t&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,r){null!=this.formats()[n]||this.scroll.query(n,i.ATTRIBUTE)?this.isolate(e,t).format(n,r):super.formatAt(e,t,n,r)}optimize(t){super.optimize(t);const n=this.formats();if(0===Object.keys(n).length)return this.unwrap();const r=this.next;r instanceof e&&r.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}(n,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(e,t){const n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some(e=>e.target===this.domNode&&"attributes"===e.type)&&this.attributes.build()}wrap(t,n){const r=super.wrap(t,n);return r instanceof e&&this.attributes.move(r),r}};O.allowedChildren=[O,v],O.blotName="inline",O.scope=i.INLINE_BLOT,O.tagName="SPAN";const E=O,k=class e extends S{static create(e){return super.create(e)}static formats(t,n){const r=n.query(e.blotName);if(null==r||t.tagName!==r.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new h(this.domNode)}format(t,n){const r=this.scroll.query(t,i.BLOCK);null!=r&&(r instanceof a?this.attributes.attribute(r,n):t!==this.statics.blotName||n?n&&(t!==this.statics.blotName||this.formats()[t]!==n)&&this.replaceWith(t,n):this.replaceWith(e.blotName))}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return null!=t&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,r){null!=this.scroll.query(n,i.BLOCK)?this.format(n,r):super.formatAt(e,t,n,r)}insertAt(e,t,n){if(null==n||null!=this.scroll.query(t,i.INLINE))super.insertAt(e,t,n);else{const r=this.split(e);if(null==r)throw new Error("Attempt to insertAt after block boundaries");{const e=this.scroll.create(t,n);r.parent.insertBefore(e,r)}}}replaceWith(e,t){const n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some(e=>e.target===this.domNode&&"attributes"===e.type)&&this.attributes.build()}};k.blotName="block",k.scope=i.BLOCK_BLOT,k.tagName="P",k.allowedChildren=[E,k,v];const _=k,C=class extends S{checkMerge(){return null!==this.next&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,t){super.deleteAt(e,t),this.enforceAllowedChildren()}formatAt(e,t,n,r){super.formatAt(e,t,n,r),this.enforceAllowedChildren()}insertAt(e,t,n){super.insertAt(e,t,n),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&null!=this.next&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};C.blotName="container",C.scope=i.BLOCK_BLOT;const A=C;const T=class extends v{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,n,r){0===e&&t===this.length()?this.format(n,r):super.formatAt(e,t,n,r)}formats(){return this.statics.formats(this.domNode,this.scroll)}},j={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},q=class extends S{constructor(e,t){super(null,t),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(e=>{this.update(e)}),this.observer.observe(this.domNode,j),this.attach()}create(e,t){return this.registry.create(this,e,t)}find(e,t=!1){const n=this.registry.find(e,t);return n?n.scroll===this?n:t?this.find(n.scroll.domNode.parentNode,!0):null:null}query(e,t=i.ANY){return this.registry.query(e,t)}register(...e){return this.registry.register(...e)}build(){null!=this.scroll&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,t){this.update(),0===e&&t===this.length()?this.children.forEach(e=>{e.remove()}):super.deleteAt(e,t)}formatAt(e,t,n,r){this.update(),super.formatAt(e,t,n,r)}insertAt(e,t,n){this.update(),super.insertAt(e,t,n)}optimize(e=[],t={}){super.optimize(t);const n=t.mutationsMap||new WeakMap;let r=Array.from(this.observer.takeRecords());for(;r.length>0;)e.push(r.pop());const o=(e,t=!0)=>{null==e||e===this||null!=e.domNode.parentNode&&(n.has(e.domNode)||n.set(e.domNode,[]),t&&o(e.parent))},i=e=>{n.has(e.domNode)&&(e instanceof S&&e.children.forEach(i),n.delete(e.domNode),e.optimize(t))};let a=e;for(let t=0;a.length>0;t+=1){if(t>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(a.forEach(e=>{const t=this.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(o(this.find(e.previousSibling,!1)),Array.from(e.addedNodes).forEach(e=>{const t=this.find(e,!1);o(t,!1),t instanceof S&&t.children.forEach(e=>{o(e,!1)})})):"attributes"===e.type&&o(t.prev)),o(t))}),this.children.forEach(i),a=Array.from(this.observer.takeRecords()),r=a.slice();r.length>0;)e.push(r.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const n=new WeakMap;e.map(e=>{const t=this.find(e.target,!0);return null==t?null:n.has(t.domNode)?(n.get(t.domNode).push(e),null):(n.set(t.domNode,[e]),t)}).forEach(e=>{null!=e&&e!==this&&n.has(e.domNode)&&e.update(n.get(e.domNode)||[],t)}),t.mutationsMap=n,n.has(this.domNode)&&super.update(n.get(this.domNode),t),this.optimize(e,t)}};q.blotName="scroll",q.defaultChild=_,q.allowedChildren=[_,A],q.scope=i.BLOCK_BLOT,q.tagName="DIV";const N=q,P=class e extends v{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,t){super(e,t),this.text=this.statics.value(this.domNode)}deleteAt(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)}index(e,t){return this.domNode===e?t:-1}insertAt(e,t,n){null==n?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,t,n)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,t=!1){return[this.domNode,e]}split(e,t=!1){if(!t){if(0===e)return this;if(e===this.length())return this.next}const n=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next||void 0),this.text=this.statics.value(this.domNode),n}update(e,t){e.some(e=>"characterData"===e.type&&e.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};P.blotName="text",P.scope=i.INLINE_BLOT;const R=P;var I=n(1565),M=n.n(I),L=(n(85),n(470),n(180),n(115),n(618),n(1605));var D=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},z=n(1647),B=n(1578),F=n(1604),H=Object(F.a)(Object.keys,Object);var U=function(e,t){return e&&Object(B.a)(t,H(t),e)},W=n(1590);var G=function(e,t){return e&&Object(B.a)(t,Object(W.a)(t),e)},V=n(1645),K=n(1644);var $=function(){return[]};var Y=function(e,t){return Object(B.a)(e,$(e),t)};var Z=function(){return[]};var X=function(e,t){return Object(B.a)(e,Z(e),t)},Q=n(1625);var J=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},ee=n(1623),te=Object.prototype.hasOwnProperty;var ne=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&te.call(e,"index")&&(n.index=e.index,n.input=e.input),n};var re=function(e){return e},oe=n(1657),ie=n(1587),ae=n(1603);var le=function(){return!1},se=n(1580);var ce=function(){return!1},ue={};ue["[object Arguments]"]=ue["[object Array]"]=ue["[object ArrayBuffer]"]=ue["[object DataView]"]=ue["[object Boolean]"]=ue["[object Date]"]=ue["[object Float32Array]"]=ue["[object Float64Array]"]=ue["[object Int8Array]"]=ue["[object Int16Array]"]=ue["[object Int32Array]"]=ue["[object Map]"]=ue["[object Number]"]=ue["[object Object]"]=ue["[object RegExp]"]=ue["[object Set]"]=ue["[object String]"]=ue["[object Symbol]"]=ue["[object Uint8Array]"]=ue["[object Uint8ClampedArray]"]=ue["[object Uint16Array]"]=ue["[object Uint32Array]"]=!0,ue["[object Error]"]=ue["[object Function]"]=ue["[object WeakMap]"]=!1;var fe=function e(t,n,r,o,i,a){var l,s=1&n,c=2&n,u=4&n;if(r&&(l=i?r(t,o,i,a):r(t)),void 0!==l)return l;if(!Object(se.a)(t))return t;var f=Object(ie.a)(t);if(f){if(l=ne(t),!s)return Object(K.a)(t,l)}else{var d=Object(ee.a)(t),p="[object Function]"==d||"[object GeneratorFunction]"==d;if(Object(ae.a)(t))return Object(V.a)(t,s);if("[object Object]"==d||"[object Arguments]"==d||p&&!i){if(l=c||p?{}:Object(oe.a)(t),!s)return c?X(t,G(l,t)):Y(t,U(l,t))}else{if(!ue[d])return i?t:{};l=re(t,d,s)}}a||(a=new L.a);var h=a.get(t);if(h)return h;a.set(t,l),ce(t)?t.forEach((function(o){l.add(e(o,n,r,o,t,a))})):le(t)&&t.forEach((function(o,i){l.set(i,e(o,n,r,i,t,a))}));var m=u?c?J:Q.a:c?W.a:H,b=f?void 0:m(t);return D(b||t,(function(o,i){b&&(o=t[i=o]),Object(z.a)(l,i,e(o,n,r,i,t,a))})),l};var de=function(e){return fe(e,5)},pe=n(1844);n(26),n(40),n(42),n(43),n(84),n(615),n(467);function he(e){return(he="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)}function me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function be(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ye(r.key),r)}}function ye(e){var t=function(e,t){if("object"!=he(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=he(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==he(t)?t:t+""}function ve(e,t,n){return t=ge(t),function(e,t){if(t&&("object"==he(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],ge(e).constructor):t.apply(e,n))}function ge(e){return(ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function we(e,t){return(we=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var xe=function(e){function t(){return me(this,t),ve(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&we(e,t)}(t,e),n=t,o=[{key:"value",value:function(){}}],(r=[{key:"optimize",value:function(){(this.prev||this.next)&&this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}])&&be(n.prototype,r),o&&be(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(T);xe.blotName="break",xe.tagName="BR";var Se=xe;function Oe(e){return(Oe="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)}function Ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ke(r.key),r)}}function ke(e){var t=function(e,t){if("object"!=Oe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Oe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Oe(t)?t:t+""}function _e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ce(e,t,n){return t=Ae(t),function(e,t){if(t&&("object"==Oe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Ae(e).constructor):t.apply(e,n))}function Ae(e){return(Ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Te(e,t){return(Te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var je=function(e){function t(){return _e(this,t),Ce(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Te(e,t)}(t,e),n=t,r&&Ee(n.prototype,r),o&&Ee(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(R),qe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ne(e){return e.replace(/[&<>"']/g,(function(e){return qe[e]}))}function Pe(e){return(Pe="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)}function Re(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ue(r.key),r)}}function Me(e,t,n){return t=Be(t),function(e,t){if(t&&("object"==Pe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Be(e).constructor):t.apply(e,n))}function Le(e,t,n,r){var o=De(Be(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function De(){return(De="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=ze(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(null,arguments)}function ze(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Be(e)););return e}function Be(e){return(Be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fe(e,t){return(Fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function He(e,t,n){return(t=Ue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ue(e){var t=function(e,t){if("object"!=Pe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Pe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Pe(t)?t:t+""}var We=function(e){function t(){return Re(this,t),Me(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fe(e,t)}(t,e),n=t,o=[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),o=t.order.indexOf(n);return r>=0||o>=0?r-o:e===n?0:e<n?-1:1}}],(r=[{key:"formatAt",value:function(e,n,r,o){if(t.compare(this.statics.blotName,r)<0&&this.scroll.query(r,i.BLOT)){var a=this.isolate(e,n);o&&a.wrap(r,o)}else Le(t,"formatAt",this,3)([e,n,r,o])}},{key:"optimize",value:function(e){if(Le(t,"optimize",this,3)([e]),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}])&&Ie(n.prototype,r),o&&Ie(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(E);He(We,"allowedChildren",[We,Se,T,je]),He(We,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);var Ge=We;function Ve(e){return(Ve="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)}function Ke(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 $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach((function(t){it(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,at(r.key),r)}}function Xe(e,t,n){return t&&Ze(e.prototype,t),n&&Ze(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qe(e,t,n){return t=nt(t),function(e,t){if(t&&("object"==Ve(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],nt(e).constructor):t.apply(e,n))}function Je(e,t,n,r){var o=et(nt(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function et(){return(et="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=tt(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(null,arguments)}function tt(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=nt(e)););return e}function nt(e){return(nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ot(e,t)}function ot(e,t){return(ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function it(e,t,n){return(t=at(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function at(e){var t=function(e,t){if("object"!=Ve(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ve(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ve(t)?t:t+""}var lt=function(e){function t(){var e;Ye(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return it(e=Qe(this,t,[].concat(r)),"cache",{}),e}return rt(t,e),Xe(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=ct(this)),this.cache.delta}},{key:"deleteAt",value:function(e,n){Je(t,"deleteAt",this,3)([e,n]),this.cache={}}},{key:"formatAt",value:function(e,n,r,o){n<=0||(this.scroll.query(r,i.BLOCK)?e+n===this.length()&&this.format(r,o):Je(t,"formatAt",this,3)([e,Math.min(n,this.length()-e-1),r,o]),this.cache={})}},{key:"insertAt",value:function(e,n,r){if(null!=r)return Je(t,"insertAt",this,3)([e,n,r]),void(this.cache={});if(0!==n.length){var o=n.split("\n"),i=o.shift();i.length>0&&(e<this.length()-1||null==this.children.tail?Je(t,"insertAt",this,3)([Math.min(e,this.length()-1),i]):this.children.tail.insertAt(this.children.tail.length(),i),this.cache={});var a=this;o.reduce((function(e,t){return(a=a.split(e,!0)).insertAt(0,t),t.length}),e+i.length)}}},{key:"insertBefore",value:function(e,n){var r=this.children.head;Je(t,"insertBefore",this,3)([e,n]),r instanceof Se&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=Je(t,"length",this,3)([])+1),this.cache.length}},{key:"moveChildren",value:function(e,n){Je(t,"moveChildren",this,3)([e,n]),this.cache={}}},{key:"optimize",value:function(e){Je(t,"optimize",this,3)([e]),this.cache={}}},{key:"path",value:function(e){return Je(t,"path",this,3)([e,!0])}},{key:"removeChild",value:function(e){Je(t,"removeChild",this,3)([e]),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=Je(t,"split",this,3)([e,n]);return this.cache={},o}}])}(_);lt.blotName="block",lt.tagName="P",lt.defaultChild=Se,lt.allowedChildren=[Se,Ge,T,je];var st=function(e){function t(){return Ye(this,t),Qe(this,t,arguments)}return rt(t,e),Xe(t,[{key:"attach",value:function(){Je(t,"attach",this,3)([]),this.attributes=new h(this.domNode)}},{key:"delta",value:function(){return(new M.a).insert(this.value(),$e($e({},this.formats()),this.attributes.values()))}},{key:"format",value:function(e,t){var n=this.scroll.query(e,i.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,r){this.format(n,r)}},{key:"insertAt",value:function(e,n,r){var o=this;if(null==r){var i=n.split("\n"),a=i.pop(),l=i.map((function(e){var t=o.scroll.create(lt.blotName);return t.insertAt(0,e),t})),s=this.split(e);l.forEach((function(e){o.parent.insertBefore(e,s)})),a&&this.parent.insertBefore(this.scroll.create("text",a),s)}else Je(t,"insertAt",this,3)([e,n,r])}}])}(T);function ct(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.descendants(v).reduce((function(e,n){return 0===n.length()?e:e.insert(n.value(),ut(n,{},t))}),new M.a).insert("\n",ut(e))}function ut(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return null==e?t:("formats"in e&&"function"==typeof e.formats&&(t=$e($e({},t),e.formats()),n&&delete t["code-token"]),null==e.parent||"scroll"===e.parent.statics.blotName||e.parent.statics.scope!==e.statics.scope?t:ut(e.parent,t,n))}st.scope=i.BLOCK_BLOT;n(99);function ft(e){return(ft="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)}function dt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wt(r.key),r)}}function pt(e,t,n){return t=yt(t),function(e,t){if(t&&("object"==ft(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],yt(e).constructor):t.apply(e,n))}function ht(e,t,n,r){var o=mt(yt(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function mt(){return(mt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=bt(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(null,arguments)}function bt(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=yt(e)););return e}function yt(e){return(yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vt(e,t){return(vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function gt(e,t,n){return(t=wt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wt(e){var t=function(e,t){if("object"!=ft(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ft(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ft(t)?t:t+""}var xt=function(e){function t(e,n,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=pt(this,t,[e,n])).selection=r,o.textNode=document.createTextNode(t.CONTENTS),o.domNode.appendChild(o.textNode),o.savedLength=0,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vt(e,t)}(t,e),n=t,o=[{key:"value",value:function(){}}],(r=[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0===this.savedLength){for(var r=this,o=0;null!=r&&r.statics.scope!==i.BLOCK_BLOT;)o+=r.offset(r.parent),r=r.parent;null!=r&&(this.savedLength=t.CONTENTS.length,r.optimize(),r.formatAt(o,t.CONTENTS.length,e,n),this.savedLength=0)}else ht(t,"format",this,3)([e,n])}},{key:"index",value:function(e,n){return e===this.textNode?0:ht(t,"index",this,3)([e,n])}},{key:"length",value:function(){return this.savedLength}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){ht(t,"remove",this,3)([]),this.parent=null}},{key:"restore",value:function(){if(this.selection.composing||null==this.parent)return null;for(var e=this.selection.getNativeRange();null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);var n,r=this.prev instanceof je?this.prev:null,o=r?r.length():0,i=this.next instanceof je?this.next:null,a=i?i.text:"",l=this.textNode,s=l.data.split(t.CONTENTS).join("");if(l.data=t.CONTENTS,r)n=r,(s||i)&&(r.insertAt(r.length(),s+a),i&&i.remove());else if(i)n=i,i.insertAt(0,s);else{var c=document.createTextNode(s);n=this.scroll.create(c),this.parent.insertBefore(n,this)}if(this.remove(),e){var u=function(e,t){return r&&e===r.domNode?t:e===l?o+t-1:i&&e===i.domNode?o+s.length+t:null},f=u(e.start.node,e.start.offset),d=u(e.end.node,e.end.offset);if(null!==f&&null!==d)return{startNode:n.domNode,startOffset:f,endNode:n.domNode,endOffset:d}}return null}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var r=this.restore();r&&(t.range=r)}}},{key:"optimize",value:function(e){ht(t,"optimize",this,3)([e]);for(var n=this.parent;n;){if("A"===n.domNode.tagName){this.savedLength=t.CONTENTS.length,n.isolate(this.offset(n),this.length()).unwrap(),this.savedLength=0;break}n=n.parent}}},{key:"value",value:function(){return""}}])&&dt(n.prototype,r),o&&dt(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(T);gt(xt,"blotName","cursor"),gt(xt,"className","ql-cursor"),gt(xt,"tagName","span"),gt(xt,"CONTENTS","\ufeff");var St=xt,Ot=(n(94),n(1678)),Et=(n(1594),new WeakMap),kt=["error","warn","log","info"],_t="warn";function Ct(e){if(_t&&kt.indexOf(e)<=kt.indexOf(_t)){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=console)[e].apply(t,r)}}function At(e){return kt.reduce((function(t,n){return t[n]=Ct.bind(console,n,e),t}),{})}At.level=function(e){_t=e},Ct.level=At.level;var Tt=At;function jt(e){return(jt="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)}function qt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zt(r.key),r)}}function Nt(e,t,n){return t=Mt(t),function(e,t){if(t&&("object"==jt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Mt(e).constructor):t.apply(e,n))}function Pt(e,t,n,r){var o=Rt(Mt(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function Rt(){return(Rt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=It(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(null,arguments)}function It(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Mt(e)););return e}function Mt(e){return(Mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Lt(e,t){return(Lt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Dt(e,t,n){return(t=zt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zt(e){var t=function(e,t){if("object"!=jt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=jt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==jt(t)?t:t+""}var Bt=Tt("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Array.from(document.querySelectorAll(".ql-container")).forEach((function(e){var n,r=Et.get(e);r&&r.emitter&&(n=r.emitter).handleDOM.apply(n,t)}))}))}));var Ft=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=Nt(this,t)).domListeners={},e.on("error",Bt.error),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lt(e,t)}(t,e),n=t,(r=[{key:"emit",value:function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=Bt.log).call.apply(e,[Bt].concat(r)),Pt(t,"emit",this,3)(r)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(this.domListeners[e.type]||[]).forEach((function(t){var r=t.node,o=t.handler;(e.target===r||r.contains(e.target))&&o.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.domListeners[e]||(this.domListeners[e]=[]),this.domListeners[e].push({node:t,handler:n})}}])&&qt(n.prototype,r),o&&qt(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ot.EventEmitter);Dt(Ft,"events",{EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"}),Dt(Ft,"sources",{API:"api",SILENT:"silent",USER:"user"});var Ht=Ft;function Ut(e){return(Ut="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)}function Wt(e){return function(e){if(Array.isArray(e))return Kt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Vt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||Vt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vt(e,t){if(e){if("string"==typeof e)return Kt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kt(e,t):void 0}}function Kt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zt(r.key),r)}}function Yt(e,t,n){return t&&$t(e.prototype,t),n&&$t(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zt(e){var t=function(e,t){if("object"!=Ut(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ut(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ut(t)?t:t+""}function Xt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Qt=Tt("quill:selection"),Jt=Yt((function e(t){Xt(this,e);var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.index=t,this.length=n}));function en(e,t){try{t.parentNode}catch(e){return!1}return e.contains(t)}var tn=function(){return Yt((function e(t,n){var r=this;Xt(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new Jt(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||r.composing||setTimeout(r.update.bind(r,Ht.sources.USER),1)})),this.emitter.on(Ht.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(Ht.events.SCROLL_UPDATE,(function(t,n){try{r.root.contains(e.start.node)&&r.root.contains(e.end.node)&&r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset);var o=n.some((function(e){return"characterData"===e.type||"childList"===e.type||"attributes"===e.type&&e.target===r.root}));r.update(o?Ht.sources.SILENT:t)}catch(e){}}))}})),this.emitter.on(Ht.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,o=n.startNode,i=n.startOffset,a=n.endNode,l=n.endOffset;r.setNativeRange(o,i,a,l),r.update(Ht.sources.SILENT)}})),this.update(Ht.sources.SILENT)}),[{key:"handleComposition",value:function(){var e=this;this.emitter.on(Ht.events.COMPOSITION_BEFORE_START,(function(){e.composing=!0})),this.emitter.on(Ht.events.COMPOSITION_END,(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(Ht.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!this.scroll.query(e,i.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=this.scroll.find(n.start.node,!1);if(null==r)return;if(r instanceof v){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}},{key:"getBounds",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.scroll.length();e=Math.min(e,r-1),n=Math.min(e+n,r-1)-e;var o=this.scroll.leaf(e),i=Gt(o,2),a=i[0],l=i[1];if(null==a)return null;if(n>0&&l===a.length()){var s=this.scroll.leaf(e+1),c=Gt(s,1),u=c[0];if(u){var f=this.scroll.line(e),d=Gt(f,1),p=d[0],h=this.scroll.line(e+1),m=Gt(h,1),b=m[0];p===b&&(a=u,l=0)}}var y=a.position(l,!0),v=Gt(y,2);t=v[0],l=v[1];var g=document.createRange();if(n>0){g.setStart(t,l);var w=this.scroll.leaf(e+n),x=Gt(w,2);if(a=x[0],l=x[1],null==a)return null;var S=a.position(l,!0),O=Gt(S,2);return t=O[0],l=O[1],g.setEnd(t,l),g.getBoundingClientRect()}var E,k="left";if(t instanceof Text){if(!t.data.length)return null;l<t.data.length?(g.setStart(t,l),g.setEnd(t,l+1)):(g.setStart(t,l-1),g.setEnd(t,l),k="right"),E=g.getBoundingClientRect()}else{if(!(a.domNode instanceof Element))return null;E=a.domNode.getBoundingClientRect(),l>0&&(k="right")}return{bottom:E.top+E.height,height:E.height,left:E[k],right:E[k],top:E.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return Qt.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.scroll.domNode;if("isConnected"in e&&!e.isConnected)return[null,null];var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root||null!=document.activeElement&&en(this.root,document.activeElement)}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var r=n.map((function(e){var n=Gt(e,2),r=n[0],o=n[1],i=t.scroll.find(r,!0),a=i.offset(t.scroll);return 0===o?a:i instanceof v?a+i.index(r,o):a+i.length()})),o=Math.min(Math.max.apply(Math,Wt(r)),this.scroll.length()-1),i=Math.min.apply(Math,[o].concat(Wt(r)));return new Jt(i,o-i)}},{key:"normalizeNative",value:function(e){if(!en(this.root,e.startContainer)||!e.collapsed&&!en(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length>0?t.childNodes.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=this.scroll.length(),r=function(e,r){e=Math.min(n-1,e);var o=Gt(t.scroll.leaf(e),2),i=o[0],a=o[1];return i?i.position(a,r):[null,-1]};return[].concat(Wt(r(e.index,!1)),Wt(r(e.index+e.length,!0)))}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(Qt.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus({preventScroll:!0});var a=this.getNativeRange()||{},l=a.native;if(null==l||o||e!==l.startContainer||t!==l.startOffset||n!==l.endContainer||r!==l.endOffset){e instanceof Element&&"BR"===e.tagName&&(t=Array.from(e.parentNode.childNodes).indexOf(e),e=e.parentNode),n instanceof Element&&"BR"===n.tagName&&(r=Array.from(n.parentNode.childNodes).indexOf(n),n=n.parentNode);var s=document.createRange();s.setStart(e,t),s.setEnd(n,r),i.removeAllRanges(),i.addRange(s)}}else i.removeAllRanges(),this.root.blur()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ht.sources.API;if("string"==typeof t&&(n=t,t=!1),Qt.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,Wt(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ht.sources.USER,t=this.lastRange,n=this.getRange(),r=Gt(n,2),o=r[0],i=r[1];if(this.lastRange=o,this.lastNative=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!Object(pe.a)(t,this.lastRange)){var a;if(!this.composing&&null!=i&&i.native.collapsed&&i.start.node!==this.cursor.textNode){var l=this.cursor.restore();l&&this.setNativeRange(l.startNode,l.startOffset,l.endNode,l.endOffset)}var s,c=[Ht.events.SELECTION_CHANGE,de(this.lastRange),de(t),e];if((a=this.emitter).emit.apply(a,[Ht.events.EDITOR_CHANGE].concat(c)),e!==Ht.sources.SILENT)(s=this.emitter).emit.apply(s,c)}}}])}();function nn(e){return dn(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||un(e)||cn()}function rn(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 on(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(n),!0).forEach((function(t){an(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function an(e,t,n){return(t=hn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ln(e){return(ln="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)}function sn(e,t){return dn(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||un(e,t)||cn()}function cn(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function un(e,t){if(e){if("string"==typeof e)return fn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fn(e,t):void 0}}function fn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function dn(e){if(Array.isArray(e))return e}function pn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hn(r.key),r)}}function hn(e){var t=function(e,t){if("object"!=ln(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ln(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ln(t)?t:t+""}var mn=/^[ -~]*$/;function bn(e,t,n){if(0===e.length){var r=sn(gn(n.pop()),1)[0];return t<=0?"</li></".concat(r,">"):"</li></".concat(r,">").concat(bn([],t-1,n))}var o=nn(e),i=o[0],a=i.child,l=i.offset,s=i.length,c=i.indent,u=i.type,f=o.slice(1),d=sn(gn(u),2),p=d[0],h=d[1];if(c>t)return n.push(u),c===t+1?"<".concat(p,"><li").concat(h,">").concat(yn(a,l,s)).concat(bn(f,c,n)):"<".concat(p,"><li>").concat(bn(e,t+1,n));var m=n[n.length-1];if(c===t&&u===m)return"</li><li".concat(h,">").concat(yn(a,l,s)).concat(bn(f,c,n));var b=sn(gn(n.pop()),1)[0];return"</li></".concat(b,">").concat(bn(e,t-1,n))}function yn(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("html"in e&&"function"==typeof e.html)return e.html(t,n);if(e instanceof je){var o=Ne(e.value().slice(t,t+n));return o.replaceAll(" ","&nbsp;")}if(e instanceof S){if("list-container"===e.statics.blotName){var i=[];return e.children.forEachAt(t,n,(function(e,t,n){var r="formats"in e&&"function"==typeof e.formats?e.formats():{};i.push({child:e,offset:t,length:n,indent:r.indent||0,type:r.list})})),bn(i,-1,[])}var a=[];if(e.children.forEachAt(t,n,(function(e,t,n){a.push(yn(e,t,n))})),r||"list"===e.statics.blotName)return a.join("");var l=e.domNode,s=l.outerHTML,c=l.innerHTML,u=s.split(">".concat(c,"<")),f=sn(u,2),d=f[0],p=f[1];return"<table"===d?'<table style="border: 1px solid #000;">'.concat(a.join(""),"<").concat(p):"".concat(d,">").concat(a.join(""),"<").concat(p)}return e.domNode instanceof Element?e.domNode.outerHTML:""}function vn(e,t){return Object.keys(t).reduce((function(n,r){if(null==e[r])return n;var o=t[r];return o===e[r]?n[r]=o:Array.isArray(o)?o.indexOf(e[r])<0?n[r]=o.concat([e[r]]):n[r]=o:n[r]=[o,e[r]],n}),{})}function gn(e){var t="ordered"===e?"ol":"ul";switch(e){case"checked":return[t,' data-list="checked"'];case"unchecked":return[t,' data-list="unchecked"'];default:return[t,""]}}function wn(e){return e.reduce((function(e,t){if("string"==typeof t.insert){var n=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(n,t.attributes)}return e.push(t)}),new M.a)}function xn(e,t){var n=e.index,r=e.length;return new Jt(n+t,r)}var Sn=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()},(t=[{key:"applyDelta",value:function(e){var t=this;this.scroll.update();var n=this.scroll.length();this.scroll.batchStart();var r,a,l=wn(e),s=new M.a;return(r=l.ops.slice(),a=[],r.forEach((function(e){"string"==typeof e.insert?e.insert.split("\n").forEach((function(t,n){n&&a.push({insert:"\n",attributes:e.attributes}),t&&a.push({insert:t,attributes:e.attributes})})):a.push(e)})),a).reduce((function(e,r){var a=I.Op.length(r),l=r.attributes||{},c=!1,u=!1;if(null!=r.insert){if(s.retain(a),"string"==typeof r.insert){var f=r.insert;u=!f.endsWith("\n")&&(n<=e||!!t.scroll.descendant(st,e)[0]),t.scroll.insertAt(e,f);var d=sn(t.scroll.line(e),2),p=d[0],h=d[1],m=Object(o.a)({},ut(p));if(p instanceof lt){var b=sn(p.descendant(v,h),1)[0];b&&(m=Object(o.a)(m,ut(b)))}l=I.AttributeMap.diff(m,l)||{}}else if("object"===ln(r.insert)){var y=Object.keys(r.insert)[0];if(null==y)return e;var g=null!=t.scroll.query(y,i.INLINE);if(g)(n<=e||t.scroll.descendant(st,e)[0])&&(u=!0);else if(e>0){var w=sn(t.scroll.descendant(v,e-1),2),x=w[0],S=w[1];x instanceof je?"\n"!==x.value()[S]&&(c=!0):x instanceof T&&x.statics.scope===i.INLINE_BLOT&&(c=!0)}if(t.scroll.insertAt(e,y,r.insert[y]),g){var O=sn(t.scroll.descendant(v,e),1)[0];if(O){var E=Object(o.a)({},ut(O));l=I.AttributeMap.diff(E,l)||{}}}}n+=a}else if(s.push(r),null!==r.retain&&"object"===ln(r.retain)){var k=Object.keys(r.retain)[0];if(null==k)return e;t.scroll.updateEmbedAt(e,k,r.retain[k])}Object.keys(l).forEach((function(n){t.scroll.formatAt(e,a,n,l[n])}));var _=c?1:0,C=u?1:0;return n+=_+C,s.retain(_),s.delete(C),e+a+_+C}),0),s.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+I.Op.length(n)}),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(l)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new M.a).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update(),Object.keys(r).forEach((function(o){n.scroll.lines(e,Math.max(t,1)).forEach((function(e){e.format(o,r[o])}))})),this.scroll.optimize();var o=(new M.a).retain(e).retain(t,de(r));return this.update(o)}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.keys(r).forEach((function(o){n.scroll.formatAt(e,t,o,r[o])}));var o=(new M.a).retain(e).retain(t,de(r));return this.update(o)}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new M.a)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=sn(e,1)[0];t instanceof lt?n.push(t):t instanceof v&&r.push(t)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(v,e,t));var o=[n,r].map((function(e){var t=e.shift();if(null==t)return{};for(var n=ut(t);Object.keys(n).length>0;){var r=e.shift();if(null==r)return n;n=vn(ut(r),n)}return n})),i=sn(o,2),a=i[0],l=i[1];return on(on({},a),l)}},{key:"getHTML",value:function(e,t){var n=sn(this.scroll.line(e),2),r=n[0],o=n[1];if(r){var i=r.length();return r.length()>=o+t&&(0!==o||t!==i)?yn(r,o,t,!0):yn(this.scroll,e,t,!0)}return""}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertContents",value:function(e,t){var n=wn(t),r=(new M.a).retain(e).concat(n);return this.scroll.insertContents(e,n),this.update(r)}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new M.a).retain(e).insert(an({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(o){n.scroll.formatAt(e,t.length,o,r[o])})),this.update((new M.a).retain(e).insert(t,de(r)))}},{key:"isBlank",value:function(){if(0===this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;if((null==e?void 0:e.statics.blotName)!==lt.blotName)return!1;var t=e;return!(t.children.length>1)&&t.children.head instanceof Se}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=sn(this.scroll.line(e+t),2),o=r[0],i=r[1],a=0,l=new M.a;null!=o&&(a=o.length()-i,l=o.delta().slice(i,i+a-1).insert("\n"));var s=this.getContents(e,t+a).diff((new M.a).insert(n).concat(l)),c=(new M.a).retain(e).concat(s);return this.applyDelta(c)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(mn)&&this.scroll.find(t[0].target)){var o=this.scroll.find(t[0].target),i=ut(o),a=o.offset(this.scroll),l=t[0].oldValue.replace(St.CONTENTS,""),s=(new M.a).insert(l),c=(new M.a).insert(o.value()),u=n&&{oldRange:xn(n.oldRange,-a),newRange:xn(n.newRange,-a)},f=(new M.a).retain(a).concat(s.diff(c,u));e=f.reduce((function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)}),new M.a),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&Object(pe.a)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}])&&pn(e.prototype,t),n&&pn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function On(e){return(On="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)}function En(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Cn(r.key),r)}}function kn(e,t,n){return t&&En(e.prototype,t),n&&En(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cn(e){var t=function(e,t){if("object"!=On(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=On(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==On(t)?t:t+""}var An,Tn,jn,qn=kn((function e(t){_n(this,e);var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.quill=t,this.options=n}));An=qn,jn={},(Tn=Cn(Tn="DEFAULTS"))in An?Object.defineProperty(An,Tn,{value:jn,enumerable:!0,configurable:!0,writable:!0}):An[Tn]=jn;var Nn=qn;n(1681);function Pn(e){return(Pn="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)}function Rn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,In(r.key),r)}}function In(e){var t=function(e,t){if("object"!=Pn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Pn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Pn(t)?t:t+""}function Mn(e,t,n){return t=zn(t),function(e,t){if(t&&("object"==Pn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],zn(e).constructor):t.apply(e,n))}function Ln(){return(Ln="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Dn(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(null,arguments)}function Dn(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=zn(e)););return e}function zn(e){return(zn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Bn(e,t){return(Bn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Fn=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Mn(this,t,[e,n])).contentNode=document.createElement("span"),r.contentNode.setAttribute("contenteditable","false"),Array.from(r.domNode.childNodes).forEach((function(e){r.contentNode.appendChild(e)})),r.leftGuard=document.createTextNode("\ufeff"),r.rightGuard=document.createTextNode("\ufeff"),r.domNode.appendChild(r.leftGuard),r.domNode.appendChild(r.contentNode),r.domNode.appendChild(r.rightGuard),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bn(e,t)}(t,e),function(e,t,n){return t&&Rn(e.prototype,t),n&&Rn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:function(e,t,n,r){var o=Ln(zn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}(t,"index",this,3)([e,n])}},{key:"restore",value:function(e){var t,n=null,r=e.data.split("\ufeff").join("");if(e===this.leftGuard)if(this.prev instanceof je){var o=this.prev.length();this.prev.insertAt(o,r),n={startNode:this.prev.domNode,startOffset:o+r.length}}else t=document.createTextNode(r),this.parent.insertBefore(this.scroll.create(t),this),n={startNode:t,startOffset:r.length};else e===this.rightGuard&&(this.next instanceof je?(this.next.insertAt(0,r),n={startNode:this.next.domNode,startOffset:r.length}):(t=document.createTextNode(r),this.parent.insertBefore(this.scroll.create(t),this.next),n={startNode:t,startOffset:r.length}));return e.data="\ufeff",n}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var r=n.restore(e.target);r&&(t.range=r)}}))}}])}(T);function Hn(e){return(Hn="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)}function Un(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wn(r.key),r)}}function Wn(e){var t=function(e,t){if("object"!=Hn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Hn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Hn(t)?t:t+""}var Gn,Vn=function(){return function(e,t,n){return t&&Un(e.prototype,t),n&&Un(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=Wn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"isComposing",!1),this.scroll=t,this.emitter=n,this.setupListeners()}),[{key:"setupListeners",value:function(){var e=this;this.scroll.domNode.addEventListener("compositionstart",(function(t){e.isComposing||e.handleCompositionStart(t)})),this.scroll.domNode.addEventListener("compositionend",(function(t){e.isComposing&&queueMicrotask((function(){e.handleCompositionEnd(t)}))}))}},{key:"handleCompositionStart",value:function(e){var t=e.target instanceof Node?this.scroll.find(e.target,!0):null;!t||t instanceof Fn||(this.emitter.emit(Ht.events.COMPOSITION_BEFORE_START,e),this.scroll.batchStart(),this.emitter.emit(Ht.events.COMPOSITION_START,e),this.isComposing=!0)}},{key:"handleCompositionEnd",value:function(e){this.emitter.emit(Ht.events.COMPOSITION_BEFORE_END,e),this.scroll.batchEnd(),this.emitter.emit(Ht.events.COMPOSITION_END,e),this.isComposing=!1}}])}();function Kn(e){return(Kn="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)}function $n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zn(r.key),r)}}function Yn(e,t,n){return(t=Zn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zn(e){var t=function(e,t){if("object"!=Kn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Kn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Kn(t)?t:t+""}var Xn=function(){return function(e,t,n){return t&&$n(e.prototype,t),n&&$n(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Yn(this,"modules",{}),this.quill=t,this.options=n}),[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/".concat(e));return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}])}();Gn=Xn,Yn(Xn,"DEFAULTS",{modules:{}}),Yn(Xn,"themes",{default:Gn});var Qn=Xn,Jn=(n(1608),n(111),function(e){var t=e.getBoundingClientRect(),n="offsetWidth"in e&&Math.abs(t.width)/e.offsetWidth||1,r="offsetHeight"in e&&Math.abs(t.height)/e.offsetHeight||1;return{top:t.top,right:t.left+e.clientWidth*n,bottom:t.top+e.clientHeight*r,left:t.left}}),er=function(e){var t=parseInt(e,10);return Number.isNaN(t)?0:t},tr=function(e,t,n,r,o,i){return e<n&&t>r?0:e<n?-(n-e+o):t>r?t-e>r-n?e+o-n:t-r+i:0},nr=function(e,t){for(var n,r=e.ownerDocument,o=t,i=e;i;){var a,l,s,c,u=i===r.body,f=u?{top:0,right:null!==(a=null===(l=window.visualViewport)||void 0===l?void 0:l.width)&&void 0!==a?a:r.documentElement.clientWidth,bottom:null!==(s=null===(c=window.visualViewport)||void 0===c?void 0:c.height)&&void 0!==s?s:r.documentElement.clientHeight,left:0}:Jn(i),d=getComputedStyle(i),p=tr(o.left,o.right,f.left,f.right,er(d.scrollPaddingLeft),er(d.scrollPaddingRight)),h=tr(o.top,o.bottom,f.top,f.bottom,er(d.scrollPaddingTop),er(d.scrollPaddingBottom));if(p||h)if(u){var m;null===(m=r.defaultView)||void 0===m||m.scrollBy(p,h)}else{var b=i,y=b.scrollLeft,v=b.scrollTop;h&&(i.scrollTop+=h),p&&(i.scrollLeft+=p);var g=i.scrollLeft-y,w=i.scrollTop-v;o={left:o.left-g,top:o.top-w,right:o.right-g,bottom:o.bottom-w}}i=u||"fixed"===d.position?null:(n=i).parentElement||n.getRootNode().host||null}},rr=["block","break","cursor","inline","scroll","text"],or=function(e,t,n){var r=new c;return rr.forEach((function(e){var n=t.query(e);n&&r.register(n)})),e.forEach((function(e){var o=t.query(e);o||n.error('Cannot register "'.concat(e,'" specified in "formats" config. Are you sure it was registered?'));for(var i=0;o;){var a;if(r.register(o),o="blotName"in o&&null!==(a=o.requiredContainer)&&void 0!==a?a:null,(i+=1)>100){n.error('Cycle detected in registering blot requiredContainer: "'.concat(e,'"'));break}}})),r},ir=["modules"],ar=["modules"];function lr(e){return(lr="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)}function sr(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 cr(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 ur(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cr(Object(n),!0).forEach((function(t){mr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return dr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function pr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,br(r.key),r)}}function mr(e,t,n){return(t=br(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function br(e){var t=function(e,t){if("object"!=lr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=lr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lr(t)?t:t+""}var yr=Tt("quill"),vr=new c;S.uiClass="ql-ui";var gr=function(){function e(t){var n=this;pr(this,e);var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.options=Or(t,r),this.container=this.options.container,null!=this.container){this.options.debug&&e.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",Et.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new Ht;var i=N.blotName,a=this.options.registry.query(i);if(!a||!("blotName"in a))throw new Error('Cannot initialize Quill without "'.concat(i,'" blot'));if(this.scroll=new a(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new Sn(this.scroll),this.selection=new tn(this.scroll,this.emitter),this.composition=new Vn(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(Ht.events.EDITOR_CHANGE,(function(e){e===Ht.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(Ht.events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,o=fr(n.selection.getRange(),1)[0],i=r&&o?{oldRange:r,newRange:o}:void 0;Er.call(n,(function(){return n.editor.update(null,t,i)}),e)})),this.emitter.on(Ht.events.SCROLL_EMBED_UPDATE,(function(t,r){var o=n.selection.lastRange,i=fr(n.selection.getRange(),1)[0],a=o&&i?{oldRange:o,newRange:i}:void 0;Er.call(n,(function(){var e=(new M.a).retain(t.offset(n)).retain(mr({},t.statics.blotName,r));return n.editor.update(e,[],a)}),e.sources.USER)})),o){var l=this.clipboard.convert({html:"".concat(o,"<p><br></p>"),text:"\n"});this.setContents(l)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}else yr.error("Invalid Quill container",t)}return function(e,t,n){return t&&hr(e.prototype,t),n&&hr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,o=fr(kr(e,t,n),4);return e=o[0],t=o[1],n=o[3],Er.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"editReadOnly",value:function(e){this.allowReadOnlyEdits=!0;var t=e();return this.allowReadOnlyEdits=!1,t}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.selection.focus(),e.preventScroll||this.scrollSelectionIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ht.sources.API;return Er.call(this,(function(){var r=n.getSelection(!0),o=new M.a;if(null==r)return o;if(n.scroll.query(e,i.BLOCK))o=n.editor.formatLine(r.index,r.length,mr({},e,t));else{if(0===r.length)return n.selection.format(e,t),o;o=n.editor.formatText(r.index,r.length,mr({},e,t))}return n.setSelection(r,Ht.sources.SILENT),o}),r)}},{key:"formatLine",value:function(e,t,n,r,o){var i,a=this,l=fr(kr(e,t,n,r,o),4);return e=l[0],t=l[1],i=l[2],o=l[3],Er.call(this,(function(){return a.editor.formatLine(e,t,i)}),o,e,0)}},{key:"formatText",value:function(e,t,n,r,o){var i,a=this,l=fr(kr(e,t,n,r,o),4);return e=l[0],t=l[1],i=l[2],o=l[3],Er.call(this,(function(){return a.editor.formatText(e,t,i)}),o,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=null;if(!(n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length)))return null;var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=kr(e,t),r=fr(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getSemanticHTML",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;"number"==typeof e&&(t=null!=t?t:this.getLength()-e);var n=kr(e,t),r=fr(n,2);return e=r[0],t=r[1],this.editor.getHTML(e,t)}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;"number"==typeof e&&(t=null!=t?t:this.getLength()-e);var n=kr(e,t),r=fr(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return Er.call(this,(function(){return o.editor.insertEmbed(t,n,r)}),i,t)}},{key:"insertText",value:function(e,t,n,r,o){var i,a=this,l=fr(kr(e,0,n,r,o),4);return e=l[0],i=l[2],o=l[3],Er.call(this,(function(){return a.editor.insertText(e,t,i)}),o,e,t.length)}},{key:"isEnabled",value:function(){return this.scroll.isEnabled()}},{key:"off",value:function(){var e;return(e=this.emitter).off.apply(e,arguments)}},{key:"on",value:function(){var e;return(e=this.emitter).on.apply(e,arguments)}},{key:"once",value:function(){var e;return(e=this.emitter).once.apply(e,arguments)}},{key:"removeFormat",value:function(e,t,n){var r=this,o=fr(kr(e,t,n),4);return e=o[0],t=o[1],n=o[3],Er.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"scrollRectIntoView",value:function(e){nr(this.root,e)}},{key:"scrollIntoView",value:function(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}},{key:"scrollSelectionIntoView",value:function(){var e=this.selection.lastRange,t=e&&this.selection.getBounds(e.index,e.length);t&&this.scrollRectIntoView(t)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ht.sources.API;return Er.call(this,(function(){e=new M.a(e);var n=t.getLength(),r=t.editor.deleteText(0,n),o=t.editor.insertContents(0,e),i=t.editor.deleteText(t.getLength()-1,1);return r.compose(o).compose(i)}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var o=fr(kr(t,n,r),4);t=o[0],n=o[1],r=o[3],this.selection.setRange(new Jt(Math.max(0,t),n),r),r!==Ht.sources.SILENT&&this.scrollSelectionIntoView()}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ht.sources.API,n=(new M.a).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ht.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ht.sources.API;return Er.call(this,(function(){return e=new M.a(e),t.editor.applyDelta(e)}),n,!0)}}],[{key:"debug",value:function(e){!0===e&&(e="log"),Tt.level(e)}},{key:"find",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Et.get(e)||vr.find(e,t)}},{key:"import",value:function(e){return null==this.imports[e]&&yr.error("Cannot import ".concat(e,". Are you sure it was registered?")),this.imports[e]}},{key:"register",value:function(){var e=this;if("string"!=typeof(arguments.length<=0?void 0:arguments[0])){var t=arguments.length<=0?void 0:arguments[0],n=!!(arguments.length<=1?void 0:arguments[1]),r="attrName"in t?t.attrName:t.blotName;"string"==typeof r?this.register("formats/".concat(r),t,n):Object.keys(t).forEach((function(r){e.register(r,t[r],n)}))}else{var o=arguments.length<=0?void 0:arguments[0],i=arguments.length<=1?void 0:arguments[1],a=!!(arguments.length<=2?void 0:arguments[2]);null==this.imports[o]||a||yr.warn("Overwriting ".concat(o," with"),i),this.imports[o]=i,(o.startsWith("blots/")||o.startsWith("formats/"))&&i&&"boolean"!=typeof i&&"abstract"!==i.blotName&&vr.register(i),"function"==typeof i.register&&i.register(vr)}}}])}();function wr(e){return"string"==typeof e?document.querySelector(e):e}function xr(e){return Object.entries(null!=e?e:{}).reduce((function(e,t){var n=fr(t,2),r=n[0],o=n[1];return ur(ur({},e),{},mr({},r,!0===o?{}:o))}),{})}function Sr(e){return Object.fromEntries(Object.entries(e).filter((function(e){return void 0!==e[1]})))}function Or(e,t){var n=wr(e);if(!n)throw new Error("Invalid Quill container");var r=!t.theme||t.theme===gr.DEFAULTS.theme?Qn:gr.import("themes/".concat(t.theme));if(!r)throw new Error("Invalid theme ".concat(t.theme,". Did you register it?"));var i=gr.DEFAULTS,a=i.modules,l=sr(i,ir),s=r.DEFAULTS,c=s.modules,u=sr(s,ar),f=xr(t.modules);null!=f&&f.toolbar&&f.toolbar.constructor!==Object&&(f=ur(ur({},f),{},{toolbar:{container:f.toolbar}}));var d=Object(o.a)({},xr(a),xr(c),f),p=ur(ur(ur({},l),Sr(u)),Sr(t)),h=t.registry;return h?t.formats&&yr.warn('Ignoring "formats" option because "registry" is specified'):h=t.formats?or(t.formats,p.registry,yr):p.registry,ur(ur({},p),{},{registry:h,container:n,theme:r,modules:Object.entries(d).reduce((function(e,t){var n=fr(t,2),r=n[0],i=n[1];if(!i)return e;var a=gr.import("modules/".concat(r));return null==a?(yr.error("Cannot load ".concat(r," module. Are you sure you registered it?")),e):ur(ur({},e),{},mr({},r,Object(o.a)({},a.DEFAULTS||{},i)))}),{}),bounds:wr(p.bounds)})}function Er(e,t,n,r){if(!this.isEnabled()&&t===Ht.sources.USER&&!this.allowReadOnlyEdits)return new M.a;var o=null==n?null:this.getSelection(),i=this.editor.delta,a=e();if(null!=o&&(!0===n&&(n=o.index),null==r?o=_r(o,a,t):0!==r&&(o=_r(o,n,r,t)),this.setSelection(o,Ht.sources.SILENT)),a.length()>0){var l,s,c=[Ht.events.TEXT_CHANGE,a,i,t];if((l=this.emitter).emit.apply(l,[Ht.events.EDITOR_CHANGE].concat(c)),t!==Ht.sources.SILENT)(s=this.emitter).emit.apply(s,c)}return a}function kr(e,t,n,r,o){var i={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(o=r,r=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(o=r,r=n,n=t,t=0),"object"===lr(n)?(i=n,o=r):"string"==typeof n&&(null!=r?i[n]=r:o=n),[e,t,i,o=o||Ht.sources.API]}function _r(e,t,n,r){var o,i,a="number"==typeof n?n:0;if(null==e)return null;if(t&&"function"==typeof t.transformPosition){var l=fr([e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r!==Ht.sources.USER)})),2);o=l[0],i=l[1]}else{var s=fr([e.index,e.index+e.length].map((function(e){return e<t||e===t&&r===Ht.sources.USER?e:a>=0?e+a:Math.max(t,e+a)})),2);o=s[0],i=s[1]}return new Jt(o,i-o)}function Cr(e){return(Cr="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)}function Ar(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tr(r.key),r)}}function Tr(e){var t=function(e,t){if("object"!=Cr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Cr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Cr(t)?t:t+""}function jr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qr(e,t,n){return t=Nr(t),function(e,t){if(t&&("object"==Cr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Nr(e).constructor):t.apply(e,n))}function Nr(e){return(Nr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pr(e,t){return(Pr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}mr(gr,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:vr,theme:"default"}),mr(gr,"events",Ht.events),mr(gr,"sources",Ht.sources),mr(gr,"version","2.0.3"),mr(gr,"imports",{delta:M.a,parchment:r,"core/module":Nn,"core/theme":Qn});var Rr=function(e){function t(){return jr(this,t),qr(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pr(e,t)}(t,e),function(e,t,n){return t&&Ar(e.prototype,t),n&&Ar(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t)}(A);function Ir(e){return(Ir="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)}function Mr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Lr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Dr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vr(r.key),r)}}function zr(e,t,n){return t=Ur(t),function(e,t){if(t&&("object"==Ir(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Ur(e).constructor):t.apply(e,n))}function Br(e,t,n,r){var o=Fr(Ur(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function Fr(){return(Fr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Hr(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(null,arguments)}function Hr(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Ur(e)););return e}function Ur(e){return(Ur=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Wr(e,t){return(Wr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Gr(e,t,n){return(t=Vr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vr(e){var t=function(e,t){if("object"!=Ir(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ir(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ir(t)?t:t+""}function Kr(e){return e instanceof lt||e instanceof st}function $r(e){return"function"==typeof e.updateContent}var Yr=function(e){function t(e,n,r){var o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=r.emitter;return(o=zr(this,t,[e,n])).emitter=i,o.batch=!1,o.optimize(),o.enable(),o.domNode.addEventListener("dragstart",(function(e){return o.handleDragStart(e)})),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wr(e,t)}(t,e),function(e,t,n){return t&&Dr(e.prototype,t),n&&Dr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"batchStart",value:function(){Array.isArray(this.batch)||(this.batch=[])}},{key:"batchEnd",value:function(){if(this.batch){var e=this.batch;this.batch=!1,this.update(e)}}},{key:"emitMount",value:function(e){this.emitter.emit(Ht.events.SCROLL_BLOT_MOUNT,e)}},{key:"emitUnmount",value:function(e){this.emitter.emit(Ht.events.SCROLL_BLOT_UNMOUNT,e)}},{key:"emitEmbedUpdate",value:function(e,t){this.emitter.emit(Ht.events.SCROLL_EMBED_UPDATE,e,t)}},{key:"deleteAt",value:function(e,n){var r=Mr(this.line(e),2),o=r[0],i=r[1],a=Mr(this.line(e+n),1)[0];if(Br(t,"deleteAt",this,3)([e,n]),null!=a&&o!==a&&i>0){if(o instanceof st||a instanceof st)return void this.optimize();var l=a.children.head instanceof Se?null:a.children.head;o.moveChildren(a,l),o.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e?"true":"false")}},{key:"formatAt",value:function(e,n,r,o){Br(t,"formatAt",this,3)([e,n,r,o]),this.optimize()}},{key:"insertAt",value:function(e,n,r){if(e>=this.length())if(null==r||null==this.scroll.query(n,i.BLOCK)){var o=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(o),null==r&&n.endsWith("\n")?o.insertAt(0,n.slice(0,-1),r):o.insertAt(0,n,r)}else{var a=this.scroll.create(n,r);this.appendChild(a)}else Br(t,"insertAt",this,3)([e,n,r]);this.optimize()}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===i.INLINE_BLOT){var r=this.scroll.create(this.statics.defaultChild.blotName);r.appendChild(e),Br(t,"insertBefore",this,3)([r,n])}else Br(t,"insertBefore",this,3)([e,n])}},{key:"insertContents",value:function(e,t){var n=this,r=this.deltaToRenderBlocks(t.concat((new M.a).insert("\n"))),o=r.pop();if(null!=o){this.batchStart();var i=r.shift();if(i){var a="block"===i.type&&(0===i.delta.length()||!this.descendant(st,e)[0]&&e<this.length()),l="block"===i.type?i.delta:(new M.a).insert(Gr({},i.key,i.value));Zr(this,e,l);var s="block"===i.type?1:0,c=e+l.length()+s;a&&this.insertAt(c-1,"\n");var u=ut(this.line(e)[0]),f=I.AttributeMap.diff(u,i.attributes)||{};Object.keys(f).forEach((function(e){n.formatAt(c-1,1,e,f[e])})),e=c}var d=Mr(this.children.find(e),2),p=d[0],h=d[1];if(r.length&&(p&&(p=p.split(h),h=0),r.forEach((function(e){if("block"===e.type){Zr(n.createBlock(e.attributes,p||void 0),0,e.delta)}else{var t=n.create(e.key,e.value);n.insertBefore(t,p||void 0),Object.keys(e.attributes).forEach((function(n){t.format(n,e.attributes[n])}))}}))),"block"===o.type&&o.delta.length())Zr(this,p?p.offset(p.scroll)+h:this.length(),o.delta);this.batchEnd(),this.optimize()}}},{key:"isEnabled",value:function(){return"true"===this.domNode.getAttribute("contenteditable")}},{key:"leaf",value:function(e){var t=this.path(e).pop();if(!t)return[null,-1];var n=Mr(t,2),r=n[0],o=n[1];return r instanceof v?[r,o]:[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(Kr,e)}},{key:"lines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function(e,t,r){var o=[],i=r;return e.children.forEachAt(t,r,(function(e,t,r){Kr(e)?o.push(e):e instanceof A&&(o=o.concat(n(e,t,i))),i-=r})),o};return n(this,e,t)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.batch||(Br(t,"optimize",this,3)([e,n]),e.length>0&&this.emitter.emit(Ht.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return Br(t,"path",this,3)([e]).slice(1)}},{key:"remove",value:function(){}},{key:"update",value:function(e){var n=this;if(this.batch)Array.isArray(e)&&(this.batch=this.batch.concat(e));else{var r=Ht.sources.USER;"string"==typeof e&&(r=e),Array.isArray(e)||(e=this.observer.takeRecords()),(e=e.filter((function(e){var t=e.target,r=n.find(t,!0);return r&&!$r(r)}))).length>0&&this.emitter.emit(Ht.events.SCROLL_BEFORE_UPDATE,r,e),Br(t,"update",this,3)([e.concat([])]),e.length>0&&this.emitter.emit(Ht.events.SCROLL_UPDATE,r,e)}}},{key:"updateEmbedAt",value:function(e,t,n){var r=Mr(this.descendant((function(e){return e instanceof st}),e),1)[0];r&&r.statics.blotName===t&&$r(r)&&r.updateContent(n)}},{key:"handleDragStart",value:function(e){e.preventDefault()}},{key:"deltaToRenderBlocks",value:function(e){var t=this,n=[],r=new M.a;return e.forEach((function(e){var o=null==e?void 0:e.insert;if(o)if("string"==typeof o){var a=o.split("\n");a.slice(0,-1).forEach((function(t){var o;r.insert(t,e.attributes),n.push({type:"block",delta:r,attributes:null!==(o=e.attributes)&&void 0!==o?o:{}}),r=new M.a}));var l=a[a.length-1];l&&r.insert(l,e.attributes)}else{var s,c=Object.keys(o)[0];if(!c)return;if(t.query(c,i.INLINE))r.push(e);else r.length()&&n.push({type:"block",delta:r,attributes:{}}),r=new M.a,n.push({type:"blockEmbed",key:c,value:o[c],attributes:null!==(s=e.attributes)&&void 0!==s?s:{}})}})),r.length()&&n.push({type:"block",delta:r,attributes:{}}),n}},{key:"createBlock",value:function(e,t){var n,r=this,o={};Object.entries(e).forEach((function(e){var t=Mr(e,2),a=t[0],l=t[1];null!=r.query(a,i.BLOCK&i.BLOT)?n=a:o[a]=l}));var a=this.create(n||this.statics.defaultChild.blotName,n?e[n]:void 0);this.insertBefore(a,t||void 0);var l=a.length();return Object.entries(o).forEach((function(e){var t=Mr(e,2),n=t[0],r=t[1];a.formatAt(0,l,n,r)})),a}}])}(N);function Zr(e,t,n){n.reduce((function(t,n){var r=I.Op.length(n),o=n.attributes||{};if(null!=n.insert)if("string"==typeof n.insert){var a=n.insert;e.insertAt(t,a);var l=ut(Mr(e.descendant(v,t),1)[0]);o=I.AttributeMap.diff(l,o)||{}}else if("object"===Ir(n.insert)){var s=Object.keys(n.insert)[0];if(null==s)return t;if(e.insertAt(t,s,n.insert[s]),null!=e.scroll.query(s,i.INLINE)){var c=ut(Mr(e.descendant(v,t),1)[0]);o=I.AttributeMap.diff(c,o)||{}}}return Object.keys(o).forEach((function(n){e.formatAt(t,r,n,o[n])})),t+r}),t)}Gr(Yr,"blotName","scroll"),Gr(Yr,"className","ql-editor"),Gr(Yr,"tagName","DIV"),Gr(Yr,"defaultChild",lt),Gr(Yr,"allowedChildren",[lt,st,Rr]);var Xr=Yr,Qr=(n(50),n(133),n(62),{scope:i.BLOCK,whitelist:["right","center","justify"]}),Jr=new a("align","align",Qr),eo=new f("align","ql-align",Qr),to=new p("align","text-align",Qr);function no(e){return(no="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)}function ro(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,io(r.key),r)}}function io(e){var t=function(e,t){if("object"!=no(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=no(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==no(t)?t:t+""}function ao(e,t,n){return t=co(t),function(e,t){if(t&&("object"==no(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],co(e).constructor):t.apply(e,n))}function lo(){return(lo="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=so(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(null,arguments)}function so(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=co(e)););return e}function co(e){return(co=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function uo(e,t){return(uo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var fo=function(e){function t(){return ro(this,t),ao(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uo(e,t)}(t,e),function(e,t,n){return t&&oo(e.prototype,t),n&&oo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"value",value:function(e){var n=function(e,t,n,r){var o=lo(co(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}(t,"value",this,3)([e]);if(!n.startsWith("rgb("))return n;n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"");var r=n.split(",").map((function(e){return"00".concat(parseInt(e,10).toString(16)).slice(-2)})).join("");return"#".concat(r)}}])}(p),po=new f("color","ql-color",{scope:i.INLINE}),ho=new fo("color","color",{scope:i.INLINE}),mo=new f("background","ql-bg",{scope:i.INLINE}),bo=new fo("background","background-color",{scope:i.INLINE});function yo(e){return(yo="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)}function vo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function go(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xo(r.key),r)}}function wo(e,t,n){return t&&go(e.prototype,t),n&&go(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xo(e){var t=function(e,t){if("object"!=yo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=yo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==yo(t)?t:t+""}function So(e,t,n){return t=ko(t),function(e,t){if(t&&("object"==yo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],ko(e).constructor):t.apply(e,n))}function Oo(){return(Oo="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Eo(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(null,arguments)}function Eo(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=ko(e)););return e}function ko(e){return(ko=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Co(e,t)}function Co(e,t){return(Co=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Ao=function(e){function t(){return vo(this,t),So(this,t,arguments)}return _o(t,e),wo(t,[{key:"code",value:function(e,t){return this.children.map((function(e){return e.length()<=1?"":e.domNode.innerText})).join("\n").slice(e,e+t)}},{key:"html",value:function(e,t){return"<pre>\n".concat(Ne(this.code(e,t)),"\n</pre>")}}],[{key:"create",value:function(e){var n=function(e,t,n,r){var o=Oo(ko(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}(t,"create",this,2)([e]);return n.setAttribute("spellcheck","false"),n}}])}(Rr),To=function(e){function t(){return vo(this,t),So(this,t,arguments)}return _o(t,e),wo(t,null,[{key:"register",value:function(){gr.register(Ao)}}])}(lt);!function(e,t,n){(t=xo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(To,"TAB"," ");var jo=function(e){function t(){return vo(this,t),So(this,t,arguments)}return _o(t,e),wo(t)}(Ge);jo.blotName="code",jo.tagName="CODE",To.blotName="code-block",To.className="ql-code-block",To.tagName="DIV",Ao.blotName="code-block-container",Ao.className="ql-code-block-container",Ao.tagName="DIV",Ao.allowedChildren=[To],To.allowedChildren=[je,Se,St],To.requiredContainer=Ao;var qo={scope:i.BLOCK,whitelist:["rtl"]},No=new a("direction","dir",qo),Po=new f("direction","ql-direction",qo),Ro=new p("direction","direction",qo);function Io(e){return(Io="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)}function Mo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Do(r.key),r)}}function Do(e){var t=function(e,t){if("object"!=Io(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Io(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Io(t)?t:t+""}function zo(e,t,n){return t=Ho(t),function(e,t){if(t&&("object"==Io(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Ho(e).constructor):t.apply(e,n))}function Bo(){return(Bo="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Fo(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(null,arguments)}function Fo(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Ho(e)););return e}function Ho(e){return(Ho=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Uo(e,t){return(Uo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Wo={scope:i.INLINE,whitelist:["serif","monospace"]},Go=new f("font","ql-font",Wo),Vo=new(function(e){function t(){return Mo(this,t),zo(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Uo(e,t)}(t,e),function(e,t,n){return t&&Lo(e.prototype,t),n&&Lo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"value",value:function(e){return function(e,t,n,r){var o=Bo(Ho(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}(t,"value",this,3)([e]).replace(/["']/g,"")}}])}(p))("font","font-family",Wo),Ko=new f("size","ql-size",{scope:i.INLINE,whitelist:["small","large","huge"]}),$o=new p("size","font-size",{scope:i.INLINE,whitelist:["10px","18px","32px"]});n(130);function Yo(e){return(Yo="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)}function Zo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xo(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Qo(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 Jo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qo(Object(n),!0).forEach((function(t){ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ei(e,t,n){return(t=ni(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ti(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ni(r.key),r)}}function ni(e){var t=function(e,t){if("object"!=Yo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Yo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Yo(t)?t:t+""}function ri(e,t,n){return t=oi(t),function(e,t){if(t&&("object"==Yo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],oi(e).constructor):t.apply(e,n))}function oi(e){return(oi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ii(e,t){return(ii=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ai=Tt("quill:keyboard"),li=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",si=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=ri(this,t,[e,n])).bindings={},Object.keys(r.options.bindings).forEach((function(e){r.options.bindings[e]&&r.addBinding(r.options.bindings[e])})),r.addBinding({key:"Enter",shiftKey:null},r.handleEnter),r.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:"Backspace"},{collapsed:!0},r.handleBackspace),r.addBinding({key:"Delete"},{collapsed:!0},r.handleDelete)):(r.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},r.handleBackspace),r.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},r.handleDelete)),r.addBinding({key:"Backspace"},{collapsed:!1},r.handleDeleteRange),r.addBinding({key:"Delete"},{collapsed:!1},r.handleDeleteRange),r.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},r.handleBackspace),r.listen(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ii(e,t)}(t,e),function(e,t,n){return t&&ti(e.prototype,t),n&&ti(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"addBinding",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=hi(e);if(null!=o){"function"==typeof n&&(n={handler:n}),"function"==typeof r&&(r={handler:r});var i=Array.isArray(o.key)?o.key:[o.key];i.forEach((function(e){var i=Jo(Jo(Jo({},o),{},{key:e},n),r);t.bindings[i.key]=t.bindings[i.key]||[],t.bindings[i.key].push(i)}))}else ai.warn("Attempted to add invalid keyboard binding",o)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented&&!n.isComposing&&!(229===n.keyCode&&("Enter"===n.key||"Backspace"===n.key))){var r=(e.bindings[n.key]||[]).concat(e.bindings[n.which]||[]).filter((function(e){return t.match(n,e)}));if(0!==r.length){var o=gr.find(n.target,!0);if(!o||o.scroll===e.quill.scroll){var i=e.quill.getSelection();if(null!=i&&e.quill.hasFocus()){var a=Zo(e.quill.getLine(i.index),2),l=a[0],s=a[1],c=Zo(e.quill.getLeaf(i.index),2),u=c[0],f=c[1],d=Zo(0===i.length?[u,f]:e.quill.getLeaf(i.index+i.length),2),p=d[0],h=d[1],m=u instanceof R?u.value().slice(0,f):"",b=p instanceof R?p.value().slice(h):"",y={collapsed:0===i.length,empty:0===i.length&&l.length()<=1,format:e.quill.getFormat(i),line:l,offset:s,prefix:m,suffix:b,event:n};r.some((function(t){if(null!=t.collapsed&&t.collapsed!==y.collapsed)return!1;if(null!=t.empty&&t.empty!==y.empty)return!1;if(null!=t.offset&&t.offset!==y.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==y.format[e]})))return!1}else if("object"===Yo(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=y.format[e]:!1===t.format[e]?null==y.format[e]:Object(pe.a)(t.format[e],y.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(y.prefix))&&(!(null!=t.suffix&&!t.suffix.test(y.suffix))&&!0!==t.handler.call(e,i,y,t))}))&&n.preventDefault()}}}}}))}},{key:"handleBackspace",value:function(e,t){var n=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;if(!(0===e.index||this.quill.getLength()<=1)){var r={},o=Zo(this.quill.getLine(e.index),1)[0],i=(new M.a).retain(e.index-n).delete(n);if(0===t.offset){var a=Zo(this.quill.getLine(e.index-1),1)[0];if(a)if(!("block"===a.statics.blotName&&a.length()<=1)){var l=o.formats(),s=this.quill.getFormat(e.index-1,1);if(r=I.AttributeMap.diff(l,s)||{},Object.keys(r).length>0){var c=(new M.a).retain(e.index+o.length()-2).retain(1,r);i=i.compose(c)}}}this.quill.updateContents(i,gr.sources.USER),this.quill.focus()}}},{key:"handleDelete",value:function(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},o=Zo(this.quill.getLine(e.index),1)[0],i=(new M.a).retain(e.index).delete(n);if(t.offset>=o.length()-1){var a=Zo(this.quill.getLine(e.index+1),1)[0];if(a){var l=o.formats(),s=this.quill.getFormat(e.index,1);r=I.AttributeMap.diff(l,s)||{},Object.keys(r).length>0&&(i=i.retain(a.length()-1).retain(1,r))}}this.quill.updateContents(i,gr.sources.USER),this.quill.focus()}}},{key:"handleDeleteRange",value:function(e){mi({range:e,quill:this.quill}),this.quill.focus()}},{key:"handleEnter",value:function(e,t){var n=this,r=Object.keys(t.format).reduce((function(e,r){return n.quill.scroll.query(r,i.BLOCK)&&!Array.isArray(t.format[r])&&(e[r]=t.format[r]),e}),{}),o=(new M.a).retain(e.index).delete(e.length).insert("\n",r);this.quill.updateContents(o,gr.sources.USER),this.quill.setSelection(e.index+1,gr.sources.SILENT),this.quill.focus()}}],[{key:"match",value:function(e,t){return!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&(t.key===e.key||t.key===e.which)}}])}(Nn),ci={bindings:{bold:di("bold"),italic:di("italic"),underline:di("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler:function(e,t){return!(!t.collapsed||0===t.offset)||(this.quill.format("indent","+1",gr.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){return!(!t.collapsed||0===t.offset)||(this.quill.format("indent","-1",gr.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",gr.sources.USER):null!=t.format.list&&this.quill.format("list",!1,gr.sources.USER)}},"indent code-block":ui(!0),"outdent code-block":ui(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,gr.sources.USER)}},tab:{key:"Tab",handler:function(e,t){if(t.format.table)return!0;this.quill.history.cutoff();var n=(new M.a).retain(e.index).delete(e.length).insert("\t");return this.quill.updateContents(n,gr.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,gr.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler:function(){this.quill.format("blockquote",!1,gr.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler:function(e,t){var n={list:!1};t.format.indent&&(n.indent=!1),this.quill.formatLine(e.index,e.length,n,gr.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler:function(e){var t=Zo(this.quill.getLine(e.index),2),n=t[0],r=t[1],o=Jo(Jo({},n.formats()),{},{list:"checked"}),i=(new M.a).retain(e.index).insert("\n",o).retain(n.length()-r-1).retain(1,{list:"unchecked"});this.quill.updateContents(i,gr.sources.USER),this.quill.setSelection(e.index+1,gr.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=Zo(this.quill.getLine(e.index),2),r=n[0],o=n[1],i=(new M.a).retain(e.index).insert("\n",t.format).retain(r.length()-o-1).retain(1,{header:null});this.quill.updateContents(i,gr.sources.USER),this.quill.setSelection(e.index+1,gr.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler:function(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler:function(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler:function(e){var t=this.quill.getModule("table");if(t){var n=Zo(t.getTable(e),4),r=n[0],o=function(e,t,n,r){if(null==t.prev&&null==t.next)return null==n.prev&&null==n.next?0===r?-1:1:null==n.prev?-1:1;if(null==t.prev)return-1;if(null==t.next)return 1;return null}(0,n[1],n[2],n[3]);if(null==o)return;var i=r.offset();if(o<0){var a=(new M.a).retain(i).insert("\n");this.quill.updateContents(a,gr.sources.USER),this.quill.setSelection(e.index+1,e.length,gr.sources.SILENT)}else if(o>0){i+=r.length();var l=(new M.a).retain(i).insert("\n");this.quill.updateContents(l,gr.sources.USER),this.quill.setSelection(i,gr.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler:function(e,t){var n=t.event,r=t.line,o=r.offset(this.quill.scroll);n.shiftKey?this.quill.setSelection(o-1,gr.sources.USER):this.quill.setSelection(o+r.length(),gr.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){if(null==this.quill.scroll.query("list"))return!0;var n,r=t.prefix.length,o=Zo(this.quill.getLine(e.index),2),i=o[0],a=o[1];if(a>r)return!0;switch(t.prefix.trim()){case"[]":case"[ ]":n="unchecked";break;case"[x]":n="checked";break;case"-":case"*":n="bullet";break;default:n="ordered"}this.quill.insertText(e.index," ",gr.sources.USER),this.quill.history.cutoff();var l=(new M.a).retain(e.index-a).delete(r+1).retain(i.length()-2-a).retain(1,{list:n});return this.quill.updateContents(l,gr.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-r,gr.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler:function(e){for(var t=Zo(this.quill.getLine(e.index),2),n=t[0],r=t[1],o=2,i=n;null!=i&&i.length()<=1&&i.formats()["code-block"];)if(i=i.prev,(o-=1)<=0){var a=(new M.a).retain(e.index+n.length()-r-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(a,gr.sources.USER),this.quill.setSelection(e.index-1,gr.sources.SILENT),!1}return!0}},"embed left":fi("ArrowLeft",!1),"embed left shift":fi("ArrowLeft",!0),"embed right":fi("ArrowRight",!1),"embed right shift":fi("ArrowRight",!0),"table down":pi(!1),"table up":pi(!0)}};function ui(e){return{key:"Tab",shiftKey:!e,format:{"code-block":!0},handler:function(t,n){var r=n.event,o=this.quill.scroll.query("code-block").TAB;if(0===t.length&&!r.shiftKey)return this.quill.insertText(t.index,o,gr.sources.USER),void this.quill.setSelection(t.index+o.length,gr.sources.SILENT);var i=0===t.length?this.quill.getLines(t.index,1):this.quill.getLines(t),a=t.index,l=t.length;i.forEach((function(t,n){e?(t.insertAt(0,o),0===n?a+=o.length:l+=o.length):t.domNode.textContent.startsWith(o)&&(t.deleteAt(0,o.length),0===n?a-=o.length:l-=o.length)})),this.quill.update(gr.sources.USER),this.quill.setSelection(a,l,gr.sources.SILENT)}}}function fi(e,t){return ei(ei({key:e,shiftKey:t,altKey:null},"ArrowLeft"===e?"prefix":"suffix",/^$/),"handler",(function(n){var r=n.index;return"ArrowRight"===e&&(r+=n.length+1),!(Zo(this.quill.getLeaf(r),1)[0]instanceof T)||("ArrowLeft"===e?t?this.quill.setSelection(n.index-1,n.length+1,gr.sources.USER):this.quill.setSelection(n.index-1,gr.sources.USER):t?this.quill.setSelection(n.index,n.length+1,gr.sources.USER):this.quill.setSelection(n.index+n.length+1,gr.sources.USER),!1)}))}function di(e){return{key:e[0],shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],gr.sources.USER)}}}function pi(e){return{key:e?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler:function(t,n){var r=e?"prev":"next",o=n.line,i=o.parent[r];if(null!=i){if("table-row"===i.statics.blotName){for(var a=i.children.head,l=o;null!=l.prev;)l=l.prev,a=a.next;var s=a.offset(this.quill.scroll)+Math.min(n.offset,a.length()-1);this.quill.setSelection(s,0,gr.sources.USER)}}else{var c=o.table()[r];null!=c&&(e?this.quill.setSelection(c.offset(this.quill.scroll)+c.length()-1,0,gr.sources.USER):this.quill.setSelection(c.offset(this.quill.scroll),0,gr.sources.USER))}return!1}}}function hi(e){if("string"==typeof e||"number"==typeof e)e={key:e};else{if("object"!==Yo(e))return null;e=de(e)}return e.shortKey&&(e[li]=e.shortKey,delete e.shortKey),e}function mi(e){var t=e.quill,n=e.range,r=t.getLines(n),o={};if(r.length>1){var i=r[0].formats(),a=r[r.length-1].formats();o=I.AttributeMap.diff(a,i)||{}}t.deleteText(n,gr.sources.USER),Object.keys(o).length>0&&t.formatLine(n.index,1,o,gr.sources.USER),t.setSelection(n.index,gr.sources.SILENT)}function bi(e){return function(e){if(Array.isArray(e))return yi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return yi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yi(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}si.DEFAULTS=ci;var vi=/font-weight:\s*normal/,gi=["P","OL","UL"],wi=function(e){return e&&gi.includes(e.tagName)};n(468);var xi=/\bmso-list:[^;]*ignore/i,Si=/\bmso-list:[^;]*\bl(\d+)/i,Oi=/\bmso-list:[^;]*\blevel(\d+)/i,Ei=function(e){var t=Array.from(e.querySelectorAll("[style*=mso-list]")),n=[],r=[];t.forEach((function(e){(e.getAttribute("style")||"").match(xi)?n.push(e):r.push(e)})),n.forEach((function(e){var t;return null===(t=e.parentNode)||void 0===t?void 0:t.removeChild(e)}));for(var o=e.documentElement.innerHTML,i=r.map((function(e){return function(e,t){var n=e.getAttribute("style"),r=null==n?void 0:n.match(Si);if(!r)return null;var o=Number(r[1]),i=null==n?void 0:n.match(Oi),a=i?Number(i[1]):1,l=new RegExp("@list l".concat(o,":level").concat(a,"\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)"),"i"),s=t.match(l);return{id:o,indent:a,type:s&&"bullet"===s[1]?"bullet":"ordered",element:e}}(e,o)})).filter((function(e){return e})),a=function(){for(var e,t=[],n=i.shift();n;){var r;t.push(n),n=i.length&&(null===(r=i[0])||void 0===r?void 0:r.element)===n.element.nextElementSibling&&i[0].id===n.id?i.shift():null}var o=document.createElement("ul");t.forEach((function(e){var t=document.createElement("li");t.setAttribute("data-list",e.type),e.indent>1&&t.setAttribute("class","ql-indent-".concat(e.indent-1)),t.innerHTML=e.element.innerHTML,o.appendChild(t)}));var a=null===(e=t[0])||void 0===e?void 0:e.element,l=(null!=a?a:{}).parentNode;a&&(null==l||l.replaceChild(o,a)),t.slice(1).forEach((function(e){var t=e.element;null==l||l.removeChild(t)}))};i.length;)a()};var ki=[function(e){"urn:schemas-microsoft-com:office:word"===e.documentElement.getAttribute("xmlns:w")&&Ei(e)},function(e){e.querySelector('[id^="docs-internal-guid-"]')&&(function(e){Array.from(e.querySelectorAll('b[style*="font-weight"]')).filter((function(e){var t;return null===(t=e.getAttribute("style"))||void 0===t?void 0:t.match(vi)})).forEach((function(t){var n,r=e.createDocumentFragment();r.append.apply(r,bi(t.childNodes)),null===(n=t.parentNode)||void 0===n||n.replaceChild(r,t)}))}(e),function(e){Array.from(e.querySelectorAll("br")).filter((function(e){return wi(e.previousElementSibling)&&wi(e.nextElementSibling)})).forEach((function(e){var t;null===(t=e.parentNode)||void 0===t||t.removeChild(e)}))}(e))}],_i=function(e){e.documentElement&&ki.forEach((function(t){t(e)}))};function Ci(e){return(Ci="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)}function Ai(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 Ti(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ai(Object(n),!0).forEach((function(t){Mi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ai(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ji(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return qi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qi(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ni(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Li(r.key),r)}}function Pi(e,t,n){return t=Ri(t),function(e,t){if(t&&("object"==Ci(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Ri(e).constructor):t.apply(e,n))}function Ri(e){return(Ri=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ii(e,t){return(Ii=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Mi(e,t,n){return(t=Li(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Li(e){var t=function(e,t){if("object"!=Ci(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ci(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ci(t)?t:t+""}var Di=Tt("quill:clipboard"),zi=[[Node.TEXT_NODE,function(e,t,n){var r,o=e.data;if("O:P"===(null===(r=e.parentElement)||void 0===r?void 0:r.tagName))return t.insert(o.trim());if(!function e(t){if(null==t)return!1;Vi.has(t)||("PRE"===t.tagName?Vi.set(t,!0):Vi.set(t,e(t.parentNode)));return Vi.get(t)}(e)){if(0===o.trim().length&&o.includes("\n")&&!function(e,t){return e.previousElementSibling&&e.nextElementSibling&&!Gi(e.previousElementSibling,t)&&!Gi(e.nextElementSibling,t)}(e,n))return t;o=(o=o.replace(/[^\S\u00a0]/g," ")).replace(/ {2,}/g," "),(null==e.previousSibling&&null!=e.parentElement&&Gi(e.parentElement,n)||e.previousSibling instanceof Element&&Gi(e.previousSibling,n))&&(o=o.replace(/^ /,"")),(null==e.nextSibling&&null!=e.parentElement&&Gi(e.parentElement,n)||e.nextSibling instanceof Element&&Gi(e.nextSibling,n))&&(o=o.replace(/ $/,"")),o=o.replaceAll(" "," ")}return t.insert(o)}],[Node.TEXT_NODE,Yi],["br",function(e,t){Wi(t,"\n")||t.insert("\n");return t}],[Node.ELEMENT_NODE,Yi],[Node.ELEMENT_NODE,function(e,t,n){var r=n.query(e);if(null==r)return t;if(r.prototype instanceof T){var o={},i=r.value(e);if(null!=i)return o[r.blotName]=i,(new M.a).insert(o,r.formats(e,n))}else if(r.prototype instanceof _&&!Wi(t,"\n")&&t.insert("\n"),"blotName"in r&&"formats"in r&&"function"==typeof r.formats)return Ui(t,r.blotName,r.formats(e,n),n);return t}],[Node.ELEMENT_NODE,function(e,t,n){var r=a.keys(e),o=f.keys(e),l=p.keys(e),s={};return r.concat(o).concat(l).forEach((function(t){var r=n.query(t,i.ATTRIBUTE);null!=r&&(s[r.attrName]=r.value(e),s[r.attrName])||(null==(r=Bi[t])||r.attrName!==t&&r.keyName!==t||(s[r.attrName]=r.value(e)||void 0),null==(r=Fi[t])||r.attrName!==t&&r.keyName!==t||(r=Fi[t],s[r.attrName]=r.value(e)||void 0))})),Object.entries(s).reduce((function(e,t){var r=ji(t,2);return Ui(e,r[0],r[1],n)}),t)}],[Node.ELEMENT_NODE,function(e,t,n){var r,o={},i=e.style||{};"italic"===i.fontStyle&&(o.italic=!0);"underline"===i.textDecoration&&(o.underline=!0);"line-through"===i.textDecoration&&(o.strike=!0);(null!==(r=i.fontWeight)&&void 0!==r&&r.startsWith("bold")||parseInt(i.fontWeight,10)>=700)&&(o.bold=!0);if(t=Object.entries(o).reduce((function(e,t){var r=ji(t,2);return Ui(e,r[0],r[1],n)}),t),parseFloat(i.textIndent||0)>0)return(new M.a).insert("\t").concat(t);return t}],["li",function(e,t,n){var r=n.query(e);if(null==r||"list"!==r.blotName||!Wi(t,"\n"))return t;var o=-1,i=e.parentNode;for(;null!=i;)["OL","UL"].includes(i.tagName)&&(o+=1),i=i.parentNode;return o<=0?t:t.reduce((function(e,t){return t.insert?t.attributes&&"number"==typeof t.attributes.indent?e.push(t):e.insert(t.insert,Ti({indent:o},t.attributes||{})):e}),new M.a)}],["ol, ul",function(e,t,n){var r=e,o="OL"===r.tagName?"ordered":"bullet",i=r.getAttribute("data-checked");i&&(o="true"===i?"checked":"unchecked");return Ui(t,"list",o,n)}],["pre",function(e,t,n){var r=n.query("code-block"),o=!r||!("formats"in r)||"function"!=typeof r.formats||r.formats(e,n);return Ui(t,"code-block",o,n)}],["tr",function(e,t,n){var r,o,i="TABLE"===(null===(r=e.parentElement)||void 0===r?void 0:r.tagName)?e.parentElement:null===(o=e.parentElement)||void 0===o?void 0:o.parentElement;if(null!=i){var a=Array.from(i.querySelectorAll("tr")).indexOf(e)+1;return Ui(t,"table",a,n)}return t}],["b",$i("bold")],["i",$i("italic")],["strike",$i("strike")],["style",function(){return new M.a}]],Bi=[Jr,No].reduce((function(e,t){return e[t.keyName]=t,e}),{}),Fi=[to,bo,ho,Ro,Vo,$o].reduce((function(e,t){return e[t.keyName]=t,e}),{}),Hi=function(e){function t(e,n){var r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=Pi(this,t,[e,n])).quill.root.addEventListener("copy",(function(e){return o.onCaptureCopy(e,!1)})),o.quill.root.addEventListener("cut",(function(e){return o.onCaptureCopy(e,!0)})),o.quill.root.addEventListener("paste",o.onCapturePaste.bind(o)),o.matchers=[],zi.concat(null!==(r=o.options.matchers)&&void 0!==r?r:[]).forEach((function(e){var t=ji(e,2),n=t[0],r=t[1];o.addMatcher(n,r)})),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ii(e,t)}(t,e),function(e,t,n){return t&&Ni(e.prototype,t),n&&Ni(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){var t=e.html,n=e.text,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r[To.blotName])return(new M.a).insert(n||"",Mi({},To.blotName,r[To.blotName]));if(!t)return(new M.a).insert(n||"",r);var o=this.convertHTML(t);return Wi(o,"\n")&&(null==o.ops[o.ops.length-1].attributes||r.table)?o.compose((new M.a).retain(o.length()-1).delete(1)):o}},{key:"normalizeHTML",value:function(e){_i(e)}},{key:"convertHTML",value:function(e){var t=(new DOMParser).parseFromString(e,"text/html");this.normalizeHTML(t);var n=t.body,r=new WeakMap,o=ji(this.prepareMatching(n,r),2),i=o[0],a=o[1];return Ki(this.quill.scroll,n,i,a,r)}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:gr.sources.API;if("string"==typeof e){var r=this.convert({html:e,text:""});this.quill.setContents(r,t),this.quill.setSelection(0,gr.sources.SILENT)}else{var o=this.convert({html:t,text:""});this.quill.updateContents((new M.a).retain(e).concat(o),n),this.quill.setSelection(e+o.length(),gr.sources.SILENT)}}},{key:"onCaptureCopy",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e.defaultPrevented){e.preventDefault();var o=this.quill.selection.getRange(),i=ji(o,1),a=i[0];if(null!=a){var l=this.onCopy(a,r),s=l.html,c=l.text;null===(t=e.clipboardData)||void 0===t||t.setData("text/plain",c),null===(n=e.clipboardData)||void 0===n||n.setData("text/html",s),r&&mi({range:a,quill:this.quill})}}}},{key:"normalizeURIList",value:function(e){return e.split(/\r?\n/).filter((function(e){return"#"!==e[0]})).join("\n")}},{key:"onCapturePaste",value:function(e){var t,n,r;if(!e.defaultPrevented&&this.quill.isEnabled()){e.preventDefault();var o=this.quill.getSelection(!0);if(null!=o){var i=null===(t=e.clipboardData)||void 0===t?void 0:t.getData("text/html"),a=null===(n=e.clipboardData)||void 0===n?void 0:n.getData("text/plain");if(!i&&!a){var l,s=null===(l=e.clipboardData)||void 0===l?void 0:l.getData("text/uri-list");s&&(a=this.normalizeURIList(s))}var c=Array.from((null===(r=e.clipboardData)||void 0===r?void 0:r.files)||[]);if(!i&&c.length>0)this.quill.uploader.upload(o,c);else{if(i&&c.length>0){var u,f=(new DOMParser).parseFromString(i,"text/html");if(1===f.body.childElementCount&&"IMG"===(null===(u=f.body.firstElementChild)||void 0===u?void 0:u.tagName))return void this.quill.uploader.upload(o,c)}this.onPaste(o,{html:i,text:a})}}}}},{key:"onCopy",value:function(e){var t=this.quill.getText(e);return{html:this.quill.getSemanticHTML(e),text:t}}},{key:"onPaste",value:function(e,t){var n=t.text,r=t.html,o=this.quill.getFormat(e.index),i=this.convert({text:n,html:r},o);Di.log("onPaste",i,{text:n,html:r});var a=(new M.a).retain(e.index).delete(e.length).concat(i);this.quill.updateContents(a,gr.sources.USER),this.quill.setSelection(a.length()-e.length,gr.sources.SILENT),this.quill.scrollSelectionIntoView()}},{key:"prepareMatching",value:function(e,t){var n=[],r=[];return this.matchers.forEach((function(o){var i=ji(o,2),a=i[0],l=i[1];switch(a){case Node.TEXT_NODE:r.push(l);break;case Node.ELEMENT_NODE:n.push(l);break;default:Array.from(e.querySelectorAll(a)).forEach((function(e){if(t.has(e)){var n=t.get(e);null==n||n.push(l)}else t.set(e,[l])}))}})),[n,r]}}])}(Nn);function Ui(e,t,n,r){return r.query(t)?e.reduce((function(e,r){if(!r.insert)return e;if(r.attributes&&r.attributes[t])return e.push(r);var o=n?Mi({},t,n):{};return e.insert(r.insert,Ti(Ti({},o),r.attributes))}),new M.a):e}function Wi(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length<t.length;--r){var o=e.ops[r];if("string"!=typeof o.insert)break;n=o.insert+n}return n.slice(-1*t.length)===t}function Gi(e,t){if(!(e instanceof Element))return!1;var n=t.query(e);return!(n&&n.prototype instanceof T)&&["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(e.tagName.toLowerCase())}Mi(Hi,"DEFAULTS",{matchers:[]});var Vi=new WeakMap;function Ki(e,t,n,r,o){return t.nodeType===t.TEXT_NODE?r.reduce((function(n,r){return r(t,n,e)}),new M.a):t.nodeType===t.ELEMENT_NODE?Array.from(t.childNodes||[]).reduce((function(i,a){var l=Ki(e,a,n,r,o);return a.nodeType===t.ELEMENT_NODE&&(l=n.reduce((function(t,n){return n(a,t,e)}),l),l=(o.get(a)||[]).reduce((function(t,n){return n(a,t,e)}),l)),i.concat(l)}),new M.a):new M.a}function $i(e){return function(t,n,r){return Ui(n,e,!0,r)}}function Yi(e,t,n){if(!Wi(t,"\n")){if(Gi(e,n)&&(e.childNodes.length>0||e instanceof HTMLParagraphElement))return t.insert("\n");if(t.length()>0&&e.nextSibling)for(var r=e.nextSibling;null!=r;){if(Gi(r,n))return t.insert("\n");var o=n.query(r);if(o&&o.prototype instanceof st)return t.insert("\n");r=r.firstChild}}return t}n(129),n(377);function Zi(e){return(Zi="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)}function Xi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,na(r.key),r)}}function Qi(e,t,n){return t=Ji(t),function(e,t){if(t&&("object"==Zi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Ji(e).constructor):t.apply(e,n))}function Ji(e){return(Ji=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ea(e,t){return(ea=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ta(e,t,n){return(t=na(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function na(e){var t=function(e,t){if("object"!=Zi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Zi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zi(t)?t:t+""}var ra=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ta(r=Qi(this,t,[e,n]),"lastRecorded",0),ta(r,"ignoreChange",!1),ta(r,"stack",{undo:[],redo:[]}),ta(r,"currentRange",null),r.quill.on(gr.events.EDITOR_CHANGE,(function(e,t,n,o){e===gr.events.SELECTION_CHANGE?t&&o!==gr.sources.SILENT&&(r.currentRange=t):e===gr.events.TEXT_CHANGE&&(r.ignoreChange||(r.options.userOnly&&o!==gr.sources.USER?r.transform(t):r.record(t,n)),r.currentRange=ia(r.currentRange,t))})),r.quill.keyboard.addBinding({key:"z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"y",shortKey:!0},r.redo.bind(r)),r.quill.root.addEventListener("beforeinput",(function(e){"historyUndo"===e.inputType?(r.undo(),e.preventDefault()):"historyRedo"===e.inputType&&(r.redo(),e.preventDefault())})),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ea(e,t)}(t,e),function(e,t,n){return t&&Xi(e.prototype,t),n&&Xi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();if(n){var r=this.quill.getContents(),o=n.delta.invert(r);this.stack[t].push({delta:o,range:ia(n.range,o)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n.delta,gr.sources.USER),this.ignoreChange=!1,this.restoreSelection(n)}}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=e.invert(t),r=this.currentRange,o=Date.now();if(this.lastRecorded+this.options.delay>o&&this.stack.undo.length>0){var i=this.stack.undo.pop();i&&(n=n.compose(i.delta),r=i.range)}else this.lastRecorded=o;0!==n.length()&&(this.stack.undo.push({delta:n,range:r}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){oa(this.stack.undo,e),oa(this.stack.redo,e)}},{key:"undo",value:function(){this.change("undo","redo")}},{key:"restoreSelection",value:function(e){if(e.range)this.quill.setSelection(e.range,gr.sources.USER);else{var t=function(e,t){var n=t.reduce((function(e,t){return e+(t.delete||0)}),0),r=t.length()-n;(function(e,t){var n=t.ops[t.ops.length-1];if(null==n)return!1;if(null!=n.insert)return"string"==typeof n.insert&&n.insert.endsWith("\n");if(null!=n.attributes)return Object.keys(n.attributes).some((function(t){return null!=e.query(t,i.BLOCK)}));return!1})(e,t)&&(r-=1);return r}(this.quill.scroll,e.delta);this.quill.setSelection(t,gr.sources.USER)}}}])}(Nn);function oa(e,t){for(var n=t,r=e.length-1;r>=0;r-=1){var o=e[r];e[r]={delta:n.transform(o.delta,!0),range:o.range&&ia(o.range,n)},n=o.delta.transform(n),0===e[r].delta.length()&&e.splice(r,1)}}function ia(e,t){if(!e)return e;var n=t.transformPosition(e.index);return{index:n,length:t.transformPosition(e.index+e.length)-n}}ta(ra,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});n(56);function aa(e){return(aa="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)}function la(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sa(r.key),r)}}function sa(e){var t=function(e,t){if("object"!=aa(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=aa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==aa(t)?t:t+""}function ca(e,t,n){return t=ua(t),function(e,t){if(t&&("object"==aa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],ua(e).constructor):t.apply(e,n))}function ua(e){return(ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fa(e,t){return(fa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var da=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=ca(this,t,[e,n]),e.root.addEventListener("drop",(function(t){t.preventDefault();var n=null;if(document.caretRangeFromPoint)n=document.caretRangeFromPoint(t.clientX,t.clientY);else if(document.caretPositionFromPoint){var o=document.caretPositionFromPoint(t.clientX,t.clientY);(n=document.createRange()).setStart(o.offsetNode,o.offset),n.setEnd(o.offsetNode,o.offset)}var i=n&&e.selection.normalizeNative(n);if(i){var a,l=e.selection.normalizedToRange(i);null!==(a=t.dataTransfer)&&void 0!==a&&a.files&&r.upload(l,t.dataTransfer.files)}})),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fa(e,t)}(t,e),function(e,t,n){return t&&la(e.prototype,t),n&&la(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"upload",value:function(e,t){var n=this,r=[];Array.from(t).forEach((function(e){var t;e&&null!==(t=n.options.mimetypes)&&void 0!==t&&t.includes(e.type)&&r.push(e)})),r.length>0&&this.options.handler.call(this,e,r)}}])}(Nn);da.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler:function(e,t){var n=this;if(this.quill.scroll.query("image")){var r=t.map((function(e){return new Promise((function(t){var n=new FileReader;n.onload=function(){t(n.result)},n.readAsDataURL(e)}))}));Promise.all(r).then((function(t){var r=t.reduce((function(e,t){return e.insert({image:t})}),(new M.a).retain(e.index).delete(e.length));n.quill.updateContents(r,Ht.sources.USER),n.quill.setSelection(e.index+t.length,Ht.sources.SILENT)}))}}};var pa=da;function ha(e){return(ha="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)}function ma(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ba(r.key),r)}}function ba(e){var t=function(e,t){if("object"!=ha(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ha(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ha(t)?t:t+""}function ya(e,t,n){return t=va(t),function(e,t){if(t&&("object"==ha(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],va(e).constructor):t.apply(e,n))}function va(e){return(va=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ga(e,t){return(ga=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var wa=["insertText","insertReplacementText"];var xa=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=ya(this,t,[e,n]),e.root.addEventListener("beforeinput",(function(e){r.handleBeforeInput(e)})),/Android/i.test(navigator.userAgent)||e.on(gr.events.COMPOSITION_BEFORE_START,(function(){r.handleCompositionStart()})),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ga(e,t)}(t,e),function(e,t,n){return t&&ma(e.prototype,t),n&&ma(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"deleteRange",value:function(e){mi({range:e,quill:this.quill})}},{key:"replaceText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(0===e.length)return!1;if(t){var n=this.quill.getFormat(e.index,1);this.deleteRange(e),this.quill.updateContents((new M.a).retain(e.index).insert(t,n),gr.sources.USER)}else this.deleteRange(e);return this.quill.setSelection(e.index+t.length,0,gr.sources.SILENT),!0}},{key:"handleBeforeInput",value:function(e){if(!this.quill.composition.isComposing&&!e.defaultPrevented&&wa.includes(e.inputType)){var t=e.getTargetRanges?e.getTargetRanges()[0]:null;if(t&&!0!==t.collapsed){var n=function(e){var t;if("string"==typeof e.data)return e.data;if(null!==(t=e.dataTransfer)&&void 0!==t&&t.types.includes("text/plain"))return e.dataTransfer.getData("text/plain");return null}(e);if(null!=n){var r=this.quill.selection.normalizeNative(t),o=r?this.quill.selection.normalizedToRange(r):null;o&&this.replaceText(o,n)&&e.preventDefault()}}}}},{key:"handleCompositionStart",value:function(){var e=this.quill.getSelection();e&&this.replaceText(e)}}])}(Nn);function Sa(e){return(Sa="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)}function Oa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Aa(r.key),r)}}function Ea(e,t,n){return t=ka(t),function(e,t){if(t&&("object"==Sa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],ka(e).constructor):t.apply(e,n))}function ka(e){return(ka=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _a(e,t){return(_a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ca(e,t,n){return(t=Aa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Aa(e){var t=function(e,t){if("object"!=Sa(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Sa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Sa(t)?t:t+""}var Ta=/Mac/i.test(navigator.platform),ja=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Ca(r=Ea(this,t,[e,n]),"isListening",!1),Ca(r,"selectionChangeDeadline",0),r.handleArrowKeys(),r.handleNavigationShortcuts(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_a(e,t)}(t,e),function(e,t,n){return t&&Oa(e.prototype,t),n&&Oa(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"handleArrowKeys",value:function(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler:function(e,t){var n=t.line,r=t.event;if(!(n instanceof S&&n.uiNode))return!0;var o="rtl"===getComputedStyle(n.domNode).direction;return!!(o&&"ArrowRight"!==r.key||!o&&"ArrowLeft"!==r.key)||(this.quill.setSelection(e.index-1,e.length+(r.shiftKey?1:0),gr.sources.USER),!1)}})}},{key:"handleNavigationShortcuts",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(t){!t.defaultPrevented&&function(e){return"ArrowLeft"===e.key||"ArrowRight"===e.key||"ArrowUp"===e.key||"ArrowDown"===e.key||"Home"===e.key||!(!Ta||"a"!==e.key||!0!==e.ctrlKey)}(t)&&e.ensureListeningToSelectionChange()}))}},{key:"ensureListeningToSelectionChange",value:function(){var e=this;if(this.selectionChangeDeadline=Date.now()+100,!this.isListening){this.isListening=!0;document.addEventListener("selectionchange",(function(){e.isListening=!1,Date.now()<=e.selectionChangeDeadline&&e.handleSelectionChange()}),{once:!0})}}},{key:"handleSelectionChange",value:function(){var e=document.getSelection();if(e){var t=e.getRangeAt(0);if(!0===t.collapsed&&0===t.startOffset){var n=this.quill.scroll.find(t.startContainer);if(n instanceof S&&n.uiNode){var r=document.createRange();r.setStartAfter(n.uiNode),r.setEndAfter(n.uiNode),e.removeAllRanges(),e.addRange(r)}}}}}])}(Nn);gr.register({"blots/block":lt,"blots/block/embed":st,"blots/break":Se,"blots/container":Rr,"blots/cursor":St,"blots/embed":Fn,"blots/inline":Ge,"blots/scroll":Xr,"blots/text":je,"modules/clipboard":Hi,"modules/history":ra,"modules/keyboard":si,"modules/uploader":pa,"modules/input":xa,"modules/uiNode":ja});var qa=gr;function Na(e){return(Na="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)}function Pa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ra(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ia(r.key),r)}}function Ia(e){var t=function(e,t){if("object"!=Na(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Na(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Na(t)?t:t+""}function Ma(e,t,n){return t=Ba(t),function(e,t){if(t&&("object"==Na(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Ba(e).constructor):t.apply(e,n))}function La(e,t,n,r){var o=Da(Ba(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function Da(){return(Da="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=za(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(null,arguments)}function za(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Ba(e)););return e}function Ba(e){return(Ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fa(e,t){return(Fa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Ha=new(function(e){function t(){return Pa(this,t),Ma(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fa(e,t)}(t,e),function(e,t,n){return t&&Ra(e.prototype,t),n&&Ra(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"add",value:function(e,n){var r=0;if("+1"===n||"-1"===n){var o=this.value(e)||0;r="+1"===n?o+1:o-1}else"number"==typeof n&&(r=n);return 0===r?(this.remove(e),!0):La(t,"add",this,3)([e,r.toString()])}},{key:"canAdd",value:function(e,n){return La(t,"canAdd",this,3)([e,n])||La(t,"canAdd",this,3)([e,parseInt(n,10)])}},{key:"value",value:function(e){return parseInt(La(t,"value",this,3)([e]),10)||void 0}}])}(f))("indent","ql-indent",{scope:i.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});function Ua(e){return(Ua="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)}function Wa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Za(r.key),r)}}function Ga(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Va(e,t,n){return t=Ka(t),function(e,t){if(t&&("object"==Ua(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Ka(e).constructor):t.apply(e,n))}function Ka(e){return(Ka=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $a(e,t){return($a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ya(e,t,n){return(t=Za(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Za(e){var t=function(e,t){if("object"!=Ua(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ua(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ua(t)?t:t+""}var Xa=function(e){function t(){return Ga(this,t),Va(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$a(e,t)}(t,e),function(e,t,n){return t&&Wa(e.prototype,t),n&&Wa(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t)}(lt);Ya(Xa,"blotName","blockquote"),Ya(Xa,"tagName","blockquote");var Qa=Xa;function Ja(e){return(Ja="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)}function el(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,al(r.key),r)}}function nl(e,t,n){return t=rl(t),function(e,t){if(t&&("object"==Ja(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],rl(e).constructor):t.apply(e,n))}function rl(e){return(rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ol(e,t){return(ol=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function il(e,t,n){return(t=al(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function al(e){var t=function(e,t){if("object"!=Ja(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ja(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ja(t)?t:t+""}var ll=function(e){function t(){return el(this,t),nl(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ol(e,t)}(t,e),function(e,t,n){return t&&tl(e.prototype,t),n&&tl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}])}(lt);il(ll,"blotName","header"),il(ll,"tagName",["H1","H2","H3","H4","H5","H6"]);var sl=ll;function cl(e){return(cl="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)}function ul(e,t,n,r){var o=fl(vl(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function fl(){return(fl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=dl(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(null,arguments)}function dl(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=vl(e)););return e}function pl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ml(r.key),r)}}function hl(e,t,n){return t&&pl(e.prototype,t),n&&pl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ml(e){var t=function(e,t){if("object"!=cl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=cl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cl(t)?t:t+""}function bl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yl(e,t,n){return t=vl(t),function(e,t){if(t&&("object"==cl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],vl(e).constructor):t.apply(e,n))}function vl(e){return(vl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gl(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wl(e,t)}function wl(e,t){return(wl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var xl=function(e){function t(){return bl(this,t),yl(this,t,arguments)}return gl(t,e),hl(t)}(Rr);xl.blotName="list-container",xl.tagName="OL";var Sl=function(e){function t(e,n){var r;bl(this,t),r=yl(this,t,[e,n]);var o=n.ownerDocument.createElement("span"),i=function(t){if(e.isEnabled()){var o=r.statics.formats(n,e);"checked"===o?(r.format("list","unchecked"),t.preventDefault()):"unchecked"===o&&(r.format("list","checked"),t.preventDefault())}};return o.addEventListener("mousedown",i),o.addEventListener("touchstart",i),r.attachUI(o),r}return gl(t,e),hl(t,[{key:"format",value:function(e,n){e===this.statics.blotName&&n?this.domNode.setAttribute("data-list",n):ul(t,"format",this,3)([e,n])}}],[{key:"create",value:function(e){var n=ul(t,"create",this,2)([]);return n.setAttribute("data-list",e),n}},{key:"formats",value:function(e){return e.getAttribute("data-list")||void 0}},{key:"register",value:function(){gr.register(xl)}}])}(lt);function Ol(e){return(Ol="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)}function El(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pl(r.key),r)}}function _l(e,t,n){return t=jl(t),function(e,t){if(t&&("object"==Ol(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],jl(e).constructor):t.apply(e,n))}function Cl(e,t,n,r){var o=Al(jl(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function Al(){return(Al="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Tl(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(null,arguments)}function Tl(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=jl(e)););return e}function jl(e){return(jl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ql(e,t){return(ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Nl(e,t,n){return(t=Pl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pl(e){var t=function(e,t){if("object"!=Ol(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ol(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ol(t)?t:t+""}Sl.blotName="list",Sl.tagName="LI",xl.allowedChildren=[Sl],Sl.requiredContainer=xl;var Rl=function(e){function t(){return El(this,t),_l(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ql(e,t)}(t,e),function(e,t,n){return t&&kl(e.prototype,t),n&&kl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"optimize",value:function(e){Cl(t,"optimize",this,3)([e]),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return Cl(t,"create",this,2)([])}},{key:"formats",value:function(){return!0}}])}(Ge);Nl(Rl,"blotName","bold"),Nl(Rl,"tagName",["STRONG","B"]);var Il=Rl;function Ml(e){return(Ml="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)}function Ll(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ul(r.key),r)}}function Dl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zl(e,t,n){return t=Bl(t),function(e,t){if(t&&("object"==Ml(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Bl(e).constructor):t.apply(e,n))}function Bl(e){return(Bl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fl(e,t){return(Fl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Hl(e,t,n){return(t=Ul(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ul(e){var t=function(e,t){if("object"!=Ml(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ml(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ml(t)?t:t+""}var Wl=function(e){function t(){return Dl(this,t),zl(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fl(e,t)}(t,e),function(e,t,n){return t&&Ll(e.prototype,t),n&&Ll(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t)}(Il);Hl(Wl,"blotName","italic"),Hl(Wl,"tagName",["EM","I"]);var Gl=Wl;function Vl(e){return(Vl="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)}function Kl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ns(r.key),r)}}function Yl(e,t,n){return t=Jl(t),function(e,t){if(t&&("object"==Vl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Jl(e).constructor):t.apply(e,n))}function Zl(e,t,n,r){var o=Xl(Jl(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function Xl(){return(Xl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Ql(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(null,arguments)}function Ql(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Jl(e)););return e}function Jl(e){return(Jl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function es(e,t){return(es=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ts(e,t,n){return(t=ns(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ns(e){var t=function(e,t){if("object"!=Vl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Vl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Vl(t)?t:t+""}var rs=function(e){function t(){return Kl(this,t),Yl(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&es(e,t)}(t,e),function(e,t,n){return t&&$l(e.prototype,t),n&&$l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"format",value:function(e,n){e===this.statics.blotName&&n?this.domNode.setAttribute("href",this.constructor.sanitize(n)):Zl(t,"format",this,3)([e,n])}}],[{key:"create",value:function(e){var n=Zl(t,"create",this,2)([e]);return n.setAttribute("href",this.sanitize(e)),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return os(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}])}(Ge);function os(e,t){var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}function is(e){return(is="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)}function as(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ls(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hs(r.key),r)}}function ss(e,t,n){return t=fs(t),function(e,t){if(t&&("object"==is(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],fs(e).constructor):t.apply(e,n))}function cs(){return(cs="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=us(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(null,arguments)}function us(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=fs(e)););return e}function fs(e){return(fs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ds(e,t){return(ds=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ps(e,t,n){return(t=hs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hs(e){var t=function(e,t){if("object"!=is(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=is(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==is(t)?t:t+""}ts(rs,"blotName","link"),ts(rs,"tagName","A"),ts(rs,"SANITIZED_URL","about:blank"),ts(rs,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);var ms=function(e){function t(){return as(this,t),ss(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ds(e,t)}(t,e),function(e,t,n){return t&&ls(e.prototype,t),n&&ls(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):function(e,t,n,r){var o=cs(fs(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}(t,"create",this,2)([e])}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}])}(Ge);ps(ms,"blotName","script"),ps(ms,"tagName",["SUB","SUP"]);var bs=ms;function ys(e){return(ys="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)}function vs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Es(r.key),r)}}function gs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ws(e,t,n){return t=xs(t),function(e,t){if(t&&("object"==ys(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],xs(e).constructor):t.apply(e,n))}function xs(e){return(xs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ss(e,t){return(Ss=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Os(e,t,n){return(t=Es(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Es(e){var t=function(e,t){if("object"!=ys(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ys(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ys(t)?t:t+""}var ks=function(e){function t(){return gs(this,t),ws(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ss(e,t)}(t,e),function(e,t,n){return t&&vs(e.prototype,t),n&&vs(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t)}(Il);Os(ks,"blotName","strike"),Os(ks,"tagName",["S","STRIKE"]);var _s=ks;function Cs(e){return(Cs="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)}function As(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Rs(r.key),r)}}function Ts(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function js(e,t,n){return t=qs(t),function(e,t){if(t&&("object"==Cs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],qs(e).constructor):t.apply(e,n))}function qs(e){return(qs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ns(e,t){return(Ns=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ps(e,t,n){return(t=Rs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rs(e){var t=function(e,t){if("object"!=Cs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Cs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Cs(t)?t:t+""}var Is=function(e){function t(){return Ts(this,t),js(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ns(e,t)}(t,e),function(e,t,n){return t&&As(e.prototype,t),n&&As(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t)}(Ge);Ps(Is,"blotName","underline"),Ps(Is,"tagName","U");var Ms=Is;function Ls(e){return(Ls="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)}function Ds(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vs(r.key),r)}}function Bs(e,t,n){return t=Us(t),function(e,t){if(t&&("object"==Ls(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Us(e).constructor):t.apply(e,n))}function Fs(){return(Fs="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Hs(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(null,arguments)}function Hs(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Us(e)););return e}function Us(e){return(Us=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ws(e,t){return(Ws=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Gs(e,t,n){return(t=Vs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vs(e){var t=function(e,t){if("object"!=Ls(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ls(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ls(t)?t:t+""}var Ks=function(e){function t(){return Ds(this,t),Bs(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ws(e,t)}(t,e),function(e,t,n){return t&&zs(e.prototype,t),n&&zs(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"html",value:function(){var e=this.value().formula;return"<span>".concat(e,"</span>")}}],[{key:"create",value:function(e){if(null==window.katex)throw new Error("Formula module requires KaTeX.");var n=function(e,t,n,r){var o=Fs(Us(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}(t,"create",this,2)([e]);return"string"==typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}])}(Fn);Gs(Ks,"blotName","formula"),Gs(Ks,"className","ql-formula"),Gs(Ks,"tagName","SPAN");var $s=Ks;function Ys(e){return(Ys="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)}function Zs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ic(r.key),r)}}function Qs(e,t,n){return t=nc(t),function(e,t){if(t&&("object"==Ys(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],nc(e).constructor):t.apply(e,n))}function Js(e,t,n,r){var o=ec(nc(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function ec(){return(ec="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=tc(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(null,arguments)}function tc(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=nc(e)););return e}function nc(e){return(nc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rc(e,t){return(rc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function oc(e,t,n){return(t=ic(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ic(e){var t=function(e,t){if("object"!=Ys(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ys(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ys(t)?t:t+""}var ac=["alt","height","width"],lc=function(e){function t(){return Zs(this,t),Qs(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rc(e,t)}(t,e),function(e,t,n){return t&&Xs(e.prototype,t),n&&Xs(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"format",value:function(e,n){ac.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):Js(t,"format",this,3)([e,n])}}],[{key:"create",value:function(e){var n=Js(t,"create",this,2)([e]);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return ac.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return os(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}])}(T);oc(lc,"blotName","image"),oc(lc,"tagName","IMG");var sc=lc;function cc(e){return(cc="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)}function uc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gc(r.key),r)}}function dc(e,t,n){return t=bc(t),function(e,t){if(t&&("object"==cc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],bc(e).constructor):t.apply(e,n))}function pc(e,t,n,r){var o=hc(bc(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function hc(){return(hc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=mc(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(null,arguments)}function mc(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=bc(e)););return e}function bc(e){return(bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yc(e,t){return(yc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function vc(e,t,n){return(t=gc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gc(e){var t=function(e,t){if("object"!=cc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=cc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cc(t)?t:t+""}var wc=["height","width"],xc=function(e){function t(){return uc(this,t),dc(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yc(e,t)}(t,e),function(e,t,n){return t&&fc(e.prototype,t),n&&fc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"format",value:function(e,n){wc.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):pc(t,"format",this,3)([e,n])}},{key:"html",value:function(){var e=this.value().video;return'<a href="'.concat(e,'">').concat(e,"</a>")}}],[{key:"create",value:function(e){var n=pc(t,"create",this,2)([e]);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen","true"),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return wc.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return rs.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}])}(st);vc(xc,"blotName","video"),vc(xc,"className","ql-video"),vc(xc,"tagName","IFRAME");var Sc=xc;function Oc(e){return(Oc="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)}function Ec(e,t,n){return(t=jc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ac(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jc(r.key),r)}}function Tc(e,t,n){return t&&Ac(e.prototype,t),n&&Ac(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function jc(e){var t=function(e,t){if("object"!=Oc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Oc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Oc(t)?t:t+""}function qc(e,t,n){return t=Lc(t),function(e,t){if(t&&("object"==Oc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Lc(e).constructor):t.apply(e,n))}function Nc(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pc(e,t)}function Pc(e,t){return(Pc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Rc(e,t,n,r){var o=Ic(Lc(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function Ic(){return(Ic="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Mc(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(null,arguments)}function Mc(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Lc(e)););return e}function Lc(e){return(Lc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Dc=new f("code-token","hljs",{scope:i.INLINE}),zc=function(e){function t(e,n,r){var o;return Cc(this,t),o=qc(this,t,[e,n,r]),Dc.add(o.domNode,r),o}return Nc(t,e),Tc(t,[{key:"format",value:function(e,n){e!==t.blotName?Rc(t,"format",this,3)([e,n]):n?Dc.add(this.domNode,n):(Dc.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}},{key:"optimize",value:function(){Rc(t,"optimize",this,3)(arguments),Dc.value(this.domNode)||this.unwrap()}}],[{key:"formats",value:function(e,n){for(;null!=e&&e!==n.domNode;){if(e.classList&&e.classList.contains(To.className))return Rc(t,"formats",this,2)([e,n]);e=e.parentNode}}}])}(Ge);zc.blotName="code-token",zc.className="ql-token";var Bc=function(e){function t(){return Cc(this,t),qc(this,t,arguments)}return Nc(t,e),Tc(t,[{key:"format",value:function(e,n){e===this.statics.blotName&&n?this.domNode.setAttribute("data-language",n):Rc(t,"format",this,3)([e,n])}},{key:"replaceWith",value:function(e,n){return this.formatAt(0,this.length(),zc.blotName,!1),Rc(t,"replaceWith",this,3)([e,n])}}],[{key:"create",value:function(e){var n=Rc(t,"create",this,2)([e]);return"string"==typeof e&&n.setAttribute("data-language",e),n}},{key:"formats",value:function(e){return e.getAttribute("data-language")||"plain"}},{key:"register",value:function(){}}])}(To),Fc=function(e){function t(){return Cc(this,t),qc(this,t,arguments)}return Nc(t,e),Tc(t,[{key:"attach",value:function(){Rc(t,"attach",this,3)([]),this.forceNext=!1,this.scroll.emitMount(this)}},{key:"format",value:function(e,t){e===Bc.blotName&&(this.forceNext=!0,this.children.forEach((function(n){n.format(e,t)})))}},{key:"formatAt",value:function(e,n,r,o){r===Bc.blotName&&(this.forceNext=!0),Rc(t,"formatAt",this,3)([e,n,r,o])}},{key:"highlight",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=this.children.head){var r=Array.from(this.domNode.childNodes).filter((function(e){return e!==t.uiNode})),o="".concat(r.map((function(e){return e.textContent})).join("\n"),"\n"),i=Bc.formats(this.children.head.domNode);if(n||this.forceNext||this.cachedText!==o){if(o.trim().length>0||null==this.cachedText){var a=this.children.reduce((function(e,t){return e.concat(ct(t,!1))}),new M.a),l=e(o,i);a.diff(l).reduce((function(e,n){var r=n.retain,o=n.attributes;return r?(o&&Object.keys(o).forEach((function(n){[Bc.blotName,zc.blotName].includes(n)&&t.formatAt(e,r,n,o[n])})),e+r):e}),0)}this.cachedText=o,this.forceNext=!1}}}},{key:"html",value:function(e,t){var n=kc(this.children.find(e),1)[0],r=n?Bc.formats(n.domNode):"plain";return'<pre data-language="'.concat(r,'">\n').concat(Ne(this.code(e,t)),"\n</pre>")}},{key:"optimize",value:function(e){if(Rc(t,"optimize",this,3)([e]),null!=this.parent&&null!=this.children.head&&null!=this.uiNode){var n=Bc.formats(this.children.head.domNode);n!==this.uiNode.value&&(this.uiNode.value=n)}}}])}(Ao);Fc.allowedChildren=[Bc],Bc.requiredContainer=Fc,Bc.allowedChildren=[zc,St,je,Se];var Hc=function(e,t,n){if("string"==typeof e.versionString){var r=e.versionString.split(".")[0];if(parseInt(r,10)>=11)return e.highlight(n,{language:t}).value}return e.highlight(t,n).value},Uc=function(e){function t(e,n){var r;if(Cc(this,t),null==(r=qc(this,t,[e,n])).options.hljs)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");return r.languages=r.options.languages.reduce((function(e,t){return e[t.key]=!0,e}),{}),r.highlightBlot=r.highlightBlot.bind(r),r.initListener(),r.initTimer(),r}return Nc(t,e),Tc(t,[{key:"initListener",value:function(){var e=this;this.quill.on(gr.events.SCROLL_BLOT_MOUNT,(function(t){if(t instanceof Fc){var n=e.quill.root.ownerDocument.createElement("select");e.options.languages.forEach((function(e){var t=e.key,r=e.label,o=n.ownerDocument.createElement("option");o.textContent=r,o.setAttribute("value",t),n.appendChild(o)})),n.addEventListener("change",(function(){t.format(Bc.blotName,n.value),e.quill.root.focus(),e.highlight(t,!0)})),null==t.uiNode&&(t.attachUI(n),t.children.head&&(n.value=Bc.formats(t.children.head.domNode)))}}))}},{key:"initTimer",value:function(){var e=this,t=null;this.quill.on(gr.events.SCROLL_OPTIMIZE,(function(){t&&clearTimeout(t),t=setTimeout((function(){e.highlight(),t=null}),e.options.interval)}))}},{key:"highlight",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.quill.selection.composing){this.quill.update(gr.sources.USER);var r=this.quill.getSelection(),o=null==t?this.quill.scroll.descendants(Fc):[t];o.forEach((function(t){t.highlight(e.highlightBlot,n)})),this.quill.update(gr.sources.SILENT),null!=r&&this.quill.setSelection(r,gr.sources.SILENT)}}},{key:"highlightBlot",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"plain";if("plain"===(t=this.languages[t]?t:"plain"))return Ne(e).split("\n").reduce((function(e,n,r){return 0!==r&&e.insert("\n",Ec({},To.blotName,t)),e.insert(n)}),new M.a);var n=this.quill.root.ownerDocument.createElement("div");return n.classList.add(To.className),n.innerHTML=Hc(this.options.hljs,t,e),Ki(this.quill.scroll,n,[function(e,t){var n=Dc.value(e);return n?t.compose((new M.a).retain(t.length(),Ec({},zc.blotName,n))):t}],[function(e,n){return e.data.split("\n").reduce((function(e,n,r){return 0!==r&&e.insert("\n",Ec({},To.blotName,t)),e.insert(n)}),n)}],new WeakMap)}}],[{key:"register",value:function(){gr.register(zc,!0),gr.register(Bc,!0),gr.register(Fc,!0)}}])}(Nn);Uc.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};n(617);function Wc(e){return(Wc="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)}function Gc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vc(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Kc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ou(r.key),r)}}function Yc(e,t,n){return t&&$c(e.prototype,t),n&&$c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zc(e,t,n){return t=eu(t),function(e,t){if(t&&("object"==Wc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],eu(e).constructor):t.apply(e,n))}function Xc(e,t,n,r){var o=Qc(eu(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function Qc(){return(Qc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Jc(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(null,arguments)}function Jc(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=eu(e)););return e}function eu(e){return(eu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tu(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nu(e,t)}function nu(e,t){return(nu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ru(e,t,n){return(t=ou(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ou(e){var t=function(e,t){if("object"!=Wc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Wc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Wc(t)?t:t+""}var iu=function(e){function t(){return Kc(this,t),Zc(this,t,arguments)}return tu(t,e),Yc(t,[{key:"cellOffset",value:function(){return this.parent?this.parent.children.indexOf(this):-1}},{key:"format",value:function(e,n){e===t.blotName&&n?this.domNode.setAttribute("data-row",n):Xc(t,"format",this,3)([e,n])}},{key:"row",value:function(){return this.parent}},{key:"rowOffset",value:function(){return this.row()?this.row().rowOffset():-1}},{key:"table",value:function(){return this.row()&&this.row().table()}}],[{key:"create",value:function(e){var n=Xc(t,"create",this,2)([]);return e?n.setAttribute("data-row",e):n.setAttribute("data-row",cu()),n}},{key:"formats",value:function(e){if(e.hasAttribute("data-row"))return e.getAttribute("data-row")}}])}(lt);ru(iu,"blotName","table"),ru(iu,"tagName","TD");var au=function(e){function t(){return Kc(this,t),Zc(this,t,arguments)}return tu(t,e),Yc(t,[{key:"checkMerge",value:function(){if(Xc(t,"checkMerge",this,3)([])&&null!=this.next.children.head){var e=this.children.head.formats(),n=this.children.tail.formats(),r=this.next.children.head.formats(),o=this.next.children.tail.formats();return e.table===n.table&&e.table===r.table&&e.table===o.table}return!1}},{key:"optimize",value:function(e){var n=this;Xc(t,"optimize",this,3)([e]),this.children.forEach((function(e){if(null!=e.next){var t=e.formats(),r=e.next.formats();if(t.table!==r.table){var o=n.splitAfter(e);o&&o.optimize(),n.prev&&n.prev.optimize()}}}))}},{key:"rowOffset",value:function(){return this.parent?this.parent.children.indexOf(this):-1}},{key:"table",value:function(){return this.parent&&this.parent.parent}}])}(Rr);ru(au,"blotName","table-row"),ru(au,"tagName","TR");var lu=function(e){function t(){return Kc(this,t),Zc(this,t,arguments)}return tu(t,e),Yc(t)}(Rr);ru(lu,"blotName","table-body"),ru(lu,"tagName","TBODY");var su=function(e){function t(){return Kc(this,t),Zc(this,t,arguments)}return tu(t,e),Yc(t,[{key:"balanceCells",value:function(){var e=this,t=this.descendants(au),n=t.reduce((function(e,t){return Math.max(t.children.length,e)}),0);t.forEach((function(t){new Array(n-t.children.length).fill(0).forEach((function(){var n;null!=t.children.head&&(n=iu.formats(t.children.head.domNode));var r=e.scroll.create(iu.blotName,n);t.appendChild(r),r.optimize()}))}))}},{key:"cells",value:function(e){return this.rows().map((function(t){return t.children.at(e)}))}},{key:"deleteColumn",value:function(e){var t=Gc(this.descendant(lu),1)[0];null!=t&&null!=t.children.head&&t.children.forEach((function(t){var n=t.children.at(e);null!=n&&n.remove()}))}},{key:"insertColumn",value:function(e){var t=this,n=Gc(this.descendant(lu),1)[0];null!=n&&null!=n.children.head&&n.children.forEach((function(n){var r=n.children.at(e),o=iu.formats(n.children.head.domNode),i=t.scroll.create(iu.blotName,o);n.insertBefore(i,r)}))}},{key:"insertRow",value:function(e){var t=this,n=Gc(this.descendant(lu),1)[0];if(null!=n&&null!=n.children.head){var r=cu(),o=this.scroll.create(au.blotName);n.children.head.children.forEach((function(){var e=t.scroll.create(iu.blotName,r);o.appendChild(e)}));var i=n.children.at(e);n.insertBefore(o,i)}}},{key:"rows",value:function(){var e=this.children.head;return null==e?[]:e.children.map((function(e){return e}))}}])}(Rr);function cu(){var e=Math.random().toString(36).slice(2,6);return"row-".concat(e)}function uu(e){return(uu="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)}function fu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return du(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?du(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function du(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function pu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mu(r.key),r)}}function mu(e){var t=function(e,t){if("object"!=uu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=uu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==uu(t)?t:t+""}function bu(e,t,n){return t=yu(t),function(e,t){if(t&&("object"==uu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],yu(e).constructor):t.apply(e,n))}function yu(e){return(yu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vu(e,t){return(vu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}ru(su,"blotName","table-container"),ru(su,"tagName","TABLE"),su.allowedChildren=[lu],lu.requiredContainer=su,lu.allowedChildren=[au],au.requiredContainer=lu,au.allowedChildren=[iu],iu.requiredContainer=au;var gu=function(e){function t(){var e;return pu(this,t),(e=bu(this,t,arguments)).listenBalanceCells(),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vu(e,t)}(t,e),function(e,t,n){return t&&hu(e.prototype,t),n&&hu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"balanceTables",value:function(){this.quill.scroll.descendants(su).forEach((function(e){e.balanceCells()}))}},{key:"deleteColumn",value:function(){var e=fu(this.getTable(),3),t=e[0],n=e[2];null!=n&&(t.deleteColumn(n.cellOffset()),this.quill.update(gr.sources.USER))}},{key:"deleteRow",value:function(){var e=fu(this.getTable(),2)[1];null!=e&&(e.remove(),this.quill.update(gr.sources.USER))}},{key:"deleteTable",value:function(){var e=fu(this.getTable(),1)[0];if(null!=e){var t=e.offset();e.remove(),this.quill.update(gr.sources.USER),this.quill.setSelection(t,gr.sources.SILENT)}}},{key:"getTable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.quill.getSelection();if(null==e)return[null,null,null,-1];var t=this.quill.getLine(e.index),n=fu(t,2),r=n[0],o=n[1];if(null==r||r.statics.blotName!==iu.blotName)return[null,null,null,-1];var i=r.parent,a=i.parent.parent;return[a,i,r,o]}},{key:"insertColumn",value:function(e){var t=this.quill.getSelection();if(t){var n=fu(this.getTable(t),3),r=n[0],o=n[1],i=n[2];if(null!=i){var a=i.cellOffset();r.insertColumn(a+e),this.quill.update(gr.sources.USER);var l=o.rowOffset();0===e&&(l+=1),this.quill.setSelection(t.index+l,t.length,gr.sources.SILENT)}}}},{key:"insertColumnLeft",value:function(){this.insertColumn(0)}},{key:"insertColumnRight",value:function(){this.insertColumn(1)}},{key:"insertRow",value:function(e){var t=this.quill.getSelection();if(t){var n=fu(this.getTable(t),3),r=n[0],o=n[1];if(null!=n[2]){var i=o.rowOffset();r.insertRow(i+e),this.quill.update(gr.sources.USER),e>0?this.quill.setSelection(t,gr.sources.SILENT):this.quill.setSelection(t.index+o.children.length,t.length,gr.sources.SILENT)}}}},{key:"insertRowAbove",value:function(){this.insertRow(0)}},{key:"insertRowBelow",value:function(){this.insertRow(1)}},{key:"insertTable",value:function(e,t){var n=this.quill.getSelection();if(null!=n){var r=new Array(e).fill(0).reduce((function(e){var n=new Array(t).fill("\n").join("");return e.insert(n,{table:cu()})}),(new M.a).retain(n.index));this.quill.updateContents(r,gr.sources.USER),this.quill.setSelection(n.index,gr.sources.SILENT),this.balanceTables()}}},{key:"listenBalanceCells",value:function(){var e=this;this.quill.on(gr.events.SCROLL_OPTIMIZE,(function(t){t.some((function(t){return!!["TD","TR","TBODY","TABLE"].includes(t.target.tagName)&&(e.quill.once(gr.events.TEXT_CHANGE,(function(t,n,r){r===gr.sources.USER&&e.balanceTables()})),!0)}))}))}}],[{key:"register",value:function(){gr.register(iu),gr.register(au),gr.register(lu),gr.register(su)}}])}(Nn);function wu(e){return(wu="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)}function xu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Su(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Su(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Su(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ou(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Eu(r.key),r)}}function Eu(e){var t=function(e,t){if("object"!=wu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=wu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wu(t)?t:t+""}function ku(e,t,n){return t=Cu(t),_u(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Cu(e).constructor):t.apply(e,n))}function _u(e,t){if(t&&("object"==wu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Cu(e){return(Cu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Au(e,t){return(Au=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Tu=Tt("quill:toolbar"),ju=function(e){function t(e,n){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=ku(this,t,[e,n]),Array.isArray(r.options.container)){var o,i,a=document.createElement("div");a.setAttribute("role","toolbar"),function(e,t){Array.isArray(t[0])||(t=[t]);t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)qu(n,e);else{var t=Object.keys(e)[0],r=e[t];Array.isArray(r)?function(e,t,n){var r=document.createElement("select");r.classList.add("ql-".concat(t)),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",String(e)):t.setAttribute("selected","selected"),r.appendChild(t)})),e.appendChild(r)}(n,t,r):qu(n,t,r)}})),e.appendChild(n)}))}(a,r.options.container),null===(o=e.container)||void 0===o||null===(i=o.parentNode)||void 0===i||i.insertBefore(a,e.container),r.container=a}else"string"==typeof r.options.container?r.container=document.querySelector(r.options.container):r.container=r.options.container;return r.container instanceof HTMLElement?(r.container.classList.add("ql-toolbar"),r.controls=[],r.handlers={},r.options.handlers&&Object.keys(r.options.handlers).forEach((function(e){var t,n=null===(t=r.options.handlers)||void 0===t?void 0:t[e];n&&r.addHandler(e,n)})),Array.from(r.container.querySelectorAll("button, select")).forEach((function(e){r.attach(e)})),r.quill.on(gr.events.EDITOR_CHANGE,(function(){var e=xu(r.quill.selection.getRange(),1)[0];r.update(e)})),r):(Tu.error("Container required for toolbar",r.options),_u(r))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Au(e,t)}(t,e),function(e,t,n){return t&&Ou(e.prototype,t),n&&Ou(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=Array.from(e.classList).find((function(e){return 0===e.indexOf("ql-")}));if(n)if(n=n.slice("ql-".length),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null!=this.handlers[n]||null!=this.quill.scroll.query(n)){var r="SELECT"===e.tagName?"change":"click";e.addEventListener(r,(function(r){var o;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var i=e.options[e.selectedIndex];o=!i.hasAttribute("selected")&&(i.value||!1)}else o=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),r.preventDefault();t.quill.focus();var a=xu(t.quill.selection.getRange(),1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,o);else if(t.quill.scroll.query(n).prototype instanceof T){if(!(o=prompt("Enter ".concat(n))))return;t.quill.updateContents((new M.a).retain(a.index).delete(a.length).insert(function(e,t,n){return(t=Eu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,o)),gr.sources.USER)}else t.quill.format(n,o,gr.sources.USER);t.update(a)})),this.controls.push([n,e])}else Tu.warn("ignoring attaching to nonexistent format",n,e)}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var r=xu(n,2),o=r[0],i=r[1];if("SELECT"===i.tagName){var a=null;if(null==e)a=null;else if(null==t[o])a=i.querySelector("option[selected]");else if(!Array.isArray(t[o])){var l=t[o];"string"==typeof l&&(l=l.replace(/"/g,'\\"')),a=i.querySelector('option[value="'.concat(l,'"]'))}null==a?(i.value="",i.selectedIndex=-1):a.selected=!0}else if(null==e)i.classList.remove("ql-active"),i.setAttribute("aria-pressed","false");else if(i.hasAttribute("value")){var s=t[o],c=s===i.getAttribute("value")||null!=s&&s.toString()===i.getAttribute("value")||null==s&&!i.getAttribute("value");i.classList.toggle("ql-active",c),i.setAttribute("aria-pressed",c.toString())}else{var u=null!=t[o];i.classList.toggle("ql-active",u),i.setAttribute("aria-pressed",u.toString())}}))}}])}(Nn);function qu(e,t,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-".concat(t)),r.setAttribute("aria-pressed","false"),null!=n?(r.value=n,r.setAttribute("aria-label","".concat(t,": ").concat(n))):r.setAttribute("aria-label",t),e.appendChild(r)}ju.DEFAULTS={},ju.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0===t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=e.quill.scroll.query(t,i.INLINE)&&e.quill.format(t,!1,gr.sources.USER)}))}else this.quill.removeFormat(t.index,t.length,gr.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",gr.sources.USER):e||"right"!==t||this.quill.format("align",!1,gr.sources.USER),this.quill.format("direction",e,gr.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0,10);if("+1"===e||"-1"===e){var o="+1"===e?1:-1;"rtl"===n.direction&&(o*=-1),this.quill.format("indent",r+o,gr.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,gr.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,gr.sources.USER):this.quill.format("list","unchecked",gr.sources.USER):this.quill.format("list",e,gr.sources.USER)}}};var Nu='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',Pu={align:{"":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',center:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',right:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',justify:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>'},background:'<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',blockquote:'<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',bold:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',clean:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',code:Nu,"code-block":Nu,color:'<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',direction:{"":'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',rtl:'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>'},formula:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',header:{1:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',2:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',3:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',4:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',5:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',6:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>'},italic:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',image:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',indent:{"+1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',"-1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>'},link:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',list:{bullet:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',check:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',ordered:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>'},script:{sub:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',super:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>'},strike:'<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',table:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',underline:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',video:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>'};function Ru(e){return(Ru="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)}function Iu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mu(r.key),r)}}function Mu(e){var t=function(e,t){if("object"!=Ru(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ru(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ru(t)?t:t+""}var Lu=0;function Du(e,t){e.setAttribute(t,"".concat(!("true"===e.getAttribute(t))))}var zu=function(){return function(e,t,n){return t&&Iu(e.prototype,t),n&&Iu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.key){case"Enter":n.togglePicker();break;case"Escape":n.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}),[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),Du(this.label,"aria-expanded"),Du(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item");var r=e.getAttribute("value");return r&&n.setAttribute("data-value",r),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.key){case"Enter":t.selectItem(n,!0),e.preventDefault();break;case"Escape":t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>',e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-".concat(Lu),Lu+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,Array.from(this.select.options).forEach((function(n){var r=e.buildItem(n);t.appendChild(r),!0===n.selected&&e.selectItem(r)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;Array.from(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t&&(this.select.dispatchEvent(new Event("change")),this.close())))}},{key:"update",value:function(){var e;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}])}();function Bu(e){return(Bu="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)}function Fu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hu(r.key),r)}}function Hu(e){var t=function(e,t){if("object"!=Bu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Bu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Bu(t)?t:t+""}function Uu(e,t,n){return t=Ku(t),function(e,t){if(t&&("object"==Bu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Ku(e).constructor):t.apply(e,n))}function Wu(e,t,n,r){var o=Gu(Ku(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function Gu(){return(Gu="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Vu(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(null,arguments)}function Vu(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Ku(e)););return e}function Ku(e){return(Ku=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $u(e,t){return($u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Yu=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Uu(this,t,[e])).label.innerHTML=n,r.container.classList.add("ql-color-picker"),Array.from(r.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach((function(e){e.classList.add("ql-primary")})),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$u(e,t)}(t,e),function(e,t,n){return t&&Fu(e.prototype,t),n&&Fu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"buildItem",value:function(e){var n=Wu(t,"buildItem",this,3)([e]);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){Wu(t,"selectItem",this,3)([e,n]);var r=this.label.querySelector(".ql-color-label"),o=e&&e.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=o:r.style.fill=o)}}])}(zu);function Zu(e){return(Zu="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)}function Xu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qu(r.key),r)}}function Qu(e){var t=function(e,t){if("object"!=Zu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Zu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zu(t)?t:t+""}function Ju(e,t,n){return t=nf(t),function(e,t){if(t&&("object"==Zu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],nf(e).constructor):t.apply(e,n))}function ef(){return(ef="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=tf(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(null,arguments)}function tf(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=nf(e)););return e}function nf(e){return(nf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rf(e,t){return(rf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var of=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Ju(this,t,[e])).container.classList.add("ql-icon-picker"),Array.from(r.container.querySelectorAll(".ql-picker-item")).forEach((function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rf(e,t)}(t,e),function(e,t,n){return t&&Xu(e.prototype,t),n&&Xu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"selectItem",value:function(e,n){!function(e,t,n,r){var o=ef(nf(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}(t,"selectItem",this,3)([e,n]);var r=e||this.defaultItem;if(null!=r){if(this.label.innerHTML===r.innerHTML)return;this.label.innerHTML=r.innerHTML}}}])}(zu);function af(e){return(af="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)}function lf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sf(r.key),r)}}function sf(e){var t=function(e,t){if("object"!=af(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=af(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==af(t)?t:t+""}var cf=function(){return function(e,t,n){return t&&lf(e.prototype,t),n&&lf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){var r,o,i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,r=this.quill.root,"visible"!==(o=getComputedStyle(r,null).overflowY)&&"clip"!==o&&this.quill.root.addEventListener("scroll",(function(){i.root.style.marginTop="".concat(-1*i.quill.root.scrollTop,"px")})),this.hide()}),[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left="".concat(t,"px"),this.root.style.top="".concat(n,"px"),this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),i=0;if(o.right>r.right&&(i=r.right-o.right,this.root.style.left="".concat(t+i,"px")),o.left<r.left&&(i=r.left-o.left,this.root.style.left="".concat(t+i,"px")),o.bottom>r.bottom){var a=o.bottom-o.top,l=e.bottom-e.top+a;this.root.style.top="".concat(n-l,"px"),this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}])}();function uf(e){return(uf="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)}function ff(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function df(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hf(r.key),r)}}function pf(e,t,n){return t&&df(e.prototype,t),n&&df(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function hf(e){var t=function(e,t){if("object"!=uf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=uf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==uf(t)?t:t+""}function mf(e,t,n){return t=vf(t),function(e,t){if(t&&("object"==uf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],vf(e).constructor):t.apply(e,n))}function bf(){return(bf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=yf(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(null,arguments)}function yf(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=vf(e)););return e}function vf(e){return(vf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gf(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wf(e,t)}function wf(e,t){return(wf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var xf=[!1,"center","right","justify"],Sf=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],Of=[!1,"serif","monospace"],Ef=["1","2","3",!1],kf=["small",!1,"large","huge"],_f=function(e){function t(e,n){var r;ff(this,t),r=mf(this,t,[e,n]);var o=function(t){document.body.contains(e.root)?(null==r.tooltip||r.tooltip.root.contains(t.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(e){e.container.contains(t.target)||e.close()}))):document.body.removeEventListener("click",o)};return e.emitter.listenDOM("click",document.body,o),r}return gf(t,e),pf(t,[{key:"addModule",value:function(e){var n=function(e,t,n,r){var o=bf(vf(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}(t,"addModule",this,3)([e]);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){Array.from(e).forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var r=e.value||"";null!=r&&t[n][r]&&(e.innerHTML=t[n][r])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=Array.from(e).map((function(e){if(e.classList.contains("ql-align")&&(null==e.querySelector("option")&&Af(e,xf),"object"===uf(t.align)))return new of(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&Af(e,Sf,"background"===n?"#ffffff":"#000000"),new Yu(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?Af(e,Of):e.classList.contains("ql-header")?Af(e,Ef):e.classList.contains("ql-size")&&Af(e,kf)),new zu(e)}));this.quill.on(Ht.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(e){e.update()}))}))}}])}(Qn);_f.DEFAULTS=Object(o.a)({},Qn.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),t.classList.add("ql-image"),t.addEventListener("change",(function(){var n=e.quill.getSelection(!0);e.quill.uploader.upload(n,t.files),t.value=""})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var Cf=function(e){function t(e,n){var r;return ff(this,t),(r=mf(this,t,[e,n])).textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return gf(t,e),pf(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){"Enter"===t.key?(e.save(),t.preventDefault()):"Escape"===t.key&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide(),this.restoreFocus()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=this.textbox){null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");var n=this.quill.getBounds(this.quill.selection.savedRange);null!=n&&this.position(n),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-".concat(e))||""),this.root.setAttribute("data-mode",e)}}},{key:"restoreFocus",value:function(){this.quill.focus({preventScroll:!0})}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,Ht.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,Ht.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=function(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);if(t)return"".concat(t[1]||"https","://www.youtube.com/embed/").concat(t[2],"?showinfo=0");if(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))return"".concat(t[1]||"https","://player.vimeo.com/video/").concat(t[2],"/");return e}(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,Ht.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",Ht.sources.USER),this.quill.setSelection(r+2,Ht.sources.USER)}}this.textbox.value="",this.hide()}}])}(cf);function Af(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",String(t)),e.appendChild(r)}))}function Tf(e){return(Tf="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)}function jf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bf(r.key),r)}}function Nf(e,t,n){return t&&qf(e.prototype,t),n&&qf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pf(e,t,n){return t=Lf(t),function(e,t){if(t&&("object"==Tf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Lf(e).constructor):t.apply(e,n))}function Rf(e,t,n,r){var o=If(Lf(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function If(){return(If="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Mf(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(null,arguments)}function Mf(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Lf(e)););return e}function Lf(e){return(Lf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Df(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zf(e,t)}function zf(e,t){return(zf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Bf(e){var t=function(e,t){if("object"!=Tf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Tf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Tf(t)?t:t+""}var Ff=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],Hf=function(e){function t(e,n){var r;return jf(this,t),(r=Pf(this,t,[e,n])).quill.on(Ht.events.EDITOR_CHANGE,(function(e,t,n,o){if(e===Ht.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&o===Ht.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width="".concat(r.root.offsetWidth,"px");var i=r.quill.getLines(t.index,t.length);if(1===i.length){var a=r.quill.getBounds(t);null!=a&&r.position(a)}else{var l=i[i.length-1],s=r.quill.getIndex(l),c=Math.min(l.length()-1,t.index+t.length-s),u=r.quill.getBounds(new Jt(s,c));null!=u&&r.position(u)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return Df(t,e),Nf(t,[{key:"listen",value:function(){var e=this;Rf(t,"listen",this,3)([]),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(Ht.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();if(null!=t){var n=e.quill.getBounds(t);null!=n&&e.position(n)}}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=Rf(t,"position",this,3)([e]),r=this.root.querySelector(".ql-tooltip-arrow");return r.style.marginLeft="",0!==n&&(r.style.marginLeft="".concat(-1*n-r.offsetWidth/2,"px")),n}}])}(Cf);!function(e,t,n){(t=Bf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(Hf,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));var Uf=function(e){function t(e,n){var r;return jf(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=Ff),(r=Pf(this,t,[e,n])).quill.container.classList.add("ql-bubble"),r}return Df(t,e),Nf(t,[{key:"extendToolbar",value:function(e){this.tooltip=new Hf(this.quill,this.options.bounds),null!=e.container&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),Pu),this.buildPickers(e.container.querySelectorAll("select"),Pu))}}])}(_f);Uf.DEFAULTS=Object(o.a)({},_f.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1,gr.sources.USER)}}}}});n(1618);function Wf(e){return(Wf="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)}function Gf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vf(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vf(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Kf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,od(r.key),r)}}function Yf(e,t,n){return t&&$f(e.prototype,t),n&&$f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zf(e,t,n){return t=ed(t),function(e,t){if(t&&("object"==Wf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],ed(e).constructor):t.apply(e,n))}function Xf(e,t,n,r){var o=Qf(ed(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function Qf(){return(Qf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Jf(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(null,arguments)}function Jf(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=ed(e)););return e}function ed(e){return(ed=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function td(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nd(e,t)}function nd(e,t){return(nd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function rd(e,t,n){return(t=od(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function od(e){var t=function(e,t){if("object"!=Wf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Wf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Wf(t)?t:t+""}var id=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],ad=function(e){function t(){var e;Kf(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return rd(e=Zf(this,t,[].concat(r)),"preview",e.root.querySelector("a.ql-preview")),e}return td(t,e),Yf(t,[{key:"listen",value:function(){var e=this;Xf(t,"listen",this,3)([]),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,Ht.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(Ht.events.SELECTION_CHANGE,(function(t,n,r){if(null!=t){if(0===t.length&&r===Ht.sources.USER){var o=Gf(e.quill.scroll.descendant(rs,t.index),2),i=o[0],a=o[1];if(null!=i){e.linkRange=new Jt(t.index-a,i.length());var l=rs.formats(i.domNode);e.preview.textContent=l,e.preview.setAttribute("href",l),e.show();var s=e.quill.getBounds(e.linkRange);return void(null!=s&&e.position(s))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){Xf(t,"show",this,3)([]),this.root.removeAttribute("data-mode")}}])}(Cf);rd(ad,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));var ld=function(e){function t(e,n){var r;return Kf(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=id),(r=Zf(this,t,[e,n])).quill.container.classList.add("ql-snow"),r}return td(t,e),Yf(t,[{key:"extendToolbar",value:function(e){null!=e.container&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),Pu),this.buildPickers(e.container.querySelectorAll("select"),Pu),this.tooltip=new ad(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)})))}}])}(_f);ld.DEFAULTS=Object(o.a)({},_f.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0===t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:".concat(n)),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1,gr.sources.USER)}}}}});var sd=ld;qa.register({"attributors/attribute/direction":No,"attributors/class/align":eo,"attributors/class/background":mo,"attributors/class/color":po,"attributors/class/direction":Po,"attributors/class/font":Go,"attributors/class/size":Ko,"attributors/style/align":to,"attributors/style/background":bo,"attributors/style/color":ho,"attributors/style/direction":Ro,"attributors/style/font":Vo,"attributors/style/size":$o},!0),qa.register({"formats/align":eo,"formats/direction":Po,"formats/indent":Ha,"formats/background":bo,"formats/color":ho,"formats/font":Go,"formats/size":Ko,"formats/blockquote":Qa,"formats/code-block":To,"formats/header":sl,"formats/list":Sl,"formats/bold":Il,"formats/code":jo,"formats/italic":Gl,"formats/link":rs,"formats/script":bs,"formats/strike":_s,"formats/underline":Ms,"formats/formula":$s,"formats/image":sc,"formats/video":Sc,"modules/syntax":Uc,"modules/table":gu,"modules/toolbar":ju,"themes/bubble":Uf,"themes/snow":sd,"ui/icons":Pu,"ui/picker":zu,"ui/icon-picker":of,"ui/color-picker":Yu,"ui/tooltip":cf},!0);t.a=qa},1594:function(e,t,n){n(1679)},1596:function(e,t,n){"use strict";n(27),n(8),n(231),n(266),n(381),n(29);t.a=function(e,t){var n={},r=e.getContents().ops,o=0;r.forEach((function(e){var t,r=e.attributes,i=null===(t=e.insert)||void 0===t?void 0:t.mention,a=e.insert;if(i){var l=e.insert.mention;a=l.denotationChar+l.value}var s={};(null==r?void 0:r.bold)&&(s["font-weight"]="bold"),(null==r?void 0:r.italic)&&(s["font-style"]="italic"),(null==r?void 0:r.color)&&(s.color=r.color),(null==r?void 0:r.underline)&&(s["text-decoration"]="word"),(null==r?void 0:r.strike)&&(s["text-decoration"]?s["text-decoration"]="".concat(s["text-decoration"]," line-through"):s["text-decoration"]="line-through"),(null==r?void 0:r.size)&&(s["font-size"]=r.size),(null==r?void 0:r.font)&&(s["font-family"]=r.font),n[o]=s,o+=a.length})),t.setRichTextStyle(n)}},1599:function(e,t,n){"use strict";n(9),n(10),n(14),n(30),n(34),n(27),n(21),n(20),n(12),n(22),n(31),n(18),n(16),n(28),n(48),n(24),n(47),n(49),n(37),n(8),n(17),n(19),n(11),n(115),n(153),n(29),n(13),n(94);var r=n(0),o=n.n(r),i=n(2),a=n.n(i),l=n(6),s=n(127),c=n.n(s),u=n(1571),f=n(4),d=(n(38),n(26),n(40),n(42),n(43),n(56),n(1619)),p=n(1711),h=n(372),m=n(41),b=n(305),y=n(5),v=n(23);n(85),n(44);var g=function(e){if(!e)return e;var t=e.split("\n");return t.length>1?t.map((function(e){return"<p>".concat(e||"<br>","</p>")})).join(""):e};n(76),n(84);function w(e){return(w="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)}function x(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 S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(e,t,n){return(t=_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_(r.key),r)}}function k(e,t,n){return t&&E(e.prototype,t),n&&E(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _(e){var t=function(e,t){if("object"!=w(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=w(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==w(t)?t:t+""}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t,n){return t=T(t),function(e,t){if(t&&("object"==w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],T(e).constructor):t.apply(e,n))}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function j(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&q(e,t)}function q(e,t){return(q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var N=d.a.import("modules/clipboard"),P=window.Core.quillShadowDOMWorkaround,R=function(e){function t(e,n){return C(this,t),P(e),A(this,t,[e,n])}return j(t,e),k(t)}(N),I=d.a.import("modules/keyboard"),M=function(e){function t(){return C(this,t),A(this,t,arguments)}return j(t,e),k(t)}(I);O(M,"DEFAULTS",S(S({},I.DEFAULTS),{},{bindings:S(S({},I.DEFAULTS.bindings),{},{"list autofill":void 0})}));var L=function(){return k((function e(t){var n,r=this;C(this,e),O(this,"handleKeyDown",(function(e){"Escape"===e.key?r.blurQuill():"Tab"===e.key&&r.shouldSkipInput&&(e.preventDefault(),r.moveFocus(e.shiftKey))})),this.quill=t,this.noteContainer=t.root.closest(".Note"),this.shouldSkipInput=!1,null===(n=this.noteContainer)||void 0===n||n.addEventListener("keydown",this.handleKeyDown.bind(this))}),[{key:"blurQuill",value:function(){this.shouldSkipInput=!0,this.quill.blur(),this.quill.container.tabIndex=0,this.quill.container.focus()}},{key:"moveFocus",value:function(e){var t,n=Array.from(this.noteContainer.querySelectorAll(".ql-container.ql-snow, button.modular-ui")),r=n.indexOf(this.quill.container);-1!==r&&(null===(t=n[e?r-1:r+1])||void 0===t||t.focus());this.shouldSkipInput=!1,this.quill.container.tabIndex=-1}}])}();n(1682),n(1684);function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function z(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 B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=D(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=D(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==D(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return U(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function W(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return G(c,"_invoke",function(n,r,o){var i,l,s,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,s=e,d.n=n,a}};function p(n,r){for(l=n,s=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,l=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),l=u,s=h;(t=l<2?e:s)||!f;){i||(l?l<3?(l>1&&(d.n=-1),p(l,s)):d.n=s:d.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(f=d.n<0)?s:n.call(r,d))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(G(t={},r,(function(){return this})),t),f=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,G(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,G(f,"constructor",c),G(c,"constructor",s),s.displayName="GeneratorFunction",G(c,o,"GeneratorFunction"),G(f),G(f,o,"Generator"),G(f,r,(function(){return this})),G(f,"toString",(function(){return"[object Generator]"})),(W=function(){return{w:i,m:d}})()}function G(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(G=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var i=function(t,n){G(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,r)}function V(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}var K=[],$=["background","bold","color","font","code","italic","link","size","strike","script","underline","blockquote","header","indent","list","align","direction","code-block","formula","mention"];d.a.register("modules/keyboard",M,!0),d.a.register("modules/clipboard",R,!0),d.a.register("modules/blurInput",L),d.a.register({"modules/mention":p.a,"blots/mention":p.b});var Y={mention:{allowedChars:/^[A-Za-z\sÅÄÖåäö0-9\-_]*$/,mentionDenotationChars:["@","#"],mentionContainerClass:"mention__element",mentionListClass:"mention__suggestions__list",listItemClass:"mention__suggestions__item",renderItem:function(e){var t=document.createElement("div");if(t.innerText=e.value,e.email){var n=document.createElement("p");n.innerText=e.email,n.className="email",t.appendChild(n)}return t},source:function(e,t){return(n=W().m((function n(){var r,o;return W().w((function(n){for(;;)switch(n.n){case 0:return r=h.a.getMentionLookupCallback(),n.n=1,r(K,e);case 1:o=n.v,t(o,e);case 2:return n.a(2)}}),n)})),function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){V(i,r,o,a,l,"next",e)}function l(e){V(i,r,o,a,l,"throw",e)}a(void 0)}))})();var n}}},Z=o.a.forwardRef((function(e,t){var n=e.value,r=void 0===n?"":n,i=e.onChange,a=e.onKeyDown,s=e.onBlur,c=e.onFocus,u=e.userData,p=e.isReply,h=H(Object(b.a)(),1)[0],w=Object(l.e)((function(e){return f.a.isElementDisabled(e,y.a.NotesPanel.ADD_REPLY_ATTACHMENT_BUTTON)}));K=u;r=g(r);var x={blurInput:{}};return o.a.createElement("div",{className:"comment-textarea",onBlur:s,onFocus:c,onClick:function(e){e.preventDefault(),e.stopPropagation()},onScroll:function(e){e.preventDefault(),e.stopPropagation()}},o.a.createElement(d.b,{className:"comment-textarea ql-container ql-editor",style:{overflowY:"visible"},ref:function(e){return e&&(e.getEditor().root.ariaLabel="".concat(h(p?"action.reply":"action.comment"))),t(e)},modules:u&&u.length>0?B(B({},x),Y):x,theme:"snow",value:r,placeholder:"".concat(h(p?"action.reply":"action.comment"),"..."),onChange:i,onKeyDown:a,formats:$}),p&&!w&&o.a.createElement(m.a,{className:"add-attachment",dataElement:y.a.NotesPanel.ADD_REPLY_ATTACHMENT_BUTTON,img:"ic_fileattachment_24px",title:"".concat(h("action.add")," ").concat(h("option.type.fileattachment")),onClick:function(){var e;null===(e=Object(v.a)().querySelector("#reply-attachment-picker"))||void 0===e||e.click()}}))}));Z.displayName="CommentTextarea";var X=Z;function Q(e){return(Q="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)}function J(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 ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach((function(t){te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function te(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Q(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Q(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return re(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?re(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var oe={value:a.a.string,placeholder:a.a.string,onChange:a.a.func.isRequired,onBlur:a.a.func,onFocus:a.a.func,onSubmit:a.a.func},ie=o.a.forwardRef((function(e,t){var n=ne(Object(l.e)((function(e){return[f.a.getUserData(e),f.a.isNoteSubmissionWithEnterEnabled(e),f.a.getAutoFocusNoteOnAnnotationSelection(e),f.a.getIsNoteEditing(e)]}),l.c),2),i=n[0],a=n[1],s=Object(r.useContext)(u.a).resize,d=Object(r.useRef)(),p=Object(r.useRef)();Object(r.useLayoutEffect)((function(){var e,t,n=null===(e=d.current)||void 0===e||null===(t=e.editor)||void 0===t?void 0:t.container.firstElementChild,r=(null==n?void 0:n.getBoundingClientRect())||{};p.current&&p.current!==r.height&&s(),p.current=r.height}),[e.value,s]);var m=ee(ee({},e),{},{ref:function(e){d.current=e,t(e)},onChange:c()((function(t,n,r,o){if(t=t.replace(/&nbsp;/g," "),d.current){var i="";if(o&&""===o.getText().trim()&&"<p><br></p>"===t||(i=t.target?t.target.value:t),e.onChange(i),h.a.doesDeltaContainMention(n.ops)){var a,l=h.a.getFormattedTextFromDeltas(n.ops),s=h.a.extractMentionDataFromStr(l),c=o.getText().length+s.plainTextValue.length,u=null===(a=d.current)||void 0===a?void 0:a.editor;setTimeout((function(){return null==u?void 0:u.setSelection(c,c)}),1)}}}),100),onKeyDown:function(t){if(13===t.which){var n=a,r=t.metaKey||t.ctrlKey;(n||r)&&e.onSubmit(t)}},userData:i});return o.a.createElement(o.a.Fragment,null,o.a.createElement(X,m))}));ie.displayName="NoteTextarea",ie.propTypes=oe;var ae=ie;t.a=ae},1608:function(e,t,n){n(55)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},1610:function(e,t,n){"use strict";n(85),n(153);t.a=function(e,t){return[e,t.isOpen?"open":"closed"].join(" ").trim()}},1618:function(e,t,n){"use strict";var r=n(55),o=n(406);r({target:"String",proto:!0,forced:n(407)("link")},{link:function(e){return o(this,"a","href",e)}})},1619:function(e,t,n){"use strict";n(9),n(10),n(14),n(30),n(38),n(34),n(27),n(21),n(20),n(12),n(22),n(99),n(31),n(18),n(26),n(16),n(28),n(40),n(48),n(24),n(47),n(49),n(42),n(37),n(43),n(8),n(56),n(84),n(17),n(19),n(11),n(29),n(13);var r=n(0),o=n.n(r),i=n(1844),a=n(1582);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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function h(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}function m(e,t,n){return t=b(t),function(e,t){if(t&&("object"==u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],b(e).constructor):t.apply(e,n))}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return a.a}));var v=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=m(this,t,[e])).editingAreaRef=Object(r.createRef)(),n.dirtyProps=["modules","formats","bounds","theme","children"],n.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],n.state={generation:0},n.selection=null,n.onEditorChange=function(e,t,r,o){var i,a;if("text-change"===e)null===(i=(a=n).onEditorChangeText)||void 0===i||i.call(a,n.editor.root.innerHTML,t,o,n.unprivilegedEditor);else if("selection-change"===e){var l,s;null===(l=(s=n).onEditorChangeSelection)||void 0===l||l.call(s,t,o,n.unprivilegedEditor)}};var o=n.isControlled()?e.value:e.defaultValue;return n.value=null!=o?o:"",n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(t,e),function(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateProps",value:function(e){if(o.a.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(o.a.Children.count(e.children)){var t=o.a.Children.only(e.children);if("textarea"===(null==t?void 0:t.type))throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")}},{key:"shouldComponentUpdate",value:function(e,t){var n=this;if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){var r,o=this.getEditorContents(),a=null!==(r=e.value)&&void 0!==r?r:"";this.isEqualValue(a,o)||this.setEditorContents(this.editor,a)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),[].concat(f(this.cleanProps),f(this.dirtyProps)).some((function(t){return!Object(i.a)(e[t],n.props[t])}))}},{key:"shouldComponentRegenerate",value:function(e){var t=this;return this.dirtyProps.some((function(n){return!Object(i.a)(e[n],t.props[n])}))}},{key:"componentDidMount",value:function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())}},{key:"componentWillUnmount",value:function(){this.destroyEditor()}},{key:"componentDidUpdate",value:function(e,t){var n=this;if(this.editor&&this.shouldComponentRegenerate(e)){var r=this.editor.getContents(),o=this.editor.getSelection();this.regenerationSnapshot={delta:r,selection:o},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){var i=this.regenerationSnapshot,a=i.delta,l=i.selection;delete this.regenerationSnapshot,this.instantiateEditor();var s=this.editor;s.setContents(a),g((function(){return n.setEditorSelection(s,l)}))}}},{key:"instantiateEditor",value:function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())}},{key:"destroyEditor",value:function(){var e;if(this.editor){this.unhookEditor(this.editor);var t=null===(e=this.props.modules)||void 0===e?void 0:e.toolbar;if(!("object"===u(t)&&t&&"container"in t&&"string"==typeof t.container||"string"==typeof t)){var n=document.querySelector(".ql-toolbar");n&&n.remove()}delete this.editor}}},{key:"isControlled",value:function(){return"value"in this.props}},{key:"getEditorConfig",value:function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,tabIndex:this.props.tabIndex,theme:this.props.theme}}},{key:"getEditor",value:function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor}},{key:"createEditor",value:function(e,t){var n=new a.a(e,t);return null!=t.tabIndex&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n}},{key:"hookEditor",value:function(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)}},{key:"unhookEditor",value:function(e){e.off("editor-change",this.onEditorChange)}},{key:"getEditorContents",value:function(){return this.value}},{key:"getEditorSelection",value:function(){return this.selection}},{key:"isDelta",value:function(e){return e&&e.ops}},{key:"isEqualValue",value:function(e,t){return this.isDelta(e)&&this.isDelta(t)?Object(i.a)(e.ops,t.ops):Object(i.a)(e,t)}},{key:"setEditorContents",value:function(e,t){var n=this;this.value=t;var r=this.getEditorSelection();"string"==typeof t?e.setContents(e.clipboard.convert({html:t})):e.setContents(t),g((function(){return n.setEditorSelection(e,r)}))}},{key:"setEditorSelection",value:function(e,t){if(this.selection=t,t){var n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}}},{key:"setEditorTabIndex",value:function(e,t){var n;null!=e&&null!==(n=e.scroll)&&void 0!==n&&n.domNode&&(e.scroll.domNode.tabIndex=t)}},{key:"setEditorReadOnly",value:function(e,t){t?e.disable():e.enable()}},{key:"makeUnprivilegedEditor",value:function(e){var t=e;return{getHTML:function(){return t.root.innerHTML},getSemanticHTML:t.getSemanticHTML.bind(t),getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}}},{key:"getEditingArea",value:function(){var e=this.editingAreaRef.current;if(!e)throw new Error("Cannot find element for editing area");if(3===e.nodeType)throw new Error("Editing area cannot be a text node");return e}},{key:"renderEditingArea",value:function(){var e=this.props,t=e.children,n=e.preserveWhitespace,r={key:this.state.generation,ref:this.editingAreaRef};return o.a.Children.count(t)?o.a.cloneElement(o.a.Children.only(t),r):n?o.a.createElement("pre",s({},r)):o.a.createElement("div",s({},r))}},{key:"render",value:function(){var e;return o.a.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill ".concat(null!==(e=this.props.className)&&void 0!==e?e:""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())}},{key:"onEditorChangeText",value:function(e,t,n,r){if(this.editor){var o,i,a=this.isDelta(this.value)?r.getContents():r.getHTML();if(a!==this.getEditorContents())this.lastDeltaChangeSet=t,this.value=a,null===(o=(i=this.props).onChange)||void 0===o||o.call(i,e,t,n,r)}}},{key:"onEditorChangeSelection",value:function(e,t,n){var r,o;if(this.editor){var a,l,s=this.getEditorSelection(),c=!s&&e,u=s&&!e;if(!Object(i.a)(e,s))if(this.selection=e,null===(r=(o=this.props).onChangeSelection)||void 0===r||r.call(o,e,t,n),c)null===(a=(l=this.props).onFocus)||void 0===a||a.call(l,e,t,n);else if(u){var f,d;null===(f=(d=this.props).onBlur)||void 0===f||f.call(d,s,t,n)}}}},{key:"focus",value:function(){this.editor&&this.editor.focus()}},{key:"blur",value:function(){this.editor&&(this.selection=null,this.editor.blur())}}])}(o.a.Component);function g(e){Promise.resolve().then(e)}v.displayName="React Quill",v.Quill=a.a,v.defaultProps={theme:"snow",modules:{},readOnly:!1},t.b=v},1620:function(e,t,n){(function(e,n){var r="[object Arguments]",o="[object Function]",i="[object GeneratorFunction]",a="[object Map]",l="[object Set]",s=/\w*$/,c=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,f={};f[r]=f["[object Array]"]=f["[object ArrayBuffer]"]=f["[object DataView]"]=f["[object Boolean]"]=f["[object Date]"]=f["[object Float32Array]"]=f["[object Float64Array]"]=f["[object Int8Array]"]=f["[object Int16Array]"]=f["[object Int32Array]"]=f[a]=f["[object Number]"]=f["[object Object]"]=f["[object RegExp]"]=f[l]=f["[object String]"]=f["[object Symbol]"]=f["[object Uint8Array]"]=f["[object Uint8ClampedArray]"]=f["[object Uint16Array]"]=f["[object Uint32Array]"]=!0,f["[object Error]"]=f[o]=f["[object WeakMap]"]=!1;var d="object"==typeof e&&e&&e.Object===Object&&e,p="object"==typeof self&&self&&self.Object===Object&&self,h=d||p||Function("return this")(),m=t&&!t.nodeType&&t,b=m&&"object"==typeof n&&n&&!n.nodeType&&n,y=b&&b.exports===m;function v(e,t){return e.set(t[0],t[1]),e}function g(e,t){return e.add(t),e}function w(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function x(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function S(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function O(e,t){return function(n){return e(t(n))}}function E(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var k,_=Array.prototype,C=Function.prototype,A=Object.prototype,T=h["__core-js_shared__"],j=(k=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||""))?"Symbol(src)_1."+k:"",q=C.toString,N=A.hasOwnProperty,P=A.toString,R=RegExp("^"+q.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=y?h.Buffer:void 0,M=h.Symbol,L=h.Uint8Array,D=O(Object.getPrototypeOf,Object),z=Object.create,B=A.propertyIsEnumerable,F=_.splice,H=Object.getOwnPropertySymbols,U=I?I.isBuffer:void 0,W=O(Object.keys,Object),G=be(h,"DataView"),V=be(h,"Map"),K=be(h,"Promise"),$=be(h,"Set"),Y=be(h,"WeakMap"),Z=be(Object,"create"),X=xe(G),Q=xe(V),J=xe(K),ee=xe($),te=xe(Y),ne=M?M.prototype:void 0,re=ne?ne.valueOf:void 0;function oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ie(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function le(e){this.__data__=new ie(e)}function se(e,t){var n=Oe(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ee(e)}(e)&&N.call(e,"callee")&&(!B.call(e,"callee")||P.call(e)==r)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],o=n.length,i=!!o;for(var a in e)!t&&!N.call(e,a)||i&&("length"==a||ge(a,o))||n.push(a);return n}function ce(e,t,n){var r=e[t];N.call(e,t)&&Se(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function ue(e,t){for(var n=e.length;n--;)if(Se(e[n][0],t))return n;return-1}function fe(e,t,n,c,u,d,p){var h;if(c&&(h=d?c(e,u,d,p):c(e)),void 0!==h)return h;if(!Ce(e))return e;var m=Oe(e);if(m){if(h=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&N.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(e,h)}else{var b=ve(e),y=b==o||b==i;if(ke(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if("[object Object]"==b||b==r||y&&!d){if(x(e))return d?e:{};if(h=function(e){return"function"!=typeof e.constructor||we(e)?{}:(t=D(e),Ce(t)?z(t):{});var t}(y?{}:e),!t)return function(e,t){return he(e,ye(e),t)}(e,function(e,t){return e&&he(t,Ae(t),e)}(h,e))}else{if(!f[b])return d?e:{};h=function(e,t,n,r){var o=e.constructor;switch(t){case"[object ArrayBuffer]":return pe(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return function(e,t){var n=t?pe(e.buffer):e.buffer;return new e.constructor(n,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 n=t?pe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case a:return function(e,t,n){return w(t?n(S(e),!0):S(e),v,new e.constructor)}(e,r,n);case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,s.exec(e));return t.lastIndex=e.lastIndex,t}(e);case l:return function(e,t,n){return w(t?n(E(e),!0):E(e),g,new e.constructor)}(e,r,n);case"[object Symbol]":return i=e,re?Object(re.call(i)):{}}var i}(e,b,fe,t)}}p||(p=new le);var O=p.get(e);if(O)return O;if(p.set(e,h),!m)var k=n?function(e){return function(e,t,n){var r=t(e);return Oe(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Ae,ye)}(e):Ae(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(k||e,(function(r,o){k&&(r=e[o=r]),ce(h,o,fe(r,t,n,c,o,e,p))})),h}function de(e){return!(!Ce(e)||(t=e,j&&j in t))&&(_e(e)||x(e)?R:c).test(xe(e));var t}function pe(e){var t=new e.constructor(e.byteLength);return new L(t).set(new L(e)),t}function he(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o],l=r?r(n[a],e[a],a,n,e):void 0;ce(n,a,void 0===l?e[a]:l)}return n}function me(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 be(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return de(n)?n:void 0}oe.prototype.clear=function(){this.__data__=Z?Z(null):{}},oe.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},oe.prototype.get=function(e){var t=this.__data__;if(Z){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return N.call(t,e)?t[e]:void 0},oe.prototype.has=function(e){var t=this.__data__;return Z?void 0!==t[e]:N.call(t,e)},oe.prototype.set=function(e,t){return this.__data__[e]=Z&&void 0===t?"__lodash_hash_undefined__":t,this},ie.prototype.clear=function(){this.__data__=[]},ie.prototype.delete=function(e){var t=this.__data__,n=ue(t,e);return!(n<0)&&(n==t.length-1?t.pop():F.call(t,n,1),!0)},ie.prototype.get=function(e){var t=this.__data__,n=ue(t,e);return n<0?void 0:t[n][1]},ie.prototype.has=function(e){return ue(this.__data__,e)>-1},ie.prototype.set=function(e,t){var n=this.__data__,r=ue(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},ae.prototype.clear=function(){this.__data__={hash:new oe,map:new(V||ie),string:new oe}},ae.prototype.delete=function(e){return me(this,e).delete(e)},ae.prototype.get=function(e){return me(this,e).get(e)},ae.prototype.has=function(e){return me(this,e).has(e)},ae.prototype.set=function(e,t){return me(this,e).set(e,t),this},le.prototype.clear=function(){this.__data__=new ie},le.prototype.delete=function(e){return this.__data__.delete(e)},le.prototype.get=function(e){return this.__data__.get(e)},le.prototype.has=function(e){return this.__data__.has(e)},le.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ie){var r=n.__data__;if(!V||r.length<199)return r.push([e,t]),this;n=this.__data__=new ae(r)}return n.set(e,t),this};var ye=H?O(H,Object):function(){return[]},ve=function(e){return P.call(e)};function ge(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||u.test(e))&&e>-1&&e%1==0&&e<t}function we(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||A)}function xe(e){if(null!=e){try{return q.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Se(e,t){return e===t||e!=e&&t!=t}(G&&"[object DataView]"!=ve(new G(new ArrayBuffer(1)))||V&&ve(new V)!=a||K&&"[object Promise]"!=ve(K.resolve())||$&&ve(new $)!=l||Y&&"[object WeakMap]"!=ve(new Y))&&(ve=function(e){var t=P.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?xe(n):void 0;if(r)switch(r){case X:return"[object DataView]";case Q:return a;case J:return"[object Promise]";case ee:return l;case te:return"[object WeakMap]"}return t});var Oe=Array.isArray;function Ee(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!_e(e)}var ke=U||function(){return!1};function _e(e){var t=Ce(e)?P.call(e):"";return t==o||t==i}function Ce(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ae(e){return Ee(e)?se(e):function(e){if(!we(e))return W(e);var t=[];for(var n in Object(e))N.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}n.exports=function(e){return fe(e,!0,!0)}}).call(this,n(120),n(619)(e))},1621:function(e,t,n){(function(e,n){var r="[object Arguments]",o="[object Map]",i="[object Object]",a="[object Set]",l=/^\[object .+?Constructor\]$/,s=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[r]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c[o]=c["[object Number]"]=c[i]=c["[object RegExp]"]=c[a]=c["[object String]"]=c["[object WeakMap]"]=!1;var u="object"==typeof e&&e&&e.Object===Object&&e,f="object"==typeof self&&self&&self.Object===Object&&self,d=u||f||Function("return this")(),p=t&&!t.nodeType&&t,h=p&&"object"==typeof n&&n&&!n.nodeType&&n,m=h&&h.exports===p,b=m&&u.process,y=function(){try{return b&&b.binding&&b.binding("util")}catch(e){}}(),v=y&&y.isTypedArray;function g(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function w(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function x(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var S,O,E,k=Array.prototype,_=Function.prototype,C=Object.prototype,A=d["__core-js_shared__"],T=_.toString,j=C.hasOwnProperty,q=(S=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+S:"",N=C.toString,P=RegExp("^"+T.call(j).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),R=m?d.Buffer:void 0,I=d.Symbol,M=d.Uint8Array,L=C.propertyIsEnumerable,D=k.splice,z=I?I.toStringTag:void 0,B=Object.getOwnPropertySymbols,F=R?R.isBuffer:void 0,H=(O=Object.keys,E=Object,function(e){return O(E(e))}),U=ye(d,"DataView"),W=ye(d,"Map"),G=ye(d,"Promise"),V=ye(d,"Set"),K=ye(d,"WeakMap"),$=ye(Object,"create"),Y=xe(U),Z=xe(W),X=xe(G),Q=xe(V),J=xe(K),ee=I?I.prototype:void 0,te=ee?ee.valueOf:void 0;function ne(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])}}function re(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])}}function oe(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])}}function ie(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new oe;++t<n;)this.add(e[t])}function ae(e){var t=this.__data__=new re(e);this.size=t.size}function le(e,t){var n=Ee(e),r=!n&&Oe(e),o=!n&&!r&&ke(e),i=!n&&!r&&!o&&je(e),a=n||r||o||i,l=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=l.length;for(var c in e)!t&&!j.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||we(c,s))||l.push(c);return l}function se(e,t){for(var n=e.length;n--;)if(Se(e[n][0],t))return n;return-1}function ce(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":z&&z in Object(e)?function(e){var t=j.call(e,z),n=e[z];try{e[z]=void 0;var r=!0}catch(e){}var o=N.call(e);r&&(t?e[z]=n:delete e[z]);return o}(e):function(e){return N.call(e)}(e)}function ue(e){return Te(e)&&ce(e)==r}function fe(e,t,n,l,s){return e===t||(null==e||null==t||!Te(e)&&!Te(t)?e!=e&&t!=t:function(e,t,n,l,s,c){var u=Ee(e),f=Ee(t),d=u?"[object Array]":ge(e),p=f?"[object Array]":ge(t),h=(d=d==r?i:d)==i,m=(p=p==r?i:p)==i,b=d==p;if(b&&ke(e)){if(!ke(t))return!1;u=!0,h=!1}if(b&&!h)return c||(c=new ae),u||je(e)?he(e,t,n,l,s,c):function(e,t,n,r,i,l,s){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||!l(new M(e),new M(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Se(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case o:var c=w;case a:var u=1&r;if(c||(c=x),e.size!=t.size&&!u)return!1;var f=s.get(e);if(f)return f==t;r|=2,s.set(e,t);var d=he(c(e),c(t),r,i,l,s);return s.delete(e),d;case"[object Symbol]":if(te)return te.call(e)==te.call(t)}return!1}(e,t,d,n,l,s,c);if(!(1&n)){var y=h&&j.call(e,"__wrapped__"),v=m&&j.call(t,"__wrapped__");if(y||v){var g=y?e.value():e,S=v?t.value():t;return c||(c=new ae),s(g,S,n,l,c)}}if(!b)return!1;return c||(c=new ae),function(e,t,n,r,o,i){var a=1&n,l=me(e),s=l.length,c=me(t).length;if(s!=c&&!a)return!1;var u=s;for(;u--;){var f=l[u];if(!(a?f in t:j.call(t,f)))return!1}var d=i.get(e);if(d&&i.get(t))return d==t;var p=!0;i.set(e,t),i.set(t,e);var h=a;for(;++u<s;){f=l[u];var m=e[f],b=t[f];if(r)var y=a?r(b,m,f,t,e,i):r(m,b,f,e,t,i);if(!(void 0===y?m===b||o(m,b,n,r,i):y)){p=!1;break}h||(h="constructor"==f)}if(p&&!h){var v=e.constructor,g=t.constructor;v==g||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof g&&g instanceof g||(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,l,s,c)}(e,t,n,l,fe,s))}function de(e){return!(!Ae(e)||function(e){return!!q&&q in e}(e))&&(_e(e)?P:l).test(xe(e))}function pe(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||C,t!==r)return H(e);var t,n,r,o=[];for(var i in Object(e))j.call(e,i)&&"constructor"!=i&&o.push(i);return o}function he(e,t,n,r,o,i){var a=1&n,l=e.length,s=t.length;if(l!=s&&!(a&&s>l))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var u=-1,f=!0,d=2&n?new ie:void 0;for(i.set(e,t),i.set(t,e);++u<l;){var p=e[u],h=t[u];if(r)var m=a?r(h,p,u,t,e,i):r(p,h,u,e,t,i);if(void 0!==m){if(m)continue;f=!1;break}if(d){if(!g(t,(function(e,t){if(a=t,!d.has(a)&&(p===e||o(p,e,n,r,i)))return d.push(t);var a}))){f=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function me(e){return function(e,t,n){var r=t(e);return Ee(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,qe,ve)}function be(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 ye(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return de(n)?n:void 0}ne.prototype.clear=function(){this.__data__=$?$(null):{},this.size=0},ne.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ne.prototype.get=function(e){var t=this.__data__;if($){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return j.call(t,e)?t[e]:void 0},ne.prototype.has=function(e){var t=this.__data__;return $?void 0!==t[e]:j.call(t,e)},ne.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=$&&void 0===t?"__lodash_hash_undefined__":t,this},re.prototype.clear=function(){this.__data__=[],this.size=0},re.prototype.delete=function(e){var t=this.__data__,n=se(t,e);return!(n<0)&&(n==t.length-1?t.pop():D.call(t,n,1),--this.size,!0)},re.prototype.get=function(e){var t=this.__data__,n=se(t,e);return n<0?void 0:t[n][1]},re.prototype.has=function(e){return se(this.__data__,e)>-1},re.prototype.set=function(e,t){var n=this.__data__,r=se(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},oe.prototype.clear=function(){this.size=0,this.__data__={hash:new ne,map:new(W||re),string:new ne}},oe.prototype.delete=function(e){var t=be(this,e).delete(e);return this.size-=t?1:0,t},oe.prototype.get=function(e){return be(this,e).get(e)},oe.prototype.has=function(e){return be(this,e).has(e)},oe.prototype.set=function(e,t){var n=be(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ie.prototype.add=ie.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ie.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.clear=function(){this.__data__=new re,this.size=0},ae.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ae.prototype.get=function(e){return this.__data__.get(e)},ae.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.set=function(e,t){var n=this.__data__;if(n instanceof re){var r=n.__data__;if(!W||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new oe(r)}return n.set(e,t),this.size=n.size,this};var ve=B?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}(B(e),(function(t){return L.call(e,t)})))}:function(){return[]},ge=ce;function we(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||s.test(e))&&e>-1&&e%1==0&&e<t}function xe(e){if(null!=e){try{return T.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Se(e,t){return e===t||e!=e&&t!=t}(U&&"[object DataView]"!=ge(new U(new ArrayBuffer(1)))||W&&ge(new W)!=o||G&&"[object Promise]"!=ge(G.resolve())||V&&ge(new V)!=a||K&&"[object WeakMap]"!=ge(new K))&&(ge=function(e){var t=ce(e),n=t==i?e.constructor:void 0,r=n?xe(n):"";if(r)switch(r){case Y:return"[object DataView]";case Z:return o;case X:return"[object Promise]";case Q:return a;case J:return"[object WeakMap]"}return t});var Oe=ue(function(){return arguments}())?ue:function(e){return Te(e)&&j.call(e,"callee")&&!L.call(e,"callee")},Ee=Array.isArray;var ke=F||function(){return!1};function _e(e){if(!Ae(e))return!1;var t=ce(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ce(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ae(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Te(e){return null!=e&&"object"==typeof e}var je=v?function(e){return function(t){return e(t)}}(v):function(e){return Te(e)&&Ce(e.length)&&!!c[ce(e)]};function qe(e){return null!=(t=e)&&Ce(t.length)&&!_e(t)?le(e):pe(e);var t}n.exports=function(e,t){return fe(e,t)}}).call(this,n(120),n(619)(e))},1622:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.length=function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"object"==typeof e.retain&&null!==e.retain?1:"string"==typeof e.insert?e.insert.length:1}}(r||(r={})),t.default=r},1623:function(e,t,n){"use strict";var r=Object.prototype.toString;t.a=function(e){return r.call(e)}},1625:function(e,t,n){"use strict";var r=n(1604),o=Object(r.a)(Object.keys,Object);t.a=o},1627:function(e,t,n){"use strict";(function(e){function r(t,n){var r,o,i,a=void 0!==(r=void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:e).document&&r.document.attachEvent;if(!a){var l=(i=r.requestAnimationFrame||r.mozRequestAnimationFrame||r.webkitRequestAnimationFrame||function(e){return r.setTimeout(e,20)},function(e){return i(e)}),s=(o=r.cancelAnimationFrame||r.mozCancelAnimationFrame||r.webkitCancelAnimationFrame||r.clearTimeout,function(e){return o(e)}),c=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},u=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;c(this),this.__resizeRAF__&&s(this.__resizeRAF__),this.__resizeRAF__=l((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}},f=!1,d="",p="animationstart",h="Webkit Moz O ms".split(" "),m="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),b=r.document.createElement("fakeelement");if(void 0!==b.style.animationName&&(f=!0),!1===f)for(var y=0;y<h.length;y++)if(void 0!==b.style[h[y]+"AnimationName"]){d="-"+h[y].toLowerCase()+"-",p=m[y],f=!0;break}var v="resizeanim",g="@"+d+"keyframes "+v+" { from { opacity: 0; } to { opacity: 0; } } ",w=d+"animation: 1ms "+v+"; "}return{addResizeListener:function(e,n){if(a)e.attachEvent("onresize",n);else{if(!e.__resizeTriggers__){var o=e.ownerDocument,i=r.getComputedStyle(e);i&&"static"==i.position&&(e.style.position="relative"),function(e){if(!e.getElementById("detectElementResize")){var n=(g||"")+".resize-triggers { "+(w||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=e.head||e.getElementsByTagName("head")[0],o=e.createElement("style");o.id="detectElementResize",o.type="text/css",null!=t&&o.setAttribute("nonce",t),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(e.createTextNode(n)),r.appendChild(o)}}(o),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=o.createElement("div")).className="resize-triggers";var l='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>';if(window.trustedTypes){var s=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return l}});e.__resizeTriggers__.innerHTML=s.createHTML("")}else e.__resizeTriggers__.innerHTML=l;e.appendChild(e.__resizeTriggers__),c(e),e.addEventListener("scroll",u,!0),p&&(e.__resizeTriggers__.__animationListener__=function(t){t.animationName==v&&c(e)},e.__resizeTriggers__.addEventListener(p,e.__resizeTriggers__.__animationListener__))}e.__resizeListeners__.push(n)}},removeResizeListener:function(e,t){if(a)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",u,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(p,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}n.d(t,"a",(function(){return r}))}).call(this,n(120))},1635:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n(38);var r=n(33),o=n(1);function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=new window.Core.Annotations.StickyAnnotation;i.InReplyTo=e.Id,i.X=e.X,i.Y=e.Y,i.PageNumber=e.PageNumber,i.Subject="Sticky Note",i.Author=o.a.getCurrentUser(),i.State=t,i.StateModel="Marked"===t||"Unmarked"===t?"Marked":"Review",i.Hidden=!0,i.enableSkipAutoLink();var a=o.a.getDisplayAuthor(i.Author,n),l=r.a.t("option.state.".concat(t.toLowerCase())),s="".concat(l," ").concat(r.a.t("option.state.setBy")," ").concat(a);return i.setContents(s),i}},1636:function(e,t,n){"use strict";n(9),n(10),n(14),n(21),n(20),n(12),n(22),n(18),n(16),n(8),n(17),n(19),n(11),n(115),n(13);var r=n(0),o=n.n(r),i=n(2),a=n.n(i),l=n(305),s=n(15),c=n.n(s);n(1648);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function d(e){var t=e.children.replace(/\n$/,""),n=e.panelWidth,i=e.linesToBreak,a=e.renderRichText,s=e.richTextStyle,f=e.resize,d=e.style,p=e.comment,h=void 0!==p&&p,m=e.beforeContent,b=void 0===m?function(){}:m,y=u(Object(r.useState)(!1),2),v=y[0],g=y[1],w=u(Object(r.useState)(null),2),x=w[0],S=w[1],O=u(Object(r.useState)(null),2),E=O[0],k=O[1],_=u(Object(r.useState)(!1),2),C=_[0],A=_[1],T=o.a.useRef(null),j=Object(l.a)().t,q=v?t:t.substring(0,E*i),N=j(v?"action.showLess":"action.showMore"),P=c()("note-text-preview",{"preview-comment":h});return Object(r.useEffect)((function(){var e=T.current.clientWidth;S(e)}),[n]),Object(r.useLayoutEffect)((function(){var e=function(e){var t=document.createElement("canvas").getContext("2d");return t.font="13px sans-serif",t.measureText(e).width}(t),n=e/t.length,r=Math.floor(x/n);k(r),A(e/x>i)}),[t,x]),o.a.createElement("div",{className:P,ref:T,style:d,"aria-live":"polite"},b(),a&&s?a(q,s,0):q," ",C&&o.a.createElement("button",{className:"note-text-preview-prompt",onClick:function(e){e.stopPropagation(),g(!v),f&&f()}},N))}d.propTypes={panelWidth:a.a.number,linesToBreak:a.a.number,renderRichText:a.a.func,richTextStyle:a.a.any,resize:a.a.func,style:a.a.any,comment:a.a.bool,beforeContent:a.a.func},t.a=d},1637:function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(2),a=n.n(i),l=(n(1652),{renderContent:a.a.func,children:a.a.node}),s=function(e){var t=e.renderContent?e.renderContent():e.children;return o.a.createElement("h4",{className:"ListSeparator"},t)};s.propTypes=l;var c=o.a.memo(s);t.a=c},1638:function(e,t,n){"use strict";n(9),n(10),n(14),n(30),n(38),n(34),n(27),n(12),n(44),n(31),n(28),n(48),n(24),n(47),n(49),n(37),n(8),n(11),n(29),n(13);var r=n(0),o=n(6),i=n(2),a=n.n(i),l=n(5),s=n(3),c=n(4);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e,t,n){return{icon:t,label:"option.state.".concat(e.toLowerCase()),title:"option.state.".concat(e.toLowerCase()),option:e,dataElement:n}},m=[h("Accepted","icon-annotation-status-accepted","noteStateFlyoutAcceptedOption"),h("Rejected","icon-annotation-status-rejected","noteStateFlyoutRejectedOption"),h("Cancelled","icon-annotation-status-cancelled","noteStateFlyoutCancelledOption"),h("Completed","icon-annotation-status-completed","noteStateFlyoutCompletedOption"),h("None","icon-annotation-status-none","noteStateFlyoutNoneOption"),h("Marked","icon-annotation-status-marked","noteStateFlyoutMarkedOption"),h("Unmarked","icon-annotation-status-unmarked","noteStateFlyoutUnmarkedOption")],b=function(e){var t=e.noteId,n=e.handleStateChange,i=void 0===n?function(){}:n,a=e.isMultiSelectMode,u=void 0!==a&&a,f=Object(o.d)(),p=u?"":"-".concat(t),h="".concat(l.a.NOTE_STATE_FLYOUT).concat(p),b=Object(o.e)((function(e){return c.a.getFlyout(e,h)}));return Object(r.useLayoutEffect)((function(){var e={dataElement:h,className:"NoteStateFlyout",items:m.map((function(e){return d(d({},e),{},{onClick:function(){return t=e.option,void i(t);var t}})}))};f(b?s.a.updateFlyout(e.dataElement,e):s.a.addFlyout(e))}),[i]),null};b.propTypes={noteId:a.a.string,handleStateChange:a.a.func,isMultiSelectMode:a.a.bool};var y=b;t.a=y},1639:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n(50),n(62);var r=function(e,t){var n=e.getDisplayModeObject().getVisiblePages().includes(t.PageNumber);return e.isContinuousDisplayMode()||!e.isContinuousDisplayMode()&&n}},1648:function(e,t,n){var r=n(35),o=n(1649);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1649:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,".note-text-preview{font-size:13px;color:var(--gray-7);padding-inline-end:var(--note-content-right-padding-width);-webkit-user-select:text!important;-moz-user-select:text!important;user-select:text!important;cursor:text;height:-moz-fit-content;height:fit-content;width:calc(100% - var(--note-content-right-padding-width));overflow:hidden}.note-text-preview>*{pointer-events:all}.preview-comment{color:var(--text-color)}.note-text-preview-prompt{cursor:pointer;color:var(--primary-button);text-decoration:underline;position:relative;pointer-events:auto;background:transparent;border:none;padding:0}.note-text-preview-prompt:hover{color:var(--primary-button-hover)}.trackedChangePopup .note-text-preview{max-height:400px;overflow-y:auto;width:calc(100% + var(--note-content-right-padding-width))}",""])},1652:function(e,t,n){var r=n(35),o=n(1653);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1653:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.ListSeparator{margin-top:16px;margin-bottom:8px;font-family:Lato;font-weight:500;color:var(--list-separator-color);-webkit-user-select:none;-moz-user-select:none;user-select:none}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1654:function(e,t,n){"use strict";n.d(t,"a",(function(){return ae})),n.d(t,"b",(function(){return le})),n.d(t,"c",(function(){return ke}));var r=n(465),o=n.n(r),i=n(466),a=n.n(i),l=n(1564),s=n.n(l),c=n(1563),u=n.n(c),f=n(1566),d=n.n(f),p=n(1562),h=n.n(p),m=n(227),b=n.n(m),y=n(0),v=n(1576),g=n(1569),w=n.n(g),x=n(616);function S(e){var t=e.cellCount,n=e.cellSize,r=e.computeMetadataCallback,o=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,s=e.scrollToIndex,c=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof a||n===a)||(r(o),s>=0&&s===l&&c())}var O=n(469),E=n.n(O),k=function(){function e(t){var n=t.cellCount,r=t.cellSizeGetter,i=t.estimatedCellSize;o()(this,e),b()(this,"_cellSizeAndPositionData",{}),b()(this,"_lastMeasuredIndex",-1),b()(this,"_lastBatchedIndex",-1),b()(this,"_cellCount",void 0),b()(this,"_cellSizeGetter",void 0),b()(this,"_estimatedCellSize",void 0),this._cellSizeGetter=r,this._cellCount=n,this._estimatedCellSize=i}return a()(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,n=e.estimatedCellSize,r=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=n,this._cellSizeGetter=r}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index ".concat(e," is outside of range 0..").concat(this._cellCount));if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,r=this._lastMeasuredIndex+1;r<=e;r++){var o=this._cellSizeGetter({index:r});if(void 0===o||isNaN(o))throw Error("Invalid size returned for cell ".concat(r," of value ").concat(o));null===o?(this._cellSizeAndPositionData[r]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[r]={offset:n,size:o},n+=o,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,o=e.currentOffset,i=e.targetIndex;if(r<=0)return 0;var a,l=this.getSizeAndPositionOfCell(i),s=l.offset,c=s-r+l.size;switch(n){case"start":a=s;break;case"end":a=c;break;case"center":a=s-(r-l.size)/2;break;default:a=Math.max(c,Math.min(s,o))}var u=this.getTotalSize();return Math.max(0,Math.min(u-r,a))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var r=n+t,o=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(o);n=i.offset+i.size;for(var a=o;n<r&&a<this._cellCount-1;)a++,n+=this.getSizeAndPositionOfCell(a).size;return{start:o,stop:a}}},{key:"resetCell",value:function(e){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,e-1)}},{key:"_binarySearch",value:function(e,t,n){for(;t<=e;){var r=t+Math.floor((e-t)/2),o=this.getSizeAndPositionOfCell(r).offset;if(o===n)return r;o<n?t=r+1:o>n&&(e=r-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var n=1;e<this._cellCount&&this.getSizeAndPositionOfCell(e).offset<t;)e+=n,n*=2;return this._binarySearch(Math.min(e,this._cellCount-1),Math.floor(e/2),t)}},{key:"_findNearestCell",value:function(e){if(isNaN(e))throw Error("Invalid offset ".concat(e," specified"));e=Math.max(0,e);var t=this.getSizeAndPositionOfLastMeasuredCell(),n=Math.max(0,this._lastMeasuredIndex);return t.offset>=e?this._binarySearch(n,0,e):this._exponentialSearch(n,e)}}]),e}(),_=function(){return"undefined"!=typeof window&&window.chrome?16777100:15e5},C=function(){function e(t){var n=t.maxScrollSize,r=void 0===n?_():n,i=E()(t,["maxScrollSize"]);o()(this,e),b()(this,"_cellSizeAndPositionManager",void 0),b()(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new k(i),this._maxScrollSize=r}return a()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(o-r))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,o=e.currentOffset,i=e.targetIndex;o=this._safeOffsetToOffset({containerSize:r,offset:o});var a=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:r,currentOffset:o,targetIndex:i});return this._offsetToSafeOffset({containerSize:r,offset:a})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,r=e.totalSize;return r<=t?0:n/(r-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize();if(r===o)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize();if(r===o)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}}]),e}();function A(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var r=n.callback,o=n.indices,i=Object.keys(o),a=!e||i.every((function(e){var t=o[e];return Array.isArray(t)?t.length>0:t>=0})),l=i.length!==Object.keys(t).length||i.some((function(e){var n=t[e],r=o[e];return Array.isArray(r)?n.join(",")!==r.join(","):n!==r}));t=o,a&&l&&r(o)}}function T(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,r=e.previousCellsCount,o=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,c=e.scrollToAlignment,u=e.scrollToIndex,f=e.size,d=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,h=n.getCellCount(),m=u>=0&&u<h;m&&(f!==l||d||!o||"number"==typeof t&&t!==o||c!==i||u!==a)?p(u):!m&&h>0&&(f<l||h<r)&&s>n.getTotalSize()-f&&p(h-1)}var j,q,N,P=n(1609),R=(j="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||j.webkitRequestAnimationFrame||j.mozRequestAnimationFrame||j.oRequestAnimationFrame||j.msRequestAnimationFrame||function(e){return j.setTimeout(e,1e3/60)},I=j.cancelAnimationFrame||j.webkitCancelAnimationFrame||j.mozCancelAnimationFrame||j.oCancelAnimationFrame||j.msCancelAnimationFrame||function(e){j.clearTimeout(e)},M=R,L=I,D=function(e){return L(e.id)},z=function(e,t){var n;Promise.resolve().then((function(){n=Date.now()}));var r={id:M((function o(){Date.now()-n>=t?e.call():r.id=M(o)}))};return r};function B(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 t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(n,!0).forEach((function(t){b()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var H="observed",U="requested",W=(N=q=function(e){function t(e){var n;o()(this,t),n=s()(this,u()(t).call(this,e)),b()(d()(n),"_onGridRenderedMemoizer",A()),b()(d()(n),"_onScrollMemoizer",A(!1)),b()(d()(n),"_deferredInvalidateColumnIndex",null),b()(d()(n),"_deferredInvalidateRowIndex",null),b()(d()(n),"_recomputeScrollLeftFlag",!1),b()(d()(n),"_recomputeScrollTopFlag",!1),b()(d()(n),"_horizontalScrollBarSize",0),b()(d()(n),"_verticalScrollBarSize",0),b()(d()(n),"_scrollbarPresenceChanged",!1),b()(d()(n),"_scrollingContainer",void 0),b()(d()(n),"_childrenToDisplay",void 0),b()(d()(n),"_columnStartIndex",void 0),b()(d()(n),"_columnStopIndex",void 0),b()(d()(n),"_rowStartIndex",void 0),b()(d()(n),"_rowStopIndex",void 0),b()(d()(n),"_renderedColumnStartIndex",0),b()(d()(n),"_renderedColumnStopIndex",0),b()(d()(n),"_renderedRowStartIndex",0),b()(d()(n),"_renderedRowStopIndex",0),b()(d()(n),"_initialScrollTop",void 0),b()(d()(n),"_initialScrollLeft",void 0),b()(d()(n),"_disablePointerEventsTimeoutId",void 0),b()(d()(n),"_styleCache",{}),b()(d()(n),"_cellCache",{}),b()(d()(n),"_debounceScrollEndedCallback",(function(){n._disablePointerEventsTimeoutId=null,n.setState({isScrolling:!1,needToResetStyleCache:!1})})),b()(d()(n),"_invokeOnGridRenderedHelper",(function(){var e=n.props.onSectionRendered;n._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:n._columnStartIndex,columnOverscanStopIndex:n._columnStopIndex,columnStartIndex:n._renderedColumnStartIndex,columnStopIndex:n._renderedColumnStopIndex,rowOverscanStartIndex:n._rowStartIndex,rowOverscanStopIndex:n._rowStopIndex,rowStartIndex:n._renderedRowStartIndex,rowStopIndex:n._renderedRowStopIndex}})})),b()(d()(n),"_setScrollingContainerRef",(function(e){n._scrollingContainer=e})),b()(d()(n),"_onScroll",(function(e){e.target===n._scrollingContainer&&n.handleScrollEvent(e.target)}));var r=new C({cellCount:e.columnCount,cellSizeGetter:function(n){return t._wrapSizeGetter(e.columnWidth)(n)},estimatedCellSize:t._getEstimatedColumnSize(e)}),i=new C({cellCount:e.rowCount,cellSizeGetter:function(n){return t._wrapSizeGetter(e.rowHeight)(n)},estimatedCellSize:t._getEstimatedRowSize(e)});return n.state={instanceProps:{columnSizeAndPositionManager:r,rowSizeAndPositionManager:i,prevColumnWidth:e.columnWidth,prevRowHeight:e.rowHeight,prevColumnCount:e.columnCount,prevRowCount:e.rowCount,prevIsScrolling:!0===e.isScrolling,prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow,scrollbarSize:0,scrollbarSizeMeasured:!1},isScrolling:!1,scrollDirectionHorizontal:1,scrollDirectionVertical:1,scrollLeft:0,scrollTop:0,scrollPositionChangeReason:null,needToResetStyleCache:!1},e.scrollToRow>0&&(n._initialScrollTop=n._getCalculatedScrollTop(e,n.state)),e.scrollToColumn>0&&(n._initialScrollLeft=n._getCalculatedScrollLeft(e,n.state)),n}return h()(t,e),a()(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?this.props.scrollToAlignment:t,r=e.columnIndex,o=void 0===r?this.props.scrollToColumn:r,i=e.rowIndex,a=void 0===i?this.props.scrollToRow:i,l=F({},this.props,{scrollToAlignment:n,scrollToColumn:o,scrollToRow:a});return{scrollLeft:this._getCalculatedScrollLeft(l),scrollTop:this._getCalculatedScrollTop(l)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,n=void 0===t?0:t,r=e.scrollTop,o=void 0===r?0:r;if(!(o<0)){this._debounceScrollEnded();var i=this.props,a=i.autoHeight,l=i.autoWidth,s=i.height,c=i.width,u=this.state.instanceProps,f=u.scrollbarSize,d=u.rowSizeAndPositionManager.getTotalSize(),p=u.columnSizeAndPositionManager.getTotalSize(),h=Math.min(Math.max(0,p-c+f),n),m=Math.min(Math.max(0,d-s+f),o);if(this.state.scrollLeft!==h||this.state.scrollTop!==m){var b={isScrolling:!0,scrollDirectionHorizontal:h!==this.state.scrollLeft?h>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:m!==this.state.scrollTop?m>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:H};a||(b.scrollTop=m),l||(b.scrollLeft=h),b.needToResetStyleCache=!1,this.setState(b)}this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:m,totalColumnsWidth:p,totalRowsHeight:d})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,n):n}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,n=e.rowCount,r=this.state.instanceProps;r.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),r.rowSizeAndPositionManager.getSizeAndPositionOfCell(n-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r,i=this.props,a=i.scrollToColumn,l=i.scrollToRow,s=this.state.instanceProps;s.columnSizeAndPositionManager.resetCell(n),s.rowSizeAndPositionManager.resetCell(o),this._recomputeScrollLeftFlag=a>=0&&(1===this.state.scrollDirectionHorizontal?n<=a:n>=a),this._recomputeScrollTopFlag=l>=0&&(1===this.state.scrollDirectionVertical?o<=l:o>=l),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,r=this.props.columnCount,o=this.props;r>1&&void 0!==t&&this._updateScrollLeftForScrollToColumn(F({},o,{scrollToColumn:t})),void 0!==n&&this._updateScrollTopForScrollToRow(F({},o,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,n=e.getScrollbarSize,r=e.height,o=e.scrollLeft,i=e.scrollToColumn,a=e.scrollTop,l=e.scrollToRow,s=e.width,c=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),c.scrollbarSizeMeasured||this.setState((function(e){var t=F({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=n(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"==typeof o&&o>=0||"number"==typeof a&&a>=0){var u=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:a});u&&(u.needToResetStyleCache=!1,this.setState(u))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var f=r>0&&s>0;i>=0&&f&&this._updateScrollLeftForScrollToColumn(),l>=0&&f&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:a||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props,o=r.autoHeight,i=r.autoWidth,a=r.columnCount,l=r.height,s=r.rowCount,c=r.scrollToAlignment,u=r.scrollToColumn,f=r.scrollToRow,d=r.width,p=this.state,h=p.scrollLeft,m=p.scrollPositionChangeReason,b=p.scrollTop,y=p.instanceProps;this._handleInvalidatedGridSize();var v=a>0&&0===e.columnCount||s>0&&0===e.rowCount;m===U&&(!i&&h>=0&&(h!==this._scrollingContainer.scrollLeft||v)&&(this._scrollingContainer.scrollLeft=h),!o&&b>=0&&(b!==this._scrollingContainer.scrollTop||v)&&(this._scrollingContainer.scrollTop=b));var g=(0===e.width||0===e.height)&&l>0&&d>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):T({cellSizeAndPositionManager:y.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:c,scrollToIndex:u,size:d,sizeJustIncreasedFromZero:g,updateScrollIndexCallback:function(){return n._updateScrollLeftForScrollToColumn(n.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):T({cellSizeAndPositionManager:y.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:b,scrollToAlignment:c,scrollToIndex:f,size:l,sizeJustIncreasedFromZero:g,updateScrollIndexCallback:function(){return n._updateScrollTopForScrollToRow(n.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||b!==t.scrollTop){var w=y.rowSizeAndPositionManager.getTotalSize(),x=y.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:b,totalColumnsWidth:x,totalRowsHeight:w})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&D(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,r=e.autoWidth,o=e.className,i=e.containerProps,a=e.containerRole,l=e.containerStyle,s=e.height,c=e.id,u=e.noContentRenderer,f=e.role,d=e.style,p=e.tabIndex,h=e.width,m=this.state,b=m.instanceProps,v=m.needToResetStyleCache,g=this._isScrolling(),S={boxSizing:"border-box",direction:"ltr",height:n?"auto":s,position:"relative",width:r?"auto":h,WebkitOverflowScrolling:"touch",willChange:"transform"};v&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var O=b.columnSizeAndPositionManager.getTotalSize(),E=b.rowSizeAndPositionManager.getTotalSize(),k=E>s?b.scrollbarSize:0,_=O>h?b.scrollbarSize:0;_===this._horizontalScrollBarSize&&k===this._verticalScrollBarSize||(this._horizontalScrollBarSize=_,this._verticalScrollBarSize=k,this._scrollbarPresenceChanged=!0),S.overflowX=O+k<=h?"hidden":"auto",S.overflowY=E+_<=s?"hidden":"auto";var C=this._childrenToDisplay,A=0===C.length&&s>0&&h>0;return y.createElement("div",w()({ref:this._setScrollingContainerRef},i,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:Object(x.default)("ReactVirtualized__Grid",o),id:c,onScroll:this._onScroll,role:f,style:F({},S,{},d),tabIndex:p}),C.length>0&&y.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:a,style:F({width:t?"auto":O,height:E,maxWidth:O,maxHeight:E,overflow:"hidden",pointerEvents:g?"none":"",position:"relative"},l)},C),A&&u())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,r=e.cellRangeRenderer,o=e.columnCount,i=e.deferredMeasurementCache,a=e.height,l=e.overscanColumnCount,s=e.overscanIndicesGetter,c=e.overscanRowCount,u=e.rowCount,f=e.width,d=e.isScrollingOptOut,p=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.instanceProps,b=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,y=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,v=this._isScrolling(e,t);if(this._childrenToDisplay=[],a>0&&f>0){var g=m.columnSizeAndPositionManager.getVisibleCellRange({containerSize:f,offset:y}),w=m.rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:b}),x=m.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:f,offset:y}),S=m.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:b});this._renderedColumnStartIndex=g.start,this._renderedColumnStopIndex=g.stop,this._renderedRowStartIndex=w.start,this._renderedRowStopIndex=w.stop;var O=s({direction:"horizontal",cellCount:o,overscanCellsCount:l,scrollDirection:p,startIndex:"number"==typeof g.start?g.start:0,stopIndex:"number"==typeof g.stop?g.stop:-1}),E=s({direction:"vertical",cellCount:u,overscanCellsCount:c,scrollDirection:h,startIndex:"number"==typeof w.start?w.start:0,stopIndex:"number"==typeof w.stop?w.stop:-1}),k=O.overscanStartIndex,_=O.overscanStopIndex,C=E.overscanStartIndex,A=E.overscanStopIndex;if(i){if(!i.hasFixedHeight())for(var T=C;T<=A;T++)if(!i.has(T,0)){k=0,_=o-1;break}if(!i.hasFixedWidth())for(var j=k;j<=_;j++)if(!i.has(0,j)){C=0,A=u-1;break}}this._childrenToDisplay=r({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:m.columnSizeAndPositionManager,columnStartIndex:k,columnStopIndex:_,deferredMeasurementCache:i,horizontalOffsetAdjustment:x,isScrolling:v,isScrollingOptOut:d,parent:this,rowSizeAndPositionManager:m.rowSizeAndPositionManager,rowStartIndex:C,rowStopIndex:A,scrollLeft:y,scrollTop:b,styleCache:this._styleCache,verticalOffsetAdjustment:S,visibleColumnIndices:g,visibleRowIndices:w}),this._columnStartIndex=k,this._columnStopIndex=_,this._rowStartIndex=C,this._rowStopIndex=A}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&D(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=z(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex&&"number"==typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,o=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,r=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:r,scrollWidth:o})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var n=e.scrollLeft,r=e.scrollTop,o=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:n,scrollTop:r});o&&(o.needToResetStyleCache=!1,this.setState(o))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,n)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollLeftForScrollToColumnStateUpdate(e,n);r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,n)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,n=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var r=this._rowStartIndex;r<=this._rowStopIndex;r++)for(var o=this._columnStartIndex;o<=this._columnStopIndex;o++){var i="".concat(r,"-").concat(o);this._styleCache[i]=e[i],n&&(this._cellCache[i]=t[i])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollTopForScrollToRowStateUpdate(e,n);r&&(r.needToResetStyleCache=!1,this.setState(r))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var r={};0===e.columnCount&&0!==n.scrollLeft||0===e.rowCount&&0!==n.scrollTop?(r.scrollLeft=0,r.scrollTop=0):(e.scrollLeft!==n.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==n.scrollTop&&e.scrollToRow<0)&&Object.assign(r,t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var o,i,a=n.instanceProps;return r.needToResetStyleCache=!1,e.columnWidth===a.prevColumnWidth&&e.rowHeight===a.prevRowHeight||(r.needToResetStyleCache=!0),a.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),a.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),0!==a.prevColumnCount&&0!==a.prevRowCount||(a.prevColumnCount=0,a.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===a.prevIsScrolling&&Object.assign(r,{isScrolling:!1}),S({cellCount:a.prevColumnCount,cellSize:"number"==typeof a.prevColumnWidth?a.prevColumnWidth:null,computeMetadataCallback:function(){return a.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"==typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:a.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){o=t._getScrollLeftForScrollToColumnStateUpdate(e,n)}}),S({cellCount:a.prevRowCount,cellSize:"number"==typeof a.prevRowHeight?a.prevRowHeight:null,computeMetadataCallback:function(){return a.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"==typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:a.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){i=t._getScrollTopForScrollToRowStateUpdate(e,n)}}),a.prevColumnCount=e.columnCount,a.prevColumnWidth=e.columnWidth,a.prevIsScrolling=!0===e.isScrolling,a.prevRowCount=e.rowCount,a.prevRowHeight=e.rowHeight,a.prevScrollToColumn=e.scrollToColumn,a.prevScrollToRow=e.scrollToRow,a.scrollbarSize=e.getScrollbarSize(),void 0===a.scrollbarSize?(a.scrollbarSizeMeasured=!1,a.scrollbarSize=0):a.scrollbarSizeMeasured=!0,r.instanceProps=a,F({},r,{},o,{},i)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,n=e.scrollLeft,r=e.scrollTop,o={scrollPositionChangeReason:U};return"number"==typeof n&&n>=0&&(o.scrollDirectionHorizontal=n>t.scrollLeft?1:-1,o.scrollLeft=n),"number"==typeof r&&r>=0&&(o.scrollDirectionVertical=r>t.scrollTop?1:-1,o.scrollTop=r),"number"==typeof n&&n>=0&&n!==t.scrollLeft||"number"==typeof r&&r>=0&&r!==t.scrollTop?o:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var n=e.columnCount,r=e.height,o=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,l=t.scrollLeft,s=t.instanceProps;if(n>0){var c=n-1,u=i<0?c:Math.min(c,i),f=s.rowSizeAndPositionManager.getTotalSize(),d=s.scrollbarSizeMeasured&&f>r?s.scrollbarSize:0;return s.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:a-d,currentOffset:l,targetIndex:u})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,n){var r=n.scrollLeft,o=t._getCalculatedScrollLeft(e,n);return"number"==typeof o&&o>=0&&r!==o?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:o,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var n=e.height,r=e.rowCount,o=e.scrollToAlignment,i=e.scrollToRow,a=e.width,l=t.scrollTop,s=t.instanceProps;if(r>0){var c=r-1,u=i<0?c:Math.min(c,i),f=s.columnSizeAndPositionManager.getTotalSize(),d=s.scrollbarSizeMeasured&&f>a?s.scrollbarSize:0;return s.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:n-d,currentOffset:l,targetIndex:u})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,n){var r=n.scrollTop,o=t._getCalculatedScrollTop(e,n);return"number"==typeof o&&o>=0&&r!==o?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:-1,scrollTop:o}):{}}}]),t}(y.PureComponent),b()(q,"propTypes",null),N);b()(W,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,n=e.cellRenderer,r=e.columnSizeAndPositionManager,o=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,c=e.isScrollingOptOut,u=e.parent,f=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,h=e.styleCache,m=e.verticalOffsetAdjustment,b=e.visibleColumnIndices,y=e.visibleRowIndices,v=[],g=r.areOffsetsAdjusted()||f.areOffsetsAdjusted(),w=!s&&!g,x=d;x<=p;x++)for(var S=f.getSizeAndPositionOfCell(x),O=o;O<=i;O++){var E=r.getSizeAndPositionOfCell(O),k=O>=b.start&&O<=b.stop&&x>=y.start&&x<=y.stop,_="".concat(x,"-").concat(O),C=void 0;w&&h[_]?C=h[_]:a&&!a.has(x,O)?C={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(C={height:S.size,left:E.offset+l,position:"absolute",top:S.offset+m,width:E.size},h[_]=C);var A={columnIndex:O,isScrolling:s,isVisible:k,key:_,parent:u,rowIndex:x,style:C},T=void 0;!c&&!s||l||m?T=n(A):(t[_]||(t[_]=n(A)),T=t[_]),null!=T&&!1!==T&&v.push(T)}return v},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:P.default,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return 1===r?{overscanStartIndex:Math.max(0,o),overscanStopIndex:Math.min(t-1,i+n)}:{overscanStartIndex:Math.max(0,o-n),overscanStopIndex:Math.min(t-1,i)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),Object(v.polyfill)(W);var G=W;function V(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return n=Math.max(1,n),1===r?{overscanStartIndex:Math.max(0,o-1),overscanStopIndex:Math.min(t-1,i+n)}:{overscanStartIndex:Math.max(0,o-n),overscanStopIndex:Math.min(t-1,i+1)}}var K,$;function Y(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}var Z=($=K=function(e){function t(){var e,n;o()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=s()(this,(e=u()(t)).call.apply(e,[this].concat(i))),b()(d()(n),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),b()(d()(n),"_columnStartIndex",0),b()(d()(n),"_columnStopIndex",0),b()(d()(n),"_rowStartIndex",0),b()(d()(n),"_rowStopIndex",0),b()(d()(n),"_onKeyDown",(function(e){var t=n.props,r=t.columnCount,o=t.disabled,i=t.mode,a=t.rowCount;if(!o){var l=n._getScrollState(),s=l.scrollToColumn,c=l.scrollToRow,u=n._getScrollState(),f=u.scrollToColumn,d=u.scrollToRow;switch(e.key){case"ArrowDown":d="cells"===i?Math.min(d+1,a-1):Math.min(n._rowStopIndex+1,a-1);break;case"ArrowLeft":f="cells"===i?Math.max(f-1,0):Math.max(n._columnStartIndex-1,0);break;case"ArrowRight":f="cells"===i?Math.min(f+1,r-1):Math.min(n._columnStopIndex+1,r-1);break;case"ArrowUp":d="cells"===i?Math.max(d-1,0):Math.max(n._rowStartIndex-1,0)}f===s&&d===c||(e.preventDefault(),n._updateScrollState({scrollToColumn:f,scrollToRow:d}))}})),b()(d()(n),"_onSectionRendered",(function(e){var t=e.columnStartIndex,r=e.columnStopIndex,o=e.rowStartIndex,i=e.rowStopIndex;n._columnStartIndex=t,n._columnStopIndex=r,n._rowStartIndex=o,n._rowStopIndex=i})),n}return h()(t,e),a()(t,[{key:"setScrollIndexes",value:function(e){var t=e.scrollToColumn,n=e.scrollToRow;this.setState({scrollToRow:n,scrollToColumn:t})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.children,r=this._getScrollState(),o=r.scrollToColumn,i=r.scrollToRow;return y.createElement("div",{className:t,onKeyDown:this._onKeyDown},n({onSectionRendered:this._onSectionRendered,scrollToColumn:o,scrollToRow:i}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,n=e.scrollToRow,r=this.props,o=r.isControlled,i=r.onScrollToChange;"function"==typeof i&&i({scrollToColumn:t,scrollToRow:n}),o||this.setState({scrollToColumn:t,scrollToRow:n})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isControlled?{}:e.scrollToColumn!==t.instanceProps.prevScrollToColumn||e.scrollToRow!==t.instanceProps.prevScrollToRow?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(n,!0).forEach((function(t){b()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow,instanceProps:{prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow}}):{}}}]),t}(y.PureComponent),b()(K,"propTypes",null),$);b()(Z,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),Object(v.polyfill)(Z);var X,Q,J=n(1627);function ee(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 te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(n,!0).forEach((function(t){b()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ne=(Q=X=function(e){function t(){var e,n;o()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=s()(this,(e=u()(t)).call.apply(e,[this].concat(i))),b()(d()(n),"state",{height:n.props.defaultHeight||0,width:n.props.defaultWidth||0}),b()(d()(n),"_parentNode",void 0),b()(d()(n),"_autoSizer",void 0),b()(d()(n),"_window",void 0),b()(d()(n),"_detectElementResize",void 0),b()(d()(n),"_onResize",(function(){var e=n.props,t=e.disableHeight,r=e.disableWidth,o=e.onResize;if(n._parentNode){var i=n._parentNode.offsetHeight||0,a=n._parentNode.offsetWidth||0,l=(n._window||window).getComputedStyle(n._parentNode)||{},s=parseInt(l.paddingLeft,10)||0,c=parseInt(l.paddingRight,10)||0,u=parseInt(l.paddingTop,10)||0,f=parseInt(l.paddingBottom,10)||0,d=i-u-f,p=a-s-c;(!t&&n.state.height!==d||!r&&n.state.width!==p)&&(n.setState({height:i-u-f,width:a-s-c}),o({height:i,width:a}))}})),b()(d()(n),"_setRef",(function(e){n._autoSizer=e})),n}return h()(t,e),a()(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._window=this._autoSizer.parentNode.ownerDocument.defaultView,this._detectElementResize=Object(J.a)(e,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.disableHeight,o=e.disableWidth,i=e.style,a=this.state,l=a.height,s=a.width,c={overflow:"visible"},u={};return r||(c.height=0,u.height=l),o||(c.width=0,u.width=s),y.createElement("div",{className:n,ref:this._setRef,style:te({},c,{},i)},t(u))}}]),t}(y.Component),b()(X,"propTypes",null),Q);b()(ne,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var re,oe,ie=n(119),ae=(oe=re=function(e){function t(){var e,n;o()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=s()(this,(e=u()(t)).call.apply(e,[this].concat(i))),b()(d()(n),"_child",void 0),b()(d()(n),"_measure",(function(){var e=n.props,t=e.cache,r=e.columnIndex,o=void 0===r?0:r,i=e.parent,a=e.rowIndex,l=void 0===a?n.props.index||0:a,s=n._getCellMeasurements(),c=s.height,u=s.width;c===t.getHeight(l,o)&&u===t.getWidth(l,o)||(t.set(l,o,u,c),i&&"function"==typeof i.recomputeGridSize&&i.recomputeGridSize({columnIndex:o,rowIndex:l}))})),b()(d()(n),"_registerChild",(function(e){!e||e instanceof Element||console.warn("CellMeasurer registerChild expects to be passed Element or null"),n._child=e,e&&n._maybeMeasureCell()})),n}return h()(t,e),a()(t,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var e=this.props.children;return"function"==typeof e?e({measure:this._measure,registerChild:this._registerChild}):e}},{key:"_getCellMeasurements",value:function(){var e=this.props.cache,t=this._child||Object(ie.findDOMNode)(this);if(t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){var n=t.style.width,r=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var o=Math.ceil(t.offsetHeight),i=Math.ceil(t.offsetWidth);return n&&(t.style.width=n),r&&(t.style.height=r),{height:o,width:i}}return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,n=e.columnIndex,r=void 0===n?0:n,o=e.parent,i=e.rowIndex,a=void 0===i?this.props.index||0:i;if(!t.has(a,r)){var l=this._getCellMeasurements(),s=l.height,c=l.width;t.set(a,r,c,s),o&&"function"==typeof o.invalidateCellSizeAfterRender&&o.invalidateCellSizeAfterRender({columnIndex:r,rowIndex:a})}}}]),t}(y.PureComponent),b()(re,"propTypes",null),oe);b()(ae,"__internalCellMeasurerFlag",!1);var le=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o()(this,e),b()(this,"_cellHeightCache",{}),b()(this,"_cellWidthCache",{}),b()(this,"_columnWidthCache",{}),b()(this,"_rowHeightCache",{}),b()(this,"_defaultHeight",void 0),b()(this,"_defaultWidth",void 0),b()(this,"_minHeight",void 0),b()(this,"_minWidth",void 0),b()(this,"_keyMapper",void 0),b()(this,"_hasFixedHeight",void 0),b()(this,"_hasFixedWidth",void 0),b()(this,"_columnCount",0),b()(this,"_rowCount",0),b()(this,"columnWidth",(function(e){var n=e.index,r=t._keyMapper(0,n);return void 0!==t._columnWidthCache[r]?t._columnWidthCache[r]:t._defaultWidth})),b()(this,"rowHeight",(function(e){var n=e.index,r=t._keyMapper(n,0);return void 0!==t._rowHeightCache[r]?t._rowHeightCache[r]:t._defaultHeight}));var r=n.defaultHeight,i=n.defaultWidth,a=n.fixedHeight,l=n.fixedWidth,s=n.keyMapper,c=n.minHeight,u=n.minWidth;this._hasFixedHeight=!0===a,this._hasFixedWidth=!0===l,this._minHeight=c||0,this._minWidth=u||0,this._keyMapper=s||se,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:30),this._defaultWidth=Math.max(this._minWidth,"number"==typeof i?i:100)}return a()(e,[{key:"clear",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={},this._rowCount=0,this._columnCount=0}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedHeight)return this._defaultHeight;var n=this._keyMapper(e,t);return void 0!==this._cellHeightCache[n]?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedWidth)return this._defaultWidth;var n=this._keyMapper(e,t);return void 0!==this._cellWidthCache[n]?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._keyMapper(e,t);return void 0!==this._cellHeightCache[n]}},{key:"set",value:function(e,t,n,r){var o=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[o]=r,this._cellWidthCache[o]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){if(!this._hasFixedWidth){for(var n=0,r=0;r<this._rowCount;r++)n=Math.max(n,this.getWidth(r,t));var o=this._keyMapper(0,t);this._columnWidthCache[o]=n}if(!this._hasFixedHeight){for(var i=0,a=0;a<this._columnCount;a++)i=Math.max(i,this.getHeight(e,a));var l=this._keyMapper(e,0);this._rowHeightCache[l]=i}}},{key:"defaultHeight",get:function(){return this._defaultHeight}},{key:"defaultWidth",get:function(){return this._defaultWidth}}]),e}();function se(e,t){return"".concat(e,"-").concat(t)}function ce(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 ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(n,!0).forEach((function(t){b()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fe="observed",de="requested",pe=function(e){function t(){var e,n;o()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=s()(this,(e=u()(t)).call.apply(e,[this].concat(i))),b()(d()(n),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),b()(d()(n),"_calculateSizeAndPositionDataOnNextUpdate",!1),b()(d()(n),"_onSectionRenderedMemoizer",A()),b()(d()(n),"_onScrollMemoizer",A(!1)),b()(d()(n),"_invokeOnSectionRenderedHelper",(function(){var e=n.props,t=e.cellLayoutManager,r=e.onSectionRendered;n._onSectionRenderedMemoizer({callback:r,indices:{indices:t.getLastRenderedIndices()}})})),b()(d()(n),"_setScrollingContainerRef",(function(e){n._scrollingContainer=e})),b()(d()(n),"_updateScrollPositionForScrollToCell",(function(){var e=n.props,t=e.cellLayoutManager,r=e.height,o=e.scrollToAlignment,i=e.scrollToCell,a=e.width,l=n.state,s=l.scrollLeft,c=l.scrollTop;if(i>=0){var u=t.getScrollPositionForCell({align:o,cellIndex:i,height:r,scrollLeft:s,scrollTop:c,width:a});u.scrollLeft===s&&u.scrollTop===c||n._setScrollPosition(u)}})),b()(d()(n),"_onScroll",(function(e){if(e.target===n._scrollingContainer){n._enablePointerEventsAfterDelay();var t=n.props,r=t.cellLayoutManager,o=t.height,i=t.isScrollingChange,a=t.width,l=n._scrollbarSize,s=r.getTotalSize(),c=s.height,u=s.width,f=Math.max(0,Math.min(u-a+l,e.target.scrollLeft)),d=Math.max(0,Math.min(c-o+l,e.target.scrollTop));if(n.state.scrollLeft!==f||n.state.scrollTop!==d){var p=e.cancelable?fe:de;n.state.isScrolling||i(!0),n.setState({isScrolling:!0,scrollLeft:f,scrollPositionChangeReason:p,scrollTop:d})}n._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:d,totalWidth:u,totalHeight:c})}})),n._scrollbarSize=Object(P.default)(),void 0===n._scrollbarSize?(n._scrollbarSizeMeasured=!1,n._scrollbarSize=0):n._scrollbarSizeMeasured=!0,n}return h()(t,e),a()(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.scrollLeft,r=e.scrollToCell,o=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=Object(P.default)(),this._scrollbarSizeMeasured=!0,this.setState({})),r>=0?this._updateScrollPositionForScrollToCell():(n>=0||o>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:o}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:o||0,totalHeight:a,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.height,o=n.scrollToAlignment,i=n.scrollToCell,a=n.width,l=this.state,s=l.scrollLeft,c=l.scrollPositionChangeReason,u=l.scrollTop;c===de&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),u>=0&&u!==t.scrollTop&&u!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=u)),r===e.height&&o===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,r=e.cellLayoutManager,o=e.className,i=e.height,a=e.horizontalOverscanSize,l=e.id,s=e.noContentRenderer,c=e.style,u=e.verticalOverscanSize,f=e.width,d=this.state,p=d.isScrolling,h=d.scrollLeft,m=d.scrollTop;(this._lastRenderedCellCount!==n||this._lastRenderedCellLayoutManager!==r||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=n,this._lastRenderedCellLayoutManager=r,this._calculateSizeAndPositionDataOnNextUpdate=!1,r.calculateSizeAndPositionData());var b=r.getTotalSize(),v=b.height,g=b.width,w=Math.max(0,h-a),S=Math.max(0,m-u),O=Math.min(g,h+f+a),E=Math.min(v,m+i+u),k=i>0&&f>0?r.cellRenderers({height:E-S,isScrolling:p,width:O-w,x:w,y:S}):[],_={boxSizing:"border-box",direction:"ltr",height:t?"auto":i,position:"relative",WebkitOverflowScrolling:"touch",width:f,willChange:"transform"},C=v>i?this._scrollbarSize:0,A=g>f?this._scrollbarSize:0;return _.overflowX=g+C<=f?"hidden":"auto",_.overflowY=v+A<=i?"hidden":"auto",y.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:Object(x.default)("ReactVirtualized__Collection",o),id:l,onScroll:this._onScroll,role:"grid",style:ue({},_,{},c),tabIndex:0},n>0&&y.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:v,maxHeight:v,maxWidth:g,overflow:"hidden",pointerEvents:p?"none":"",width:g}},k),0===n&&s())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout((function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})}),150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,o=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,r=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:o,scrollLeft:n,scrollTop:r,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,r={scrollPositionChangeReason:de};t>=0&&(r.scrollLeft=t),n>=0&&(r.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(r)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0!==e.cellCount||0===t.scrollLeft&&0===t.scrollTop?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop?e.scrollTop:t.scrollTop,scrollPositionChangeReason:de}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:de}}}]),t}(y.PureComponent);b()(pe,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),pe.propTypes={},Object(v.polyfill)(pe);var he=pe,me=function(){function e(t){var n=t.height,r=t.width,i=t.x,a=t.y;o()(this,e),this.height=n,this.width=r,this.x=i,this.y=a,this._indexMap={},this._indices=[]}return a()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),e}(),be=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;o()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return a()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,r=e.x,o=e.y,i={};return this.getSections({height:t,width:n,x:r,y:o}).forEach((function(e){return e.getCellIndices().forEach((function(e){i[e]=e}))})),Object.keys(i).map((function(e){return i[e]}))}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,r=e.x,o=e.y,i=Math.floor(r/this._sectionSize),a=Math.floor((r+n-1)/this._sectionSize),l=Math.floor(o/this._sectionSize),s=Math.floor((o+t-1)/this._sectionSize),c=[],u=i;u<=a;u++)for(var f=l;f<=s;f++){var d="".concat(u,".").concat(f);this._sections[d]||(this._sections[d]=new me({height:this._sectionSize,width:this._sectionSize,x:u*this._sectionSize,y:f*this._sectionSize})),c.push(this._sections[d])}return c}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var e=this;return Object.keys(this._sections).map((function(t){return e._sections[t].toString()}))}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach((function(e){return e.addCellIndex({index:n})}))}}]),e}();function ye(e){var t=e.align,n=void 0===t?"auto":t,r=e.cellOffset,o=e.cellSize,i=e.containerSize,a=e.currentOffset,l=r,s=l-i+o;switch(n){case"start":return l;case"end":return s;case"center":return l-(i-o)/2;default:return Math.max(s,Math.min(l,a))}}var ve=function(e){function t(e,n){var r;return o()(this,t),(r=s()(this,u()(t).call(this,e,n)))._cellMetadata=[],r._lastRenderedCellIndices=[],r._cellCache=[],r._isScrollingChange=r._isScrollingChange.bind(d()(r)),r._setCollectionViewRef=r._setCollectionViewRef.bind(d()(r)),r}return h()(t,e),a()(t,[{key:"forceUpdate",value:function(){void 0!==this._collectionView&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=w()({},this.props);return y.createElement(he,w()({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,r=e.sectionSize,o=[],i=new be(r),a=0,l=0,s=0;s<t;s++){var c=n({index:s});if(null==c.height||isNaN(c.height)||null==c.width||isNaN(c.width)||null==c.x||isNaN(c.x)||null==c.y||isNaN(c.y))throw Error("Invalid metadata returned for cell ".concat(s,":\n x:").concat(c.x,", y:").concat(c.y,", width:").concat(c.width,", height:").concat(c.height));a=Math.max(a,c.y+c.height),l=Math.max(l,c.x+c.width),o[s]=c,i.registerCell({cellMetadatum:c,index:s})}return{cellMetadata:o,height:a,sectionManager:i,width:l}}({cellCount:e.cellCount,cellSizeAndPositionGetter:e.cellSizeAndPositionGetter,sectionSize:e.sectionSize});this._cellMetadata=t.cellMetadata,this._sectionManager=t.sectionManager,this._height=t.height,this._width=t.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(e){var t=e.align,n=e.cellIndex,r=e.height,o=e.scrollLeft,i=e.scrollTop,a=e.width,l=this.props.cellCount;if(n>=0&&n<l){var s=this._cellMetadata[n];o=ye({align:t,cellOffset:s.x,cellSize:s.width,containerSize:a,currentOffset:o,targetIndex:n}),i=ye({align:t,cellOffset:s.y,cellSize:s.height,containerSize:r,currentOffset:i,targetIndex:n})}return{scrollLeft:o,scrollTop:i}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,n=e.height,r=e.isScrolling,o=e.width,i=e.x,a=e.y,l=this.props,s=l.cellGroupRenderer,c=l.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:n,width:o,x:i,y:a}),s({cellCache:this._cellCache,cellRenderer:c,cellSizeAndPositionGetter:function(e){var n=e.index;return t._sectionManager.getCellMetadata({index:n})},indices:this._lastRenderedCellIndices,isScrolling:r})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}]),t}(y.PureComponent);b()(ve,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(e){var t=e.cellCache,n=e.cellRenderer,r=e.cellSizeAndPositionGetter,o=e.indices,i=e.isScrolling;return o.map((function(e){var o=r({index:e}),a={index:e,isScrolling:i,key:e,style:{height:o.height,left:o.x,position:"absolute",top:o.y,width:o.width}};return i?(e in t||(t[e]=n(a)),t[e]):n(a)})).filter((function(e){return!!e}))}}),ve.propTypes={};var ge=function(e){function t(e,n){var r;return o()(this,t),(r=s()(this,u()(t).call(this,e,n)))._registerChild=r._registerChild.bind(d()(r)),r}return h()(t,e),a()(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.columnMaxWidth,r=t.columnMinWidth,o=t.columnCount,i=t.width;n===e.columnMaxWidth&&r===e.columnMinWidth&&o===e.columnCount&&i===e.width||this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.columnMaxWidth,r=e.columnMinWidth,o=e.columnCount,i=e.width,a=r||1,l=n?Math.min(n,i):i,s=i/o;return s=Math.max(a,s),s=Math.min(l,s),s=Math.floor(s),t({adjustedWidth:Math.min(i,s*o),columnWidth:s,getColumnWidth:function(){return s},registerChild:this._registerChild})}},{key:"_registerChild",value:function(e){if(e&&"function"!=typeof e.recomputeGridSize)throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");this._registeredChild=e,this._registeredChild&&this._registeredChild.recomputeGridSize()}}]),t}(y.PureComponent);ge.propTypes={};var we=n(1634),xe=n.n(we),Se=function(e){function t(e,n){var r;return o()(this,t),(r=s()(this,u()(t).call(this,e,n)))._loadMoreRowsMemoizer=A(),r._onRowsRendered=r._onRowsRendered.bind(d()(r)),r._registerChild=r._registerChild.bind(d()(r)),r}return h()(t,e),a()(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=A(),e&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach((function(e){var r=n(e);r&&r.then((function(){var n,r,o,i,a;n={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex},r=n.lastRenderedStartIndex,o=n.lastRenderedStopIndex,i=n.startIndex,a=n.stopIndex,i>o||a<r||t._registeredChild&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;n?n.call(e,t):e.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)}))}))}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,n=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=n,this._doStuff(t,n)}},{key:"_doStuff",value:function(e,t){var n,r=this,o=this.props,i=o.isRowLoaded,a=o.minimumBatchSize,l=o.rowCount,s=o.threshold,c=function(e){for(var t=e.isRowLoaded,n=e.minimumBatchSize,r=e.rowCount,o=e.startIndex,i=e.stopIndex,a=[],l=null,s=null,c=o;c<=i;c++){t({index:c})?null!==s&&(a.push({startIndex:l,stopIndex:s}),l=s=null):(s=c,null===l&&(l=c))}if(null!==s){for(var u=Math.min(Math.max(s,l+n-1),r-1),f=s+1;f<=u&&!t({index:f});f++)s=f;a.push({startIndex:l,stopIndex:s})}if(a.length)for(var d=a[0];d.stopIndex-d.startIndex+1<n&&d.startIndex>0;){var p=d.startIndex-1;if(t({index:p}))break;d.startIndex=p}return a}({isRowLoaded:i,minimumBatchSize:a,rowCount:l,startIndex:Math.max(0,e-s),stopIndex:Math.min(l-1,t+s)}),u=(n=[]).concat.apply(n,xe()(c.map((function(e){return[e.startIndex,e.stopIndex]}))));this._loadMoreRowsMemoizer({callback:function(){r._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:u}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(y.PureComponent);b()(Se,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),Se.propTypes={};var Oe,Ee,ke=(Ee=Oe=function(e){function t(){var e,n;o()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=s()(this,(e=u()(t)).call.apply(e,[this].concat(i))),b()(d()(n),"Grid",void 0),b()(d()(n),"_cellRenderer",(function(e){var t=e.parent,r=e.rowIndex,o=e.style,i=e.isScrolling,a=e.isVisible,l=e.key,s=n.props.rowRenderer,c=Object.getOwnPropertyDescriptor(o,"width");return c&&c.writable&&(o.width="100%"),s({index:r,style:o,isScrolling:i,isVisible:a,key:l,parent:t})})),b()(d()(n),"_setRef",(function(e){n.Grid=e})),b()(d()(n),"_onScroll",(function(e){var t=e.clientHeight,r=e.scrollHeight,o=e.scrollTop;(0,n.props.onScroll)({clientHeight:t,scrollHeight:r,scrollTop:o})})),b()(d()(n),"_onSectionRendered",(function(e){var t=e.rowOverscanStartIndex,r=e.rowOverscanStopIndex,o=e.rowStartIndex,i=e.rowStopIndex;(0,n.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:r,startIndex:o,stopIndex:i})})),n}return h()(t,e),a()(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,n=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:n,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:n,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:o,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,r=e.scrollToIndex,o=e.width,i=Object(x.default)("ReactVirtualized__List",t);return y.createElement(G,w()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:o,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:r}))}}]),t}(y.PureComponent),b()(Oe,"propTypes",null),Ee);b()(ke,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:V,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});var _e=n(306),Ce=n.n(_e);var Ae={ge:function(e,t,n,r,o){return"function"==typeof n?function(e,t,n,r,o){for(var i=n+1;t<=n;){var a=t+n>>>1;o(e[a],r)>=0?(i=a,n=a-1):t=a+1}return i}(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):function(e,t,n,r){for(var o=n+1;t<=n;){var i=t+n>>>1;e[i]>=r?(o=i,n=i-1):t=i+1}return o}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)},gt:function(e,t,n,r,o){return"function"==typeof n?function(e,t,n,r,o){for(var i=n+1;t<=n;){var a=t+n>>>1;o(e[a],r)>0?(i=a,n=a-1):t=a+1}return i}(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):function(e,t,n,r){for(var o=n+1;t<=n;){var i=t+n>>>1;e[i]>r?(o=i,n=i-1):t=i+1}return o}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)},lt:function(e,t,n,r,o){return"function"==typeof n?function(e,t,n,r,o){for(var i=t-1;t<=n;){var a=t+n>>>1;o(e[a],r)<0?(i=a,t=a+1):n=a-1}return i}(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):function(e,t,n,r){for(var o=t-1;t<=n;){var i=t+n>>>1;e[i]<r?(o=i,t=i+1):n=i-1}return o}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)},le:function(e,t,n,r,o){return"function"==typeof n?function(e,t,n,r,o){for(var i=t-1;t<=n;){var a=t+n>>>1;o(e[a],r)<=0?(i=a,t=a+1):n=a-1}return i}(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):function(e,t,n,r){for(var o=t-1;t<=n;){var i=t+n>>>1;e[i]<=r?(o=i,t=i+1):n=i-1}return o}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)},eq:function(e,t,n,r,o){return"function"==typeof n?function(e,t,n,r,o){for(;t<=n;){var i=t+n>>>1,a=o(e[i],r);if(0===a)return i;a<=0?t=i+1:n=i-1}return-1}(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):function(e,t,n,r){for(;t<=n;){var o=t+n>>>1,i=e[o];if(i===r)return o;i<=r?t=o+1:n=o-1}return-1}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)}};function Te(e,t,n,r,o){this.mid=e,this.left=t,this.right=n,this.leftPoints=r,this.rightPoints=o,this.count=(t?t.count:0)+(n?n.count:0)+r.length}var je=Te.prototype;function qe(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function Ne(e,t){var n=Fe(t);e.mid=n.mid,e.left=n.left,e.right=n.right,e.leftPoints=n.leftPoints,e.rightPoints=n.rightPoints,e.count=n.count}function Pe(e,t){var n=e.intervals([]);n.push(t),Ne(e,n)}function Re(e,t){var n=e.intervals([]),r=n.indexOf(t);return r<0?0:(n.splice(r,1),Ne(e,n),1)}function Ie(e,t,n){for(var r=0;r<e.length&&e[r][0]<=t;++r){var o=n(e[r]);if(o)return o}}function Me(e,t,n){for(var r=e.length-1;r>=0&&e[r][1]>=t;--r){var o=n(e[r]);if(o)return o}}function Le(e,t){for(var n=0;n<e.length;++n){var r=t(e[n]);if(r)return r}}function De(e,t){return e-t}function ze(e,t){var n=e[0]-t[0];return n||e[1]-t[1]}function Be(e,t){var n=e[1]-t[1];return n||e[0]-t[0]}function Fe(e){if(0===e.length)return null;for(var t=[],n=0;n<e.length;++n)t.push(e[n][0],e[n][1]);t.sort(De);var r=t[t.length>>1],o=[],i=[],a=[];for(n=0;n<e.length;++n){var l=e[n];l[1]<r?o.push(l):r<l[0]?i.push(l):a.push(l)}var s=a,c=a.slice();return s.sort(ze),c.sort(Be),new Te(r,Fe(o),Fe(i),s,c)}function He(e){this.root=e}je.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},je.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]<this.mid)this.left?4*(this.left.count+1)>3*(t+1)?Pe(this,e):this.left.insert(e):this.left=Fe([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Pe(this,e):this.right.insert(e):this.right=Fe([e]);else{var n=Ae.ge(this.leftPoints,e,ze),r=Ae.ge(this.rightPoints,e,Be);this.leftPoints.splice(n,0,e),this.rightPoints.splice(r,0,e)}},je.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(t-1)?Re(this,e):2===(i=this.left.remove(e))?(this.left=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?Re(this,e):2===(i=this.right.remove(e))?(this.right=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;if(1===this.count)return this.leftPoints[0]===e?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var n=this,r=this.left;r.right;)n=r,r=r.right;if(n===this)r.right=this.right;else{var o=this.left,i=this.right;n.count-=r.count,n.right=r.left,r.left=o,r.right=i}qe(this,r),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?qe(this,this.left):qe(this,this.right);return 1}for(o=Ae.ge(this.leftPoints,e,ze);o<this.leftPoints.length&&this.leftPoints[o][0]===e[0];++o)if(this.leftPoints[o]===e){this.count-=1,this.leftPoints.splice(o,1);for(i=Ae.ge(this.rightPoints,e,Be);i<this.rightPoints.length&&this.rightPoints[i][1]===e[1];++i)if(this.rightPoints[i]===e)return this.rightPoints.splice(i,1),1}return 0},je.queryPoint=function(e,t){if(e<this.mid){if(this.left)if(n=this.left.queryPoint(e,t))return n;return Ie(this.leftPoints,e,t)}if(e>this.mid){var n;if(this.right)if(n=this.right.queryPoint(e,t))return n;return Me(this.rightPoints,e,t)}return Le(this.leftPoints,t)},je.queryInterval=function(e,t,n){var r;if(e<this.mid&&this.left&&(r=this.left.queryInterval(e,t,n)))return r;if(t>this.mid&&this.right&&(r=this.right.queryInterval(e,t,n)))return r;return t<this.mid?Ie(this.leftPoints,t,n):e>this.mid?Me(this.rightPoints,e,n):Le(this.leftPoints,n)};var Ue=He.prototype;Ue.insert=function(e){this.root?this.root.insert(e):this.root=new Te(e[0],null,null,[e],[e])},Ue.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},Ue.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},Ue.queryInterval=function(e,t,n){if(e<=t&&this.root)return this.root.queryInterval(e,t,n)},Object.defineProperty(Ue,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(Ue,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var We,Ge,Ve=function(){function e(){var t;o()(this,e),b()(this,"_columnSizeMap",{}),b()(this,"_intervalTree",t&&0!==t.length?new He(Fe(t)):new He(null)),b()(this,"_leftMap",{})}return a()(e,[{key:"estimateTotalHeight",value:function(e,t,n){var r=e-this.count;return this.tallestColumnSize+Math.ceil(r/t)*n}},{key:"range",value:function(e,t,n){var r=this;this._intervalTree.queryInterval(e,e+t,(function(e){var t=Ce()(e,3),o=t[0],i=(t[1],t[2]);return n(i,r._leftMap[i],o)}))}},{key:"setPosition",value:function(e,t,n,r){this._intervalTree.insert([n,n+r,e]),this._leftMap[e]=t;var o=this._columnSizeMap,i=o[t];o[t]=void 0===i?n+r:Math.max(i,n+r)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var r=e[n];t=0===t?r:Math.min(t,r)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var r=e[n];t=Math.max(t,r)}return t}}]),e}();function Ke(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 $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(n,!0).forEach((function(t){b()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ye=(Ge=We=function(e){function t(){var e,n;o()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=s()(this,(e=u()(t)).call.apply(e,[this].concat(i))),b()(d()(n),"state",{isScrolling:!1,scrollTop:0}),b()(d()(n),"_debounceResetIsScrollingId",void 0),b()(d()(n),"_invalidateOnUpdateStartIndex",null),b()(d()(n),"_invalidateOnUpdateStopIndex",null),b()(d()(n),"_positionCache",new Ve),b()(d()(n),"_startIndex",null),b()(d()(n),"_startIndexMemoized",null),b()(d()(n),"_stopIndex",null),b()(d()(n),"_stopIndexMemoized",null),b()(d()(n),"_debounceResetIsScrollingCallback",(function(){n.setState({isScrolling:!1})})),b()(d()(n),"_setScrollingContainerRef",(function(e){n._scrollingContainer=e})),b()(d()(n),"_onScroll",(function(e){var t=n.props.height,r=e.currentTarget.scrollTop,o=Math.min(Math.max(0,n._getEstimatedTotalHeight()-t),r);r===o&&(n._debounceResetIsScrolling(),n.state.scrollTop!==o&&n.setState({isScrolling:!0,scrollTop:o}))})),n}return h()(t,e),a()(t,[{key:"clearCellPositions",value:function(){this._positionCache=new Ve,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.rowIndex;null===this._invalidateOnUpdateStartIndex?(this._invalidateOnUpdateStartIndex=t,this._invalidateOnUpdateStopIndex=t):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,t),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,t))}},{key:"recomputeCellPositions",value:function(){var e=this._positionCache.count-1;this._positionCache=new Ve,this._populatePositionCache(0,e),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(e,t){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback(),this.props.scrollTop!==e.scrollTop&&this._debounceResetIsScrolling()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&D(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.autoHeight,o=n.cellCount,i=n.cellMeasurerCache,a=n.cellRenderer,l=n.className,s=n.height,c=n.id,u=n.keyMapper,f=n.overscanByPixels,d=n.role,p=n.style,h=n.tabIndex,m=n.width,v=n.rowDirection,g=this.state,w=g.isScrolling,S=g.scrollTop,O=[],E=this._getEstimatedTotalHeight(),k=this._positionCache.shortestColumnSize,_=this._positionCache.count,C=0;if(this._positionCache.range(Math.max(0,S-f),s+2*f,(function(n,r,o){var l;void 0===e?(C=n,e=n):(C=Math.min(C,n),e=Math.max(e,n)),O.push(a({index:n,isScrolling:w,key:u(n),parent:t,style:(l={height:i.getHeight(n)},b()(l,"ltr"===v?"left":"right",r),b()(l,"position","absolute"),b()(l,"top",o),b()(l,"width",i.getWidth(n)),l)}))})),k<S+s+f&&_<o)for(var A=Math.min(o-_,Math.ceil((S+s+f-k)/i.defaultHeight*m/i.defaultWidth)),T=_;T<_+A;T++)e=T,O.push(a({index:T,isScrolling:w,key:u(T),parent:this,style:{width:i.getWidth(T)}}));return this._startIndex=C,this._stopIndex=e,y.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:Object(x.default)("ReactVirtualized__Masonry",l),id:c,onScroll:this._onScroll,role:d,style:$e({boxSizing:"border-box",direction:"ltr",height:r?"auto":s,overflowX:"hidden",overflowY:E<s?"hidden":"auto",position:"relative",width:m,WebkitOverflowScrolling:"touch",willChange:"transform"},p),tabIndex:h},y.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:E,maxWidth:"100%",maxHeight:E,overflow:"hidden",pointerEvents:w?"none":"",position:"relative"}},O))}},{key:"_checkInvalidateOnUpdate",value:function(){if("number"==typeof this._invalidateOnUpdateStartIndex){var e=this._invalidateOnUpdateStartIndex,t=this._invalidateOnUpdateStopIndex;this._invalidateOnUpdateStartIndex=null,this._invalidateOnUpdateStopIndex=null,this._populatePositionCache(e,t),this.forceUpdate()}}},{key:"_debounceResetIsScrolling",value:function(){var e=this.props.scrollingResetTimeInterval;this._debounceResetIsScrollingId&&D(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=z(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,n=e.cellMeasurerCache,r=e.width,o=Math.max(1,Math.floor(r/n.defaultWidth));return this._positionCache.estimateTotalHeight(t,o,n.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,n=e.onScroll,r=this.state.scrollTop;this._onScrollMemoized!==r&&(n({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:r}),this._onScrollMemoized=r)}},{key:"_invokeOnCellsRenderedCallback",value:function(){this._startIndexMemoized===this._startIndex&&this._stopIndexMemoized===this._stopIndex||((0,this.props.onCellsRendered)({startIndex:this._startIndex,stopIndex:this._stopIndex}),this._startIndexMemoized=this._startIndex,this._stopIndexMemoized=this._stopIndex)}},{key:"_populatePositionCache",value:function(e,t){for(var n=this.props,r=n.cellMeasurerCache,o=n.cellPositioner,i=e;i<=t;i++){var a=o(i),l=a.left,s=a.top;this._positionCache.setPosition(i,l,s,r.getHeight(i))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return void 0!==e.scrollTop&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}]),t}(y.PureComponent),b()(We,"propTypes",null),Ge);function Ze(){}b()(Ye,"defaultProps",{autoHeight:!1,keyMapper:function(e){return e},onCellsRendered:Ze,onScroll:Ze,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"});Object(v.polyfill)(Ye);var Xe=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o()(this,e),b()(this,"_cellMeasurerCache",void 0),b()(this,"_columnIndexOffset",void 0),b()(this,"_rowIndexOffset",void 0),b()(this,"columnWidth",(function(e){var n=e.index;t._cellMeasurerCache.columnWidth({index:n+t._columnIndexOffset})})),b()(this,"rowHeight",(function(e){var n=e.index;t._cellMeasurerCache.rowHeight({index:n+t._rowIndexOffset})}));var r=n.cellMeasurerCache,i=n.columnIndexOffset,a=void 0===i?0:i,l=n.rowIndexOffset,s=void 0===l?0:l;this._cellMeasurerCache=r,this._columnIndexOffset=a,this._rowIndexOffset=s}return a()(e,[{key:"clear",value:function(e,t){this._cellMeasurerCache.clear(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getHeight(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getWidth(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.has(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"set",value:function(e,t,n,r){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,n,r)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function Qe(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 Je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qe(n,!0).forEach((function(t){b()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qe(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var et=function(e){function t(e,n){var r;o()(this,t),r=s()(this,u()(t).call(this,e,n)),b()(d()(r),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),b()(d()(r),"_deferredInvalidateColumnIndex",null),b()(d()(r),"_deferredInvalidateRowIndex",null),b()(d()(r),"_bottomLeftGridRef",(function(e){r._bottomLeftGrid=e})),b()(d()(r),"_bottomRightGridRef",(function(e){r._bottomRightGrid=e})),b()(d()(r),"_cellRendererBottomLeftGrid",(function(e){var t=e.rowIndex,n=E()(e,["rowIndex"]),o=r.props,i=o.cellRenderer,a=o.fixedRowCount;return t===o.rowCount-a?y.createElement("div",{key:n.key,style:Je({},n.style,{height:20})}):i(Je({},n,{parent:d()(r),rowIndex:t+a}))})),b()(d()(r),"_cellRendererBottomRightGrid",(function(e){var t=e.columnIndex,n=e.rowIndex,o=E()(e,["columnIndex","rowIndex"]),i=r.props,a=i.cellRenderer,l=i.fixedColumnCount,s=i.fixedRowCount;return a(Je({},o,{columnIndex:t+l,parent:d()(r),rowIndex:n+s}))})),b()(d()(r),"_cellRendererTopRightGrid",(function(e){var t=e.columnIndex,n=E()(e,["columnIndex"]),o=r.props,i=o.cellRenderer,a=o.columnCount,l=o.fixedColumnCount;return t===a-l?y.createElement("div",{key:n.key,style:Je({},n.style,{width:20})}):i(Je({},n,{columnIndex:t+l,parent:d()(r)}))})),b()(d()(r),"_columnWidthRightGrid",(function(e){var t=e.index,n=r.props,o=n.columnCount,i=n.fixedColumnCount,a=n.columnWidth,l=r.state,s=l.scrollbarSize;return l.showHorizontalScrollbar&&t===o-i?s:"function"==typeof a?a({index:t+i}):a})),b()(d()(r),"_onScroll",(function(e){var t=e.scrollLeft,n=e.scrollTop;r.setState({scrollLeft:t,scrollTop:n});var o=r.props.onScroll;o&&o(e)})),b()(d()(r),"_onScrollbarPresenceChange",(function(e){var t=e.horizontal,n=e.size,o=e.vertical,i=r.state,a=i.showHorizontalScrollbar,l=i.showVerticalScrollbar;if(t!==a||o!==l){r.setState({scrollbarSize:n,showHorizontalScrollbar:t,showVerticalScrollbar:o});var s=r.props.onScrollbarPresenceChange;"function"==typeof s&&s({horizontal:t,size:n,vertical:o})}})),b()(d()(r),"_onScrollLeft",(function(e){var t=e.scrollLeft;r._onScroll({scrollLeft:t,scrollTop:r.state.scrollTop})})),b()(d()(r),"_onScrollTop",(function(e){var t=e.scrollTop;r._onScroll({scrollTop:t,scrollLeft:r.state.scrollLeft})})),b()(d()(r),"_rowHeightBottomGrid",(function(e){var t=e.index,n=r.props,o=n.fixedRowCount,i=n.rowCount,a=n.rowHeight,l=r.state,s=l.scrollbarSize;return l.showVerticalScrollbar&&t===i-o?s:"function"==typeof a?a({index:t+o}):a})),b()(d()(r),"_topLeftGridRef",(function(e){r._topLeftGrid=e})),b()(d()(r),"_topRightGridRef",(function(e){r._topRightGrid=e}));var i=e.deferredMeasurementCache,a=e.fixedColumnCount,l=e.fixedRowCount;return r._maybeCalculateCachedStyles(!0),i&&(r._deferredMeasurementCacheBottomLeftGrid=l>0?new Xe({cellMeasurerCache:i,columnIndexOffset:0,rowIndexOffset:l}):i,r._deferredMeasurementCacheBottomRightGrid=a>0||l>0?new Xe({cellMeasurerCache:i,columnIndexOffset:a,rowIndexOffset:l}):i,r._deferredMeasurementCacheTopRightGrid=a>0?new Xe({cellMeasurerCache:i,columnIndexOffset:a,rowIndexOffset:0}):i),r}return h()(t,e),a()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,o):o}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r,i=this.props,a=i.fixedColumnCount,l=i.fixedRowCount,s=Math.max(0,n-a),c=Math.max(0,o-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:c}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:c}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:o}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:o}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,n=e.scrollTop;if(t>0||n>0){var r={};t>0&&(r.scrollLeft=t),n>0&&(r.scrollTop=n),this.setState(r)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,r=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),o=(e.scrollTop,e.scrollToRow),i=E()(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var a=this.state,l=a.scrollLeft,s=a.scrollTop;return y.createElement("div",{style:this._containerOuterStyle},y.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(i),this._renderTopRightGrid(Je({},i,{onScroll:t,scrollLeft:l}))),y.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Je({},i,{onScroll:t,scrollTop:s})),this._renderBottomRightGrid(Je({},i,{onScroll:t,onSectionRendered:n,scrollLeft:l,scrollToColumn:r,scrollToRow:o,scrollTop:s}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var r=0,o=0;o<t;o++)r+=n({index:o});this._leftGridWidth=r}else this._leftGridWidth=n*t;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(e){return e.width-this._getLeftGridWidth(e)}},{key:"_getTopGridHeight",value:function(e){var t=e.fixedRowCount,n=e.rowHeight;if(null==this._topGridHeight)if("function"==typeof n){for(var r=0,o=0;o<t;o++)r+=n({index:o});this._topGridHeight=r}else this._topGridHeight=n*t;return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t}),this.forceUpdate()}}},{key:"_maybeCalculateCachedStyles",value:function(e){var t=this.props,n=t.columnWidth,r=t.enableFixedColumnScroll,o=t.enableFixedRowScroll,i=t.height,a=t.fixedColumnCount,l=t.fixedRowCount,s=t.rowHeight,c=t.style,u=t.styleBottomLeftGrid,f=t.styleBottomRightGrid,d=t.styleTopLeftGrid,p=t.styleTopRightGrid,h=t.width,m=e||i!==this._lastRenderedHeight||h!==this._lastRenderedWidth,b=e||n!==this._lastRenderedColumnWidth||a!==this._lastRenderedFixedColumnCount,y=e||l!==this._lastRenderedFixedRowCount||s!==this._lastRenderedRowHeight;(e||m||c!==this._lastRenderedStyle)&&(this._containerOuterStyle=Je({height:i,overflow:"visible",width:h},c)),(e||m||y)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:h},this._containerBottomStyle={height:i-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:h}),(e||u!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=Je({left:0,overflowX:"hidden",overflowY:r?"auto":"hidden",position:"absolute"},u)),(e||b||f!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=Je({left:this._getLeftGridWidth(this.props),position:"absolute"},f)),(e||d!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=Je({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},d)),(e||b||p!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=Je({left:this._getLeftGridWidth(this.props),overflowX:o?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},p)),this._lastRenderedColumnWidth=n,this._lastRenderedFixedColumnCount=a,this._lastRenderedFixedRowCount=l,this._lastRenderedHeight=i,this._lastRenderedRowHeight=s,this._lastRenderedStyle=c,this._lastRenderedStyleBottomLeftGrid=u,this._lastRenderedStyleBottomRightGrid=f,this._lastRenderedStyleTopLeftGrid=d,this._lastRenderedStyleTopRightGrid=p,this._lastRenderedWidth=h}},{key:"_prepareForRender",value:function(){this._lastRenderedColumnWidth===this.props.columnWidth&&this._lastRenderedFixedColumnCount===this.props.fixedColumnCount||(this._leftGridWidth=null),this._lastRenderedFixedRowCount===this.props.fixedRowCount&&this._lastRenderedRowHeight===this.props.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(),this._lastRenderedColumnWidth=this.props.columnWidth,this._lastRenderedFixedColumnCount=this.props.fixedColumnCount,this._lastRenderedFixedRowCount=this.props.fixedRowCount,this._lastRenderedRowHeight=this.props.rowHeight}},{key:"_renderBottomLeftGrid",value:function(e){var t=e.enableFixedColumnScroll,n=e.fixedColumnCount,r=e.fixedRowCount,o=e.rowCount,i=e.hideBottomLeftGridScrollbar,a=this.state.showVerticalScrollbar;if(!n)return null;var l=a?1:0,s=this._getBottomGridHeight(e),c=this._getLeftGridWidth(e),u=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,f=i?c+u:c,d=y.createElement(G,w()({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:n,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:s,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,o-r)+l,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:f}));return i?y.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:Je({},this._bottomLeftGridStyle,{height:s,width:c,overflowY:"hidden"})},d):d}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,n=e.fixedColumnCount,r=e.fixedRowCount,o=e.rowCount,i=e.scrollToColumn,a=e.scrollToRow;return y.createElement(G,w()({},e,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,t-n),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(e),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,o-r),rowHeight:this._rowHeightBottomGrid,scrollToColumn:i-n,scrollToRow:a-r,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,n=e.fixedRowCount;return t&&n?y.createElement(G,w()({},e,{className:this.props.classNameTopLeftGrid,columnCount:t,height:this._getTopGridHeight(e),ref:this._topLeftGridRef,rowCount:n,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(e)})):null}},{key:"_renderTopRightGrid",value:function(e){var t=e.columnCount,n=e.enableFixedRowScroll,r=e.fixedColumnCount,o=e.fixedRowCount,i=e.scrollLeft,a=e.hideTopRightGridScrollbar,l=this.state,s=l.showHorizontalScrollbar,c=l.scrollbarSize;if(!o)return null;var u=s?1:0,f=this._getTopGridHeight(e),d=this._getRightGridWidth(e),p=s?c:0,h=f,m=this._topRightGridStyle;a&&(h=f+p,m=Je({},this._topRightGridStyle,{left:0}));var b=y.createElement(G,w()({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-r)+u,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:h,onScroll:n?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:o,scrollLeft:i,style:m,tabIndex:null,width:d}));return a?y.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:Je({},this._topRightGridStyle,{height:f,width:d,overflowX:"hidden"})},b):b}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft&&e.scrollLeft>=0?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}]),t}(y.PureComponent);b()(et,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1}),et.propTypes={},Object(v.polyfill)(et);var tt=function(e){function t(e,n){var r;return o()(this,t),(r=s()(this,u()(t).call(this,e,n))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},r._onScroll=r._onScroll.bind(d()(r)),r}return h()(t,e),a()(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.clientHeight,r=t.clientWidth,o=t.scrollHeight,i=t.scrollLeft,a=t.scrollTop,l=t.scrollWidth;return e({clientHeight:n,clientWidth:r,onScroll:this._onScroll,scrollHeight:o,scrollLeft:i,scrollTop:a,scrollWidth:l})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.clientWidth,r=e.scrollHeight,o=e.scrollLeft,i=e.scrollTop,a=e.scrollWidth;this.setState({clientHeight:t,clientWidth:n,scrollHeight:r,scrollLeft:o,scrollTop:i,scrollWidth:a})}}]),t}(y.PureComponent);tt.propTypes={};function nt(e){var t=e.className,n=e.columns,r=e.style;return y.createElement("div",{className:t,role:"row",style:r},n)}nt.propTypes=null;var rt={ASC:"ASC",DESC:"DESC"};function ot(e){var t=e.sortDirection,n=Object(x.default)("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===rt.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===rt.DESC});return y.createElement("svg",{className:n,width:18,height:18,viewBox:"0 0 24 24"},t===rt.ASC?y.createElement("path",{d:"M7 14l5-5 5 5z"}):y.createElement("path",{d:"M7 10l5 5 5-5z"}),y.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function it(e){var t=e.dataKey,n=e.label,r=e.sortBy,o=e.sortDirection,i=r===t,a=[y.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof n?n:null},n)];return i&&a.push(y.createElement(ot,{key:"SortIndicator",sortDirection:o})),a}function at(e){var t=e.className,n=e.columns,r=e.index,o=e.key,i=e.onRowClick,a=e.onRowDoubleClick,l=e.onRowMouseOut,s=e.onRowMouseOver,c=e.onRowRightClick,u=e.rowData,f=e.style,d={"aria-rowindex":r+1};return(i||a||l||s||c)&&(d["aria-label"]="row",d.tabIndex=0,i&&(d.onClick=function(e){return i({event:e,index:r,rowData:u})}),a&&(d.onDoubleClick=function(e){return a({event:e,index:r,rowData:u})}),l&&(d.onMouseOut=function(e){return l({event:e,index:r,rowData:u})}),s&&(d.onMouseOver=function(e){return s({event:e,index:r,rowData:u})}),c&&(d.onContextMenu=function(e){return c({event:e,index:r,rowData:u})})),y.createElement("div",w()({},d,{className:t,key:o,role:"row",style:f}),n)}ot.propTypes={},it.propTypes=null,at.propTypes=null;var lt=function(e){function t(){return o()(this,t),s()(this,u()(t).apply(this,arguments))}return h()(t,e),t}(y.Component);function st(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 ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?st(n,!0).forEach((function(t){b()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):st(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}b()(lt,"defaultProps",{cellDataGetter:function(e){var t=e.dataKey,n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]},cellRenderer:function(e){var t=e.cellData;return null==t?"":String(t)},defaultSortDirection:rt.ASC,flexGrow:0,flexShrink:1,headerRenderer:it,style:{}}),lt.propTypes={};var ut=function(e){function t(e){var n;return o()(this,t),(n=s()(this,u()(t).call(this,e))).state={scrollbarWidth:0},n._createColumn=n._createColumn.bind(d()(n)),n._createRow=n._createRow.bind(d()(n)),n._onScroll=n._onScroll.bind(d()(n)),n._onSectionRendered=n._onSectionRendered.bind(d()(n)),n._setRef=n._setRef.bind(d()(n)),n}return h()(t,e),a()(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,n=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:n}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:n,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:o,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.Grid){var e=Object(ie.findDOMNode)(this.Grid),t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.className,o=t.disableHeader,i=t.gridClassName,a=t.gridStyle,l=t.headerHeight,s=t.headerRowRenderer,c=t.height,u=t.id,f=t.noRowsRenderer,d=t.rowClassName,p=t.rowStyle,h=t.scrollToIndex,m=t.style,b=t.width,v=this.state.scrollbarWidth,g=o?c:c-l,S="function"==typeof d?d({index:-1}):d,O="function"==typeof p?p({index:-1}):p;return this._cachedColumnStyles=[],y.Children.toArray(n).forEach((function(t,n){var r=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=ct({overflow:"hidden"},r)})),y.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":y.Children.toArray(n).length,"aria-rowcount":this.props.rowCount,className:Object(x.default)("ReactVirtualized__Table",r),id:u,role:"grid",style:m},!o&&s({className:Object(x.default)("ReactVirtualized__Table__headerRow",S),columns:this._getHeaderColumns(),style:ct({height:l,overflow:"hidden",paddingRight:v,width:b},O)}),y.createElement(G,w()({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:Object(x.default)("ReactVirtualized__Table__Grid",i),cellRenderer:this._createRow,columnWidth:b,columnCount:1,height:g,id:void 0,noContentRenderer:f,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:v,scrollToRow:h,style:ct({},a,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,r=e.isScrolling,o=e.parent,i=e.rowData,a=e.rowIndex,l=this.props.onColumnClick,s=t.props,c=s.cellDataGetter,u=s.cellRenderer,f=s.className,d=s.columnData,p=s.dataKey,h=s.id,m=u({cellData:c({columnData:d,dataKey:p,rowData:i}),columnData:d,columnIndex:n,dataKey:p,isScrolling:r,parent:o,rowData:i,rowIndex:a}),b=this._cachedColumnStyles[n],v="string"==typeof m?m:null;return y.createElement("div",{"aria-colindex":n+1,"aria-describedby":h,className:Object(x.default)("ReactVirtualized__Table__rowColumn",f),key:"Row"+a+"-Col"+n,onClick:function(e){l&&l({columnData:d,dataKey:p,event:e})},role:"gridcell",style:b,title:v},m)}},{key:"_createHeader",value:function(e){var t,n,r,o,i,a=e.column,l=e.index,s=this.props,c=s.headerClassName,u=s.headerStyle,f=s.onHeaderClick,d=s.sort,p=s.sortBy,h=s.sortDirection,m=a.props,b=m.columnData,v=m.dataKey,g=m.defaultSortDirection,w=m.disableSort,S=m.headerRenderer,O=m.id,E=m.label,k=!w&&d,_=Object(x.default)("ReactVirtualized__Table__headerColumn",c,a.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:k}),C=this._getFlexStyleForColumn(a,ct({},u,{},a.props.headerStyle)),A=S({columnData:b,dataKey:v,disableSort:w,label:E,sortBy:p,sortDirection:h});if(k||f){var T=p!==v?g:h===rt.DESC?rt.ASC:rt.DESC,j=function(e){k&&d({defaultSortDirection:g,event:e,sortBy:v,sortDirection:T}),f&&f({columnData:b,dataKey:v,event:e})};i=a.props["aria-label"]||E||v,o="none",r=0,t=j,n=function(e){"Enter"!==e.key&&" "!==e.key||j(e)}}return p===v&&(o=h===rt.ASC?"ascending":"descending"),y.createElement("div",{"aria-label":i,"aria-sort":o,className:_,id:O,key:"Header-Col"+l,onClick:t,onKeyDown:n,role:"columnheader",style:C,tabIndex:r},A)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,r=e.isScrolling,o=e.key,i=e.parent,a=e.style,l=this.props,s=l.children,c=l.onRowClick,u=l.onRowDoubleClick,f=l.onRowRightClick,d=l.onRowMouseOver,p=l.onRowMouseOut,h=l.rowClassName,m=l.rowGetter,b=l.rowRenderer,v=l.rowStyle,g=this.state.scrollbarWidth,w="function"==typeof h?h({index:n}):h,S="function"==typeof v?v({index:n}):v,O=m({index:n}),E=y.Children.toArray(s).map((function(e,o){return t._createColumn({column:e,columnIndex:o,isScrolling:r,parent:i,rowData:O,rowIndex:n,scrollbarWidth:g})})),k=Object(x.default)("ReactVirtualized__Table__row",w),_=ct({},a,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:g},S);return b({className:k,columns:E,index:n,isScrolling:r,key:o,onRowClick:c,onRowDoubleClick:u,onRowRightClick:f,onRowMouseOver:d,onRowMouseOut:p,rowData:O,style:_})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),r=ct({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(r.maxWidth=e.props.maxWidth),e.props.minWidth&&(r.minWidth=e.props.minWidth),r}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:y.Children.toArray(n)).map((function(t,n){return e._createHeader({column:t,index:n})}))}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:r})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,r=e.rowStartIndex,o=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:r,stopIndex:o})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),t}(y.PureComponent);b()(ut,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:V,overscanRowCount:10,rowRenderer:at,headerRowRenderer:nt,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),ut.propTypes={};var ft=[],dt=null,pt=null;function ht(){pt&&(pt=null,document.body&&null!=dt&&(document.body.style.pointerEvents=dt),dt=null)}function mt(){ht(),ft.forEach((function(e){return e.__resetIsScrolling()}))}function bt(e){e.currentTarget===window&&null==dt&&document.body&&(dt=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){pt&&D(pt);var e=0;ft.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),pt=z(mt,e)}(),ft.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function yt(e,t){ft.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",bt),ft.push(e)}function vt(e,t){(ft=ft.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",bt),pt&&(D(pt),ht()))}var gt,wt,xt=function(e){return e===window},St=function(e){return e.getBoundingClientRect()};function Ot(e,t){if(e){if(xt(e)){var n=window,r=n.innerHeight,o=n.innerWidth;return{height:"number"==typeof r?r:0,width:"number"==typeof o?o:0}}return St(e)}return{height:t.serverHeight,width:t.serverWidth}}function Et(e,t){if(xt(t)&&document.documentElement){var n=document.documentElement,r=St(e),o=St(n);return{top:r.top-o.top,left:r.left-o.left}}var i=kt(t),a=St(e),l=St(t);return{top:a.top+i.top-l.top,left:a.left+i.left-l.left}}function kt(e){return xt(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}function _t(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 Ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_t(n,!0).forEach((function(t){b()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_t(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var At=function(){return"undefined"!=typeof window?window:void 0},Tt=(wt=gt=function(e){function t(){var e,n;o()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=s()(this,(e=u()(t)).call.apply(e,[this].concat(i))),b()(d()(n),"_window",At()),b()(d()(n),"_isMounted",!1),b()(d()(n),"_positionFromTop",0),b()(d()(n),"_positionFromLeft",0),b()(d()(n),"_detectElementResize",void 0),b()(d()(n),"_child",void 0),b()(d()(n),"state",Ct({},Ot(n.props.scrollElement,n.props),{isScrolling:!1,scrollLeft:0,scrollTop:0})),b()(d()(n),"_registerChild",(function(e){!e||e instanceof Element||console.warn("WindowScroller registerChild expects to be passed Element or null"),n._child=e,n.updatePosition()})),b()(d()(n),"_onChildScroll",(function(e){var t=e.scrollTop;if(n.state.scrollTop!==t){var r=n.props.scrollElement;r&&("function"==typeof r.scrollTo?r.scrollTo(0,t+n._positionFromTop):r.scrollTop=t+n._positionFromTop)}})),b()(d()(n),"_registerResizeListener",(function(e){e===window?window.addEventListener("resize",n._onResize,!1):n._detectElementResize.addResizeListener(e,n._onResize)})),b()(d()(n),"_unregisterResizeListener",(function(e){e===window?window.removeEventListener("resize",n._onResize,!1):e&&n._detectElementResize.removeResizeListener(e,n._onResize)})),b()(d()(n),"_onResize",(function(){n.updatePosition()})),b()(d()(n),"__handleWindowScrollEvent",(function(){if(n._isMounted){var e=n.props.onScroll,t=n.props.scrollElement;if(t){var r=kt(t),o=Math.max(0,r.left-n._positionFromLeft),i=Math.max(0,r.top-n._positionFromTop);n.setState({isScrolling:!0,scrollLeft:o,scrollTop:i}),e({scrollLeft:o,scrollTop:i})}}})),b()(d()(n),"__resetIsScrolling",(function(){n.setState({isScrolling:!1})})),n}return h()(t,e),a()(t,[{key:"updatePosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=this.props.onResize,n=this.state,r=n.height,o=n.width,i=this._child||ie.findDOMNode(this);if(i instanceof Element&&e){var a=Et(i,e);this._positionFromTop=a.top,this._positionFromLeft=a.left}var l=Ot(e,this.props);r===l.height&&o===l.width||(this.setState({height:l.height,width:l.width}),t({height:l.height,width:l.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=Object(J.a)(),this.updatePosition(e),e&&(yt(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.scrollElement,r=e.scrollElement;r!==n&&null!=r&&null!=n&&(this.updatePosition(n),vt(this,r),yt(this,n),this._unregisterResizeListener(r),this._registerResizeListener(n))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(vt(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,r=t.scrollTop,o=t.scrollLeft,i=t.height,a=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:i,isScrolling:n,scrollLeft:o,scrollTop:r,width:a})}}]),t}(y.PureComponent),b()(gt,"propTypes",null),wt);b()(Tt,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:At(),serverHeight:0,serverWidth:0})},1662:function(e,t,n){var r=n(55),o=n(625);r({target:"Number",stat:!0,forced:Number.parseInt!=o},{parseInt:o})},1668:function(e,t,n){var r=n(35),o=n(1669);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1669:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}@keyframes bottom-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes up-bottom{0%{transform:translateY(0)}to{transform:translateY(100%)}}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .AnnotationStylePopup{width:100%;margin:0;position:relative;max-width:none;border-radius:4px 4px 0 0;border:0;padding-bottom:24px;box-shadow:none}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .AnnotationStylePopup{width:100%;margin:0;position:relative;max-width:none;border-radius:4px 4px 0 0;border:0;padding-bottom:24px;box-shadow:none}}.AnnotationStylePopup .back-to-menu-container{margin-top:var(--padding-medium);margin-inline-end:var(--padding-medium);margin-inline-start:var(--padding-medium);padding-bottom:var(--padding-small);border-bottom:1px solid var(--border)}.AnnotationStylePopup .Button.back-to-menu-button{margin:0;width:100%;height:32px;border-radius:0;justify-content:flex-start}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .AnnotationStylePopup .Button.back-to-menu-button{width:100%;height:32px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .AnnotationStylePopup .Button.back-to-menu-button{width:100%;height:32px}}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1672:function(e,t,n){var r=n(1673),o=n(626),i=/[&<>"']/g,a=RegExp(i.source);e.exports=function(e){return(e=o(e))&&a.test(e)?e.replace(i,r):e}},1673:function(e,t,n){var r=n(1674)({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});e.exports=r},1674:function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},1675:function(e,t){function n(e,t,p,h,m){if(e===t)return e?[[0,e]]:[];if(null!=p){var b=function(e,t,n){var r="number"==typeof n?{index:n,length:0}:n.oldRange,o="number"==typeof n?null:n.newRange,i=e.length,a=t.length;if(0===r.length&&(null===o||0===o.length)){var l=r.index,s=e.slice(0,l),c=e.slice(l),u=o?o.index:null,f=l+a-i;if((null===u||u===f)&&!(f<0||f>a)){var d=t.slice(0,f);if((w=t.slice(f))===c){var p=Math.min(l,f),h=s.slice(0,p),m=d.slice(0,p);if(h===m){var b=s.slice(p),v=d.slice(p);return y(h,b,v,c)}}}if(null===u||u===l){var g=l,w=(d=t.slice(0,g),t.slice(g));if(d===s){var x=Math.min(i-g,a-g),S=c.slice(c.length-x),O=w.slice(w.length-x);if(S===O){b=c.slice(0,c.length-x),v=w.slice(0,w.length-x);return y(s,b,v,S)}}}}if(r.length>0&&o&&0===o.length){h=e.slice(0,r.index),S=e.slice(r.index+r.length),p=h.length,x=S.length;if(!(a<p+x)){m=t.slice(0,p),O=t.slice(a-x);if(h===m&&S===O){b=e.slice(p,i-x),v=t.slice(p,a-x);return y(h,b,v,S)}}}return null}(e,t,p);if(b)return b}var v=o(e,t),g=e.substring(0,v);v=a(e=e.substring(v),t=t.substring(v));var w=e.substring(e.length-v),x=function(e,t){var i;if(!e)return[[1,t]];if(!t)return[[-1,e]];var l=e.length>t.length?e:t,s=e.length>t.length?t:e,c=l.indexOf(s);if(-1!==c)return i=[[1,l.substring(0,c)],[0,s],[1,l.substring(c+s.length)]],e.length>t.length&&(i[0][0]=i[2][0]=-1),i;if(1===s.length)return[[-1,e],[1,t]];var u=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function i(e,t,n){for(var r,i,l,s,c=e.substring(n,n+Math.floor(e.length/4)),u=-1,f="";-1!==(u=t.indexOf(c,u+1));){var d=o(e.substring(n),t.substring(u)),p=a(e.substring(0,n),t.substring(0,u));f.length<p+d&&(f=t.substring(u-p,u)+t.substring(u,u+d),r=e.substring(0,n-p),i=e.substring(n+d),l=t.substring(0,u-p),s=t.substring(u+d))}return 2*f.length>=e.length?[r,i,l,s,f]:null}var l,s,c,u,f,d=i(n,r,Math.ceil(n.length/4)),p=i(n,r,Math.ceil(n.length/2));if(!d&&!p)return null;l=p?d&&d[4].length>p[4].length?d:p:d;e.length>t.length?(s=l[0],c=l[1],u=l[2],f=l[3]):(u=l[0],f=l[1],s=l[2],c=l[3]);var h=l[4];return[s,c,u,f,h]}(e,t);if(u){var f=u[0],d=u[1],p=u[2],h=u[3],m=u[4],b=n(f,p),y=n(d,h);return b.concat([[0,m]],y)}return function(e,t){for(var n=e.length,o=t.length,i=Math.ceil((n+o)/2),a=i,l=2*i,s=new Array(l),c=new Array(l),u=0;u<l;u++)s[u]=-1,c[u]=-1;s[a+1]=0,c[a+1]=0;for(var f=n-o,d=f%2!=0,p=0,h=0,m=0,b=0,y=0;y<i;y++){for(var v=-y+p;v<=y-h;v+=2){for(var g=a+v,w=(k=v===-y||v!==y&&s[g-1]<s[g+1]?s[g+1]:s[g-1]+1)-v;k<n&&w<o&&e.charAt(k)===t.charAt(w);)k++,w++;if(s[g]=k,k>n)h+=2;else if(w>o)p+=2;else if(d){if((O=a+f-v)>=0&&O<l&&-1!==c[O]){var x=n-c[O];if(k>=x)return r(e,t,k,w)}}}for(var S=-y+m;S<=y-b;S+=2){for(var O=a+S,E=(x=S===-y||S!==y&&c[O-1]<c[O+1]?c[O+1]:c[O-1]+1)-S;x<n&&E<o&&e.charAt(n-x-1)===t.charAt(o-E-1);)x++,E++;if(c[O]=x,x>n)b+=2;else if(E>o)m+=2;else if(!d){if((g=a+f-S)>=0&&g<l&&-1!==s[g]){var k=s[g];w=a+k-g;if(k>=(x=n-x))return r(e,t,k,w)}}}}return[[-1,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-v),t=t.substring(0,t.length-v));return g&&x.unshift([0,g]),w&&x.push([0,w]),d(x,m),h&&function(e){var t=!1,n=[],r=0,o=null,p=0,h=0,m=0,b=0,y=0;for(;p<e.length;)0==e[p][0]?(n[r++]=p,h=b,m=y,b=0,y=0,o=e[p][1]):(1==e[p][0]?b+=e[p][1].length:y+=e[p][1].length,o&&o.length<=Math.max(h,m)&&o.length<=Math.max(b,y)&&(e.splice(n[r-1],0,[-1,o]),e[n[r-1]+1][0]=1,r--,r--,p=r>0?n[r-1]:-1,h=0,m=0,b=0,y=0,o=null,t=!0)),p++;t&&d(e);(function(e){function t(e,t){if(!e||!t)return 6;var n=e.charAt(e.length-1),r=t.charAt(0),o=n.match(l),i=r.match(l),a=o&&n.match(s),d=i&&r.match(s),p=a&&n.match(c),h=d&&r.match(c),m=p&&e.match(u),b=h&&t.match(f);return m||b?5:p||h?4:o&&!a&&d?3:a||d?2:o||i?1:0}var n=1;for(;n<e.length-1;){if(0==e[n-1][0]&&0==e[n+1][0]){var r=e[n-1][1],o=e[n][1],i=e[n+1][1],d=a(r,o);if(d){var p=o.substring(o.length-d);r=r.substring(0,r.length-d),o=p+o.substring(0,o.length-d),i=p+i}for(var h=r,m=o,b=i,y=t(r,o)+t(o,i);o.charAt(0)===i.charAt(0);){r+=o.charAt(0),o=o.substring(1)+i.charAt(0),i=i.substring(1);var v=t(r,o)+t(o,i);v>=y&&(y=v,h=r,m=o,b=i)}e[n-1][1]!=h&&(h?e[n-1][1]=h:(e.splice(n-1,1),n--),e[n][1]=m,b?e[n+1][1]=b:(e.splice(n+1,1),n--))}n++}})(e),p=1;for(;p<e.length;){if(-1==e[p-1][0]&&1==e[p][0]){var v=e[p-1][1],g=e[p][1],w=i(v,g),x=i(g,v);w>=x?(w>=v.length/2||w>=g.length/2)&&(e.splice(p,0,[0,g.substring(0,w)]),e[p-1][1]=v.substring(0,v.length-w),e[p+1][1]=g.substring(w),p++):(x>=v.length/2||x>=g.length/2)&&(e.splice(p,0,[0,v.substring(0,x)]),e[p-1][0]=1,e[p-1][1]=g.substring(0,g.length-x),e[p+1][0]=-1,e[p+1][1]=v.substring(x),p++),p++}p++}}(x),x}function r(e,t,r,o){var i=e.substring(0,r),a=t.substring(0,o),l=e.substring(r),s=t.substring(o),c=n(i,a),u=n(l,s);return c.concat(u)}function o(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(i,o)==t.substring(i,o)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return p(e.charCodeAt(o-1))&&o--,o}function i(e,t){var n=e.length,r=t.length;if(0==n||0==r)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));var o=Math.min(n,r);if(e==t)return o;for(var i=0,a=1;;){var l=e.substring(o-a),s=t.indexOf(l);if(-1==s)return i;a+=s,0!=s&&e.substring(o-a)!=t.substring(0,a)||(i=a,a++)}}function a(e,t){if(!e||!t||e.slice(-1)!==t.slice(-1))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(e.length-o,e.length-i)==t.substring(t.length-o,t.length-i)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return h(e.charCodeAt(e.length-o))&&o--,o}var l=/[^a-zA-Z0-9]/,s=/\s/,c=/[\r\n]/,u=/\n\r?\n$/,f=/^\r?\n\r?\n/;function d(e,t){e.push([0,""]);for(var n,r=0,i=0,l=0,s="",c="";r<e.length;)if(r<e.length-1&&!e[r][1])e.splice(r,1);else switch(e[r][0]){case 1:l++,c+=e[r][1],r++;break;case-1:i++,s+=e[r][1],r++;break;case 0:var u=r-l-i-1;if(t){if(u>=0&&b(e[u][1])){var f=e[u][1].slice(-1);if(e[u][1]=e[u][1].slice(0,-1),s=f+s,c=f+c,!e[u][1]){e.splice(u,1),r--;var p=u-1;e[p]&&1===e[p][0]&&(l++,c=e[p][1]+c,p--),e[p]&&-1===e[p][0]&&(i++,s=e[p][1]+s,p--),u=p}}if(m(e[r][1])){f=e[r][1].charAt(0);e[r][1]=e[r][1].slice(1),s+=f,c+=f}}if(r<e.length-1&&!e[r][1]){e.splice(r,1);break}if(s.length>0||c.length>0){s.length>0&&c.length>0&&(0!==(n=o(c,s))&&(u>=0?e[u][1]+=c.substring(0,n):(e.splice(0,0,[0,c.substring(0,n)]),r++),c=c.substring(n),s=s.substring(n)),0!==(n=a(c,s))&&(e[r][1]=c.substring(c.length-n)+e[r][1],c=c.substring(0,c.length-n),s=s.substring(0,s.length-n)));var h=l+i;0===s.length&&0===c.length?(e.splice(r-h,h),r-=h):0===s.length?(e.splice(r-h,h,[1,c]),r=r-h+1):0===c.length?(e.splice(r-h,h,[-1,s]),r=r-h+1):(e.splice(r-h,h,[-1,s],[1,c]),r=r-h+2)}0!==r&&0===e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,l=0,i=0,s="",c=""}""===e[e.length-1][1]&&e.pop();var y=!1;for(r=1;r<e.length-1;)0===e[r-1][0]&&0===e[r+1][0]&&(e[r][1].substring(e[r][1].length-e[r-1][1].length)===e[r-1][1]?(e[r][1]=e[r-1][1]+e[r][1].substring(0,e[r][1].length-e[r-1][1].length),e[r+1][1]=e[r-1][1]+e[r+1][1],e.splice(r-1,1),y=!0):e[r][1].substring(0,e[r+1][1].length)==e[r+1][1]&&(e[r-1][1]+=e[r+1][1],e[r][1]=e[r][1].substring(e[r+1][1].length)+e[r+1][1],e.splice(r+1,1),y=!0)),r++;y&&d(e,t)}function p(e){return e>=55296&&e<=56319}function h(e){return e>=56320&&e<=57343}function m(e){return h(e.charCodeAt(0))}function b(e){return p(e.charCodeAt(e.length-1))}function y(e,t,n,r){return b(e)||m(r)?null:function(e){for(var t=[],n=0;n<e.length;n++)e[n][1].length>0&&t.push(e[n]);return t}([[0,e],[-1,t],[1,n],[0,r]])}function v(e,t,r,o){return n(e,t,r,o,!0)}v.INSERT=1,v.DELETE=-1,v.EQUAL=0,e.exports=v},1676:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1620),o=n(1621);var i;!function(e){e.compose=function(e={},t={},n=!1){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});let o=r(t);n||(o=Object.keys(o).reduce((e,t)=>(null!=o[t]&&(e[t]=o[t]),e),{}));for(const n in e)void 0!==e[n]&&void 0===t[n]&&(o[n]=e[n]);return Object.keys(o).length>0?o:void 0},e.diff=function(e={},t={}){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});const n=Object.keys(e).concat(Object.keys(t)).reduce((n,r)=>(o(e[r],t[r])||(n[r]=void 0===t[r]?null:t[r]),n),{});return Object.keys(n).length>0?n:void 0},e.invert=function(e={},t={}){e=e||{};const n=Object.keys(t).reduce((n,r)=>(t[r]!==e[r]&&void 0!==e[r]&&(n[r]=t[r]),n),{});return Object.keys(e).reduce((n,r)=>(e[r]!==t[r]&&void 0===t[r]&&(n[r]=null),n),n)},e.transform=function(e,t,n=!1){if("object"!=typeof e)return t;if("object"!=typeof t)return;if(!n)return t;const r=Object.keys(t).reduce((n,r)=>(void 0===e[r]&&(n[r]=t[r]),n),{});return Object.keys(r).length>0?r:void 0}}(i||(i={})),t.default=i},1677:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1622);t.default=class{constructor(e){this.ops=e,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(e){e||(e=1/0);const t=this.ops[this.index];if(t){const n=this.offset,o=r.default.length(t);if(e>=o-n?(e=o-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};{const r={};return t.attributes&&(r.attributes=t.attributes),"number"==typeof t.retain?r.retain=e:"object"==typeof t.retain&&null!==t.retain?r.retain=t.retain:"string"==typeof t.insert?r.insert=t.insert.substr(n,e):r.insert=t.insert,r}}return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?r.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const e=this.ops[this.index];return e?"number"==typeof e.delete?"delete":"number"==typeof e.retain||"object"==typeof e.retain&&null!==e.retain?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);{const e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}}return[]}}},1678:function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o="~";function i(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function l(e,t,n,r,i){if("function"!=typeof n)throw new TypeError("The listener must be a function");var l=new a(n,r||e,i),s=o?o+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],l]:e._events[s].push(l):(e._events[s]=l,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(o=!1)),c.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},c.prototype.listeners=function(e){var t=o?o+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,i=n.length,a=new Array(i);r<i;r++)a[r]=n[r].fn;return a},c.prototype.listenerCount=function(e){var t=o?o+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,r,i,a){var l=o?o+e:e;if(!this._events[l])return!1;var s,c,u=this._events[l],f=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),f){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,r),!0;case 5:return u.fn.call(u.context,t,n,r,i),!0;case 6:return u.fn.call(u.context,t,n,r,i,a),!0}for(c=1,s=new Array(f-1);c<f;c++)s[c-1]=arguments[c];u.fn.apply(u.context,s)}else{var d,p=u.length;for(c=0;c<p;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),f){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,r);break;default:if(!s)for(d=1,s=new Array(f-1);d<f;d++)s[d-1]=arguments[d];u[c].fn.apply(u[c].context,s)}}return!0},c.prototype.on=function(e,t,n){return l(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return l(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,r){var i=o?o+e:e;if(!this._events[i])return this;if(!t)return s(this,i),this;var a=this._events[i];if(a.fn)a.fn!==t||r&&!a.once||n&&a.context!==n||s(this,i);else{for(var l=0,c=[],u=a.length;l<u;l++)(a[l].fn!==t||r&&!a[l].once||n&&a[l].context!==n)&&c.push(a[l]);c.length?this._events[i]=1===c.length?c[0]:c:s(this,i)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=o?o+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=o,c.EventEmitter=c,e.exports=c},1679:function(e,t,n){"use strict";var r,o=n(52),i=n(70),a=n(376),l=n(474),s=n(477),c=n(1680),u=n(101),f=n(624),d=n(143).enforce,p=n(622),h=!o.ActiveXObject&&"ActiveXObject"in o,m=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},b=s("WeakMap",m,c);if(p&&h){r=c.getConstructor(m,"WeakMap",!0),l.enable();var y=b.prototype,v=i(y.delete),g=i(y.has),w=i(y.get),x=i(y.set);a(y,{delete:function(e){if(u(e)&&!f(e)){var t=d(this);return t.frozen||(t.frozen=new r),v(this,e)||t.frozen.delete(e)}return v(this,e)},has:function(e){if(u(e)&&!f(e)){var t=d(this);return t.frozen||(t.frozen=new r),g(this,e)||t.frozen.has(e)}return g(this,e)},get:function(e){if(u(e)&&!f(e)){var t=d(this);return t.frozen||(t.frozen=new r),g(this,e)?w(this,e):t.frozen.get(e)}return w(this,e)},set:function(e,t){if(u(e)&&!f(e)){var n=d(this);n.frozen||(n.frozen=new r),g(this,e)?x(this,e,t):n.frozen.set(e,t)}else x(this,e,t);return this}})}},1680:function(e,t,n){"use strict";var r=n(70),o=n(376),i=n(474).getWeakData,a=n(100),l=n(101),s=n(207),c=n(268),u=n(121),f=n(95),d=n(143),p=d.set,h=d.getterFor,m=u.find,b=u.findIndex,y=r([].splice),v=0,g=function(e){return e.frozen||(e.frozen=new w)},w=function(){this.entries=[]},x=function(e,t){return m(e.entries,(function(e){return e[0]===t}))};w.prototype={get:function(e){var t=x(this,e);if(t)return t[1]},has:function(e){return!!x(this,e)},set:function(e,t){var n=x(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=b(this.entries,(function(t){return t[0]===e}));return~t&&y(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var u=e((function(e,o){s(e,d),p(e,{type:t,id:v++,frozen:void 0}),null!=o&&c(o,e[r],{that:e,AS_ENTRIES:n})})),d=u.prototype,m=h(t),b=function(e,t,n){var r=m(e),o=i(a(t),!0);return!0===o?g(r).set(t,n):o[r.id]=n,e};return o(d,{delete:function(e){var t=m(this);if(!l(e))return!1;var n=i(e);return!0===n?g(t).delete(e):n&&f(n,t.id)&&delete n[t.id]},has:function(e){var t=m(this);if(!l(e))return!1;var n=i(e);return!0===n?g(t).has(e):n&&f(n,t.id)}}),o(d,n?{get:function(e){var t=m(this);if(l(e)){var n=i(e);return!0===n?g(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return b(this,e,t)}}:{add:function(e){return b(this,e,!0)}}),u}}},1681:function(e,t,n){var r=n(55),o=n(52),i=n(623),a=n(145),l=n(308),s=n(307),c=o.process;r({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(e){l(arguments.length,1),a(e);var t=s&&c.domain;i(t?t.bind(e):e)}})},1682:function(e,t,n){var r=n(35),o=n(1683);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1683:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,'.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{inset-inline-start:-100000px;height:1px;overflow-y:hidden;position:absolute;inset-block-start:50%}.ql-clipboard p{margin:0;padding:0}.ql-container .ql-editor{box-sizing:border-box;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;-o-tab-size:4;tab-size:4;-moz-tab-size:4;text-align:start;white-space:pre-wrap;word-wrap:break-word;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ql-editor>*{cursor:text}.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor ol,.ql-editor p,.ql-editor pre,.ql-editor ul{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor p{margin:0;padding:0}.ql-editor ol,.ql-editor ul{padding-inline-start:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"\\2022"}.ql-editor ul[data-checked=false],.ql-editor ul[data-checked=true]{pointer-events:none}.ql-editor ul[data-checked=false]>li *,.ql-editor ul[data-checked=true]>li *{pointer-events:all}.ql-editor ul[data-checked=false]>li:before,.ql-editor ul[data-checked=true]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"\\2611"}.ql-editor ul[data-checked=false]>li:before{content:"\\2610"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl):before{margin-inline-start:-1.5em;margin-inline-end:.3em;text-align:end}.ql-editor li.ql-direction-rtl:before{margin-inline-start:.3em;margin-inline-end:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-inline-start:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-inline-end:1.5em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-inline-start:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-inline-start:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-inline-end:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-inline-end:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-inline-start:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-inline-start:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-inline-end:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-inline-end:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-inline-start:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-inline-start:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-inline-end:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-inline-end:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-inline-start:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-inline-start:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-inline-end:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-inline-end:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-inline-start:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-inline-start:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-inline-end:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-inline-end:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-inline-start:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-inline-start:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-inline-end:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-inline-end:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-inline-start:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-inline-start:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-inline-end:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-inline-end:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-inline-start:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-inline-start:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-inline-end:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-inline-end:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-inline-start:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-inline-start:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-inline-end:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-inline-end:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:end}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;inset-inline-start:15px;pointer-events:none;position:absolute;inset-inline-end:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:inline-start;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:inline-start;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover{color:#06c}.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter{stroke:#06c}@media(pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-stroke.ql-thin,.ql-snow .ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-inline-start:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-inline-start:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{white-space:pre-wrap;margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:inline-start;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-inline-start:8px;padding-inline-end:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;inset-block-start:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{inset-inline-end:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:inline-start;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;inset-inline-end:0;inset-block-start:50%;width:18px}.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-item:before,.ql-snow .ql-picker.ql-header .ql-picker-label:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-item:before,.ql-snow .ql-picker.ql-font .ql-picker-label:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-item:before,.ql-snow .ql-picker.ql-size .ql-picker-label:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-inline-end:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:0 2px 8px rgba(0,0,0,.2)}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-inline-end:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-inline-end:1px solid #ccc;content:"Edit";margin-inline-start:16px;padding-inline-end:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-inline-start:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-inline-end:0;content:"Save";padding-inline-end:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}',""])},1684:function(e,t,n){var r=n(35),o=n(1685);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1685:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.comment-textarea{position:relative}.comment-textarea .ql-toolbar{display:none}.comment-textarea .ql-container{border:none}.comment-textarea .ql-container .ql-editor{width:100%;padding:4px 6px;border:1px solid var(--border);border-radius:4px;color:var(--text-color);resize:none;overflow:hidden;box-sizing:border-box}.comment-textarea .ql-container .ql-editor:focus{outline:none;border:1px solid var(--focus-border)}.comment-textarea .ql-container .ql-editor.ql-blank:before{inset-inline-start:8px;list-style-type:none;font-style:normal;color:var(--placeholder-text)}.comment-textarea .ql-container .ql-editor p{margin:0;word-break:break-word}.comment-textarea .ql-container .ql-editor ul>li:before{content:none!important}.comment-textarea .ql-container.ql-snow{border:none}.comment-textarea .ql-container.ql-snow:focus{outline:var(--focus-visible-outline);border-radius:4px}.comment-textarea .add-attachment{position:absolute;inset-block-end:2px;inset-inline-end:2px;width:24px;height:24px}.comment-textarea .add-attachment:hover{background-color:var(--blue-1)}.comment-textarea .add-attachment .Icon{padding:3px}.ql-editor ul>li:before{content:none!important}.mention__element{width:170px;z-index:9001!important;max-height:200px;overflow-y:auto;overflow-y:overlay;overflow-x:hidden;background-color:var(--component-background);border:1px solid var(--border);border-radius:4px}.mention__suggestions__list{width:100%;font-size:14px;margin-top:0;padding-inline-start:0!important;list-style:none;word-wrap:break-word;border-radius:4px}.mention__suggestions__item{background-color:var(--component-background);white-space:nowrap;margin-inline-start:0;padding-inline-start:0;text-overflow:clip;padding:7px 5px 1px!important;margin:0;width:100%;cursor:pointer}.mention__suggestions__item .email{margin-top:2px;font-size:12px;white-space:normal;color:var(--faded-text)}.mention__suggestions__item.selected{background-color:var(--view-header-button-active)!important}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1686:function(e,t,n){var r=n(35),o=n(1687);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1687:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.NotePopup .options.modular-ui .option:hover{cursor:pointer;background:var(--primary-button-hover);color:var(--gray-0)}.NotePopup{flex-grow:0;display:flex;justify-content:flex-end;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:28px;height:28px;position:relative}.NotePopup .Button.overflow{width:28px;height:28px;border-radius:4px;display:flex;justify-content:center;align-items:center}.NotePopup .Button.overflow .Icon{width:24px;height:24px}.NotePopup .Button.overflow:hover{background:var(--blue-1)}.NotePopup .Button.overflow.active{background:var(--popup-button-active)}.NotePopup .options{display:flex;flex-direction:column;box-shadow:0 0 3px 0 var(--box-shadow);z-index:80;position:absolute;border-radius:4px;background:var(--component-background);inset-block-start:40px;width:-moz-max-content;width:max-content}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.NotePopup .options{inset-inline-end:0}}.NotePopup .options .note-popup-option{padding:0;border:none;background-color:transparent;align-items:flex-start}:host(:not([data-tabbing=true])) .NotePopup .options .note-popup-option,html:not([data-tabbing=true]) .NotePopup .options .note-popup-option{outline:none}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .NotePopup .options .note-popup-option{font-size:13px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .NotePopup .options .note-popup-option{font-size:13px}}.NotePopup .options.options-reply{inset-block-start:30px}.NotePopup .options .option{display:flex;flex-direction:column;justify-content:center;height:28px;padding-inline-start:8px;padding-inline-end:17px;border-radius:0}.NotePopup .options .option:hover{background-color:var(--popup-button-hover)}.NotePopup .options .option:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.NotePopup .options .option:last-child{border-bottom-right-radius:4px}.NotePopup .Button{height:28px}.NotePopup .Button.active{background:var(--popup-button-active)}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .NotePopup .Button.note-popup-toggle-trigger{width:28px;height:28px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .NotePopup .Button.note-popup-toggle-trigger{width:28px;height:28px}}.NotePopupFlyout{min-width:unset!important;max-width:unset!important}.NotePopupFlyout .flyout-item-container{height:unset!important;margin:unset!important}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1688:function(e,t,n){var r=n(35),o=n(1689);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1689:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.NoteHeader{padding-inline-end:12px;position:relative;flex:1;color:var(--text-color);display:flex}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.NoteHeader{flex:none}}.NoteHeader .type-icon{margin:2px;width:24px;height:24px}.NoteHeader .type-icon-container{padding-inline-end:13px}.NoteHeader .type-icon-container .unread-notification{position:absolute;width:13px;height:13px;inset-inline-end:-2px;inset-block-start:-2px;border-radius:10000px;border:2px solid var(--component-background);background:#00a5e4}.NoteHeader .author-and-date{flex:1;min-width:0;position:relative}.NoteHeader .author-and-date.isReply{padding-inline-start:0;padding-top:0;font-size:10px}.NoteHeader .author-and-date .author-and-overflow{display:flex;justify-content:space-between}.NoteHeader .author-and-date .author-and-overflow .author-and-time{display:flex;flex-direction:column;word-break:break-word}.NoteHeader .author-and-date .author-and-overflow .author-and-time .author{font-weight:700;font-size:13px}.NoteHeader .author-and-date .author-and-overflow .author-and-time .date-and-num-replies{display:flex}.NoteHeader .author-and-date .author-and-overflow .author-and-time .date-and-num-replies .date-and-time{font-size:10px;color:var(--faded-text)}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .NoteHeader .author-and-date .author-and-overflow .author-and-time .date-and-num-replies .date-and-time{font-size:10px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .NoteHeader .author-and-date .author-and-overflow .author-and-time .date-and-num-replies .date-and-time{font-size:10px}}.NoteHeader .author-and-date .author-and-overflow .author-and-time .date-and-num-replies .num-replies-container{display:flex;flex-grow:1;padding-inline-start:10px}.NoteHeader .author-and-date .author-and-overflow .author-and-time .date-and-num-replies .num-replies-container .num-reply-icon{height:12px;width:12px}.NoteHeader .author-and-date .author-and-overflow .author-and-time .date-and-num-replies .num-replies-container .num-replies{font-size:10px;color:var(--gray-7)}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .NoteHeader .author-and-date .author-and-overflow .author-and-time .date-and-num-replies .num-replies-container .num-replies{font-size:12px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .NoteHeader .author-and-date .author-and-overflow .author-and-time .date-and-num-replies .num-replies-container .num-replies{font-size:12px}}.NoteHeader .author-and-date .author-and-overflow .state-and-overflow{display:flex;flex:1;justify-content:flex-end}.NoteHeader .author-and-date .author-and-overflow .state-and-overflow>*{pointer-events:auto}.NoteHeader .author-and-date .author-and-overflow .state-and-overflow .tracked-change-icon-wrapper .tracked-change-icon{margin:2px;width:24px;height:24px}.NoteHeader .author-and-date .author-and-overflow .state-and-overflow .tracked-change-icon-wrapper:hover.accept{background-color:#d5f5ca}.NoteHeader .author-and-date .author-and-overflow .state-and-overflow .tracked-change-icon-wrapper:hover.reject{background-color:#ffe8e8}.NoteHeader .author-and-date .author-and-overflow .state-and-overflow .ToggleElementButton button{width:28px;height:28px;margin:0 8px 0 13px}.NoteHeader .author-and-date .author-and-overflow .state-and-overflow .ToggleElementButton button .Icon{width:20px;height:20px}.NoteHeader .author-name{font-weight:700}.NoteHeader .note-popup-toggle-trigger{padding:0;margin-inline-end:0!important;margin-inline-start:0!important;min-width:28px!important}.NoteHeader .note-popup-toggle-trigger .Icon{width:24px!important;height:24px!important}.parent{padding-inline-start:12px;padding-top:12px}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1690:function(e,t,n){
2
2
  /*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
3
- e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:o}=Object;let{freeze:i,seal:a,create:l}=Object,{apply:s,construct:c}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),s||(s=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});const u=k(Array.prototype.forEach),f=k(Array.prototype.lastIndexOf),d=k(Array.prototype.pop),p=k(Array.prototype.push),h=k(Array.prototype.splice),m=k(String.prototype.toLowerCase),b=k(String.prototype.toString),y=k(String.prototype.match),v=k(String.prototype.replace),g=k(String.prototype.indexOf),w=k(String.prototype.trim),x=k(Object.prototype.hasOwnProperty),S=k(RegExp.prototype.test),O=(E=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c(E,t)});var E;function k(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return s(e,t,r)}}function _(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m;t&&t(e,null);let i=r.length;for(;i--;){let t=r[i];if("string"==typeof t){const e=o(t);e!==t&&(n(r)||(r[i]=e),t=e)}e[t]=!0}return e}function C(e){for(let t=0;t<e.length;t++)x(e,t)||(e[t]=null);return e}function A(t){const n=l(null);for(const[r,o]of e(t))x(t,r)&&(Array.isArray(o)?n[r]=C(o):o&&"object"==typeof o&&o.constructor===Object?n[r]=A(o):n[r]=o);return n}function T(e,t){for(;null!==e;){const n=o(e,t);if(n){if(n.get)return k(n.get);if("function"==typeof n.value)return k(n.value)}e=r(e)}return function(){return null}}const j=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),q=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),N=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),P=i(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),R=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),I=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),M=i(["#text"]),L=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),D=i(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),z=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),B=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),F=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),H=a(/<%[\w\W]*|[\w\W]*%>/gm),U=a(/\$\{[\w\W]*/gm),W=a(/^data-[\-\w.\u00B7-\uFFFF]+$/),G=a(/^aria-[\-\w]+$/),V=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=a(/^(?:\w+script|data):/i),$=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y=a(/^html$/i),Z=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var X=Object.freeze({__proto__:null,ARIA_ATTR:G,ATTR_WHITESPACE:$,CUSTOM_ELEMENT:Z,DATA_ATTR:W,DOCTYPE_NAME:Y,ERB_EXPR:H,IS_ALLOWED_URI:V,IS_SCRIPT_OR_DATA:K,MUSTACHE_EXPR:F,TMPLIT_EXPR:U});const Q=1,J=3,ee=7,te=8,ne=9,re=function(){return"undefined"==typeof window?null:window},oe=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;t&&t.hasAttribute("data-tt-policy-suffix")&&(n=t.getAttribute("data-tt-policy-suffix"));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re();const r=e=>t(e);if(r.version="3.2.6",r.removed=[],!n||!n.document||n.document.nodeType!==ne||!n.Element)return r.isSupported=!1,r;let{document:o}=n;const a=o,s=a.currentScript,{DocumentFragment:c,HTMLTemplateElement:E,Node:k,Element:C,NodeFilter:F,NamedNodeMap:H=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:U,DOMParser:W,trustedTypes:G}=n,K=C.prototype,$=T(K,"cloneNode"),Z=T(K,"remove"),ie=T(K,"nextSibling"),ae=T(K,"childNodes"),le=T(K,"parentNode");if("function"==typeof E){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let se,ce="";const{implementation:ue,createNodeIterator:fe,createDocumentFragment:de,getElementsByTagName:pe}=o,{importNode:he}=a;let me={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof e&&"function"==typeof le&&ue&&void 0!==ue.createHTMLDocument;const{MUSTACHE_EXPR:be,ERB_EXPR:ye,TMPLIT_EXPR:ve,DATA_ATTR:ge,ARIA_ATTR:we,IS_SCRIPT_OR_DATA:xe,ATTR_WHITESPACE:Se,CUSTOM_ELEMENT:Oe}=X;let{IS_ALLOWED_URI:Ee}=X,ke=null;const _e=_({},[...j,...q,...N,...R,...M]);let Ce=null;const Ae=_({},[...L,...D,...z,...B]);let Te=Object.seal(l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),je=null,qe=null,Ne=!0,Pe=!0,Re=!1,Ie=!0,Me=!1,Le=!0,De=!1,ze=!1,Be=!1,Fe=!1,He=!1,Ue=!1,We=!0,Ge=!1;const Ve="user-content-";let Ke=!0,$e=!1,Ye={},Ze=null;const Xe=_({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Qe=null;const Je=_({},["audio","video","img","source","image","track"]);let et=null;const tt=_({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",rt="http://www.w3.org/2000/svg",ot="http://www.w3.org/1999/xhtml";let it=ot,at=!1,lt=null;const st=_({},[nt,rt,ot],b);let ct=_({},["mi","mo","mn","ms","mtext"]),ut=_({},["annotation-xml"]);const ft=_({},["title","style","font","a","script"]);let dt=null;const pt=["application/xhtml+xml","text/html"],ht="text/html";let mt=null,bt=null;const yt=o.createElement("form"),vt=function(e){return e instanceof RegExp||e instanceof Function},gt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!bt||bt!==e){if(e&&"object"==typeof e||(e={}),e=A(e),dt=-1===pt.indexOf(e.PARSER_MEDIA_TYPE)?ht:e.PARSER_MEDIA_TYPE,mt="application/xhtml+xml"===dt?b:m,ke=x(e,"ALLOWED_TAGS")?_({},e.ALLOWED_TAGS,mt):_e,Ce=x(e,"ALLOWED_ATTR")?_({},e.ALLOWED_ATTR,mt):Ae,lt=x(e,"ALLOWED_NAMESPACES")?_({},e.ALLOWED_NAMESPACES,b):st,et=x(e,"ADD_URI_SAFE_ATTR")?_(A(tt),e.ADD_URI_SAFE_ATTR,mt):tt,Qe=x(e,"ADD_DATA_URI_TAGS")?_(A(Je),e.ADD_DATA_URI_TAGS,mt):Je,Ze=x(e,"FORBID_CONTENTS")?_({},e.FORBID_CONTENTS,mt):Xe,je=x(e,"FORBID_TAGS")?_({},e.FORBID_TAGS,mt):A({}),qe=x(e,"FORBID_ATTR")?_({},e.FORBID_ATTR,mt):A({}),Ye=!!x(e,"USE_PROFILES")&&e.USE_PROFILES,Ne=!1!==e.ALLOW_ARIA_ATTR,Pe=!1!==e.ALLOW_DATA_ATTR,Re=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Me=e.SAFE_FOR_TEMPLATES||!1,Le=!1!==e.SAFE_FOR_XML,De=e.WHOLE_DOCUMENT||!1,Fe=e.RETURN_DOM||!1,He=e.RETURN_DOM_FRAGMENT||!1,Ue=e.RETURN_TRUSTED_TYPE||!1,Be=e.FORCE_BODY||!1,We=!1!==e.SANITIZE_DOM,Ge=e.SANITIZE_NAMED_PROPS||!1,Ke=!1!==e.KEEP_CONTENT,$e=e.IN_PLACE||!1,Ee=e.ALLOWED_URI_REGEXP||V,it=e.NAMESPACE||ot,ct=e.MATHML_TEXT_INTEGRATION_POINTS||ct,ut=e.HTML_INTEGRATION_POINTS||ut,Te=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&vt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Te.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&vt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Te.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Te.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Me&&(Pe=!1),He&&(Fe=!0),Ye&&(ke=_({},M),Ce=[],!0===Ye.html&&(_(ke,j),_(Ce,L)),!0===Ye.svg&&(_(ke,q),_(Ce,D),_(Ce,B)),!0===Ye.svgFilters&&(_(ke,N),_(Ce,D),_(Ce,B)),!0===Ye.mathMl&&(_(ke,R),_(Ce,z),_(Ce,B))),e.ADD_TAGS&&(ke===_e&&(ke=A(ke)),_(ke,e.ADD_TAGS,mt)),e.ADD_ATTR&&(Ce===Ae&&(Ce=A(Ce)),_(Ce,e.ADD_ATTR,mt)),e.ADD_URI_SAFE_ATTR&&_(et,e.ADD_URI_SAFE_ATTR,mt),e.FORBID_CONTENTS&&(Ze===Xe&&(Ze=A(Ze)),_(Ze,e.FORBID_CONTENTS,mt)),Ke&&(ke["#text"]=!0),De&&_(ke,["html","head","body"]),ke.table&&(_(ke,["tbody"]),delete je.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw O('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw O('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');se=e.TRUSTED_TYPES_POLICY,ce=se.createHTML("")}else void 0===se&&(se=oe(G,s)),null!==se&&"string"==typeof ce&&(ce=se.createHTML(""));i&&i(e),bt=e}},wt=_({},[...q,...N,...P]),xt=_({},[...R,...I]),St=function(e){let t=le(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});const n=m(e.tagName),r=m(t.tagName);return!!lt[e.namespaceURI]&&(e.namespaceURI===rt?t.namespaceURI===ot?"svg"===n:t.namespaceURI===nt?"svg"===n&&("annotation-xml"===r||ct[r]):Boolean(wt[n]):e.namespaceURI===nt?t.namespaceURI===ot?"math"===n:t.namespaceURI===rt?"math"===n&&ut[r]:Boolean(xt[n]):e.namespaceURI===ot?!(t.namespaceURI===rt&&!ut[r])&&!(t.namespaceURI===nt&&!ct[r])&&!xt[n]&&(ft[n]||!wt[n]):!("application/xhtml+xml"!==dt||!lt[e.namespaceURI]))},Ot=function(e){p(r.removed,{element:e});try{le(e).removeChild(e)}catch(t){Z(e)}},Et=function(e,t){try{p(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Fe||He)try{Ot(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},kt=function(e){let t=null,n=null;if(Be)e="<remove></remove>"+e;else{const t=y(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===dt&&it===ot&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=se?se.createHTML(e):e;if(it===ot)try{t=(new W).parseFromString(r,dt)}catch(e){}if(!t||!t.documentElement){t=ue.createDocument(it,"template",null);try{t.documentElement.innerHTML=at?ce:r}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),it===ot?pe.call(t,De?"html":"body")[0]:De?t.documentElement:i},_t=function(e){return fe.call(e.ownerDocument||e,e,F.SHOW_ELEMENT|F.SHOW_COMMENT|F.SHOW_TEXT|F.SHOW_PROCESSING_INSTRUCTION|F.SHOW_CDATA_SECTION,null)},Ct=function(e){return e instanceof U&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof H)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},At=function(e){return"function"==typeof k&&e instanceof k};function Tt(e,t,n){u(e,e=>{e.call(r,t,n,bt)})}const jt=function(e){let t=null;if(Tt(me.beforeSanitizeElements,e,null),Ct(e))return Ot(e),!0;const n=mt(e.nodeName);if(Tt(me.uponSanitizeElement,e,{tagName:n,allowedTags:ke}),Le&&e.hasChildNodes()&&!At(e.firstElementChild)&&S(/<[/\w!]/g,e.innerHTML)&&S(/<[/\w!]/g,e.textContent))return Ot(e),!0;if(e.nodeType===ee)return Ot(e),!0;if(Le&&e.nodeType===te&&S(/<[/\w]/g,e.data))return Ot(e),!0;if(!ke[n]||je[n]){if(!je[n]&&Nt(n)){if(Te.tagNameCheck instanceof RegExp&&S(Te.tagNameCheck,n))return!1;if(Te.tagNameCheck instanceof Function&&Te.tagNameCheck(n))return!1}if(Ke&&!Ze[n]){const t=le(e)||e.parentNode,n=ae(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=$(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,ie(e))}}return Ot(e),!0}return e instanceof C&&!St(e)?(Ot(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!S(/<\/no(script|embed|frames)/i,e.innerHTML)?(Me&&e.nodeType===J&&(t=e.textContent,u([be,ye,ve],e=>{t=v(t,e," ")}),e.textContent!==t&&(p(r.removed,{element:e.cloneNode()}),e.textContent=t)),Tt(me.afterSanitizeElements,e,null),!1):(Ot(e),!0)},qt=function(e,t,n){if(We&&("id"===t||"name"===t)&&(n in o||n in yt))return!1;if(Pe&&!qe[t]&&S(ge,t));else if(Ne&&S(we,t));else if(!Ce[t]||qe[t]){if(!(Nt(e)&&(Te.tagNameCheck instanceof RegExp&&S(Te.tagNameCheck,e)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(e))&&(Te.attributeNameCheck instanceof RegExp&&S(Te.attributeNameCheck,t)||Te.attributeNameCheck instanceof Function&&Te.attributeNameCheck(t))||"is"===t&&Te.allowCustomizedBuiltInElements&&(Te.tagNameCheck instanceof RegExp&&S(Te.tagNameCheck,n)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(n))))return!1}else if(et[t]);else if(S(Ee,v(n,Se,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==g(n,"data:")||!Qe[e])if(Re&&!S(xe,v(n,Se,"")));else if(n)return!1;return!0},Nt=function(e){return"annotation-xml"!==e&&y(e,Oe)},Pt=function(e){Tt(me.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Ct(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ce,forceKeepAttr:void 0};let o=t.length;for(;o--;){const i=t[o],{name:a,namespaceURI:l,value:s}=i,c=mt(a),f=s;let p="value"===a?f:w(f);if(n.attrName=c,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,Tt(me.uponSanitizeAttribute,e,n),p=n.attrValue,!Ge||"id"!==c&&"name"!==c||(Et(a,e),p=Ve+p),Le&&S(/((--!?|])>)|<\/(style|title)/i,p)){Et(a,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){Et(a,e);continue}if(!Ie&&S(/\/>/i,p)){Et(a,e);continue}Me&&u([be,ye,ve],e=>{p=v(p,e," ")});const h=mt(e.nodeName);if(qt(h,c,p)){if(se&&"object"==typeof G&&"function"==typeof G.getAttributeType)if(l);else switch(G.getAttributeType(h,c)){case"TrustedHTML":p=se.createHTML(p);break;case"TrustedScriptURL":p=se.createScriptURL(p)}if(p!==f)try{l?e.setAttributeNS(l,a,p):e.setAttribute(a,p),Ct(e)?Ot(e):d(r.removed)}catch(t){Et(a,e)}}else Et(a,e)}Tt(me.afterSanitizeAttributes,e,null)},Rt=function e(t){let n=null;const r=_t(t);for(Tt(me.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Tt(me.uponSanitizeShadowNode,n,null),jt(n),Pt(n),n.content instanceof c&&e(n.content);Tt(me.afterSanitizeShadowDOM,t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,i=null,l=null;if(at=!e,at&&(e="\x3c!--\x3e"),"string"!=typeof e&&!At(e)){if("function"!=typeof e.toString)throw O("toString is not a function");if("string"!=typeof(e=e.toString()))throw O("dirty is not a string, aborting")}if(!r.isSupported)return e;if(ze||gt(t),r.removed=[],"string"==typeof e&&($e=!1),$e){if(e.nodeName){const t=mt(e.nodeName);if(!ke[t]||je[t])throw O("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof k)n=kt("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),o.nodeType===Q&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!Fe&&!Me&&!De&&-1===e.indexOf("<"))return se&&Ue?se.createHTML(e):e;if(n=kt(e),!n)return Fe?null:Ue?ce:""}n&&Be&&Ot(n.firstChild);const s=_t($e?e:n);for(;i=s.nextNode();)jt(i),Pt(i),i.content instanceof c&&Rt(i.content);if($e)return e;if(Fe){if(He)for(l=de.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(Ce.shadowroot||Ce.shadowrootmode)&&(l=he.call(a,l,!0)),l}let f=De?n.outerHTML:n.innerHTML;return De&&ke["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&S(Y,n.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+f),Me&&u([be,ye,ve],e=>{f=v(f,e," ")}),se&&Ue?se.createHTML(f):f},r.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};gt(e),ze=!0},r.clearConfig=function(){bt=null,ze=!1},r.isValidAttribute=function(e,t,n){bt||gt({});const r=mt(e),o=mt(t);return qt(r,o,n)},r.addHook=function(e,t){"function"==typeof t&&p(me[e],t)},r.removeHook=function(e,t){if(void 0!==t){const n=f(me[e],t);return-1===n?void 0:h(me[e],n,1)[0]}return d(me[e])},r.removeHooks=function(e){me[e]=[]},r.removeAllHooks=function(){me={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}()}()},1691:function(e,t,n){var r=n(35),o=n(1692);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1692:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,".reply-attachment-list{display:flex;flex-direction:column;cursor:default}.reply-attachment-list .reply-attachment{background-color:var(--gray-1);border-radius:4px;cursor:pointer;pointer-events:auto}.reply-attachment-list .reply-attachment:not(:last-child){margin-bottom:8px}.reply-attachment-list .reply-attachment .reply-attachment-preview{width:100%;max-height:80px;display:flex;justify-content:center}.reply-attachment-list .reply-attachment .reply-attachment-preview.dirty{position:relative;margin-bottom:15px}.reply-attachment-list .reply-attachment .reply-attachment-preview img{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain}.reply-attachment-list .reply-attachment .reply-attachment-preview .reply-attachment-preview-message{font-size:11px;color:var(--error-text-color);position:absolute;inset-block-end:-15px;inset-inline-start:10px}.reply-attachment-list .reply-attachment .reply-attachment-info{display:flex;align-items:center;height:40px;padding:8px}.reply-attachment-list .reply-attachment .reply-attachment-info .reply-attachment-icon{height:24px;min-height:24px;width:24px;min-width:24px}.reply-attachment-list .reply-attachment .reply-attachment-info .reply-file-name{height:16px;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-inline-start:8px;margin-inline-end:8px}.reply-attachment-list .reply-attachment .reply-attachment-info .attachment-button{height:24px;min-height:24px;width:24px;min-width:24px}.reply-attachment-list .reply-attachment .reply-attachment-info .attachment-button:hover{background-color:var(--blue-1)}.reply-attachment-list .reply-attachment .reply-attachment-info .attachment-button .Icon{height:16px;width:16px}",""])},1693:function(e,t,n){var r=n(35),o=n(1694);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1694:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.NoteContent.modular-ui .edit-content .edit-buttons .save-button.disabled{cursor:default;background:var(--disabled-button-color);color:var(--primary-button-text)}.NoteContent.modular-ui .edit-content .edit-buttons .save-button.disabled span{color:var(--primary-button-text)}.NoteContent{--note-content-right-padding-width:12px;position:relative;display:flex;flex-direction:column;align-items:left;flex:1;color:var(--text-color);padding-bottom:12px;pointer-events:none}.NoteContent.isReply{padding-bottom:0}.NoteContent.unread.isReply{background:rgba(0,165,228,.08)}.NoteContent.unread.clicked .author-and-time span{font-weight:400}.NoteContent.unread .author-and-time span{font-weight:700}.NoteContent .container{margin-top:8px;overflow:hidden;white-space:pre-wrap;word-wrap:break-word;-webkit-user-select:text;-moz-user-select:text;user-select:text;cursor:text;padding-inline-start:52px;padding-inline-end:var(--note-content-right-padding-width)}.NoteContent .container>*{pointer-events:all}.NoteContent .container-reply{margin-top:8px;overflow:hidden;white-space:pre-wrap;word-wrap:break-word;-webkit-user-select:text;-moz-user-select:text;user-select:text;cursor:text}.NoteContent .edit-content{margin-top:7px;display:flex;flex-direction:column;position:relative;flex:1;padding-inline-start:52px;padding-inline-end:12px;padding-bottom:12px;pointer-events:auto}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.NoteContent .edit-content{flex:none}}.NoteContent .edit-content textarea{width:100%;padding-inline-start:8px;border:1px solid var(--border);border-radius:4px;color:var(--text-color);padding-top:4px;padding-bottom:4px;resize:none;overflow:hidden;box-sizing:border-box}.NoteContent .edit-content textarea:focus{outline:none;border:1px solid var(--focus-border)}.NoteContent .edit-content textarea::-moz-placeholder{color:var(--placeholder-text)}.NoteContent .edit-content textarea::placeholder{color:var(--placeholder-text)}.NoteContent .edit-content .edit-buttons{display:flex;flex-direction:row;justify-content:flex-end;margin-top:8px}.NoteContent .edit-content .edit-buttons>div{margin-inline-end:4px}.NoteContent .edit-content .edit-buttons .save-button{background-color:transparent;cursor:pointer;flex-shrink:0;background:var(--primary-button);border-radius:4px;width:-moz-fit-content;width:fit-content;border:none;height:28px;display:flex;align-items:center;justify-content:center;position:relative;color:var(--primary-button-text);padding:0 13px}:host(:not([data-tabbing=true])) .NoteContent .edit-content .edit-buttons .save-button,html:not([data-tabbing=true]) .NoteContent .edit-content .edit-buttons .save-button{outline:none}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .NoteContent .edit-content .edit-buttons .save-button{font-size:13px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .NoteContent .edit-content .edit-buttons .save-button{font-size:13px}}.NoteContent .edit-content .edit-buttons .save-button:hover{background:var(--primary-button-hover);color:var(--primary-button-text)}.NoteContent .edit-content .edit-buttons .save-button.disabled{background:var(--gray-6)!important;border-color:var(--gray-6)!important;cursor:not-allowed}.NoteContent .edit-content .edit-buttons .save-button.disabled span{color:var(--primary-button-text)}.NoteContent .edit-content .edit-buttons .cancel-button{border:none;background-color:transparent;color:var(--secondary-button-text);padding:0 10px;width:-moz-fit-content;width:fit-content;height:28px;display:flex;align-items:center;justify-content:center;cursor:pointer;margin-inline-end:2px}:host(:not([data-tabbing=true])) .NoteContent .edit-content .edit-buttons .cancel-button,html:not([data-tabbing=true]) .NoteContent .edit-content .edit-buttons .cancel-button{outline:none}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .NoteContent .edit-content .edit-buttons .cancel-button{font-size:13px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .NoteContent .edit-content .edit-buttons .cancel-button{font-size:13px}}.NoteContent .edit-content .edit-buttons .cancel-button:hover{color:var(--secondary-button-hover)}.NoteContent .reply-content{padding-inline-start:0}.NoteContent .contents{white-space:pre-wrap;color:var(--text-color);margin-inline-end:5px;padding:0;word-break:normal;word-wrap:break-word;-webkit-user-select:text;-moz-user-select:text;user-select:text}.NoteContent .contents .highlight{background:#fffc95;color:#333}.NoteContent .highlight{background:#fffc95}.NoteContent .selected-text-preview{padding-inline-start:52px;padding-top:8px;pointer-events:auto}.NoteContent .reply-attachment-list{margin-bottom:8px}.NoteContent.modular-ui .highlight{font-weight:700;color:var(--blue-5);background:none}.NoteContent.modular-ui .edit-content .edit-buttons .save-button.disabled{border:none}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1695:function(e,t,n){var r=n(35),o=n(1696);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1696:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.reply-area-container{border-top:1px solid var(--divider);display:flex;flex-direction:column;margin-bottom:0}.reply-area-container .reply-attachment-list{margin:12px 12px 0}.reply-area-container .reply-area-with-button{display:flex}.reply-area-container .reply-area-with-button .reply-area{position:relative;flex:1;margin:12px 17px 12px 12px;border-radius:4px;align-items:center}.reply-area-container .reply-area-with-button .reply-area.unread{background:rgba(0,165,228,.08)}.reply-area-container .reply-area-with-button .reply-area .comment-textarea .ql-container .ql-editor.ql-blank{padding:4px}.reply-area-container .reply-area-with-button .reply-area .comment-textarea .ql-container .ql-editor.ql-blank:before{inset-inline-start:4px}.reply-area-container .reply-area-with-button .reply-button-container{display:flex;flex-direction:column;justify-content:flex-end}.reply-area-container .reply-area-with-button .reply-button-container .reply-button{width:28px;height:28px;padding:0;border:none;background-color:transparent;inset-inline-end:10px;inset-block-end:12px}:host(:not([data-tabbing=true])) .reply-area-container .reply-area-with-button .reply-button-container .reply-button,html:not([data-tabbing=true]) .reply-area-container .reply-area-with-button .reply-button-container .reply-button{outline:none}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.reply-area-container .reply-area-with-button .reply-button-container .reply-button{width:80px}}.reply-area-container .reply-area-with-button .reply-button-container .reply-button:hover{background:var(--blue-1)}.reply-area-container .reply-area-with-button .reply-button-container .reply-button.disabled{cursor:not-allowed}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1697:function(e,t,n){var r=n(35),o=n(1698);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1698:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}@keyframes bottom-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes up-bottom{0%{transform:translateY(0)}to{transform:translateY(100%)}}@media print{#line-connector-root{opacity:0}}#line-connector-root{position:relative;z-index:69}.horizontalLine{height:2px}.horizontalLine,.verticalLine{background-color:rgba(30,120,235,.5);position:fixed}.verticalLine{width:2px}.arrowHead{position:absolute;inset-block-start:0;inset-inline-start:0;margin:auto;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-inline-end:7px solid rgba(30,120,235,.5);transform:translateX(-100%) translateY(-50%) translateY(1px)}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1699:function(e,t,n){var r=n(35),o=n(1700);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1700:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.Note{padding:0;border:none;background-color:transparent;display:block;text-align:start;border-radius:4px;box-shadow:0 0 3px 0 var(--note-box-shadow);margin-bottom:8px;margin-inline-start:2px;background:var(--component-background);cursor:pointer;position:relative}:host(:not([data-tabbing=true])) .Note,html:not([data-tabbing=true]) .Note{outline:none}.Note.unread{border:1.2px solid #00a5e4}.Note.expanded{box-shadow:0 4px 16px var(--note-box-shadow-expanded),0 0 4px 0 var(--note-box-shadow)}.Note.is-multi-selected{box-shadow:0 4px 16px rgba(134,142,150,.24),0 0 4px 0 var(--note-box-shadow)}.Note.disabled{opacity:.5;pointer-events:none}.Note .note-button{position:absolute;width:100%;height:100%;inset-block-start:0;inset-inline-start:0}.Note .mark-all-read-button{background:#00a5e4;text-align:center;color:#fff;height:16px;font-size:12px;width:100%;border-radius:0}.Note .divider{height:1px;width:100%;background:var(--divider)}.Note .reply-divider{background:var(--reply-divider);height:1px;width:100%}.Note .replies{margin-inline-start:52px;padding-bottom:12px}.Note .reply{padding-inline-start:12px;padding-bottom:24px;border-inline-start:1px solid var(--reply-divider)}.Note .reply:last-of-type{padding-bottom:0}.Note .group-section{margin-inline-start:52px;padding-bottom:12px;display:flex;flex-direction:column;grid-row-gap:4px;row-gap:4px;padding-inline-end:12px}.Note .group-section.modular-ui .group-child:hover{border:none;box-shadow:inset 0 0 0 1px var(--blue-6);background:var(--faded-component-background);border-radius:4px}.Note .text-button{color:var(--secondary-button-text);display:flex;position:relative;width:auto;height:auto;flex-direction:row-reverse;justify-content:flex-end}.Note .text-button .Icon{color:var(--secondary-button-text);height:18px;width:18px}.Note .group-child{position:relative;width:auto;height:auto;display:block;text-align:start;padding-top:4px;padding-bottom:4px}.Note .group-child:hover{background:var(--view-header-button-hover)}.Note .group-child .NoteContent{padding-bottom:0}.Note:focus{outline:none}.Note.focus-visible,.Note:focus-visible{outline:var(--focus-visible-outline)}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1701:function(e,t,n){"use strict";n(9),n(10),n(26),n(16),n(40),n(24),n(42),n(43),n(8),n(56);var r=n(0),o=n.n(r),i=n(6),a=n(4);function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof c?r:c,u=Object.create(l.prototype);return s(u,"_invoke",function(n,r,o){var i,l,s,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,s=e,d.n=n,a}};function p(n,r){for(l=n,s=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,l=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),l=u,s=h;(t=l<2?e:s)||!f;){i||(l?l<3?(l>1&&(d.n=-1),p(l,s)):d.n=s:d.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(f=d.n<0)?s:n.call(r,d))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),u}var a={};function c(){}function u(){}function f(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(s(t={},r,(function(){return this})),t),p=f.prototype=c.prototype=Object.create(d);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,s(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return u.prototype=f,s(p,"constructor",f),s(f,"constructor",u),u.displayName="GeneratorFunction",s(f,o,"GeneratorFunction"),s(p),s(p,o,"Generator"),s(p,r,(function(){return this})),s(p,"toString",(function(){return"[object Generator]"})),(l=function(){return{w:i,m:h}})()}function s(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(s=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var i=function(t,n){s(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,r)}function c(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}t.a=function(e){var t=e.annotationId,n=e.addAttachments,r=Object(i.e)((function(e){return a.a.getReplyAttachmentHandler(e)})),s=function(){var e,o=(e=l().m((function e(o){var i,a,s;return l().w((function(e){for(;;)switch(e.n){case 0:if(!(i=o.target.files[0])){e.n=3;break}if(a=i,!r){e.n=2;break}return e.n=1,r(i);case 1:s=e.v,a={url:s,name:i.name,size:i.size,type:i.type};case 2:n(t,[a]);case 3:return e.a(2)}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){c(i,r,o,a,l,"next",e)}function l(e){c(i,r,o,a,l,"throw",e)}a(void 0)}))});return function(e){return o.apply(this,arguments)}}();return o.a.createElement("input",{id:"reply-attachment-picker",type:"file",style:{display:"none"},onChange:s,onClick:function(e){e.target.value=""}})}},1709:function(e,t,n){"use strict";n(9),n(10),n(14),n(30),n(34),n(27),n(21),n(20),n(12),n(44),n(22),n(99),n(142),n(31),n(18),n(26),n(16),n(28),n(40),n(48),n(24),n(47),n(49),n(42),n(37),n(43),n(8),n(91),n(56),n(17),n(19),n(132),n(11),n(29),n(13),n(94);var r=n(0),o=n.n(r),i=n(15),a=n.n(i),l=n(2),s=n.n(l),c=n(6),u=n(305),f=n(1571),d=(n(50),n(76),n(171),n(468),n(62),n(115),n(153),n(1618),n(1710)),p=n(106),h=n.n(p),m=n(315),b=n.n(m),y=n(237),v=n.n(y),g=n(1672),w=n.n(g),x=n(1599),S=(n(38),n(59),n(1)),O=n(4),E=n(5),k=n(3),_=(n(1686),n(96));function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(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 T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=C(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==C(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return N(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var P=function(e,t,n){return{icon:t,label:"action.".concat(e.toLowerCase()),title:"action.".concat(e.toLowerCase()),option:e,dataElement:n}},R=[P("Edit","","notePopupEdit"),P("Delete","","notePopupDelete")],I={handleEdit:s.a.func,handleDelete:s.a.func,isEditable:s.a.bool,isDeletable:s.a.bool,noteId:s.a.string};function M(){}function L(e){var t=e.handleEdit,n=void 0===t?M:t,r=e.handleDelete,i=void 0===r?M:r,l=e.isEditable,s=e.isDeletable,f=e.isReply,d=e.noteId,p=Object(c.e)((function(e){var t;return null===(t=O.a.getFeatureFlags(e))||void 0===t?void 0:t.customizableUI})),h="".concat(E.a.NOTE_POPUP_FLYOUT,"-").concat(d),m=q(Object(u.a)(),1)[0];if(!l&&!s)return null;var b=a()("overflow note-popup-toggle-trigger"),y=a()("NotePopup options note-popup-options",{"options-reply":f,"modular-ui":p});return o.a.createElement("div",{className:y},o.a.createElement(_.a,{dataElement:"notePopup-".concat(d),className:b,img:"icon-tools-more",title:m("formField.formFieldPopup.options"),toggleElement:h,disabled:!1}),o.a.createElement(D,{flyoutSelector:h,handleClick:function(e){"Edit"===e?n():"Delete"===e&&i()},isEditable:l,isDeletable:s}))}var D=function(e){var t=e.flyoutSelector,n=e.handleClick,o=e.isEditable,i=e.isDeletable,a=Object(c.d)(),l=Object(c.e)((function(e){return O.a.getFlyout(e,t)})),s=q(Object(u.a)(),1)[0];return Object(r.useLayoutEffect)((function(){var e=R;o?i||(e=e.filter((function(e){return"Delete"!==e.option}))):e=e.filter((function(e){return"Edit"!==e.option}));var r={dataElement:t,className:"NotePopupFlyout",items:e.map((function(e){return T(T({},e),{},{label:s(e.label),title:s(e.title),onClick:function(){return n(e.option)}})}))};a(l?k.a.updateFlyout(r.dataElement,r):k.a.addFlyout(r))}),[o,i]),null};D.propTypes={flyoutSelector:s.a.string,handleClick:s.a.func,isEditable:s.a.bool,isDeletable:s.a.bool},L.propTypes=I;var z=L;function B(){return(B=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}).apply(null,arguments)}function F(e){return function(e){if(Array.isArray(e))return W(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||U(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||U(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e,t){if(e){if("string"==typeof e)return W(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var G=function(e){var t=H(Object(c.e)((function(e){return[O.a.getActiveDocumentViewerKey(e)]})),1)[0],n=e.annotation,r=e.setIsEditing,i=e.noteIndex,a=H(o.a.useState(S.a.canModify(n)),2),l=a[0],s=a[1],u=H(o.a.useState(S.a.canModifyContents(n)),2),f=u[0],d=u[1];o.a.useEffect((function(){function e(){s(S.a.canModify(n,t)),d(S.a.canModifyContents(n,t))}return e(),S.a.addEventListener("updateAnnotationPermission",e,void 0,t),function(){return S.a.removeEventListener("updateAnnotationPermission",e,t)}}),[n,t]);var p={handleEdit:o.a.useCallback((function(){n instanceof window.Core.Annotations.FreeTextAnnotation&&S.a.getAnnotationManager(t).isFreeTextEditingEnabled()?S.a.getAnnotationManager(t).trigger("annotationDoubleClicked",n):r(!0,i)}),[n,r,i]),handleDelete:o.a.useCallback((function(){S.a.deleteAnnotations([n].concat(F(n.getGroupedChildren())),void 0,t)}),[n]),isEditable:f,isDeletable:l&&!(null!=n&&n.NoDelete),noteId:n?n.Id:""};return o.a.createElement(z,B({},e,p))},V=n(1638);function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return $(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Y={annotation:s.a.object.isRequired,handleStateChange:s.a.func};function Z(e){var t=e.annotation,n=e.handleStateChange,r=void 0===n?function(){}:n,i=K(Object(u.a)(),1)[0],a=t.getStatus(),l="icon-annotation-status-".concat(""===a?"none":a.toLowerCase()),s=t.Id;return o.a.createElement(o.a.Fragment,null,o.a.createElement(_.a,{dataElement:"noteState-".concat(s),title:i("option.notesOrder.status"),img:l,toggleElement:"".concat(E.a.NOTE_STATE_FLYOUT,"-").concat(s)}),o.a.createElement(V.a,{noteId:s,handleStateChange:r}))}Z.propTypes=Y;var X=Z,Q=n(1635),J=n(182);function ee(){return(ee=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}).apply(null,arguments)}var te={annotation:s.a.object};function ne(e){var t=Object(c.e)((function(e){return O.a.getActiveDocumentViewerKey(e)})),n=Object(c.e)((function(e){return O.a.isElementDisabled(e,"noteState")})),i=e.annotation,a=Object(J.a)(Object(r.useCallback)((function(e){var n=Object(Q.a)(i,e,t);i.addReply(n);var r=S.a.getAnnotationManager(t);r.addAnnotation(n),r.trigger("addReply",[n,i,r.getRootAnnotation(i)])}),[i,t]));return!n&&o.a.createElement("div",null,o.a.createElement(X,ee({handleStateChange:a},e)))}ne.propTypes=te;var re=ne,oe=n(51),ie=n(116);function ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return le(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?le(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var se={annotationId:s.a.string,ariaLabel:s.a.string,pendingEditTextMap:s.a.object,pendingReplyMap:s.a.object,pendingAttachmentMap:s.a.object},ce=function(e){var t=e.annotationId,n=e.ariaLabel,i=e.pendingEditTextMap,a=e.pendingReplyMap,l=e.pendingAttachmentMap,s=Object(u.a)().t,c=ae(Object(r.useState)(!1),2),f=c[0],d=c[1],p=ae(Object(r.useState)(!1),2),h=p[0],m=p[1],b=ae(Object(r.useState)(!1),2),y=b[0],v=b[1];return Object(r.useEffect)((function(){var e,n,r;d((null===(e=i[t])||void 0===e?void 0:e.length)>0),m((null===(n=a[t])||void 0===n?void 0:n.length)>0),v((null===(r=l[t])||void 0===r?void 0:r.length)>0)}),[i,a,l]),f||h||y?o.a.createElement("div",{"data-element":"unpostedCommentIndicator"},o.a.createElement(ie.a,{content:s("message.unpostedComment")},o.a.createElement("div",null,o.a.createElement(oe.a,{className:"type-icon",glyph:"icon-unposted-comment",ariaLabel:n})))):null};ce.propTypes=se;var ue=ce,fe={annotationId:s.a.string,ariaLabel:s.a.string},de=function(e){var t=e.annotationId,n=e.ariaLabel,r=Object(c.e)((function(e){return O.a.isElementDisabled(e,"unpostedCommentIndicator")})),i=o.a.useContext(f.a),a=i.pendingEditTextMap,l=i.pendingReplyMap,s=i.pendingAttachmentMap;return r?null:o.a.createElement(ue,{annotationId:t,ariaLabel:n,pendingEditTextMap:a,pendingReplyMap:l,pendingAttachmentMap:s})};de.propTypes=fe;var pe=de,he=n(160),me=n(41),be=n(233),ye=n(176),ve=n(161),ge=n(183),we=n(232),xe=n(25),Se=n(107);n(1688);function Oe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ee(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ee(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ke={icon:s.a.string,iconColor:s.a.string,color:s.a.string,fillColor:s.a.string,annotation:s.a.object,language:s.a.string,noteDateFormat:s.a.string,isSelected:s.a.bool,setIsEditing:s.a.func,notesShowLastUpdatedDate:s.a.bool,isUnread:s.a.bool,renderAuthorName:s.a.func,isNoteStateDisabled:s.a.bool,isEditing:s.a.bool,noteIndex:s.a.number,sortStrategy:s.a.string,activeTheme:s.a.string,isMultiSelected:s.a.bool,isMultiSelectMode:s.a.bool,handleMultiSelect:s.a.func,isGroupMember:s.a.bool,showAnnotationNumbering:s.a.bool,isTrackedChange:s.a.bool};function _e(e){var t,n,r,i=e.icon,l=e.iconColor,s=e.annotation,c=e.language,f=e.noteDateFormat,d=e.isSelected,p=e.setIsEditing,m=e.notesShowLastUpdatedDate,b=e.isReply,y=e.isUnread,v=e.renderAuthorName,g=e.isNoteStateDisabled,w=e.isEditing,x=e.noteIndex,O=e.sortStrategy,E=e.activeTheme,k=e.isMultiSelected,_=e.isMultiSelectMode,C=e.handleMultiSelect,A=e.isGroupMember,T=e.showAnnotationNumbering,j=e.timezone,q=e.isTrackedChange,N=Oe(Object(u.a)(),1)[0],P=O===ge.a.MODIFIED_DATE||m&&O!==ge.a.CREATED_DATE?Object(be.a)(s):s.DateCreated;if(j&&P){var R=P.toLocaleString("en-US",{timeZone:j});r=new Date(R)}else r=P;var I=r?h()(r).locale(c).format(f):N("option.notesPanel.noteContent.noDate"),M=s.getReplies().length,L=null===(t=s[l])||void 0===t||null===(n=t.toHexString)||void 0===n?void 0:n.call(t);E===we.a.DARK&&L&&Object(ve.c)(L)?L=Se.b.white:E===we.a.LIGHT&&L&&Object(ve.d)(L)&&(L=Se.b.black);var D=Object(ye.a)(s.FillColor),z=s.getAssociatedNumber(),B="#".concat(z," - "),F=a()("author-and-date",{isReply:b}),H=a()("NoteHeader",{parent:!b&&!A});return o.a.createElement("div",{className:H},!b&&o.a.createElement("div",{className:"type-icon-container"},y&&o.a.createElement("div",{className:"unread-notification"}),o.a.createElement(oe.a,{className:"type-icon",glyph:i,color:L,fillColor:D})),o.a.createElement("div",{className:F},o.a.createElement("div",{className:"author-and-overflow"},o.a.createElement("div",{className:"author-and-time"},o.a.createElement("div",{className:"author"},T&&void 0!==z&&o.a.createElement("span",{className:"annotation-number"},B),v(s)),o.a.createElement("div",{className:"date-and-num-replies"},o.a.createElement("div",{className:"date-and-time"},I,A&&" (Page ".concat(s.PageNumber,")")),M>0&&!d&&o.a.createElement("div",{className:"num-replies-container"},o.a.createElement(oe.a,{className:"num-reply-icon",glyph:"icon-chat-bubble"}),o.a.createElement("div",{className:"num-replies"},M)))),o.a.createElement("div",{className:"state-and-overflow"},_&&!A&&!b&&o.a.createElement(he.a,{id:"note-multi-select-toggle_".concat(s.Id),"aria-label":"".concat(v(s)," ").concat(N("option.notesPanel.toggleMultiSelect")),checked:k,onClick:function(e){e.preventDefault(),e.stopPropagation(),C(!k)}}),o.a.createElement(pe,{annotationId:s.Id,ariaLabel:"Unposted Comment, ".concat(v(s),", ").concat(I)}),!g&&!b&&!_&&!A&&!q&&o.a.createElement(re,{annotation:s,isSelected:d}),!w&&d&&!_&&!A&&!q&&o.a.createElement(G,{noteIndex:x,annotation:s,setIsEditing:p,isReply:b}),d&&q&&!_&&o.a.createElement(o.a.Fragment,null,o.a.createElement(me.a,{title:N("officeEditor.accept"),img:"icon-menu-checkmark",className:"tracked-change-icon-wrapper accept",onClick:function(){return e=s.getCustomData(xe.w),void S.a.getOfficeEditor().acceptTrackedChange(e);var e},iconClassName:"tracked-change-icon"}),o.a.createElement(me.a,{title:N("officeEditor.reject"),img:"icon-close",className:"tracked-change-icon-wrapper reject",onClick:function(){return e=s.getCustomData(xe.w),void S.a.getOfficeEditor().rejectTrackedChange(e);var e},iconClassName:"tracked-change-icon"}))))))}_e.propTypes=ke;var Ce=_e,Ae=n(1636);function Te(){return(Te=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}).apply(null,arguments)}function je(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return qe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ne=function(e){var t=je(Object(c.e)((function(e){return[O.a.getNotesPanelWidth(e)]}),c.c),1)[0];return o.a.createElement(Ae.a,Te({},e,{panelWidth:t}))},Pe=(n(378),n(379),n(380),n(172));n(181);function Re(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Ie(c,"_invoke",function(n,r,o){var i,l,s,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,s=e,d.n=n,a}};function p(n,r){for(l=n,s=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,l=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),l=u,s=h;(t=l<2?e:s)||!f;){i||(l?l<3?(l>1&&(d.n=-1),p(l,s)):d.n=s:d.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(f=d.n<0)?s:n.call(r,d))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Ie(t={},r,(function(){return this})),t),f=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Ie(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,Ie(f,"constructor",c),Ie(c,"constructor",s),s.displayName="GeneratorFunction",Ie(c,o,"GeneratorFunction"),Ie(f),Ie(f,o,"Generator"),Ie(f,r,(function(){return this})),Ie(f,"toString",(function(){return"[object Generator]"})),(Re=function(){return{w:i,m:d}})()}function Ie(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(Ie=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var i=function(t,n){Ie(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,r)}function Me(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Le(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Me(i,r,o,a,l,"next",e)}function l(e){Me(i,r,o,a,l,"throw",e)}a(void 0)}))}}var De="ic-file-pdf",ze="ic-file-img",Be="ic-file-cad",Fe="ic-file-doc",He="ic-file-ppt",Ue="ic-file-xls",We="ic-file-etc",Ge=window.Core.Annotations.FileAttachmentUtils;function Ve(e){return Ke.apply(this,arguments)}function Ke(){return(Ke=Le(Re().m((function e(t){return Re().w((function(e){for(;;)switch(e.n){case 0:return e.a(2,Ge.decompressWithFlateDecode(t.content,t.type))}}),e)})))).apply(this,arguments)}function $e(e){return Ye.apply(this,arguments)}function Ye(){return(Ye=Le(Re().m((function e(t){var n,r=arguments;return Re().w((function(e){for(;;)switch(e.n){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:[],e.n=1,t.setAttachments(n);case 1:return e.a(2)}}),e)})))).apply(this,arguments)}function Ze(e){return!(!e.type||!e.type.startsWith("image/"))}function Xe(e){var t;if(Ze(e))return ze;switch(null===(t=e.name)||void 0===t?void 0:t.split(".").pop().toLowerCase()){case"pdf":return De;case"cad":return Be;case"doc":case"docx":return Fe;case"ppt":case"pptx":return He;case"xls":case"xlsx":return Ue;default:return We}}var Qe=n(1690),Je=n.n(Qe);function et(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return tt(c,"_invoke",function(n,r,o){var i,l,s,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,s=e,d.n=n,a}};function p(n,r){for(l=n,s=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,l=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),l=u,s=h;(t=l<2?e:s)||!f;){i||(l?l<3?(l>1&&(d.n=-1),p(l,s)):d.n=s:d.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(f=d.n<0)?s:n.call(r,d))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(tt(t={},r,(function(){return this})),t),f=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,tt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,tt(f,"constructor",c),tt(c,"constructor",s),s.displayName="GeneratorFunction",tt(c,o,"GeneratorFunction"),tt(f),tt(f,o,"Generator"),tt(f,r,(function(){return this})),tt(f,"toString",(function(){return"[object Generator]"})),(et=function(){return{w:i,m:d}})()}function tt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(tt=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var i=function(t,n){tt(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,r)}function nt(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}var rt=function(e){return new Promise((function(t){if(void 0===e.size)t(e.toString("utf-8"));else{var n=new FileReader;n.onload=function(){return t(n.result)},n.readAsText(e)}}))},ot=function(e){return"image/svg+xml"===e.type},it=function(){var e,t=(e=et().m((function e(t){var n,r,o,i;return et().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,rt(t);case 1:if(n=e.v){e.n=2;break}return e.a(2,{svg:t});case 2:return r=[],Je.a.addHook("uponSanitizeElement",(function(e,t){var n=t.tagName;t.allowedTags[n]||r.push(n)})),o=Je.a.sanitize(n),i=new Blob([o],{type:"image/svg+xml"}),e.a(2,{svg:i,isDirty:r.length>0})}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){nt(i,r,o,a,l,"next",e)}function l(e){nt(i,r,o,a,l,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();n(1691);function at(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return lt(c,"_invoke",function(n,r,o){var i,l,s,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,s=e,d.n=n,a}};function p(n,r){for(l=n,s=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,l=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),l=u,s=h;(t=l<2?e:s)||!f;){i||(l?l<3?(l>1&&(d.n=-1),p(l,s)):d.n=s:d.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(f=d.n<0)?s:n.call(r,d))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(lt(t={},r,(function(){return this})),t),f=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,lt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,lt(f,"constructor",c),lt(c,"constructor",s),s.displayName="GeneratorFunction",lt(c,o,"GeneratorFunction"),lt(f),lt(f,o,"Generator"),lt(f,r,(function(){return this})),lt(f,"toString",(function(){return"[object Generator]"})),(at=function(){return{w:i,m:d}})()}function lt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(lt=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var i=function(t,n){lt(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,r)}function st(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function ct(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){st(i,r,o,a,l,"next",e)}function l(e){st(i,r,o,a,l,"throw",e)}a(void 0)}))}}function ut(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ft(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ft(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var dt=function(e){var t=e.file,n=ut(Object(u.a)(),1)[0],i=ut(Object(r.useState)(),2),l=i[0],s=i[1],c=ut(Object(r.useState)(!1),2),f=c[0],d=c[1];return Object(r.useEffect)((function(){(function(){var e=ct(at().m((function e(){var n,r,o,i,a;return at().w((function(e){for(;;)switch(e.n){case 0:if(d(!1),n=t,!(r=!(t instanceof File||t.url))){e.n=2;break}return e.n=1,Ve(t);case 1:n=e.v;case 2:if(!(t instanceof File||r)){e.n=5;break}if(!ot(t)){e.n=4;break}return e.n=3,it(n);case 3:o=e.v,i=o.svg,a=o.isDirty,s(URL.createObjectURL(i)),d(a),e.n=5;break;case 4:s(URL.createObjectURL(n));case 5:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[t]),o.a.createElement("div",{className:a()({"reply-attachment-preview":!0,dirty:f})},o.a.createElement("img",{src:l}),f&&o.a.createElement("span",{className:"reply-attachment-preview-message"},n("message.svgMalicious")))},pt=function(e){var t=e.files,n=e.isEditing,r=e.fileDeleted,i=ut(Object(c.e)((function(e){return[O.a.getTabManager(e),O.a.isReplyAttachmentPreviewEnabled(e)]})),2),a=i[0],l=i[1],s=ut(Object(u.a)(),1)[0],f=function(){var e=ct(at().m((function e(t,n){var r;return at().w((function(e){for(;;)switch(e.n){case 0:if(t.preventDefault(),t.stopPropagation(),a){e.n=1;break}return e.a(2,console.warn("Can't open attachment in non-multi-tab mode"));case 1:if(!(n instanceof File)){e.n=2;break}r=n,e.n=5;break;case 2:if(!n.url){e.n=3;break}r=n.url,e.n=5;break;case 3:return e.n=4,Ve(n);case 4:r=e.v;case 5:r&&a.addTab(r,{filename:n.name,setActive:!0,saveCurrentActiveTabState:!0});case 6:return e.a(2)}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),d=function(){var e=ct(at().m((function e(t,n){var r,o;return at().w((function(e){for(;;)switch(e.n){case 0:if(t.preventDefault(),t.stopPropagation(),!n.url){e.n=1;break}o=n.url,e.n=3;break;case 1:return e.n=2,Ve(n);case 2:o=e.v;case 3:r=o,Object(Pe.saveAs)(r,n.name);case 4:return e.a(2)}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return o.a.createElement("div",{className:"reply-attachment-list"},t.map((function(e,t){return o.a.createElement("div",{className:"reply-attachment",key:t,onClick:function(t){return f(t,e)}},l&&Ze(e)&&o.a.createElement(dt,{file:e}),o.a.createElement("div",{className:"reply-attachment-info"},o.a.createElement(oe.a,{className:"reply-attachment-icon",glyph:Xe(e)}),o.a.createElement(ie.a,{content:e.name},o.a.createElement("div",{className:"reply-file-name"},e.name)),n?o.a.createElement(me.a,{className:"attachment-button",title:"".concat(s("action.delete")," ").concat(s("option.type.fileattachment")),img:"icon-close",onClick:function(t){return function(e,t){e.preventDefault(),e.stopPropagation(),r(t)}(t,e)}}):o.a.createElement(me.a,{className:"attachment-button",title:"".concat(s("action.download")," ").concat(s("option.type.fileattachment")),img:"icon-download",onClick:function(t){return d(t,e)}})))})))},ht=n(479),mt=n(372),bt=n(1596),yt=function(e){var t={};if(e["font-weight"]&&"normal"!==e["font-weight"]&&(t.bold=!0),e["font-style"]&&"normal"!==e["font-style"]&&(t.italic=!0),e.color&&(t.color=e.color),e["text-decoration"]){var n=e["text-decoration"].split(" ");n.includes("line-through")&&(t.strike=!0),n.includes("word")&&(t.underline=!0)}return t},vt=function(e,t){for(var n=e.getRichTextStyle(),r=Object.keys(n),o=mt.a.getFormattedTextFromDeltas(t.getContents()),i=mt.a.extractMentionDataFromStr(o).plainTextValue,a=[],l=0;l<r.length;l++){var s=n[r[l]],c=yt(s);if(!isNaN(r[l])){var u=isNaN(r[l+1])?i.length:r[l+1],f=i.slice(r[l],u);a.push({insert:f,attributes:c})}}t.setContents(a),t.setSelection(i.length,0)},gt=n(45),wt=n(53),xt=n(229),St=n(60);n(1693);function Ot(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Et(c,"_invoke",function(n,r,o){var i,l,s,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,s=e,d.n=n,a}};function p(n,r){for(l=n,s=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,l=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),l=u,s=h;(t=l<2?e:s)||!f;){i||(l?l<3?(l>1&&(d.n=-1),p(l,s)):d.n=s:d.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(f=d.n<0)?s:n.call(r,d))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Et(t={},r,(function(){return this})),t),f=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Et(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,Et(f,"constructor",c),Et(c,"constructor",s),s.displayName="GeneratorFunction",Et(c,o,"GeneratorFunction"),Et(f),Et(f,o,"Generator"),Et(f,r,(function(){return this})),Et(f,"toString",(function(){return"[object Generator]"})),(Ot=function(){return{w:i,m:d}})()}function Et(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(Et=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var i=function(t,n){Et(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,r)}function kt(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function _t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ct(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ct(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}h.a.extend(b.a);var At={annotation:s.a.object.isRequired,isEditing:s.a.bool,setIsEditing:s.a.func,noteIndex:s.a.number,isUnread:s.a.bool,isNonReplyNoteRead:s.a.bool,onReplyClicked:s.a.func,isMultiSelected:s.a.bool,isMultiSelectMode:s.a.bool,handleMultiSelect:s.a.func,isGroupMember:s.a.bool,handleNoteClick:s.a.func},Tt=function(e){var t,n=e.annotation,i=e.isEditing,l=e.setIsEditing,s=e.noteIndex,p=e.isUnread,h=e.isNonReplyNoteRead,m=e.onReplyClicked,b=e.isMultiSelected,y=e.isMultiSelectMode,g=e.handleMultiSelect,x=e.isGroupMember,E=e.handleNoteClick,_=void 0===E?function(){}:E,C=Object(c.e)((function(e){return O.a.getNoteDateFormat(e)})),A=Object(c.e)((function(e){return O.a.getIconColor(e,Object(wt.g)(n),c.c)})),T=Object(c.e)((function(e){return O.a.isElementDisabled(e,"noteStateFlyout")})),j=Object(c.e)((function(e){return O.a.getCurrentLanguage(e)})),q=Object(c.e)((function(e){return O.a.notesShowLastUpdatedDate(e)})),N=Object(c.e)((function(e){return O.a.isNotesPanelTextCollapsingEnabled(e)})),P=Object(c.e)((function(e){return O.a.isNotesPanelRepliesCollapsingEnabled(e)})),R=Object(c.e)((function(e){return O.a.getActiveTheme(e)})),I=Object(c.e)((function(e){return O.a.getTimezone(e)})),M=Object(c.e)((function(e){var t;return null===(t=O.a.getFeatureFlags(e))||void 0===t?void 0:t.customizableUI})),L=Object(r.useContext)(f.a),D=L.isSelected,z=L.searchInput,B=L.resize,F=L.pendingEditTextMap,H=L.onTopNoteContentClicked,U=L.sortStrategy,W=L.showAnnotationNumbering,G=L.setPendingEditText,V=Object(c.d)(),K=_t(Object(u.a)(),1)[0],$=n.isReply(),Y=Object(wt.g)(n)===wt.c.TRACKED_CHANGE,Z=_t(Object(r.useState)([]),2),X=Z[0],Q=Z[1];Object(r.useEffect)((function(){Q(n.getAttachments())}),[n]),Object(r.useEffect)((function(){var e=function(e,t){"modify"===t&&e.forEach((function(e){e.Id===n.Id&&Q(e.getAttachments())}))};return S.a.addEventListener("annotationChanged",e),function(){S.a.removeEventListener("annotationChanged",e)}}),[n]),Object(xt.a)((function(){i||V(k.a.finishNoteEditing()),B()}),[i]);var J,ee=Object(r.useCallback)((function(e){var t=S.a.getDisplayAuthor(e.Author);return t?Rt(t,z):K("option.notesPanel.noteContent.noName")}),[z]),te=n.getSkipAutoLink&&n.getSkipAutoLink(),ne=Object(r.useCallback)((function(e,t,r,i){var a=[];if(i||d.a.link(e,{stripPrefix:!1,stripTrailingSlash:!1,replaceFn:function(e){var t=e.getAnchorHref(),n=e.getAnchorText(),r=e.getOffset();switch(e.getType()){case"url":case"email":case"phone":a.push({href:t,text:n,start:r,end:r+e.getMatchedText().length})}}}),!a.length){var l=Rt(e,z,t);if(!z&&(!$&&N||$&&P)){return o.a.createElement(Ne,{linesToBreak:3,comment:!0,renderRichText:Pt,richTextStyle:t,resize:B,style:r,beforeContent:function(){if(!Y)return null;var e=1===n.TrackedChangeType?K("officeEditor.added"):K("officeEditor.deleted");return o.a.createElement("span",{style:{color:n.FillColor.toString(),fontWeight:700}},e)}},e)}return l}var s=[],c=0;return a.forEach((function(n,r){var i=n.start,a=n.end,l=n.href;c<i&&s.push(o.a.createElement("span",{key:"span_".concat(r)},Rt(e,z,t,c,i))),s.push(o.a.createElement("a",{href:l,target:"_blank",rel:"noopener noreferrer",key:"a_".concat(r)},Rt(e,z,t,i,a))),c=a})),c<e.length-1&&s.push(Rt(e,z,t,c)),s}),[z]),re=Object(wt.e)(Object(wt.g)(n)).icon;try{J=JSON.parse(n.getCustomData("trn-mention"))}catch(e){J=n.getCustomData("trn-mention")}var oe=(null===(t=J)||void 0===t?void 0:t.contents)||n.getContents();oe=function(e){return e?w()(e):e}(oe);var ie=n instanceof window.Core.Annotations.Link?Object(ht.a)(n):n.getContents(),ae=n.getRichTextStyle(),le=n.TextColor;if(R===we.a.DARK)le&&Object(ve.c)(le.toHexString())&&(le=new window.Core.Annotations.Color(255,255,255,1)),ae&&Object.keys(ae).forEach((function(e){ae[e].color&&Object(ve.c)(ae[e].color)&&(ae[e].color=Se.b.white)}));else if(R===we.a.LIGHT){if(le&&Object(ve.d)(le.toHexString())&&(le=new window.Core.Annotations.Color(0,0,0,1)),ae)Object.keys(ae).forEach((function(e){ae[e].color&&Object(ve.d)(ae[e].color)&&(ae[e].color=Se.b.black)}))}var se,ce=void 0===F[n.Id];se=oe&&ce?oe:F[n.Id];var ue=function(e){var t;null!==(t=window.getSelection())&&void 0!==t&&t.toString()&&(null==e||e.stopPropagation()),_(e)},fe=a()({NoteContent:!0,isReply:$,unread:p,clicked:h,"modular-ui":M}),de=Object(r.useMemo)((function(){var e={};return le&&(e.color=le.toHexString()),o.a.createElement(o.a.Fragment,null,i&&D?o.a.createElement(qt,{annotation:n,noteIndex:s,setIsEditing:l,textAreaValue:se,onTextAreaValueChange:G,pendingText:F[n.Id]}):ie&&o.a.createElement("div",{className:a()("container",{"reply-content":$}),onClick:ue},$&&X.length>0&&o.a.createElement(pt,{files:X,isEditing:!1}),ne(ie,ae,e,te)))}),[n,D,i,l,oe,ne,se,G,X]),pe=n.getCustomData("trn-annot-preview"),he=Object(r.useMemo)((function(){if(""===pe)return null;var e=Rt(pe,z),t=!$&&N;return v()(e)&&t?o.a.createElement(St.a,{onClick:_,className:"selected-text-preview",dataElement:"notesSelectedTextPreview"},o.a.createElement(Ne,{linesToBreak:3},'"'.concat(e,'"'))):o.a.createElement("div",{className:"selected-text-preview",style:{paddingRight:"12px"}},e)}),[pe,z]),me=Object(r.useMemo)((function(){return o.a.createElement(Ce,{icon:re,iconColor:A,annotation:n,language:j,noteDateFormat:C,isSelected:D,setIsEditing:l,notesShowLastUpdatedDate:q,isReply:$,isUnread:p,renderAuthorName:ee,isNoteStateDisabled:T,isEditing:i,noteIndex:s,sortStrategy:U,activeTheme:R,handleMultiSelect:g,isMultiSelected:b,isMultiSelectMode:y,isGroupMember:x,showAnnotationNumbering:W,timezone:I,isTrackedChange:Y})}),[re,A,n,j,C,D,l,q,$,p,ee,S.a.getDisplayAuthor(n.Author),T,i,s,Object(be.a)(n),U,g,b,y,x,I,Y]);return o.a.createElement("div",{className:fe,onClick:function(){x||($?m(n):i||H())}},me,he,de)};Tt.propTypes=At;var jt=Tt,qt=function(e){var t=e.annotation,n=e.noteIndex,i=e.setIsEditing,l=e.textAreaValue,s=e.onTextAreaValueChange,d=e.pendingText,p=_t(Object(c.e)((function(e){return[O.a.getAutoFocusNoteOnAnnotationSelection(e),O.a.getIsMentionEnabled(e),O.a.isElementDisabled(e,E.a.INLINE_COMMENT_POPUP),O.a.isElementOpen(e,E.a.INLINE_COMMENT_POPUP),O.a.isElementOpen(e,E.a.NOTES_PANEL),O.a.getActiveDocumentViewerKey(e),O.a.isAnyCustomPanelOpen(e)]})),7),h=p[0],m=p[1],b=p[2],y=p[3],v=p[4],g=p[5],w=p[6],k=_t(Object(u.a)(),1)[0],_=Object(r.useRef)(),C=t.isReply(),A=Object(r.useContext)(f.a),T=A.setCurAnnotId,j=A.pendingAttachmentMap,q=A.deleteAttachment,N=A.clearAttachments,P=A.addAttachments,R=!b&&y&&Object(gt.k)();Object(r.useEffect)((function(){if(w||(v||y)&&_.current){var e=_.current.getEditor();t&&t instanceof window.Core.Annotations.FreeTextAnnotation&&e.setText(""),d?Object(bt.a)(e,t):e.getContents()&&setTimeout((function(){if(m){l=mt.a.getFormattedTextFromDeltas(e.getContents());var n=mt.a.extractMentionDataFromStr(l),r=n.plainTextValue;n.ids.length&&e.setText(r)}var o;R||h&&(null===(o=_.current)||void 0===o||o.focus(),t.getRichTextStyle()&&vt(t,e))}),100);var n=e.getLength()-1;if(R)return;setTimeout((function(){n&&e.setSelection(n,n)}),100)}}),[v,y,R]),Object(r.useEffect)((function(){if(C&&0===L.length){var e=t.getAttachments();P(t.Id,e)}}),[]);var I=function(){var e,r=(e=Ot().m((function e(r){var o,a,c,u,f;return Ot().w((function(e){for(;;)switch(e.n){case 0:return r.preventDefault(),o=_.current.getEditor(),l=mt.a.getFormattedTextFromDeltas(o.getContents()),Object(bt.a)(o,t),l.length>1&&"\n"===l[l.length-1]&&(l=l.slice(0,l.length-1)),t.getSkipAutoLink&&t.getSkipAutoLink()&&t.disableSkipAutoLink(),m?(a=mt.a.extractMentionDataFromStr(l),c=a.plainTextValue,u=a.ids,mt.a.extractMentionDataFromAnnot(t).mentions.forEach((function(e){c.includes(e.value)&&u.push(e.id)})),t.setCustomData("trn-mention",JSON.stringify({contents:l,ids:u})),t.setContents(c)):t.setContents(l),e.n=1,$e(t,j[t.Id]);case 1:f=t instanceof window.Core.Annotations.FreeTextAnnotation?"textChanged":"noteChanged",S.a.getAnnotationManager(g).trigger("annotationChanged",[[t],"modify",{source:f}]),t instanceof window.Core.Annotations.FreeTextAnnotation&&S.a.drawAnnotationsFromList([t]),i(!1,n),""!==l&&s(void 0,t.Id),N(t.Id);case 2:return e.a(2)}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){kt(i,r,o,a,l,"next",e)}function l(e){kt(i,r,o,a,l,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}(),M=a()("edit-content",{"reply-content":C}),L=j[t.Id]||[];return o.a.createElement("div",{className:M},C&&L.length>0&&o.a.createElement(pt,{files:L,isEditing:!0,fileDeleted:function(e){return q(t.Id,e)}}),o.a.createElement(x.a,{ref:function(e){_.current=e},value:l,onChange:function(e){return s(e,t.Id)},onSubmit:I,isReply:C,onBlur:function(e){var t,n;null!==(t=e.relatedTarget)&&void 0!==t&&null!==(n=t.getAttribute("data-element"))&&void 0!==n&&n.includes("annotationCommentButton")?e.target.focus():T(void 0)},onFocus:function(){T(t.Id)}}),o.a.createElement("div",{className:"edit-buttons"},o.a.createElement(me.a,{className:"cancel-button",label:k("action.cancel"),onClick:function(e){e.stopPropagation(),i(!1,n),s(void 0,t.Id),N(t.Id)}}),o.a.createElement(me.a,{className:"save-button".concat(l?"":" disabled"),disabled:!l,label:k("action.save"),onClick:function(e){e.stopPropagation(),I(e)}})))};qt.propTypes={noteIndex:s.a.number.isRequired,annotation:s.a.object.isRequired,setIsEditing:s.a.func.isRequired,textAreaValue:s.a.string,onTextAreaValueChange:s.a.func.isRequired,pendingText:s.a.string};var Nt=function(e,t,n){var r={fontWeight:t["font-weight"],fontStyle:t["font-style"],textDecoration:t["text-decoration"],color:t.color};return r.textDecoration&&(r.textDecoration=r.textDecoration.replace("word","underline")),o.a.createElement("span",{style:r,key:n},e)},Pt=function(e,t,n){if(!t||!e)return e;for(var r={},o=Object.keys(t).map(Number).sort((function(e,t){return e-t})),i=0;i<o.length;i++){var a=o[i]-n;if(r[a=Math.min(Math.max(a,0),e.length)]=t[o[i]],a===e.length)break}for(var l=[],s=Object.keys(r).map(Number).sort((function(e,t){return e-t})),c=1;c<s.length;c++)l.push(Nt(e.slice(s[c-1],s[c]),r[s[c-1]],"richtext_span_".concat(c)));return l},Rt=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e.length,a=e.slice(r,i),l=a.toLowerCase(),s=t.toLowerCase();n&&(n[0]=n[0]||{},n[e.length]=n[e.length]||{});var c=l.indexOf(s);if(!s.trim()||-1===c)return Pt(a,n,r);var u=[],f=[c],d=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(new RegExp("(".concat(d,")"),"gi").test(l))for(;-1!==c;)-1!==(c=l.indexOf(s,c+s.length))&&f.push(c);return f.forEach((function(e,t){0===t&&0!==e&&u.push(Pt(a.substring(0,e),n,r)),u.push(o.a.createElement("span",{className:"highlight",key:"highlight_span_".concat(t)},Pt(a.substring(e,e+s.length),n,r+e))),e+s.length<l.length&&e+s.length!==f[t+1]&&u.push(Pt(a.substring(e+s.length,f[t+1]),n,r+e+s.length))})),u};var It=jt;n(1695);function Mt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Lt(c,"_invoke",function(n,r,o){var i,l,s,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,s=e,d.n=n,a}};function p(n,r){for(l=n,s=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,l=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),l=u,s=h;(t=l<2?e:s)||!f;){i||(l?l<3?(l>1&&(d.n=-1),p(l,s)):d.n=s:d.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(f=d.n<0)?s:n.call(r,d))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Lt(t={},r,(function(){return this})),t),f=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Lt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,Lt(f,"constructor",c),Lt(c,"constructor",s),s.displayName="GeneratorFunction",Lt(c,o,"GeneratorFunction"),Lt(f),Lt(f,o,"Generator"),Lt(f,r,(function(){return this})),Lt(f,"toString",(function(){return"[object Generator]"})),(Mt=function(){return{w:i,m:d}})()}function Lt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(Lt=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var i=function(t,n){Lt(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,r)}function Dt(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function zt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Bt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ft={annotation:s.a.object.isRequired},Ht=function(e){var t=e.annotation,n=e.isUnread,i=e.onPendingReplyChange,l=zt(Object(c.e)((function(e){var n;return[O.a.getAutoFocusNoteOnAnnotationSelection(e),O.a.isDocumentReadOnly(e),O.a.isElementDisabled(e,"noteReply"),null===(n=O.a.getIsReplyDisabled(e))||void 0===n?void 0:n(t),O.a.getIsMentionEnabled(e),O.a.getIsNoteEditing(e),O.a.isElementDisabled(e,E.a.INLINE_COMMENT_POPUP),O.a.isElementOpen(e,E.a.INLINE_COMMENT_POPUP),O.a.getActiveDocumentViewerKey(e)]}),c.c),9),s=l[0],u=l[1],d=l[2],p=l[3],h=l[4],m=l[5],b=l[6],y=l[7],v=l[8],g=Object(r.useContext)(f.a),w=g.isContentEditable,_=g.isSelected,C=g.pendingReplyMap,A=g.setPendingReply,T=g.isExpandedFromSearch,j=g.scrollToSelectedAnnot,q=g.setCurAnnotId,N=g.pendingAttachmentMap,P=g.clearAttachments,R=g.deleteAttachment,I=zt(Object(r.useState)(!1),2),M=I[0],L=I[1],D=Object(c.d)(),z=Object(r.useRef)(),B=!b&&y&&Object(gt.k)();Object(xt.a)((function(){M||D(k.a.finishNoteEditing())}),[M]),Object(r.useEffect)((function(){B||m&&_&&!w&&s&&z&&z.current&&z.current.focus()}),[w,m,_,B]),Object(r.useEffect)((function(){if(!T&&j&&setTimeout((function(){z&&z.current&&s&&z.current.focus()}),100),z&&z.current){if(B)return;var e=z.current.getEditor().getLength()-1;setTimeout((function(){z.current&&z.current.editor.setSelection(e,e)}),100)}}),[]);var F=function(){var e,n=(e=Mt().m((function e(n){var r,o,i,a;return Mt().w((function(e){for(;;)switch(e.n){case 0:if(n.preventDefault(),n.stopPropagation(),r=z.current.getEditor(),(o=mt.a.getFormattedTextFromDeltas(r.getContents())).trim()){e.n=1;break}return e.a(2);case 1:if(!h){e.n=3;break}return i=mt.a.createMentionReply(t,o),Object(bt.a)(r,i),e.n=2,$e(i,N[t.Id]);case 2:S.a.addAnnotations([i],v),e.n=5;break;case 3:return a=S.a.createAnnotationReply(t,o),Object(bt.a)(r,a),e.n=4,$e(a,N[t.Id]);case 4:S.a.getAnnotationManager(v).trigger("annotationChanged",[[a],"modify",{}]);case 5:A("",t.Id),P(t.Id);case 6:return e.a(2)}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Dt(i,r,o,a,l,"next",e)}function l(e){Dt(i,r,o,a,l,"throw",e)}a(void 0)}))});return function(e){return n.apply(this,arguments)}}(),H=u||d||p,U=a()({"reply-area":!0,unread:n}),W=N[t.Id]||[];return H||!_?null:o.a.createElement("form",{onSubmit:F,className:"reply-area-container"},W.length>0&&o.a.createElement(pt,{files:W,isEditing:!0,fileDeleted:function(e){return R(t.Id,e)}}),o.a.createElement("div",{className:"reply-area-with-button"},o.a.createElement("div",{className:U,onMouseDown:function(e){return e.stopPropagation()}},o.a.createElement(x.a,{ref:function(e){z.current=e},value:C[t.Id],onChange:function(e){return function(e){A(e,t.Id),i&&i()}(e)},onSubmit:F,onBlur:function(){L(!1),q(void 0)},onFocus:function(){L(!0),q(t.Id)},isReply:!0})),o.a.createElement("div",{className:"reply-button-container"},o.a.createElement(me.a,{img:"icon-post-reply",className:"reply-button",title:"action.submit",disabled:!C[t.Id],onClick:F,isSubmitType:!0}))))};Ht.propTypes=Ft;var Ut=Ht;function Wt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Gt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Vt={groupAnnotations:s.a.array.isRequired,isMultiSelectMode:s.a.bool.isRequired},Kt=function(e){var t=e.groupAnnotations,n=e.isMultiSelectMode,i=Wt(Object(u.a)(),1)[0],l=Object(c.d)(),s=Wt(Object(r.useState)(!1),2),f=s[0],d=s[1],p=Object(c.e)((function(e){var t;return null===(t=O.a.getFeatureFlags(e))||void 0===t?void 0:t.customizableUI})),h=o.a.createElement(me.a,{onClick:function(e){e.preventDefault(),e.stopPropagation(),d(!0)},className:"text-button",ariaLabel:i("component.noteGroupSection.open"),label:i("component.noteGroupSection.open"),img:"ic_chevron_down_black_24px"}),m=o.a.createElement(me.a,{onClick:function(e){e.preventDefault(),e.stopPropagation(),d(!1)},className:"text-button",ariaLabel:i("component.noteGroupSection.close"),label:i("component.noteGroupSection.close"),img:"ic_chevron_up_black_24px"});return o.a.createElement("div",{className:a()({"group-section":!0,"modular-ui":p})},f?m:h,f&&t.map((function(e,t){return 0===t?null:o.a.createElement(me.a,{key:e.Id,className:"group-child",onClick:function(t){t.preventDefault(),t.stopPropagation(),S.a.selectAnnotation(e),S.a.jumpToAnnotation(e),l(k.a.openElement("annotationPopup"))}},o.a.createElement(It,{key:e.Id,annotation:e,isUnread:!1,isGroupMember:!0,isMultiSelectMode:n}))})))};Kt.propTypes=Vt;var $t=Kt,Yt=n(119),Zt=n(32),Xt=n(230),Qt=n(23);n(1697);function Jt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return en(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?en(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function en(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var tn=function(e){var t=e.children,n=Object(Qt.a)().querySelector("#line-connector-root"),o=document.createElement("div");return o.setAttribute("data-element",E.a.ANNOTATION_NOTE_CONNECTOR_LINE),Object(r.useEffect)((function(){return n.appendChild(o),function(){return n.removeChild(o)}}),[o,n]),Object(Yt.createPortal)(t,o)},nn={annotation:s.a.object,noteContainerRef:s.a.object,isCustomPanelOpen:s.a.bool},rn=function(e){var t=e.annotation,n=e.noteContainerRef,i=e.isCustomPanelOpen,a=Jt(Object(c.e)((function(e){return[O.a.getIsCustomUIEnabled(e),O.a.getTopHeadersHeight(e),O.a.getBottomHeadersHeight(e),O.a.getNotesPanelWidth(e),O.a.isElementOpen(e,E.a.ANNOTATION_NOTE_CONNECTOR_LINE),O.a.isElementOpen(e,E.a.NOTES_PANEL),O.a.isElementDisabled(e,E.a.ANNOTATION_NOTE_CONNECTOR_LINE),O.a.getDocumentContainerWidth(e),O.a.getDocumentContainerHeight(e),O.a.getActiveDocumentViewerKey(e)]}),c.c),10),l=a[0],s=a[1],u=a[2],f=a[3],d=a[4],p=a[5],h=a[6],m=a[7],b=a[8],y=a[9],v=Object(c.d)(),g=Jt(Object(r.useState)(0),2),w=g[0],x=g[1],_=Jt(Object(r.useState)(0),2),C=_[0],A=_[1],T=Jt(Object(r.useState)(0),2),j=T[0],q=T[1],N=Jt(Object(r.useState)(0),2),P=N[0],R=N[1],I=Jt(Object(r.useState)(0),2),M=I[0],L=I[1],D=Jt(Object(r.useState)(0),2),z=D[0],B=D[1],F=l?Zt.b:0,H=Object(Xt.d)(t,y),U=H.bottomRight,W=H.topLeft,G=Object(r.useCallback)((function(){return"Note"===t.Subject?4:15}),[t]);if(Object(r.useEffect)((function(){var e=function(){v(k.a.closeElement(E.a.ANNOTATION_NOTE_CONNECTOR_LINE))};return S.a.addEventListener("pageNumberUpdated",e,void 0,y),function(){S.a.removeEventListener("pageNumberUpdated",e,y)}}),[]),Object(r.useEffect)((function(){if(n&&n.current){var e=S.a.getScrollViewElement(y),r=e.scrollTop,o=e.scrollLeft;if(!(U&&W))return function(){v(k.a.closeElement(E.a.ANNOTATION_NOTE_CONNECTOR_LINE))};var i,a=window.isApryseWebViewerWebComponent,l=U.x-W.x,s=window.isApryseWebViewerWebComponent?Object(Qt.a)().host.clientWidth:window.innerWidth,c=(i={viewerWidth:s,annotationXPosition:W.x,annotationWidth:l,notePanelWidth:f,notePanelPadding:16,notesPanelResizeBarWidth:F,scrollLeft:o}).viewerWidth-i.annotationXPosition-i.annotationWidth-i.notePanelWidth+i.notePanelPadding+i.notesPanelResizeBarWidth+i.scrollLeft,u=function(e){var t=e.notePanelWidth,n=e.notePanelPadding,r=e.notesPanelResizeBarWidth,o=e.notesContainerTop,i=e.viewerOffsetTop,a=e.distanceToAnnotation,l=e.lineWidthRatio;return{rightHorizontalLineRightOffset:t-n-r,rightHorizontalLineTopOffset:o-i,rightHorizontalLineLength:a*(void 0===l?.75:l)}}({notePanelWidth:f,notePanelPadding:16,notesPanelResizeBarWidth:F,notesContainerTop:n.current.getBoundingClientRect().top,viewerOffsetTop:a?Object(Qt.a)().host.offsetTop:0,distanceToAnnotation:c,lineWidthRatio:.75}),d=u.rightHorizontalLineRightOffset,p=u.rightHorizontalLineTopOffset,h=u.rightHorizontalLineLength;q(d),A(p),x(h);var m=function(e){var t=e.isAnnotationNoZoom,n=e.annotationNoZoomReferencePoint,r=e.annotationHeight,o=e.notePanelWidth,i=e.notePanelPadding,a=e.notesPanelResizeBarWidth,l=e.rightHorizontalLineLength,s=e.distanceToAnnotation,c=e.annotationTopLeftY,u=e.scrollTop,f=e.annotationLineOffset,d=t&&n.x?n.x*r:0;return{leftHorizontalLineRightOffset:o-i-a+l,leftHorizontalLineTopOffset:c+r/2-u-(t&&n.y?n.y*r:0),leftHorizontalLineLength:s-l-f+d}}({isAnnotationNoZoom:t.NoZoom,annotationNoZoomReferencePoint:t.getNoZoomReferencePoint(),annotationHeight:U.y-W.y,notePanelWidth:f,notePanelPadding:16,notesPanelResizeBarWidth:F,rightHorizontalLineLength:h,distanceToAnnotation:c,annotationTopLeftY:W.y,scrollTop:r,annotationLineOffset:G()}),b=m.leftHorizontalLineRightOffset,g=m.leftHorizontalLineTopOffset,w=m.leftHorizontalLineLength;B(b),L(g),R(w)}}),[n,f,U,W,m,b]),Object(r.useEffect)((function(){var e=function(){v(k.a.closeElement(E.a.ANNOTATION_NOTE_CONNECTOR_LINE))};return S.a.addEventListener("pageNumberUpdated",e,void 0,y),function(){S.a.removeEventListener("pageNumberUpdated",e,y)}}),[v,y]),d&&(p||i)&&!h){var V=function(e){var t=e.rightHorizontalLineTop,n=e.leftHorizontalLineTop,r=e.bottomHeaderTop,o=e.topHeadersHeight,i=e.isCustomUIEnabled,a=t>n?n+2:t,l=Math.abs(t-n),s=a<o,c=a+l>r,u=s||c;return u&&i&&(s?(l=Math.abs(t-o)+2,a=o):c&&(l=Math.abs(r-t))),{verticalLineTop:a,verticalLineHeight:l,isAnnotationOffScreen:u}}({rightHorizontalLineTop:C,leftHorizontalLineTop:M,bottomHeaderTop:(window.isApryseWebViewerWebComponent?Object(Qt.a)().host.clientHeight:window.innerWidth)-u,topHeadersHeight:s,isCustomUIEnabled:l}),K=V.verticalLineTop,$=V.verticalLineHeight,Y=V.isAnnotationOffScreen;return o.a.createElement(tn,null,o.a.createElement("div",{className:"horizontalLine",style:{width:w,right:j,top:C}}),o.a.createElement("div",{className:"verticalLine",style:{height:$,top:K,right:j+w}}),o.a.createElement("div",{className:"horizontalLine",style:{width:P,right:z,top:M,visibility:Y?"hidden":"visible"}},o.a.createElement("div",{className:"arrowHead"})))}return null};rn.propTypes=nn;var on=rn,an=(n(1699),n(1639));function ln(e){return(ln="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)}function sn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return cn(c,"_invoke",function(n,r,o){var i,l,s,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,s=e,d.n=n,a}};function p(n,r){for(l=n,s=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,l=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),l=u,s=h;(t=l<2?e:s)||!f;){i||(l?l<3?(l>1&&(d.n=-1),p(l,s)):d.n=s:d.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(f=d.n<0)?s:n.call(r,d))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(cn(t={},r,(function(){return this})),t),f=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,cn(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,cn(f,"constructor",c),cn(c,"constructor",s),s.displayName="GeneratorFunction",cn(c,o,"GeneratorFunction"),cn(f),cn(f,o,"Generator"),cn(f,r,(function(){return this})),cn(f,"toString",(function(){return"[object Generator]"})),(sn=function(){return{w:i,m:d}})()}function cn(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(cn=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var i=function(t,n){cn(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,r)}function un(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function fn(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 dn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fn(Object(n),!0).forEach((function(t){pn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ln(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ln(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ln(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return mn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var bn={annotation:s.a.object.isRequired,isMultiSelected:s.a.bool,isMultiSelectMode:s.a.bool,isInNotesPanel:s.a.bool,handleMultiSelect:s.a.func},yn=0,vn=function(e){var t=e.annotation,n=e.isMultiSelected,i=e.isMultiSelectMode,l=e.isInNotesPanel,s=e.handleMultiSelect,d=e.isCustomPanelOpen,p=e.shouldHideConnectorLine,h=Object(r.useContext)(f.a),m=h.isSelected,b=h.resize,y=h.pendingEditTextMap,v=h.isContentEditable,g=h.isDocumentReadOnly,w=h.isExpandedFromSearch,x=h.setCurAnnotId,_=Object(r.useRef)(),C=Object(r.useRef)(),A=hn(Object(r.useState)({}),2),T=A[0],j=A[1],q=Object(r.useRef)([]),N=Object(c.d)(),P=hn(Object(u.a)(),1)[0],R=new Set,I=hn(Object(c.e)((function(e){return[O.a.getNoteTransformFunction(e),O.a.getCustomNoteSelectionFunction(e),O.a.getUnreadAnnotationIdSet(e),O.a.isCommentThreadExpansionEnabled(e),O.a.isRightClickAnnotationPopupEnabled(e),O.a.getActiveDocumentViewerKey(e),O.a.getIsOfficeEditorMode(e),O.a.getOfficeEditorEditMode(e)]}),c.c),8),M=I[0],L=I[1],D=I[2],z=I[3],B=I[4],F=I[5],H=I[6],U=I[7],W=Object(r.useCallback)((function(e,t){j((function(n){return dn(dn({},n),{},pn({},t,e))}))}),[j]),G=t.getReplies().sort((function(e,t){return e.DateCreated-t.DateCreated}));G.filter((function(e){return D.has(e.Id)})).forEach((function(e){return R.add(e.Id)})),Object(r.useEffect)((function(){var e=function(e,t){"delete"===t&&e.forEach((function(e){D.has(e.Id)&&N(k.a.setAnnotationReadState({isRead:!0,annotationId:e.Id}))}))};return S.a.addEventListener("annotationChanged",e,void 0,F),function(){S.a.removeEventListener("annotationChanged",e,F)}}),[D]),Object(r.useEffect)((function(){var e=C.current,t=_.current.getBoundingClientRect().height;C.current=t,e&&Math.round(e)!==Math.round(t)&&b()})),Object(r.useEffect)((function(){if(M){var e=Object(Qt.a)().querySelectorAll(".NotesPanel")[0];q.current.forEach((function(t){var n=e.querySelector("[data-webviewer-custom-element=".concat(t,"]"));n&&n.parentNode.removeChild(n)})),q.current=[];var n={annotation:t,isSelected:m};M(_.current,n,(function(){var e,t=(e=document).createElement.apply(e,arguments),n="custom-element-".concat(yn);return yn++,q.current.push(n),t.setAttribute("data-webviewer-custom-element",n),t.addEventListener("mousedown",(function(e){e.stopPropagation()})),t}))}})),Object(r.useEffect)((function(){""!==y[t.Id]&&v&&!g&&W(!0,0)}),[g,v,W,t,i]),Object(xt.a)((function(){!g&&v||W(!1,0)}),[g,v,W]);var V=function(){var e,r=(e=sn().m((function e(r){var o;return sn().w((function(e){for(;;)switch(e.n){case 0:if(r&&r.stopPropagation(),!i){e.n=1;break}return s(!n),e.a(2);case 1:if(D.has(t.Id)&&N(k.a.setAnnotationReadState({isRead:!0,annotationId:t.Id})),L&&L(t),m||(S.a.deselectAllAnnotations(F),setTimeout((function(){return N(k.a.openElement(E.a.ANNOTATION_NOTE_CONNECTOR_LINE))}),300)),!l||H&&U===xe.z.PREVIEW){e.n=3;break}if(S.a.selectAnnotation(t,F),x(t.Id),S.a.jumpToAnnotation(t,F),B||N(k.a.openElement(E.a.ANNOTATION_POPUP)),!H){e.n=3;break}return o=t.getCustomData(xe.w),e.n=2,S.a.getOfficeEditor().moveCursorToTrackedChange(o);case 2:S.a.getOfficeEditor().freezeMainCursor();case 3:return e.a(2)}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){un(i,r,o,a,l,"next",e)}function l(e){un(i,r,o,a,l,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}(),K=R.size>0,$=a()({Note:!0,expanded:m,"is-multi-selected":n,unread:D.has(t.Id)||K,disabled:H&&U===xe.z.PREVIEW}),Y=a()({replies:!0,hidden:!m});Object(r.useEffect)((function(){i||G.forEach((function(e,t){var n=y[e.Id];""!==n&&void 0!==n&&m&&W(!0,1+t)}))}),[m,i]),Object(r.useEffect)((function(){i&&W(!1,0)}),[i]);var Z=!Object.values(T).some((function(e){return e})),X=function(e){R.has(e.Id)&&(N(k.a.setAnnotationReadState({isRead:!0,annotationId:e.Id})),S.a.getAnnotationManager(F).selectAnnotation(e))},Q=function(){if(R.size>0){var e=G.filter((function(e){return R.has(e.Id)}));S.a.getAnnotationManager(F).selectAnnotations(e),e.forEach((function(e){return N(k.a.setAnnotationReadState({isRead:!0,annotationId:e.Id}))}))}},J=S.a.getGroupAnnotations(t,F),ee=J.length>1,te=Object(wt.g)(t)===wt.c.TRACKED_CHANGE,ne=G.length>0?G[G.length-1].Id:null,re=Object(an.a)(S.a,t),oe=m&&(l||d)&&!p&&re;return o.a.createElement("div",{ref:_,className:$,id:"note_".concat(t.Id)},o.a.createElement(me.a,{className:"note-button",onClick:function(e){return V(e)},ariaLabelledby:"note_".concat(t.Id),ariaCurrent:m,dataElement:"expandNoteButton"}),o.a.createElement(It,{noteIndex:0,annotation:t,setIsEditing:W,handleNoteClick:V,isEditing:T[0],isNonReplyNoteRead:!D.has(t.Id),isUnread:D.has(t.Id)||K,handleMultiSelect:function(e){x(t.Id),s(e)},isMultiSelected:n,isMultiSelectMode:i}),(m||w||z)&&!te&&o.a.createElement(o.a.Fragment,null,G.length>0&&o.a.createElement("div",{className:Y},K&&o.a.createElement(me.a,{dataElement:"markAllReadButton",className:"mark-all-read-button",label:P("action.markAllRead"),onClick:Q}),G.map((function(e,t){return o.a.createElement("div",{className:"reply",id:"note_reply_".concat(e.Id),key:"note_reply_".concat(e.Id)},o.a.createElement(It,{noteIndex:t+1,key:e.Id,annotation:e,setIsEditing:W,isEditing:T[t+1],onReplyClicked:X,isUnread:D.has(e.Id),handleMultiSelect:s,isMultiSelected:n,isMultiSelectMode:i,handleNoteClick:V}))}))),ee&&o.a.createElement($t,{groupAnnotations:J,isMultiSelectMode:i}),Z&&!i&&o.a.createElement(Ut,{isUnread:ne&&D.has(ne),onPendingReplyChange:Q,annotation:t})),oe&&o.a.createElement(on,{annotation:t,noteContainerRef:_,isCustomPanelOpen:d}))};vn.propTypes=bn;var gn=vn;t.a=gn},1710:function(e,t,n){"use strict";function r(e,t){if(Array.prototype.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function o(e,t){for(var n=e.length-1;n>=0;n--)!0===t(e[n])&&e.splice(n,1)}function i(e){throw new Error("Unhandled case for value: '".concat(e,"'"))}var a=function(){function e(e){void 0===e&&(e={}),this.tagName="",this.attrs={},this.innerHTML="",this.whitespaceRegex=/\s+/,this.tagName=e.tagName||"",this.attrs=e.attrs||{},this.innerHTML=e.innerHtml||e.innerHTML||""}return e.prototype.setTagName=function(e){return this.tagName=e,this},e.prototype.getTagName=function(){return this.tagName||""},e.prototype.setAttr=function(e,t){return this.getAttrs()[e]=t,this},e.prototype.getAttr=function(e){return this.getAttrs()[e]},e.prototype.setAttrs=function(e){return Object.assign(this.getAttrs(),e),this},e.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},e.prototype.setClass=function(e){return this.setAttr("class",e)},e.prototype.addClass=function(e){for(var t,n=this.getClass(),o=this.whitespaceRegex,i=n?n.split(o):[],a=e.split(o);t=a.shift();)-1===r(i,t)&&i.push(t);return this.getAttrs().class=i.join(" "),this},e.prototype.removeClass=function(e){for(var t,n=this.getClass(),o=this.whitespaceRegex,i=n?n.split(o):[],a=e.split(o);i.length&&(t=a.shift());){var l=r(i,t);-1!==l&&i.splice(l,1)}return this.getAttrs().class=i.join(" "),this},e.prototype.getClass=function(){return this.getAttrs().class||""},e.prototype.hasClass=function(e){return-1!==(" "+this.getClass()+" ").indexOf(" "+e+" ")},e.prototype.setInnerHTML=function(e){return this.innerHTML=e,this},e.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)},e.prototype.getInnerHTML=function(){return this.innerHTML||""},e.prototype.getInnerHtml=function(){return this.getInnerHTML()},e.prototype.toAnchorString=function(){var e=this.getTagName(),t=this.buildAttrsStr();return["<",e,t=t?" "+t:"",">",this.getInnerHtml(),"</",e,">"].join("")},e.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var e=this.getAttrs(),t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n+'="'+e[n]+'"');return t.join(" ")},e}();var l,s=function(){function e(e){void 0===e&&(e={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=e.newWindow||!1,this.truncate=e.truncate||{},this.className=e.className||""}return e.prototype.build=function(e){return new a({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},e.prototype.createAttrs=function(e){var t={href:e.getAnchorHref()},n=this.createCssClass(e);return n&&(t.class=n),this.newWindow&&(t.target="_blank",t.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<e.getAnchorText().length&&(t.title=e.getAnchorHref()),t},e.prototype.createCssClass=function(e){var t=this.className;if(t){for(var n=[t],r=e.getCssClassSuffixes(),o=0,i=r.length;o<i;o++)n.push(t+"-"+r[o]);return n.join(" ")}return""},e.prototype.processAnchorText=function(e){return e=this.doTruncate(e)},e.prototype.doTruncate=function(e){var t=this.truncate;if(!t||!t.length)return e;var n=t.length,r=t.location;return"smart"===r?function(e,t,n){var r,o;null==n?(n="&hellip;",o=3,r=8):(o=n.length,r=n.length);var i=function(e){var t="";return e.scheme&&e.host&&(t+=e.scheme+"://"),e.host&&(t+=e.host),e.path&&(t+="/"+e.path),e.query&&(t+="?"+e.query),e.fragment&&(t+="#"+e.fragment),t},a=function(e,t){var r=t/2,o=Math.ceil(r),i=-1*Math.floor(r),a="";return i<0&&(a=e.substr(i)),e.substr(0,o)+n+a};if(e.length<=t)return e;var l=t-o,s=function(e){var t={},n=e,r=n.match(/^([a-z]+):\/\//i);return r&&(t.scheme=r[1],n=n.substr(r[0].length)),(r=n.match(/^(.*?)(?=(\?|#|\/|$))/i))&&(t.host=r[1],n=n.substr(r[0].length)),(r=n.match(/^\/(.*?)(?=(\?|#|$))/i))&&(t.path=r[1],n=n.substr(r[0].length)),(r=n.match(/^\?(.*?)(?=(#|$))/i))&&(t.query=r[1],n=n.substr(r[0].length)),(r=n.match(/^#(.*?)$/i))&&(t.fragment=r[1]),t}(e);if(s.query){var c=s.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);c&&(s.query=s.query.substr(0,c[1].length),e=i(s))}if(e.length<=t)return e;if(s.host&&(s.host=s.host.replace(/^www\./,""),e=i(s)),e.length<=t)return e;var u="";if(s.host&&(u+=s.host),u.length>=l)return s.host.length==t?(s.host.substr(0,t-o)+n).substr(0,l+r):a(u,l).substr(0,l+r);var f="";if(s.path&&(f+="/"+s.path),s.query&&(f+="?"+s.query),f){if((u+f).length>=l)return(u+f).length==t?(u+f).substr(0,t):(u+a(f,l-u.length)).substr(0,l+r);u+=f}if(s.fragment){var d="#"+s.fragment;if((u+d).length>=l)return(u+d).length==t?(u+d).substr(0,t):(u+a(d,l-u.length)).substr(0,l+r);u+=d}if(s.scheme&&s.host){var p=s.scheme+"://";if((u+p).length<l)return(p+u).substr(0,t)}if(u.length<=t)return u;var h="";return l>0&&(h=u.substr(-1*Math.floor(l/2))),(u.substr(0,Math.ceil(l/2))+n+h).substr(0,l+r)}(e,n):"middle"===r?function(e,t,n){if(e.length<=t)return e;var r,o;null==n?(n="&hellip;",r=8,o=3):(r=n.length,o=n.length);var i=t-o,a="";return i>0&&(a=e.substr(-1*Math.floor(i/2))),(e.substr(0,Math.ceil(i/2))+n+a).substr(0,i+r)}(e,n):function(e,t,n){return function(e,t,n){var r;return e.length>t&&(null==n?(n="&hellip;",r=3):r=n.length,e=e.substring(0,t-r)+n),e}(e,t,n)}(e,n)},e}(),c=function(){function e(e){this.__jsduckDummyDocProp=null,this.matchedText="",this.offset=0,this.tagBuilder=e.tagBuilder,this.matchedText=e.matchedText,this.offset=e.offset}return e.prototype.getMatchedText=function(){return this.matchedText},e.prototype.setOffset=function(e){this.offset=e},e.prototype.getOffset=function(){return this.offset},e.prototype.getCssClassSuffixes=function(){return[this.getType()]},e.prototype.buildTag=function(){return this.tagBuilder.build(this)},e}(),u=n(74),f=function(e){function t(t){var n=e.call(this,t)||this;return n.email="",n.email=t.email,n}return Object(u.b)(t,e),t.prototype.getType=function(){return"email"},t.prototype.getEmail=function(){return this.email},t.prototype.getAnchorHref=function(){return"mailto:"+this.email},t.prototype.getAnchorText=function(){return this.email},t}(c),d=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="",n.hashtag="",n.serviceName=t.serviceName,n.hashtag=t.hashtag,n}return Object(u.b)(t,e),t.prototype.getType=function(){return"hashtag"},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getHashtag=function(){return this.hashtag},t.prototype.getAnchorHref=function(){var e=this.serviceName,t=this.hashtag;switch(e){case"twitter":return"https://twitter.com/hashtag/"+t;case"facebook":return"https://www.facebook.com/hashtag/"+t;case"instagram":return"https://instagram.com/explore/tags/"+t;case"tiktok":return"https://www.tiktok.com/tag/"+t;default:throw new Error("Unknown service name to point hashtag to: "+e)}},t.prototype.getAnchorText=function(){return"#"+this.hashtag},t}(c),p=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="twitter",n.mention="",n.mention=t.mention,n.serviceName=t.serviceName,n}return Object(u.b)(t,e),t.prototype.getType=function(){return"mention"},t.prototype.getMention=function(){return this.mention},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getAnchorHref=function(){switch(this.serviceName){case"twitter":return"https://twitter.com/"+this.mention;case"instagram":return"https://instagram.com/"+this.mention;case"soundcloud":return"https://soundcloud.com/"+this.mention;case"tiktok":return"https://www.tiktok.com/@"+this.mention;default:throw new Error("Unknown service name to point mention to: "+this.serviceName)}},t.prototype.getAnchorText=function(){return"@"+this.mention},t.prototype.getCssClassSuffixes=function(){var t=e.prototype.getCssClassSuffixes.call(this),n=this.getServiceName();return n&&t.push(n),t},t}(c),h=function(e){function t(t){var n=e.call(this,t)||this;return n.number="",n.plusSign=!1,n.number=t.number,n.plusSign=t.plusSign,n}return Object(u.b)(t,e),t.prototype.getType=function(){return"phone"},t.prototype.getPhoneNumber=function(){return this.number},t.prototype.getNumber=function(){return this.getPhoneNumber()},t.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},t.prototype.getAnchorText=function(){return this.matchedText},t}(c),m=function(e){function t(t){var n=e.call(this,t)||this;return n.url="",n.urlMatchType="scheme",n.protocolUrlMatch=!1,n.protocolRelativeMatch=!1,n.stripPrefix={scheme:!0,www:!0},n.stripTrailingSlash=!0,n.decodePercentEncoding=!0,n.schemePrefixRegex=/^(https?:\/\/)?/i,n.wwwPrefixRegex=/^(https?:\/\/)?(www\.)?/i,n.protocolRelativeRegex=/^\/\//,n.protocolPrepended=!1,n.urlMatchType=t.urlMatchType,n.url=t.url,n.protocolUrlMatch=t.protocolUrlMatch,n.protocolRelativeMatch=t.protocolRelativeMatch,n.stripPrefix=t.stripPrefix,n.stripTrailingSlash=t.stripTrailingSlash,n.decodePercentEncoding=t.decodePercentEncoding,n}return Object(u.b)(t,e),t.prototype.getType=function(){return"url"},t.prototype.getUrlMatchType=function(){return this.urlMatchType},t.prototype.getUrl=function(){var e=this.url;return this.protocolRelativeMatch||this.protocolUrlMatch||this.protocolPrepended||(e=this.url="http://"+e,this.protocolPrepended=!0),e},t.prototype.getAnchorHref=function(){return this.getUrl().replace(/&amp;/g,"&")},t.prototype.getAnchorText=function(){var e=this.getMatchedText();return this.protocolRelativeMatch&&(e=this.stripProtocolRelativePrefix(e)),this.stripPrefix.scheme&&(e=this.stripSchemePrefix(e)),this.stripPrefix.www&&(e=this.stripWwwPrefix(e)),this.stripTrailingSlash&&(e=this.removeTrailingSlash(e)),this.decodePercentEncoding&&(e=this.removePercentEncoding(e)),e},t.prototype.stripSchemePrefix=function(e){return e.replace(this.schemePrefixRegex,"")},t.prototype.stripWwwPrefix=function(e){return e.replace(this.wwwPrefixRegex,"$1")},t.prototype.stripProtocolRelativePrefix=function(e){return e.replace(this.protocolRelativeRegex,"")},t.prototype.removeTrailingSlash=function(e){return"/"===e.charAt(e.length-1)&&(e=e.slice(0,-1)),e},t.prototype.removePercentEncoding=function(e){var t=e.replace(/%22/gi,"&quot;").replace(/%26/gi,"&amp;").replace(/%27/gi,"&#39;").replace(/%3C/gi,"&lt;").replace(/%3E/gi,"&gt;");try{return decodeURIComponent(t)}catch(e){return t}},t}(c),b=function(e){this.__jsduckDummyDocProp=null,this.tagBuilder=e.tagBuilder},y=/[A-Za-z]/,v=/[\d]/,g=/[\D]/,w=/\s/,x=/['"]/,S=/[\x00-\x1F\x7F]/,O=/A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC/.source,E=O+/\u2700-\u27bf\udde6-\uddff\ud800-\udbff\udc00-\udfff\ufe0e\ufe0f\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0\ud83c\udffb-\udfff\u200d\u3299\u3297\u303d\u3030\u24c2\ud83c\udd70-\udd71\udd7e-\udd7f\udd8e\udd91-\udd9a\udde6-\uddff\ude01-\ude02\ude1a\ude2f\ude32-\ude3a\ude50-\ude51\u203c\u2049\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe\u00a9\u00ae\u2122\u2139\udc04\u2600-\u26FF\u2b05\u2b06\u2b07\u2b1b\u2b1c\u2b50\u2b55\u231a\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa\udccf\u2935\u2934\u2190-\u21ff/.source+/\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D4-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F/.source,k=/0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/.source,_=E+k,C=E+k,A="(?:["+k+"]{1,3}\\.){3}["+k+"]{1,3}",T="["+C+"](?:["+C+"\\-]{0,61}["+C+"])?",j=function(e){return"(?=("+T+"))\\"+e},q=function(e){return"(?:"+j(e)+"(?:\\."+j(e+1)+"){0,126}|"+A+")"},N=(new RegExp("["+C+".\\-]*["+C+"\\-]"),new RegExp("[".concat(C,"]"))),P=/(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--3oq18vl8pn36a|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|afamilycompany|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|travelchannel|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|swiftcover|tatamotors|technology|university|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|scjohnson|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|موريتانيا|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|budapest|builders|business|capetown|catering|catholic|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|etisalat|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|اتصالات|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|abarth|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glade|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|lixil|loans|locus|lotte|lotto|macys|mango|media|miami|money|movie|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|ישראל|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|adac|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|duck|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|raid|read|reit|rent|rest|rich|rmit|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|アマゾン|グーグル|クラウド|ポイント|大众汽车|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceo|cfa|cfd|com|cpa|crs|csc|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|off|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|qvc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ລາວ|ストア|セール|みんな|中文网|亚马逊|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/,R=new RegExp("[".concat(C,"!#$%&'*+/=?^_`{|}~-]")),I=new RegExp("^".concat(P.source,"$")),M=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.localPartCharRegex=R,t.strictTldRegex=I,t}return Object(u.b)(t,e),t.prototype.parseMatches=function(e){for(var t=this.tagBuilder,n=this.localPartCharRegex,r=this.strictTldRegex,o=[],a=e.length,l=new L,s={m:"a",a:"i",i:"l",l:"t",t:"o",o:":"},c=0,d=0,p=l;c<a;){var h=e.charAt(c);switch(d){case 0:m(h);break;case 1:b(e.charAt(c-1),h);break;case 2:y(h);break;case 3:v(h);break;case 4:g(h);break;case 5:w(h);break;case 6:x(h);break;case 7:S(h);break;default:i(d)}c++}return k(),o;function m(e){"m"===e?O(1):n.test(e)&&O()}function b(e,t){":"===e?n.test(t)?(d=2,p=new L(Object(u.a)(Object(u.a)({},p),{hasMailtoPrefix:!0}))):E():s[e]===t||(n.test(t)?d=2:"."===t?d=3:"@"===t?d=4:E())}function y(e){"."===e?d=3:"@"===e?d=4:n.test(e)||E()}function v(e){"."===e||"@"===e?E():n.test(e)?d=2:E()}function g(e){N.test(e)?d=5:E()}function w(e){"."===e?d=7:"-"===e?d=6:N.test(e)||k()}function x(e){"-"===e||"."===e?k():N.test(e)?d=5:k()}function S(e){"."===e||"-"===e?k():N.test(e)?(d=5,p=new L(Object(u.a)(Object(u.a)({},p),{hasDomainDot:!0}))):k()}function O(e){void 0===e&&(e=2),d=e,p=new L({idx:c})}function E(){d=0,p=l}function k(){if(p.hasDomainDot){var n=e.slice(p.idx,c);/[-.]$/.test(n)&&(n=n.slice(0,-1));var i=p.hasMailtoPrefix?n.slice("mailto:".length):n;(function(e){var t=(e.split(".").pop()||"").toLowerCase();return r.test(t)})(i)&&o.push(new f({tagBuilder:t,matchedText:n,offset:p.idx,email:i}))}E()}},t}(b),L=function(e){void 0===e&&(e={}),this.idx=void 0!==e.idx?e.idx:-1,this.hasMailtoPrefix=!!e.hasMailtoPrefix,this.hasDomainDot=!!e.hasDomainDot},D=function(){function e(){}return e.isValid=function(e,t){return!(t&&!this.isValidUriScheme(t)||this.urlMatchDoesNotHaveProtocolOrDot(e,t)||this.urlMatchDoesNotHaveAtLeastOneWordChar(e,t)&&!this.isValidIpAddress(e)||this.containsMultipleDots(e))},e.isValidIpAddress=function(e){var t=new RegExp(this.hasFullProtocolRegex.source+this.ipRegex.source);return null!==e.match(t)},e.containsMultipleDots=function(e){var t=e;return this.hasFullProtocolRegex.test(e)&&(t=e.split("://")[1]),t.split("/")[0].indexOf("..")>-1},e.isValidUriScheme=function(e){var t=e.match(this.uriSchemeRegex),n=t&&t[0].toLowerCase();return"javascript:"!==n&&"vbscript:"!==n},e.urlMatchDoesNotHaveProtocolOrDot=function(e,t){return!(!e||t&&this.hasFullProtocolRegex.test(t)||-1!==e.indexOf("."))},e.urlMatchDoesNotHaveAtLeastOneWordChar=function(e,t){return!(!e||!t)&&(!this.hasFullProtocolRegex.test(t)&&!this.hasWordCharAfterProtocolRegex.test(e))},e.hasFullProtocolRegex=/^[A-Za-z][-.+A-Za-z0-9]*:\/\//,e.uriSchemeRegex=/^[A-Za-z][-.+A-Za-z0-9]*:/,e.hasWordCharAfterProtocolRegex=new RegExp(":[^\\s]*?["+O+"]"),e.ipRegex=/[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/,e}(),z=(l=new RegExp("[/?#](?:["+C+"\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*["+C+"\\-+&@#/%=~_()|'$*\\[\\]{}✓])?"),new RegExp(["(?:","(",/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/.source,q(2),")","|","(","(//)?",/(?:www\.)/.source,q(6),")","|","(","(//)?",q(10)+"\\.",P.source,"(?![-"+_+"])",")",")","(?::[0-9]+)?","(?:"+l.source+")?"].join(""),"gi")),B=new RegExp("["+C+"]"),F=function(e){function t(t){var n=e.call(this,t)||this;return n.stripPrefix={scheme:!0,www:!0},n.stripTrailingSlash=!0,n.decodePercentEncoding=!0,n.matcherRegex=z,n.wordCharRegExp=B,n.stripPrefix=t.stripPrefix,n.stripTrailingSlash=t.stripTrailingSlash,n.decodePercentEncoding=t.decodePercentEncoding,n}return Object(u.b)(t,e),t.prototype.parseMatches=function(e){for(var t,n=this.matcherRegex,r=this.stripPrefix,o=this.stripTrailingSlash,i=this.decodePercentEncoding,a=this.tagBuilder,l=[],s=function(){var n=t[0],s=t[1],u=t[4],f=t[5],d=t[9],p=t.index,h=f||d,b=e.charAt(p-1);if(!D.isValid(n,s))return"continue";if(p>0&&"@"===b)return"continue";if(p>0&&h&&c.wordCharRegExp.test(b))return"continue";if(/\?$/.test(n)&&(n=n.substr(0,n.length-1)),c.matchHasUnbalancedClosingParen(n))n=n.substr(0,n.length-1);else{var y=c.matchHasInvalidCharAfterTld(n,s);y>-1&&(n=n.substr(0,y))}var v=["http://","https://"].find((function(e){return!!s&&-1!==s.indexOf(e)}));if(v){var g=n.indexOf(v);n=n.substr(g),s=s.substr(g),p+=g}var w=s?"scheme":u?"www":"tld",x=!!s;l.push(new m({tagBuilder:a,matchedText:n,offset:p,urlMatchType:w,url:n,protocolUrlMatch:x,protocolRelativeMatch:!!h,stripPrefix:r,stripTrailingSlash:o,decodePercentEncoding:i}))},c=this;null!==(t=n.exec(e));)s();return l},t.prototype.matchHasUnbalancedClosingParen=function(e){var t,n=e.charAt(e.length-1);if(")"===n)t="(";else if("]"===n)t="[";else{if("}"!==n)return!1;t="{"}for(var r=0,o=0,i=e.length-1;o<i;o++){var a=e.charAt(o);a===t?r++:a===n&&(r=Math.max(r-1,0))}return 0===r},t.prototype.matchHasInvalidCharAfterTld=function(e,t){if(!e)return-1;var n=0;t&&(n=e.indexOf(":"),e=e.slice(n));var r=new RegExp("^((.?//)?[-."+C+"]*[-"+C+"]\\.[-"+C+"]+)").exec(e);return null===r?-1:(n+=r[1].length,e=e.slice(r[1].length),/^[^-.A-Za-z0-9:\/?#]/.test(e)?n:-1)},t}(b),H=new RegExp("#[_".concat(C,"]{1,139}(?![_").concat(C,"])"),"g"),U=new RegExp("[^"+C+"]"),W=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="twitter",n.matcherRegex=H,n.nonWordCharRegex=U,n.serviceName=t.serviceName,n}return Object(u.b)(t,e),t.prototype.parseMatches=function(e){for(var t,n=this.matcherRegex,r=this.nonWordCharRegex,o=this.serviceName,i=this.tagBuilder,a=[];null!==(t=n.exec(e));){var l=t.index,s=e.charAt(l-1);if(0===l||r.test(s)){var c=t[0],u=t[0].slice(1);a.push(new d({tagBuilder:i,matchedText:c,offset:l,serviceName:o,hashtag:u}))}}return a},t}(b),G=new RegExp("".concat(/(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*/.source,"|").concat(/(0([1-9]{1}-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/.source),"g"),V=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.matcherRegex=G,t}return Object(u.b)(t,e),t.prototype.parseMatches=function(e){for(var t,n=this.matcherRegex,r=this.tagBuilder,o=[];null!==(t=n.exec(e));){var i=t[0],a=i.replace(/[^0-9,;#]/g,""),l=!(!t[1]&&!t[2]),s=0==t.index?"":e.substr(t.index-1,1),c=e.substr(t.index+i.length,1),u=!s.match(/\d/)&&!c.match(/\d/);this.testMatch(t[3])&&this.testMatch(i)&&u&&o.push(new h({tagBuilder:r,matchedText:i,offset:t.index,number:a,plusSign:l}))}return o},t.prototype.testMatch=function(e){return g.test(e)},t}(b),K=new RegExp("@[_".concat(C,"]{1,50}(?![_").concat(C,"])"),"g"),$=new RegExp("@[_.".concat(C,"]{1,30}(?![_").concat(C,"])"),"g"),Y=new RegExp("@[-_.".concat(C,"]{1,50}(?![-_").concat(C,"])"),"g"),Z=new RegExp("@[_.".concat(C,"]{1,23}[_").concat(C,"](?![_").concat(C,"])"),"g"),X=new RegExp("[^"+C+"]"),Q=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="twitter",n.matcherRegexes={twitter:K,instagram:$,soundcloud:Y,tiktok:Z},n.nonWordCharRegex=X,n.serviceName=t.serviceName,n}return Object(u.b)(t,e),t.prototype.parseMatches=function(e){var t,n=this.serviceName,r=this.matcherRegexes[this.serviceName],o=this.nonWordCharRegex,i=this.tagBuilder,a=[];if(!r)return a;for(;null!==(t=r.exec(e));){var l=t.index,s=e.charAt(l-1);if(0===l||o.test(s)){var c=t[0].replace(/\.+$/g,""),u=c.slice(1);a.push(new p({tagBuilder:i,matchedText:c,offset:l,serviceName:n,mention:u}))}}return a},t}(b);function J(e,t){for(var n,r=t.onOpenTag,o=t.onCloseTag,a=t.onText,l=t.onComment,s=t.onDoctype,c=new ee,f=0,d=e.length,p=0,h=0,m=c;f<d;){var b=e.charAt(f);switch(p){case 0:g(b);break;case 1:O(b);break;case 2:k(b);break;case 3:E(b);break;case 4:_(b);break;case 5:C(b);break;case 6:A(b);break;case 7:T(b);break;case 8:j(b);break;case 9:q(b);break;case 10:N(b);break;case 11:P(b);break;case 12:R(b);break;case 13:I(b);break;case 14:M(b);break;case 15:L(b);break;case 16:D(b);break;case 17:z(b);break;case 18:B(b);break;case 19:F(b);break;case 20:H(b);break;default:i(p)}f++}function g(e){"<"===e&&W()}function O(e){"!"===e?p=13:"/"===e?(p=2,m=new ee(Object(u.a)(Object(u.a)({},m),{isClosing:!0}))):"<"===e?W():y.test(e)?(p=3,m=new ee(Object(u.a)(Object(u.a)({},m),{isOpening:!0}))):(p=0,m=c)}function E(e){w.test(e)?(m=new ee(Object(u.a)(Object(u.a)({},m),{name:V()})),p=4):"<"===e?W():"/"===e?(m=new ee(Object(u.a)(Object(u.a)({},m),{name:V()})),p=12):">"===e?(m=new ee(Object(u.a)(Object(u.a)({},m),{name:V()})),G()):y.test(e)||v.test(e)||":"===e||U()}function k(e){">"===e?U():y.test(e)?p=3:U()}function _(e){w.test(e)||("/"===e?p=12:">"===e?G():"<"===e?W():"="===e||x.test(e)||S.test(e)?U():p=5)}function C(e){w.test(e)?p=6:"/"===e?p=12:"="===e?p=7:">"===e?G():"<"===e?W():x.test(e)&&U()}function A(e){w.test(e)||("/"===e?p=12:"="===e?p=7:">"===e?G():"<"===e?W():x.test(e)?U():p=5)}function T(e){w.test(e)||('"'===e?p=8:"'"===e?p=9:/[>=`]/.test(e)?U():"<"===e?W():p=10)}function j(e){'"'===e&&(p=11)}function q(e){"'"===e&&(p=11)}function N(e){w.test(e)?p=4:">"===e?G():"<"===e&&W()}function P(e){w.test(e)?p=4:"/"===e?p=12:">"===e?G():"<"===e?W():(p=4,f--)}function R(e){">"===e?(m=new ee(Object(u.a)(Object(u.a)({},m),{isClosing:!0})),G()):p=4}function I(t){"--"===e.substr(f,2)?(f+=2,m=new ee(Object(u.a)(Object(u.a)({},m),{type:"comment"})),p=14):"DOCTYPE"===e.substr(f,7).toUpperCase()?(f+=7,m=new ee(Object(u.a)(Object(u.a)({},m),{type:"doctype"})),p=20):U()}function M(e){"-"===e?p=15:">"===e?U():p=16}function L(e){"-"===e?p=18:">"===e?U():p=16}function D(e){"-"===e&&(p=17)}function z(e){p="-"===e?18:16}function B(e){">"===e?G():"!"===e?p=19:"-"===e||(p=16)}function F(e){"-"===e?p=17:">"===e?G():p=16}function H(e){">"===e?G():"<"===e&&W()}function U(){p=0,m=c}function W(){p=1,m=new ee({idx:f})}function G(){var t=e.slice(h,m.idx);t&&a(t,h),"comment"===m.type?l(m.idx):"doctype"===m.type?s(m.idx):(m.isOpening&&r(m.name,m.idx),m.isClosing&&o(m.name,m.idx)),U(),h=f+1}function V(){var t=m.idx+(m.isClosing?2:1);return e.slice(t,f).toLowerCase()}h<f&&(n=e.slice(h,f),a(n,h),h=f+1)}var ee=function(e){void 0===e&&(e={}),this.idx=void 0!==e.idx?e.idx:-1,this.type=e.type||"tag",this.name=e.name||"",this.isOpening=!!e.isOpening,this.isClosing=!!e.isClosing},te=function(){function e(t){void 0===t&&(t={}),this.version=e.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:"end"},this.className="",this.replaceFn=null,this.context=void 0,this.sanitizeHtml=!1,this.matchers=null,this.tagBuilder=null,this.urls=this.normalizeUrlsCfg(t.urls),this.email="boolean"==typeof t.email?t.email:this.email,this.phone="boolean"==typeof t.phone?t.phone:this.phone,this.hashtag=t.hashtag||this.hashtag,this.mention=t.mention||this.mention,this.newWindow="boolean"==typeof t.newWindow?t.newWindow:this.newWindow,this.stripPrefix=this.normalizeStripPrefixCfg(t.stripPrefix),this.stripTrailingSlash="boolean"==typeof t.stripTrailingSlash?t.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding="boolean"==typeof t.decodePercentEncoding?t.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=t.sanitizeHtml||!1;var n=this.mention;if(!1!==n&&-1===["twitter","instagram","soundcloud","tiktok"].indexOf(n))throw new Error("invalid `mention` cfg '".concat(n,"' - see docs"));var r=this.hashtag;if(!1!==r&&-1===["twitter","facebook","instagram","tiktok"].indexOf(r))throw new Error("invalid `hashtag` cfg '".concat(r,"' - see docs"));this.truncate=this.normalizeTruncateCfg(t.truncate),this.className=t.className||this.className,this.replaceFn=t.replaceFn||this.replaceFn,this.context=t.context||this}return e.link=function(t,n){return new e(n).link(t)},e.parse=function(t,n){return new e(n).parse(t)},e.prototype.normalizeUrlsCfg=function(e){return null==e&&(e=!0),"boolean"==typeof e?{schemeMatches:e,wwwMatches:e,tldMatches:e}:{schemeMatches:"boolean"!=typeof e.schemeMatches||e.schemeMatches,wwwMatches:"boolean"!=typeof e.wwwMatches||e.wwwMatches,tldMatches:"boolean"!=typeof e.tldMatches||e.tldMatches}},e.prototype.normalizeStripPrefixCfg=function(e){return null==e&&(e=!0),"boolean"==typeof e?{scheme:e,www:e}:{scheme:"boolean"!=typeof e.scheme||e.scheme,www:"boolean"!=typeof e.www||e.www}},e.prototype.normalizeTruncateCfg=function(e){return"number"==typeof e?{length:e,location:"end"}:function(e,t){for(var n in t)t.hasOwnProperty(n)&&void 0===e[n]&&(e[n]=t[n]);return e}(e||{},{length:Number.POSITIVE_INFINITY,location:"end"})},e.prototype.parse=function(e){var t=this,n=["a","style","script"],r=0,o=[];return J(e,{onOpenTag:function(e){n.indexOf(e)>=0&&r++},onText:function(e,n){if(0===r){var i=function(e,t){if(!t.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var n,r=[],o=0;n=t.exec(e);)r.push(e.substring(o,n.index)),r.push(n[0]),o=n.index+n[0].length;return r.push(e.substring(o)),r}(e,/(&nbsp;|&#160;|&lt;|&#60;|&gt;|&#62;|&quot;|&#34;|&#39;)/gi),a=n;i.forEach((function(e,n){if(n%2==0){var r=t.parseText(e,a);o.push.apply(o,r)}a+=e.length}))}},onCloseTag:function(e){n.indexOf(e)>=0&&(r=Math.max(r-1,0))},onComment:function(e){},onDoctype:function(e){}}),o=this.compactMatches(o),o=this.removeUnwantedMatches(o)},e.prototype.compactMatches=function(e){e.sort((function(e,t){return e.getOffset()-t.getOffset()}));for(var t=0;t<e.length-1;){var n=e[t],r=n.getOffset(),o=n.getMatchedText().length,i=r+o;if(t+1<e.length){if(e[t+1].getOffset()===r){var a=e[t+1].getMatchedText().length>o?t:t+1;e.splice(a,1);continue}if(e[t+1].getOffset()<i){e.splice(t+1,1);continue}}t++}return e},e.prototype.removeUnwantedMatches=function(e){return this.hashtag||o(e,(function(e){return"hashtag"===e.getType()})),this.email||o(e,(function(e){return"email"===e.getType()})),this.phone||o(e,(function(e){return"phone"===e.getType()})),this.mention||o(e,(function(e){return"mention"===e.getType()})),this.urls.schemeMatches||o(e,(function(e){return"url"===e.getType()&&"scheme"===e.getUrlMatchType()})),this.urls.wwwMatches||o(e,(function(e){return"url"===e.getType()&&"www"===e.getUrlMatchType()})),this.urls.tldMatches||o(e,(function(e){return"url"===e.getType()&&"tld"===e.getUrlMatchType()})),e},e.prototype.parseText=function(e,t){void 0===t&&(t=0),t=t||0;for(var n=this.getMatchers(),r=[],o=0,i=n.length;o<i;o++){for(var a=n[o].parseMatches(e),l=0,s=a.length;l<s;l++)a[l].setOffset(t+a[l].getOffset());r.push.apply(r,a)}return r},e.prototype.link=function(e){if(!e)return"";this.sanitizeHtml&&(e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"));for(var t=this.parse(e),n=[],r=0,o=0,i=t.length;o<i;o++){var a=t[o];n.push(e.substring(r,a.getOffset())),n.push(this.createMatchReturnVal(a)),r=a.getOffset()+a.getMatchedText().length}return n.push(e.substring(r)),n.join("")},e.prototype.createMatchReturnVal=function(e){var t;return this.replaceFn&&(t=this.replaceFn.call(this.context,e)),"string"==typeof t?t:!1===t?e.getMatchedText():t instanceof a?t.toAnchorString():e.buildTag().toAnchorString()},e.prototype.getMatchers=function(){if(this.matchers)return this.matchers;var e=this.getTagBuilder(),t=[new W({tagBuilder:e,serviceName:this.hashtag}),new M({tagBuilder:e}),new V({tagBuilder:e}),new Q({tagBuilder:e,serviceName:this.mention}),new F({tagBuilder:e,stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding})];return this.matchers=t},e.prototype.getTagBuilder=function(){var e=this.tagBuilder;return e||(e=this.tagBuilder=new s({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),e},e.version="3.15.0",e.AnchorTagBuilder=s,e.HtmlTag=a,e.matcher={Email:M,Hashtag:W,Matcher:b,Mention:Q,Phone:V,Url:F},e.match={Email:f,Hashtag:d,Match:c,Mention:p,Phone:h,Url:m},e}();t.a=te},1711:function(e,t,n){"use strict";n.d(t,"b",(function(){return x})),n.d(t,"a",(function(){return F}));n(9),n(10),n(14),n(30),n(27),n(76),n(12),n(31),n(18),n(26),n(234),n(28),n(59),n(40),n(24),n(47),n(42),n(37),n(43),n(8),n(84),n(615),n(19),n(11),n(29),n(13);var r=n(1582);function o(e,t,n,r){var o=i(v(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function i(){return(i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=a(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(null,arguments)}function a(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t,n){return t=v(t),function(e,t){if(t&&("object"==l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(t,n||[],v(e).constructor):t.apply(e,n))}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}function h(e){var t="function"==typeof Map?new Map:void 0;return(h=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return m(e,arguments,v(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),y(n,e)})(e)}function m(e,t,n){if(b())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&y(o,n.prototype),o}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function y(e,t){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=r.a.import("blots/embed"),w=function(e){function t(e,n){var r;return f(this,t),(r=d(this,t,[e,n])).value={},r.event=new Event(e),r}return p(t,e),c(t)}(h(Event));var x=function(e){function t(e,n){var r;return f(this,t),(r=d(this,t,[e,n])).mounted=!1,r}return p(t,e),c(t,[{key:"attach",value:function(){o(t,"attach",this,3)([]),this.mounted||(this.mounted=!0,this.clickHandler=this.getClickHandler(),this.hoverHandler=this.getHoverHandler(),this.domNode.addEventListener("click",this.clickHandler,!1),this.domNode.addEventListener("mouseenter",this.hoverHandler,!1))}},{key:"detach",value:function(){o(t,"detach",this,3)([]),this.mounted=!1,this.clickHandler&&(this.domNode.removeEventListener("click",this.clickHandler),this.clickHandler=void 0)}},{key:"getClickHandler",value:function(){var e=this;return function(t){var n=e.buildEvent("mention-clicked",t);window.dispatchEvent(n),t.preventDefault()}}},{key:"getHoverHandler",value:function(){var e=this;return function(t){var n=e.buildEvent("mention-hovered",t);window.dispatchEvent(n),t.preventDefault()}}},{key:"buildEvent",value:function(e,t){var n=new w(e,{bubbles:!0,cancelable:!0});return n.value=Object.assign({},this.domNode.dataset),n.event=t,n}}],[{key:"create",value:function(e){var n=o(t,"create",this,2)([]);if(!function(e){return"object"===l(e)&&null!==e&&"value"in e&&"string"==typeof e.value&&"denotationChar"in e&&"string"==typeof e.denotationChar}(e)||n instanceof HTMLElement==!1)return n;var r=document.createElement("span");if(r.className="ql-mention-denotation-char",r.innerText=e.denotationChar,n.appendChild(r),"function"==typeof this.render)n.appendChild(this.render(e));else{var i=document.createElement("span");i.className="ql-mention-value",i.innerText=e.value,n.appendChild(i)}return t.setDataValues(n,e)}},{key:"setDataValues",value:function(e,t){var n=e;return Object.keys(t).forEach((function(e){n.dataset[e]=t[e]})),n}},{key:"value",value:function(e){return e.dataset}}])}(g);x.blotName="mention",x.tagName="span",x.className="mention";n(38),n(34),n(21),n(20),n(22),n(16),n(1608),n(1662),n(48),n(49),n(468),n(17),n(94);var S="Tab",O="Enter",E="Escape",k="ArrowUp",_="ArrowDown";n(267),n(118),n(180);function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(e,t,n){var r=e;return Object.keys(t).forEach((function(e){n.indexOf(e)>-1?r.dataset[e]=t[e]:delete r.dataset[e]})),r}function T(e,t){null!==t&&("object"===C(t)?e.appendChild(t):e.innerText=t)}function j(e){return(j="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)}function q(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 N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e,t,n){return(t=L(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return I(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,L(r.key),r)}}function L(e){var t=function(e,t){if("object"!=j(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=j(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==j(t)?t:t+""}function D(e,t,n){return t=z(t),function(e,t){if(t&&("object"==j(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],z(e).constructor):t.apply(e,n))}function z(e){return(z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function B(e,t){return(B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var F=function(e){function t(e,n){var r,o;for(var i in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=D(this,t,[e,n])).isOpen=!1,o.itemIndex=0,o.values=[],o.suspendMouseEnter=!1,Array.isArray(null==n?void 0:n.dataAttributes)&&(o.options.dataAttributes=o.options.dataAttributes?o.options.dataAttributes.concat(n.dataAttributes):n.dataAttributes),o.options){var a=i,l=o.options[a];"function"==typeof l&&(o.options[a]=l.bind(o))}o.mentionContainer=document.createElement("div"),o.mentionContainer.className=o.options.mentionContainerClass?o.options.mentionContainerClass:"",o.mentionContainer.style.cssText="display: none; position: absolute;",o.mentionContainer.onmousemove=o.onContainerMouseMove.bind(o),o.options.fixMentionsToQuill&&(o.mentionContainer.style.width="auto"),o.mentionList=document.createElement("ul"),o.mentionList.id="quill-mention-list",e.root.setAttribute("aria-owns","quill-mention-list"),o.mentionList.className=o.options.mentionListClass?o.options.mentionListClass:"",o.mentionContainer.appendChild(o.mentionList),e.on("text-change",o.onTextChange.bind(o)),e.on("selection-change",o.onSelectionChange.bind(o)),e.container.addEventListener("paste",(function(){setTimeout((function(){var t=e.getSelection();o.onSelectionChange(t)}))})),e.keyboard.addBinding({key:S},o.selectHandler.bind(o)),e.keyboard.bindings[S].unshift(e.keyboard.bindings[S].pop());var s,c=R(null!==(r=o.options.selectKeys)&&void 0!==r?r:[]);try{for(c.s();!(s=c.n()).done;){var u=s.value;e.keyboard.addBinding({key:u},o.selectHandler.bind(o))}}catch(e){c.e(e)}finally{c.f()}return e.keyboard.bindings[O].unshift(e.keyboard.bindings[O].pop()),e.keyboard.addBinding({key:E},o.escapeHandler.bind(o)),e.keyboard.addBinding({key:k},o.upHandler.bind(o)),e.keyboard.addBinding({key:_},o.downHandler.bind(o)),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B(e,t)}(t,e),function(e,t,n){return t&&M(e.prototype,t),n&&M(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"selectHandler",value:function(){return!(this.isOpen&&!this.existingSourceExecutionToken)||(this.selectItem(),!1)}},{key:"escapeHandler",value:function(){return!this.isOpen||(this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.hideMentionList(),!1)}},{key:"upHandler",value:function(){return!(this.isOpen&&!this.existingSourceExecutionToken)||(this.prevItem(),!1)}},{key:"downHandler",value:function(){return!(this.isOpen&&!this.existingSourceExecutionToken)||(this.nextItem(),!1)}},{key:"showMentionList",value:function(){"fixed"===this.options.positioningStrategy?document.body.appendChild(this.mentionContainer):this.quill.container.appendChild(this.mentionContainer),this.mentionContainer.style.visibility="hidden",this.mentionContainer.style.display="",this.mentionContainer.scrollTop=0,this.setMentionContainerPosition(),this.setIsOpen(!0)}},{key:"hideMentionList",value:function(){this.options.onBeforeClose&&this.options.onBeforeClose(),this.mentionContainer.style.display="none",this.mentionContainer.remove(),this.setIsOpen(!1),this.quill.root.removeAttribute("aria-activedescendant")}},{key:"highlightItem",value:function(){for(var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=0;t<this.mentionList.childNodes.length;t+=1){var n=this.mentionList.childNodes[t];n instanceof HTMLElement&&n.classList.remove("selected")}var r=this.mentionList.childNodes[this.itemIndex];if(-1!==this.itemIndex&&"true"!==r.dataset.disabled&&(r.classList.add("selected"),this.quill.root.setAttribute("aria-activedescendant",r.id),e)){var o=r.offsetHeight,i=r.offsetTop,a=this.mentionContainer.scrollTop,l=a+this.mentionContainer.offsetHeight;i<a?this.mentionContainer.scrollTop=i:i>l-o&&(this.mentionContainer.scrollTop+=i-l+o)}}},{key:"onContainerMouseMove",value:function(){this.suspendMouseEnter=!1}},{key:"selectItem",value:function(){var e,t,n=this;if(-1!==this.itemIndex){var r=this.mentionList.childNodes[this.itemIndex].dataset;r.disabled||(null===(e=(t=this.options).onSelect)||void 0===e||e.call(t,r,(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.insertItem(e,t,r)})),this.hideMentionList())}}},{key:"insertItem",value:function(e,n){var o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=e;if(null!==a&&void 0!==this.mentionCharPos&&void 0!==this.cursorPos){var l,s=N(N({},this.options),i);s.showDenotationChar||(a.denotationChar=""),n?l=this.cursorPos:(l=this.mentionCharPos,this.quill.deleteText(this.mentionCharPos,this.cursorPos-this.mentionCharPos,r.a.sources.USER));var c=this.quill.insertEmbed(l,null!==(o=s.blotName)&&void 0!==o?o:t.DEFAULTS.blotName,a,r.a.sources.USER);return s.spaceAfterInsert?(this.quill.insertText(l+1," ",r.a.sources.USER),this.quill.setSelection(l+2,r.a.sources.USER)):this.quill.setSelection(l+1,r.a.sources.USER),this.hideMentionList(),c}}},{key:"onItemMouseEnter",value:function(e){var t;if(!this.suspendMouseEnter&&e.target instanceof HTMLElement!=!1){var n=Number(null===(t=e.target)||void 0===t?void 0:t.dataset.index);Number.isNaN(n)||n===this.itemIndex||(this.itemIndex=n,this.highlightItem(!1))}}},{key:"onDisabledItemMouseEnter",value:function(){this.suspendMouseEnter||(this.itemIndex=-1,this.highlightItem(!1))}},{key:"onItemClick",value:function(e){var t;e.preventDefault(),e.stopImmediatePropagation(),e.currentTarget instanceof HTMLElement!=!1&&(this.itemIndex=null!==(t=e.currentTarget)&&void 0!==t&&t.dataset.index?Number.parseInt(e.currentTarget.dataset.index):-1,this.highlightItem(),this.selectItem())}},{key:"onItemMouseDown",value:function(e){e.preventDefault(),e.stopImmediatePropagation()}},{key:"renderLoading",value:function(){var e,t,n,r=null!==(e=null===(t=(n=this.options).renderLoading)||void 0===t?void 0:t.call(n))&&void 0!==e?e:void 0;if(void 0!==r)if(this.mentionContainer.getElementsByClassName("ql-mention-loading").length>0)this.showMentionList();else{this.mentionList.innerHTML="";var o=document.createElement("div");o.className="ql-mention-loading",T(o,r),this.mentionContainer.append(o),this.showMentionList()}}},{key:"removeLoading",value:function(){var e=this.mentionContainer.getElementsByClassName("ql-mention-loading");e.length>0&&e[0].remove()}},{key:"renderList",value:function(e,t,n){if(t&&t.length>0){this.removeLoading(),this.values=t,this.mentionList.innerText="";for(var r=-1,o=0;o<t.length;o+=1){var i=document.createElement("li");i.id="quill-mention-item-"+o,i.className=this.options.listItemClass?this.options.listItemClass:"",t[o].disabled?(i.className+=" disabled",i.setAttribute("aria-hidden","true")):-1===r&&(r=o),i.dataset.index=o.toString(),T(i,this.options.renderItem(t[o],n)),t[o].disabled?i.onmouseenter=this.onDisabledItemMouseEnter.bind(this):(i.onmouseenter=this.onItemMouseEnter.bind(this),i.onmouseup=this.onItemClick.bind(this),i.onmousedown=this.onItemMouseDown.bind(this)),i.dataset.denotationChar=e,this.mentionList.appendChild(A(i,t[o],this.options.dataAttributes))}this.itemIndex=r,this.highlightItem(),this.showMentionList()}else this.hideMentionList()}},{key:"nextItem",value:function(){var e,t,n=0;do{if(n++,e=(this.itemIndex+n)%this.values.length,t="true"===this.mentionList.childNodes[e].dataset.disabled,n===this.values.length+1){e=-1;break}}while(t);this.itemIndex=e,this.suspendMouseEnter=!0,this.highlightItem()}},{key:"prevItem",value:function(){var e,t,n=0;do{if(n++,e=(this.itemIndex+this.values.length-n)%this.values.length,t="true"===this.mentionList.childNodes[e].dataset.disabled,n===this.values.length+1){e=-1;break}}while(t);this.itemIndex=e,this.suspendMouseEnter=!0,this.highlightItem()}},{key:"containerBottomIsNotVisible",value:function(e,t){return e+this.mentionContainer.offsetHeight+t.top>window.scrollY+window.innerHeight}},{key:"containerRightIsNotVisible",value:function(e,t){return!this.options.fixMentionsToQuill&&e+this.mentionContainer.offsetWidth+t.left>window.scrollX+document.documentElement.clientWidth}},{key:"setIsOpen",value:function(e){if(this.isOpen!==e){var t,n,r,o;if(e)null===(t=(n=this.options).onOpen)||void 0===t||t.call(n);else null===(r=(o=this.options).onClose)||void 0===r||r.call(o);this.isOpen=e}}},{key:"setMentionContainerPosition",value:function(){"fixed"===this.options.positioningStrategy?this.setMentionContainerPosition_Fixed():this.setMentionContainerPosition_Normal()}},{key:"setMentionContainerPosition_Normal",value:function(){var e=this;if(void 0!==this.mentionCharPos){var t=this.quill.container.getBoundingClientRect(),n=this.quill.getBounds(this.mentionCharPos);if(null!==n){var r,o,i=this.mentionContainer.offsetHeight,a=this.options.offsetTop,l=this.options.offsetLeft;if(this.options.fixMentionsToQuill){this.mentionContainer.style.right="".concat(0,"px")}else l+=n.left;if(this.containerRightIsNotVisible(l,t)){var s=this.mentionContainer.offsetWidth+this.options.offsetLeft;l=t.width-s}if("top"===this.options.defaultMenuOrientation){if((a=this.options.fixMentionsToQuill?-1*(i+this.options.offsetTop):n.top-(i+this.options.offsetTop))+t.top<=0){var c=this.options.offsetTop;this.options.fixMentionsToQuill?c+=t.height:c+=n.bottom,a=c}}else if(this.options.fixMentionsToQuill?a+=t.height:a+=n.bottom,this.containerBottomIsNotVisible(a,t)){var u=-1*this.options.offsetTop;this.options.fixMentionsToQuill||(u+=n.top),a=u-i}if(a>=0)null===(r=this.options.mentionContainerClass)||void 0===r||r.split(" ").forEach((function(t){e.mentionContainer.classList.add("".concat(t,"-bottom")),e.mentionContainer.classList.remove("".concat(t,"-top"))}));else null===(o=this.options.mentionContainerClass)||void 0===o||o.split(" ").forEach((function(t){e.mentionContainer.classList.add("".concat(t,"-top")),e.mentionContainer.classList.remove("".concat(t,"-bottom"))}));this.mentionContainer.style.top="".concat(a,"px"),this.mentionContainer.style.left="".concat(l,"px"),this.mentionContainer.style.visibility="visible"}}}},{key:"setMentionContainerPosition_Fixed",value:function(){var e=this;if(void 0!==this.mentionCharPos){this.mentionContainer.style.position="fixed",this.mentionContainer.style.height="";var t=this.quill.container.getBoundingClientRect(),n=this.quill.getBounds(this.mentionCharPos);if(null!==n){var r={right:t.right-n.right,left:t.left+n.left,top:t.top+n.top,width:0,height:n.height},o=this.options.fixMentionsToQuill?t:r,i=this.options.offsetTop,a=this.options.offsetLeft;if(this.options.fixMentionsToQuill){var l=o.right;this.mentionContainer.style.right="".concat(l,"px")}else(a+=o.left)+this.mentionContainer.offsetWidth>document.documentElement.clientWidth&&(a-=a+this.mentionContainer.offsetWidth-document.documentElement.clientWidth);var s,c,u=o.top,f=document.documentElement.clientHeight-(o.top+o.height),d=this.mentionContainer.offsetHeight<=f,p=this.mentionContainer.offsetHeight<=u;if("bottom"===("top"===this.options.defaultMenuOrientation&&p?"top":"bottom"===this.options.defaultMenuOrientation&&d||f>u?"bottom":"top"))i=o.top+o.height,d||(this.mentionContainer.style.height=f-3+"px"),null===(s=this.options.mentionContainerClass)||void 0===s||s.split(" ").forEach((function(t){e.mentionContainer.classList.add("".concat(t,"-bottom")),e.mentionContainer.classList.remove("".concat(t,"-top"))}));else i=o.top-this.mentionContainer.offsetHeight,p||(this.mentionContainer.style.height=u-3+"px",i=3),null===(c=this.options.mentionContainerClass)||void 0===c||c.split(" ").forEach((function(t){e.mentionContainer.classList.add("".concat(t,"-top")),e.mentionContainer.classList.remove("".concat(t,"-bottom"))}));this.mentionContainer.style.top="".concat(i,"px"),this.mentionContainer.style.left="".concat(a,"px"),this.mentionContainer.style.visibility="visible"}}}},{key:"getTextBeforeCursor",value:function(){var e,t,n=Math.max(0,(null!==(e=this.cursorPos)&&void 0!==e?e:0)-this.options.maxChars);return this.quill.getText(n,(null!==(t=this.cursorPos)&&void 0!==t?t:0)-n)}},{key:"onSomethingChange",value:function(){var e=this,t=this.quill.getSelection();if(null!=t){this.cursorPos=t.index;var n,r,o,i,a=this.getTextBeforeCursor(),l=Math.max(0,this.cursorPos-this.options.maxChars),s=l?this.quill.getText(l-1,l):"",c=(n=a,r=this.options.mentionDenotationChars,o=this.options.isolateCharacter,i=this.options.allowInlineMentionChar,r.reduce((function(e,t){var r;if(o&&i){var a=new RegExp("^".concat(t,"|\\s").concat(t),"g"),l=(n.match(a)||[]).pop();if(!l)return{mentionChar:e.mentionChar,mentionCharIndex:e.mentionCharIndex};r=l!==t?n.lastIndexOf(l)+l.length-t.length:0}else r=n.lastIndexOf(t);return r>e.mentionCharIndex?{mentionChar:t,mentionCharIndex:r}:{mentionChar:e.mentionChar,mentionCharIndex:e.mentionCharIndex}}),{mentionChar:null,mentionCharIndex:-1})),u=c.mentionChar,f=c.mentionCharIndex;if(null!==u&&function(e,t,n,r){if(-1===e)return!1;if(!n)return!0;var o=e?t[e-1]:r;return!o||!!o.match(/\s/)}(f,a,this.options.isolateCharacter,s)){var d=this.cursorPos-(a.length-f);this.mentionCharPos=d;var p=a.substring(f+u.length);if(p.length>=this.options.minChars&&function(e,t){return t.test(e)}(p,this.getAllowedCharsRegex(u))){var h,m;this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.renderLoading();var b={abandoned:!1};this.existingSourceExecutionToken=b,null===(h=(m=this.options).source)||void 0===h||h.call(m,p,(function(t,n){b.abandoned||(e.existingSourceExecutionToken=void 0,e.renderList(u,t,n))}),u)}else this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.hideMentionList()}else this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.hideMentionList()}}},{key:"getAllowedCharsRegex",value:function(e){return this.options.allowedChars instanceof RegExp?this.options.allowedChars:null!==(t=null===(n=(r=this.options).allowedChars)||void 0===n?void 0:n.call(r,e))&&void 0!==t?t:/^[a-zA-Z0-9_]*$/;var t,n,r}},{key:"onTextChange",value:function(e,t,n){"user"===n&&setTimeout(this.onSomethingChange.bind(this),50)}},{key:"onSelectionChange",value:function(e){null!==e&&0===e.length?this.onSomethingChange():this.hideMentionList()}},{key:"openMenu",value:function(e){var t=this.quill.getSelection(!0);this.quill.insertText(t.index,e),this.quill.blur(),this.quill.focus()}}])}(r.a.import("core/module"));F.DEFAULTS={mentionDenotationChars:["@"],showDenotationChar:!0,allowedChars:/^[a-zA-Z0-9_]*$/,minChars:0,maxChars:31,offsetTop:2,offsetLeft:0,isolateCharacter:!1,allowInlineMentionChar:!1,fixMentionsToQuill:!1,positioningStrategy:"normal",defaultMenuOrientation:"bottom",blotName:"mention",dataAttributes:["id","value","denotationChar","link","target","disabled"],linkTarget:"_blank",listItemClass:"ql-mention-list-item",mentionContainerClass:"ql-mention-list-container",mentionListClass:"ql-mention-list",spaceAfterInsert:!0,selectKeys:[O],source:function(e,t,n){t([],e)},renderItem:function(e){var t=e.value;return"".concat(t)},onSelect:function(e,t){return t(e)},onOpen:function(){return!0},onBeforeClose:function(){return!0},onClose:function(){return!0},renderLoading:function(){return null}}},1712:function(e,t,n){"use strict";n(9),n(10),n(14),n(30),n(27),n(21),n(20),n(12),n(22),n(31),n(18),n(16),n(28),n(24),n(8),n(17),n(19),n(11),n(29),n(13);var r=n(0),o=n.n(r),i=n(2),a=n.n(i),l=n(6),s=n(206),c=n(305),u=n(317),f=n(82),d=n(1),p=n(1610),h=n(124),m=n(45),b=n(313),y=n(3),v=n(4),g=n(5),w=n(478);n(1668);function x(e){return(x="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)}function S(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=x(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=x(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==x(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return E(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var k={annotations:a.a.array.isRequired,style:a.a.object.isRequired,properties:a.a.object.isRequired,isRedaction:a.a.bool,isFreeText:a.a.bool,isEllipse:a.a.bool,hasBackToMenu:a.a.bool,onBackToMenu:a.a.func},_=function(e){var t=e.annotations,n=e.style,i=e.isRedaction,a=e.isFreeText,x=e.isEllipse,E=e.isMeasure,k=e.colorMapKey,_=e.showLineStyleOptions,C=e.properties,A=e.hideSnapModeCheckbox,T=e.onResize,j=e.hasBackToMenu,q=e.onBackToMenu,N=O(Object(l.e)((function(e){return[v.a.isElementDisabled(e,g.a.ANNOTATION_STYLE_POPUP),v.a.isToolDefaultStyleUpdateFromAnnotationPopupEnabled(e),v.a.getActiveDocumentViewerKey(e)]})),3),P=N[0],R=N[1],I=N[2],M=Object(l.d)(),L=O(Object(c.a)(),1)[0],D=O(Object(r.useState)(C.isAutoSizeFont),2),z=D[0],B=D[1],F=function(e,n){var r=d.a.getAnnotationManager(I);t.forEach((function(t){t[e]=n,"StrokeThickness"===e&&Object(b.a)(t),r.redrawAnnotation(t),t instanceof window.Core.Annotations.WidgetAnnotation&&t.refresh()}))},H=function(e,n){t.forEach((function(t){d.a.setAnnotationStyles(t,S({},e,n),I),R&&Object(h.a)(t.ToolName,e,n),"FontSize"!==e&&"Font"!==e||Object(b.a)(t)}))},U=function(e,n){t.forEach((function(t){d.a.setAnnotationStyles(t,S({},e,n),I),R&&Object(h.a)(t.ToolName,e,n)}))},W=function(e,n){t.forEach((function(t){d.a.updateAnnotationRichTextStyle(t,S({},e,n),I)}))},G=function(e,n){t.forEach((function(t){var r="";if("start"===e)t.setStartStyle(n),r="StartLineStyle";else if("end"===e)t.setEndStyle(n),r="EndLineStyle";else if("middle"===e){var o=n.split(","),i=o.shift();t.Style=i,t.Dashes=o,r="StrokeStyle"}R&&Object(h.a)(t.ToolName,r,n),d.a.getAnnotationManager(I).redrawAnnotation(t)})),d.a.getAnnotationManager(I).trigger("annotationChanged",[t,"modify",{}])},V=function(e){Object(m.k)()&&e.target===e.currentTarget&&M(y.a.closeElement(g.a.ANNOTATION_POPUP))},K=Object(p.a)("Popup AnnotationStylePopup",e);return P?null:o.a.createElement(s.a,{onResize:function(){T&&T()}},(function(e){var r=e.measureRef;return o.a.createElement("div",{className:K,"data-element":g.a.ANNOTATION_STYLE_POPUP,onClick:V,ref:r},j&&o.a.createElement("div",{className:"back-to-menu-container","data-element":g.a.ANNOTATION_STYLE_POPUP_BACK_BUTTON_CONTAINER},o.a.createElement(f.a,{className:"back-to-menu-button",dataElement:g.a.ANNOTATION_STYLE_POPUP_BACK_BUTTON,label:L("action.backToMenu"),img:"icon-chevron-left",onClick:q})),o.a.createElement(u.a,{hideSnapModeCheckbox:A,colorMapKey:k,style:n,isFreeText:a,isFreeTextAutoSize:z,onFreeTextSizeToggle:function(){return Object(w.a)(t[0],B,z)},isEllipse:x,isMeasure:E,onStyleChange:U,onSliderChange:F,onPropertyChange:H,disableSeparator:!0,properties:C,onRichTextStyleChange:W,isRedaction:i,showLineStyleOptions:_,onLineStyleChange:G}))}))};_.propTypes=k;var C=_;t.a=C},1748:function(e,t,n){var r=n(35),o=n(1749);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1749:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.multi-reply-place-holder{height:100px}.reply-area-multi-container{border-top:1px solid var(--divider);display:flex;flex-direction:column;width:100%;position:absolute;inset-block-end:0;z-index:100;background:var(--panel-background)}.reply-area-multi-container form{width:100%;display:flex}.reply-area-multi-container .reply-area-multi-header{display:flex;flex-direction:row;margin-inline-start:16px;margin-top:28px;position:relative;justify-content:space-between}.reply-area-multi-container .reply-area-multi-header .title{font-size:13px;font-weight:700;display:flex;align-items:center}.reply-area-multi-container .reply-area-multi-header .close-icon{display:flex;align-items:center;padding-inline-end:12px;cursor:pointer;position:relative;inset-block-start:1px}.reply-area-multi-container .reply-area-multi-header .close-icon .close-icon{width:22px;height:22px}.reply-area-multi-container .reply-button-container{display:flex;justify-content:flex-end;flex-direction:column}.reply-area-multi-container .reply-button{width:28px;height:28px;padding:0;border:none;background-color:transparent;inset-inline-end:10px;inset-block-end:12px}:host(:not([data-tabbing=true])) .reply-area-multi-container .reply-button,html:not([data-tabbing=true]) .reply-area-multi-container .reply-button{outline:none}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.reply-area-multi-container .reply-button{width:80px}}.reply-area-multi-container .reply-button:hover{background:var(--blue-1)}.reply-area-multi-container .reply-button.disabled{cursor:not-allowed}.reply-area-multi-container .reply-area{position:relative;flex:1;margin:13px 17px 12px 16px;border-radius:4px;align-items:center;background:var(--component-background)}.reply-area-multi-container .reply-area.unread{background:rgba(0,165,228,.08)}.reply-area-multi-container .reply-area .comment-textarea .ql-container .ql-editor.ql-blank{padding:4px}.reply-area-multi-container .reply-area .comment-textarea .ql-container .ql-editor.ql-blank:before{inset-inline-start:4px}.reply-area-multi-container .add-attachment{display:none}.reply-area-multi-container.modular-ui{padding:16px 16px 24px}.reply-area-multi-container.modular-ui form{margin-bottom:0}.reply-area-multi-container.modular-ui .reply-area{margin:13px 16px 24px 0}.reply-area-multi-container.modular-ui .reply-area-multi-header{margin-inline-start:0;margin-top:0}.reply-area-multi-container.modular-ui .reply-area-multi-header .close-icon{width:28px;height:28px}.reply-area-multi-container.modular-ui .close-icon{padding-inline-end:0;margin-inline-end:16px}.reply-area-multi-container.modular-ui .reply-button-container{margin-inline-end:16px;margin-bottom:12px}.reply-area-multi-container.modular-ui .reply-button{inset-inline-start:0;inset-inline-end:0}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1750:function(e,t,n){var r=n(35),o=n(1751);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1751:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,".multi-style-container{border-radius:4px;box-shadow:0 0 3px 0 var(--document-box-shadow);background:var(--component-background);position:relative;inset-inline-end:20px;inset-block-end:52px;pointer-events:auto}.multi-style-container *{box-sizing:border-box}",""])},1752:function(e,t,n){var r=n(35),o=n(1753);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1753:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,".notes-panel-container .buttons-container{display:flex;grid-column-gap:8px;-moz-column-gap:8px;column-gap:8px;justify-content:space-between}.notes-panel-container .buttons-container .Button{height:28px;width:28px}.notes-panel-container .buttons-container .Button:hover:enabled{background:var(--view-header-button-hover)}.notes-panel-container .buttons-container .Button.active{background:var(--view-header-button-active)}.notes-panel-container .buttons-container .Button.active .Icon{color:var(--view-header-icon-active-fill)}.notes-panel-container .multi-select-footer{background:var(--panel-background);display:flex;border-top:1px solid var(--gray-5);margin-top:auto;margin-bottom:16px;height:64px;padding:24px 16px;align-items:center;justify-content:center;position:absolute;inset-block-end:0;width:100%;z-index:100}.notes-panel-container .multi-select-footer .close-container{margin-top:auto;inset-inline-end:26px;position:absolute}",""])},1754:function(e,t,n){var r=n(35),o=n(1755);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1755:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.comments-counter{height:19px;margin-top:24px;margin-bottom:12px;font-size:16px}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .comments-counter{margin-top:16px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .comments-counter{margin-top:16px}}.comments-counter span{font-weight:700}.comments-counter h2{font-weight:400;font-size:16px}[data-element=notesPanelHeader]{padding-inline-end:18px}[data-element=notesPanelHeader] .buttons-container{display:flex;grid-column-gap:8px;-moz-column-gap:8px;column-gap:8px;justify-content:space-between}[data-element=notesPanelHeader] .buttons-container .Button{height:28px;width:28px;cursor:pointer}[data-element=notesPanelHeader] .buttons-container .Button:hover:enabled{background:var(--view-header-button-hover)}[data-element=notesPanelHeader] .buttons-container .Button.active{background:var(--view-header-button-active)}[data-element=notesPanelHeader] .buttons-container .Button.active .Icon{color:var(--view-header-icon-active-fill)}[data-element=notesPanelHeader] .buttons-container .Button:disabled{cursor:default}[data-element=notesPanelHeader] .sort-row{display:flex;justify-content:space-between;margin-bottom:16px}[data-element=notesPanelHeader] .sort-row .sort-container{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;align-self:flex-end}[data-element=notesPanelHeader] .sort-row .sort-container .label{margin-inline-end:8px}[data-element=notesPanelHeader] .sort-row .sort-container .picked-option{text-align:start}[data-element=notesPanelHeader] .input-container{display:flex;position:relative;flex:1}[data-element=notesPanelHeader] .input-container input{width:100%;border:1px solid var(--border);border-radius:4px;color:var(--text-color);padding-top:4px;padding-inline-end:8px;padding-bottom:6px;padding-inline-start:8px}[data-element=notesPanelHeader] .input-container.modular-ui-input{box-sizing:border-box;border:1px solid var(--border);border-radius:4px;height:28px;align-items:center;color:var(--text-color);padding:6px 2px 6px 6px}[data-element=notesPanelHeader] .input-container.modular-ui-input[focus-within]{outline:none;border:1px solid var(--focus-border)}[data-element=notesPanelHeader] .input-container.modular-ui-input:focus-within{outline:none;border:1px solid var(--focus-border)}[data-element=notesPanelHeader] .input-container.modular-ui-input input{padding-inline-start:8px;padding-inline-end:26px;height:20px;border:none;background:transparent}[data-element=notesPanelHeader] .input-button{cursor:pointer;background:var(--primary-button);border-radius:4px;height:100%;width:40px;display:flex;align-items:center;justify-content:center;position:absolute;inset-block-end:0;inset-inline-end:0}[data-element=notesPanelHeader] .input-button .Icon{width:20px;height:20px}[data-element=notesPanelHeader] .input-button svg{color:var(--primary-button-text)}[data-element=notesPanelHeader] .input-button:hover{background:var(--primary-button-hover)}[data-element=notesPanelHeader] .divider{height:1px;width:100%;background:var(--divider);margin:16px 0}.modular-ui-header .input-container.modular-ui-input .Icon{width:16px;height:16px}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1756:function(e,t,n){var r=n(35),o=n(1757);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1757:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.notes-panel-container{z-index:65;display:flex;flex-direction:row;position:relative;overflow-y:visible}.notes-panel-container.office-editor{height:100%}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container{z-index:95}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container{z-index:95}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container{border-inline-start:1px solid var(--side-panel-border)}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container{border-inline-start:1px solid var(--side-panel-border)}}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container{inset-block-start:0;inset-inline-end:0;height:100%;width:100%}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container{inset-block-start:0;inset-inline-end:0;height:100%;width:100%}}.notes-panel-container .NotesPanel{width:100%;padding-inline-start:16px;padding-bottom:0;display:flex;flex-direction:column;position:relative;padding-top:16px}.notes-panel-container .NotesPanel .close-container{display:flex;align-items:center;justify-content:flex-end}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container .NotesPanel .close-container{height:28px;padding-inline-end:16px;margin-bottom:8px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container .NotesPanel .close-container{height:28px;padding-inline-end:16px;margin-bottom:8px}}.notes-panel-container .NotesPanel .close-container .close-icon-container{display:flex;align-items:center;cursor:pointer}.notes-panel-container .NotesPanel .close-container .close-icon-container .close-icon{width:24px;height:24px}.notes-panel-container .NotesPanel .multi-select-place-holder{height:72px}.notes-panel-container .NotesPanel .preview-all-changes{height:57px;display:flex;flex-direction:column;justify-content:center;position:relative;margin-inline-end:16px}.notes-panel-container .NotesPanel .preview-all-changes .divider{height:1px;width:100%;background:var(--divider);position:absolute;inset-block-start:0}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.notes-panel-container .NotesPanel .reply-area-container .reply-button{width:28px}}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container .NotesPanel{width:100%;min-width:100%;padding-top:0}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container .NotesPanel .normal-notes-container{padding-bottom:16px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container .NotesPanel{width:100%;min-width:100%;padding-top:0}.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container .NotesPanel .normal-notes-container{padding-bottom:16px}}.notes-panel-container .NotesPanel .no-annotations{display:flex;flex-direction:column;align-items:center}.notes-panel-container .NotesPanel .no-annotations .msg{text-align:center}@media(min-width:641px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container .NotesPanel .no-annotations .msg{line-height:15px;width:146px}}@container (min-width: 641px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container .NotesPanel .no-annotations .msg{line-height:15px;width:146px}}.notes-panel-container .NotesPanel .no-annotations .empty-icon,.notes-panel-container .NotesPanel .no-annotations .empty-icon svg{width:65px;height:83px}.notes-panel-container .NotesPanel .no-annotations .empty-icon *{fill:var(--gray-6);color:var(--gray-6)}.notes-panel-container .NotesPanel .normal-notes-container,.notes-panel-container .NotesPanel .virtualized-notes-container{margin-top:10px;flex:1;padding-inline-end:18px}.notes-panel-container .NotesPanel .virtualized-notes-container{overflow:hidden}.notes-panel-container .NotesPanel .normal-notes-container{overflow:auto;overflow:overlay}.notes-panel-container .NotesPanel .note-wrapper:first-child .ListSeparator{margin-top:0;word-break:break-word}.notes-panel-container .NotesPanel .no-results{display:flex;flex-direction:column;align-items:center;padding-inline-end:18px}.notes-panel-container .NotesPanel .no-results .msg{text-align:center}@media(min-width:641px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container .NotesPanel .no-results .msg{line-height:15px;width:92px}}@container (min-width: 641px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container .NotesPanel .no-results .msg{line-height:15px;width:92px}}.notes-panel-container .NotesPanel .no-results .empty-icon,.notes-panel-container .NotesPanel .no-results .empty-icon svg{width:65px;height:83px}.notes-panel-container .NotesPanel .no-results .empty-icon *{fill:var(--border);color:var(--border)}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1778:function(e,t,n){"use strict";n.r(t);n(9),n(10),n(14),n(30),n(34),n(81),n(27),n(21),n(20),n(12),n(22),n(31),n(18),n(26),n(16),n(28),n(59),n(48),n(24),n(47),n(49),n(37),n(8),n(17),n(19),n(11),n(29),n(13);var r=n(0),o=n.n(r),i=n(1),a=(n(38),n(125),n(50),n(76),n(99),n(129),n(91),n(62),n(94),n(15)),l=n.n(a),s=n(6),c=n(305),u=n(2),f=n.n(u),d=n(206),p=n(1654);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(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 b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=h(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==h(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var w={notes:f.a.array.isRequired,children:f.a.func.isRequired,onScroll:f.a.func.isRequired,initialScrollTop:f.a.number.isRequired,selectedIndex:f.a.number,sortStrategy:f.a.string},x=new p.b({defaultHeight:50,fixedWidth:!0}),S=o.a.forwardRef((function(e,t){var n=e.notes,i=e.children,a=e.onScroll,l=e.initialScrollTop,s=e.selectedIndex,c=e.sortStrategy,u=Object(r.useRef)(),f=v(Object(r.useState)(0),2),h=f[0],m=f[1],y=v(Object(r.useState)({width:0,height:0}),2),g=y[0],w=y[1],S=window.innerHeight;Object(r.useImperativeHandle)(t,(function(){return{scrollToPosition:function(e){u.current.scrollToPosition(e)},scrollToRow:function(e){u.current.scrollToRow(e)}}})),Object(r.useEffect)((function(){u.current.scrollToPosition(l)}),[l]),Object(r.useEffect)((function(){var e,t;(x.clearAll(),null==u||null===(e=u.current)||void 0===e||e.measureAllRows(),-1!==s)&&(null===(t=u.current)||void 0===t||t.scrollToRow(s))}),[s]),Object(r.useEffect)((function(){var e,t;x.clearAll(),null==u||null===(e=u.current)||void 0===e||e.measureAllRows(),null==u||null===(t=u.current)||void 0===t||t.forceUpdateGrid()}),[n.length,c]),Object(r.useEffect)((function(){var e=function(){var e=window.innerHeight-S;e&&(window.innerHeight<S&&m(e),S=window.innerHeight)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}));var O=function(e){var t=e.scrollTop;a(t)},E=function(e){var t=e.index,r=e.key,a=e.parent,l=e.style,s=n[t];return o.a.createElement(p.a,{key:"".concat(r).concat(s.Id),cache:x,columnIndex:0,parent:a,rowIndex:t},(function(e){var r=e.measure;return o.a.createElement("div",{style:b(b({},l),{},{paddingRight:"12px"})},i(n,t,(function(){!function(e){var t;x.clear(e),null===(t=u.current)||void 0===t||t.recomputeRowHeights(e)}(t),r()})))}))};return o.a.createElement(d.a,{bounds:!0,offset:!0,onResize:function(e){var t=e.bounds;w(b(b({},t),{},{height:t.height+2*h})),m(0)}},(function(e){var t=e.measureRef;return o.a.createElement("div",{ref:t,className:"virtualized-notes-container"},o.a.createElement(p.c,{deferredMeasurementCache:x,style:{outline:"none"},height:g.height-h,width:g.width,overscanRowCount:10,ref:u,rowCount:n.length,rowHeight:x.rowHeight,rowRenderer:E,onScroll:O,"aria-label":"presentation",role:"presentation"}))}))}));S.displayName="VirtualizedList",S.propTypes=w;var O=S,E=(n(44),{notes:f.a.array.isRequired,children:f.a.func.isRequired,onScroll:f.a.func.isRequired,initialScrollTop:f.a.number.isRequired}),k=o.a.forwardRef((function(e,t){var n=e.notes,i=e.children,a=e.onScroll,l=e.initialScrollTop,s=Object(r.useRef)();Object(r.useImperativeHandle)(t,(function(){return{scrollToPosition:function(e){s.current.scrollTop=e},scrollToRow:function(e){var t=s.current,n=t.children[e];if(n){var r=t.getBoundingClientRect(),o=n.getBoundingClientRect();o.top>=r.top&&o.top<=r.top+t.clientHeight||(t.scrollTop=o.top+t.scrollTop-r.top)}}}})),Object(r.useEffect)((function(){s.current.scrollTop=l}),[l]);return o.a.createElement("div",{ref:s,className:"normal-notes-container",onScroll:function(e){a(e.target.scrollTop)},role:"list"},n.map((function(e,t){return o.a.createElement(o.a.Fragment,{key:"".concat(t,"_").concat(e.Id)},i(n,t))})))}));k.displayName="NormalList",k.propTypes=E;var _=k,C=n(1709),A=n(51),T=n(1571),j=n(1637),q=(n(132),n(41)),N=(n(153),n(1599)),P=n(372),R=n(1596),I=n(4);n(1748);function M(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return L(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var D=function(e){var t=e.annotations,n=e.onSubmit,a=e.onClose,u=M(Object(s.e)((function(e){var t;return[I.a.getIsMentionEnabled(e),I.a.getActiveDocumentViewerKey(e),null===(t=I.a.getFeatureFlags(e))||void 0===t?void 0:t.customizableUI]}),s.c),3),f=u[0],d=u[1],p=u[2],h=M(Object(r.useState)(""),2),m=h[0],b=h[1],y=M(Object(c.a)(),1)[0],v=Object(r.useRef)();Object(r.useEffect)((function(){v.current.focus()}),[]);var g=l()({"reply-area":!0});return o.a.createElement("div",{className:l()({"reply-area-multi-container":!0,"modular-ui":p})},o.a.createElement("div",{className:"reply-area-multi-header"},o.a.createElement("div",{className:"title"},y("action.multiReplyAnnotations",{count:t.length})),o.a.createElement(q.a,{className:"close-icon",onClick:a,img:"ic_close_black_24px"})),o.a.createElement("form",{onSubmit:function(e){e.preventDefault();var r=v.current.getEditor(),o=P.a.getFormattedTextFromDeltas(r.getContents());o.trim()&&(t.forEach((function(e){if(f){var t=P.a.createMentionReply(e,o);i.a.addAnnotations([t],d),Object(R.a)(r,t)}else{var n=i.a.createAnnotationReply(e,o,d);Object(R.a)(r,n)}})),n())}},o.a.createElement("div",{className:g,onMouseDown:function(e){return e.stopPropagation()}},o.a.createElement(N.a,{ref:function(e){v.current=e},value:m,onChange:function(e){return function(e){b(e)}(e)},isReply:!0})),o.a.createElement("div",{className:"reply-button-container"},o.a.createElement(q.a,{img:"icon-post-reply",className:"reply-button",title:"action.submit",isSubmitType:!0}))))},z=n(245),B=n(119),F=n(23);var H=function(e){var t=Object(r.useRef)(null);return Object(r.useEffect)((function(){var n,r,o=document.querySelector("#".concat(e)),i=o||function(e){var t=document.createElement("div");return t.setAttribute("id",e),t}(e);return o||(n=i,(r=window.isApryseWebViewerWebComponent?Object(F.a)():document.body).insertBefore(n,r.lastElementChild.nextElementSibling)),i.appendChild(t.current),function(){t.current.remove(),i.childElementCount||i.remove()}}),[e]),t.current||(t.current=document.createElement("div")),t.current},U=function(e){var t=e.id,n=e.position,r=e.children,o=H(t);return o.style.position="absolute",o.style.top="auto"===n.top?n.top:"".concat(n.top,"px"),o.style.left="auto"===n.left?n.left:"".concat(n.left,"px"),o.style.right="auto"===n.right?n.right:"".concat(n.right,"px"),o.style.pointerEvents="none",o.style.zIndex=999,Object(B.createPortal)(r,o)},W=n(1712),G=n(144),V=n(412),K=n(216),$=n(3),Y=n(53);n(1750);function Z(e){return(Z="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)}function X(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 Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){J(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function J(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Z(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Z(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Z(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return te(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ne=function(e){var t=e.annotations,n=e.triggerElementName,i=e.onClose,a=void 0===i?function(){}:i,l=Object(s.d)(),c=Object(r.useRef)(),u=ee(Object(r.useState)([]),2),f=u[0],d=u[1],p=ee(Object(r.useState)({left:"auto",right:"auto",top:"auto"}),2),h=p[0],m=p[1];Object(G.a)(c,(function(e){var t=document.querySelector("[data-element=".concat(n,"]")).contains(e.target),r=Object(K.d)(),o=Object(K.c)(),i=Object(K.b)();t||r||o||i||a()}));var b={};t.forEach((function(e){b=Q(Q({},b),Object(V.a)(e))}));var y=t.find((function(e){return e instanceof window.Core.Annotations.FreeTextAnnotation&&(e.getIntent()===window.Core.Annotations.FreeTextAnnotation.Intent.FreeText||e.getIntent()===window.Core.Annotations.FreeTextAnnotation.Intent.FreeTextCallout)})),v={};if(y){var g,w,x,S,O,E,k,_,C,A,T,j=y.getRichTextStyle();v={Font:y.Font,FontSize:y.FontSize,TextAlign:y.TextAlign,TextVerticalAlign:y.TextVerticalAlign,bold:"bold"===(null!==(g=null==j||null===(w=j[0])||void 0===w?void 0:w["font-weight"])&&void 0!==g?g:""),italic:"italic"===(null!==(x=null==j||null===(S=j[0])||void 0===S?void 0:S["font-style"])&&void 0!==x?x:""),underline:(null==j||null===(O=j[0])||void 0===O||null===(E=O["text-decoration"])||void 0===E?void 0:E.includes("underline"))||(null==j||null===(k=j[0])||void 0===k||null===(_=k["text-decoration"])||void 0===_?void 0:_.includes("word")),strikeout:null!==(C=null==j||null===(A=j[0])||void 0===A||null===(T=A["text-decoration"])||void 0===T?void 0:T.includes("line-through"))&&void 0!==C&&C}}Object(r.useEffect)((function(){var e=[];if(b.TextColor&&e.push(Y.b.TEXT_COLOR),b.StrokeColor&&e.push(Y.b.STROKE_COLOR),b.FillColor&&e.push(Y.b.FILL_COLOR),Object(Y.l)("MultiStyle",e,e[0])){var t=Object(Y.d)("currentStyleTab","iconColor");l($.a.setColorMap(t));var n=Object(Y.e)("MultiStyle").styleTabs;d(n)}}),[t]);return 0===f.length?null:o.a.createElement(U,{id:"multi-style-popup-portal",position:h},o.a.createElement("div",{className:"multi-style-container",ref:c},o.a.createElement(W.a,{annotations:t,style:b,isOpen:!0,onResize:function(){var e=Object(z.a)(n,c);m(e)},isFreeText:!!y,colorMapKey:"MultiStyle",properties:v,isRedaction:!1,isMeasure:!1,showLineStyleOptions:!1,hideSnapModeCheckbox:!1})))};ne.propTypes={annotations:f.a.array.isRequired,triggerElementName:f.a.string.isRequired,onClose:f.a.func};var re=ne,oe=n(1638),ie=n(96),ae=n(1635),le=n(5);n(1752);function se(e){return(se="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)}function ce(){return(ce=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}).apply(null,arguments)}function ue(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 fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach((function(t){de(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function de(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=se(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=se(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==se(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return he(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?he(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var me={showMultiReply:f.a.bool.isRequired,setShowMultiReply:f.a.func.isRequired,setShowMultiState:f.a.func.isRequired,showMultiStyle:f.a.bool.isRequired,setShowMultiStyle:f.a.func.isRequired,setMultiSelectMode:f.a.func.isRequired,isMultiSelectedMap:f.a.object.isRequired,setIsMultiSelectedMap:f.a.func.isRequired,multiSelectedAnnotations:f.a.array.isRequired},be=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=new Set;return e.forEach((function(e){if(e.isGrouped()){var r=i.a.getAnnotationById(e.InReplyTo,t);r&&n.add(r)}else n.add(e)})),Array.from(n)},ye=function(e){var t=e.showMultiReply,n=e.setShowMultiReply,a=e.setShowMultiState,l=e.showMultiStyle,u=e.setShowMultiStyle,f=e.setMultiSelectMode,d=e.isMultiSelectedMap,p=e.setIsMultiSelectedMap,h=e.multiSelectedAnnotations,m=pe(Object(r.useState)([]),2),b=m[0],y=m[1],v=Object(s.d)(),g=pe(Object(c.a)(),1)[0],w=Object(s.e)(I.a.getActiveDocumentViewerKey),x=Object(s.e)(I.a.isDocumentReadOnly),S=Object(s.e)(I.a.getIsCustomUIEnabled);Object(r.useEffect)((function(){var e=function(e){var n=fe({},d);return e.forEach((function(e){t(e,n)})),n},t=function(e,t){var n=i.a.getGroupAnnotations(e,w);n.some((function(e){return d[e.Id]}))&&n.forEach((function(e){t[e.Id]=e}))},n=function(e){var t=Object.keys(d),n=Object.keys(e);return t.some((function(e){return!n.includes(e)}))},r=function(t,r){"delete"===r?function(e){var t=fe({},d);e.forEach((function(e){delete t[e.Id]})),p(t)}(t):"modify"===r&&function(t){var r=e(t);n(r)&&p(r)}(t)};return i.a.addEventListener("annotationChanged",r,void 0,w),function(){i.a.removeEventListener("annotationChanged",r,w)}}),[d,w]),Object(r.useEffect)((function(){return function(){n(!1),p({})}}),[]),Object(r.useEffect)((function(){var e=h.filter((function(e){return i.a.canModify(e,w)}));y(e)}),[h]);var O=i.a.getNumberOfGroups(b,w)>1,E=!O&&(b.length>2||b.length>0&&i.a.getGroupAnnotations(b[0],w).length>1),k=Object(r.useCallback)((function(e){be(h,w).forEach((function(t){var n=Object(ae.a)(t,e,w);t.addReply(n);var r=i.a.getAnnotationManager(w);r.addAnnotation(n),r.trigger("addReply",[n,t,r.getRootAnnotation(t)])})),a(!1)}),[h,w]),_=Object(r.useMemo)((function(){return{resize:function(){}}}));if(t)return o.a.createElement(T.a.Provider,{value:_},o.a.createElement(D,{annotations:be(h,w),onSubmit:function(){return n(!1)},onClose:function(){return n(!1)}}));var C=x||0===b.length,A={dataElement:le.a.NOTE_MULTI_STYLE_BUTTON,img:"icon-menu-style-line",disabled:C,title:"action.style"};return o.a.createElement("div",{className:"multi-select-footer"},o.a.createElement("div",{className:"buttons-container"},o.a.createElement(q.a,{dataElement:le.a.NOTE_MULTI_REPLY_BUTTON,disabled:x||0===h.length,img:"icon-header-chat-line",onClick:function(){n(!0)},title:"action.comment"}),o.a.createElement(ie.a,{dataElement:le.a.NOTE_MULTI_STATE_BUTTON,title:g("option.notesOrder.status"),img:"icon-annotation-status-none",toggleElement:le.a.NOTE_STATE_FLYOUT,disabled:x||0===b.length}),o.a.createElement(oe.a,{isMultiSelectMode:!0,handleStateChange:k}),S?o.a.createElement(ie.a,ce({},A,{toggleElement:le.a.MULTI_SELECT_STYLE_PANEL_FLYOUT})):o.a.createElement(q.a,ce({},A,{onClick:function(){u(!l)}})),l&&o.a.createElement(re,{annotations:b,triggerElementName:"multiStyleButton",onClose:function(){u(!1)}}),!E&&o.a.createElement(q.a,{dataElement:le.a.NOTE_MULTI_GROUP_BUTTON,disabled:x||!O,img:"group-annotations-icon",onClick:function(){i.a.groupAnnotations(h[0],h,w)},title:"action.group"}),E&&o.a.createElement(q.a,{dataElement:le.a.NOTE_MULTI_UNGROUP_BUTTON,img:"ungroup-annotations-icon",onClick:function(){i.a.ungroupAnnotations(h,w)},title:"action.ungroup"}),o.a.createElement(q.a,{dataElement:le.a.NOTE_MULTI_DELETE_BUTTON,disabled:x||0===b.length,img:"icon-delete-line",onClick:function(){var e={title:g("warning.multiDeleteAnnotation.title"),message:g("warning.multiDeleteAnnotation.message"),confirmBtnText:g("action.delete"),onConfirm:function(){i.a.deleteAnnotations(b,void 0,w)}};v($.a.showWarningMessage(e))},title:"action.delete"})),o.a.createElement("div",{className:"close-container"},o.a.createElement(q.a,{className:"close-icon-container",onClick:function(){f(!1)},img:"ic_close_black_24px",ariaLabel:g("option.documentControls.closeTooltip")})))};ye.propTypes=me;var ve=ye,ge=n(184),we=n(102),xe=n.n(we),Se=n(72),Oe=n(60),Ee=n(54),ke=n(183),_e=n(25),Ce=n(90);n(1754);function Ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Te(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Te(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var je={notes:f.a.array.isRequired,disableFilterAnnotation:f.a.bool,setSearchInputHandler:f.a.func.isRequired,isMultiSelectMode:f.a.bool,toggleMultiSelectMode:f.a.func,isMultiSelectEnabled:f.a.bool};function qe(e){var t=e.notes,n=e.disableFilterAnnotation,a=e.setSearchInputHandler,u=e.isMultiSelectMode,f=e.toggleMultiSelectMode,d=e.isMultiSelectEnabled,p=Ae(Object(s.e)((function(e){var t;return[I.a.getSortStrategy(e),I.a.isElementDisabled(e,"sortContainer"),I.a.getNotesPanelCustomHeaderOptions(e),I.a.getAnnotationFilters(e),I.a.getIsOfficeEditorMode(e),I.a.getOfficeEditorEditMode(e),null===(t=I.a.getFeatureFlags(e))||void 0===t?void 0:t.customizableUI]}),s.c),7),h=p[0],m=p[1],b=p[2],y=p[3],v=p[4],g=p[5],w=p[6],x=Ae(Object(c.a)(),1)[0],S=Object(s.d)(),O=Ae(Object(r.useState)(!1),2),E=O[0],k=O[1],_=Ae(Object(r.useState)(!1),2),C=_[0],T=_[1],j=Ae(Object(r.useState)(""),2),N=j[0],P=j[1];Object(r.useEffect)((function(){var e=y.authorFilter,t=y.colorFilter,n=y.statusFilter,r=y.typeFilter;((null==e?void 0:e.length)>0||(null==t?void 0:t.length)>0||(null==n?void 0:n.length)>0||(null==r?void 0:r.length)>0)&&k(!0);var o=function(e){var t=e.detail,n=t.types,r=t.authors,o=t.colors,i=t.statuses;n.length>0||r.length>0||o.length>0||i.length>0?k(!0):k(!1)};return window.addEventListener(Ee.a.ANNOTATION_FILTER_CHANGED,o),function(){window.removeEventListener(Ee.a.ANNOTATION_FILTER_CHANGED,o)}}),[]),Object(r.useEffect)((function(){v&&g===_e.z.PREVIEW?(T(!0),a(""),P("")):T(!1)}),[v,g]);var R=xe()((function(e){i.a.deselectAllAnnotations(),a(e)}),500),M=o.a.createElement("div",{className:"sort-container","data-element":"sortContainer"},o.a.createElement("div",{className:"label",id:"notesSortLabel"},"".concat(x("message.sort"),":")),o.a.createElement(Se.a,{id:"notesOrderDropdown",labelledById:"notesSortLabel",dataElement:"notesOrderDropdown",disabled:0===t.length||C,ariaLabel:"".concat(x("message.sortBy")," ").concat(h),items:Object.keys(Object(ke.c)()),translationPrefix:"option.notesOrder",currentSelectionKey:h,onClickItem:function(e){S($.a.setNotesPanelSortStrategy(e))}})),L=Object(Ce.a)((function(){return S($.a.openElement("filterModal"))})),D=x(v?"message.searchSuggestionsPlaceholder":"message.searchCommentsPlaceholder"),z=o.a.createElement(Oe.a,{className:l()({header:!0,"modular-ui-header":w}),dataElement:"notesPanelHeader"},o.a.createElement(Oe.a,{className:l()({"input-container":!0,"modular-ui-input":w}),dataElement:le.a.NotesPanel.DefaultHeader.INPUT_CONTAINER},w&&o.a.createElement(A.a,{glyph:"icon-header-search"}),o.a.createElement("input",{disabled:C,type:"text",placeholder:w?"":D,"aria-label":D,onChange:function(e){P(e.target.value),R(e.target.value)},id:"NotesPanel__input",value:N})),o.a.createElement(Oe.a,{className:"comments-counter",dataElement:le.a.NotesPanel.DefaultHeader.COMMENTS_COUNTER},o.a.createElement("h2",{className:"main-comment"},x(v?"officeEditor.reviewing":"component.notesPanel")," ","(".concat(t.length,")"))),o.a.createElement(Oe.a,{className:"sort-row",dataElement:le.a.NotesPanel.DefaultHeader.SORT_ROW},m?o.a.createElement("div",{className:"sort-container"}):M,o.a.createElement("div",{className:"buttons-container"},d&&!v&&o.a.createElement(q.a,{dataElement:le.a.NOTE_MULTI_SELECT_MODE_BUTTON,className:l()({active:u}),disabled:0===t.length,img:"icon-annotation-select-multiple",onClick:function(){i.a.deselectAllAnnotations(),f()},title:x("component.multiSelectButton"),ariaPressed:u}),o.a.createElement(q.a,{dataElement:le.a.NotesPanel.DefaultHeader.FILTER_ANNOTATION_BUTTON,className:l()({active:E}),disabled:n,img:"icon-comments-filter",onClick:L,title:x("component.filter"),ariaPressed:E}))));return o.a.createElement(o.a.Fragment,null,b&&o.a.createElement(ge.a,{render:b.render,renderArguments:[t]}),(!b||!b.overwriteDefaultHeader)&&z)}qe.propTypes=je;var Ne=qe,Pe=n(160),Re=n(61),Ie=n(45),Me=n(1701);n(1756);function Le(e){return(Le="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)}function De(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 ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach((function(t){Be(e,t,n[t])})):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 Be(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Le(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Le(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Le(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fe(e){return function(e){if(Array.isArray(e))return We(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ue(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function He(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||Ue(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ue(e,t){if(e){if("string"==typeof e)return We(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?We(e,t):void 0}}function We(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ge=function(e){var t=e.currentLeftPanelWidth,n=e.notes,a=e.selectedNoteIds,u=e.setSelectedNoteIds,f=e.searchInput,d=e.setSearchInput,p=e.isMultiSelectMode,h=e.setMultiSelectMode,m=e.isMultiSelectedMap,b=e.setIsMultiSelectedMap,y=e.scrollToSelectedAnnot,v=e.setScrollToSelectedAnnot,g=e.isCustomPanel,w=e.isCustomPanelOpen,x=e.isLeftSide,S=e.parentDataElement,E=Object(s.e)(I.a.getSortStrategy),k=Object(s.e)((function(e){return I.a.isElementOpen(e,le.a.NOTES_PANEL)})),q=Object(s.e)((function(e){return I.a.isElementDisabled(e,le.a.NOTES_PANEL)})),N=Object(s.e)(I.a.getPageLabels,s.c),P=Object(s.e)(I.a.getCustomNoteFilter,s.c),R=Object(s.e)(I.a.getInternalNoteFilter,s.c),M=Object(s.e)((function(e){return S?I.a.getPanelWidth(e,S):I.a.getNotesPanelWidth(e)}),s.c),L=Object(s.e)(I.a.getNotesInLeftPanel),D=Object(s.e)(I.a.isDocumentReadOnly),z=Object(s.e)(I.a.isAnnotationNumberingEnabled),B=Object(s.e)(I.a.getEnableNotesPanelVirtualizedList),F=Object(s.e)(I.a.isInDesktopOnlyMode),H=Object(s.e)(I.a.getNotesPanelCustomEmptyPanel,s.c),U=Object(s.e)(I.a.getIsNotesPanelMultiSelectEnabled),W=Object(s.e)(I.a.getActiveDocumentViewerKey),G=Object(s.e)(I.a.getIsOfficeEditorMode),V=Object(s.e)(I.a.getOfficeEditorEditMode),K=Object(s.d)(),Y=He(Object(c.a)(),1)[0],Z=t||M,X=Object(Re.b)(),Q=He(Object(r.useState)([]),2),J=Q[0],ee=Q[1],te=He(Object(r.useState)(!1),2),ne=te[0],re=te[1],oe=He(Object(r.useState)(!1),2),ie=oe[0],ae=oe[1],se=He(Object(r.useState)(!1),2),ce=se[0],ue=se[1],fe=He(Object(r.useState)(void 0),2),de=fe[0],pe=fe[1],he=Object(r.useRef)(),me=Object(r.useRef)(0),be=B?Ie.e?25:100:1/0;Object(r.useEffect)((function(){var e=function(e){K($.a.setAnnotationNumbering(e))},t=function(e,t){"selected"===t&&pe(e[0].Id)};return i.a.addEventListener("annotationNumberingUpdated",e),i.a.addEventListener("annotationSelected",t),function(){i.a.removeEventListener("annotationNumberingUpdated",e),i.a.removeEventListener("annotationSelected",t)}}),[]);var ye=-1,we=function(e){e&&(me.current=e),K($.a.closeElement("annotationNoteConnectorLine"))},xe=function(e){var t=e.getContents(),n=i.a.getDisplayAuthor(e.Author),r=e.getCustomData("trn-annot-preview");return(null==t?void 0:t.toLowerCase().includes(f.toLowerCase()))||(null==n?void 0:n.toLowerCase().includes(f.toLowerCase()))||(null==r?void 0:r.toLowerCase().includes(f.toLowerCase()))},Se=Object(ke.c)()[E].getSortedNotes(n).filter((function(e){var t=!0;if(P&&(t=t&&P(e)),R&&(t=t&&R(e)),f){var n=e.getReplies(),r=[e].concat(Fe(n));t=t&&r.some(xe)}return t}));Object(r.useEffect)((function(){Object.keys(a).length&&-1!==ye&&setTimeout((function(){var e;null===(e=he.current)||void 0===e||e.scrollToRow(ye)}),0)}),[a]);var Oe=function(e){return!Object.keys(a).length&&(f&&Se.filter((function(e){return e.getReplies().some(xe)})).some((function(t){return t.Id===e.Id})))},Ee=He(Object(r.useState)({}),2),Ce=Ee[0],Ae=Ee[1],Te=Object(r.useCallback)((function(e,t){Ae((function(n){return ze(ze({},n),{},Be({},t,e))}))}),[Ae]),je=He(Object(r.useState)({}),2),qe=je[0],Le=je[1],De=Object(r.useCallback)((function(e,t){Le((function(n){return ze(ze({},n),{},Be({},t,e))}))}),[Le]),Ue=He(Object(r.useState)({}),2),We=Ue[0],Ge=Ue[1],Ve=function(e,t){Ge((function(n){return ze(ze({},n),{},Be({},e,[].concat(Fe(n[e]||[]),Fe(t))))}))},Ke=function(e){Ge((function(t){return ze(ze({},t),{},Be({},e,[]))}))},$e=function(e,t){var n=We[e];if((null==n?void 0:n.length)>0){var r=n.indexOf(t);r>-1&&(n.splice(r,1),Ge((function(t){return ze(ze({},t),{},Be({},e,Fe(n)))})))}};Object(r.useEffect)((function(){ee(Object.values(m))}),[m]);var Ye=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=null,l=Object(ke.c)()[E],s=l.shouldRenderSeparator,c=l.getSeparatorContent,d=0===t?null:e[t-1],h=e[t];s&&c&&(!d||s(d,h))&&(r=o.a.createElement(j.a,{renderContent:function(){return c(d,h,{pageLabels:N})}}));var g=function(){!p&&a[h.Id]&&(u((function(e){var t=ze({},e);return delete t[h.Id],t})),i.a.deselectAnnotation(h,W))},S={searchInput:f,resize:n,isSelected:a[h.Id],isContentEditable:i.a.canModifyContents(h,W)&&!h.getContents(),pendingEditTextMap:Ce,setPendingEditText:Te,pendingReplyMap:qe,setPendingReply:De,isDocumentReadOnly:D,onTopNoteContentClicked:g,isExpandedFromSearch:Oe(h),scrollToSelectedAnnot:y,sortStrategy:E,showAnnotationNumbering:z,setCurAnnotId:pe,pendingAttachmentMap:We,clearAttachments:Ke,deleteAttachment:$e,addAttachments:Ve,documentViewerKey:W};return t===ye&&setTimeout((function(){v(!1),K($.a.openElement("annotationNoteConnectorLine"))}),0),o.a.createElement("div",{role:"listitem",className:"note-wrapper"},r,o.a.createElement(T.a.Provider,{value:S},o.a.createElement(C.a,{isCustomPanelOpen:w,shouldHideConnectorLine:x,annotation:h,isMultiSelected:!!m[h.Id],isMultiSelectMode:p,isMultiSelectEnabled:U,isInNotesPanel:!0,handleMultiSelect:function(e){if(e){var t=ze({},m),n=i.a.getGroupAnnotations(h,W);n.forEach((function(e){t[e.Id]=e})),b(t),i.a.selectAnnotations(n)}else{var r=ze({},m),o=i.a.getGroupAnnotations(h,W);o.forEach((function(e){delete r[e.Id]})),b(r),i.a.deselectAnnotations([h].concat(Fe(o)))}}})))},Ze=o.a.createElement("div",{className:"no-results"},o.a.createElement("div",null,o.a.createElement(A.a,{className:"empty-icon",glyph:"illustration - empty state - outlines"})),o.a.createElement("p",{className:"msg no-margin"},Y("message.noResults"))),Xe=null!=H&&H.icon?H.icon:G?"ic-edit-page":"illustration - empty state - outlines",Qe=null!=H&&H.message?H.message:Y(G?"message.noRevisions":"message.noAnnotations"),Je=H&&H.readOnlyMessage?H.readOnlyMessage:Y("message.noAnnotationsReadOnly"),et=H&&!H.hideIcon||!H,tt=H&&H.render,nt=o.a.createElement("div",{className:"no-annotations"},tt?o.a.createElement(ge.a,{render:H.render}):o.a.createElement(o.a.Fragment,null,et&&o.a.createElement("div",null,o.a.createElement(A.a,{className:"empty-icon",glyph:Xe})),o.a.createElement("div",{className:"msg"},D?Je:Qe))),rt=o.a.createElement("div",{className:"multi-select-place-holder"}),ot=o.a.createElement("div",{className:"multi-reply-place-holder"}),it=Object.keys(a);if(1===it.length)ye=Se.findIndex((function(e){return e.Id===it[0]}));else if(it.length){Se.filter((function(e){return a[e.Id]})).length&&(ye=Se.findIndex((function(e){return e.Id===de})))}var at,lt={};return g||!F&&X||(lt={width:"".concat(Z,"px"),minWidth:"".concat(Z,"px")}),!q&&(k||L||g)?o.a.createElement("div",{className:l()({"notes-panel-container":!0,"office-editor":G})},o.a.createElement("div",{className:l()({Panel:!0,NotesPanel:!0}),style:lt,"data-element":"notesPanel",onMouseUp:function(){return i.a.deselectAllAnnotations}},!F&&X&&!L&&o.a.createElement("div",{className:"close-container"},o.a.createElement("div",{className:"close-icon-container",onClick:function(){K($.a.closeElements([le.a.NOTES_PANEL]))}},o.a.createElement(A.a,{glyph:"ic_close_black_24px",className:"close-icon"}))),o.a.createElement(o.a.Fragment,null,o.a.createElement(Ne,{notes:Se,disableFilterAnnotation:0===n.length,setSearchInputHandler:d,isMultiSelectMode:p,toggleMultiSelectMode:function(){h(!p)},isMultiSelectEnabled:U}),0===Se.length?0===n.length?nt:Ze:Se.length<=be?o.a.createElement(_,{ref:he,notes:Se,onScroll:we,initialScrollTop:me.current},Ye):o.a.createElement(O,{ref:he,notes:Se,sortStrategy:E,onScroll:we,initialScrollTop:me.current,selectedIndex:ye},Ye),p?ne?ot:rt:null,G&&!p&&Se.length>0&&o.a.createElement("div",{className:"preview-all-changes"},o.a.createElement("div",{className:"divider"}),o.a.createElement(Pe.a,{isSwitch:!0,checked:V===_e.z.PREVIEW,label:Y("officeEditor.previewAllChanges"),onChange:function(e){return i.a.getOfficeEditor().setEditMode(e.target.checked?_e.z.PREVIEW:_e.z.REVIEWING)}})))),p&&o.a.createElement(ve,{showMultiReply:ne,setShowMultiReply:re,showMultiState:ie,setShowMultiState:ae,showMultiStyle:ce,setShowMultiStyle:ue,setMultiSelectMode:h,isMultiSelectedMap:m,setIsMultiSelectedMap:b,multiSelectedAnnotations:J}),o.a.createElement(Me.a,{annotationId:de,addAttachments:Ve}),(at=Y(G?"officeEditor.reviewing":"component.notesPanel"),o.a.createElement("p",{"aria-live":"assertive",style:{position:"absolute",left:"-9999px"}},Se.length>0?"".concat(at," ").concat(Se.length):Y("message.noResults")))):null},Ve=n(248);function Ke(e){return(Ke="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)}function $e(){return($e=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}).apply(null,arguments)}function Ye(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 Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(n),!0).forEach((function(t){Xe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ke(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ke(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ke(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Je(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Je(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Je(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function et(e){var t=e.isCustomPanelOpen,n=e.parentDataElement,a=void 0===n?void 0:n,l=e.dataElement,c=Qe(Object(s.e)((function(e){return[I.a.isElementOpen(e,a||l||le.a.NOTES_PANEL),I.a.getNotesInLeftPanel(e),I.a.getIsNotesPanelMultiSelectEnabled(e),I.a.isMultiViewerMode(e),I.a.getActiveDocumentViewerKey(e),I.a.getIsOfficeEditorMode(e)]}),s.c),6),u=c[0],f=c[1],d=c[2],p=c[3],h=c[4],m=c[5],b=Qe(Object(r.useState)(""),2),y=b[0],v=b[1],g=Qe(Object(r.useState)(!1),2),w=g[0],x=g[1],S=Qe(Object(r.useState)(!1),2),O=S[0],E=S[1],k=Qe(Object(r.useState)({1:[],2:[]}),2),_=k[0],C=k[1],A=Object(r.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;_[t]=e,C(Ze({},_))}),[h,_[1],_[2],C]),T=_[h]||_[1],j=Qe(Object(r.useState)({1:{},2:{}}),2),q=j[0],N=j[1],P=Object(r.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;q[t]=e,N(Ze({},q))}),[h,q[1],q[2],N]),R=q[h]||q[1],M=Qe(Object(r.useState)({1:{},2:{}}),2),L=M[0],D=M[1],z=Object(r.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;L[t]=e,D(Ze({},L))}),[h,L[1],L[2],D]),B=L[h]||L[1],F=function(e){var t=i.a.getAnnotationManager().getFormFieldCreationManager(),n=e instanceof window.Core.Annotations.WidgetAnnotation,r=e.Listable&&!n,o=n&&t.isInFormFieldCreationMode(),a=!m||Object(Y.g)(e)===Y.c.TRACKED_CHANGE;return(r||o)&&!e.isReply()&&!e.Hidden&&!e.isGrouped()&&e.ToolName!==window.Core.Tools.ToolNames.CROP&&!e.isContentEditPlaceholder()&&a};function H(e){var t=e.find((function(e){return e.isGrouped()})),n=[];return t&&e.forEach((function(e){t.InReplyTo!==e.InReplyTo&&t.InReplyTo!==e.Id||n.push(e)})),n}Object(r.useEffect)((function(){var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return function(){A([],e),P({}),v("")}},t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return function(){var t=i.a.getSelectedAnnotations(e),n=H(t);w&&n.length===t.length&&x(!1),A(i.a.getAnnotationsList(e).filter(F),e)}},n=e(1);i.a.addEventListener("documentUnloaded",n);var r,o,a=t(1);return i.a.addEventListener("annotationChanged",a),i.a.addEventListener("annotationHidden",a),i.a.addEventListener("updateAnnotationPermission",a),a(),p&&(r=e(2),i.a.addEventListener("documentUnloaded",r,void 0,2),o=t(2),i.a.addEventListener("annotationChanged",o,void 0,2),i.a.addEventListener("annotationHidden",o,void 0,2),i.a.addEventListener("updateAnnotationPermission",o,void 0,2),o()),function(){p&&(i.a.removeEventListener("documentUnloaded",r,2),i.a.removeEventListener("annotationChanged",o,2),i.a.removeEventListener("annotationHidden",o,2),i.a.removeEventListener("updateAnnotationPermission",o,2)),i.a.removeEventListener("documentUnloaded",n),i.a.removeEventListener("annotationChanged",a),i.a.removeEventListener("annotationHidden",a),i.a.removeEventListener("updateAnnotationPermission",a)}}),[p,m]),Object(r.useEffect)((function(){var e,n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return function(n,r){var o=i.a.getSelectedAnnotations(e),a={};o.forEach((function(e){a[e.Id]=!0})),(t||u||f)&&(P(a,e),E(!0));var l=H(o),s=o.length>1&&l.length!==o.length||w;d&&"selected"===r&&s?(x(!0),o.forEach((function(e){B[e.Id]=e})),z(Ze({},B),e)):"deselected"===r&&(n.forEach((function(e){delete B[e.Id]})),z(Ze({},B),e))}},r=n(1);return r(),i.a.addEventListener("annotationSelected",r),p&&((e=n(2))(),i.a.addEventListener("annotationSelected",e,void 0,2)),function(){i.a.removeEventListener("annotationSelected",r),p&&i.a.removeEventListener("annotationSelected",e,2)}}),[t,u,f,w,B,d,p]);var U={notes:T,selectedNoteIds:R,setSelectedNoteIds:P,searchInput:y,setSearchInput:v,isMultiSelectMode:w,setMultiSelectMode:x,isMultiSelectedMap:B,setIsMultiSelectedMap:z,scrollToSelectedAnnot:O,setScrollToSelectedAnnot:E};return o.a.createElement(Ge,$e({},e,U))}var tt=function(e){return o.a.createElement(Ve.a,{wrapOnlyInMultiViewerMode:!0},o.a.createElement(et,e))};t.default=tt},1844:function(e,t,n){"use strict";var r=n(1605),o=n(1587);var i=function(){if(!arguments.length)return[];var e=arguments[0];return Object(o.a)(e)?e:[e]};var a=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};var l=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1};var s=function(e,t){return!!(null==e?0:e.length)&&l(e,t,0)>-1};var c=function(e,t,n,r,o,l){var c=1&n,u=e.length,f=t.length;if(u!=f&&!(c&&f>u))return!1;var d=l.get(e),p=l.get(t);if(d&&p)return d==t&&p==e;var h=-1,m=!0,b=2&n?new i:void 0;for(l.set(e,t),l.set(t,e);++h<u;){var y=e[h],v=t[h];if(r)var g=c?r(v,y,h,t,e,l):r(y,v,h,e,t,l);if(void 0!==g){if(g)continue;m=!1;break}if(b){if(!a(t,(function(e,t){if(!s(b,t)&&(y===e||o(y,e,n,r,l)))return b.push(t)}))){m=!1;break}}else if(y!==v&&!o(y,v,n,r,l)){m=!1;break}}return l.delete(e),l.delete(t),m};var u=function(e,t){return e===t||e!=e&&t!=t},f=n(1625),d=Object.prototype.hasOwnProperty;var p=function(e,t,n,r,o,i){var a=1&n,l=Object(f.a)(e),s=l.length;if(s!=Object(f.a)(t).length&&!a)return!1;for(var c=s;c--;){var u=l[c];if(!(a?u in t:d.call(t,u)))return!1}var p=i.get(e),h=i.get(t);if(p&&h)return p==t&&h==e;var m=!0;i.set(e,t),i.set(t,e);for(var b=a;++c<s;){var y=e[u=l[c]],v=t[u];if(r)var g=a?r(v,y,u,t,e,i):r(y,v,u,e,t,i);if(!(void 0===g?y===v||o(y,v,n,r,i):g)){m=!1;break}b||(b="constructor"==u)}if(m&&!b){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(m=!1)}return i.delete(e),i.delete(t),m},h=n(1623),m=n(1603),b=n(1643),y="[object Object]",v=Object.prototype.hasOwnProperty;var g=function(e,t,n,i,a,l){var s=Object(o.a)(e),f=Object(o.a)(t),d=s?"[object Array]":Object(h.a)(e),g=f?"[object Array]":Object(h.a)(t),w=(d="[object Arguments]"==d?y:d)==y,x=(g="[object Arguments]"==g?y:g)==y,S=d==g;if(S&&Object(m.a)(e)){if(!Object(m.a)(t))return!1;s=!0,w=!1}if(S&&!w)return l||(l=new r.a),s||Object(b.a)(e)?c(e,t,n,i,a,l):u(e,t,d,n,i,a,l);if(!(1&n)){var O=w&&v.call(e,"__wrapped__"),E=x&&v.call(t,"__wrapped__");if(O||E){var k=O?e.value():e,_=E?t.value():t;return l||(l=new r.a),a(k,_,n,i,l)}}return!!S&&(l||(l=new r.a),p(e,t,n,i,a,l))},w=n(1607);var x=function e(t,n,r,o,i){return t===n||(null==t||null==n||!Object(w.a)(t)&&!Object(w.a)(n)?t!=t&&n!=n:g(t,n,r,o,e,i))};t.a=function(e,t){return x(e,t)}}}]);
3
+ e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:o}=Object;let{freeze:i,seal:a,create:l}=Object,{apply:s,construct:c}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),s||(s=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});const u=k(Array.prototype.forEach),f=k(Array.prototype.lastIndexOf),d=k(Array.prototype.pop),p=k(Array.prototype.push),h=k(Array.prototype.splice),m=k(String.prototype.toLowerCase),b=k(String.prototype.toString),y=k(String.prototype.match),v=k(String.prototype.replace),g=k(String.prototype.indexOf),w=k(String.prototype.trim),x=k(Object.prototype.hasOwnProperty),S=k(RegExp.prototype.test),O=(E=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c(E,t)});var E;function k(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return s(e,t,r)}}function _(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m;t&&t(e,null);let i=r.length;for(;i--;){let t=r[i];if("string"==typeof t){const e=o(t);e!==t&&(n(r)||(r[i]=e),t=e)}e[t]=!0}return e}function C(e){for(let t=0;t<e.length;t++)x(e,t)||(e[t]=null);return e}function A(t){const n=l(null);for(const[r,o]of e(t))x(t,r)&&(Array.isArray(o)?n[r]=C(o):o&&"object"==typeof o&&o.constructor===Object?n[r]=A(o):n[r]=o);return n}function T(e,t){for(;null!==e;){const n=o(e,t);if(n){if(n.get)return k(n.get);if("function"==typeof n.value)return k(n.value)}e=r(e)}return function(){return null}}const j=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),q=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),N=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),P=i(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),R=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),I=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),M=i(["#text"]),L=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),D=i(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),z=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),B=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),F=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),H=a(/<%[\w\W]*|[\w\W]*%>/gm),U=a(/\$\{[\w\W]*/gm),W=a(/^data-[\-\w.\u00B7-\uFFFF]+$/),G=a(/^aria-[\-\w]+$/),V=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=a(/^(?:\w+script|data):/i),$=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y=a(/^html$/i),Z=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var X=Object.freeze({__proto__:null,ARIA_ATTR:G,ATTR_WHITESPACE:$,CUSTOM_ELEMENT:Z,DATA_ATTR:W,DOCTYPE_NAME:Y,ERB_EXPR:H,IS_ALLOWED_URI:V,IS_SCRIPT_OR_DATA:K,MUSTACHE_EXPR:F,TMPLIT_EXPR:U});const Q=1,J=3,ee=7,te=8,ne=9,re=function(){return"undefined"==typeof window?null:window},oe=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;t&&t.hasAttribute("data-tt-policy-suffix")&&(n=t.getAttribute("data-tt-policy-suffix"));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re();const r=e=>t(e);if(r.version="3.2.6",r.removed=[],!n||!n.document||n.document.nodeType!==ne||!n.Element)return r.isSupported=!1,r;let{document:o}=n;const a=o,s=a.currentScript,{DocumentFragment:c,HTMLTemplateElement:E,Node:k,Element:C,NodeFilter:F,NamedNodeMap:H=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:U,DOMParser:W,trustedTypes:G}=n,K=C.prototype,$=T(K,"cloneNode"),Z=T(K,"remove"),ie=T(K,"nextSibling"),ae=T(K,"childNodes"),le=T(K,"parentNode");if("function"==typeof E){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let se,ce="";const{implementation:ue,createNodeIterator:fe,createDocumentFragment:de,getElementsByTagName:pe}=o,{importNode:he}=a;let me={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof e&&"function"==typeof le&&ue&&void 0!==ue.createHTMLDocument;const{MUSTACHE_EXPR:be,ERB_EXPR:ye,TMPLIT_EXPR:ve,DATA_ATTR:ge,ARIA_ATTR:we,IS_SCRIPT_OR_DATA:xe,ATTR_WHITESPACE:Se,CUSTOM_ELEMENT:Oe}=X;let{IS_ALLOWED_URI:Ee}=X,ke=null;const _e=_({},[...j,...q,...N,...R,...M]);let Ce=null;const Ae=_({},[...L,...D,...z,...B]);let Te=Object.seal(l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),je=null,qe=null,Ne=!0,Pe=!0,Re=!1,Ie=!0,Me=!1,Le=!0,De=!1,ze=!1,Be=!1,Fe=!1,He=!1,Ue=!1,We=!0,Ge=!1;const Ve="user-content-";let Ke=!0,$e=!1,Ye={},Ze=null;const Xe=_({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Qe=null;const Je=_({},["audio","video","img","source","image","track"]);let et=null;const tt=_({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",rt="http://www.w3.org/2000/svg",ot="http://www.w3.org/1999/xhtml";let it=ot,at=!1,lt=null;const st=_({},[nt,rt,ot],b);let ct=_({},["mi","mo","mn","ms","mtext"]),ut=_({},["annotation-xml"]);const ft=_({},["title","style","font","a","script"]);let dt=null;const pt=["application/xhtml+xml","text/html"],ht="text/html";let mt=null,bt=null;const yt=o.createElement("form"),vt=function(e){return e instanceof RegExp||e instanceof Function},gt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!bt||bt!==e){if(e&&"object"==typeof e||(e={}),e=A(e),dt=-1===pt.indexOf(e.PARSER_MEDIA_TYPE)?ht:e.PARSER_MEDIA_TYPE,mt="application/xhtml+xml"===dt?b:m,ke=x(e,"ALLOWED_TAGS")?_({},e.ALLOWED_TAGS,mt):_e,Ce=x(e,"ALLOWED_ATTR")?_({},e.ALLOWED_ATTR,mt):Ae,lt=x(e,"ALLOWED_NAMESPACES")?_({},e.ALLOWED_NAMESPACES,b):st,et=x(e,"ADD_URI_SAFE_ATTR")?_(A(tt),e.ADD_URI_SAFE_ATTR,mt):tt,Qe=x(e,"ADD_DATA_URI_TAGS")?_(A(Je),e.ADD_DATA_URI_TAGS,mt):Je,Ze=x(e,"FORBID_CONTENTS")?_({},e.FORBID_CONTENTS,mt):Xe,je=x(e,"FORBID_TAGS")?_({},e.FORBID_TAGS,mt):A({}),qe=x(e,"FORBID_ATTR")?_({},e.FORBID_ATTR,mt):A({}),Ye=!!x(e,"USE_PROFILES")&&e.USE_PROFILES,Ne=!1!==e.ALLOW_ARIA_ATTR,Pe=!1!==e.ALLOW_DATA_ATTR,Re=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Me=e.SAFE_FOR_TEMPLATES||!1,Le=!1!==e.SAFE_FOR_XML,De=e.WHOLE_DOCUMENT||!1,Fe=e.RETURN_DOM||!1,He=e.RETURN_DOM_FRAGMENT||!1,Ue=e.RETURN_TRUSTED_TYPE||!1,Be=e.FORCE_BODY||!1,We=!1!==e.SANITIZE_DOM,Ge=e.SANITIZE_NAMED_PROPS||!1,Ke=!1!==e.KEEP_CONTENT,$e=e.IN_PLACE||!1,Ee=e.ALLOWED_URI_REGEXP||V,it=e.NAMESPACE||ot,ct=e.MATHML_TEXT_INTEGRATION_POINTS||ct,ut=e.HTML_INTEGRATION_POINTS||ut,Te=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&vt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Te.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&vt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Te.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Te.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Me&&(Pe=!1),He&&(Fe=!0),Ye&&(ke=_({},M),Ce=[],!0===Ye.html&&(_(ke,j),_(Ce,L)),!0===Ye.svg&&(_(ke,q),_(Ce,D),_(Ce,B)),!0===Ye.svgFilters&&(_(ke,N),_(Ce,D),_(Ce,B)),!0===Ye.mathMl&&(_(ke,R),_(Ce,z),_(Ce,B))),e.ADD_TAGS&&(ke===_e&&(ke=A(ke)),_(ke,e.ADD_TAGS,mt)),e.ADD_ATTR&&(Ce===Ae&&(Ce=A(Ce)),_(Ce,e.ADD_ATTR,mt)),e.ADD_URI_SAFE_ATTR&&_(et,e.ADD_URI_SAFE_ATTR,mt),e.FORBID_CONTENTS&&(Ze===Xe&&(Ze=A(Ze)),_(Ze,e.FORBID_CONTENTS,mt)),Ke&&(ke["#text"]=!0),De&&_(ke,["html","head","body"]),ke.table&&(_(ke,["tbody"]),delete je.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw O('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw O('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');se=e.TRUSTED_TYPES_POLICY,ce=se.createHTML("")}else void 0===se&&(se=oe(G,s)),null!==se&&"string"==typeof ce&&(ce=se.createHTML(""));i&&i(e),bt=e}},wt=_({},[...q,...N,...P]),xt=_({},[...R,...I]),St=function(e){let t=le(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});const n=m(e.tagName),r=m(t.tagName);return!!lt[e.namespaceURI]&&(e.namespaceURI===rt?t.namespaceURI===ot?"svg"===n:t.namespaceURI===nt?"svg"===n&&("annotation-xml"===r||ct[r]):Boolean(wt[n]):e.namespaceURI===nt?t.namespaceURI===ot?"math"===n:t.namespaceURI===rt?"math"===n&&ut[r]:Boolean(xt[n]):e.namespaceURI===ot?!(t.namespaceURI===rt&&!ut[r])&&!(t.namespaceURI===nt&&!ct[r])&&!xt[n]&&(ft[n]||!wt[n]):!("application/xhtml+xml"!==dt||!lt[e.namespaceURI]))},Ot=function(e){p(r.removed,{element:e});try{le(e).removeChild(e)}catch(t){Z(e)}},Et=function(e,t){try{p(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Fe||He)try{Ot(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},kt=function(e){let t=null,n=null;if(Be)e="<remove></remove>"+e;else{const t=y(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===dt&&it===ot&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=se?se.createHTML(e):e;if(it===ot)try{t=(new W).parseFromString(r,dt)}catch(e){}if(!t||!t.documentElement){t=ue.createDocument(it,"template",null);try{t.documentElement.innerHTML=at?ce:r}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),it===ot?pe.call(t,De?"html":"body")[0]:De?t.documentElement:i},_t=function(e){return fe.call(e.ownerDocument||e,e,F.SHOW_ELEMENT|F.SHOW_COMMENT|F.SHOW_TEXT|F.SHOW_PROCESSING_INSTRUCTION|F.SHOW_CDATA_SECTION,null)},Ct=function(e){return e instanceof U&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof H)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},At=function(e){return"function"==typeof k&&e instanceof k};function Tt(e,t,n){u(e,e=>{e.call(r,t,n,bt)})}const jt=function(e){let t=null;if(Tt(me.beforeSanitizeElements,e,null),Ct(e))return Ot(e),!0;const n=mt(e.nodeName);if(Tt(me.uponSanitizeElement,e,{tagName:n,allowedTags:ke}),Le&&e.hasChildNodes()&&!At(e.firstElementChild)&&S(/<[/\w!]/g,e.innerHTML)&&S(/<[/\w!]/g,e.textContent))return Ot(e),!0;if(e.nodeType===ee)return Ot(e),!0;if(Le&&e.nodeType===te&&S(/<[/\w]/g,e.data))return Ot(e),!0;if(!ke[n]||je[n]){if(!je[n]&&Nt(n)){if(Te.tagNameCheck instanceof RegExp&&S(Te.tagNameCheck,n))return!1;if(Te.tagNameCheck instanceof Function&&Te.tagNameCheck(n))return!1}if(Ke&&!Ze[n]){const t=le(e)||e.parentNode,n=ae(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=$(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,ie(e))}}return Ot(e),!0}return e instanceof C&&!St(e)?(Ot(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!S(/<\/no(script|embed|frames)/i,e.innerHTML)?(Me&&e.nodeType===J&&(t=e.textContent,u([be,ye,ve],e=>{t=v(t,e," ")}),e.textContent!==t&&(p(r.removed,{element:e.cloneNode()}),e.textContent=t)),Tt(me.afterSanitizeElements,e,null),!1):(Ot(e),!0)},qt=function(e,t,n){if(We&&("id"===t||"name"===t)&&(n in o||n in yt))return!1;if(Pe&&!qe[t]&&S(ge,t));else if(Ne&&S(we,t));else if(!Ce[t]||qe[t]){if(!(Nt(e)&&(Te.tagNameCheck instanceof RegExp&&S(Te.tagNameCheck,e)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(e))&&(Te.attributeNameCheck instanceof RegExp&&S(Te.attributeNameCheck,t)||Te.attributeNameCheck instanceof Function&&Te.attributeNameCheck(t))||"is"===t&&Te.allowCustomizedBuiltInElements&&(Te.tagNameCheck instanceof RegExp&&S(Te.tagNameCheck,n)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(n))))return!1}else if(et[t]);else if(S(Ee,v(n,Se,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==g(n,"data:")||!Qe[e])if(Re&&!S(xe,v(n,Se,"")));else if(n)return!1;return!0},Nt=function(e){return"annotation-xml"!==e&&y(e,Oe)},Pt=function(e){Tt(me.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Ct(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ce,forceKeepAttr:void 0};let o=t.length;for(;o--;){const i=t[o],{name:a,namespaceURI:l,value:s}=i,c=mt(a),f=s;let p="value"===a?f:w(f);if(n.attrName=c,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,Tt(me.uponSanitizeAttribute,e,n),p=n.attrValue,!Ge||"id"!==c&&"name"!==c||(Et(a,e),p=Ve+p),Le&&S(/((--!?|])>)|<\/(style|title)/i,p)){Et(a,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){Et(a,e);continue}if(!Ie&&S(/\/>/i,p)){Et(a,e);continue}Me&&u([be,ye,ve],e=>{p=v(p,e," ")});const h=mt(e.nodeName);if(qt(h,c,p)){if(se&&"object"==typeof G&&"function"==typeof G.getAttributeType)if(l);else switch(G.getAttributeType(h,c)){case"TrustedHTML":p=se.createHTML(p);break;case"TrustedScriptURL":p=se.createScriptURL(p)}if(p!==f)try{l?e.setAttributeNS(l,a,p):e.setAttribute(a,p),Ct(e)?Ot(e):d(r.removed)}catch(t){Et(a,e)}}else Et(a,e)}Tt(me.afterSanitizeAttributes,e,null)},Rt=function e(t){let n=null;const r=_t(t);for(Tt(me.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Tt(me.uponSanitizeShadowNode,n,null),jt(n),Pt(n),n.content instanceof c&&e(n.content);Tt(me.afterSanitizeShadowDOM,t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,i=null,l=null;if(at=!e,at&&(e="\x3c!--\x3e"),"string"!=typeof e&&!At(e)){if("function"!=typeof e.toString)throw O("toString is not a function");if("string"!=typeof(e=e.toString()))throw O("dirty is not a string, aborting")}if(!r.isSupported)return e;if(ze||gt(t),r.removed=[],"string"==typeof e&&($e=!1),$e){if(e.nodeName){const t=mt(e.nodeName);if(!ke[t]||je[t])throw O("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof k)n=kt("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),o.nodeType===Q&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!Fe&&!Me&&!De&&-1===e.indexOf("<"))return se&&Ue?se.createHTML(e):e;if(n=kt(e),!n)return Fe?null:Ue?ce:""}n&&Be&&Ot(n.firstChild);const s=_t($e?e:n);for(;i=s.nextNode();)jt(i),Pt(i),i.content instanceof c&&Rt(i.content);if($e)return e;if(Fe){if(He)for(l=de.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(Ce.shadowroot||Ce.shadowrootmode)&&(l=he.call(a,l,!0)),l}let f=De?n.outerHTML:n.innerHTML;return De&&ke["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&S(Y,n.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+f),Me&&u([be,ye,ve],e=>{f=v(f,e," ")}),se&&Ue?se.createHTML(f):f},r.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};gt(e),ze=!0},r.clearConfig=function(){bt=null,ze=!1},r.isValidAttribute=function(e,t,n){bt||gt({});const r=mt(e),o=mt(t);return qt(r,o,n)},r.addHook=function(e,t){"function"==typeof t&&p(me[e],t)},r.removeHook=function(e,t){if(void 0!==t){const n=f(me[e],t);return-1===n?void 0:h(me[e],n,1)[0]}return d(me[e])},r.removeHooks=function(e){me[e]=[]},r.removeAllHooks=function(){me={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}()}()},1691:function(e,t,n){var r=n(35),o=n(1692);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1692:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,".reply-attachment-list{display:flex;flex-direction:column;cursor:default}.reply-attachment-list .reply-attachment{background-color:var(--gray-1);border-radius:4px;cursor:pointer;pointer-events:auto}.reply-attachment-list .reply-attachment:not(:last-child){margin-bottom:8px}.reply-attachment-list .reply-attachment .reply-attachment-preview{width:100%;max-height:80px;display:flex;justify-content:center}.reply-attachment-list .reply-attachment .reply-attachment-preview.dirty{position:relative;margin-bottom:15px}.reply-attachment-list .reply-attachment .reply-attachment-preview img{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain}.reply-attachment-list .reply-attachment .reply-attachment-preview .reply-attachment-preview-message{font-size:11px;color:var(--error-text-color);position:absolute;inset-block-end:-15px;inset-inline-start:10px}.reply-attachment-list .reply-attachment .reply-attachment-info{display:flex;align-items:center;height:40px;padding:8px}.reply-attachment-list .reply-attachment .reply-attachment-info .reply-attachment-icon{height:24px;min-height:24px;width:24px;min-width:24px}.reply-attachment-list .reply-attachment .reply-attachment-info .reply-file-name{height:16px;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-inline-start:8px;margin-inline-end:8px}.reply-attachment-list .reply-attachment .reply-attachment-info .attachment-button{height:24px;min-height:24px;width:24px;min-width:24px}.reply-attachment-list .reply-attachment .reply-attachment-info .attachment-button:hover{background-color:var(--blue-1)}.reply-attachment-list .reply-attachment .reply-attachment-info .attachment-button .Icon{height:16px;width:16px}",""])},1693:function(e,t,n){var r=n(35),o=n(1694);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1694:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.NoteContent.modular-ui .edit-content .edit-buttons .save-button.disabled{cursor:default;background:var(--disabled-button-color);color:var(--primary-button-text)}.NoteContent.modular-ui .edit-content .edit-buttons .save-button.disabled span{color:var(--primary-button-text)}.NoteContent{--note-content-right-padding-width:12px;position:relative;display:flex;flex-direction:column;align-items:left;flex:1;color:var(--text-color);padding-bottom:12px;pointer-events:none}.NoteContent.isReply{padding-bottom:0}.NoteContent.unread.isReply{background:rgba(0,165,228,.08)}.NoteContent.unread.clicked .author-and-time span{font-weight:400}.NoteContent.unread .author-and-time span{font-weight:700}.NoteContent .container{margin-top:8px;overflow:hidden;white-space:pre-wrap;word-wrap:break-word;-webkit-user-select:text;-moz-user-select:text;user-select:text;cursor:text;padding-inline-start:52px;padding-inline-end:var(--note-content-right-padding-width)}.NoteContent .container>*{pointer-events:all}.NoteContent .container-reply{margin-top:8px;overflow:hidden;white-space:pre-wrap;word-wrap:break-word;-webkit-user-select:text;-moz-user-select:text;user-select:text;cursor:text}.NoteContent .edit-content{margin-top:7px;display:flex;flex-direction:column;position:relative;flex:1;padding-inline-start:52px;padding-inline-end:12px;padding-bottom:12px;pointer-events:auto}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.NoteContent .edit-content{flex:none}}.NoteContent .edit-content textarea{width:100%;padding-inline-start:8px;border:1px solid var(--border);border-radius:4px;color:var(--text-color);padding-top:4px;padding-bottom:4px;resize:none;overflow:hidden;box-sizing:border-box}.NoteContent .edit-content textarea:focus{outline:none;border:1px solid var(--focus-border)}.NoteContent .edit-content textarea::-moz-placeholder{color:var(--placeholder-text)}.NoteContent .edit-content textarea::placeholder{color:var(--placeholder-text)}.NoteContent .edit-content .edit-buttons{display:flex;flex-direction:row;justify-content:flex-end;margin-top:8px}.NoteContent .edit-content .edit-buttons>div{margin-inline-end:4px}.NoteContent .edit-content .edit-buttons .save-button{background-color:transparent;cursor:pointer;flex-shrink:0;background:var(--primary-button);border-radius:4px;width:-moz-fit-content;width:fit-content;border:none;height:28px;display:flex;align-items:center;justify-content:center;position:relative;color:var(--primary-button-text);padding:0 13px}:host(:not([data-tabbing=true])) .NoteContent .edit-content .edit-buttons .save-button,html:not([data-tabbing=true]) .NoteContent .edit-content .edit-buttons .save-button{outline:none}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .NoteContent .edit-content .edit-buttons .save-button{font-size:13px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .NoteContent .edit-content .edit-buttons .save-button{font-size:13px}}.NoteContent .edit-content .edit-buttons .save-button:hover{background:var(--primary-button-hover);color:var(--primary-button-text)}.NoteContent .edit-content .edit-buttons .save-button.disabled{background:var(--gray-6)!important;border-color:var(--gray-6)!important;cursor:not-allowed}.NoteContent .edit-content .edit-buttons .save-button.disabled span{color:var(--primary-button-text)}.NoteContent .edit-content .edit-buttons .cancel-button{border:none;background-color:transparent;color:var(--secondary-button-text);padding:0 10px;width:-moz-fit-content;width:fit-content;height:28px;display:flex;align-items:center;justify-content:center;cursor:pointer;margin-inline-end:2px}:host(:not([data-tabbing=true])) .NoteContent .edit-content .edit-buttons .cancel-button,html:not([data-tabbing=true]) .NoteContent .edit-content .edit-buttons .cancel-button{outline:none}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .NoteContent .edit-content .edit-buttons .cancel-button{font-size:13px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .NoteContent .edit-content .edit-buttons .cancel-button{font-size:13px}}.NoteContent .edit-content .edit-buttons .cancel-button:hover{color:var(--secondary-button-hover)}.NoteContent .reply-content{padding-inline-start:0}.NoteContent .contents{white-space:pre-wrap;color:var(--text-color);margin-inline-end:5px;padding:0;word-break:normal;word-wrap:break-word;-webkit-user-select:text;-moz-user-select:text;user-select:text}.NoteContent .contents .highlight{background:#fffc95;color:#333}.NoteContent .highlight{background:#fffc95}.NoteContent .selected-text-preview{padding-inline-start:52px;padding-top:8px;pointer-events:auto}.NoteContent .reply-attachment-list{margin-bottom:8px}.NoteContent.modular-ui .highlight{font-weight:700;color:var(--blue-5);background:none}.NoteContent.modular-ui .edit-content .edit-buttons .save-button.disabled{border:none}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1695:function(e,t,n){var r=n(35),o=n(1696);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1696:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.reply-area-container{border-top:1px solid var(--divider);display:flex;flex-direction:column;margin-bottom:0}.reply-area-container .reply-attachment-list{margin:12px 12px 0}.reply-area-container .reply-area-with-button{display:flex}.reply-area-container .reply-area-with-button .reply-area{position:relative;flex:1;margin:12px 17px 12px 12px;border-radius:4px;align-items:center}.reply-area-container .reply-area-with-button .reply-area.unread{background:rgba(0,165,228,.08)}.reply-area-container .reply-area-with-button .reply-area .comment-textarea .ql-container .ql-editor.ql-blank{padding:4px}.reply-area-container .reply-area-with-button .reply-area .comment-textarea .ql-container .ql-editor.ql-blank:before{inset-inline-start:4px}.reply-area-container .reply-area-with-button .reply-button-container{display:flex;flex-direction:column;justify-content:flex-end}.reply-area-container .reply-area-with-button .reply-button-container .reply-button{width:28px;height:28px;padding:0;border:none;background-color:transparent;inset-inline-end:10px;inset-block-end:12px}:host(:not([data-tabbing=true])) .reply-area-container .reply-area-with-button .reply-button-container .reply-button,html:not([data-tabbing=true]) .reply-area-container .reply-area-with-button .reply-button-container .reply-button{outline:none}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.reply-area-container .reply-area-with-button .reply-button-container .reply-button{width:80px}}.reply-area-container .reply-area-with-button .reply-button-container .reply-button:hover{background:var(--blue-1)}.reply-area-container .reply-area-with-button .reply-button-container .reply-button.disabled{cursor:not-allowed}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1697:function(e,t,n){var r=n(35),o=n(1698);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1698:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}@keyframes bottom-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes up-bottom{0%{transform:translateY(0)}to{transform:translateY(100%)}}@media print{#line-connector-root{opacity:0}}#line-connector-root{position:relative;z-index:69}.horizontalLine{height:2px}.horizontalLine,.verticalLine{background-color:rgba(30,120,235,.5);position:fixed}.verticalLine{width:2px}.arrowHead{position:absolute;inset-block-start:0;inset-inline-start:0;margin:auto;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-inline-end:7px solid rgba(30,120,235,.5);transform:translateX(-100%) translateY(-50%) translateY(1px)}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1699:function(e,t,n){var r=n(35),o=n(1700);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1700:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.Note{padding:0;border:none;background-color:transparent;display:block;text-align:start;border-radius:4px;box-shadow:0 0 3px 0 var(--note-box-shadow);margin-bottom:8px;margin-inline-start:2px;background:var(--component-background);cursor:pointer;position:relative}:host(:not([data-tabbing=true])) .Note,html:not([data-tabbing=true]) .Note{outline:none}.Note.unread{border:1.2px solid #00a5e4}.Note.expanded{box-shadow:0 4px 16px var(--note-box-shadow-expanded),0 0 4px 0 var(--note-box-shadow)}.Note.is-multi-selected{box-shadow:0 4px 16px rgba(134,142,150,.24),0 0 4px 0 var(--note-box-shadow)}.Note.disabled{opacity:.5;pointer-events:none}.Note .note-button{position:absolute;width:100%;height:100%;inset-block-start:0;inset-inline-start:0}.Note .mark-all-read-button{background:#00a5e4;text-align:center;color:#fff;height:16px;font-size:12px;width:100%;border-radius:0}.Note .divider{height:1px;width:100%;background:var(--divider)}.Note .reply-divider{background:var(--reply-divider);height:1px;width:100%}.Note .replies{margin-inline-start:52px;padding-bottom:12px}.Note .reply{padding-inline-start:12px;padding-bottom:24px;border-inline-start:1px solid var(--reply-divider)}.Note .reply:last-of-type{padding-bottom:0}.Note .group-section{margin-inline-start:52px;padding-bottom:12px;display:flex;flex-direction:column;grid-row-gap:4px;row-gap:4px;padding-inline-end:12px}.Note .group-section.modular-ui .group-child:hover{border:none;box-shadow:inset 0 0 0 1px var(--blue-6);background:var(--faded-component-background);border-radius:4px}.Note .text-button{color:var(--secondary-button-text);display:flex;position:relative;width:auto;height:auto;flex-direction:row-reverse;justify-content:flex-end}.Note .text-button .Icon{color:var(--secondary-button-text);height:18px;width:18px}.Note .group-child{position:relative;width:auto;height:auto;display:block;text-align:start;padding-top:4px;padding-bottom:4px}.Note .group-child:hover{background:var(--view-header-button-hover)}.Note .group-child .NoteContent{padding-bottom:0}.Note:focus{outline:none}.Note.focus-visible,.Note:focus-visible{outline:var(--focus-visible-outline)}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1701:function(e,t,n){"use strict";n(9),n(10),n(26),n(16),n(40),n(24),n(42),n(43),n(8),n(56);var r=n(0),o=n.n(r),i=n(6),a=n(4);function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof c?r:c,u=Object.create(l.prototype);return s(u,"_invoke",function(n,r,o){var i,l,s,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,s=e,d.n=n,a}};function p(n,r){for(l=n,s=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,l=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),l=u,s=h;(t=l<2?e:s)||!f;){i||(l?l<3?(l>1&&(d.n=-1),p(l,s)):d.n=s:d.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(f=d.n<0)?s:n.call(r,d))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),u}var a={};function c(){}function u(){}function f(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(s(t={},r,(function(){return this})),t),p=f.prototype=c.prototype=Object.create(d);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,s(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return u.prototype=f,s(p,"constructor",f),s(f,"constructor",u),u.displayName="GeneratorFunction",s(f,o,"GeneratorFunction"),s(p),s(p,o,"Generator"),s(p,r,(function(){return this})),s(p,"toString",(function(){return"[object Generator]"})),(l=function(){return{w:i,m:h}})()}function s(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(s=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var i=function(t,n){s(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,r)}function c(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}t.a=function(e){var t=e.annotationId,n=e.addAttachments,r=Object(i.e)((function(e){return a.a.getReplyAttachmentHandler(e)})),s=function(){var e,o=(e=l().m((function e(o){var i,a,s;return l().w((function(e){for(;;)switch(e.n){case 0:if(!(i=o.target.files[0])){e.n=3;break}if(a=i,!r){e.n=2;break}return e.n=1,r(i);case 1:s=e.v,a={url:s,name:i.name,size:i.size,type:i.type};case 2:n(t,[a]);case 3:return e.a(2)}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){c(i,r,o,a,l,"next",e)}function l(e){c(i,r,o,a,l,"throw",e)}a(void 0)}))});return function(e){return o.apply(this,arguments)}}();return o.a.createElement("input",{id:"reply-attachment-picker",type:"file",style:{display:"none"},onChange:s,onClick:function(e){e.target.value=""}})}},1709:function(e,t,n){"use strict";n(9),n(10),n(14),n(30),n(34),n(27),n(21),n(20),n(12),n(44),n(22),n(99),n(142),n(31),n(18),n(26),n(16),n(28),n(40),n(48),n(24),n(47),n(49),n(42),n(37),n(43),n(8),n(91),n(56),n(17),n(19),n(132),n(11),n(29),n(13),n(94);var r=n(0),o=n.n(r),i=n(15),a=n.n(i),l=n(2),s=n.n(l),c=n(6),u=n(305),f=n(1571),d=(n(50),n(76),n(171),n(468),n(62),n(115),n(153),n(1618),n(1710)),p=n(106),h=n.n(p),m=n(315),b=n.n(m),y=n(237),v=n.n(y),g=n(1672),w=n.n(g),x=n(1599),S=(n(38),n(59),n(1)),O=n(4),E=n(5),k=n(3),_=(n(1686),n(96));function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(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 T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=C(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==C(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return N(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var P=function(e,t,n){return{icon:t,label:"action.".concat(e.toLowerCase()),title:"action.".concat(e.toLowerCase()),option:e,dataElement:n}},R=[P("Edit","","notePopupEdit"),P("Delete","","notePopupDelete")],I={handleEdit:s.a.func,handleDelete:s.a.func,isEditable:s.a.bool,isDeletable:s.a.bool,noteId:s.a.string};function M(){}function L(e){var t=e.handleEdit,n=void 0===t?M:t,r=e.handleDelete,i=void 0===r?M:r,l=e.isEditable,s=e.isDeletable,f=e.isReply,d=e.noteId,p=Object(c.e)((function(e){var t;return null===(t=O.a.getFeatureFlags(e))||void 0===t?void 0:t.customizableUI})),h="".concat(E.a.NOTE_POPUP_FLYOUT,"-").concat(d),m=q(Object(u.a)(),1)[0];if(!l&&!s)return null;var b=a()("overflow note-popup-toggle-trigger"),y=a()("NotePopup options note-popup-options",{"options-reply":f,"modular-ui":p});return o.a.createElement("div",{className:y},o.a.createElement(_.a,{dataElement:"notePopup-".concat(d),className:b,img:"icon-tools-more",title:m("formField.formFieldPopup.options"),toggleElement:h,disabled:!1}),o.a.createElement(D,{flyoutSelector:h,handleClick:function(e){"Edit"===e?n():"Delete"===e&&i()},isEditable:l,isDeletable:s}))}var D=function(e){var t=e.flyoutSelector,n=e.handleClick,o=e.isEditable,i=e.isDeletable,a=Object(c.d)(),l=Object(c.e)((function(e){return O.a.getFlyout(e,t)})),s=q(Object(u.a)(),1)[0];return Object(r.useLayoutEffect)((function(){var e=R;o?i||(e=e.filter((function(e){return"Delete"!==e.option}))):e=e.filter((function(e){return"Edit"!==e.option}));var r={dataElement:t,className:"NotePopupFlyout",items:e.map((function(e){return T(T({},e),{},{label:s(e.label),title:s(e.title),onClick:function(){return n(e.option)}})}))};a(l?k.a.updateFlyout(r.dataElement,r):k.a.addFlyout(r))}),[o,i]),null};D.propTypes={flyoutSelector:s.a.string,handleClick:s.a.func,isEditable:s.a.bool,isDeletable:s.a.bool},L.propTypes=I;var z=L;function B(){return(B=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}).apply(null,arguments)}function F(e){return function(e){if(Array.isArray(e))return W(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||U(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||U(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e,t){if(e){if("string"==typeof e)return W(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var G=function(e){var t=H(Object(c.e)((function(e){return[O.a.getActiveDocumentViewerKey(e)]})),1)[0],n=e.annotation,r=e.setIsEditing,i=e.noteIndex,a=H(o.a.useState(S.a.canModify(n)),2),l=a[0],s=a[1],u=H(o.a.useState(S.a.canModifyContents(n)),2),f=u[0],d=u[1];o.a.useEffect((function(){function e(){s(S.a.canModify(n,t)),d(S.a.canModifyContents(n,t))}return e(),S.a.addEventListener("updateAnnotationPermission",e,void 0,t),function(){return S.a.removeEventListener("updateAnnotationPermission",e,t)}}),[n,t]);var p={handleEdit:o.a.useCallback((function(){n instanceof window.Core.Annotations.FreeTextAnnotation&&S.a.getAnnotationManager(t).isFreeTextEditingEnabled()?S.a.getAnnotationManager(t).trigger("annotationDoubleClicked",n):r(!0,i)}),[n,r,i]),handleDelete:o.a.useCallback((function(){S.a.deleteAnnotations([n].concat(F(n.getGroupedChildren())),void 0,t)}),[n]),isEditable:f,isDeletable:l&&!(null!=n&&n.NoDelete),noteId:n?n.Id:""};return o.a.createElement(z,B({},e,p))},V=n(1638);function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return $(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Y={annotation:s.a.object.isRequired,handleStateChange:s.a.func};function Z(e){var t=e.annotation,n=e.handleStateChange,r=void 0===n?function(){}:n,i=K(Object(u.a)(),1)[0],a=t.getStatus(),l="icon-annotation-status-".concat(""===a?"none":a.toLowerCase()),s=t.Id;return o.a.createElement(o.a.Fragment,null,o.a.createElement(_.a,{dataElement:"noteState-".concat(s),title:i("option.notesOrder.status"),img:l,toggleElement:"".concat(E.a.NOTE_STATE_FLYOUT,"-").concat(s)}),o.a.createElement(V.a,{noteId:s,handleStateChange:r}))}Z.propTypes=Y;var X=Z,Q=n(1635),J=n(182);function ee(){return(ee=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}).apply(null,arguments)}var te={annotation:s.a.object};function ne(e){var t=Object(c.e)((function(e){return O.a.getActiveDocumentViewerKey(e)})),n=Object(c.e)((function(e){return O.a.isElementDisabled(e,"noteState")})),i=e.annotation,a=Object(J.a)(Object(r.useCallback)((function(e){var n=Object(Q.a)(i,e,t);i.addReply(n);var r=S.a.getAnnotationManager(t);r.addAnnotation(n),r.trigger("addReply",[n,i,r.getRootAnnotation(i)])}),[i,t]));return!n&&o.a.createElement("div",null,o.a.createElement(X,ee({handleStateChange:a},e)))}ne.propTypes=te;var re=ne,oe=n(51),ie=n(116);function ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return le(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?le(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var se={annotationId:s.a.string,ariaLabel:s.a.string,pendingEditTextMap:s.a.object,pendingReplyMap:s.a.object,pendingAttachmentMap:s.a.object},ce=function(e){var t=e.annotationId,n=e.ariaLabel,i=e.pendingEditTextMap,a=e.pendingReplyMap,l=e.pendingAttachmentMap,s=Object(u.a)().t,c=ae(Object(r.useState)(!1),2),f=c[0],d=c[1],p=ae(Object(r.useState)(!1),2),h=p[0],m=p[1],b=ae(Object(r.useState)(!1),2),y=b[0],v=b[1];return Object(r.useEffect)((function(){var e,n,r;d((null===(e=i[t])||void 0===e?void 0:e.length)>0),m((null===(n=a[t])||void 0===n?void 0:n.length)>0),v((null===(r=l[t])||void 0===r?void 0:r.length)>0)}),[i,a,l]),f||h||y?o.a.createElement("div",{"data-element":"unpostedCommentIndicator"},o.a.createElement(ie.a,{content:s("message.unpostedComment")},o.a.createElement("div",null,o.a.createElement(oe.a,{className:"type-icon",glyph:"icon-unposted-comment",ariaLabel:n})))):null};ce.propTypes=se;var ue=ce,fe={annotationId:s.a.string,ariaLabel:s.a.string},de=function(e){var t=e.annotationId,n=e.ariaLabel,r=Object(c.e)((function(e){return O.a.isElementDisabled(e,"unpostedCommentIndicator")})),i=o.a.useContext(f.a),a=i.pendingEditTextMap,l=i.pendingReplyMap,s=i.pendingAttachmentMap;return r?null:o.a.createElement(ue,{annotationId:t,ariaLabel:n,pendingEditTextMap:a,pendingReplyMap:l,pendingAttachmentMap:s})};de.propTypes=fe;var pe=de,he=n(160),me=n(41),be=n(233),ye=n(176),ve=n(161),ge=n(183),we=n(232),xe=n(25),Se=n(107);n(1688);function Oe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ee(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ee(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ke={icon:s.a.string,iconColor:s.a.string,color:s.a.string,fillColor:s.a.string,annotation:s.a.object,language:s.a.string,noteDateFormat:s.a.string,isSelected:s.a.bool,setIsEditing:s.a.func,notesShowLastUpdatedDate:s.a.bool,isUnread:s.a.bool,renderAuthorName:s.a.func,isNoteStateDisabled:s.a.bool,isEditing:s.a.bool,noteIndex:s.a.number,sortStrategy:s.a.string,activeTheme:s.a.string,isMultiSelected:s.a.bool,isMultiSelectMode:s.a.bool,handleMultiSelect:s.a.func,isGroupMember:s.a.bool,showAnnotationNumbering:s.a.bool,isTrackedChange:s.a.bool};function _e(e){var t,n,r,i=e.icon,l=e.iconColor,s=e.annotation,c=e.language,f=e.noteDateFormat,d=e.isSelected,p=e.setIsEditing,m=e.notesShowLastUpdatedDate,b=e.isReply,y=e.isUnread,v=e.renderAuthorName,g=e.isNoteStateDisabled,w=e.isEditing,x=e.noteIndex,O=e.sortStrategy,E=e.activeTheme,k=e.isMultiSelected,_=e.isMultiSelectMode,C=e.handleMultiSelect,A=e.isGroupMember,T=e.showAnnotationNumbering,j=e.timezone,q=e.isTrackedChange,N=Oe(Object(u.a)(),1)[0],P=O===ge.a.MODIFIED_DATE||m&&O!==ge.a.CREATED_DATE?Object(be.a)(s):s.DateCreated;if(j&&P){var R=P.toLocaleString("en-US",{timeZone:j});r=new Date(R)}else r=P;var I=r?h()(r).locale(c).format(f):N("option.notesPanel.noteContent.noDate"),M=s.getReplies().length,L=null===(t=s[l])||void 0===t||null===(n=t.toHexString)||void 0===n?void 0:n.call(t);E===we.a.DARK&&L&&Object(ve.c)(L)?L=Se.b.white:E===we.a.LIGHT&&L&&Object(ve.d)(L)&&(L=Se.b.black);var D=Object(ye.a)(s.FillColor),z=s.getAssociatedNumber(),B="#".concat(z," - "),F=a()("author-and-date",{isReply:b}),H=a()("NoteHeader",{parent:!b&&!A});return o.a.createElement("div",{className:H},!b&&o.a.createElement("div",{className:"type-icon-container"},y&&o.a.createElement("div",{className:"unread-notification"}),o.a.createElement(oe.a,{className:"type-icon",glyph:i,color:L,fillColor:D})),o.a.createElement("div",{className:F},o.a.createElement("div",{className:"author-and-overflow"},o.a.createElement("div",{className:"author-and-time"},o.a.createElement("div",{className:"author"},T&&void 0!==z&&o.a.createElement("span",{className:"annotation-number"},B),v(s)),o.a.createElement("div",{className:"date-and-num-replies"},o.a.createElement("div",{className:"date-and-time"},I,A&&" (Page ".concat(s.PageNumber,")")),M>0&&!d&&o.a.createElement("div",{className:"num-replies-container"},o.a.createElement(oe.a,{className:"num-reply-icon",glyph:"icon-chat-bubble"}),o.a.createElement("div",{className:"num-replies"},M)))),o.a.createElement("div",{className:"state-and-overflow"},_&&!A&&!b&&o.a.createElement(he.a,{id:"note-multi-select-toggle_".concat(s.Id),"aria-label":"".concat(v(s)," ").concat(N("option.notesPanel.toggleMultiSelect")),checked:k,onClick:function(e){e.preventDefault(),e.stopPropagation(),C(!k)}}),o.a.createElement(pe,{annotationId:s.Id,ariaLabel:"Unposted Comment, ".concat(v(s),", ").concat(I)}),!g&&!b&&!_&&!A&&!q&&o.a.createElement(re,{annotation:s,isSelected:d}),!w&&d&&!_&&!A&&!q&&o.a.createElement(G,{noteIndex:x,annotation:s,setIsEditing:p,isReply:b}),d&&q&&!_&&o.a.createElement(o.a.Fragment,null,o.a.createElement(me.a,{title:N("officeEditor.accept"),img:"icon-menu-checkmark",className:"tracked-change-icon-wrapper accept",onClick:function(){return e=s.getCustomData(xe.w),void S.a.getOfficeEditor().acceptTrackedChange(e);var e},iconClassName:"tracked-change-icon"}),o.a.createElement(me.a,{title:N("officeEditor.reject"),img:"icon-close",className:"tracked-change-icon-wrapper reject",onClick:function(){return e=s.getCustomData(xe.w),void S.a.getOfficeEditor().rejectTrackedChange(e);var e},iconClassName:"tracked-change-icon"}))))))}_e.propTypes=ke;var Ce=_e,Ae=n(1636);function Te(){return(Te=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}).apply(null,arguments)}function je(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return qe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ne=function(e){var t=je(Object(c.e)((function(e){return[O.a.getNotesPanelWidth(e)]}),c.c),1)[0];return o.a.createElement(Ae.a,Te({},e,{panelWidth:t}))},Pe=(n(378),n(379),n(380),n(172));n(181);function Re(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Ie(c,"_invoke",function(n,r,o){var i,l,s,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,s=e,d.n=n,a}};function p(n,r){for(l=n,s=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,l=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),l=u,s=h;(t=l<2?e:s)||!f;){i||(l?l<3?(l>1&&(d.n=-1),p(l,s)):d.n=s:d.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(f=d.n<0)?s:n.call(r,d))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Ie(t={},r,(function(){return this})),t),f=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Ie(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,Ie(f,"constructor",c),Ie(c,"constructor",s),s.displayName="GeneratorFunction",Ie(c,o,"GeneratorFunction"),Ie(f),Ie(f,o,"Generator"),Ie(f,r,(function(){return this})),Ie(f,"toString",(function(){return"[object Generator]"})),(Re=function(){return{w:i,m:d}})()}function Ie(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(Ie=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var i=function(t,n){Ie(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,r)}function Me(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Le(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Me(i,r,o,a,l,"next",e)}function l(e){Me(i,r,o,a,l,"throw",e)}a(void 0)}))}}var De="ic-file-pdf",ze="ic-file-img",Be="ic-file-cad",Fe="ic-file-doc",He="ic-file-ppt",Ue="ic-file-xls",We="ic-file-etc",Ge=window.Core.Annotations.FileAttachmentUtils;function Ve(e){return Ke.apply(this,arguments)}function Ke(){return(Ke=Le(Re().m((function e(t){return Re().w((function(e){for(;;)switch(e.n){case 0:return e.a(2,Ge.decompressWithFlateDecode(t.content,t.type))}}),e)})))).apply(this,arguments)}function $e(e){return Ye.apply(this,arguments)}function Ye(){return(Ye=Le(Re().m((function e(t){var n,r=arguments;return Re().w((function(e){for(;;)switch(e.n){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:[],e.n=1,t.setAttachments(n);case 1:return e.a(2)}}),e)})))).apply(this,arguments)}function Ze(e){return!(!e.type||!e.type.startsWith("image/"))}function Xe(e){var t;if(Ze(e))return ze;switch(null===(t=e.name)||void 0===t?void 0:t.split(".").pop().toLowerCase()){case"pdf":return De;case"cad":return Be;case"doc":case"docx":return Fe;case"ppt":case"pptx":return He;case"xls":case"xlsx":return Ue;default:return We}}var Qe=n(1690),Je=n.n(Qe);function et(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return tt(c,"_invoke",function(n,r,o){var i,l,s,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,s=e,d.n=n,a}};function p(n,r){for(l=n,s=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,l=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),l=u,s=h;(t=l<2?e:s)||!f;){i||(l?l<3?(l>1&&(d.n=-1),p(l,s)):d.n=s:d.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(f=d.n<0)?s:n.call(r,d))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(tt(t={},r,(function(){return this})),t),f=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,tt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,tt(f,"constructor",c),tt(c,"constructor",s),s.displayName="GeneratorFunction",tt(c,o,"GeneratorFunction"),tt(f),tt(f,o,"Generator"),tt(f,r,(function(){return this})),tt(f,"toString",(function(){return"[object Generator]"})),(et=function(){return{w:i,m:d}})()}function tt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(tt=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var i=function(t,n){tt(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,r)}function nt(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}var rt=function(e){return new Promise((function(t){if(void 0===e.size)t(e.toString("utf-8"));else{var n=new FileReader;n.onload=function(){return t(n.result)},n.readAsText(e)}}))},ot=function(e){return"image/svg+xml"===e.type},it=function(){var e,t=(e=et().m((function e(t){var n,r,o,i;return et().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,rt(t);case 1:if(n=e.v){e.n=2;break}return e.a(2,{svg:t});case 2:return r=[],Je.a.addHook("uponSanitizeElement",(function(e,t){var n=t.tagName;t.allowedTags[n]||r.push(n)})),o=Je.a.sanitize(n),i=new Blob([o],{type:"image/svg+xml"}),e.a(2,{svg:i,isDirty:r.length>0})}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){nt(i,r,o,a,l,"next",e)}function l(e){nt(i,r,o,a,l,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();n(1691);function at(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return lt(c,"_invoke",function(n,r,o){var i,l,s,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,s=e,d.n=n,a}};function p(n,r){for(l=n,s=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,l=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),l=u,s=h;(t=l<2?e:s)||!f;){i||(l?l<3?(l>1&&(d.n=-1),p(l,s)):d.n=s:d.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(f=d.n<0)?s:n.call(r,d))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(lt(t={},r,(function(){return this})),t),f=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,lt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,lt(f,"constructor",c),lt(c,"constructor",s),s.displayName="GeneratorFunction",lt(c,o,"GeneratorFunction"),lt(f),lt(f,o,"Generator"),lt(f,r,(function(){return this})),lt(f,"toString",(function(){return"[object Generator]"})),(at=function(){return{w:i,m:d}})()}function lt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(lt=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var i=function(t,n){lt(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,r)}function st(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function ct(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){st(i,r,o,a,l,"next",e)}function l(e){st(i,r,o,a,l,"throw",e)}a(void 0)}))}}function ut(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ft(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ft(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var dt=function(e){var t=e.file,n=ut(Object(u.a)(),1)[0],i=ut(Object(r.useState)(),2),l=i[0],s=i[1],c=ut(Object(r.useState)(!1),2),f=c[0],d=c[1];return Object(r.useEffect)((function(){(function(){var e=ct(at().m((function e(){var n,r,o,i,a;return at().w((function(e){for(;;)switch(e.n){case 0:if(d(!1),n=t,!(r=!(t instanceof File||t.url))){e.n=2;break}return e.n=1,Ve(t);case 1:n=e.v;case 2:if(!(t instanceof File||r)){e.n=5;break}if(!ot(t)){e.n=4;break}return e.n=3,it(n);case 3:o=e.v,i=o.svg,a=o.isDirty,s(URL.createObjectURL(i)),d(a),e.n=5;break;case 4:s(URL.createObjectURL(n));case 5:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[t]),o.a.createElement("div",{className:a()({"reply-attachment-preview":!0,dirty:f})},o.a.createElement("img",{src:l}),f&&o.a.createElement("span",{className:"reply-attachment-preview-message"},n("message.svgMalicious")))},pt=function(e){var t=e.files,n=e.isEditing,r=e.fileDeleted,i=ut(Object(c.e)((function(e){return[O.a.getTabManager(e),O.a.isReplyAttachmentPreviewEnabled(e)]})),2),a=i[0],l=i[1],s=ut(Object(u.a)(),1)[0],f=function(){var e=ct(at().m((function e(t,n){var r;return at().w((function(e){for(;;)switch(e.n){case 0:if(t.preventDefault(),t.stopPropagation(),a){e.n=1;break}return e.a(2,console.warn("Can't open attachment in non-multi-tab mode"));case 1:if(!(n instanceof File)){e.n=2;break}r=n,e.n=5;break;case 2:if(!n.url){e.n=3;break}r=n.url,e.n=5;break;case 3:return e.n=4,Ve(n);case 4:r=e.v;case 5:r&&a.addTab(r,{filename:n.name,setActive:!0,saveCurrentActiveTabState:!0});case 6:return e.a(2)}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),d=function(){var e=ct(at().m((function e(t,n){var r,o;return at().w((function(e){for(;;)switch(e.n){case 0:if(t.preventDefault(),t.stopPropagation(),!n.url){e.n=1;break}o=n.url,e.n=3;break;case 1:return e.n=2,Ve(n);case 2:o=e.v;case 3:r=o,Object(Pe.saveAs)(r,n.name);case 4:return e.a(2)}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return o.a.createElement("div",{className:"reply-attachment-list"},t.map((function(e,t){return o.a.createElement("div",{className:"reply-attachment",key:t,onClick:function(t){return f(t,e)}},l&&Ze(e)&&o.a.createElement(dt,{file:e}),o.a.createElement("div",{className:"reply-attachment-info"},o.a.createElement(oe.a,{className:"reply-attachment-icon",glyph:Xe(e)}),o.a.createElement(ie.a,{content:e.name},o.a.createElement("div",{className:"reply-file-name"},e.name)),n?o.a.createElement(me.a,{className:"attachment-button",title:"".concat(s("action.delete")," ").concat(s("option.type.fileattachment")),img:"icon-close",onClick:function(t){return function(e,t){e.preventDefault(),e.stopPropagation(),r(t)}(t,e)}}):o.a.createElement(me.a,{className:"attachment-button",title:"".concat(s("action.download")," ").concat(s("option.type.fileattachment")),img:"icon-download",onClick:function(t){return d(t,e)}})))})))},ht=n(479),mt=n(372),bt=n(1596),yt=function(e){var t={};if(e["font-weight"]&&"normal"!==e["font-weight"]&&(t.bold=!0),e["font-style"]&&"normal"!==e["font-style"]&&(t.italic=!0),e.color&&(t.color=e.color),e["text-decoration"]){var n=e["text-decoration"].split(" ");n.includes("line-through")&&(t.strike=!0),n.includes("word")&&(t.underline=!0)}return t},vt=function(e,t){for(var n=e.getRichTextStyle(),r=Object.keys(n),o=mt.a.getFormattedTextFromDeltas(t.getContents()),i=mt.a.extractMentionDataFromStr(o).plainTextValue,a=[],l=0;l<r.length;l++){var s=n[r[l]],c=yt(s);if(!isNaN(r[l])){var u=isNaN(r[l+1])?i.length:r[l+1],f=i.slice(r[l],u);a.push({insert:f,attributes:c})}}t.setContents(a),t.setSelection(i.length,0)},gt=n(45),wt=n(53),xt=n(229),St=n(60);n(1693);function Ot(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Et(c,"_invoke",function(n,r,o){var i,l,s,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,s=e,d.n=n,a}};function p(n,r){for(l=n,s=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,l=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),l=u,s=h;(t=l<2?e:s)||!f;){i||(l?l<3?(l>1&&(d.n=-1),p(l,s)):d.n=s:d.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(f=d.n<0)?s:n.call(r,d))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Et(t={},r,(function(){return this})),t),f=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Et(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,Et(f,"constructor",c),Et(c,"constructor",s),s.displayName="GeneratorFunction",Et(c,o,"GeneratorFunction"),Et(f),Et(f,o,"Generator"),Et(f,r,(function(){return this})),Et(f,"toString",(function(){return"[object Generator]"})),(Ot=function(){return{w:i,m:d}})()}function Et(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(Et=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var i=function(t,n){Et(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,r)}function kt(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function _t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ct(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ct(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}h.a.extend(b.a);var At={annotation:s.a.object.isRequired,isEditing:s.a.bool,setIsEditing:s.a.func,noteIndex:s.a.number,isUnread:s.a.bool,isNonReplyNoteRead:s.a.bool,onReplyClicked:s.a.func,isMultiSelected:s.a.bool,isMultiSelectMode:s.a.bool,handleMultiSelect:s.a.func,isGroupMember:s.a.bool,handleNoteClick:s.a.func},Tt=function(e){var t,n=e.annotation,i=e.isEditing,l=e.setIsEditing,s=e.noteIndex,p=e.isUnread,h=e.isNonReplyNoteRead,m=e.onReplyClicked,b=e.isMultiSelected,y=e.isMultiSelectMode,g=e.handleMultiSelect,x=e.isGroupMember,E=e.handleNoteClick,_=void 0===E?function(){}:E,C=Object(c.e)((function(e){return O.a.getNoteDateFormat(e)})),A=Object(c.e)((function(e){return O.a.getIconColor(e,Object(wt.g)(n),c.c)})),T=Object(c.e)((function(e){return O.a.isElementDisabled(e,"noteStateFlyout")})),j=Object(c.e)((function(e){return O.a.getCurrentLanguage(e)})),q=Object(c.e)((function(e){return O.a.notesShowLastUpdatedDate(e)})),N=Object(c.e)((function(e){return O.a.isNotesPanelTextCollapsingEnabled(e)})),P=Object(c.e)((function(e){return O.a.isNotesPanelRepliesCollapsingEnabled(e)})),R=Object(c.e)((function(e){return O.a.getActiveTheme(e)})),I=Object(c.e)((function(e){return O.a.getTimezone(e)})),M=Object(c.e)((function(e){var t;return null===(t=O.a.getFeatureFlags(e))||void 0===t?void 0:t.customizableUI})),L=Object(r.useContext)(f.a),D=L.isSelected,z=L.searchInput,B=L.resize,F=L.pendingEditTextMap,H=L.onTopNoteContentClicked,U=L.sortStrategy,W=L.showAnnotationNumbering,G=L.setPendingEditText,V=Object(c.d)(),K=_t(Object(u.a)(),1)[0],$=n.isReply(),Y=Object(wt.g)(n)===wt.c.TRACKED_CHANGE,Z=_t(Object(r.useState)([]),2),X=Z[0],Q=Z[1];Object(r.useEffect)((function(){Q(n.getAttachments())}),[n]),Object(r.useEffect)((function(){var e=function(e,t){"modify"===t&&e.forEach((function(e){e.Id===n.Id&&Q(e.getAttachments())}))};return S.a.addEventListener("annotationChanged",e),function(){S.a.removeEventListener("annotationChanged",e)}}),[n]),Object(xt.a)((function(){i||V(k.a.finishNoteEditing()),B()}),[i]);var J,ee=Object(r.useCallback)((function(e){var t=S.a.getDisplayAuthor(e.Author);return t?Rt(t,z):K("option.notesPanel.noteContent.noName")}),[z]),te=n.getSkipAutoLink&&n.getSkipAutoLink(),ne=Object(r.useCallback)((function(e,t,r,i){var a=[];if(i||d.a.link(e,{stripPrefix:!1,stripTrailingSlash:!1,replaceFn:function(e){var t=e.getAnchorHref(),n=e.getAnchorText(),r=e.getOffset();switch(e.getType()){case"url":case"email":case"phone":a.push({href:t,text:n,start:r,end:r+e.getMatchedText().length})}}}),!a.length){var l=Rt(e,z,t);if(!z&&(!$&&N||$&&P)){return o.a.createElement(Ne,{linesToBreak:3,comment:!0,renderRichText:Pt,richTextStyle:t,resize:B,style:r,beforeContent:function(){if(!Y)return null;var e=1===n.TrackedChangeType?K("officeEditor.added"):K("officeEditor.deleted");return o.a.createElement("span",{style:{color:n.FillColor.toString(),fontWeight:700}},e)}},e)}return l}var s=[],c=0;return a.forEach((function(n,r){var i=n.start,a=n.end,l=n.href;c<i&&s.push(o.a.createElement("span",{key:"span_".concat(r)},Rt(e,z,t,c,i))),s.push(o.a.createElement("a",{href:l,target:"_blank",rel:"noopener noreferrer",key:"a_".concat(r)},Rt(e,z,t,i,a))),c=a})),c<e.length-1&&s.push(Rt(e,z,t,c)),s}),[z]),re=Object(wt.e)(Object(wt.g)(n)).icon;try{J=JSON.parse(n.getCustomData("trn-mention"))}catch(e){J=n.getCustomData("trn-mention")}var oe=(null===(t=J)||void 0===t?void 0:t.contents)||n.getContents();oe=function(e){return e?w()(e):e}(oe);var ie=n instanceof window.Core.Annotations.Link?Object(ht.a)(n):n.getContents(),ae=n.getRichTextStyle(),le=n.TextColor;if(R===we.a.DARK)le&&Object(ve.c)(le.toHexString())&&(le=new window.Core.Annotations.Color(255,255,255,1)),ae&&Object.keys(ae).forEach((function(e){ae[e].color&&Object(ve.c)(ae[e].color)&&(ae[e].color=Se.b.white)}));else if(R===we.a.LIGHT){if(le&&Object(ve.d)(le.toHexString())&&(le=new window.Core.Annotations.Color(0,0,0,1)),ae)Object.keys(ae).forEach((function(e){ae[e].color&&Object(ve.d)(ae[e].color)&&(ae[e].color=Se.b.black)}))}var se,ce=void 0===F[n.Id];se=oe&&ce?oe:F[n.Id];var ue=function(e){var t;null!==(t=window.getSelection())&&void 0!==t&&t.toString()&&(null==e||e.stopPropagation()),_(e)},fe=a()({NoteContent:!0,isReply:$,unread:p,clicked:h,"modular-ui":M}),de=Object(r.useMemo)((function(){var e={};return le&&(e.color=le.toHexString()),o.a.createElement(o.a.Fragment,null,i&&D?o.a.createElement(qt,{annotation:n,noteIndex:s,setIsEditing:l,textAreaValue:se,onTextAreaValueChange:G,pendingText:F[n.Id]}):ie&&o.a.createElement("div",{className:a()("container",{"reply-content":$}),onClick:ue},$&&X.length>0&&o.a.createElement(pt,{files:X,isEditing:!1}),ne(ie,ae,e,te)))}),[n,D,i,l,oe,ne,se,G,X]),pe=n.getCustomData("trn-annot-preview"),he=Object(r.useMemo)((function(){if(""===pe)return null;var e=Rt(pe,z),t=!$&&N;return v()(e)&&t?o.a.createElement(St.a,{onClick:_,className:"selected-text-preview",dataElement:"notesSelectedTextPreview"},o.a.createElement(Ne,{linesToBreak:3},'"'.concat(e,'"'))):o.a.createElement("div",{className:"selected-text-preview",style:{paddingRight:"12px"}},e)}),[pe,z]),me=Object(r.useMemo)((function(){return o.a.createElement(Ce,{icon:re,iconColor:A,annotation:n,language:j,noteDateFormat:C,isSelected:D,setIsEditing:l,notesShowLastUpdatedDate:q,isReply:$,isUnread:p,renderAuthorName:ee,isNoteStateDisabled:T,isEditing:i,noteIndex:s,sortStrategy:U,activeTheme:R,handleMultiSelect:g,isMultiSelected:b,isMultiSelectMode:y,isGroupMember:x,showAnnotationNumbering:W,timezone:I,isTrackedChange:Y})}),[re,A,n,j,C,D,l,q,$,p,ee,S.a.getDisplayAuthor(n.Author),T,i,s,Object(be.a)(n),U,g,b,y,x,I,Y]);return o.a.createElement("div",{className:fe,onClick:function(){x||($?m(n):i||H())}},me,he,de)};Tt.propTypes=At;var jt=Tt,qt=function(e){var t=e.annotation,n=e.noteIndex,i=e.setIsEditing,l=e.textAreaValue,s=e.onTextAreaValueChange,d=e.pendingText,p=_t(Object(c.e)((function(e){return[O.a.getAutoFocusNoteOnAnnotationSelection(e),O.a.getIsMentionEnabled(e),O.a.isElementDisabled(e,E.a.INLINE_COMMENT_POPUP),O.a.isElementOpen(e,E.a.INLINE_COMMENT_POPUP),O.a.isElementOpen(e,E.a.NOTES_PANEL),O.a.getActiveDocumentViewerKey(e),O.a.isAnyCustomPanelOpen(e)]})),7),h=p[0],m=p[1],b=p[2],y=p[3],v=p[4],g=p[5],w=p[6],k=_t(Object(u.a)(),1)[0],_=Object(r.useRef)(),C=t.isReply(),A=Object(r.useContext)(f.a),T=A.setCurAnnotId,j=A.pendingAttachmentMap,q=A.deleteAttachment,N=A.clearAttachments,P=A.addAttachments,R=!b&&y&&Object(gt.k)();Object(r.useEffect)((function(){if(w||(v||y)&&_.current){var e=_.current.getEditor();t&&t instanceof window.Core.Annotations.FreeTextAnnotation&&e.setText(""),d?Object(bt.a)(e,t):e.getContents()&&setTimeout((function(){if(m){l=mt.a.getFormattedTextFromDeltas(e.getContents());var n=mt.a.extractMentionDataFromStr(l),r=n.plainTextValue;n.ids.length&&e.setText(r)}var o;R||h&&(null===(o=_.current)||void 0===o||o.focus(),t.getRichTextStyle()&&vt(t,e))}),100);var n=e.getLength()-1;if(R)return;setTimeout((function(){n&&e.setSelection(n,n)}),100)}}),[v,y,R]),Object(r.useEffect)((function(){if(C&&0===L.length){var e=t.getAttachments();P(t.Id,e)}}),[]);var I=function(){var e,r=(e=Ot().m((function e(r){var o,a,c,u,f;return Ot().w((function(e){for(;;)switch(e.n){case 0:return r.preventDefault(),o=_.current.getEditor(),l=mt.a.getFormattedTextFromDeltas(o.getContents()),Object(bt.a)(o,t),l.length>1&&"\n"===l[l.length-1]&&(l=l.slice(0,l.length-1)),t.getSkipAutoLink&&t.getSkipAutoLink()&&t.disableSkipAutoLink(),m?(a=mt.a.extractMentionDataFromStr(l),c=a.plainTextValue,u=a.ids,mt.a.extractMentionDataFromAnnot(t).mentions.forEach((function(e){c.includes(e.value)&&u.push(e.id)})),t.setCustomData("trn-mention",JSON.stringify({contents:l,ids:u})),t.setContents(c)):t.setContents(l),e.n=1,$e(t,j[t.Id]);case 1:f=t instanceof window.Core.Annotations.FreeTextAnnotation?"textChanged":"noteChanged",S.a.getAnnotationManager(g).trigger("annotationChanged",[[t],"modify",{source:f}]),t instanceof window.Core.Annotations.FreeTextAnnotation&&S.a.drawAnnotationsFromList([t]),i(!1,n),""!==l&&s(void 0,t.Id),N(t.Id);case 2:return e.a(2)}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){kt(i,r,o,a,l,"next",e)}function l(e){kt(i,r,o,a,l,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}(),M=a()("edit-content",{"reply-content":C}),L=j[t.Id]||[];return o.a.createElement("div",{className:M},C&&L.length>0&&o.a.createElement(pt,{files:L,isEditing:!0,fileDeleted:function(e){return q(t.Id,e)}}),o.a.createElement(x.a,{ref:function(e){_.current=e},value:l,onChange:function(e){return s(e,t.Id)},onSubmit:I,isReply:C,onBlur:function(e){var t,n;null!==(t=e.relatedTarget)&&void 0!==t&&null!==(n=t.getAttribute("data-element"))&&void 0!==n&&n.includes("annotationCommentButton")?e.target.focus():T(void 0)},onFocus:function(){T(t.Id)}}),o.a.createElement("div",{className:"edit-buttons"},o.a.createElement(me.a,{className:"cancel-button",label:k("action.cancel"),onClick:function(e){e.stopPropagation(),i(!1,n),s(void 0,t.Id),N(t.Id)}}),o.a.createElement(me.a,{className:"save-button".concat(l?"":" disabled"),disabled:!l,label:k("action.save"),onClick:function(e){e.stopPropagation(),I(e)}})))};qt.propTypes={noteIndex:s.a.number.isRequired,annotation:s.a.object.isRequired,setIsEditing:s.a.func.isRequired,textAreaValue:s.a.string,onTextAreaValueChange:s.a.func.isRequired,pendingText:s.a.string};var Nt=function(e,t,n){var r={fontWeight:t["font-weight"],fontStyle:t["font-style"],textDecoration:t["text-decoration"],color:t.color};return r.textDecoration&&(r.textDecoration=r.textDecoration.replace("word","underline")),o.a.createElement("span",{style:r,key:n},e)},Pt=function(e,t,n){if(!t||!e)return e;for(var r={},o=Object.keys(t).map(Number).sort((function(e,t){return e-t})),i=0;i<o.length;i++){var a=o[i]-n;if(r[a=Math.min(Math.max(a,0),e.length)]=t[o[i]],a===e.length)break}for(var l=[],s=Object.keys(r).map(Number).sort((function(e,t){return e-t})),c=1;c<s.length;c++)l.push(Nt(e.slice(s[c-1],s[c]),r[s[c-1]],"richtext_span_".concat(c)));return l},Rt=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e.length,a=e.slice(r,i),l=a.toLowerCase(),s=t.toLowerCase();n&&(n[0]=n[0]||{},n[e.length]=n[e.length]||{});var c=l.indexOf(s);if(!s.trim()||-1===c)return Pt(a,n,r);var u=[],f=[c],d=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(new RegExp("(".concat(d,")"),"gi").test(l))for(;-1!==c;)-1!==(c=l.indexOf(s,c+s.length))&&f.push(c);return f.forEach((function(e,t){0===t&&0!==e&&u.push(Pt(a.substring(0,e),n,r)),u.push(o.a.createElement("span",{className:"highlight",key:"highlight_span_".concat(t)},Pt(a.substring(e,e+s.length),n,r+e))),e+s.length<l.length&&e+s.length!==f[t+1]&&u.push(Pt(a.substring(e+s.length,f[t+1]),n,r+e+s.length))})),u};var It=jt;n(1695);function Mt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Lt(c,"_invoke",function(n,r,o){var i,l,s,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,s=e,d.n=n,a}};function p(n,r){for(l=n,s=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,l=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),l=u,s=h;(t=l<2?e:s)||!f;){i||(l?l<3?(l>1&&(d.n=-1),p(l,s)):d.n=s:d.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(f=d.n<0)?s:n.call(r,d))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Lt(t={},r,(function(){return this})),t),f=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Lt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,Lt(f,"constructor",c),Lt(c,"constructor",s),s.displayName="GeneratorFunction",Lt(c,o,"GeneratorFunction"),Lt(f),Lt(f,o,"Generator"),Lt(f,r,(function(){return this})),Lt(f,"toString",(function(){return"[object Generator]"})),(Mt=function(){return{w:i,m:d}})()}function Lt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(Lt=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var i=function(t,n){Lt(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,r)}function Dt(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function zt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Bt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ft={annotation:s.a.object.isRequired},Ht=function(e){var t=e.annotation,n=e.isUnread,i=e.onPendingReplyChange,l=zt(Object(c.e)((function(e){var n;return[O.a.getAutoFocusNoteOnAnnotationSelection(e),O.a.isDocumentReadOnly(e),O.a.isElementDisabled(e,"noteReply"),null===(n=O.a.getIsReplyDisabled(e))||void 0===n?void 0:n(t),O.a.getIsMentionEnabled(e),O.a.getIsNoteEditing(e),O.a.isElementDisabled(e,E.a.INLINE_COMMENT_POPUP),O.a.isElementOpen(e,E.a.INLINE_COMMENT_POPUP),O.a.getActiveDocumentViewerKey(e)]}),c.c),9),s=l[0],u=l[1],d=l[2],p=l[3],h=l[4],m=l[5],b=l[6],y=l[7],v=l[8],g=Object(r.useContext)(f.a),w=g.isContentEditable,_=g.isSelected,C=g.pendingReplyMap,A=g.setPendingReply,T=g.isExpandedFromSearch,j=g.scrollToSelectedAnnot,q=g.setCurAnnotId,N=g.pendingAttachmentMap,P=g.clearAttachments,R=g.deleteAttachment,I=zt(Object(r.useState)(!1),2),M=I[0],L=I[1],D=Object(c.d)(),z=Object(r.useRef)(),B=!b&&y&&Object(gt.k)();Object(xt.a)((function(){M||D(k.a.finishNoteEditing())}),[M]),Object(r.useEffect)((function(){B||m&&_&&!w&&s&&z&&z.current&&z.current.focus()}),[w,m,_,B]),Object(r.useEffect)((function(){if(!T&&j&&setTimeout((function(){z&&z.current&&s&&z.current.focus()}),100),z&&z.current){if(B)return;var e=z.current.getEditor().getLength()-1;setTimeout((function(){z.current&&z.current.editor.setSelection(e,e)}),100)}}),[]);var F=function(){var e,n=(e=Mt().m((function e(n){var r,o,i,a;return Mt().w((function(e){for(;;)switch(e.n){case 0:if(n.preventDefault(),n.stopPropagation(),r=z.current.getEditor(),(o=mt.a.getFormattedTextFromDeltas(r.getContents())).trim()){e.n=1;break}return e.a(2);case 1:if(!h){e.n=3;break}return i=mt.a.createMentionReply(t,o),Object(bt.a)(r,i),e.n=2,$e(i,N[t.Id]);case 2:S.a.addAnnotations([i],v),e.n=5;break;case 3:return a=S.a.createAnnotationReply(t,o),Object(bt.a)(r,a),e.n=4,$e(a,N[t.Id]);case 4:S.a.getAnnotationManager(v).trigger("annotationChanged",[[a],"modify",{}]);case 5:A("",t.Id),P(t.Id);case 6:return e.a(2)}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Dt(i,r,o,a,l,"next",e)}function l(e){Dt(i,r,o,a,l,"throw",e)}a(void 0)}))});return function(e){return n.apply(this,arguments)}}(),H=u||d||p,U=a()({"reply-area":!0,unread:n}),W=N[t.Id]||[];return H||!_?null:o.a.createElement("form",{onSubmit:F,className:"reply-area-container"},W.length>0&&o.a.createElement(pt,{files:W,isEditing:!0,fileDeleted:function(e){return R(t.Id,e)}}),o.a.createElement("div",{className:"reply-area-with-button"},o.a.createElement("div",{className:U,onMouseDown:function(e){return e.stopPropagation()}},o.a.createElement(x.a,{ref:function(e){z.current=e},value:C[t.Id],onChange:function(e){return function(e){A(e,t.Id),i&&i()}(e)},onSubmit:F,onBlur:function(){L(!1),q(void 0)},onFocus:function(){L(!0),q(t.Id)},isReply:!0})),o.a.createElement("div",{className:"reply-button-container"},o.a.createElement(me.a,{img:"icon-post-reply",className:"reply-button",title:"action.submit",disabled:!C[t.Id],onClick:F,isSubmitType:!0}))))};Ht.propTypes=Ft;var Ut=Ht;function Wt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Gt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Vt={groupAnnotations:s.a.array.isRequired,isMultiSelectMode:s.a.bool.isRequired},Kt=function(e){var t=e.groupAnnotations,n=e.isMultiSelectMode,i=Wt(Object(u.a)(),1)[0],l=Object(c.d)(),s=Wt(Object(r.useState)(!1),2),f=s[0],d=s[1],p=Object(c.e)((function(e){var t;return null===(t=O.a.getFeatureFlags(e))||void 0===t?void 0:t.customizableUI})),h=o.a.createElement(me.a,{onClick:function(e){e.preventDefault(),e.stopPropagation(),d(!0)},className:"text-button",ariaLabel:i("component.noteGroupSection.open"),label:i("component.noteGroupSection.open"),img:"ic_chevron_down_black_24px"}),m=o.a.createElement(me.a,{onClick:function(e){e.preventDefault(),e.stopPropagation(),d(!1)},className:"text-button",ariaLabel:i("component.noteGroupSection.close"),label:i("component.noteGroupSection.close"),img:"ic_chevron_up_black_24px"});return o.a.createElement("div",{className:a()({"group-section":!0,"modular-ui":p})},f?m:h,f&&t.map((function(e,t){return 0===t?null:o.a.createElement(me.a,{key:e.Id,className:"group-child",onClick:function(t){t.preventDefault(),t.stopPropagation(),S.a.selectAnnotation(e),S.a.jumpToAnnotation(e),l(k.a.openElement("annotationPopup"))}},o.a.createElement(It,{key:e.Id,annotation:e,isUnread:!1,isGroupMember:!0,isMultiSelectMode:n}))})))};Kt.propTypes=Vt;var $t=Kt,Yt=n(119),Zt=n(32),Xt=n(230),Qt=n(23);n(1697);function Jt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return en(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?en(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function en(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var tn=function(e){var t=e.children,n=Object(Qt.a)().querySelector("#line-connector-root"),o=document.createElement("div");return o.setAttribute("data-element",E.a.ANNOTATION_NOTE_CONNECTOR_LINE),Object(r.useEffect)((function(){return n.appendChild(o),function(){return n.removeChild(o)}}),[o,n]),Object(Yt.createPortal)(t,o)},nn={annotation:s.a.object,noteContainerRef:s.a.object,isCustomPanelOpen:s.a.bool},rn=function(e){var t=e.annotation,n=e.noteContainerRef,i=e.isCustomPanelOpen,a=Jt(Object(c.e)((function(e){return[O.a.getIsCustomUIEnabled(e),O.a.getTopHeadersHeight(e),O.a.getBottomHeadersHeight(e),O.a.getNotesPanelWidth(e),O.a.isElementOpen(e,E.a.ANNOTATION_NOTE_CONNECTOR_LINE),O.a.isElementOpen(e,E.a.NOTES_PANEL),O.a.isElementDisabled(e,E.a.ANNOTATION_NOTE_CONNECTOR_LINE),O.a.getDocumentContainerWidth(e),O.a.getDocumentContainerHeight(e),O.a.getActiveDocumentViewerKey(e)]}),c.c),10),l=a[0],s=a[1],u=a[2],f=a[3],d=a[4],p=a[5],h=a[6],m=a[7],b=a[8],y=a[9],v=Object(c.d)(),g=Jt(Object(r.useState)(0),2),w=g[0],x=g[1],_=Jt(Object(r.useState)(0),2),C=_[0],A=_[1],T=Jt(Object(r.useState)(0),2),j=T[0],q=T[1],N=Jt(Object(r.useState)(0),2),P=N[0],R=N[1],I=Jt(Object(r.useState)(0),2),M=I[0],L=I[1],D=Jt(Object(r.useState)(0),2),z=D[0],B=D[1],F=l?Zt.b:0,H=Object(Xt.d)(t,y),U=H.bottomRight,W=H.topLeft,G=Object(r.useCallback)((function(){return"Note"===t.Subject?4:15}),[t]);if(Object(r.useEffect)((function(){var e=function(){v(k.a.closeElement(E.a.ANNOTATION_NOTE_CONNECTOR_LINE))};return S.a.addEventListener("pageNumberUpdated",e,void 0,y),function(){S.a.removeEventListener("pageNumberUpdated",e,y)}}),[]),Object(r.useEffect)((function(){if(n&&n.current){var e=S.a.getScrollViewElement(y),r=e.scrollTop,o=e.scrollLeft;if(!(U&&W))return function(){v(k.a.closeElement(E.a.ANNOTATION_NOTE_CONNECTOR_LINE))};var i,a=window.isApryseWebViewerWebComponent,l=U.x-W.x,s=window.isApryseWebViewerWebComponent?Object(Qt.a)().host.clientWidth:window.innerWidth,c=(i={viewerWidth:s,annotationXPosition:W.x,annotationWidth:l,notePanelWidth:f,notePanelPadding:16,notesPanelResizeBarWidth:F,scrollLeft:o}).viewerWidth-i.annotationXPosition-i.annotationWidth-i.notePanelWidth+i.notePanelPadding+i.notesPanelResizeBarWidth+i.scrollLeft,u=function(e){var t=e.notePanelWidth,n=e.notePanelPadding,r=e.notesPanelResizeBarWidth,o=e.notesContainerTop,i=e.viewerOffsetTop,a=e.distanceToAnnotation,l=e.lineWidthRatio;return{rightHorizontalLineRightOffset:t-n-r,rightHorizontalLineTopOffset:o-i,rightHorizontalLineLength:a*(void 0===l?.75:l)}}({notePanelWidth:f,notePanelPadding:16,notesPanelResizeBarWidth:F,notesContainerTop:n.current.getBoundingClientRect().top,viewerOffsetTop:a?Object(Qt.a)().host.offsetTop:0,distanceToAnnotation:c,lineWidthRatio:.75}),d=u.rightHorizontalLineRightOffset,p=u.rightHorizontalLineTopOffset,h=u.rightHorizontalLineLength;q(d),A(p),x(h);var m=function(e){var t=e.isAnnotationNoZoom,n=e.annotationNoZoomReferencePoint,r=e.annotationHeight,o=e.notePanelWidth,i=e.notePanelPadding,a=e.notesPanelResizeBarWidth,l=e.rightHorizontalLineLength,s=e.distanceToAnnotation,c=e.annotationTopLeftY,u=e.scrollTop,f=e.annotationLineOffset,d=t&&n.x?n.x*r:0;return{leftHorizontalLineRightOffset:o-i-a+l,leftHorizontalLineTopOffset:c+r/2-u-(t&&n.y?n.y*r:0),leftHorizontalLineLength:s-l-f+d}}({isAnnotationNoZoom:t.NoZoom,annotationNoZoomReferencePoint:t.getNoZoomReferencePoint(),annotationHeight:U.y-W.y,notePanelWidth:f,notePanelPadding:16,notesPanelResizeBarWidth:F,rightHorizontalLineLength:h,distanceToAnnotation:c,annotationTopLeftY:W.y,scrollTop:r,annotationLineOffset:G()}),b=m.leftHorizontalLineRightOffset,g=m.leftHorizontalLineTopOffset,w=m.leftHorizontalLineLength;B(b),L(g),R(w)}}),[n,f,U,W,m,b]),Object(r.useEffect)((function(){var e=function(){v(k.a.closeElement(E.a.ANNOTATION_NOTE_CONNECTOR_LINE))};return S.a.addEventListener("pageNumberUpdated",e,void 0,y),function(){S.a.removeEventListener("pageNumberUpdated",e,y)}}),[v,y]),d&&(p||i)&&!h){var V=function(e){var t=e.rightHorizontalLineTop,n=e.leftHorizontalLineTop,r=e.bottomHeaderTop,o=e.topHeadersHeight,i=e.isCustomUIEnabled,a=t>n?n+2:t,l=Math.abs(t-n),s=a<o,c=a+l>r,u=s||c;return u&&i&&(s?(l=Math.abs(t-o)+2,a=o):c&&(l=Math.abs(r-t))),{verticalLineTop:a,verticalLineHeight:l,isAnnotationOffScreen:u}}({rightHorizontalLineTop:C,leftHorizontalLineTop:M,bottomHeaderTop:(window.isApryseWebViewerWebComponent?Object(Qt.a)().host.clientHeight:window.innerWidth)-u,topHeadersHeight:s,isCustomUIEnabled:l}),K=V.verticalLineTop,$=V.verticalLineHeight,Y=V.isAnnotationOffScreen;return o.a.createElement(tn,null,o.a.createElement("div",{className:"horizontalLine",style:{width:w,right:j,top:C}}),o.a.createElement("div",{className:"verticalLine",style:{height:$,top:K,right:j+w}}),o.a.createElement("div",{className:"horizontalLine",style:{width:P,right:z,top:M,visibility:Y?"hidden":"visible"}},o.a.createElement("div",{className:"arrowHead"})))}return null};rn.propTypes=nn;var on=rn,an=(n(1699),n(1639));function ln(e){return(ln="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)}function sn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return cn(c,"_invoke",function(n,r,o){var i,l,s,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,s=e,d.n=n,a}};function p(n,r){for(l=n,s=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,l=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),l=u,s=h;(t=l<2?e:s)||!f;){i||(l?l<3?(l>1&&(d.n=-1),p(l,s)):d.n=s:d.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(f=d.n<0)?s:n.call(r,d))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(cn(t={},r,(function(){return this})),t),f=c.prototype=l.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,cn(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,cn(f,"constructor",c),cn(c,"constructor",s),s.displayName="GeneratorFunction",cn(c,o,"GeneratorFunction"),cn(f),cn(f,o,"Generator"),cn(f,r,(function(){return this})),cn(f,"toString",(function(){return"[object Generator]"})),(sn=function(){return{w:i,m:d}})()}function cn(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(cn=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var i=function(t,n){cn(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,r)}function un(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function fn(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 dn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fn(Object(n),!0).forEach((function(t){pn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ln(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ln(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ln(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return mn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var bn={annotation:s.a.object.isRequired,isMultiSelected:s.a.bool,isMultiSelectMode:s.a.bool,isInNotesPanel:s.a.bool,handleMultiSelect:s.a.func},yn=0,vn=function(e){var t=e.annotation,n=e.isMultiSelected,i=e.isMultiSelectMode,l=e.isInNotesPanel,s=e.handleMultiSelect,d=e.isCustomPanelOpen,p=e.shouldHideConnectorLine,h=Object(r.useContext)(f.a),m=h.isSelected,b=h.resize,y=h.pendingEditTextMap,v=h.isContentEditable,g=h.isDocumentReadOnly,w=h.isExpandedFromSearch,x=h.setCurAnnotId,_=Object(r.useRef)(),C=Object(r.useRef)(),A=hn(Object(r.useState)({}),2),T=A[0],j=A[1],q=Object(r.useRef)([]),N=Object(c.d)(),P=hn(Object(u.a)(),1)[0],R=new Set,I=hn(Object(c.e)((function(e){return[O.a.getNoteTransformFunction(e),O.a.getCustomNoteSelectionFunction(e),O.a.getUnreadAnnotationIdSet(e),O.a.isCommentThreadExpansionEnabled(e),O.a.isRightClickAnnotationPopupEnabled(e),O.a.getActiveDocumentViewerKey(e),O.a.getIsOfficeEditorMode(e),O.a.getOfficeEditorEditMode(e)]}),c.c),8),M=I[0],L=I[1],D=I[2],z=I[3],B=I[4],F=I[5],H=I[6],U=I[7],W=Object(r.useCallback)((function(e,t){j((function(n){return dn(dn({},n),{},pn({},t,e))}))}),[j]),G=t.getReplies().sort((function(e,t){return e.DateCreated-t.DateCreated}));G.filter((function(e){return D.has(e.Id)})).forEach((function(e){return R.add(e.Id)})),Object(r.useEffect)((function(){var e=function(e,t){"delete"===t&&e.forEach((function(e){D.has(e.Id)&&N(k.a.setAnnotationReadState({isRead:!0,annotationId:e.Id}))}))};return S.a.addEventListener("annotationChanged",e,void 0,F),function(){S.a.removeEventListener("annotationChanged",e,F)}}),[D]),Object(r.useEffect)((function(){var e=C.current,t=_.current.getBoundingClientRect().height;C.current=t,e&&Math.round(e)!==Math.round(t)&&b()})),Object(r.useEffect)((function(){if(M){var e=Object(Qt.a)().querySelectorAll(".NotesPanel")[0];q.current.forEach((function(t){var n=e.querySelector("[data-webviewer-custom-element=".concat(t,"]"));n&&n.parentNode.removeChild(n)})),q.current=[];var n={annotation:t,isSelected:m};M(_.current,n,(function(){var e,t=(e=document).createElement.apply(e,arguments),n="custom-element-".concat(yn);return yn++,q.current.push(n),t.setAttribute("data-webviewer-custom-element",n),t.addEventListener("mousedown",(function(e){e.stopPropagation()})),t}))}})),Object(r.useEffect)((function(){""!==y[t.Id]&&v&&!g&&W(!0,0)}),[g,v,W,t,i]),Object(xt.a)((function(){!g&&v||W(!1,0)}),[g,v,W]);var V=function(){var e,r=(e=sn().m((function e(r){var o;return sn().w((function(e){for(;;)switch(e.n){case 0:if(r&&r.stopPropagation(),!i){e.n=1;break}return s(!n),e.a(2);case 1:if(D.has(t.Id)&&N(k.a.setAnnotationReadState({isRead:!0,annotationId:t.Id})),L&&L(t),m||(S.a.deselectAllAnnotations(F),setTimeout((function(){return N(k.a.openElement(E.a.ANNOTATION_NOTE_CONNECTOR_LINE))}),300)),!l||H&&U===xe.z.PREVIEW){e.n=3;break}if(S.a.selectAnnotation(t,F),x(t.Id),S.a.jumpToAnnotation(t,F),B||N(k.a.openElement(E.a.ANNOTATION_POPUP)),!H){e.n=3;break}return o=t.getCustomData(xe.w),e.n=2,S.a.getOfficeEditor().moveCursorToTrackedChange(o);case 2:S.a.getOfficeEditor().freezeMainCursor();case 3:return e.a(2)}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){un(i,r,o,a,l,"next",e)}function l(e){un(i,r,o,a,l,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}(),K=R.size>0,$=a()({Note:!0,expanded:m,"is-multi-selected":n,unread:D.has(t.Id)||K,disabled:H&&U===xe.z.PREVIEW}),Y=a()({replies:!0,hidden:!m});Object(r.useEffect)((function(){i||G.forEach((function(e,t){var n=y[e.Id];""!==n&&void 0!==n&&m&&W(!0,1+t)}))}),[m,i]),Object(r.useEffect)((function(){i&&W(!1,0)}),[i]);var Z=!Object.values(T).some((function(e){return e})),X=function(e){R.has(e.Id)&&(N(k.a.setAnnotationReadState({isRead:!0,annotationId:e.Id})),S.a.getAnnotationManager(F).selectAnnotation(e))},Q=function(){if(R.size>0){var e=G.filter((function(e){return R.has(e.Id)}));S.a.getAnnotationManager(F).selectAnnotations(e),e.forEach((function(e){return N(k.a.setAnnotationReadState({isRead:!0,annotationId:e.Id}))}))}},J=S.a.getGroupAnnotations(t,F),ee=J.length>1,te=Object(wt.g)(t)===wt.c.TRACKED_CHANGE,ne=G.length>0?G[G.length-1].Id:null,re=Object(an.a)(S.a,t),oe=m&&(l||d)&&!p&&re;return o.a.createElement("div",{ref:_,className:$,id:"note_".concat(t.Id)},o.a.createElement(me.a,{className:"note-button",onClick:function(e){return V(e)},ariaLabelledby:"note_".concat(t.Id),ariaCurrent:m,dataElement:"expandNoteButton"}),o.a.createElement(It,{noteIndex:0,annotation:t,setIsEditing:W,handleNoteClick:V,isEditing:T[0],isNonReplyNoteRead:!D.has(t.Id),isUnread:D.has(t.Id)||K,handleMultiSelect:function(e){x(t.Id),s(e)},isMultiSelected:n,isMultiSelectMode:i}),(m||w||z)&&!te&&o.a.createElement(o.a.Fragment,null,G.length>0&&o.a.createElement("div",{className:Y},K&&o.a.createElement(me.a,{dataElement:"markAllReadButton",className:"mark-all-read-button",label:P("action.markAllRead"),onClick:Q}),G.map((function(e,t){return o.a.createElement("div",{className:"reply",id:"note_reply_".concat(e.Id),key:"note_reply_".concat(e.Id)},o.a.createElement(It,{noteIndex:t+1,key:e.Id,annotation:e,setIsEditing:W,isEditing:T[t+1],onReplyClicked:X,isUnread:D.has(e.Id),handleMultiSelect:s,isMultiSelected:n,isMultiSelectMode:i,handleNoteClick:V}))}))),ee&&o.a.createElement($t,{groupAnnotations:J,isMultiSelectMode:i}),Z&&!i&&o.a.createElement(Ut,{isUnread:ne&&D.has(ne),onPendingReplyChange:Q,annotation:t})),oe&&o.a.createElement(on,{annotation:t,noteContainerRef:_,isCustomPanelOpen:d}))};vn.propTypes=bn;var gn=vn;t.a=gn},1710:function(e,t,n){"use strict";function r(e,t){if(Array.prototype.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function o(e,t){for(var n=e.length-1;n>=0;n--)!0===t(e[n])&&e.splice(n,1)}function i(e){throw new Error("Unhandled case for value: '".concat(e,"'"))}var a=function(){function e(e){void 0===e&&(e={}),this.tagName="",this.attrs={},this.innerHTML="",this.whitespaceRegex=/\s+/,this.tagName=e.tagName||"",this.attrs=e.attrs||{},this.innerHTML=e.innerHtml||e.innerHTML||""}return e.prototype.setTagName=function(e){return this.tagName=e,this},e.prototype.getTagName=function(){return this.tagName||""},e.prototype.setAttr=function(e,t){return this.getAttrs()[e]=t,this},e.prototype.getAttr=function(e){return this.getAttrs()[e]},e.prototype.setAttrs=function(e){return Object.assign(this.getAttrs(),e),this},e.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},e.prototype.setClass=function(e){return this.setAttr("class",e)},e.prototype.addClass=function(e){for(var t,n=this.getClass(),o=this.whitespaceRegex,i=n?n.split(o):[],a=e.split(o);t=a.shift();)-1===r(i,t)&&i.push(t);return this.getAttrs().class=i.join(" "),this},e.prototype.removeClass=function(e){for(var t,n=this.getClass(),o=this.whitespaceRegex,i=n?n.split(o):[],a=e.split(o);i.length&&(t=a.shift());){var l=r(i,t);-1!==l&&i.splice(l,1)}return this.getAttrs().class=i.join(" "),this},e.prototype.getClass=function(){return this.getAttrs().class||""},e.prototype.hasClass=function(e){return-1!==(" "+this.getClass()+" ").indexOf(" "+e+" ")},e.prototype.setInnerHTML=function(e){return this.innerHTML=e,this},e.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)},e.prototype.getInnerHTML=function(){return this.innerHTML||""},e.prototype.getInnerHtml=function(){return this.getInnerHTML()},e.prototype.toAnchorString=function(){var e=this.getTagName(),t=this.buildAttrsStr();return["<",e,t=t?" "+t:"",">",this.getInnerHtml(),"</",e,">"].join("")},e.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var e=this.getAttrs(),t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n+'="'+e[n]+'"');return t.join(" ")},e}();var l,s=function(){function e(e){void 0===e&&(e={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=e.newWindow||!1,this.truncate=e.truncate||{},this.className=e.className||""}return e.prototype.build=function(e){return new a({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},e.prototype.createAttrs=function(e){var t={href:e.getAnchorHref()},n=this.createCssClass(e);return n&&(t.class=n),this.newWindow&&(t.target="_blank",t.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<e.getAnchorText().length&&(t.title=e.getAnchorHref()),t},e.prototype.createCssClass=function(e){var t=this.className;if(t){for(var n=[t],r=e.getCssClassSuffixes(),o=0,i=r.length;o<i;o++)n.push(t+"-"+r[o]);return n.join(" ")}return""},e.prototype.processAnchorText=function(e){return e=this.doTruncate(e)},e.prototype.doTruncate=function(e){var t=this.truncate;if(!t||!t.length)return e;var n=t.length,r=t.location;return"smart"===r?function(e,t,n){var r,o;null==n?(n="&hellip;",o=3,r=8):(o=n.length,r=n.length);var i=function(e){var t="";return e.scheme&&e.host&&(t+=e.scheme+"://"),e.host&&(t+=e.host),e.path&&(t+="/"+e.path),e.query&&(t+="?"+e.query),e.fragment&&(t+="#"+e.fragment),t},a=function(e,t){var r=t/2,o=Math.ceil(r),i=-1*Math.floor(r),a="";return i<0&&(a=e.substr(i)),e.substr(0,o)+n+a};if(e.length<=t)return e;var l=t-o,s=function(e){var t={},n=e,r=n.match(/^([a-z]+):\/\//i);return r&&(t.scheme=r[1],n=n.substr(r[0].length)),(r=n.match(/^(.*?)(?=(\?|#|\/|$))/i))&&(t.host=r[1],n=n.substr(r[0].length)),(r=n.match(/^\/(.*?)(?=(\?|#|$))/i))&&(t.path=r[1],n=n.substr(r[0].length)),(r=n.match(/^\?(.*?)(?=(#|$))/i))&&(t.query=r[1],n=n.substr(r[0].length)),(r=n.match(/^#(.*?)$/i))&&(t.fragment=r[1]),t}(e);if(s.query){var c=s.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);c&&(s.query=s.query.substr(0,c[1].length),e=i(s))}if(e.length<=t)return e;if(s.host&&(s.host=s.host.replace(/^www\./,""),e=i(s)),e.length<=t)return e;var u="";if(s.host&&(u+=s.host),u.length>=l)return s.host.length==t?(s.host.substr(0,t-o)+n).substr(0,l+r):a(u,l).substr(0,l+r);var f="";if(s.path&&(f+="/"+s.path),s.query&&(f+="?"+s.query),f){if((u+f).length>=l)return(u+f).length==t?(u+f).substr(0,t):(u+a(f,l-u.length)).substr(0,l+r);u+=f}if(s.fragment){var d="#"+s.fragment;if((u+d).length>=l)return(u+d).length==t?(u+d).substr(0,t):(u+a(d,l-u.length)).substr(0,l+r);u+=d}if(s.scheme&&s.host){var p=s.scheme+"://";if((u+p).length<l)return(p+u).substr(0,t)}if(u.length<=t)return u;var h="";return l>0&&(h=u.substr(-1*Math.floor(l/2))),(u.substr(0,Math.ceil(l/2))+n+h).substr(0,l+r)}(e,n):"middle"===r?function(e,t,n){if(e.length<=t)return e;var r,o;null==n?(n="&hellip;",r=8,o=3):(r=n.length,o=n.length);var i=t-o,a="";return i>0&&(a=e.substr(-1*Math.floor(i/2))),(e.substr(0,Math.ceil(i/2))+n+a).substr(0,i+r)}(e,n):function(e,t,n){return function(e,t,n){var r;return e.length>t&&(null==n?(n="&hellip;",r=3):r=n.length,e=e.substring(0,t-r)+n),e}(e,t,n)}(e,n)},e}(),c=function(){function e(e){this.__jsduckDummyDocProp=null,this.matchedText="",this.offset=0,this.tagBuilder=e.tagBuilder,this.matchedText=e.matchedText,this.offset=e.offset}return e.prototype.getMatchedText=function(){return this.matchedText},e.prototype.setOffset=function(e){this.offset=e},e.prototype.getOffset=function(){return this.offset},e.prototype.getCssClassSuffixes=function(){return[this.getType()]},e.prototype.buildTag=function(){return this.tagBuilder.build(this)},e}(),u=n(74),f=function(e){function t(t){var n=e.call(this,t)||this;return n.email="",n.email=t.email,n}return Object(u.b)(t,e),t.prototype.getType=function(){return"email"},t.prototype.getEmail=function(){return this.email},t.prototype.getAnchorHref=function(){return"mailto:"+this.email},t.prototype.getAnchorText=function(){return this.email},t}(c),d=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="",n.hashtag="",n.serviceName=t.serviceName,n.hashtag=t.hashtag,n}return Object(u.b)(t,e),t.prototype.getType=function(){return"hashtag"},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getHashtag=function(){return this.hashtag},t.prototype.getAnchorHref=function(){var e=this.serviceName,t=this.hashtag;switch(e){case"twitter":return"https://twitter.com/hashtag/"+t;case"facebook":return"https://www.facebook.com/hashtag/"+t;case"instagram":return"https://instagram.com/explore/tags/"+t;case"tiktok":return"https://www.tiktok.com/tag/"+t;default:throw new Error("Unknown service name to point hashtag to: "+e)}},t.prototype.getAnchorText=function(){return"#"+this.hashtag},t}(c),p=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="twitter",n.mention="",n.mention=t.mention,n.serviceName=t.serviceName,n}return Object(u.b)(t,e),t.prototype.getType=function(){return"mention"},t.prototype.getMention=function(){return this.mention},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getAnchorHref=function(){switch(this.serviceName){case"twitter":return"https://twitter.com/"+this.mention;case"instagram":return"https://instagram.com/"+this.mention;case"soundcloud":return"https://soundcloud.com/"+this.mention;case"tiktok":return"https://www.tiktok.com/@"+this.mention;default:throw new Error("Unknown service name to point mention to: "+this.serviceName)}},t.prototype.getAnchorText=function(){return"@"+this.mention},t.prototype.getCssClassSuffixes=function(){var t=e.prototype.getCssClassSuffixes.call(this),n=this.getServiceName();return n&&t.push(n),t},t}(c),h=function(e){function t(t){var n=e.call(this,t)||this;return n.number="",n.plusSign=!1,n.number=t.number,n.plusSign=t.plusSign,n}return Object(u.b)(t,e),t.prototype.getType=function(){return"phone"},t.prototype.getPhoneNumber=function(){return this.number},t.prototype.getNumber=function(){return this.getPhoneNumber()},t.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},t.prototype.getAnchorText=function(){return this.matchedText},t}(c),m=function(e){function t(t){var n=e.call(this,t)||this;return n.url="",n.urlMatchType="scheme",n.protocolUrlMatch=!1,n.protocolRelativeMatch=!1,n.stripPrefix={scheme:!0,www:!0},n.stripTrailingSlash=!0,n.decodePercentEncoding=!0,n.schemePrefixRegex=/^(https?:\/\/)?/i,n.wwwPrefixRegex=/^(https?:\/\/)?(www\.)?/i,n.protocolRelativeRegex=/^\/\//,n.protocolPrepended=!1,n.urlMatchType=t.urlMatchType,n.url=t.url,n.protocolUrlMatch=t.protocolUrlMatch,n.protocolRelativeMatch=t.protocolRelativeMatch,n.stripPrefix=t.stripPrefix,n.stripTrailingSlash=t.stripTrailingSlash,n.decodePercentEncoding=t.decodePercentEncoding,n}return Object(u.b)(t,e),t.prototype.getType=function(){return"url"},t.prototype.getUrlMatchType=function(){return this.urlMatchType},t.prototype.getUrl=function(){var e=this.url;return this.protocolRelativeMatch||this.protocolUrlMatch||this.protocolPrepended||(e=this.url="http://"+e,this.protocolPrepended=!0),e},t.prototype.getAnchorHref=function(){return this.getUrl().replace(/&amp;/g,"&")},t.prototype.getAnchorText=function(){var e=this.getMatchedText();return this.protocolRelativeMatch&&(e=this.stripProtocolRelativePrefix(e)),this.stripPrefix.scheme&&(e=this.stripSchemePrefix(e)),this.stripPrefix.www&&(e=this.stripWwwPrefix(e)),this.stripTrailingSlash&&(e=this.removeTrailingSlash(e)),this.decodePercentEncoding&&(e=this.removePercentEncoding(e)),e},t.prototype.stripSchemePrefix=function(e){return e.replace(this.schemePrefixRegex,"")},t.prototype.stripWwwPrefix=function(e){return e.replace(this.wwwPrefixRegex,"$1")},t.prototype.stripProtocolRelativePrefix=function(e){return e.replace(this.protocolRelativeRegex,"")},t.prototype.removeTrailingSlash=function(e){return"/"===e.charAt(e.length-1)&&(e=e.slice(0,-1)),e},t.prototype.removePercentEncoding=function(e){var t=e.replace(/%22/gi,"&quot;").replace(/%26/gi,"&amp;").replace(/%27/gi,"&#39;").replace(/%3C/gi,"&lt;").replace(/%3E/gi,"&gt;");try{return decodeURIComponent(t)}catch(e){return t}},t}(c),b=function(e){this.__jsduckDummyDocProp=null,this.tagBuilder=e.tagBuilder},y=/[A-Za-z]/,v=/[\d]/,g=/[\D]/,w=/\s/,x=/['"]/,S=/[\x00-\x1F\x7F]/,O=/A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC/.source,E=O+/\u2700-\u27bf\udde6-\uddff\ud800-\udbff\udc00-\udfff\ufe0e\ufe0f\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0\ud83c\udffb-\udfff\u200d\u3299\u3297\u303d\u3030\u24c2\ud83c\udd70-\udd71\udd7e-\udd7f\udd8e\udd91-\udd9a\udde6-\uddff\ude01-\ude02\ude1a\ude2f\ude32-\ude3a\ude50-\ude51\u203c\u2049\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe\u00a9\u00ae\u2122\u2139\udc04\u2600-\u26FF\u2b05\u2b06\u2b07\u2b1b\u2b1c\u2b50\u2b55\u231a\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa\udccf\u2935\u2934\u2190-\u21ff/.source+/\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D4-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F/.source,k=/0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/.source,_=E+k,C=E+k,A="(?:["+k+"]{1,3}\\.){3}["+k+"]{1,3}",T="["+C+"](?:["+C+"\\-]{0,61}["+C+"])?",j=function(e){return"(?=("+T+"))\\"+e},q=function(e){return"(?:"+j(e)+"(?:\\."+j(e+1)+"){0,126}|"+A+")"},N=(new RegExp("["+C+".\\-]*["+C+"\\-]"),new RegExp("[".concat(C,"]"))),P=/(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--3oq18vl8pn36a|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|afamilycompany|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|travelchannel|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|swiftcover|tatamotors|technology|university|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|scjohnson|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|موريتانيا|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|budapest|builders|business|capetown|catering|catholic|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|etisalat|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|اتصالات|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|abarth|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glade|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|lixil|loans|locus|lotte|lotto|macys|mango|media|miami|money|movie|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|ישראל|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|adac|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|duck|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|raid|read|reit|rent|rest|rich|rmit|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|アマゾン|グーグル|クラウド|ポイント|大众汽车|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceo|cfa|cfd|com|cpa|crs|csc|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|off|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|qvc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ລາວ|ストア|セール|みんな|中文网|亚马逊|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/,R=new RegExp("[".concat(C,"!#$%&'*+/=?^_`{|}~-]")),I=new RegExp("^".concat(P.source,"$")),M=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.localPartCharRegex=R,t.strictTldRegex=I,t}return Object(u.b)(t,e),t.prototype.parseMatches=function(e){for(var t=this.tagBuilder,n=this.localPartCharRegex,r=this.strictTldRegex,o=[],a=e.length,l=new L,s={m:"a",a:"i",i:"l",l:"t",t:"o",o:":"},c=0,d=0,p=l;c<a;){var h=e.charAt(c);switch(d){case 0:m(h);break;case 1:b(e.charAt(c-1),h);break;case 2:y(h);break;case 3:v(h);break;case 4:g(h);break;case 5:w(h);break;case 6:x(h);break;case 7:S(h);break;default:i(d)}c++}return k(),o;function m(e){"m"===e?O(1):n.test(e)&&O()}function b(e,t){":"===e?n.test(t)?(d=2,p=new L(Object(u.a)(Object(u.a)({},p),{hasMailtoPrefix:!0}))):E():s[e]===t||(n.test(t)?d=2:"."===t?d=3:"@"===t?d=4:E())}function y(e){"."===e?d=3:"@"===e?d=4:n.test(e)||E()}function v(e){"."===e||"@"===e?E():n.test(e)?d=2:E()}function g(e){N.test(e)?d=5:E()}function w(e){"."===e?d=7:"-"===e?d=6:N.test(e)||k()}function x(e){"-"===e||"."===e?k():N.test(e)?d=5:k()}function S(e){"."===e||"-"===e?k():N.test(e)?(d=5,p=new L(Object(u.a)(Object(u.a)({},p),{hasDomainDot:!0}))):k()}function O(e){void 0===e&&(e=2),d=e,p=new L({idx:c})}function E(){d=0,p=l}function k(){if(p.hasDomainDot){var n=e.slice(p.idx,c);/[-.]$/.test(n)&&(n=n.slice(0,-1));var i=p.hasMailtoPrefix?n.slice("mailto:".length):n;(function(e){var t=(e.split(".").pop()||"").toLowerCase();return r.test(t)})(i)&&o.push(new f({tagBuilder:t,matchedText:n,offset:p.idx,email:i}))}E()}},t}(b),L=function(e){void 0===e&&(e={}),this.idx=void 0!==e.idx?e.idx:-1,this.hasMailtoPrefix=!!e.hasMailtoPrefix,this.hasDomainDot=!!e.hasDomainDot},D=function(){function e(){}return e.isValid=function(e,t){return!(t&&!this.isValidUriScheme(t)||this.urlMatchDoesNotHaveProtocolOrDot(e,t)||this.urlMatchDoesNotHaveAtLeastOneWordChar(e,t)&&!this.isValidIpAddress(e)||this.containsMultipleDots(e))},e.isValidIpAddress=function(e){var t=new RegExp(this.hasFullProtocolRegex.source+this.ipRegex.source);return null!==e.match(t)},e.containsMultipleDots=function(e){var t=e;return this.hasFullProtocolRegex.test(e)&&(t=e.split("://")[1]),t.split("/")[0].indexOf("..")>-1},e.isValidUriScheme=function(e){var t=e.match(this.uriSchemeRegex),n=t&&t[0].toLowerCase();return"javascript:"!==n&&"vbscript:"!==n},e.urlMatchDoesNotHaveProtocolOrDot=function(e,t){return!(!e||t&&this.hasFullProtocolRegex.test(t)||-1!==e.indexOf("."))},e.urlMatchDoesNotHaveAtLeastOneWordChar=function(e,t){return!(!e||!t)&&(!this.hasFullProtocolRegex.test(t)&&!this.hasWordCharAfterProtocolRegex.test(e))},e.hasFullProtocolRegex=/^[A-Za-z][-.+A-Za-z0-9]*:\/\//,e.uriSchemeRegex=/^[A-Za-z][-.+A-Za-z0-9]*:/,e.hasWordCharAfterProtocolRegex=new RegExp(":[^\\s]*?["+O+"]"),e.ipRegex=/[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/,e}(),z=(l=new RegExp("[/?#](?:["+C+"\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*["+C+"\\-+&@#/%=~_()|'$*\\[\\]{}✓])?"),new RegExp(["(?:","(",/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/.source,q(2),")","|","(","(//)?",/(?:www\.)/.source,q(6),")","|","(","(//)?",q(10)+"\\.",P.source,"(?![-"+_+"])",")",")","(?::[0-9]+)?","(?:"+l.source+")?"].join(""),"gi")),B=new RegExp("["+C+"]"),F=function(e){function t(t){var n=e.call(this,t)||this;return n.stripPrefix={scheme:!0,www:!0},n.stripTrailingSlash=!0,n.decodePercentEncoding=!0,n.matcherRegex=z,n.wordCharRegExp=B,n.stripPrefix=t.stripPrefix,n.stripTrailingSlash=t.stripTrailingSlash,n.decodePercentEncoding=t.decodePercentEncoding,n}return Object(u.b)(t,e),t.prototype.parseMatches=function(e){for(var t,n=this.matcherRegex,r=this.stripPrefix,o=this.stripTrailingSlash,i=this.decodePercentEncoding,a=this.tagBuilder,l=[],s=function(){var n=t[0],s=t[1],u=t[4],f=t[5],d=t[9],p=t.index,h=f||d,b=e.charAt(p-1);if(!D.isValid(n,s))return"continue";if(p>0&&"@"===b)return"continue";if(p>0&&h&&c.wordCharRegExp.test(b))return"continue";if(/\?$/.test(n)&&(n=n.substr(0,n.length-1)),c.matchHasUnbalancedClosingParen(n))n=n.substr(0,n.length-1);else{var y=c.matchHasInvalidCharAfterTld(n,s);y>-1&&(n=n.substr(0,y))}var v=["http://","https://"].find((function(e){return!!s&&-1!==s.indexOf(e)}));if(v){var g=n.indexOf(v);n=n.substr(g),s=s.substr(g),p+=g}var w=s?"scheme":u?"www":"tld",x=!!s;l.push(new m({tagBuilder:a,matchedText:n,offset:p,urlMatchType:w,url:n,protocolUrlMatch:x,protocolRelativeMatch:!!h,stripPrefix:r,stripTrailingSlash:o,decodePercentEncoding:i}))},c=this;null!==(t=n.exec(e));)s();return l},t.prototype.matchHasUnbalancedClosingParen=function(e){var t,n=e.charAt(e.length-1);if(")"===n)t="(";else if("]"===n)t="[";else{if("}"!==n)return!1;t="{"}for(var r=0,o=0,i=e.length-1;o<i;o++){var a=e.charAt(o);a===t?r++:a===n&&(r=Math.max(r-1,0))}return 0===r},t.prototype.matchHasInvalidCharAfterTld=function(e,t){if(!e)return-1;var n=0;t&&(n=e.indexOf(":"),e=e.slice(n));var r=new RegExp("^((.?//)?[-."+C+"]*[-"+C+"]\\.[-"+C+"]+)").exec(e);return null===r?-1:(n+=r[1].length,e=e.slice(r[1].length),/^[^-.A-Za-z0-9:\/?#]/.test(e)?n:-1)},t}(b),H=new RegExp("#[_".concat(C,"]{1,139}(?![_").concat(C,"])"),"g"),U=new RegExp("[^"+C+"]"),W=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="twitter",n.matcherRegex=H,n.nonWordCharRegex=U,n.serviceName=t.serviceName,n}return Object(u.b)(t,e),t.prototype.parseMatches=function(e){for(var t,n=this.matcherRegex,r=this.nonWordCharRegex,o=this.serviceName,i=this.tagBuilder,a=[];null!==(t=n.exec(e));){var l=t.index,s=e.charAt(l-1);if(0===l||r.test(s)){var c=t[0],u=t[0].slice(1);a.push(new d({tagBuilder:i,matchedText:c,offset:l,serviceName:o,hashtag:u}))}}return a},t}(b),G=new RegExp("".concat(/(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*/.source,"|").concat(/(0([1-9]{1}-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/.source),"g"),V=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.matcherRegex=G,t}return Object(u.b)(t,e),t.prototype.parseMatches=function(e){for(var t,n=this.matcherRegex,r=this.tagBuilder,o=[];null!==(t=n.exec(e));){var i=t[0],a=i.replace(/[^0-9,;#]/g,""),l=!(!t[1]&&!t[2]),s=0==t.index?"":e.substr(t.index-1,1),c=e.substr(t.index+i.length,1),u=!s.match(/\d/)&&!c.match(/\d/);this.testMatch(t[3])&&this.testMatch(i)&&u&&o.push(new h({tagBuilder:r,matchedText:i,offset:t.index,number:a,plusSign:l}))}return o},t.prototype.testMatch=function(e){return g.test(e)},t}(b),K=new RegExp("@[_".concat(C,"]{1,50}(?![_").concat(C,"])"),"g"),$=new RegExp("@[_.".concat(C,"]{1,30}(?![_").concat(C,"])"),"g"),Y=new RegExp("@[-_.".concat(C,"]{1,50}(?![-_").concat(C,"])"),"g"),Z=new RegExp("@[_.".concat(C,"]{1,23}[_").concat(C,"](?![_").concat(C,"])"),"g"),X=new RegExp("[^"+C+"]"),Q=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="twitter",n.matcherRegexes={twitter:K,instagram:$,soundcloud:Y,tiktok:Z},n.nonWordCharRegex=X,n.serviceName=t.serviceName,n}return Object(u.b)(t,e),t.prototype.parseMatches=function(e){var t,n=this.serviceName,r=this.matcherRegexes[this.serviceName],o=this.nonWordCharRegex,i=this.tagBuilder,a=[];if(!r)return a;for(;null!==(t=r.exec(e));){var l=t.index,s=e.charAt(l-1);if(0===l||o.test(s)){var c=t[0].replace(/\.+$/g,""),u=c.slice(1);a.push(new p({tagBuilder:i,matchedText:c,offset:l,serviceName:n,mention:u}))}}return a},t}(b);function J(e,t){for(var n,r=t.onOpenTag,o=t.onCloseTag,a=t.onText,l=t.onComment,s=t.onDoctype,c=new ee,f=0,d=e.length,p=0,h=0,m=c;f<d;){var b=e.charAt(f);switch(p){case 0:g(b);break;case 1:O(b);break;case 2:k(b);break;case 3:E(b);break;case 4:_(b);break;case 5:C(b);break;case 6:A(b);break;case 7:T(b);break;case 8:j(b);break;case 9:q(b);break;case 10:N(b);break;case 11:P(b);break;case 12:R(b);break;case 13:I(b);break;case 14:M(b);break;case 15:L(b);break;case 16:D(b);break;case 17:z(b);break;case 18:B(b);break;case 19:F(b);break;case 20:H(b);break;default:i(p)}f++}function g(e){"<"===e&&W()}function O(e){"!"===e?p=13:"/"===e?(p=2,m=new ee(Object(u.a)(Object(u.a)({},m),{isClosing:!0}))):"<"===e?W():y.test(e)?(p=3,m=new ee(Object(u.a)(Object(u.a)({},m),{isOpening:!0}))):(p=0,m=c)}function E(e){w.test(e)?(m=new ee(Object(u.a)(Object(u.a)({},m),{name:V()})),p=4):"<"===e?W():"/"===e?(m=new ee(Object(u.a)(Object(u.a)({},m),{name:V()})),p=12):">"===e?(m=new ee(Object(u.a)(Object(u.a)({},m),{name:V()})),G()):y.test(e)||v.test(e)||":"===e||U()}function k(e){">"===e?U():y.test(e)?p=3:U()}function _(e){w.test(e)||("/"===e?p=12:">"===e?G():"<"===e?W():"="===e||x.test(e)||S.test(e)?U():p=5)}function C(e){w.test(e)?p=6:"/"===e?p=12:"="===e?p=7:">"===e?G():"<"===e?W():x.test(e)&&U()}function A(e){w.test(e)||("/"===e?p=12:"="===e?p=7:">"===e?G():"<"===e?W():x.test(e)?U():p=5)}function T(e){w.test(e)||('"'===e?p=8:"'"===e?p=9:/[>=`]/.test(e)?U():"<"===e?W():p=10)}function j(e){'"'===e&&(p=11)}function q(e){"'"===e&&(p=11)}function N(e){w.test(e)?p=4:">"===e?G():"<"===e&&W()}function P(e){w.test(e)?p=4:"/"===e?p=12:">"===e?G():"<"===e?W():(p=4,f--)}function R(e){">"===e?(m=new ee(Object(u.a)(Object(u.a)({},m),{isClosing:!0})),G()):p=4}function I(t){"--"===e.substr(f,2)?(f+=2,m=new ee(Object(u.a)(Object(u.a)({},m),{type:"comment"})),p=14):"DOCTYPE"===e.substr(f,7).toUpperCase()?(f+=7,m=new ee(Object(u.a)(Object(u.a)({},m),{type:"doctype"})),p=20):U()}function M(e){"-"===e?p=15:">"===e?U():p=16}function L(e){"-"===e?p=18:">"===e?U():p=16}function D(e){"-"===e&&(p=17)}function z(e){p="-"===e?18:16}function B(e){">"===e?G():"!"===e?p=19:"-"===e||(p=16)}function F(e){"-"===e?p=17:">"===e?G():p=16}function H(e){">"===e?G():"<"===e&&W()}function U(){p=0,m=c}function W(){p=1,m=new ee({idx:f})}function G(){var t=e.slice(h,m.idx);t&&a(t,h),"comment"===m.type?l(m.idx):"doctype"===m.type?s(m.idx):(m.isOpening&&r(m.name,m.idx),m.isClosing&&o(m.name,m.idx)),U(),h=f+1}function V(){var t=m.idx+(m.isClosing?2:1);return e.slice(t,f).toLowerCase()}h<f&&(n=e.slice(h,f),a(n,h),h=f+1)}var ee=function(e){void 0===e&&(e={}),this.idx=void 0!==e.idx?e.idx:-1,this.type=e.type||"tag",this.name=e.name||"",this.isOpening=!!e.isOpening,this.isClosing=!!e.isClosing},te=function(){function e(t){void 0===t&&(t={}),this.version=e.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:"end"},this.className="",this.replaceFn=null,this.context=void 0,this.sanitizeHtml=!1,this.matchers=null,this.tagBuilder=null,this.urls=this.normalizeUrlsCfg(t.urls),this.email="boolean"==typeof t.email?t.email:this.email,this.phone="boolean"==typeof t.phone?t.phone:this.phone,this.hashtag=t.hashtag||this.hashtag,this.mention=t.mention||this.mention,this.newWindow="boolean"==typeof t.newWindow?t.newWindow:this.newWindow,this.stripPrefix=this.normalizeStripPrefixCfg(t.stripPrefix),this.stripTrailingSlash="boolean"==typeof t.stripTrailingSlash?t.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding="boolean"==typeof t.decodePercentEncoding?t.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=t.sanitizeHtml||!1;var n=this.mention;if(!1!==n&&-1===["twitter","instagram","soundcloud","tiktok"].indexOf(n))throw new Error("invalid `mention` cfg '".concat(n,"' - see docs"));var r=this.hashtag;if(!1!==r&&-1===["twitter","facebook","instagram","tiktok"].indexOf(r))throw new Error("invalid `hashtag` cfg '".concat(r,"' - see docs"));this.truncate=this.normalizeTruncateCfg(t.truncate),this.className=t.className||this.className,this.replaceFn=t.replaceFn||this.replaceFn,this.context=t.context||this}return e.link=function(t,n){return new e(n).link(t)},e.parse=function(t,n){return new e(n).parse(t)},e.prototype.normalizeUrlsCfg=function(e){return null==e&&(e=!0),"boolean"==typeof e?{schemeMatches:e,wwwMatches:e,tldMatches:e}:{schemeMatches:"boolean"!=typeof e.schemeMatches||e.schemeMatches,wwwMatches:"boolean"!=typeof e.wwwMatches||e.wwwMatches,tldMatches:"boolean"!=typeof e.tldMatches||e.tldMatches}},e.prototype.normalizeStripPrefixCfg=function(e){return null==e&&(e=!0),"boolean"==typeof e?{scheme:e,www:e}:{scheme:"boolean"!=typeof e.scheme||e.scheme,www:"boolean"!=typeof e.www||e.www}},e.prototype.normalizeTruncateCfg=function(e){return"number"==typeof e?{length:e,location:"end"}:function(e,t){for(var n in t)t.hasOwnProperty(n)&&void 0===e[n]&&(e[n]=t[n]);return e}(e||{},{length:Number.POSITIVE_INFINITY,location:"end"})},e.prototype.parse=function(e){var t=this,n=["a","style","script"],r=0,o=[];return J(e,{onOpenTag:function(e){n.indexOf(e)>=0&&r++},onText:function(e,n){if(0===r){var i=function(e,t){if(!t.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var n,r=[],o=0;n=t.exec(e);)r.push(e.substring(o,n.index)),r.push(n[0]),o=n.index+n[0].length;return r.push(e.substring(o)),r}(e,/(&nbsp;|&#160;|&lt;|&#60;|&gt;|&#62;|&quot;|&#34;|&#39;)/gi),a=n;i.forEach((function(e,n){if(n%2==0){var r=t.parseText(e,a);o.push.apply(o,r)}a+=e.length}))}},onCloseTag:function(e){n.indexOf(e)>=0&&(r=Math.max(r-1,0))},onComment:function(e){},onDoctype:function(e){}}),o=this.compactMatches(o),o=this.removeUnwantedMatches(o)},e.prototype.compactMatches=function(e){e.sort((function(e,t){return e.getOffset()-t.getOffset()}));for(var t=0;t<e.length-1;){var n=e[t],r=n.getOffset(),o=n.getMatchedText().length,i=r+o;if(t+1<e.length){if(e[t+1].getOffset()===r){var a=e[t+1].getMatchedText().length>o?t:t+1;e.splice(a,1);continue}if(e[t+1].getOffset()<i){e.splice(t+1,1);continue}}t++}return e},e.prototype.removeUnwantedMatches=function(e){return this.hashtag||o(e,(function(e){return"hashtag"===e.getType()})),this.email||o(e,(function(e){return"email"===e.getType()})),this.phone||o(e,(function(e){return"phone"===e.getType()})),this.mention||o(e,(function(e){return"mention"===e.getType()})),this.urls.schemeMatches||o(e,(function(e){return"url"===e.getType()&&"scheme"===e.getUrlMatchType()})),this.urls.wwwMatches||o(e,(function(e){return"url"===e.getType()&&"www"===e.getUrlMatchType()})),this.urls.tldMatches||o(e,(function(e){return"url"===e.getType()&&"tld"===e.getUrlMatchType()})),e},e.prototype.parseText=function(e,t){void 0===t&&(t=0),t=t||0;for(var n=this.getMatchers(),r=[],o=0,i=n.length;o<i;o++){for(var a=n[o].parseMatches(e),l=0,s=a.length;l<s;l++)a[l].setOffset(t+a[l].getOffset());r.push.apply(r,a)}return r},e.prototype.link=function(e){if(!e)return"";this.sanitizeHtml&&(e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"));for(var t=this.parse(e),n=[],r=0,o=0,i=t.length;o<i;o++){var a=t[o];n.push(e.substring(r,a.getOffset())),n.push(this.createMatchReturnVal(a)),r=a.getOffset()+a.getMatchedText().length}return n.push(e.substring(r)),n.join("")},e.prototype.createMatchReturnVal=function(e){var t;return this.replaceFn&&(t=this.replaceFn.call(this.context,e)),"string"==typeof t?t:!1===t?e.getMatchedText():t instanceof a?t.toAnchorString():e.buildTag().toAnchorString()},e.prototype.getMatchers=function(){if(this.matchers)return this.matchers;var e=this.getTagBuilder(),t=[new W({tagBuilder:e,serviceName:this.hashtag}),new M({tagBuilder:e}),new V({tagBuilder:e}),new Q({tagBuilder:e,serviceName:this.mention}),new F({tagBuilder:e,stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding})];return this.matchers=t},e.prototype.getTagBuilder=function(){var e=this.tagBuilder;return e||(e=this.tagBuilder=new s({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),e},e.version="3.15.0",e.AnchorTagBuilder=s,e.HtmlTag=a,e.matcher={Email:M,Hashtag:W,Matcher:b,Mention:Q,Phone:V,Url:F},e.match={Email:f,Hashtag:d,Match:c,Mention:p,Phone:h,Url:m},e}();t.a=te},1711:function(e,t,n){"use strict";n.d(t,"b",(function(){return x})),n.d(t,"a",(function(){return F}));n(9),n(10),n(14),n(30),n(27),n(76),n(12),n(31),n(18),n(26),n(234),n(28),n(59),n(40),n(24),n(47),n(42),n(37),n(43),n(8),n(84),n(615),n(19),n(11),n(29),n(13);var r=n(1582);function o(e,t,n,r){var o=i(v(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}function i(){return(i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=a(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(null,arguments)}function a(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t,n){return t=v(t),function(e,t){if(t&&("object"==l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(t,n||[],v(e).constructor):t.apply(e,n))}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}function h(e){var t="function"==typeof Map?new Map:void 0;return(h=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return m(e,arguments,v(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),y(n,e)})(e)}function m(e,t,n){if(b())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&y(o,n.prototype),o}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function y(e,t){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=r.a.import("blots/embed"),w=function(e){function t(e,n){var r;return f(this,t),(r=d(this,t,[e,n])).value={},r.event=new Event(e),r}return p(t,e),c(t)}(h(Event));var x=function(e){function t(e,n){var r;return f(this,t),(r=d(this,t,[e,n])).mounted=!1,r}return p(t,e),c(t,[{key:"attach",value:function(){o(t,"attach",this,3)([]),this.mounted||(this.mounted=!0,this.clickHandler=this.getClickHandler(),this.hoverHandler=this.getHoverHandler(),this.domNode.addEventListener("click",this.clickHandler,!1),this.domNode.addEventListener("mouseenter",this.hoverHandler,!1))}},{key:"detach",value:function(){o(t,"detach",this,3)([]),this.mounted=!1,this.clickHandler&&(this.domNode.removeEventListener("click",this.clickHandler),this.clickHandler=void 0)}},{key:"getClickHandler",value:function(){var e=this;return function(t){var n=e.buildEvent("mention-clicked",t);window.dispatchEvent(n),t.preventDefault()}}},{key:"getHoverHandler",value:function(){var e=this;return function(t){var n=e.buildEvent("mention-hovered",t);window.dispatchEvent(n),t.preventDefault()}}},{key:"buildEvent",value:function(e,t){var n=new w(e,{bubbles:!0,cancelable:!0});return n.value=Object.assign({},this.domNode.dataset),n.event=t,n}}],[{key:"create",value:function(e){var n=o(t,"create",this,2)([]);if(!function(e){return"object"===l(e)&&null!==e&&"value"in e&&"string"==typeof e.value&&"denotationChar"in e&&"string"==typeof e.denotationChar}(e)||n instanceof HTMLElement==!1)return n;var r=document.createElement("span");if(r.className="ql-mention-denotation-char",r.innerText=e.denotationChar,n.appendChild(r),"function"==typeof this.render)n.appendChild(this.render(e));else{var i=document.createElement("span");i.className="ql-mention-value",i.innerText=e.value,n.appendChild(i)}return t.setDataValues(n,e)}},{key:"setDataValues",value:function(e,t){var n=e;return Object.keys(t).forEach((function(e){n.dataset[e]=t[e]})),n}},{key:"value",value:function(e){return e.dataset}}])}(g);x.blotName="mention",x.tagName="span",x.className="mention";n(38),n(34),n(21),n(20),n(22),n(16),n(1608),n(1662),n(48),n(49),n(468),n(17),n(94);var S="Tab",O="Enter",E="Escape",k="ArrowUp",_="ArrowDown";n(267),n(118),n(180);function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(e,t,n){var r=e;return Object.keys(t).forEach((function(e){n.indexOf(e)>-1?r.dataset[e]=t[e]:delete r.dataset[e]})),r}function T(e,t){null!==t&&("object"===C(t)?e.appendChild(t):e.innerText=t)}function j(e){return(j="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)}function q(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 N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e,t,n){return(t=L(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return I(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,L(r.key),r)}}function L(e){var t=function(e,t){if("object"!=j(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=j(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==j(t)?t:t+""}function D(e,t,n){return t=z(t),function(e,t){if(t&&("object"==j(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],z(e).constructor):t.apply(e,n))}function z(e){return(z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function B(e,t){return(B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var F=function(e){function t(e,n){var r,o;for(var i in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=D(this,t,[e,n])).isOpen=!1,o.itemIndex=0,o.values=[],o.suspendMouseEnter=!1,Array.isArray(null==n?void 0:n.dataAttributes)&&(o.options.dataAttributes=o.options.dataAttributes?o.options.dataAttributes.concat(n.dataAttributes):n.dataAttributes),o.options){var a=i,l=o.options[a];"function"==typeof l&&(o.options[a]=l.bind(o))}o.mentionContainer=document.createElement("div"),o.mentionContainer.className=o.options.mentionContainerClass?o.options.mentionContainerClass:"",o.mentionContainer.style.cssText="display: none; position: absolute;",o.mentionContainer.onmousemove=o.onContainerMouseMove.bind(o),o.options.fixMentionsToQuill&&(o.mentionContainer.style.width="auto"),o.mentionList=document.createElement("ul"),o.mentionList.id="quill-mention-list",e.root.setAttribute("aria-owns","quill-mention-list"),o.mentionList.className=o.options.mentionListClass?o.options.mentionListClass:"",o.mentionContainer.appendChild(o.mentionList),e.on("text-change",o.onTextChange.bind(o)),e.on("selection-change",o.onSelectionChange.bind(o)),e.container.addEventListener("paste",(function(){setTimeout((function(){var t=e.getSelection();o.onSelectionChange(t)}))})),e.keyboard.addBinding({key:S},o.selectHandler.bind(o)),e.keyboard.bindings[S].unshift(e.keyboard.bindings[S].pop());var s,c=R(null!==(r=o.options.selectKeys)&&void 0!==r?r:[]);try{for(c.s();!(s=c.n()).done;){var u=s.value;e.keyboard.addBinding({key:u},o.selectHandler.bind(o))}}catch(e){c.e(e)}finally{c.f()}return e.keyboard.bindings[O].unshift(e.keyboard.bindings[O].pop()),e.keyboard.addBinding({key:E},o.escapeHandler.bind(o)),e.keyboard.addBinding({key:k},o.upHandler.bind(o)),e.keyboard.addBinding({key:_},o.downHandler.bind(o)),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B(e,t)}(t,e),function(e,t,n){return t&&M(e.prototype,t),n&&M(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"selectHandler",value:function(){return!(this.isOpen&&!this.existingSourceExecutionToken)||(this.selectItem(),!1)}},{key:"escapeHandler",value:function(){return!this.isOpen||(this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.hideMentionList(),!1)}},{key:"upHandler",value:function(){return!(this.isOpen&&!this.existingSourceExecutionToken)||(this.prevItem(),!1)}},{key:"downHandler",value:function(){return!(this.isOpen&&!this.existingSourceExecutionToken)||(this.nextItem(),!1)}},{key:"showMentionList",value:function(){"fixed"===this.options.positioningStrategy?document.body.appendChild(this.mentionContainer):this.quill.container.appendChild(this.mentionContainer),this.mentionContainer.style.visibility="hidden",this.mentionContainer.style.display="",this.mentionContainer.scrollTop=0,this.setMentionContainerPosition(),this.setIsOpen(!0)}},{key:"hideMentionList",value:function(){this.options.onBeforeClose&&this.options.onBeforeClose(),this.mentionContainer.style.display="none",this.mentionContainer.remove(),this.setIsOpen(!1),this.quill.root.removeAttribute("aria-activedescendant")}},{key:"highlightItem",value:function(){for(var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=0;t<this.mentionList.childNodes.length;t+=1){var n=this.mentionList.childNodes[t];n instanceof HTMLElement&&n.classList.remove("selected")}var r=this.mentionList.childNodes[this.itemIndex];if(-1!==this.itemIndex&&"true"!==r.dataset.disabled&&(r.classList.add("selected"),this.quill.root.setAttribute("aria-activedescendant",r.id),e)){var o=r.offsetHeight,i=r.offsetTop,a=this.mentionContainer.scrollTop,l=a+this.mentionContainer.offsetHeight;i<a?this.mentionContainer.scrollTop=i:i>l-o&&(this.mentionContainer.scrollTop+=i-l+o)}}},{key:"onContainerMouseMove",value:function(){this.suspendMouseEnter=!1}},{key:"selectItem",value:function(){var e,t,n=this;if(-1!==this.itemIndex){var r=this.mentionList.childNodes[this.itemIndex].dataset;r.disabled||(null===(e=(t=this.options).onSelect)||void 0===e||e.call(t,r,(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.insertItem(e,t,r)})),this.hideMentionList())}}},{key:"insertItem",value:function(e,n){var o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=e;if(null!==a&&void 0!==this.mentionCharPos&&void 0!==this.cursorPos){var l,s=N(N({},this.options),i);s.showDenotationChar||(a.denotationChar=""),n?l=this.cursorPos:(l=this.mentionCharPos,this.quill.deleteText(this.mentionCharPos,this.cursorPos-this.mentionCharPos,r.a.sources.USER));var c=this.quill.insertEmbed(l,null!==(o=s.blotName)&&void 0!==o?o:t.DEFAULTS.blotName,a,r.a.sources.USER);return s.spaceAfterInsert?(this.quill.insertText(l+1," ",r.a.sources.USER),this.quill.setSelection(l+2,r.a.sources.USER)):this.quill.setSelection(l+1,r.a.sources.USER),this.hideMentionList(),c}}},{key:"onItemMouseEnter",value:function(e){var t;if(!this.suspendMouseEnter&&e.target instanceof HTMLElement!=!1){var n=Number(null===(t=e.target)||void 0===t?void 0:t.dataset.index);Number.isNaN(n)||n===this.itemIndex||(this.itemIndex=n,this.highlightItem(!1))}}},{key:"onDisabledItemMouseEnter",value:function(){this.suspendMouseEnter||(this.itemIndex=-1,this.highlightItem(!1))}},{key:"onItemClick",value:function(e){var t;e.preventDefault(),e.stopImmediatePropagation(),e.currentTarget instanceof HTMLElement!=!1&&(this.itemIndex=null!==(t=e.currentTarget)&&void 0!==t&&t.dataset.index?Number.parseInt(e.currentTarget.dataset.index):-1,this.highlightItem(),this.selectItem())}},{key:"onItemMouseDown",value:function(e){e.preventDefault(),e.stopImmediatePropagation()}},{key:"renderLoading",value:function(){var e,t,n,r=null!==(e=null===(t=(n=this.options).renderLoading)||void 0===t?void 0:t.call(n))&&void 0!==e?e:void 0;if(void 0!==r)if(this.mentionContainer.getElementsByClassName("ql-mention-loading").length>0)this.showMentionList();else{this.mentionList.innerHTML="";var o=document.createElement("div");o.className="ql-mention-loading",T(o,r),this.mentionContainer.append(o),this.showMentionList()}}},{key:"removeLoading",value:function(){var e=this.mentionContainer.getElementsByClassName("ql-mention-loading");e.length>0&&e[0].remove()}},{key:"renderList",value:function(e,t,n){if(t&&t.length>0){this.removeLoading(),this.values=t,this.mentionList.innerText="";for(var r=-1,o=0;o<t.length;o+=1){var i=document.createElement("li");i.id="quill-mention-item-"+o,i.className=this.options.listItemClass?this.options.listItemClass:"",t[o].disabled?(i.className+=" disabled",i.setAttribute("aria-hidden","true")):-1===r&&(r=o),i.dataset.index=o.toString(),T(i,this.options.renderItem(t[o],n)),t[o].disabled?i.onmouseenter=this.onDisabledItemMouseEnter.bind(this):(i.onmouseenter=this.onItemMouseEnter.bind(this),i.onmouseup=this.onItemClick.bind(this),i.onmousedown=this.onItemMouseDown.bind(this)),i.dataset.denotationChar=e,this.mentionList.appendChild(A(i,t[o],this.options.dataAttributes))}this.itemIndex=r,this.highlightItem(),this.showMentionList()}else this.hideMentionList()}},{key:"nextItem",value:function(){var e,t,n=0;do{if(n++,e=(this.itemIndex+n)%this.values.length,t="true"===this.mentionList.childNodes[e].dataset.disabled,n===this.values.length+1){e=-1;break}}while(t);this.itemIndex=e,this.suspendMouseEnter=!0,this.highlightItem()}},{key:"prevItem",value:function(){var e,t,n=0;do{if(n++,e=(this.itemIndex+this.values.length-n)%this.values.length,t="true"===this.mentionList.childNodes[e].dataset.disabled,n===this.values.length+1){e=-1;break}}while(t);this.itemIndex=e,this.suspendMouseEnter=!0,this.highlightItem()}},{key:"containerBottomIsNotVisible",value:function(e,t){return e+this.mentionContainer.offsetHeight+t.top>window.scrollY+window.innerHeight}},{key:"containerRightIsNotVisible",value:function(e,t){return!this.options.fixMentionsToQuill&&e+this.mentionContainer.offsetWidth+t.left>window.scrollX+document.documentElement.clientWidth}},{key:"setIsOpen",value:function(e){if(this.isOpen!==e){var t,n,r,o;if(e)null===(t=(n=this.options).onOpen)||void 0===t||t.call(n);else null===(r=(o=this.options).onClose)||void 0===r||r.call(o);this.isOpen=e}}},{key:"setMentionContainerPosition",value:function(){"fixed"===this.options.positioningStrategy?this.setMentionContainerPosition_Fixed():this.setMentionContainerPosition_Normal()}},{key:"setMentionContainerPosition_Normal",value:function(){var e=this;if(void 0!==this.mentionCharPos){var t=this.quill.container.getBoundingClientRect(),n=this.quill.getBounds(this.mentionCharPos);if(null!==n){var r,o,i=this.mentionContainer.offsetHeight,a=this.options.offsetTop,l=this.options.offsetLeft;if(this.options.fixMentionsToQuill){this.mentionContainer.style.right="".concat(0,"px")}else l+=n.left;if(this.containerRightIsNotVisible(l,t)){var s=this.mentionContainer.offsetWidth+this.options.offsetLeft;l=t.width-s}if("top"===this.options.defaultMenuOrientation){if((a=this.options.fixMentionsToQuill?-1*(i+this.options.offsetTop):n.top-(i+this.options.offsetTop))+t.top<=0){var c=this.options.offsetTop;this.options.fixMentionsToQuill?c+=t.height:c+=n.bottom,a=c}}else if(this.options.fixMentionsToQuill?a+=t.height:a+=n.bottom,this.containerBottomIsNotVisible(a,t)){var u=-1*this.options.offsetTop;this.options.fixMentionsToQuill||(u+=n.top),a=u-i}if(a>=0)null===(r=this.options.mentionContainerClass)||void 0===r||r.split(" ").forEach((function(t){e.mentionContainer.classList.add("".concat(t,"-bottom")),e.mentionContainer.classList.remove("".concat(t,"-top"))}));else null===(o=this.options.mentionContainerClass)||void 0===o||o.split(" ").forEach((function(t){e.mentionContainer.classList.add("".concat(t,"-top")),e.mentionContainer.classList.remove("".concat(t,"-bottom"))}));this.mentionContainer.style.top="".concat(a,"px"),this.mentionContainer.style.left="".concat(l,"px"),this.mentionContainer.style.visibility="visible"}}}},{key:"setMentionContainerPosition_Fixed",value:function(){var e=this;if(void 0!==this.mentionCharPos){this.mentionContainer.style.position="fixed",this.mentionContainer.style.height="";var t=this.quill.container.getBoundingClientRect(),n=this.quill.getBounds(this.mentionCharPos);if(null!==n){var r={right:t.right-n.right,left:t.left+n.left,top:t.top+n.top,width:0,height:n.height},o=this.options.fixMentionsToQuill?t:r,i=this.options.offsetTop,a=this.options.offsetLeft;if(this.options.fixMentionsToQuill){var l=o.right;this.mentionContainer.style.right="".concat(l,"px")}else(a+=o.left)+this.mentionContainer.offsetWidth>document.documentElement.clientWidth&&(a-=a+this.mentionContainer.offsetWidth-document.documentElement.clientWidth);var s,c,u=o.top,f=document.documentElement.clientHeight-(o.top+o.height),d=this.mentionContainer.offsetHeight<=f,p=this.mentionContainer.offsetHeight<=u;if("bottom"===("top"===this.options.defaultMenuOrientation&&p?"top":"bottom"===this.options.defaultMenuOrientation&&d||f>u?"bottom":"top"))i=o.top+o.height,d||(this.mentionContainer.style.height=f-3+"px"),null===(s=this.options.mentionContainerClass)||void 0===s||s.split(" ").forEach((function(t){e.mentionContainer.classList.add("".concat(t,"-bottom")),e.mentionContainer.classList.remove("".concat(t,"-top"))}));else i=o.top-this.mentionContainer.offsetHeight,p||(this.mentionContainer.style.height=u-3+"px",i=3),null===(c=this.options.mentionContainerClass)||void 0===c||c.split(" ").forEach((function(t){e.mentionContainer.classList.add("".concat(t,"-top")),e.mentionContainer.classList.remove("".concat(t,"-bottom"))}));this.mentionContainer.style.top="".concat(i,"px"),this.mentionContainer.style.left="".concat(a,"px"),this.mentionContainer.style.visibility="visible"}}}},{key:"getTextBeforeCursor",value:function(){var e,t,n=Math.max(0,(null!==(e=this.cursorPos)&&void 0!==e?e:0)-this.options.maxChars);return this.quill.getText(n,(null!==(t=this.cursorPos)&&void 0!==t?t:0)-n)}},{key:"onSomethingChange",value:function(){var e=this,t=this.quill.getSelection();if(null!=t){this.cursorPos=t.index;var n,r,o,i,a=this.getTextBeforeCursor(),l=Math.max(0,this.cursorPos-this.options.maxChars),s=l?this.quill.getText(l-1,l):"",c=(n=a,r=this.options.mentionDenotationChars,o=this.options.isolateCharacter,i=this.options.allowInlineMentionChar,r.reduce((function(e,t){var r;if(o&&i){var a=new RegExp("^".concat(t,"|\\s").concat(t),"g"),l=(n.match(a)||[]).pop();if(!l)return{mentionChar:e.mentionChar,mentionCharIndex:e.mentionCharIndex};r=l!==t?n.lastIndexOf(l)+l.length-t.length:0}else r=n.lastIndexOf(t);return r>e.mentionCharIndex?{mentionChar:t,mentionCharIndex:r}:{mentionChar:e.mentionChar,mentionCharIndex:e.mentionCharIndex}}),{mentionChar:null,mentionCharIndex:-1})),u=c.mentionChar,f=c.mentionCharIndex;if(null!==u&&function(e,t,n,r){if(-1===e)return!1;if(!n)return!0;var o=e?t[e-1]:r;return!o||!!o.match(/\s/)}(f,a,this.options.isolateCharacter,s)){var d=this.cursorPos-(a.length-f);this.mentionCharPos=d;var p=a.substring(f+u.length);if(p.length>=this.options.minChars&&function(e,t){return t.test(e)}(p,this.getAllowedCharsRegex(u))){var h,m;this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.renderLoading();var b={abandoned:!1};this.existingSourceExecutionToken=b,null===(h=(m=this.options).source)||void 0===h||h.call(m,p,(function(t,n){b.abandoned||(e.existingSourceExecutionToken=void 0,e.renderList(u,t,n))}),u)}else this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.hideMentionList()}else this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.hideMentionList()}}},{key:"getAllowedCharsRegex",value:function(e){return this.options.allowedChars instanceof RegExp?this.options.allowedChars:null!==(t=null===(n=(r=this.options).allowedChars)||void 0===n?void 0:n.call(r,e))&&void 0!==t?t:/^[a-zA-Z0-9_]*$/;var t,n,r}},{key:"onTextChange",value:function(e,t,n){"user"===n&&setTimeout(this.onSomethingChange.bind(this),50)}},{key:"onSelectionChange",value:function(e){null!==e&&0===e.length?this.onSomethingChange():this.hideMentionList()}},{key:"openMenu",value:function(e){var t=this.quill.getSelection(!0);this.quill.insertText(t.index,e),this.quill.blur(),this.quill.focus()}}])}(r.a.import("core/module"));F.DEFAULTS={mentionDenotationChars:["@"],showDenotationChar:!0,allowedChars:/^[a-zA-Z0-9_]*$/,minChars:0,maxChars:31,offsetTop:2,offsetLeft:0,isolateCharacter:!1,allowInlineMentionChar:!1,fixMentionsToQuill:!1,positioningStrategy:"normal",defaultMenuOrientation:"bottom",blotName:"mention",dataAttributes:["id","value","denotationChar","link","target","disabled"],linkTarget:"_blank",listItemClass:"ql-mention-list-item",mentionContainerClass:"ql-mention-list-container",mentionListClass:"ql-mention-list",spaceAfterInsert:!0,selectKeys:[O],source:function(e,t,n){t([],e)},renderItem:function(e){var t=e.value;return"".concat(t)},onSelect:function(e,t){return t(e)},onOpen:function(){return!0},onBeforeClose:function(){return!0},onClose:function(){return!0},renderLoading:function(){return null}}},1712:function(e,t,n){"use strict";n(9),n(10),n(14),n(30),n(27),n(21),n(20),n(12),n(22),n(31),n(18),n(16),n(28),n(24),n(8),n(17),n(19),n(11),n(29),n(13);var r=n(0),o=n.n(r),i=n(2),a=n.n(i),l=n(6),s=n(206),c=n(305),u=n(317),f=n(82),d=n(1),p=n(1610),h=n(124),m=n(45),b=n(313),y=n(3),v=n(4),g=n(5),w=n(478);n(1668);function x(e){return(x="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)}function S(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=x(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=x(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==x(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return E(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var k={annotations:a.a.array.isRequired,style:a.a.object.isRequired,properties:a.a.object.isRequired,isRedaction:a.a.bool,isFreeText:a.a.bool,isEllipse:a.a.bool,hasBackToMenu:a.a.bool,onBackToMenu:a.a.func},_=function(e){var t=e.annotations,n=e.style,i=e.isRedaction,a=e.isFreeText,x=e.isEllipse,E=e.isMeasure,k=e.colorMapKey,_=e.showLineStyleOptions,C=e.properties,A=e.hideSnapModeCheckbox,T=e.onResize,j=e.hasBackToMenu,q=e.onBackToMenu,N=O(Object(l.e)((function(e){return[v.a.isElementDisabled(e,g.a.ANNOTATION_STYLE_POPUP),v.a.isToolDefaultStyleUpdateFromAnnotationPopupEnabled(e),v.a.getActiveDocumentViewerKey(e)]})),3),P=N[0],R=N[1],I=N[2],M=Object(l.d)(),L=O(Object(c.a)(),1)[0],D=O(Object(r.useState)(C.isAutoSizeFont),2),z=D[0],B=D[1],F=function(e,n){var r=d.a.getAnnotationManager(I);t.forEach((function(t){t[e]=n,"StrokeThickness"===e&&Object(b.a)(t),r.redrawAnnotation(t),t instanceof window.Core.Annotations.WidgetAnnotation&&t.refresh()}))},H=function(e,n){t.forEach((function(t){d.a.setAnnotationStyles(t,S({},e,n),I),R&&Object(h.a)(t.ToolName,e,n),"FontSize"!==e&&"Font"!==e||Object(b.a)(t)}))},U=function(e,n){t.forEach((function(t){d.a.setAnnotationStyles(t,S({},e,n),I),R&&Object(h.a)(t.ToolName,e,n)}))},W=function(e,n){t.forEach((function(t){d.a.updateAnnotationRichTextStyle(t,S({},e,n),I)}))},G=function(e,n){t.forEach((function(t){var r="";if("start"===e)t.setStartStyle(n),r="StartLineStyle";else if("end"===e)t.setEndStyle(n),r="EndLineStyle";else if("middle"===e){var o=n.split(","),i=o.shift();t.Style=i,t.Dashes=o,r="StrokeStyle"}R&&Object(h.a)(t.ToolName,r,n),d.a.getAnnotationManager(I).redrawAnnotation(t)})),d.a.getAnnotationManager(I).trigger("annotationChanged",[t,"modify",{}])},V=function(e){Object(m.k)()&&e.target===e.currentTarget&&M(y.a.closeElement(g.a.ANNOTATION_POPUP))},K=Object(p.a)("Popup AnnotationStylePopup",e);return P?null:o.a.createElement(s.a,{onResize:function(){T&&T()}},(function(e){var r=e.measureRef;return o.a.createElement("div",{className:K,"data-element":g.a.ANNOTATION_STYLE_POPUP,onClick:V,ref:r},j&&o.a.createElement("div",{className:"back-to-menu-container","data-element":g.a.ANNOTATION_STYLE_POPUP_BACK_BUTTON_CONTAINER},o.a.createElement(f.a,{className:"back-to-menu-button",dataElement:g.a.ANNOTATION_STYLE_POPUP_BACK_BUTTON,label:L("action.backToMenu"),img:"icon-chevron-left",onClick:q})),o.a.createElement(u.a,{hideSnapModeCheckbox:A,colorMapKey:k,style:n,isFreeText:a,isFreeTextAutoSize:z,onFreeTextSizeToggle:function(){return Object(w.a)(t[0],B,z)},isEllipse:x,isMeasure:E,onStyleChange:U,onSliderChange:F,onPropertyChange:H,disableSeparator:!0,properties:C,onRichTextStyleChange:W,isRedaction:i,showLineStyleOptions:_,onLineStyleChange:G}))}))};_.propTypes=k;var C=_;t.a=C},1748:function(e,t,n){var r=n(35),o=n(1749);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1749:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.multi-reply-place-holder{height:100px}.reply-area-multi-container{border-top:1px solid var(--divider);display:flex;flex-direction:column;width:100%;position:absolute;inset-block-end:0;z-index:100;background:var(--panel-background)}.reply-area-multi-container form{width:100%;display:flex}.reply-area-multi-container .reply-area-multi-header{display:flex;flex-direction:row;margin-inline-start:16px;margin-top:28px;position:relative;justify-content:space-between}.reply-area-multi-container .reply-area-multi-header .title{font-size:13px;font-weight:700;display:flex;align-items:center}.reply-area-multi-container .reply-area-multi-header .close-icon{display:flex;align-items:center;padding-inline-end:12px;cursor:pointer;position:relative;inset-block-start:1px}.reply-area-multi-container .reply-area-multi-header .close-icon .close-icon{width:22px;height:22px}.reply-area-multi-container .reply-button-container{display:flex;justify-content:flex-end;flex-direction:column}.reply-area-multi-container .reply-button{width:28px;height:28px;padding:0;border:none;background-color:transparent;inset-inline-end:10px;inset-block-end:12px}:host(:not([data-tabbing=true])) .reply-area-multi-container .reply-button,html:not([data-tabbing=true]) .reply-area-multi-container .reply-button{outline:none}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.reply-area-multi-container .reply-button{width:80px}}.reply-area-multi-container .reply-button:hover{background:var(--blue-1)}.reply-area-multi-container .reply-button.disabled{cursor:not-allowed}.reply-area-multi-container .reply-area{position:relative;flex:1;margin:13px 17px 12px 16px;border-radius:4px;align-items:center;background:var(--component-background)}.reply-area-multi-container .reply-area.unread{background:rgba(0,165,228,.08)}.reply-area-multi-container .reply-area .comment-textarea .ql-container .ql-editor.ql-blank{padding:4px}.reply-area-multi-container .reply-area .comment-textarea .ql-container .ql-editor.ql-blank:before{inset-inline-start:4px}.reply-area-multi-container .add-attachment{display:none}.reply-area-multi-container.modular-ui{padding:16px 16px 24px}.reply-area-multi-container.modular-ui form{margin-bottom:0}.reply-area-multi-container.modular-ui .reply-area{margin:13px 16px 24px 0}.reply-area-multi-container.modular-ui .reply-area-multi-header{margin-inline-start:0;margin-top:0}.reply-area-multi-container.modular-ui .reply-area-multi-header .close-icon{width:28px;height:28px}.reply-area-multi-container.modular-ui .close-icon{padding-inline-end:0;margin-inline-end:16px}.reply-area-multi-container.modular-ui .reply-button-container{margin-inline-end:16px;margin-bottom:12px}.reply-area-multi-container.modular-ui .reply-button{inset-inline-start:0;inset-inline-end:0}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1750:function(e,t,n){var r=n(35),o=n(1751);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1751:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,".multi-style-container{border-radius:4px;box-shadow:0 0 3px 0 var(--document-box-shadow);background:var(--component-background);position:relative;inset-inline-end:20px;inset-block-end:52px;pointer-events:auto}.multi-style-container *{box-sizing:border-box}",""])},1752:function(e,t,n){var r=n(35),o=n(1753);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1753:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,".notes-panel-container .buttons-container{display:flex;grid-column-gap:8px;-moz-column-gap:8px;column-gap:8px;justify-content:space-between}.notes-panel-container .buttons-container .Button{height:28px;width:28px}.notes-panel-container .buttons-container .Button:hover:enabled{background:var(--view-header-button-hover)}.notes-panel-container .buttons-container .Button.active{background:var(--view-header-button-active)}.notes-panel-container .buttons-container .Button.active .Icon{color:var(--view-header-icon-active-fill)}.notes-panel-container .multi-select-footer{background:var(--panel-background);display:flex;border-top:1px solid var(--gray-5);margin-top:auto;margin-bottom:16px;height:64px;padding:24px 16px;align-items:center;justify-content:center;position:absolute;inset-block-end:0;width:100%;z-index:100}.notes-panel-container .multi-select-footer .close-container{margin-top:auto;inset-inline-end:26px;position:absolute}",""])},1754:function(e,t,n){var r=n(35),o=n(1755);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1755:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.comments-counter{height:19px;margin-top:24px;margin-bottom:12px;font-size:16px}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .comments-counter{margin-top:16px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .comments-counter{margin-top:16px}}.comments-counter span{font-weight:700}.comments-counter h2{font-weight:400;font-size:16px}[data-element=notesPanelHeader]{padding-inline-end:18px}[data-element=notesPanelHeader] .buttons-container{display:flex;grid-column-gap:8px;-moz-column-gap:8px;column-gap:8px;justify-content:space-between}[data-element=notesPanelHeader] .buttons-container .Button{height:28px;width:28px;cursor:pointer}[data-element=notesPanelHeader] .buttons-container .Button:hover:enabled{background:var(--view-header-button-hover)}[data-element=notesPanelHeader] .buttons-container .Button.active{background:var(--view-header-button-active)}[data-element=notesPanelHeader] .buttons-container .Button.active .Icon{color:var(--view-header-icon-active-fill)}[data-element=notesPanelHeader] .buttons-container .Button:disabled{cursor:default}[data-element=notesPanelHeader] .sort-row{display:flex;justify-content:space-between;margin-bottom:16px}[data-element=notesPanelHeader] .sort-row .sort-container{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;align-self:flex-end}[data-element=notesPanelHeader] .sort-row .sort-container .label{margin-inline-end:8px}[data-element=notesPanelHeader] .sort-row .sort-container .picked-option{text-align:start}[data-element=notesPanelHeader] .input-container{display:flex;position:relative;flex:1}[data-element=notesPanelHeader] .input-container input{width:100%;border:1px solid var(--border);border-radius:4px;color:var(--text-color);padding-top:4px;padding-inline-end:8px;padding-bottom:6px;padding-inline-start:8px}[data-element=notesPanelHeader] .input-container.modular-ui-input{box-sizing:border-box;border:1px solid var(--border);border-radius:4px;height:28px;align-items:center;color:var(--text-color);padding:6px 2px 6px 6px}[data-element=notesPanelHeader] .input-container.modular-ui-input[focus-within]{outline:none;border:1px solid var(--focus-border)}[data-element=notesPanelHeader] .input-container.modular-ui-input:focus-within{outline:none;border:1px solid var(--focus-border)}[data-element=notesPanelHeader] .input-container.modular-ui-input input{padding-inline-start:8px;padding-inline-end:26px;height:20px;border:none;background:transparent}[data-element=notesPanelHeader] .input-button{cursor:pointer;background:var(--primary-button);border-radius:4px;height:100%;width:40px;display:flex;align-items:center;justify-content:center;position:absolute;inset-block-end:0;inset-inline-end:0}[data-element=notesPanelHeader] .input-button .Icon{width:20px;height:20px}[data-element=notesPanelHeader] .input-button svg{color:var(--primary-button-text)}[data-element=notesPanelHeader] .input-button:hover{background:var(--primary-button-hover)}[data-element=notesPanelHeader] .divider{height:1px;width:100%;background:var(--divider);margin:16px 0}.modular-ui-header .input-container.modular-ui-input .Icon{width:16px;height:16px}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1756:function(e,t,n){var r=n(35),o=n(1757);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const r=[];return n.querySelectorAll(t).forEach(e=>r.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&r.push(...e(t,n.shadowRoot))}),r}("apryse-webviewer"));const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(0===r)o.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);o.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};r(o,i);e.exports=o.locals||{}},1757:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.notes-panel-container{z-index:65;display:flex;flex-direction:row;position:relative;overflow-y:visible}.notes-panel-container.office-editor{height:100%}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container{z-index:95}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container{z-index:95}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container{border-inline-start:1px solid var(--side-panel-border)}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container{border-inline-start:1px solid var(--side-panel-border)}}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container{inset-block-start:0;inset-inline-end:0;height:100%;width:100%}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container{inset-block-start:0;inset-inline-end:0;height:100%;width:100%}}.notes-panel-container .NotesPanel{width:100%;padding-inline-start:16px;padding-bottom:0;display:flex;flex-direction:column;position:relative;padding-top:16px}.notes-panel-container .NotesPanel .close-container{display:flex;align-items:center;justify-content:flex-end}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container .NotesPanel .close-container{height:28px;padding-inline-end:16px;margin-bottom:8px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container .NotesPanel .close-container{height:28px;padding-inline-end:16px;margin-bottom:8px}}.notes-panel-container .NotesPanel .close-container .close-icon-container{display:flex;align-items:center;cursor:pointer}.notes-panel-container .NotesPanel .close-container .close-icon-container .close-icon{width:24px;height:24px}.notes-panel-container .NotesPanel .multi-select-place-holder{height:72px}.notes-panel-container .NotesPanel .preview-all-changes{height:57px;display:flex;flex-direction:column;justify-content:center;position:relative;margin-inline-end:16px}.notes-panel-container .NotesPanel .preview-all-changes .divider{height:1px;width:100%;background:var(--divider);position:absolute;inset-block-start:0}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.notes-panel-container .NotesPanel .reply-area-container .reply-button{width:28px}}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container .NotesPanel{width:100%;min-width:100%;padding-top:0}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container .NotesPanel .normal-notes-container{padding-bottom:16px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container .NotesPanel{width:100%;min-width:100%;padding-top:0}.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container .NotesPanel .normal-notes-container{padding-bottom:16px}}.notes-panel-container .NotesPanel .no-annotations{display:flex;flex-direction:column;align-items:center}.notes-panel-container .NotesPanel .no-annotations .msg{text-align:center}@media(min-width:641px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container .NotesPanel .no-annotations .msg{line-height:15px;width:146px}}@container (min-width: 641px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container .NotesPanel .no-annotations .msg{line-height:15px;width:146px}}.notes-panel-container .NotesPanel .no-annotations .empty-icon,.notes-panel-container .NotesPanel .no-annotations .empty-icon svg{width:65px;height:83px}.notes-panel-container .NotesPanel .no-annotations .empty-icon *{fill:var(--gray-6);color:var(--gray-6)}.notes-panel-container .NotesPanel .normal-notes-container,.notes-panel-container .NotesPanel .virtualized-notes-container{margin-top:10px;flex:1;padding-inline-end:18px}.notes-panel-container .NotesPanel .virtualized-notes-container{overflow:hidden}.notes-panel-container .NotesPanel .normal-notes-container{overflow:auto;overflow:overlay}.notes-panel-container .NotesPanel .note-wrapper:first-child .ListSeparator{margin-top:0;word-break:break-word}.notes-panel-container .NotesPanel .no-results{display:flex;flex-direction:column;align-items:center;padding-inline-end:18px}.notes-panel-container .NotesPanel .no-results .msg{text-align:center}@media(min-width:641px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container .NotesPanel .no-results .msg{line-height:15px;width:92px}}@container (min-width: 641px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container .NotesPanel .no-results .msg{line-height:15px;width:92px}}.notes-panel-container .NotesPanel .no-results .empty-icon,.notes-panel-container .NotesPanel .no-results .empty-icon svg{width:65px;height:83px}.notes-panel-container .NotesPanel .no-results .empty-icon *{fill:var(--border);color:var(--border)}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1778:function(e,t,n){"use strict";n.r(t);n(9),n(10),n(14),n(30),n(34),n(81),n(27),n(21),n(20),n(12),n(22),n(31),n(18),n(26),n(16),n(28),n(59),n(48),n(24),n(47),n(49),n(37),n(8),n(17),n(19),n(11),n(29),n(13);var r=n(0),o=n.n(r),i=n(1),a=(n(38),n(125),n(50),n(76),n(99),n(129),n(91),n(62),n(94),n(15)),l=n.n(a),s=n(6),c=n(305),u=n(2),f=n.n(u),d=n(206),p=n(1654);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(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 b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=h(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==h(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var w={notes:f.a.array.isRequired,children:f.a.func.isRequired,onScroll:f.a.func.isRequired,initialScrollTop:f.a.number.isRequired,selectedIndex:f.a.number,sortStrategy:f.a.string},x=new p.b({defaultHeight:50,fixedWidth:!0}),S=o.a.forwardRef((function(e,t){var n=e.notes,i=e.children,a=e.onScroll,l=e.initialScrollTop,s=e.selectedIndex,c=e.sortStrategy,u=Object(r.useRef)(),f=v(Object(r.useState)(0),2),h=f[0],m=f[1],y=v(Object(r.useState)({width:0,height:0}),2),g=y[0],w=y[1],S=window.innerHeight;Object(r.useImperativeHandle)(t,(function(){return{scrollToPosition:function(e){u.current.scrollToPosition(e)},scrollToRow:function(e){u.current.scrollToRow(e)}}})),Object(r.useEffect)((function(){u.current.scrollToPosition(l)}),[l]),Object(r.useEffect)((function(){var e,t;(x.clearAll(),null==u||null===(e=u.current)||void 0===e||e.measureAllRows(),-1!==s)&&(null===(t=u.current)||void 0===t||t.scrollToRow(s))}),[s]),Object(r.useEffect)((function(){var e,t;x.clearAll(),null==u||null===(e=u.current)||void 0===e||e.measureAllRows(),null==u||null===(t=u.current)||void 0===t||t.forceUpdateGrid()}),[n.length,c]),Object(r.useEffect)((function(){var e=function(){var e=window.innerHeight-S;e&&(window.innerHeight<S&&m(e),S=window.innerHeight)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}));var O=function(e){var t=e.scrollTop;a(t)},E=function(e){var t=e.index,r=e.key,a=e.parent,l=e.style,s=n[t];return o.a.createElement(p.a,{key:"".concat(r).concat(s.Id),cache:x,columnIndex:0,parent:a,rowIndex:t},(function(e){var r=e.measure;return o.a.createElement("div",{style:b(b({},l),{},{paddingRight:"12px"})},i(n,t,(function(){!function(e){var t;x.clear(e),null===(t=u.current)||void 0===t||t.recomputeRowHeights(e)}(t),r()})))}))};return o.a.createElement(d.a,{bounds:!0,offset:!0,onResize:function(e){var t=e.bounds;w(b(b({},t),{},{height:t.height+2*h})),m(0)}},(function(e){var t=e.measureRef;return o.a.createElement("div",{ref:t,className:"virtualized-notes-container"},o.a.createElement(p.c,{deferredMeasurementCache:x,style:{outline:"none"},height:g.height-h,width:g.width,overscanRowCount:10,ref:u,rowCount:n.length,rowHeight:x.rowHeight,rowRenderer:E,onScroll:O,"aria-label":"presentation",role:"presentation"}))}))}));S.displayName="VirtualizedList",S.propTypes=w;var O=S,E=(n(44),{notes:f.a.array.isRequired,children:f.a.func.isRequired,onScroll:f.a.func.isRequired,initialScrollTop:f.a.number.isRequired}),k=o.a.forwardRef((function(e,t){var n=e.notes,i=e.children,a=e.onScroll,l=e.initialScrollTop,s=Object(r.useRef)();Object(r.useImperativeHandle)(t,(function(){return{scrollToPosition:function(e){s.current.scrollTop=e},scrollToRow:function(e){var t=s.current,n=t.children[e];if(n){var r=t.getBoundingClientRect(),o=n.getBoundingClientRect();o.top>=r.top&&o.top<=r.top+t.clientHeight||(t.scrollTop=o.top+t.scrollTop-r.top)}}}})),Object(r.useEffect)((function(){s.current.scrollTop=l}),[l]);return o.a.createElement("div",{ref:s,className:"normal-notes-container",onScroll:function(e){a(e.target.scrollTop)},role:"list"},n.map((function(e,t){return o.a.createElement(o.a.Fragment,{key:"".concat(t,"_").concat(e.Id)},i(n,t))})))}));k.displayName="NormalList",k.propTypes=E;var _=k,C=n(1709),A=n(51),T=n(1571),j=n(1637),q=(n(132),n(41)),N=(n(153),n(1599)),P=n(372),R=n(1596),I=n(4);n(1748);function M(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return L(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var D=function(e){var t=e.annotations,n=e.onSubmit,a=e.onClose,u=M(Object(s.e)((function(e){var t;return[I.a.getIsMentionEnabled(e),I.a.getActiveDocumentViewerKey(e),null===(t=I.a.getFeatureFlags(e))||void 0===t?void 0:t.customizableUI]}),s.c),3),f=u[0],d=u[1],p=u[2],h=M(Object(r.useState)(""),2),m=h[0],b=h[1],y=M(Object(c.a)(),1)[0],v=Object(r.useRef)();Object(r.useEffect)((function(){v.current.focus()}),[]);var g=l()({"reply-area":!0});return o.a.createElement("div",{className:l()({"reply-area-multi-container":!0,"modular-ui":p})},o.a.createElement("div",{className:"reply-area-multi-header"},o.a.createElement("div",{className:"title"},y("action.multiReplyAnnotations",{count:t.length})),o.a.createElement(q.a,{className:"close-icon",onClick:a,img:"ic_close_black_24px"})),o.a.createElement("form",{onSubmit:function(e){e.preventDefault();var r=v.current.getEditor(),o=P.a.getFormattedTextFromDeltas(r.getContents());o.trim()&&(t.forEach((function(e){if(f){var t=P.a.createMentionReply(e,o);i.a.addAnnotations([t],d),Object(R.a)(r,t)}else{var n=i.a.createAnnotationReply(e,o,d);Object(R.a)(r,n)}})),n())}},o.a.createElement("div",{className:g,onMouseDown:function(e){return e.stopPropagation()}},o.a.createElement(N.a,{ref:function(e){v.current=e},value:m,onChange:function(e){return function(e){b(e)}(e)},isReply:!0})),o.a.createElement("div",{className:"reply-button-container"},o.a.createElement(q.a,{img:"icon-post-reply",className:"reply-button",title:"action.submit",isSubmitType:!0}))))},z=n(245),B=n(119),F=n(23);var H=function(e){var t=Object(r.useRef)(null);return Object(r.useEffect)((function(){var n,r,o=document.querySelector("#".concat(e)),i=o||function(e){var t=document.createElement("div");return t.setAttribute("id",e),t}(e);return o||(n=i,(r=window.isApryseWebViewerWebComponent?Object(F.a)():document.body).insertBefore(n,r.lastElementChild.nextElementSibling)),i.appendChild(t.current),function(){t.current.remove(),i.childElementCount||i.remove()}}),[e]),t.current||(t.current=document.createElement("div")),t.current},U=function(e){var t=e.id,n=e.position,r=e.children,o=H(t);return o.style.position="absolute",o.style.top="auto"===n.top?n.top:"".concat(n.top,"px"),o.style.left="auto"===n.left?n.left:"".concat(n.left,"px"),o.style.right="auto"===n.right?n.right:"".concat(n.right,"px"),o.style.pointerEvents="none",o.style.zIndex=999,Object(B.createPortal)(r,o)},W=n(1712),G=n(144),V=n(412),K=n(216),$=n(3),Y=n(53);n(1750);function Z(e){return(Z="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)}function X(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 Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){J(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function J(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Z(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Z(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Z(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return te(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ne=function(e){var t=e.annotations,n=e.triggerElementName,i=e.onClose,a=void 0===i?function(){}:i,l=Object(s.d)(),c=Object(r.useRef)(),u=ee(Object(r.useState)([]),2),f=u[0],d=u[1],p=ee(Object(r.useState)({left:"auto",right:"auto",top:"auto"}),2),h=p[0],m=p[1];Object(G.a)(c,(function(e){var t=document.querySelector("[data-element=".concat(n,"]")).contains(e.target),r=Object(K.d)(),o=Object(K.c)(),i=Object(K.b)();t||r||o||i||a()}));var b={};t.forEach((function(e){b=Q(Q({},b),Object(V.a)(e))}));var y=t.find((function(e){return e instanceof window.Core.Annotations.FreeTextAnnotation&&(e.getIntent()===window.Core.Annotations.FreeTextAnnotation.Intent.FreeText||e.getIntent()===window.Core.Annotations.FreeTextAnnotation.Intent.FreeTextCallout)})),v={};if(y){var g,w,x,S,O,E,k,_,C,A,T,j=y.getRichTextStyle();v={Font:y.Font,FontSize:y.FontSize,TextAlign:y.TextAlign,TextVerticalAlign:y.TextVerticalAlign,bold:"bold"===(null!==(g=null==j||null===(w=j[0])||void 0===w?void 0:w["font-weight"])&&void 0!==g?g:""),italic:"italic"===(null!==(x=null==j||null===(S=j[0])||void 0===S?void 0:S["font-style"])&&void 0!==x?x:""),underline:(null==j||null===(O=j[0])||void 0===O||null===(E=O["text-decoration"])||void 0===E?void 0:E.includes("underline"))||(null==j||null===(k=j[0])||void 0===k||null===(_=k["text-decoration"])||void 0===_?void 0:_.includes("word")),strikeout:null!==(C=null==j||null===(A=j[0])||void 0===A||null===(T=A["text-decoration"])||void 0===T?void 0:T.includes("line-through"))&&void 0!==C&&C}}Object(r.useEffect)((function(){var e=[];if(b.TextColor&&e.push(Y.b.TEXT_COLOR),b.StrokeColor&&e.push(Y.b.STROKE_COLOR),b.FillColor&&e.push(Y.b.FILL_COLOR),Object(Y.l)("MultiStyle",e,e[0])){var t=Object(Y.d)("currentStyleTab","iconColor");l($.a.setColorMap(t));var n=Object(Y.e)("MultiStyle").styleTabs;d(n)}}),[t]);return 0===f.length?null:o.a.createElement(U,{id:"multi-style-popup-portal",position:h},o.a.createElement("div",{className:"multi-style-container",ref:c},o.a.createElement(W.a,{annotations:t,style:b,isOpen:!0,onResize:function(){var e=Object(z.a)(n,c);m(e)},isFreeText:!!y,colorMapKey:"MultiStyle",properties:v,isRedaction:!1,isMeasure:!1,showLineStyleOptions:!1,hideSnapModeCheckbox:!1})))};ne.propTypes={annotations:f.a.array.isRequired,triggerElementName:f.a.string.isRequired,onClose:f.a.func};var re=ne,oe=n(1638),ie=n(96),ae=n(1635),le=n(5);n(1752);function se(e){return(se="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)}function ce(){return(ce=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}).apply(null,arguments)}function ue(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 fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach((function(t){de(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function de(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=se(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=se(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==se(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return he(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?he(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var me={showMultiReply:f.a.bool.isRequired,setShowMultiReply:f.a.func.isRequired,setShowMultiState:f.a.func.isRequired,showMultiStyle:f.a.bool.isRequired,setShowMultiStyle:f.a.func.isRequired,setMultiSelectMode:f.a.func.isRequired,isMultiSelectedMap:f.a.object.isRequired,setIsMultiSelectedMap:f.a.func.isRequired,multiSelectedAnnotations:f.a.array.isRequired},be=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=new Set;return e.forEach((function(e){if(e.isGrouped()){var r=i.a.getAnnotationById(e.InReplyTo,t);r&&n.add(r)}else n.add(e)})),Array.from(n)},ye=function(e){var t=e.showMultiReply,n=e.setShowMultiReply,a=e.setShowMultiState,l=e.showMultiStyle,u=e.setShowMultiStyle,f=e.setMultiSelectMode,d=e.isMultiSelectedMap,p=e.setIsMultiSelectedMap,h=e.multiSelectedAnnotations,m=pe(Object(r.useState)([]),2),b=m[0],y=m[1],v=Object(s.d)(),g=pe(Object(c.a)(),1)[0],w=Object(s.e)(I.a.getActiveDocumentViewerKey),x=Object(s.e)(I.a.isDocumentReadOnly),S=Object(s.e)(I.a.getIsCustomUIEnabled);Object(r.useEffect)((function(){var e=function(e){var n=fe({},d);return e.forEach((function(e){t(e,n)})),n},t=function(e,t){var n=i.a.getGroupAnnotations(e,w);n.some((function(e){return d[e.Id]}))&&n.forEach((function(e){t[e.Id]=e}))},n=function(e){var t=Object.keys(d),n=Object.keys(e);return t.some((function(e){return!n.includes(e)}))},r=function(t,r){"delete"===r?function(e){var t=fe({},d);e.forEach((function(e){delete t[e.Id]})),p(t)}(t):"modify"===r&&function(t){var r=e(t);n(r)&&p(r)}(t)};return i.a.addEventListener("annotationChanged",r,void 0,w),function(){i.a.removeEventListener("annotationChanged",r,w)}}),[d,w]),Object(r.useEffect)((function(){return function(){n(!1),p({})}}),[]),Object(r.useEffect)((function(){var e=h.filter((function(e){return i.a.canModify(e,w)}));y(e)}),[h]);var O=i.a.getNumberOfGroups(b,w)>1,E=!O&&(b.length>2||b.length>0&&i.a.getGroupAnnotations(b[0],w).length>1),k=Object(r.useCallback)((function(e){be(h,w).forEach((function(t){var n=Object(ae.a)(t,e,w);t.addReply(n);var r=i.a.getAnnotationManager(w);r.addAnnotation(n),r.trigger("addReply",[n,t,r.getRootAnnotation(t)])})),a(!1)}),[h,w]),_=Object(r.useMemo)((function(){return{resize:function(){}}}));if(t)return o.a.createElement(T.a.Provider,{value:_},o.a.createElement(D,{annotations:be(h,w),onSubmit:function(){return n(!1)},onClose:function(){return n(!1)}}));var C=x||0===b.length,A={dataElement:le.a.NOTE_MULTI_STYLE_BUTTON,img:"icon-menu-style-line",disabled:C,title:"action.style"};return o.a.createElement("div",{className:"multi-select-footer"},o.a.createElement("div",{className:"buttons-container"},o.a.createElement(q.a,{dataElement:le.a.NOTE_MULTI_REPLY_BUTTON,disabled:x||0===h.length,img:"icon-header-chat-line",onClick:function(){n(!0)},title:"action.comment"}),o.a.createElement(ie.a,{dataElement:le.a.NOTE_MULTI_STATE_BUTTON,title:g("option.notesOrder.status"),img:"icon-annotation-status-none",toggleElement:le.a.NOTE_STATE_FLYOUT,disabled:x||0===b.length}),o.a.createElement(oe.a,{isMultiSelectMode:!0,handleStateChange:k}),S?o.a.createElement(ie.a,ce({},A,{toggleElement:le.a.MULTI_SELECT_STYLE_PANEL_FLYOUT})):o.a.createElement(q.a,ce({},A,{onClick:function(){u(!l)}})),l&&o.a.createElement(re,{annotations:b,triggerElementName:"multiStyleButton",onClose:function(){u(!1)}}),!E&&o.a.createElement(q.a,{dataElement:le.a.NOTE_MULTI_GROUP_BUTTON,disabled:x||!O,img:"group-annotations-icon",onClick:function(){i.a.groupAnnotations(h[0],h,w)},title:"action.group"}),E&&o.a.createElement(q.a,{dataElement:le.a.NOTE_MULTI_UNGROUP_BUTTON,img:"ungroup-annotations-icon",onClick:function(){i.a.ungroupAnnotations(h,w)},title:"action.ungroup"}),o.a.createElement(q.a,{dataElement:le.a.NOTE_MULTI_DELETE_BUTTON,disabled:x||0===b.length,img:"icon-delete-line",onClick:function(){var e={title:g("warning.multiDeleteAnnotation.title"),message:g("warning.multiDeleteAnnotation.message"),confirmBtnText:g("action.delete"),onConfirm:function(){i.a.deleteAnnotations(b,void 0,w)}};v($.a.showWarningMessage(e))},title:"action.delete"})),o.a.createElement("div",{className:"close-container"},o.a.createElement(q.a,{className:"close-icon-container",onClick:function(){f(!1)},img:"ic_close_black_24px",ariaLabel:g("option.documentControls.closeTooltip")})))};ye.propTypes=me;var ve=ye,ge=n(184),we=n(105),xe=n.n(we),Se=n(72),Oe=n(60),Ee=n(54),ke=n(183),_e=n(25),Ce=n(90);n(1754);function Ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Te(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Te(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var je={notes:f.a.array.isRequired,disableFilterAnnotation:f.a.bool,setSearchInputHandler:f.a.func.isRequired,isMultiSelectMode:f.a.bool,toggleMultiSelectMode:f.a.func,isMultiSelectEnabled:f.a.bool};function qe(e){var t=e.notes,n=e.disableFilterAnnotation,a=e.setSearchInputHandler,u=e.isMultiSelectMode,f=e.toggleMultiSelectMode,d=e.isMultiSelectEnabled,p=Ae(Object(s.e)((function(e){var t;return[I.a.getSortStrategy(e),I.a.isElementDisabled(e,"sortContainer"),I.a.getNotesPanelCustomHeaderOptions(e),I.a.getAnnotationFilters(e),I.a.getIsOfficeEditorMode(e),I.a.getOfficeEditorEditMode(e),null===(t=I.a.getFeatureFlags(e))||void 0===t?void 0:t.customizableUI]}),s.c),7),h=p[0],m=p[1],b=p[2],y=p[3],v=p[4],g=p[5],w=p[6],x=Ae(Object(c.a)(),1)[0],S=Object(s.d)(),O=Ae(Object(r.useState)(!1),2),E=O[0],k=O[1],_=Ae(Object(r.useState)(!1),2),C=_[0],T=_[1],j=Ae(Object(r.useState)(""),2),N=j[0],P=j[1];Object(r.useEffect)((function(){var e=y.authorFilter,t=y.colorFilter,n=y.statusFilter,r=y.typeFilter;((null==e?void 0:e.length)>0||(null==t?void 0:t.length)>0||(null==n?void 0:n.length)>0||(null==r?void 0:r.length)>0)&&k(!0);var o=function(e){var t=e.detail,n=t.types,r=t.authors,o=t.colors,i=t.statuses;n.length>0||r.length>0||o.length>0||i.length>0?k(!0):k(!1)};return window.addEventListener(Ee.a.ANNOTATION_FILTER_CHANGED,o),function(){window.removeEventListener(Ee.a.ANNOTATION_FILTER_CHANGED,o)}}),[]),Object(r.useEffect)((function(){v&&g===_e.z.PREVIEW?(T(!0),a(""),P("")):T(!1)}),[v,g]);var R=xe()((function(e){i.a.deselectAllAnnotations(),a(e)}),500),M=o.a.createElement("div",{className:"sort-container","data-element":"sortContainer"},o.a.createElement("div",{className:"label",id:"notesSortLabel"},"".concat(x("message.sort"),":")),o.a.createElement(Se.a,{id:"notesOrderDropdown",labelledById:"notesSortLabel",dataElement:"notesOrderDropdown",disabled:0===t.length||C,ariaLabel:"".concat(x("message.sortBy")," ").concat(h),items:Object.keys(Object(ke.c)()),translationPrefix:"option.notesOrder",currentSelectionKey:h,onClickItem:function(e){S($.a.setNotesPanelSortStrategy(e))}})),L=Object(Ce.a)((function(){return S($.a.openElement("filterModal"))})),D=x(v?"message.searchSuggestionsPlaceholder":"message.searchCommentsPlaceholder"),z=o.a.createElement(Oe.a,{className:l()({header:!0,"modular-ui-header":w}),dataElement:"notesPanelHeader"},o.a.createElement(Oe.a,{className:l()({"input-container":!0,"modular-ui-input":w}),dataElement:le.a.NotesPanel.DefaultHeader.INPUT_CONTAINER},w&&o.a.createElement(A.a,{glyph:"icon-header-search"}),o.a.createElement("input",{disabled:C,type:"text",placeholder:w?"":D,"aria-label":D,onChange:function(e){P(e.target.value),R(e.target.value)},id:"NotesPanel__input",value:N})),o.a.createElement(Oe.a,{className:"comments-counter",dataElement:le.a.NotesPanel.DefaultHeader.COMMENTS_COUNTER},o.a.createElement("h2",{className:"main-comment"},x(v?"officeEditor.reviewing":"component.notesPanel")," ","(".concat(t.length,")"))),o.a.createElement(Oe.a,{className:"sort-row",dataElement:le.a.NotesPanel.DefaultHeader.SORT_ROW},m?o.a.createElement("div",{className:"sort-container"}):M,o.a.createElement("div",{className:"buttons-container"},d&&!v&&o.a.createElement(q.a,{dataElement:le.a.NOTE_MULTI_SELECT_MODE_BUTTON,className:l()({active:u}),disabled:0===t.length,img:"icon-annotation-select-multiple",onClick:function(){i.a.deselectAllAnnotations(),f()},title:x("component.multiSelectButton"),ariaPressed:u}),o.a.createElement(q.a,{dataElement:le.a.NotesPanel.DefaultHeader.FILTER_ANNOTATION_BUTTON,className:l()({active:E}),disabled:n,img:"icon-comments-filter",onClick:L,title:x("component.filter"),ariaPressed:E}))));return o.a.createElement(o.a.Fragment,null,b&&o.a.createElement(ge.a,{render:b.render,renderArguments:[t]}),(!b||!b.overwriteDefaultHeader)&&z)}qe.propTypes=je;var Ne=qe,Pe=n(160),Re=n(61),Ie=n(45),Me=n(1701);n(1756);function Le(e){return(Le="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)}function De(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 ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach((function(t){Be(e,t,n[t])})):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 Be(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Le(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Le(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Le(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fe(e){return function(e){if(Array.isArray(e))return We(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ue(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function He(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||Ue(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ue(e,t){if(e){if("string"==typeof e)return We(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?We(e,t):void 0}}function We(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ge=function(e){var t=e.currentLeftPanelWidth,n=e.notes,a=e.selectedNoteIds,u=e.setSelectedNoteIds,f=e.searchInput,d=e.setSearchInput,p=e.isMultiSelectMode,h=e.setMultiSelectMode,m=e.isMultiSelectedMap,b=e.setIsMultiSelectedMap,y=e.scrollToSelectedAnnot,v=e.setScrollToSelectedAnnot,g=e.isCustomPanel,w=e.isCustomPanelOpen,x=e.isLeftSide,S=e.parentDataElement,E=Object(s.e)(I.a.getSortStrategy),k=Object(s.e)((function(e){return I.a.isElementOpen(e,le.a.NOTES_PANEL)})),q=Object(s.e)((function(e){return I.a.isElementDisabled(e,le.a.NOTES_PANEL)})),N=Object(s.e)(I.a.getPageLabels,s.c),P=Object(s.e)(I.a.getCustomNoteFilter,s.c),R=Object(s.e)(I.a.getInternalNoteFilter,s.c),M=Object(s.e)((function(e){return S?I.a.getPanelWidth(e,S):I.a.getNotesPanelWidth(e)}),s.c),L=Object(s.e)(I.a.getNotesInLeftPanel),D=Object(s.e)(I.a.isDocumentReadOnly),z=Object(s.e)(I.a.isAnnotationNumberingEnabled),B=Object(s.e)(I.a.getEnableNotesPanelVirtualizedList),F=Object(s.e)(I.a.isInDesktopOnlyMode),H=Object(s.e)(I.a.getNotesPanelCustomEmptyPanel,s.c),U=Object(s.e)(I.a.getIsNotesPanelMultiSelectEnabled),W=Object(s.e)(I.a.getActiveDocumentViewerKey),G=Object(s.e)(I.a.getIsOfficeEditorMode),V=Object(s.e)(I.a.getOfficeEditorEditMode),K=Object(s.d)(),Y=He(Object(c.a)(),1)[0],Z=t||M,X=Object(Re.b)(),Q=He(Object(r.useState)([]),2),J=Q[0],ee=Q[1],te=He(Object(r.useState)(!1),2),ne=te[0],re=te[1],oe=He(Object(r.useState)(!1),2),ie=oe[0],ae=oe[1],se=He(Object(r.useState)(!1),2),ce=se[0],ue=se[1],fe=He(Object(r.useState)(void 0),2),de=fe[0],pe=fe[1],he=Object(r.useRef)(),me=Object(r.useRef)(0),be=B?Ie.e?25:100:1/0;Object(r.useEffect)((function(){var e=function(e){K($.a.setAnnotationNumbering(e))},t=function(e,t){"selected"===t&&pe(e[0].Id)};return i.a.addEventListener("annotationNumberingUpdated",e),i.a.addEventListener("annotationSelected",t),function(){i.a.removeEventListener("annotationNumberingUpdated",e),i.a.removeEventListener("annotationSelected",t)}}),[]);var ye=-1,we=function(e){e&&(me.current=e),K($.a.closeElement("annotationNoteConnectorLine"))},xe=function(e){var t=e.getContents(),n=i.a.getDisplayAuthor(e.Author),r=e.getCustomData("trn-annot-preview");return(null==t?void 0:t.toLowerCase().includes(f.toLowerCase()))||(null==n?void 0:n.toLowerCase().includes(f.toLowerCase()))||(null==r?void 0:r.toLowerCase().includes(f.toLowerCase()))},Se=Object(ke.c)()[E].getSortedNotes(n).filter((function(e){var t=!0;if(P&&(t=t&&P(e)),R&&(t=t&&R(e)),f){var n=e.getReplies(),r=[e].concat(Fe(n));t=t&&r.some(xe)}return t}));Object(r.useEffect)((function(){Object.keys(a).length&&-1!==ye&&setTimeout((function(){var e;null===(e=he.current)||void 0===e||e.scrollToRow(ye)}),0)}),[a]);var Oe=function(e){return!Object.keys(a).length&&(f&&Se.filter((function(e){return e.getReplies().some(xe)})).some((function(t){return t.Id===e.Id})))},Ee=He(Object(r.useState)({}),2),Ce=Ee[0],Ae=Ee[1],Te=Object(r.useCallback)((function(e,t){Ae((function(n){return ze(ze({},n),{},Be({},t,e))}))}),[Ae]),je=He(Object(r.useState)({}),2),qe=je[0],Le=je[1],De=Object(r.useCallback)((function(e,t){Le((function(n){return ze(ze({},n),{},Be({},t,e))}))}),[Le]),Ue=He(Object(r.useState)({}),2),We=Ue[0],Ge=Ue[1],Ve=function(e,t){Ge((function(n){return ze(ze({},n),{},Be({},e,[].concat(Fe(n[e]||[]),Fe(t))))}))},Ke=function(e){Ge((function(t){return ze(ze({},t),{},Be({},e,[]))}))},$e=function(e,t){var n=We[e];if((null==n?void 0:n.length)>0){var r=n.indexOf(t);r>-1&&(n.splice(r,1),Ge((function(t){return ze(ze({},t),{},Be({},e,Fe(n)))})))}};Object(r.useEffect)((function(){ee(Object.values(m))}),[m]);var Ye=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=null,l=Object(ke.c)()[E],s=l.shouldRenderSeparator,c=l.getSeparatorContent,d=0===t?null:e[t-1],h=e[t];s&&c&&(!d||s(d,h))&&(r=o.a.createElement(j.a,{renderContent:function(){return c(d,h,{pageLabels:N})}}));var g=function(){!p&&a[h.Id]&&(u((function(e){var t=ze({},e);return delete t[h.Id],t})),i.a.deselectAnnotation(h,W))},S={searchInput:f,resize:n,isSelected:a[h.Id],isContentEditable:i.a.canModifyContents(h,W)&&!h.getContents(),pendingEditTextMap:Ce,setPendingEditText:Te,pendingReplyMap:qe,setPendingReply:De,isDocumentReadOnly:D,onTopNoteContentClicked:g,isExpandedFromSearch:Oe(h),scrollToSelectedAnnot:y,sortStrategy:E,showAnnotationNumbering:z,setCurAnnotId:pe,pendingAttachmentMap:We,clearAttachments:Ke,deleteAttachment:$e,addAttachments:Ve,documentViewerKey:W};return t===ye&&setTimeout((function(){v(!1),K($.a.openElement("annotationNoteConnectorLine"))}),0),o.a.createElement("div",{role:"listitem",className:"note-wrapper"},r,o.a.createElement(T.a.Provider,{value:S},o.a.createElement(C.a,{isCustomPanelOpen:w,shouldHideConnectorLine:x,annotation:h,isMultiSelected:!!m[h.Id],isMultiSelectMode:p,isMultiSelectEnabled:U,isInNotesPanel:!0,handleMultiSelect:function(e){if(e){var t=ze({},m),n=i.a.getGroupAnnotations(h,W);n.forEach((function(e){t[e.Id]=e})),b(t),i.a.selectAnnotations(n)}else{var r=ze({},m),o=i.a.getGroupAnnotations(h,W);o.forEach((function(e){delete r[e.Id]})),b(r),i.a.deselectAnnotations([h].concat(Fe(o)))}}})))},Ze=o.a.createElement("div",{className:"no-results"},o.a.createElement("div",null,o.a.createElement(A.a,{className:"empty-icon",glyph:"illustration - empty state - outlines"})),o.a.createElement("p",{className:"msg no-margin"},Y("message.noResults"))),Xe=null!=H&&H.icon?H.icon:G?"ic-edit-page":"illustration - empty state - outlines",Qe=null!=H&&H.message?H.message:Y(G?"message.noRevisions":"message.noAnnotations"),Je=H&&H.readOnlyMessage?H.readOnlyMessage:Y("message.noAnnotationsReadOnly"),et=H&&!H.hideIcon||!H,tt=H&&H.render,nt=o.a.createElement("div",{className:"no-annotations"},tt?o.a.createElement(ge.a,{render:H.render}):o.a.createElement(o.a.Fragment,null,et&&o.a.createElement("div",null,o.a.createElement(A.a,{className:"empty-icon",glyph:Xe})),o.a.createElement("div",{className:"msg"},D?Je:Qe))),rt=o.a.createElement("div",{className:"multi-select-place-holder"}),ot=o.a.createElement("div",{className:"multi-reply-place-holder"}),it=Object.keys(a);if(1===it.length)ye=Se.findIndex((function(e){return e.Id===it[0]}));else if(it.length){Se.filter((function(e){return a[e.Id]})).length&&(ye=Se.findIndex((function(e){return e.Id===de})))}var at,lt={};return g||!F&&X||(lt={width:"".concat(Z,"px"),minWidth:"".concat(Z,"px")}),!q&&(k||L||g)?o.a.createElement("div",{className:l()({"notes-panel-container":!0,"office-editor":G})},o.a.createElement("div",{className:l()({Panel:!0,NotesPanel:!0}),style:lt,"data-element":"notesPanel",onMouseUp:function(){return i.a.deselectAllAnnotations}},!F&&X&&!L&&o.a.createElement("div",{className:"close-container"},o.a.createElement("div",{className:"close-icon-container",onClick:function(){K($.a.closeElements([le.a.NOTES_PANEL]))}},o.a.createElement(A.a,{glyph:"ic_close_black_24px",className:"close-icon"}))),o.a.createElement(o.a.Fragment,null,o.a.createElement(Ne,{notes:Se,disableFilterAnnotation:0===n.length,setSearchInputHandler:d,isMultiSelectMode:p,toggleMultiSelectMode:function(){h(!p)},isMultiSelectEnabled:U}),0===Se.length?0===n.length?nt:Ze:Se.length<=be?o.a.createElement(_,{ref:he,notes:Se,onScroll:we,initialScrollTop:me.current},Ye):o.a.createElement(O,{ref:he,notes:Se,sortStrategy:E,onScroll:we,initialScrollTop:me.current,selectedIndex:ye},Ye),p?ne?ot:rt:null,G&&!p&&Se.length>0&&o.a.createElement("div",{className:"preview-all-changes"},o.a.createElement("div",{className:"divider"}),o.a.createElement(Pe.a,{isSwitch:!0,checked:V===_e.z.PREVIEW,label:Y("officeEditor.previewAllChanges"),onChange:function(e){return i.a.getOfficeEditor().setEditMode(e.target.checked?_e.z.PREVIEW:_e.z.REVIEWING)}})))),p&&o.a.createElement(ve,{showMultiReply:ne,setShowMultiReply:re,showMultiState:ie,setShowMultiState:ae,showMultiStyle:ce,setShowMultiStyle:ue,setMultiSelectMode:h,isMultiSelectedMap:m,setIsMultiSelectedMap:b,multiSelectedAnnotations:J}),o.a.createElement(Me.a,{annotationId:de,addAttachments:Ve}),(at=Y(G?"officeEditor.reviewing":"component.notesPanel"),o.a.createElement("p",{"aria-live":"assertive",style:{position:"absolute",left:"-9999px"}},Se.length>0?"".concat(at," ").concat(Se.length):Y("message.noResults")))):null},Ve=n(248);function Ke(e){return(Ke="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)}function $e(){return($e=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}).apply(null,arguments)}function Ye(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 Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(n),!0).forEach((function(t){Xe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ke(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ke(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ke(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Je(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Je(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Je(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function et(e){var t=e.isCustomPanelOpen,n=e.parentDataElement,a=void 0===n?void 0:n,l=e.dataElement,c=Qe(Object(s.e)((function(e){return[I.a.isElementOpen(e,a||l||le.a.NOTES_PANEL),I.a.getNotesInLeftPanel(e),I.a.getIsNotesPanelMultiSelectEnabled(e),I.a.isMultiViewerMode(e),I.a.getActiveDocumentViewerKey(e),I.a.getIsOfficeEditorMode(e)]}),s.c),6),u=c[0],f=c[1],d=c[2],p=c[3],h=c[4],m=c[5],b=Qe(Object(r.useState)(""),2),y=b[0],v=b[1],g=Qe(Object(r.useState)(!1),2),w=g[0],x=g[1],S=Qe(Object(r.useState)(!1),2),O=S[0],E=S[1],k=Qe(Object(r.useState)({1:[],2:[]}),2),_=k[0],C=k[1],A=Object(r.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;_[t]=e,C(Ze({},_))}),[h,_[1],_[2],C]),T=_[h]||_[1],j=Qe(Object(r.useState)({1:{},2:{}}),2),q=j[0],N=j[1],P=Object(r.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;q[t]=e,N(Ze({},q))}),[h,q[1],q[2],N]),R=q[h]||q[1],M=Qe(Object(r.useState)({1:{},2:{}}),2),L=M[0],D=M[1],z=Object(r.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;L[t]=e,D(Ze({},L))}),[h,L[1],L[2],D]),B=L[h]||L[1],F=function(e){var t=i.a.getAnnotationManager().getFormFieldCreationManager(),n=e instanceof window.Core.Annotations.WidgetAnnotation,r=e.Listable&&!n,o=n&&t.isInFormFieldCreationMode(),a=!m||Object(Y.g)(e)===Y.c.TRACKED_CHANGE;return(r||o)&&!e.isReply()&&!e.Hidden&&!e.isGrouped()&&e.ToolName!==window.Core.Tools.ToolNames.CROP&&!e.isContentEditPlaceholder()&&a};function H(e){var t=e.find((function(e){return e.isGrouped()})),n=[];return t&&e.forEach((function(e){t.InReplyTo!==e.InReplyTo&&t.InReplyTo!==e.Id||n.push(e)})),n}Object(r.useEffect)((function(){var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return function(){A([],e),P({}),v("")}},t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return function(){var t=i.a.getSelectedAnnotations(e),n=H(t);w&&n.length===t.length&&x(!1),A(i.a.getAnnotationsList(e).filter(F),e)}},n=e(1);i.a.addEventListener("documentUnloaded",n);var r,o,a=t(1);return i.a.addEventListener("annotationChanged",a),i.a.addEventListener("annotationHidden",a),i.a.addEventListener("updateAnnotationPermission",a),a(),p&&(r=e(2),i.a.addEventListener("documentUnloaded",r,void 0,2),o=t(2),i.a.addEventListener("annotationChanged",o,void 0,2),i.a.addEventListener("annotationHidden",o,void 0,2),i.a.addEventListener("updateAnnotationPermission",o,void 0,2),o()),function(){p&&(i.a.removeEventListener("documentUnloaded",r,2),i.a.removeEventListener("annotationChanged",o,2),i.a.removeEventListener("annotationHidden",o,2),i.a.removeEventListener("updateAnnotationPermission",o,2)),i.a.removeEventListener("documentUnloaded",n),i.a.removeEventListener("annotationChanged",a),i.a.removeEventListener("annotationHidden",a),i.a.removeEventListener("updateAnnotationPermission",a)}}),[p,m]),Object(r.useEffect)((function(){var e,n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return function(n,r){var o=i.a.getSelectedAnnotations(e),a={};o.forEach((function(e){a[e.Id]=!0})),(t||u||f)&&(P(a,e),E(!0));var l=H(o),s=o.length>1&&l.length!==o.length||w;d&&"selected"===r&&s?(x(!0),o.forEach((function(e){B[e.Id]=e})),z(Ze({},B),e)):"deselected"===r&&(n.forEach((function(e){delete B[e.Id]})),z(Ze({},B),e))}},r=n(1);return r(),i.a.addEventListener("annotationSelected",r),p&&((e=n(2))(),i.a.addEventListener("annotationSelected",e,void 0,2)),function(){i.a.removeEventListener("annotationSelected",r),p&&i.a.removeEventListener("annotationSelected",e,2)}}),[t,u,f,w,B,d,p]);var U={notes:T,selectedNoteIds:R,setSelectedNoteIds:P,searchInput:y,setSearchInput:v,isMultiSelectMode:w,setMultiSelectMode:x,isMultiSelectedMap:B,setIsMultiSelectedMap:z,scrollToSelectedAnnot:O,setScrollToSelectedAnnot:E};return o.a.createElement(Ge,$e({},e,U))}var tt=function(e){return o.a.createElement(Ve.a,{wrapOnlyInMultiViewerMode:!0},o.a.createElement(et,e))};t.default=tt},1844:function(e,t,n){"use strict";var r=n(1605),o=n(1587);var i=function(){if(!arguments.length)return[];var e=arguments[0];return Object(o.a)(e)?e:[e]};var a=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};var l=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1};var s=function(e,t){return!!(null==e?0:e.length)&&l(e,t,0)>-1};var c=function(e,t,n,r,o,l){var c=1&n,u=e.length,f=t.length;if(u!=f&&!(c&&f>u))return!1;var d=l.get(e),p=l.get(t);if(d&&p)return d==t&&p==e;var h=-1,m=!0,b=2&n?new i:void 0;for(l.set(e,t),l.set(t,e);++h<u;){var y=e[h],v=t[h];if(r)var g=c?r(v,y,h,t,e,l):r(y,v,h,e,t,l);if(void 0!==g){if(g)continue;m=!1;break}if(b){if(!a(t,(function(e,t){if(!s(b,t)&&(y===e||o(y,e,n,r,l)))return b.push(t)}))){m=!1;break}}else if(y!==v&&!o(y,v,n,r,l)){m=!1;break}}return l.delete(e),l.delete(t),m};var u=function(e,t){return e===t||e!=e&&t!=t},f=n(1625),d=Object.prototype.hasOwnProperty;var p=function(e,t,n,r,o,i){var a=1&n,l=Object(f.a)(e),s=l.length;if(s!=Object(f.a)(t).length&&!a)return!1;for(var c=s;c--;){var u=l[c];if(!(a?u in t:d.call(t,u)))return!1}var p=i.get(e),h=i.get(t);if(p&&h)return p==t&&h==e;var m=!0;i.set(e,t),i.set(t,e);for(var b=a;++c<s;){var y=e[u=l[c]],v=t[u];if(r)var g=a?r(v,y,u,t,e,i):r(y,v,u,e,t,i);if(!(void 0===g?y===v||o(y,v,n,r,i):g)){m=!1;break}b||(b="constructor"==u)}if(m&&!b){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(m=!1)}return i.delete(e),i.delete(t),m},h=n(1623),m=n(1603),b=n(1643),y="[object Object]",v=Object.prototype.hasOwnProperty;var g=function(e,t,n,i,a,l){var s=Object(o.a)(e),f=Object(o.a)(t),d=s?"[object Array]":Object(h.a)(e),g=f?"[object Array]":Object(h.a)(t),w=(d="[object Arguments]"==d?y:d)==y,x=(g="[object Arguments]"==g?y:g)==y,S=d==g;if(S&&Object(m.a)(e)){if(!Object(m.a)(t))return!1;s=!0,w=!1}if(S&&!w)return l||(l=new r.a),s||Object(b.a)(e)?c(e,t,n,i,a,l):u(e,t,d,n,i,a,l);if(!(1&n)){var O=w&&v.call(e,"__wrapped__"),E=x&&v.call(t,"__wrapped__");if(O||E){var k=O?e.value():e,_=E?t.value():t;return l||(l=new r.a),a(k,_,n,i,l)}}return!!S&&(l||(l=new r.a),p(e,t,n,i,a,l))},w=n(1607);var x=function e(t,n,r,o,i){return t===n||(null==t||null==n||!Object(w.a)(t)&&!Object(w.a)(n)?t!=t&&n!=n:g(t,n,r,o,e,i))};t.a=function(e,t){return x(e,t)}}}]);
4
4
  //# sourceMappingURL=chunk.26.js.map