1(globalThis.webpackChunkspas=globalThis.webpackChunkspas||[]).push([[8957],{5971(e,t,n){"use strict";n.d(t,{b:()=>g,t:()=>w});var r=n(96540),i=n(10086),s=n(89759),o=n(53933),a=n(32485),l=n.n(a),c=n(70750),u=n(5785),h=n(88523),d=n(61459),p=n(86948);function m(){return m=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},m.apply(null,arguments)}const f=e=>{if("User"===e.contentable_type){const t=(0,d.N)(e);return r.createElement(h.Ay,{user:t,size:"sm",showLink:!1})}const t=(0,c.XB)(e);return t?r.createElement(u.Ay,{className:`ContentResult--${e.contentable_type}`,name:t,size:"lg"}):null},g=e=>{let{item:t,className:n,...i}=e;const s=l()("ContentResult",n),o=(0,c.LK)(t),a=(0,c.h$)(t);return r.createElement(p.A,m({className:s},i,{icon:f(t),title:o,subtitle:a}))};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},b.apply(null,arguments)}function v(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class y extends r.Component{constructor(){super(...arguments),v(this,"state",{options:[],hasSelection:!1,isLoading:!1}),v(this,"handleSearch",e=>{if(!e)return;this.setState(()=>({isLoading:!0}));const t={q:e,types:this.props.types,exclude_keys:this.props.excludeResourceKeys,exclude_providers:this.props.excludeProviders,contexts:["path","public"]};this.props.fetchResults(t).then(e=>{let{results:t}=e;this.setState(()=>({options:t,isLoading:!1}))})}),v(this,"handleSelect",e=>{e.length&&(this.typeahead&&(this.typeahead.getInstance().clear(),this.setState(()=>({options:[],hasSelection:!1}))),this.props.onSelect(e[0]))}),v(this,"renderMenuItemChildren",e=>r.createElement(g,{key:e.id,item:e}))}render(){return r.createElement(s.EX,b({className:"ViequesContentTypeahead"},this.state,{ref:e=>{this.typeahead=e},labelKey:"title",multiple:!1,allowNew:!1,useCache:!1,filterBy:()=>!0,onChange:this.handleSelect,onSearch:this.handleSearch,placeholder:this.props.placeholder,renderMenuItemChildren:this.renderMenuItemChildren}))}}const E={fetchResults:o.Jg},w=(0,i.Ng)(null,E)(y)},61459(e,t,n){"use strict";n.d(t,{N:()=>i,R:()=>r});const r=e=>{if(!e.user_id&&!e.user_full_name)return null;const[t,n]=e.user_full_name.split(" "),r={full_name:e.user_full_name||"",profile_photo_url:e.user_image_url,job_title:e.user_title,first_name:t,last_name:n};return e.user_id&&(r.id=e.user_id),r},i=e=>({id:e.user_id,full_name:e.user_full_name,profile_photo_url:e.user_image_url,job_title:e.user_title})},86948(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(96540),i=n(32485),s=n.n(i);function o(){return o=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},o.apply(null,arguments)}const a=e=>{let{icon:t,title:n,subtitle:i,className:a,isHighlighted:l=!1,...c}=e;const u=s()("Result",a,{isHighlighted:l});return r.createElement("div",o({className:u},c),t&&r.createElement("div",{className:"Result--left"},t),r.createElement("div",{className:"Result--right"},r.createElement("div",{className:"Result--label"},n),i&&r.createElement("div",{className:"Result--subtitle"},i)),r.createElement("div",{className:"Result--gradient"}))}},50102(e,t,n){"use strict";n.d(t,{A:()=>h});var r,i,s,o=n(96540),a=n(40961),l=n(39527),c=n(46492);class u extends o.Component{componentDidMount(){this.props.inView&&this.scrollIntoView()}UNSAFE_componentWillReceiveProps(e){e.inView&&!this.props.inView&&(this.shouldScroll=!0)}componentDidUpdate(){this.shouldScroll&&(this.shouldScroll=!1,this.scrollIntoView())}scrollIntoView(){if(!this.domEl)return;if(!this.props.inView)return;const{horizontal:e,duration:t,offset:n,smooth:r,delay:i}=this.props,s=a.findDOMNode(this.domEl);if(s){const o=(0,l.A)(s,e);e?(0,c.rI)(s,o):(0,c._n)(s,o,{delay:i,duration:t,offset:n,smooth:r})}}render(){const e=o.Children.only(this.props.children);return o.cloneElement(e,{ref:e=>{this.domEl=e}})}}r=u,s={offset:0,duration:100,smooth:!0,delay:0,horizontal:!1},(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i="defaultProps"))in r?Object.defineProperty(r,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[i]=s;const h=u},73118(e,t,n){"use strict";n.r(t),n.d(t,{RichEditor:()=>Wt,SimpleTextEditor:()=>Gt,defaultRichEditorProps:()=>f,editorHasContent:()=>qt,html:()=>xe,raw:()=>ke});var r=n(96540),i=n(25982),s=n.n(i),o=n(32485),a=n.n(o),l=n(53100),c=n.n(l),u=n(20311),h=n.n(u),d=n(67739),p=n(66209),m=n(12530);const f={horizontalPadding:12,alwaysShowToolbar:!1,plugins:[],autoFocus:!1,border:!0,noMinEditorHeight:!1};var g=n(37950),b=n(12572),v=n.n(b),y=n(91810),E=n.n(y),w=n(55378),S=n.n(w),C=n(70750),k=n(26573),P=n(5785);const x="A-Za-zÃ-ÿ0-9'\\.\\+\\-",N=e=>{const t=function(e){const t=new RegExp("(?:^|\\s)("+e+"|"+e+`[${x}]+`+`[${arguments.length>
11&&void 0!==arguments[1]&&!arguments[1]?x:`${x} `}]*)$`);return e=>{const n=t.exec(e);return n?n[1]:null}}(e);return e=>{if(e.isBlurred)return null;if(e.isExpanded)return null;const n=e.endText.text.slice(0,e.focusOffset);return t(n)}};function O(){return O=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},O.apply(null,arguments)}function j(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class T extends r.Component{constructor(){super(...arguments),j(this,"handleAddMention",e=>{e.preventDefault();const{state:t,onChange:n,trigger:r}=this.props,i=((e,t)=>e.transform().insertText(t).apply())(t,r);n(i)})}render(){return r.createElement(k.Ay,{onMouseDown:this.handleAddMention,title:"Add Mention"},this.props.icon)}}var A=n(10086),_=n(44829);const M=(0,_.M2)("mentioning/SEARCH_MENTIONABLES");var R=n(87147),L=n(78659),I=n.n(L);const D=()=>({x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop});function H(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class F extends r.Component{constructor(){super(...arguments),H(this,"state",{searchString:"",highlightIndex:0}),H(this,"receiveEl",e=>{this.domEl=e}),H(this,"handleSearch",()=>{this.props.onSearch(this.state.searchString)}),H(this,"handleHighlightSuggestion",e=>{this.setState({highlightIndex:e})}),H(this,"handleSelectItem",e=>{const{state:t,onSelect:n}=this.props,{searchString:r}=this.state,i=this.props.suggestions[e];if(r&&i){const e=n(t,r,i);this.props.onChange(e)}}),H(this,"changeHighlight",e=>{this.setState((t,n)=>({highlightIndex:I()(t.highlightIndex+e,0,n.suggestions.length-1)}))}),H(this,"handleHighlightNext",()=>this.changeHighlight(1)),H(this,"handleHighlightPrev",()=>this.changeHighlight(-1)),H(this,"handleEditorKeyDown",(e,t,n)=>{if(this.state.searchString&&this.props.suggestions.length>0)if("down"===t.key)e.preventDefault(),this.handleHighlightNext();else if("up"===t.key)e.preventDefault(),this.handleHighlightPrev();else if("enter"===t.key)return e.preventDefault(),this.handleSelectItem(this.state.highlightIndex),n;return null})}componentDidMount(){this.props.hackKeyDownImpl(this.handleEditorKeyDown),this.positionMenu()}UNSAFE_componentWillReceiveProps(e){const t=e.extractSearchString(e.state);t!==this.state.searchString&&this.setState({searchString:t||"",highlightIndex:0},this.handleSearch)}componentDidUpdate(){this.positionMenu()}componentWillUnmount(){this.props.hackKeyDownImpl(null)}positionMenu(){const{state:e}=this.props,{domEl:t}=this;if(!t)return;let n=-1e4,r=-1e4,i=0,s=0;if(this.state.searchString){const t=e.document.getNode(e.endKey),o=(0,g.findDOMNode)(t).getBoundingClientRect(),a=document.body.clientHeight/2,l=D();o.top>a?(n=o.top+l.y,s=-100):n=o.bottom+l.y,r=o.left+l.x,i=1}const o={top:`${n}px`,left:`${r}px`,opacity:`${i}`,transform:`translate(0, ${s}%)`};t&&Object.assign(t.style,o)}renderChildren(){const{searchString:e,highlightIndex:t}=this.state;return e?this.props.suggestions.map((e,n)=>this.props.renderSuggestion(e,{highlightIndex:t,onHighlight:this.handleHighlightSuggestion,onSelect:this.handleSelectItem,index:n})):null}render(){const{className:e}=this.props;return r.createElement(R.Portal,null,r.createElement("div",{className:a()(e),style:{position:"absolute",transition:"opacity .5s",opacity:0,zIndex:2e3},ref:this.receiveEl},this.renderChildren()))}}const z=F;var $=n(5971),U=n(16351),B=n(49371),K=n(50102);function q(){return q=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},q.apply(null,arguments)}const V=(0,U.A)({onMouseOver:e=>()=>e.onHighlight(e.index),onMouseDown:e=>t=>{(0,B.Ml)(t)&&(t.preventDefault(),e.onSelect(e.index))}})(e=>{let{className:t,children:n,...i}=e;return r.createElement(K.A,{inView:i.index===i.highlightIndex},r.createElement("div",q({className:a()("MentionSuggestion",t)},E()(["index","highlightIndex","onHighlight","onSelect"],i)),n))});function W(){return W=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},W.apply(null,arguments)}const X=e=>{let{mention:t,isHighlighted:n,...i}=e;return r.createElement(V,W({},i,{className:a()("APIMentionSuggestion",{isHighlighted:n})}),r.createElement($.b,{item:t,isHighlighted:n}))};function J(){return J=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},J.apply(null,arguments)}function G(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Y extends r.Component{constructor(){super(...arguments),G(this,"state",{suggestions:[]}),G(this,"componentWillUnmount",()=>this.handleSearch.cancel()),G(this,"handleSearch",v()(300,e=>{if(!e)return void this.setState({suggestions:[]});const t=e.slice(1);this.props.searchMentionables({query:t,...this.props.context}).then(e=>this.setState({suggestions:e}))})),G(this,"renderSuggestion",(e,t)=>r.createElement(X,J({key:`${e.contentable_type}-${e.contentable_id}`,mention:e,isHighlighted:t.index===t.highlightIndex},t)))}render(){const e=E()(["searchMentionables"],this.props);return r.createElement(z,J({className:"APIMentionPortal",onSearch:this.handleSearch,renderSuggestion:this.renderSuggestion,suggestions:this.state.suggestions},e))}}const Q={searchMentionables:e=>{let{query:t,limit:n=10,...r}=e;return(0,_.N5)({endpoint:"/users/site_content",searchParams:{q:t,limit:n,...r},actionTypes:M})}},Z=(0,A.Ng)(null,Q)(Y);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},ee.apply(null,arguments)}const te=e=>{let{href:t,label:n,...i}=e;return r.createElement("a",ee({className:"APIMention",href:t},i),n)},ne=(e,t,n)=>{const r=g.Inline.create({type:"@-mention",data:n,isVoid:!0});return e.transform().extend(-t.length).insertInline(r).collapseToStartOfNextText().insertText(" ").apply()},re=e=>{let{context:t}=e;const n=(e=>{let{onSelect:t,MentionPortal:n,extraProps:i}=e;const s=r.createElement(P.Ay,{name:"at"}),o=N("@");let a;return{onKeyDown:(e,t,n)=>
1a(e,t,n),renderToolbarButtons:e=>je?null:r.createElement(T,O({key:"MentionToolbarButton"},e,{trigger:"@",icon:s})),render:(e,s,l)=>r.createElement("div",{className:"MentionPortal--container"},r.createElement(n,O({trigger:"@",state:s,onChange:l.onChange,onSelect:t,extractSearchString:o,hackKeyDownImpl:e=>{a=e}},i)),e.children)}})({onSelect:ne,trigger:"@",MentionPortal:Z,extraProps:{context:t}});return n};var ie=n(73916),se=n.n(ie);function oe(){return oe=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},oe.apply(null,arguments)}const ae=e=>{let{attributes:t,children:n}=e;return r.createElement("span",oe({className:"LinkNode"},t),n)};function le(){return le=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},le.apply(null,arguments)}const ce=e=>t=>r.createElement(e,t.attributes,t.children),ue={ul_list:"ul",ol_list:"ol",list_item:"li",blockquote:"blockquote",div:"div"},he={italic:"i",bold:"b",underline:"u"},de={nodes:{...se()(ue,ce),link:ae,"@-mention":e=>{let{node:t,attributes:n}=e;const i=t.data.toJS();let s;return s=i.contentable_type?(0,C.LK)(i):i.label,r.createElement("span",le({className:"APIMention"},n),s)},paragraph:e=>{const{placeholder:t,placeholderClassName:n,placeholderStyle:i}=e.editor.props;return r.createElement("p",le({},e.attributes,{style:{position:"relative"}}),e.children,t&&r.createElement(g.Placeholder,{className:n,node:e.node,parent:e.state.document,state:e.state,style:i},t))}},marks:se()(he,ce)};var pe=n(9404),me=n(90380),fe=n(38117);const ge="inline",be="link",ve=new RegExp("(?:^|\\s)?("+fe.eK+")$","i"),ye=e=>/^(?:f|ht)tps?:\/\//.test(e)?e:`http://${e}`,Ee=e=>{const t=g.Text.createFromString(e);return g.Inline.create({type:be,data:g.Data.create({href:ye(e)}),nodes:new pe.List([t])})},we={...(0,me.A)({trigger:"space",before:ve,transform:(e,t,n,r)=>{const i=r.before[0];return e.insertInline(Ee(i)).collapseToStartOfNextText().insertText(" ")}}),onPaste:(e,t,n)=>"text"!==t.type&&"html"!==t.type?null:(0,fe.gU)(t.text)?(e.preventDefault(),n.transform().insertInline(Ee(t.text)).apply()):null},Se=e=>(t,n)=>({deserialize(r,i){if(r.tagName===t.toUpperCase())return{kind:e,type:n,nodes:i(r.childNodes)}},serialize(i,s){if(i.kind===e&&i.type===n)return r.createElement(t,{},s)}}),Ce=e=>{const t=e.parentElement;return!!t&&("PRE"===t.tagName||Ce(t))},ke=g.Raw,Pe=g.Plain,xe=new g.Html({rules:[...S()(ue,Se("block")),...S()(he,Se("mark")),{deserialize(e,t){if(e instanceof HTMLAnchorElement&&!e.classList.contains("APIMention"))return{kind:ge,type:be,data:g.Data.create({href:e.href}),nodes:t(e.childNodes)}},serialize(e,t){if(e.kind===ge&&e.type===be)return r.createElement("a",{href:e.data.get("href"),target:"_blank",rel:"noopener noreferrer"},t)}},{deserialize(e){if(e instanceof HTMLAnchorElement&&e.classList.contains("APIMention"))return{kind:"inline",type:"@-mention",isVoid:!0,data:{href:e.href,label:e.textContent}}},serialize(e){if("inline"===e.kind&&"@-mention"===e.type){const t=e.data.toJS();let n;return n=t.contentable_type?(0,C.LK)(t):t.label,r.createElement(te,{href:e.data.get("href"),label:n})}}},Se("block")("p","paragraph"),Se("block")("p","line"),{deserialize(e){if("BR"===e.tagName)return{kind:"text",text:"\n"}}},{deserialize(e){if(e.nodeType===Node.TEXT_NODE&&!Ce(e)){const t=(e=>{const t=e.replace(/^[\s]+$/g," ").replace(/^\n+\s+/g," ").replace(/^\n+/g,"").replace(/\n+\s*/g," ");return" "===t?"":t})(e.textContent);return 0===t.length?null:{kind:"text",text:t}}}}]});function Ne(){return Ne=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},Ne.apply(null,arguments)}function Oe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const je=navigator.userAgent.toLowerCase().indexOf("android")>-1;class Te extends r.PureComponent{constructor(){super(...arguments),Oe(this,"state",{value:Pe.serialize(this.props.state)}),Oe(this,"handleChange",e=>{this.setState({value:e.target.value}),this.syncChanges()}),Oe(this,"syncChanges",v()(100,()=>{this.props.onChange(Pe.deserialize(this.state.value))}))}UNSAFE_componentWillReceiveProps(e){const t=this.props;e.state!==t.state&&this.setState({value:Pe.serialize(e.state)})}render(){const{className:e,...t}=this.props;return r.createElement("textarea",Ne({className:a()("AndroidFallbackEditor",e),value:this.state.value,onChange:this.handleChange,rows:1}
1,E()(["onChange","state"],t)))}}const Ae=Te;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},_e.apply(null,arguments)}function Me(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Re extends r.Component{constructor(){super(...arguments),Me(this,"handleChange",e=>{this.props.onChange(e)})}render(){const{plugins:e,className:t,...n}=this.props;return je?r.createElement(Ae,_e({className:a()("TextEditor",t)},n)):r.createElement(g.Editor,_e({},n,{className:a()("TextEditor",t),schema:de,plugins:e,placeholderClassName:"TextEditor--placeholder",onChange:this.handleChange}))}}const Le=Re;var Ie=n(46653);const De=e=>{let{show:t}=e;return t?r.createElement("div",{className:"DisabledOverlay"},r.createElement("div",{className:"centered"},r.createElement(Ie.A,{label:"Saving...",hasMargin:!1}))):null};var He=n(16276),Fe=n.n(He),ze=n(63419),$e=n.n(ze),Ue=n(72115),Be=n.n(Ue),Ke=n(66129),qe=n.n(Ke),Ve=n(4364);const We=["top","right","bottom","left"],Xe=e=>We[e%We.length],Je=e=>{let{point:t,size:n,color:r,directions:i}=e;return{[qe()(`border-${t}-width`)]:0,[qe()(`border-${i.right}-width`)]:n,[qe()(`border-${i.base}-width`)]:n,[qe()(`border-${i.left}-width`)]:n,[qe()(`border-${i.right}-color`)]:"transparent",[qe()(`border-${i.base}-color`)]:r,[qe()(`border-${i.left}-color`)]:"transparent"}},Ge=e=>{let{point:t,size:n,offset:i,color:s,borderColor:o,borderWidth:l}=e;const c=["top","bottom"].includes(t)?"vertical":"horizontal",u=(e=>{const t=We.indexOf(e);return{right:Xe(t+1),base:Xe(t+2),left:Xe(t+3)}})(t),h=Je({point:t,size:n,color:o,directions:u});h[u.base]=i+l;const d=Je({point:t,size:n,color:s,directions:u});return d[u.base]=i,r.createElement("div",{className:"DropdownCaret",style:{position:"relative",[qe()(`padding-${t}`)]:n}},r.createElement("div",{className:a()("DropdownCaret--caret",c),style:h}),r.createElement("div",{className:a()("DropdownCaret--caret",c),style:d}))};Ge.defaultProps={point:"bottom",color:"#fff",size:7,offset:-1,borderWidth:1,borderColor:"#ddd"};const Ye=(0,Ve.A)(Ge);function Qe(){return Qe=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},Qe.apply(null,arguments)}function Ze(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const et={top:-1e4,left:-1e4,scale:0,arrowPosition:"center"};class tt extends r.PureComponent{constructor(){super(...arguments),Ze(this,"state",et),Ze(this,"getToolbarStyle",()=>{const{top:e,left:t,scale:n,arrowPosition:r}=this.state;return{position:"absolute",transition:"transform .1s",opacity:"1",top:`${e}px`,left:`${t}px`,transform:`translate(${"right"===r?-100:-50}%, -100%) scale(${n})`}}),Ze(this,"receiveEl",e=>{this.toolbar=e}),Ze(this,"positionMenu",()=>{const{state:e,positionPreserved:t}=this.props,{toolbar:n}=this;if(!n||t)return;const r=!e.isBlurred&&!e.isCollapsed;let i=et;if(r){const e=window.getSelection().getRangeAt(0).getBoundingClientRect(),t=D(),r=document.body.clientWidth-e.right;i={top:e.top+t.y,left:e.left+t.x+e.width/2,scale:1,arrowPosition:r>n.offsetWidth?"center":"right"}}Be()(this.state,i)||this.setState(i)}),Ze(this,"handleClickOut",()=>{this.setState(et)}),Ze(this,"handleTransitionEnd",e=>{e.target===this.toolbar&&this.props.onClose&&this.props.onClose()}),Ze(this,"render",()=>r.createElement(R.Portal,null,r.createElement("div",{id:"HoverMenu",className:a()("HoverMenu",`HoverMenu--arrowPosition-${this.state.arrowPosition}`,this.props.className),style:this.getToolbarStyle(),onTransitionEnd:this.handleTransitionEnd,ref:this.receiveEl},r.createElement(s(),{onClickOut:this.handleClickOut},r.createElement("div",null,this.props.children,r.createElement(Ye,{size:8,offset:-2,borderColor:"#bababa"}))))))}componentDidMount(){this.positionMenu()}componentDidUpdate(){this.positionMenu()}}const nt=tt,rt=e=>{let{children:t,isActive:n,...i}=e;h()(!$e()("onClick",i),"Don't use onClick in a HoverMenuButton, use onMouseDown instead.");const s=E()(["state","plugins"],i);return r.createElement(k.Ay,Qe({className:a()("HoverMenuButton",{isActive:n}),bsSize:"sm",active:n},s),t)};function it(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class st extends r.Component{constructor(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];super(e,...n),it(this,"componentDidMount",()=>{this.input&&this.input.focus()}),it(this,"getInitialValue",()=>{const{state:e}=this.props,t=e.inlines.find(e=>e.type===be);return t&&t?t.data.get("href"):""}),it(this,"hasLinks",()=>this.props.state.inlines.some(e=>e.type===be)),it(this,"handleChange",e=>{this.setState({input:e.target.value})}),it(this,"handleSubmit",e=>{e.preventDefault(),e.stopPropagation();const{input:t}=this.state,{state:n,onChange:r,onClose:i}=this.props,s=g.Inline.create({type:be,data:g.Data.create({href:t})});let o=n.transform();this.hasLinks()&&(o=o.unwrapInline(be)),o=o.wrapInline(s),r(o.apply()),i()}),it(this,"handleRemove",()=>
1{const{state:e,onChange:t,onClose:n}=this.props;t(e.transform().unwrapInline(be).apply()),n()}),it(this,"render",()=>r.createElement("form",{className:"LinkEditor",onSubmit:this.handleSubmit},r.createElement("input",{name:"url",ref:e=>{this.input=e},value:this.state.input,placeholder:"Enter URL",className:"LinkEditor--input",onChange:this.handleChange}),r.createElement(Fe(),null,r.createElement(rt,{type:"submit",disabled:!(0,fe.gU)(this.state.input)},r.createElement(P.Ay,{name:"check"})),this.hasLinks()&&r.createElement(rt,{type:"button",onMouseDown:this.handleRemove},r.createElement(P.Ay,{name:"close"}))))),this.state={input:this.getInitialValue()}}}var ot=n(53162),at=n.n(ot),lt=n(8437),ct=n.n(lt),ut=n(89899),ht=n.n(ut),dt=n(68821),pt=n.n(dt);const mt=(e,t)=>ht()(pt()(e),at(),pt()(e=>e(t)),ct());function ft(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class gt extends r.PureComponent{constructor(){super(...arguments),ft(this,"state",{isEditingLink:!1}),ft(this,"handleLinkButtonClick",e=>{e.preventDefault(),this.setState({isEditingLink:!0})}),ft(this,"handleToolbarClose",()=>{this.state.isEditingLink&&this.setState({isEditingLink:!1})}),ft(this,"renderFormatToolbar",()=>{const{plugins:e}=this.props,t=mt("renderHoverMenuButtons",this.props);return r.createElement(Fe(),{className:"FormatBar--buttons"},t(e),this.renderLinkButton())}),ft(this,"renderLinkEditor",()=>r.createElement(st,{state:this.props.state,onChange:this.props.onChange,onClose:this.handleToolbarClose})),ft(this,"render",()=>r.createElement(nt,{className:"FormatBar",state:this.props.state,positionPreserved:this.state.isEditingLink,onClose:this.handleToolbarClose},this.state.isEditingLink?this.renderLinkEditor():this.renderFormatToolbar()))}renderLinkButton(){const{state:e}=this.props,t=e.inlines.some(e=>e.type===be);return r.createElement(rt,{isActive:t,onMouseDown:this.handleLinkButtonClick},r.createElement(P.Ay,{name:"link"}))}}const bt=gt,vt=e=>{const t=mt("renderToolbarButtons",e);return r.createElement("div",{className:"ToolbarButtons"},t(e.plugins))};var yt=n(58305);function Et(){return Et=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},Et.apply(null,arguments)}function wt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const St=n.n(yt)()();class Ct extends r.Component{constructor(){super(...arguments),wt(this,"handleListToggle",e=>{e.preventDefault();const{state:t,onChange:n,listType:r}=this.props,i=St.utils.getCurrentList(t),{wrapInList:s,unwrapList:o}=St.transforms,a="ol_list"===r;let l=t.transform();i&&i.type===r?l=o(l):i?(l=o(l),l=s(l,a)):l=s(l,a),n(l.apply())})}isInList(){const e=St.utils.getCurrentList(this.props.state);return!!e&&e.type===this.props.listType}render(){const{children:e,title:t}=this.props;return r.createElement(rt,{isActive:this.isInList(),onMouseDown:this.handleListToggle,title:t},e)}}const kt={...St,renderHoverMenuButtons:e=>[r.createElement(Ct,Et({key:"ul_list",listType:"ul_list",title:"Unordered List"},e),r.createElement(P.Ay,{name:"list-bullet"})),r.createElement(Ct,Et({key:"ol_list",listType:"ol_list",title:"Ordered List"},e),r.createElement(P.Ay,{name:"list-numbered"}))]};var Pt=n(98771);function xt(){return xt=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},xt.apply(null,arguments)}function Nt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Ot extends r.Component{constructor(){super(...arguments),Nt(this,"handleClick",()=>{this.input&&this.input.handleClick()})}render(){return r.createElement(k.Ay,{onClick:this.handleClick},r.createElement(Pt.A,{types:["image","document","video"],ref:e=>{this.input=e},onAdd:this.props.onAdd}),r.createElement(P.Ay,{name:"attachment"}))}}var jt=n(19049),Tt=n.n(jt);function At(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class _t extends r.Component{constructor(){super(...arguments),At(this,"handleClick",e=>{e.preventDefault();const{state:t,onChange:n,type:r}=this.props;n(t.transform().toggleMark(r).apply())})}hasMark(){const{state:e,type:t}=this.props;return e.marks.some(e=>e.type===t)}render(){return r.createElement(rt,{isActive:this.hasMark(),onMouseDown:this.handleClick,title:this.props.title},r.createElement(P.Ay,{name:this.props.type}))}}const Mt=_t;function Rt(){return Rt=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},Rt.apply(null,arguments)}const Lt=e=>{let{key:t,type:n}=e;return{onKeyDown:(e,r,i)=>r.isMod&&r.key===t?(e.preventDefault(),i.transform().toggleMark(n).apply()):null,renderHoverMenuButtons:e
1=>r.createElement(Mt,Rt({key:n,type:n,title:Tt()(n)},e))}};var It=n(21326);const Dt={onPaste(e,t,n){if("html"!==t.type)return null;if(t.isShift)return null;const r=(e=>{const t=(0,It.Eh)(e);return xe.deserialize(t)})(t.html);return n.transform().insertFragment(r.document).apply()}},Ht=Lt({key:"b",type:"bold",node:r.createElement("b",null)}),Ft=Lt({key:"i",type:"italic",node:r.createElement("i",null)}),zt=Lt({key:"u",type:"underline",node:r.createElement("u",null)});function $t(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Ut extends r.Component{constructor(){super(...arguments),$t(this,"foundUrls",(0,pe.Set)())}UNSAFE_componentWillReceiveProps(e){if(e.state===this.props.state)return;const t=e.state.document.getInlines().reduce((e,t)=>"@-mention"===t.type||t.type===be?e.add(t.data.get("href")):e,(0,pe.Set)());const n=t.subtract(this.foundUrls);this.foundUrls=t,n.isEmpty()||n.forEach(this.props.onFoundUrl)}render(){const{editorComponent:e}=this.props;return r.createElement(e,E()(["editorComponent","onFoundUrl"],this.props))}}const Bt=Ut;function Kt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qt=e=>e.editor.document.length>0||(0,d.pG)(e.attachments).length>0||!(0,d.bN)(e.embeddedResource);class Vt extends r.Component{constructor(e){var t;super(e),Kt(this,"state",{isFocused:!1}),Kt(this,"handleEditorStateChange",e=>{this.props.onChange({...this.props.editorState,editor:e})}),Kt(this,"handleEmbeddedResourceChange",e=>{this.props.onChange({...this.props.editorState,embeddedResource:e})}),Kt(this,"handleEmbeddedResourceDelete",()=>{const{editorState:e}=this.props;e.embeddedResource&&this.props.onRemoveEmbeddedResource((0,d.GJ)(e.embeddedResource))}),Kt(this,"handleClickInside",()=>{if(this.state.isFocused)return;const{onFocusChange:e}=this.props;this.setState(()=>({isFocused:!0}),()=>{e&&e(this.isFocused())})}),Kt(this,"handleClickOutside",()=>{this.setState(()=>({isFocused:!1}),()=>{this.props.onFocusChange&&this.props.onFocusChange(!1)})}),Kt(this,"handleFoundNewUrl",e=>{(0,d.bN)(this.props.editorState.embeddedResource)&&this.props.onAddEmbeddedResourceUrl&&this.props.onAddEmbeddedResourceUrl(e)}),this.plugins=[...this.props.plugins,Dt,Ht,Ft,zt,kt,c()(),we],this.props.disableMentions||this.plugins.push(re({context:this.props.mentionContext})),this.props.isHidingAttachments||this.plugins.push((t=this.props.onAddAttachments,{renderToolbarButtons:e=>r.createElement(Ot,xt({key:"AttachmentsButton"},e,{onAdd:t}))})),this.state={isFocused:!1}}componentDidUpdate(e){h()(this.props.plugins===e.plugins,"You cannot change plugins for the editor at runtime. Please make sure that you are caching the exact same array of plugins and using that each time.")}isFocused(){return this.props.editorState.editor.isFocused||this.state.isFocused||this.props.forceFocus||!1}shouldShowToolbar(){return this.props.alwaysShowToolbar||this.isFocused()}hasContent(){return qt(this.props.editorState)}render(){const{editorState:e,toolbarTop:t,toolbarLeft:n,placeholder:i,editorLeft:o,horizontalPadding:l,noMinEditorHeight:c,autoFocus:u,isHidingAttachments:h,isHidingEmbeddedResources:f}=this.props,g=!this.hasContent()&&!this.shouldShowToolbar(),b={paddingLeft:l,paddingRight:l};return r.createElement(s(),{onClickOut:this.handleClickOutside},r.createElement("div",{className:a()("RichEditor",{"RichEditor--toolbarCollapsed":g,"RichEditor--focused":this.isFocused(),"RichEditor--border":this.props.border,"RichEditor--noMinEditorHeight":c}),onClick:this.handleClickInside},r.createElement(De,{show:e.uploading}),!h&&r.createElement(p.tt,{onAdd:this.props.onAddAttachments,disabled:e.uploading}),r.createElement("div",{className:"RichEditor--editor-container",style:b},o&&r.createElement("div",{className:"RichEditor--editorLeft"},o),r.createElement(Bt,{editorComponent:Le,className:"RichEditor--editor",state:e.editor,onChange:this.handleEditorStateChange,plugins:this.plugins,placeholder:i,onFoundUrl:this.handleFoundNewUrl,autoFocus:u})),r.createElement(bt,{state:e.editor,onChange:this.handleEditorStateChange,plugins:this.plugins}),r.createElement("div",{style:b},t&&r.createElement("div",{className:"RichEditor--toolbarTop"},t),e.attachments.length>0&&!h&&r.createElement(p.Tr,{className:"RichEditor--attachments",onDelete:this.props.onRemoveAttachment,value:e.attachments,autoSave:e.autoSave}
1),!!e.embeddedResource&&!f&&!(0,d.bN)(e.embeddedResource)&&r.createElement(m.Ay,{className:"RichEditor--embedded-resource",value:e.embeddedResource,onChange:this.handleEmbeddedResourceChange,onDelete:this.handleEmbeddedResourceDelete,isEditable:!0})),r.createElement("div",{className:"RichEditor--toolbar",style:b},r.createElement("div",{className:"RichEditor--toolbar--left"},n),r.createElement(vt,{state:e.editor,onChange:this.handleEditorStateChange,plugins:this.plugins}))))}}Kt(Vt,"defaultState",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"<p />";return{editor:xe.deserialize(e),attachments:[],embeddedResource:null}}),Kt(Vt,"defaultProps",f);const Wt=Vt;function Xt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Jt extends r.Component{constructor(e){super(e),Xt(this,"handleChange",e=>{this.setState({editor:e}),this.props.onChange(xe.serialize(e))}),Xt(this,"handleClickInside",()=>{this.state.focused||this.setState({focused:!0})}),Xt(this,"handleClickOutside",()=>{this.setState({focused:!1})});const t=e.value||"<p />";this.state={editor:xe.deserialize(t),focused:!1},this.plugins=[Ht,Ft,zt,kt,we,re({context:this.props.mentionContext})]}UNSAFE_componentWillReceiveProps(e){e.value===this.props.value||this.isFocused()||this.setState({editor:xe.deserialize(e.value||"<p />")})}isFocused(){return this.state.editor.isFocused||this.state.focused}render(){return r.createElement(s(),{onClickOut:this.handleClickOutside},r.createElement("div",{className:"SimpleTextEditor",onClick:this.handleClickInside},r.createElement(Le,{plugins:this.plugins,state:this.state.editor,className:a()(this.props.className,"SimpleTextEditor--editor",{"SimpleTextEditor--focused":this.isFocused()}),onChange:this.handleChange,placeholder:this.props.placeholder}),r.createElement(bt,{state:this.state.editor,onChange:this.handleChange,plugins:this.plugins})))}}const Gt=Jt},70750(e,t,n){"use strict";n.d(t,{LK:()=>u,Pm:()=>c,RU:()=>i,VA:()=>l,XB:()=>s,h$:()=>h,mG:()=>o});const r=e=>{switch(e){case"harvardBusiness":return"hbr";case"khanAcademy":return"khan";case"linkedInLearning":return"linkedin";default:return e}},i=(e,t)=>e?r(e):(e=>{switch(e){case"article":case"book":return"article";case"activity":return"flash";case"meeting":case"webinar":return"calendar";case"checkin-interview":case"checkin-survey":case"checkin":case"survey":return"survey";case"quiz":return"quiz";case"video":return"play";
1case"feedback":return"feedback";case"generic_feedback":return"manager";case"goals":return"bullseye";case"mentoring":case"match_acceptance":case"match_preference":case"match_summary":return"partnership";default:return""}})(t),s=e=>{if(e.provider)return r(e.provider);switch(e.contentable_type){case"Mission":return(e=>{const t=e.label.toLowerCase();switch(t){case"mission":case"activity":case"do":return"flash";case"book":case"read":return"article";case"watch":return"video";case"harvard":return"hbr";default:return t}})(e);case"UserCollection":case"Collection":return"collection";case"Space":return(e=>{switch(e.label){case"Partnership":case"Archived Partnership":return"partnership";default:return"users"}})(e);case"Quiz":return"quiz";case"Assessment":return"survey";default:return null}},o=e=>{switch(e){case"harvardBusiness":return"harvard";case"khanAcademy":return"khan";case"linkedInLearning":return"linkedin";default:return e}},a={activity:"yellow",article:"blue",book:"blue",checkin:"dark-green","checkin-interview":"dark-green","checkin-survey":"dark-green",collection:"dark-blue","q&a":"purple",feedback:"orange",goals:"dark-purple",match_acceptance:"orange",match_preference:"orange",match_summary:"orange",mentoring:"orange",quiz:"dark-blue",survey:"dark-green",video:"red",webinar:"purple"},l=(e,t)=>e?o(e):a[t]||"dark",c=e=>{if(e.provider)return`${o(e.provider)}-background`;const t=e.label.toLowerCase();switch(t){case"activity":return"resource-background";case"article":return"book-background";default:return`${t}-background`}},u=e=>"User"===e.contentable_type?e.user_full_name||"":e.title,h=e=>"User"===e.contentable_type?e.user_title||"":e.label},21326(e,t,n){"use strict";n.d(t,{Eh:()=>u,Kq:()=>h});var r=n(99002),i=n.n(r),s=n(61160),o=n.n(s);const{defaults:a}=i(),l=a.allowedTags.concat(["iframe","img"]),c=(e,t,n)=>{let{href:r}=n;if(!e||!t||!r)return r;const i=new(o())(r,`${e}://${t}`);return i.host===t&&(r=`${i.pathname}${i.query}${i.hash}`),r},u=e=>function(e){let{userUrlScheme:t,userUrlHost:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{userUrlScheme:"https",userUrlHost:"app.torch.io"};return i()(e,{allowedTags:l,allowedAttributes:{...a.allowedAttributes,a:["rel","href","name","target","ew-modal","content"],"*":["dir"],iframe:["src","width","height"],div:["id","style"],span:["style"],i:["style"]},allowedClasses:{a:["APIMention"],b:["col-xs-5"],div:["agreement","bottom-50","height-30","centered","center-block","col","col-xs-4","col-xs-6","col-xs-8","hidden-xs","lead-container","right-container","left-border","form-group","padding-20","row","text-center","well","white-smoke-box","visible-xs"],h1:["secondary-font","text-center","text-large"],h4:["text-center"],i:["*"],p:["text-center","very-small","no-vertical-margin","width-80-pct","padding-20"]},allowedSchemes:["http","https","ftp","mailto","tel"],allowedIframeHostnames:["www.youtube.com"],transformTags:{a:(e,r)=>{let i={...r,target:"_blank"};return i.href&&(i={...i,href:c(t,n,i)}),{tagName:e,attribs:i}}}})}(e).replace(/^(<p><br\s*\/?><\/p>)+/,"").replace(/(<p><br\s*\/?><\/p>)+$/,""),h=e=>i()(e,{allowedTags:[],allowedAttributes:[]})},46492(e,t,n){"use strict";n.d(t,{_n:()=>s,eI:()=>a,rI:()=>i});var r=n(56848);const i=(e,t)=>{const n={start:e.offsetLeft,end:e.offsetLeft+e.clientWidth},r=t.scrollLeft,i=t.scrollLeft+t.clientWidth;n.start<r?t.scrollLeft=n.start:n.end>i&&(t.scrollLeft=n.end)},s=function(e,t){let{offset:n=0,duration:i,smooth:s,delay:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r.animateScroll.scrollTo(e.offsetTop+n,{duration:i,smooth:s,delay:o,container:t})},o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e?o(e.offsetParent,t+e.offsetTop):t},a=function(e,t){let{offset:n=0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=o(e)-o(t);t.scrollTop=r+n}},49746(){},19977(){},197(){},21866(){},52739(){}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.