UNPKG

@hrobarikt/box-ui-elements

Version:
92 lines 720 kB
/*!
 * Box UI Element
 * 
 * Copyright 2019 Box, Inc. All rights reserved.
 * 
 * This product includes software developed by Box, Inc. ("Box")
 * (http://www.box.com)
 * 
 * ALL BOX SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 * IN NO EVENT SHALL BOX BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 * 
 * See the Box license for the specific language governing permissions
 * and limitations under the license.
 */!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/2.1.0/en-US/",r(r.s=1040)}([function(e,t,r){"use strict";e.exports=r(336)},function(e,t,r){"use strict";r.d(t,"e",(function(){return o})),r.d(t,"Ke",(function(){return i})),r.d(t,"Le",(function(){return a})),r.d(t,"Me",(function(){return s})),r.d(t,"Ne",(function(){return l})),r.d(t,"Kf",(function(){return u})),r.d(t,"Pf",(function(){return c})),r.d(t,"Qf",(function(){return f})),r.d(t,"Of",(function(){return d})),r.d(t,"Jf",(function(){return p})),r.d(t,"Rf",(function(){return h})),r.d(t,"Sf",(function(){return b})),r.d(t,"Tf",(function(){return m})),r.d(t,"Lf",(function(){return y})),r.d(t,"Nf",(function(){return v})),r.d(t,"Mf",(function(){return g})),r.d(t,"Af",(function(){return w})),r.d(t,"zf",(function(){return k})),r.d(t,"Bf",(function(){return x})),r.d(t,"yf",(function(){return E})),r.d(t,"xf",(function(){return O})),r.d(t,"wf",(function(){return S})),r.d(t,"i",(function(){return C})),r.d(t,"h",(function(){return P})),r.d(t,"n",(function(){return _})),r.d(t,"m",(function(){return T})),r.d(t,"l",(function(){return A})),r.d(t,"j",(function(){return j})),r.d(t,"k",(function(){return I})),r.d(t,"cf",(function(){return D})),r.d(t,"df",(function(){return M})),r.d(t,"c",(function(){return R})),r.d(t,"d",(function(){return F})),r.d(t,"a",(function(){return N})),r.d(t,"b",(function(){return L})),r.d(t,"xd",(function(){return U})),r.d(t,"Bd",(function(){return H})),r.d(t,"zd",(function(){return z})),r.d(t,"Ad",(function(){return B})),r.d(t,"yd",(function(){return V})),r.d(t,"Xd",(function(){return W})),r.d(t,"ae",(function(){return q})),r.d(t,"Zd",(function(){return G})),r.d(t,"Wd",(function(){return X})),r.d(t,"Vd",(function(){return K})),r.d(t,"Yd",(function(){return $})),r.d(t,"Fc",(function(){return Q})),r.d(t,"xc",(function(){return Y})),r.d(t,"Rc",(function(){return J})),r.d(t,"pd",(function(){return Z})),r.d(t,"jd",(function(){return ee})),r.d(t,"Uc",(function(){return te})),r.d(t,"Bc",(function(){return re})),r.d(t,"Lc",(function(){return ne})),r.d(t,"Wc",(function(){return oe})),r.d(t,"Xc",(function(){return ie})),r.d(t,"Kc",(function(){return ae})),r.d(t,"Vc",(function(){return se})),r.d(t,"tc",(function(){return le})),r.d(t,"uc",(function(){return ue})),r.d(t,"Pc",(function(){return ce})),r.d(t,"bd",(function(){return fe})),r.d(t,"dd",(function(){return de})),r.d(t,"vc",(function(){return pe})),r.d(t,"Gc",(function(){return he})),r.d(t,"gd",(function(){return be})),r.d(t,"hd",(function(){return me})),r.d(t,"id",(function(){return ye})),r.d(t,"nc",(function(){return ve})),r.d(t,"oc",(function(){return ge})),r.d(t,"Dc",(function(){return we})),r.d(t,"Jc",(function(){return ke})),r.d(t,"rd",(function(){return xe})),r.d(t,"wc",(function(){return Ee})),r.d(t,"Qc",(function(){return Oe})),r.d(t,"Tc",(function(){return Se})),r.d(t,"cd",(function(){return Ce})),r.d(t,"od",(function(){return Pe})),r.d(t,"yc",(function(){return _e})),r.d(t,"ad",(function(){return Te})),r.d(t,"fd",(function(){return Ae})),r.d(t,"ud",(function(){return je})),r.d(t,"rc",(function(){return Ie})),r.d(t,"Cc",(function(){return De})),r.d(t,"Ic",(function(){return Me})),r.d(t,"sd",(function(){return Re})),r.d(t,"td",(function(){return Fe})),r.d(t,"Nc",(function(){return Ne})),r.d(t,"Oc",(function(){return Le})),r.d(t,"zc",(function(){return Ue})),r.d(t,"md",(function(){return He})),r.d(t,"Hc",(function(){return ze})),r.d(t,"Mc",(function(){return Be})),r.d(t,"ld",(function(){return Ve})),r.d(t,"nd",(function(){return We})),r.d(t,"qc",(function(){return qe})),r.d(t,"Yc",(function(){return Ge})),r.d(t,"kd",(function(){return Xe})),r.d(t,"mc",(function(){return Ke})),r.d(t,"pc",(function(){return $e})),r.d(t,"Sc",(function(){return Qe})),r.d(t,"Zc",(function(){return Ye})),r.d(t,"ed",(function(){return Je})),r.d(t,"qd",(function(){return Ze})),r.d(t,"sc",(function(){return et})),r.d(t,"Ac",(function(){return tt})),r.d(t,"Ec",(function(){return rt})),r.d(t,"re",(function(){return nt})),r.d(t,"se",(function(){return ot})),r.d(t,"te",(function(){return it})),r.d(t,"ue",(function(){return at})),r.d(t,"ve",(function(){return st})),r.d(t,"we",(function(){return lt})),r.d(t,"xe",(function(){return ut})),r.d(t,"ye",(function(){return ct})),r.d(t,"ze",(function(){return ft})),r.d(t,"Ae",(function(){return dt})),r.d(t,"Sd",(function(){return pt})),r.d(t,"db",(function(){return ht})),r.d(t,"cb",(function(){return bt})),r.d(t,"V",(function(){return mt})),r.d(t,"P",(function(){return yt})),r.d(t,"U",(function(){return vt})),r.d(t,"L",(function(){return gt})),r.d(t,"N",(function(){return wt})),r.d(t,"O",(function(){return kt})),r.d(t,"M",(function(){return xt})),r.d(t,"I",(function(){return Et})),r.d(t,"X",(function(){return Ot})),r.d(t,"Y",(function(){return St})),r.d(t,"H",(function(){return Ct})),r.d(t,"Q",(function(){return Pt})),r.d(t,"R",(function(){return _t})),r.d(t,"S",(function(){return Tt})),r.d(t,"T",(function(){return At})),r.d(t,"K",(function(){return jt})),r.d(t,"J",(function(){return It})),r.d(t,"Z",(function(){return Dt})),r.d(t,"bb",(function(){return Mt})),r.d(t,"ab",(function(){return Rt})),r.d(t,"w",(function(){return Ft})),r.d(t,"E",(function(){return Nt})),r.d(t,"x",(function(){return Lt})),r.d(t,"y",(function(){return Ut})),r.d(t,"z",(function(){return Ht})),r.d(t,"A",(function(){return zt})),r.d(t,"B",(function(){return Bt})),r.d(t,"C",(function(){return Vt})),r.d(t,"D",(function(){return Wt})),r.d(t,"if",(function(){return qt})),r.d(t,"hf",(function(){return Gt})),r.d(t,"jf",(function(){return Xt})),r.d(t,"ff",(function(){return Kt})),r.d(t,"gf",(function(){return $t})),r.d(t,"ef",(function(){return Qt})),r.d(t,"t",(function(){return Yt})),r.d(t,"u",(function(){return Jt})),r.d(t,"v",(function(){return Zt})),r.d(t,"q",(function(){return er})),r.d(t,"p",(function(){return tr})),r.d(t,"r",(function(){return rr})),r.d(t,"s",(function(){return nr})),r.d(t,"o",(function(){return or})),r.d(t,"qe",(function(){return ir})),r.d(t,"Rb",(function(){return ar})),r.d(t,"Tb",(function(){return sr})),r.d(t,"Sb",(function(){return lr})),r.d(t,"ic",(function(){return ur})),r.d(t,"hc",(function(){return cr})),r.d(t,"lc",(function(){return fr})),r.d(t,"jc",(function(){return dr})),r.d(t,"kc",(function(){return pr})),r.d(t,"vb",(function(){return hr})),r.d(t,"wb",(function(){return br})),r.d(t,"xb",(function(){return mr})),r.d(t,"Cb",(function(){return yr})),r.d(t,"Db",(function(){return vr})),r.d(t,"Eb",(function(){return gr})),r.d(t,"Ob",(function(){return wr})),r.d(t,"yb",(function(){return kr})),r.d(t,"Mb",(function(){return xr})),r.d(t,"Nb",(function(){return Er})),r.d(t,"Kb",(function(){return Or})),r.d(t,"zb",(function(){return Sr})),r.d(t,"Ab",(function(){return Cr})),r.d(t,"Bb",(function(){return Pr})),r.d(t,"Lb",(function(){return _r})),r.d(t,"Fb",(function(){return Tr})),r.d(t,"Gb",(function(){return Ar})),r.d(t,"Hb",(function(){return jr})),r.d(t,"ub",(function(){return Ir})),r.d(t,"Jb",(function(){return Dr})),r.d(t,"Ib",(function(){return Mr})),r.d(t,"tb",(function(){return Rr})),r.d(t,"eb",(function(){return Fr})),r.d(t,"fb",(function(){return Nr})),r.d(t,"ib",(function(){return Lr})),r.d(t,"kb",(function(){return Ur})),r.d(t,"jb",(function(){return Hr})),r.d(t,"gb",(function(){return zr})),r.d(t,"hb",(function(){return Br})),r.d(t,"mb",(function(){return Vr})),r.d(t,"lb",(function(){return Wr})),r.d(t,"nb",(function(){return qr})),r.d(t,"qb",(function(){return Gr})),r.d(t,"rb",(function(){return Xr})),r.d(t,"ob",(function(){return Kr})),r.d(t,"pb",(function(){return $r})),r.d(t,"sb",(function(){return Qr})),r.d(t,"Qb",(function(){return Yr})),r.d(t,"Vb",(function(){return Jr})),r.d(t,"Xb",(function(){return Zr})),r.d(t,"fc",(function(){return en})),r.d(t,"gc",(function(){return tn})),r.d(t,"cc",(function(){return rn})),r.d(t,"ec",(function(){return nn})),r.d(t,"dc",(function(){return on})),r.d(t,"Pb",(function(){return an})),r.d(t,"Wb",(function(){return sn})),r.d(t,"Zb",(function(){return ln})),r.d(t,"ac",(function(){return un})),r.d(t,"Yb",(function(){return cn})),r.d(t,"Ub",(function(){return fn})),r.d(t,"bc",(function(){return dn})),r.d(t,"ie",(function(){return pn})),r.d(t,"je",(function(){return hn})),r.d(t,"he",(function(){return bn})),r.d(t,"ke",(function(){return mn})),r.d(t,"le",(function(){return yn})),r.d(t,"oe",(function(){return vn})),r.d(t,"pe",(function(){return gn})),r.d(t,"ne",(function(){return wn})),r.d(t,"me",(function(){return kn})),r.d(t,"ce",(function(){return xn})),r.d(t,"be",(function(){return En})),r.d(t,"Td",(function(){return On})),r.d(t,"Uf",(function(){return Cn})),r.d(t,"W",(function(){return Pn})),r.d(t,"de",(function(){return _n})),r.d(t,"F",(function(){return Tn})),r.d(t,"G",(function(){return An})),r.d(t,"bf",(function(){return jn})),r.d(t,"We",(function(){return In})),r.d(t,"af",(function(){return Dn})),r.d(t,"Ve",(function(){return Mn})),r.d(t,"Xe",(function(){return Rn})),r.d(t,"Te",(function(){return Fn})),r.d(t,"Oe",(function(){return Nn})),r.d(t,"Pe",(function(){return Ln})),r.d(t,"Ue",(function(){return Un})),r.d(t,"Se",(function(){return Hn})),r.d(t,"Re",(function(){return zn})),r.d(t,"Qe",(function(){return Bn})),r.d(t,"Ze",(function(){return Vn})),r.d(t,"Ye",(function(){return Wn})),r.d(t,"vd",(function(){return qn})),r.d(t,"Vf",(function(){return Gn})),r.d(t,"Ce",(function(){return Xn})),r.d(t,"De",(function(){return Kn})),r.d(t,"Ee",(function(){return $n})),r.d(t,"Ie",(function(){return Qn})),r.d(t,"Ge",(function(){return Yn})),r.d(t,"He",(function(){return Jn})),r.d(t,"Fe",(function(){return Zn})),r.d(t,"Je",(function(){return eo})),r.d(t,"Dd",(function(){return to})),r.d(t,"Gd",(function(){return ro})),r.d(t,"Hd",(function(){return no})),r.d(t,"Cd",(function(){return oo})),r.d(t,"Fd",(function(){return io})),r.d(t,"Ed",(function(){return ao})),r.d(t,"Kd",(function(){return so})),r.d(t,"Nd",(function(){return lo})),r.d(t,"Jd",(function(){return uo})),r.d(t,"Rd",(function(){return co})),r.d(t,"Pd",(function(){return fo})),r.d(t,"Md",(function(){return po})),r.d(t,"Od",(function(){return ho})),r.d(t,"Id",(function(){return bo})),r.d(t,"Qd",(function(){return mo})),r.d(t,"Ld",(function(){return yo})),r.d(t,"Cf",(function(){return vo})),r.d(t,"Df",(function(){return go})),r.d(t,"Ef",(function(){return wo})),r.d(t,"If",(function(){return ko})),r.d(t,"Ff",(function(){return xo})),r.d(t,"Hf",(function(){return Eo})),r.d(t,"Gf",(function(){return Oo})),r.d(t,"Be",(function(){return So})),r.d(t,"wd",(function(){return Co})),r.d(t,"f",(function(){return Po})),r.d(t,"g",(function(){return _o})),r.d(t,"fe",(function(){return To})),r.d(t,"ge",(function(){return Ao})),r.d(t,"pf",(function(){return jo})),r.d(t,"qf",(function(){return Io})),r.d(t,"sf",(function(){return Do})),r.d(t,"rf",(function(){return Mo})),r.d(t,"tf",(function(){return Ro})),r.d(t,"vf",(function(){return Fo})),r.d(t,"uf",(function(){return No})),r.d(t,"kf",(function(){return Lo})),r.d(t,"lf",(function(){return Uo})),r.d(t,"mf",(function(){return Ho})),r.d(t,"nf",(function(){return zo})),r.d(t,"of",(function(){return Bo})),r.d(t,"Ud",(function(){return Vo})),r.d(t,"ee",(function(){return Wo}));var n=r(190),o=1e3,i="large",a="medium",s="small",l="very_large",u="folder",c="search",f="selected",d="recents",p="error",h="upload-empty",b="upload-inprogress",m="upload-success",y="metadata",v="list",g="grid",w="folder",k="file",x="web_link",E="folder_",O="file_",S="feedItems_",C=E,P=O,_="web_link_",T="search_",A="recents_",j="metadata_",I="metadata_query_",D="ASC",M="DESC",R="none",F="open",N="collaborators",L="company",U="Accept",H="Content-Type",z="X-Box-Client-Name",B="X-Box-Client-Version",V="Accept-Language",W="securityClassification-6VMVochwUWo",q="boxSkillsCards",G="properties",X="global",K="enterprise",$=o,Q="id",Y="date",J="name",Z="type",ee="size",te="parent",re="extension",ne="expires_at",oe="permissions",ie="".concat(oe,".can_upload"),ae="item_collection",se="path_collection",le="content_created_at",ue="content_modified_at",ce="modified_at",fe="restored_at",de="restored_from",pe="created_at",he="interacted_at",be="shared_link",me="allowed_shared_link_access_levels_disabled_reasons",ye="shared_link_features",ve="allowed_invitee_roles",ge="allowed_shared_link_access_levels",we="has_collaborations",ke="is_externally_owned",xe="url",Ee="created_by",Oe="modified_by",Se="owned_by",Ce="restored_by",Pe="trashed_by",_e="description",Te="representations",Ae="sha1",je="watermark_info",Ie="authenticated_download_url",De="file_version",Me="is_download_available",Re="version_limit",Fe="version_number",Ne="metadata",Le="".concat(Ne,".").concat(X,".").concat(q),Ue=("".concat(Ne,".").concat(X,".").concat(G),"".concat(Ne,".").concat(K,".").concat(W),"due_at"),He="task_assignment_collection",ze="is_completed",Be="message",Ve="tagged_message",We="trashed_at",qe="assigned_to",Ge="",Xe="status",Ke="activity_template",$e="app",Qe="occurred_at",Ye="rendered_text",Je="retention",Ze="uploader_display_name",et="classification",tt="enterprise",rt="hostname",nt="can_comment",ot="can_create_annotations",it="can_delete",at="can_download",st="can_edit",lt="can_preview",ut="can_rename",ct="can_share",ft="can_upload",dt="can_view_annotations",pt="editor",ht="slash",bt="caret",mt="2.37.0",yt="en-US",vt="platform/preview",gt="https://api.box.com",wt="https://cdn01.boxcdn.net",kt="https://upload.box.com",xt="https://app.box.com",Et="body",Ot="0",St=500,Ct=500,Pt=25,_t=50,Tt=1,At=50,jt=0,It=1e3,Dt="files",Mt="recents",Rt="metadata",Ft="ContentExplorer",Nt="ContentOpenWith",Lt="ContentPicker",Ut="ContentPreview",Ht="ContentSharing",zt="ContentSidebar",Bt="ContentUploader",Vt="FilePicker",Wt="FolderPicker",qt="pending",Gt="inprogress",Xt="staged",Kt="complete",$t="error",Qt="accepted",Yt="be-modal-dialog-content",Jt="be-modal-dialog-content-full-bleed",Zt="be-modal-dialog-overlay",er="be-is-small",tr="be-is-medium",rr="be-is-touch",nr="be-modal",or="bcow-integration-icon",ir="overlay-wrapper",ar="item_name_invalid",sr="item_name_too_long",lr="item_name_in_use",ur="upload_file_limit",cr="child_folder_failed_upload",fr="storage_limit_exceeded",dr="file_size_limit_exceeded",pr="pending_app_folder_size_limit",hr="fetch_activity_error",br="fetch_annotation_error",mr="fetch_annotations_error",yr="fetch_file_error",vr="forbidden_by_policy",gr="fetch_folder_error",wr="fetch_weblink_error",kr="fetch_comments_error",xr="fetch_version_error",Er="fetch_versions_error",Or="fetch_tasks_error",Sr="fetch_current_user_error",Cr="fetch_enterprise_groups_error",Pr="fetch_enterprise_users_error",_r="fetch_task_collaborator_error",Tr="fetch_integrations_error",Ar="fetch_metadata_error",jr="fetch_metadata_templates_error",Ir="fetch_access_stats_error",Dr="fetch_skills_error",Mr="fetch_recents_error",Rr="execute_integrations_error",Fr="create_annotation_error",Nr="create_comment_error",Lr="create_task_error",Ur="create_task_link_error",Hr="create_task_collaborator_error",zr="create_folder_error",Br="create_metadata_error",Vr="delete_app_activity_error",Wr="delete_annotation_error",qr="delete_comment_error",Gr="delete_task_error",Xr="delete_task_collaborator_error",Kr="delete_item_error",$r="delete_metadata_error",Qr="delete_version_error",Yr="group_exceeds_limit",Jr="promote_version_error",Zr="restore_version_error",en="update_task_error",tn="update_task_collaborator_error",rn="update_comment_error",nn="update_skills_error",on="update_metadata_error",an="get_download_url_error",sn="rename_item_error",ln="share_item_error",un="unexpected_exception_error",cn="search_error",fn="metadata_query_error",dn="unknown_error",pn="content_preview",hn="content_sidebar",bn="activity_sidebar",mn="details_sidebar",yn="metadata_sidebar",vn="skills_sidebar",gn="versions_sidebar",wn="preview",kn="open_with",xn="preview_metric",En="elements_load_metric",On="isErrorDisplayed",Sn=n.a.canPlayDash()?"[dash,mp4][filmstrip]":"[mp4]",Cn="".concat("[3d][pdf][text][mp3][json]").concat("[jpg?dimensions=1024x1024&paged=false]").concat("[jpg?dimensions=2048x2048,png?dimensions=2048x2048]").concat(Sn),Pn=3e3,_n=1e3,Tn="#999",An="#fff",jn="transcript",In="keyword",Dn="timeline",Mn="face",Rn="status",Fn="skills_invocations_error",Nn="skills_billing_error",Ln="skills_external_auth_error",Un="skills_unknown_error",Hn="skills_invalid_file_size_error",zn="skills_invalid_file_format_error",Bn="skills_file_processing_error",Vn="skills_pending_status",Wn="skills_invoked_status",qn="boxnote",Gn="[jpg?dimensions=".concat("1024x1024","&paged=false,png?dimensions=").concat("1024x1024","][pdf]"),Xn="error",Kn="success",$n="viewable",Qn="skills",Yn="details",Jn="metadata",Zn="activity",eo="versions",to="GET",ro="POST",no="PUT",oo="DELETE",io="OPTIONS",ao="HEAD",so=403,lo=404,uo=409,co=401,fo=429,po=500,ho=501,bo=502,mo=503,yo=504,vo="delete",go="promote",wo="restore",ko="upload",xo="permanently_delete",Eo="remove_retention",Oo="indefinite",So={type:"user",id:"2",name:""},Co="File Request",Po="1338",_o="13418",To=26,Ao=30,jo="APPROVED",Io="COMPLETED",Do="NOT_STARTED",Mo="IN_PROGRESS",Ro="REJECTED",Fo="GENERAL",No="APPROVAL",Lo="ALL_ASSIGNEES",Uo="ANY_ASSIGNEE",Ho="CREATE",zo="EDIT",Bo=250,Vo={arrowDown:"ArrowDown",arrowLeft:"ArrowLeft",arrowRight:"ArrowRight",arrowUp:"ArrowUp",backspace:"Backspace",enter:"Enter",escape:"Escape",space:" "},Wo=36e5},function(e,t,r){"use strict";r.d(t,"y",(function(){return n})),r.d(t,"x",(function(){return o})),r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return a})),r.d(t,"f",(function(){return s})),r.d(t,"k",(function(){return l})),r.d(t,"j",(function(){return u})),r.d(t,"i",(function(){return c})),r.d(t,"h",(function(){return f})),r.d(t,"g",(function(){return d})),r.d(t,"d",(function(){return p})),r.d(t,"e",(function(){return h})),r.d(t,"n",(function(){return b})),r.d(t,"o",(function(){return m})),r.d(t,"v",(function(){return y})),r.d(t,"w",(function(){return v})),r.d(t,"l",(function(){return g})),r.d(t,"m",(function(){return w})),r.d(t,"p",(function(){return k})),r.d(t,"q",(function(){return x})),r.d(t,"r",(function(){return E})),r.d(t,"s",(function(){return O})),r.d(t,"t",(function(){return S})),r.d(t,"u",(function(){return C})),r.d(t,"a",(function(){return P}));var n="#fff",o="#000",i="#0061d5",a="#e5effa",s="#222",l="#4e4e4e",u="#767676",c="#909090",f="#d3d3d3",d="#e8e8e8",p="#003c84",h="#7f9dc1",b="#2486fc",m="#91c2fd",y="#f5b31b",v="#ffeb7f",g="#26c281",w="#92e0c0",k="#f1811a",x="#f8c08c",E="#9f3fed",O="#cf9ff6",S="#ed3757",C="#f69bab",P=["#2486fc","#0061d5","#003c84","#767676","#26c281","#f5b31b","#4826c2","#9f3fed","#ed3757"]},function(e,t){e.exports=function(){}},function(e,t,r){"use strict";var n=r(107),o=Object(n.defineMessages)({today:{id:"be.today",defaultMessage:"today"},yesterday:{id:"be.yesterday",defaultMessage:"yesterday"},logo:{id:"be.logo",defaultMessage:"Logo"},error:{id:"be.error",defaultMessage:"Error"},preview:{id:"be.preview",defaultMessage:"Preview"},previewError:{id:"be.previewError",defaultMessage:"We’re sorry, the preview didn’t load. Please refresh the page."},previewErrorBlockedByPolicy:{id:"be.previewErrorBlockedByPolicy",defaultMessage:"Your access is restricted due to the classification applied to this content."},boxEditErrorBlockedByPolicy:{id:"be.boxEditErrorBlockedByPolicy",defaultMessage:"Local editing of this content has been disabled based on an access policy"},previewUpdate:{id:"be.previewUpdate",defaultMessage:"A new version of this file is available."},reload:{id:"be.reload",defaultMessage:"Reload"},open:{id:"be.open",defaultMessage:"Open"},close:{id:"be.close",defaultMessage:"Close"},copy:{id:"be.copy",defaultMessage:"Copy"},delete:{id:"be.delete",defaultMessage:"Delete"},rename:{id:"be.rename",defaultMessage:"Rename"},remove:{id:"be.remove",defaultMessage:"Remove"},resume:{id:"be.resume",defaultMessage:"Resume"},resumeAll:{id:"be.resumeAll",defaultMessage:"Resume All"},retry:{id:"be.retry",defaultMessage:"Retry"},share:{id:"be.share",defaultMessage:"Share"},download:{id:"be.download",defaultMessage:"Download"},save:{id:"be.save",defaultMessage:"Save"},cancel:{id:"be.cancel",defaultMessage:"Cancel"},create:{id:"be.create",defaultMessage:"Create"},choose:{id:"be.choose",defaultMessage:"Choose"},upload:{id:"be.upload",defaultMessage:"Upload"},add:{id:"be.add",defaultMessage:"Add"},gridView:{id:"be.gridView",defaultMessage:"Switch to Grid View"},gridViewIncreaseColumnSize:{id:"be.gridView.increaseColumnSize",defaultMessage:"Increase column size"},gridViewDecreaseColumnSize:{id:"be.gridView.decreaseColumnSize",defaultMessage:"Decrease column size"},listView:{id:"be.listView",defaultMessage:"Switch to List View"},sort:{id:"be.sort",defaultMessage:"Sort"},newFolder:{id:"be.newFolder",defaultMessage:"New Folder"},in:{id:"be.in",defaultMessage:"In"},print:{id:"be.print",defaultMessage:"Print"},selected:{id:"be.selected",defaultMessage:"{count} Selected"},max:{id:"be.max",defaultMessage:"max"},nameDate:{id:"be.nameDate",defaultMessage:"{date} by {name}"},modified:{id:"be.itemModified",defaultMessage:"Modified"},modifiedDateBy:{id:"be.modifiedDateBy",defaultMessage:"Modified {date} by {name}"},modifiedDate:{id:"be.modifiedDate",defaultMessage:"Modified {date}"},created:{id:"be.itemCreated",defaultMessage:"Created"},owner:{id:"be.itemOwner",defaultMessage:"Owner"},uploader:{id:"be.itemUploader",defaultMessage:"Uploader"},interacted:{id:"be.itemInteracted",defaultMessage:"Last Accessed"},interactedDate:{id:"be.interactedDate",defaultMessage:"Last accessed on {date}"},name:{id:"be.itemName",defaultMessage:"Name"},size:{id:"be.itemSize",defaultMessage:"Size"},deleteDialogLabel:{id:"be.deleteDialogLabel",defaultMessage:"Confirm Delete"},deleteDialogFileText:{id:"be.deleteDialogFileText",defaultMessage:"Are you sure you want to delete {name}?"},deleteDialogFolderText:{id:"be.deleteDialogFolderText",defaultMessage:"Are you sure you want to delete {name} and all its contents?"},renameDialogLabel:{id:"be.renameDialogLabel",defaultMessage:"Rename"},renameDialogText:{id:"be.renameDialogText",defaultMessage:"Please enter a new name for {name}:"},renameDialogErrorInvalid:{id:"be.renameDialogErrorInvalid",defaultMessage:"This name is invalid."},renameDialogErrorInUse:{id:"be.renameDialogErrorInUse",defaultMessage:"An item with the same name already exists."},renameDialogErrorTooLong:{id:"be.renameDialogErrorTooLong",defaultMessage:"This name is too long."},createDialogLabel:{id:"be.createDialogLabel",defaultMessage:"New Folder"},createDialogText:{id:"be.createDialogText",defaultMessage:"Please enter a name."},createDialogErrorInvalid:{id:"be.createDialogErrorInvalid",defaultMessage:"This is an invalid folder name."},createDialogErrorTooLong:{id:"be.createDialogErrorTooLong",defaultMessage:"This folder name is too long."},createDialogErrorInUse:{id:"be.createDialogErrorInUse",defaultMessage:"A folder with the same name already exists."},shareDialogLabel:{id:"be.shareDialogLabel",defaultMessage:"Share"},shareDialogText:{id:"be.shareDialogText",defaultMessage:"Shared Link:"},shareDialogNone:{id:"be.shareDialogNone",defaultMessage:"None"},shareAccessOpen:{id:"be.shareAccessOpen",defaultMessage:"Access: People with the link"},shareAccessCollab:{id:"be.shareAccessCollab",defaultMessage:"Access: People in this folder"},shareAccessCompany:{id:"be.shareAccessCompany",defaultMessage:"People in this company"},shareAccessNone:{id:"be.shareAccessNone",defaultMessage:"No shared link"},shareAccessRemove:{id:"be.shareAccessRemove",defaultMessage:"Remove shared link"},searchPlaceholder:{id:"be.searchPlaceholder",defaultMessage:"Search files and folders"},sidebarAccessStats:{id:"be.sidebarAccessStats",defaultMessage:"Access Stats"},sidebarShow:{id:"be.sidebarShow",defaultMessage:"Show Sidebar"},sidebarHide:{id:"be.sidebarHide",defaultMessage:"Hide Sidebar"},description:{id:"be.description",defaultMessage:"Description"},descriptionPlaceholder:{id:"be.descriptionPlaceholder",defaultMessage:"Enter a description"},sidebarDetailsTitle:{id:"be.sidebarDetailsTitle",defaultMessage:"Details"},sidebarSkillsTitle:{id:"be.sidebarSkillsTitle",defaultMessage:"Skills"},sidebarSkillsErrorTitle:{id:"be.sidebarSkillsErrorTitle",defaultMessage:"Skills Error"},sidebarSkillsErrorContent:{id:"be.sidebarSkillsErrorContent",defaultMessage:"An error has occurred while updating skills. Please refresh the page and try again."},sidebarActivityTitle:{id:"be.sidebarActivityTitle",defaultMessage:"Activity"},sidebarMetadataTitle:{id:"be.sidebarMetadataTitle",defaultMessage:"Metadata"},sidebarMetadataEditingErrorContent:{id:"be.sidebarMetadataEditingErrorContent",defaultMessage:"An error has occurred while updating metadata. Please refresh the page and try again."},sidebarMetadataFetchingErrorContent:{id:"be.sidebarMetadataFetchingErrorContent",defaultMessage:"An error has occurred while fetching metadata. Please refresh the page and try again."},sidebarFileFetchingErrorContent:{id:"be.sidebarFileFetchingErrorContent",defaultMessage:"An error has occurred while fetching your Box file. Please refresh the page and try again."},sidebarProperties:{id:"be.sidebarProperties",defaultMessage:"File Properties"},sidebarNavLabel:{id:"be.sidebarNavLabel",defaultMessage:"Sidebar"},defaultSkill:{id:"be.defaultSkill",defaultMessage:"Skill Card"},statusSkill:{id:"be.statusSkill",defaultMessage:"Status"},topicsSkill:{id:"be.topicsSkill",defaultMessage:"Topics"},keywordSkill:{id:"be.keywordSkill",defaultMessage:"Topics"},faceSkill:{id:"be.faceSkill",defaultMessage:"Faces"},transcriptSkill:{id:"be.transcriptSkill",defaultMessage:"Transcript"},skillPendingStatus:{id:"be.skillPendingStatus",defaultMessage:"We’re working on processing your file - please hold!"},skillInvokedStatus:{id:"be.skillInvokedStatus",defaultMessage:"We’re preparing to process your file - please hold!"},skillUnknownError:{id:"be.skillUnknownError",defaultMessage:"Something went wrong with running this skill or fetching its data."},skillInvalidFileSizeError:{id:"be.skillInvalidFileSizeError",defaultMessage:"We’re sorry, no skills information was found. This file size is currently not supported."},skillInvalidFileExtensionError:{id:"be.skillInvalidFileExtensionError",defaultMessage:"We’re sorry, no skills information was found. This file extension is currently not supported."},skillNoInfoFoundError:{id:"be.skillNoInfoFoundError",defaultMessage:"We’re sorry, no skills information was found."},skillFileProcessingError:{id:"be.skillFileProcessingError",defaultMessage:"We’re sorry, something went wrong with processing the file."},uploadErrorTooManyFiles:{id:"be.uploadErrorTooManyFiles",defaultMessage:"You can only upload up to {fileLimit} file(s) at a time."},uploadError:{id:"be.uploadError",defaultMessage:"A network error has occurred while trying to upload."},uploadEmptyWithFolderUploadEnabled:{id:"be.uploadEmptyWithFolderUploadEnabled",defaultMessage:"Drag and drop files and folders"},uploadEmptyWithFolderUploadDisabled:{id:"be.uploadEmptyWithFolderUploadDisabled",defaultMessage:"Drag and drop files"},uploadEmptyFileInput:{id:"be.uploadEmptyFileInput",defaultMessage:"Browse your device"},uploadEmptyFolderInput:{id:"be.uploadEmptyFolderInput",defaultMessage:"Select Folders"},uploadNoDragDrop:{id:"be.uploadNoDragDrop",defaultMessage:"Select files from your device"},uploadInProgress:{id:"be.uploadInProgress",defaultMessage:"Drag and drop to add additional files"},uploadSuccess:{id:"be.uploadSuccess",defaultMessage:"Success! Your files have been uploaded."},uploadSuccessFileInput:{id:"be.uploadSuccessFileInput",defaultMessage:"Select More Files"},uploadSuccessFolderInput:{id:"be.uploadSuccessFolderInput",defaultMessage:"Select More Folders"},uploadOptions:{id:"be.uploadOptions",defaultMessage:"{option1} or {option2}"},nameASC:{id:"be.nameASC",defaultMessage:"Name: A → Z"},nameDESC:{id:"be.nameDESC",defaultMessage:"Name: Z → A"},dateASC:{id:"be.dateASC",defaultMessage:"Date: Oldest → Newest"},dateDESC:{id:"be.dateDESC",defaultMessage:"Date: Newest → Oldest"},sizeASC:{id:"be.sizeASC",defaultMessage:"Size: Smallest → Largest"},sizeDESC:{id:"be.sizeDESC",defaultMessage:"Size: Largest → Smallest"},searchState:{id:"be.searchState",defaultMessage:"Sorry, we couldn’t find what you’re looking for."},selectedState:{id:"be.selectedState",defaultMessage:"You haven’t selected any items yet."},errorState:{id:"be.errorState",defaultMessage:"A network error has occurred while trying to load."},folderState:{id:"be.folderState",defaultMessage:"There are no items in this folder."},metadataState:{id:"be.metadataState",defaultMessage:"There are no items in this folder."},recentsState:{id:"be.recentsState",defaultMessage:"There are no recent items yet."},loadingState:{id:"be.loadingState",defaultMessage:"Please wait while the items load..."},errorBreadcrumb:{id:"be.errorBreadcrumb",defaultMessage:"Error"},rootBreadcrumb:{id:"be.rootBreadcrumb",defaultMessage:"All Files"},searchBreadcrumb:{id:"be.searchBreadcrumb",defaultMessage:"Search Results"},recentsBreadcrumb:{id:"be.recentsBreadcrumb",defaultMessage:"Recents"},selectedBreadcrumb:{id:"be.selectedBreadcrumb",defaultMessage:"Selected Items"},uploadsManagerUploadInProgress:{id:"be.uploadsManagerUploadInProgress",defaultMessage:"Uploading"},uploadsManagerUploadPrompt:{id:"be.uploadsManagerUploadPrompt",defaultMessage:"Drop files on this page to upload them into this folder."},uploadsManagerUploadComplete:{id:"be.uploadsManagerUploadComplete",defaultMessage:"Completed"},uploadsManagerUploadFailed:{id:"be.uploadsManagerUploadFailed",defaultMessage:"Some Uploads Failed"},uploadsCancelButtonTooltip:{id:"be.uploadsCancelButtonTooltip",defaultMessage:"Cancel this upload"},uploadsRetryButtonTooltip:{id:"be.uploadsRetryButtonTooltip",defaultMessage:"Retry upload"},uploadsFileSizeLimitExceededErrorMessage:{id:"be.uploadsFileSizeLimitExceededErrorMessage",defaultMessage:"File size exceeds the folder owner’s file size limit"},uploadsStorageLimitErrorMessage:{id:"be.uploadsStorageLimitErrorMessage",defaultMessage:"Account storage limit reached"},uploadsPendingFolderSizeLimitErrorMessage:{id:"be.uploadsPendingFolderSizeLimitErrorMessage",defaultMessage:"Pending app folder size limit exceeded"},uploadsItemNameInUseErrorMessage:{id:"be.uploadsItemNameInUseErrorMessage",defaultMessage:"A file with this name already exists."},uploadsProvidedFolderNameInvalidMessage:{id:"be.uploadsProvidedFolderNameInvalidMessage",defaultMessage:"Provided folder name, {name}, could not be used to create a folder."},uploadsOneOrMoreChildFoldersFailedToUploadMessage:{id:"be.uploadsOneOrMoreChildFoldersFailedToUploadMessage",defaultMessage:"One or more child folders failed to upload."},uploadsDefaultErrorMessage:{id:"be.uploadsDefaultErrorMessage",defaultMessage:"Something went wrong with the upload. Please try again."},errorOccured:{id:"be.errorOccured",defaultMessage:"An error occurred"},editLabel:{id:"be.editLabel",defaultMessage:"Edit"},getVersionInfo:{id:"be.getVersionInfo",defaultMessage:"Get version information"},keywordsApplied:{id:"be.keywordsAppliedList",defaultMessage:"Keywords were applied"},keywordsList:{id:"be.keywordsList",defaultMessage:"Keywords: {words}"},noActivity:{id:"be.noActivity",defaultMessage:"No activity to show"},noActivityAnnotationPrompt:{id:"be.noActivityAnnotationPrompt",defaultMessage:"Hover over the preview and use the controls at the bottom to annotate the file."},noActivityCommentPrompt:{id:"be.noActivityCommentPrompt",defaultMessage:"Comment and @mention people to notify them."},versionDeleted:{id:"be.versionDeleted",defaultMessage:"{name} deleted v{version_number}"},versionPromoted:{id:"be.versionPromoted",defaultMessage:"{name} promoted v{version_promoted} to v{version_number}"},versionRestored:{id:"be.versionRestored",defaultMessage:"{name} restored v{version_number}"},versionMultipleUsersUploaded:{id:"be.versionMultipleUsersUploaded",defaultMessage:"{numberOfCollaborators} collaborators uploaded v{versions}"},versionUploadCollapsed:{id:"be.versionUploadCollapsed",defaultMessage:"{name} uploaded v{versions}"},versionUploaded:{id:"be.versionUploaded",defaultMessage:"{name} uploaded v{version_number}"},fileRequestDisplayName:{id:"be.fileRequestDisplayName",defaultMessage:"File Request"},defaultInlineErrorContentMessage:{id:"be.defaultInlineErrorContentMessage",defaultMessage:"Please try again later."},fileDescriptionInlineErrorTitleMessage:{id:"be.fileDescriptionInlineErrorTitleMessage",defaultMessage:"Something went wrong when saving the description."},defaultErrorMaskHeaderMessage:{id:"be.defaultErrorMaskHeaderMessage",defaultMessage:"We’re sorry, something went wrong."},defaultErrorMaskSubHeaderMessage:{id:"be.defaultErrorMaskSubHeaderMessage",defaultMessage:"Please refresh the page or try again later."},fileAccessStatsErrorHeaderMessage:{id:"be.fileAccessStatsErrorHeaderMessage",defaultMessage:"Something went wrong when fetching the access stats."},fileAccessStatsPermissionsError:{id:"be.accessStatsPermissionsError",defaultMessage:"Sorry, you do not have permission to see the access stats for this file."},fileClassificationErrorHeaderMessage:{id:"be.fileClassificationErrorHeaderMessage",defaultMessage:"Something went wrong when fetching classification."},currentUserErrorHeaderMessage:{id:"be.currentUserErrorHeaderMessage",defaultMessage:"Something went wrong when fetching the current user."},activityFeedItemApiError:{id:"be.activityFeedItemApiError",defaultMessage:"There was a problem loading the activity feed. Please refresh the page or try again later."},nextFile:{id:"be.nextFile",defaultMessage:"Next File"},nextPage:{id:"be.pagination.nextPage",defaultMessage:"Next Page"},pageStatus:{id:"be.pagination.pageStatus",defaultMessage:"{pageNumber} of {pageCount}"},previousFile:{id:"be.previousFile",defaultMessage:"Previous File"},previousPage:{id:"be.pagination.previousPage",defaultMessage:"Previous Page"},previousSegment:{id:"be.previousSegment",defaultMessage:"Previous Segment"},nextSegment:{id:"be.nextSegment",defaultMessage:"Next Segment"},transcriptEdit:{id:"be.transcriptEdit",defaultMessage:"Click any section to edit."},emptyOpenWithDescription:{id:"be.emptyOpenWithDescription",defaultMessage:"No integrations are available for this file"},errorOpenWithDescription:{id:"be.errorOpenWithDescription",defaultMessage:"Opening this file with other services is currently unavailable"},defaultOpenWithDescription:{id:"be.defaultOpenWithDescription",defaultMessage:"Open this file with a partner service"},executeIntegrationOpenWithErrorHeader:{id:"be.executeIntegrationOpenWithErrorHeader",defaultMessage:"We’re sorry, this integration is currently unavailable."},executeIntegrationOpenWithErrorSubHeader:{id:"be.executeIntegrationOpenWithErrorSubHeader",defaultMessage:"Please try again later."},boxToolsInstallMessage:{id:"be.boxToolsInstallMessage",defaultMessage:"Install {boxTools} to open this file on your desktop"},boxToolsBlacklistedError:{id:"be.boxEditBlacklistedError",defaultMessage:"This file cannot be opened locally"},drawAnnotation:{id:"be.drawAnnotation",defaultMessage:"Drawing annotation mode"},pointAnnotation:{id:"be.pointAnnotation",defaultMessage:"Point annotation mode"},expand:{id:"be.expand",defaultMessage:"Expand"},collapse:{id:"be.collapse",defaultMessage:"Collapse"},back:{id:"be.back",defaultMessage:"Back"},priorCollaborator:{id:"be.priorCollaborator",defaultMessage:"A Prior Collaborator"}});t.a=o},function(e,t,r){var n;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
/*!
  Copyright (c) 2017 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/!function(){"use strict";var i={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var n=o(r);if("string"===n||"number"===n)e.push(r);else if(Array.isArray(r)&&r.length){var s=a.apply(null,r);s&&e.push(s)}else if("object"===n)for(var l in r)i.call(r,l)&&r[l]&&e.push(l)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):"object"===o(r(108))&&r(108)?void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n):window.classNames=a}()},,function(e,t,r){var n=r(188);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return a})),r.d(t,"d",(function(){return s}));var n=r(1);function o(){return new Error("Bad box item!")}function i(){return new Error("Insufficient Permissions!")}function a(){return new Error("Bad box user!")}function s(e){return e===n.Pd||e===n.Rd||e===n.Jd||e>=n.Md}},function(e,t,r){"use strict";var n=r(0),o=r(21),i=r.n(o),a=r(12),s=r.n(a);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 u(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=function(e){function t(){var e,r,n,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];return r=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?d(e):t}(this,(e=f(t)).call.apply(e,[this].concat(u))),n=d(r),o="id",i=s()("icon"),o in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i,r}var r,o,a;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}}),t&&p(e,t)}(t,e),r=t,(o=[{key:"render",value:function(){var e=this.props,t=e.children,r=e.title,o=u(e,["children","title"]),a="".concat(this.id,"-title"),s=i()(o,["role","aria-labelledby"]);return s.focusable="false",r?(s["aria-labelledby"]=a,s.role="img"):s.role="presentation",n.createElement("svg",s,r?n.createElement("title",{id:a},r):null,t)}}])&&c(r.prototype,o),a&&c(r,a),t}(n.Component);r.d(t,"a",(function(){return h}))},function(e,t,r){"use strict";var n=r(0),o=r(21),i=r.n(o),a=r(12),s=r.n(a);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 u(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=function(e){function t(){var e,r,n,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];return r=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?d(e):t}(this,(e=f(t)).call.apply(e,[this].concat(u))),n=d(r),o="id",i=s()("icon"),o in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i,r}var r,o,a;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}}),t&&p(e,t)}(t,e),r=t,(o=[{key:"render",value:function(){var e=this.props,t=e.children,r=e.title,o=u(e,["children","title"]),a="".concat(this.id,"-title"),s=i()(o,["role","aria-labelledby"]);return s.focusable="false",r?(s["aria-labelledby"]=a,s.role="img"):s.role="presentation",n.createElement("svg",s,r?n.createElement("title",{id:a},r):null,t)}}])&&c(r.prototype,o),a&&c(r,a),t}(n.Component);t.a=h},function(e,t,r){"use strict";r.d(t,"e",(function(){return u})),r.d(t,"f",(function(){return c})),r.d(t,"h",(function(){return f})),r.d(t,"b",(function(){return d})),r.d(t,"a",(function(){return p})),r.d(t,"d",(function(){return h})),r.d(t,"c",(function(){return b})),r.d(t,"g",(function(){return m}));var n=r(0),o=r(133),i=r(42),a=r(256),s={38:"&amp;",62:"&gt;",60:"&lt;",34:"&quot;",39:"&#x27;"},l=/[&><"']/g;function u(e){return(""+e).replace(l,(function(e){return s[e.charCodeAt(0)]}))}function c(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}function f(e){Object(a.a)(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}function d(e,t){var r=t?"\n".concat(t.stack):"";return"[React Intl] ".concat(e).concat(r)}var p={formats:{},messages:{},timeZone:void 0,textComponent:n.Fragment,defaultLocale:"en",defaultFormats:{},onError:function(e){0}};function h(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{}}}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{}},t=Intl.RelativeTimeFormat,r=Intl.ListFormat;return{getDateTimeFormat:Object(i.a)(Intl.DateTimeFormat,e.dateTime),getNumberFormat:Object(i.a)(Intl.NumberFormat,e.number),getMessageFormat:Object(i.a)(o.a,e.message),getRelativeTimeFormat:Object(i.a)(t,e.relativeTime),getPluralRules:Object(i.a)(Intl.PluralRules,e.pluralRules),getListFormat:Object(i.a)(r,e.list)}}function m(e,t,r,n){var o,i=e&&e[t];if(i&&(o=i[r]),o)return o;n(d("No ".concat(t," format named: ").concat(r)))}},function(e,t,r){var n=r(94),o=0;e.exports=function(e){var t=++o;return n(e)+t}},,function(e,t,r){"use strict";var n=r(3),o=r.n(n),i=r(79),a=r.n(i),s=r(7),l=r.n(s),u=r(151),c=r.n(u),f=r(244),d=r.n(f),p=r(60),h=r(1);function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var w=[h.Dd,h.Fd,h.Ed].map(d.a),k=function(){function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=r.id,o=r.clientName,i=r.language,s=r.token,u=r.version,c=r.sharedLink,f=r.sharedLinkPassword,d=r.responseInterceptor,p=r.requestInterceptor,b=r.retryableStatusCodes,m=void 0===b?[h.Pd]:b,y=r.shouldRetry,v=void 0===y||y;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),g(this,"retryCount",0),g(this,"errorInterceptor",(function(e){if(t.shouldRetryRequest(e)){t.retryCount+=1;var r=t.getExponentialRetryTimeoutInMs(t.retryCount);return new Promise((function(n,o){t.retryTimeout=setTimeout((function(){t.axios(e.config).then(n,o)}),r)}))}var n=l()(e,"response.data")||e;return t.responseInterceptor(n),Promise.reject(e)})),this.clientName=o,this.id=n,this.language=i,this.responseInterceptor=d||this.defaultResponseInterceptor,this.retryableStatusCodes=m,this.sharedLink=c,this.sharedLinkPassword=f,this.shouldRetry=v,this.token=s,this.version=u,this.axios=a.a.create(),this.axiosSource=a.a.CancelToken.source(),this.axios.interceptors.response.use(this.responseInterceptor,this.errorInterceptor),"function"==typeof p&&this.axios.interceptors.request.use(p)}var t,r,n,o,i;return t=e,(r=[{key:"defaultResponseInterceptor",value:function(e){return e}},{key:"shouldRetryRequest",value:function(e){if(!this.shouldRetry||this.retryCount>=3)return!1;var t=e.response,r=e.request,n=e.config,o=l()(t,"status"),i=l()(n,"method"),a=r&&!t,s=o===h.Pd,u=c()(this.retryableStatusCodes,o)&&c()(w,i);return a||s||u}},{key:"getExponentialRetryTimeoutInMs",value:function(e){var t=Math.ceil(1e3*Math.random());return 1e3*Math.pow(2,e-1)+t}},{key:"getParsedUrl",value:function(e){var t=document.createElement("a");return t.href=e,{api:e.replace("".concat(t.origin,"/2.0"),""),host:t.host,hostname:t.hostname,pathname:t.pathname,origin:t.origin,protocol:t.protocol,hash:t.hash,port:t.port}}},{key:"getHeaders",value:(o=regeneratorRuntime.mark((function e(t){var r,n,o,i,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},n=m(g({Accept:"application/json"},h.Bd,"application/json"),r),this.language&&!n[h.yd]&&(n[h.yd]=this.language),this.sharedLink&&(n.BoxApi="shared_link=".concat(this.sharedLink),this.sharedLinkPassword&&(n.BoxApi="".concat(n.BoxApi,"&shared_link_password=").concat(this.sharedLinkPassword))),this.clientName&&(n[h.zd]=this.clientName),this.version&&(n[h.Ad]=this.version),o=t||this.id||"",e.next=9,p.a.getWriteToken(o,this.token);case 9:return(i=e.sent)&&(n.Authorization="Bearer ".concat(i)),e.abrupt("return",n);case 12:case"end":return e.stop()}}),e,this)})),i=function(){var e=this,t=arguments;return new Promise((function(r,n){var i=o.apply(e,t);function a(e){y(i,r,n,a,s,"next",e)}function s(e){y(i,r,n,a,s,"throw",e)}a(void 0)}))},function(e){return i.apply(this,arguments)})},{key:"get",value:function(e){var t=this,r=e.url,n=e.id,o=e.params,i=void 0===o?{}:o,a=e.headers,s=void 0===a?{}:a;return this.getHeaders(n,s).then((function(e){return t.axios.get(r,{cancelToken:t.axiosSource.token,params:i,headers:e,parsedUrl:t.getParsedUrl(r)})}))}},{key:"post",value:function(e){var t=this,r=e.url,n=e.id,o=e.data,i=e.params,a=e.headers,s=void 0===a?{}:a,l=e.method,u=void 0===l?h.Gd:l;return this.getHeaders(n,s).then((function(e){return t.axios({url:r,data:o,params:i,method:u,parsedUrl:t.getParsedUrl(r),headers:e})}))}},{key:"put",value:function(e){var t=e.url,r=e.id,n=e.data,o=e.params,i=e.headers,a=void 0===i?{}:i;return this.post({id:r,url:t,data:n,params:o,headers:a,method:h.Hd})}},{key:"delete",value:function(e){var t=e.url,r=e.id,n=e.data,o=void 0===n?{}:n,i=e.headers,a=void 0===i?{}:i;return this.post({id:r,url:t,data:o,headers:a,method:h.Cd})}},{key:"options",value:function(e){var t=this,r=e.id,n=e.url,o=e.data,i=e.headers,a=void 0===i?{}:i,s=e.successHandler,l=e.errorHandler;return this.getHeaders(r,a).then((function(e){return t.axios({url:n,data:o,method:h.Fd,headers:e}).then(s).catch(l)})).catch(l)}},{key:"uploadFile",value:function(e){var t=this,r=e.id,n=e.url,o=e.data,i=e.headers,a=void 0===i?{}:i,s=e.method,l=void 0===s?h.Gd:s,u=e.successHandler,c=e.errorHandler,f=e.progressHandler,d=e.withIdleTimeout,p=void 0!==d&&d,b=e.idleTimeoutDuration,m=void 0===b?12e4:b,y=e.idleTimeoutHandler;return this.getHeaders(r,a).then((function(e){var r,i=f;if(p){var s=function(){t.abort(),y&&y()};r=setTimeout(s,m),i=function(e){clearTimeout(r),r=setTimeout(s,m),f(e)}}t.axios({url:n,data:o,transformRequest:function(e,t){if(delete t[h.xd],delete t[h.Bd],a[h.Bd]&&(t[h.Bd]=a[h.Bd]),e&&!(e instanceof Blob)&&e.attributes){var r=new FormData;return Object.keys(e).forEach((function(t){r.append(t,e[t])})),r}return e},method:l,headers:e,onUploadProgress:i,cancelToken:t.axiosSource.token}).then((function(e){clearTimeout(r),u(e)})).catch((function(e){clearTimeout(r),c(e)}))})).catch(c)}},{key:"abort",value:function(){this.retryTimeout&&clearTimeout(this.retryTimeout),this.axiosSource&&(this.axiosSource.cancel(),this.axiosSource=a.a.CancelToken.source())}}])&&v(t.prototype,r),n&&v(t,n),e}(),x=r(65),E=r(97);function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function C(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){S(i,n,o,a,s,"next",e)}function s(e){S(i,n,o,a,s,"throw",e)}a(void 0)}))}}function P(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.localStore=new E.a,this.cachedResults={},this.populateCachedResultsWithValidLocalStoreValues(),this.saveCachedResultsToLocalStore()}var t,r,n,o,i;return t=e,(r=[{key:"getCachedResultsFromLocalStore",value:function(){return this.localStore.getItem("bcu-uploads-reachability-cached-results")}},{key:"saveCachedResultsToLocalStore",value:function(){this.localStore.setItem("bcu-uploads-reachability-cached-results",this.cachedResults)}},{key:"isCachedHostValid",value:function(e){return e.expirationTimestampMS>Date.now()}},{key:"getCachedResult",value:function(e){if(e in this.cachedResults){var t=this.cachedResults[e];if(this.isCachedHostValid(t))return t}return null}},{key:"updateCachedResult",value:function(e,t){this.cachedResults[e]={isReachable:t,expirationTimestampMS:Date.now()+864e5},this.saveCachedResultsToLocalStore()}},{key:"populateCachedResultsWithValidLocalStoreValues",value:function(){var e=this,t=this.getCachedResultsFromLocalStore();t&&Object.keys(t).forEach((function(r){var n=t[r];e.isCachedHostValid(n)&&(e.cachedResults[r]=n)}))}},{key:"getUnreachableHostsUrls",value:function(){var e=this,t=[];return this.cachedResults?(Object.keys(this.cachedResults).forEach((function(r){var n=e.cachedResults[r];e.isCachedHostValid(n)&&!n.isReachable&&t.push(r)})),t):t}},{key:"isReachable",value:(i=C(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t!=="".concat(h.O,"/")){e.next=2;break}return e.abrupt("return",!0);case 2:if(!(r=this.getCachedResult(t))){e.next=5;break}return e.abrupt("return",r.isReachable);case 5:return e.next=7,this.makeReachabilityRequest(t);case 7:return n=e.sent,this.updateCachedResult(t,n),e.abrupt("return",n);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"makeReachabilityRequest",value:(o=C(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="".concat(t,"html5?reachability_test=run"),O(r={},h.Bd,"application/x-www-form-urlencoded; charset=UTF-8"),O(r,"X-File-Name","reachability_pseudofile.txt"),O(r,"X-File-Size","1234"),o=r,e.prev=3,e.next=6,a.a.post(n,"reachability_file=test_file_data",{headers:o});case 6:e.next=11;break;case 8:return e.prev=8,e.t0=e.catch(3),e.abrupt("return",!1);case 11:return e.abrupt("return",!0);case 12:case"end":return e.stop()}}),e,null,[[3,8]])}))),function(e){return o.apply(this,arguments)})}])&&P(t.prototype,r),n&&P(t,n),e}(),T=r(18),A=r(8);function j(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?I(Object(r),!0).forEach((function(t){R(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function M(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function R(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var F=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),R(this,"successHandler",(function(e){r.isDestroyed()||"function"!=typeof r.successCallback||r.successCallback(e)})),R(this,"errorHandler",(function(e){if(!r.isDestroyed()&&"function"==typeof r.errorCallback){var t=e.response;t&&t.data?r.errorCallback(t.data,r.errorCode):r.errorCallback(e,r.errorCode)}})),this.cache=t.cache||new x.a,this.apiHost=t.apiHost||h.L,this.uploadHost=t.uploadHost||h.O,this.options=D({},t,{apiHost:this.apiHost,uploadHost:this.uploadHost,cache:this.cache}),this.xhr=new k(this.options),this.destroyed=!1,this.consoleLog=t.consoleLog&&window.console&&window.console.log||o.a,this.consoleError=t.consoleError&&window.console&&window.console.error||o.a,this.uploadsReachability=new _}var t,r,n,i,a;return t=e,(r=[{key:"destroy",value:function(){this.xhr.abort(),this.destroyed=!0}},{key:"isDestroyed",value:function(){return this.destroyed}},{key:"checkApiCallValidity",value:function(e,t,r){if(!r||!t)throw Object(A.a)();if(!t[e])throw Object(A.b)()}},{key:"getBaseApiUrl",value:function(){var e=this.apiHost.endsWith("/")?"2.0":"/2.0";return"".concat(this.apiHost).concat(e)}},{key:"getBaseUploadUrl",value:function(){var e=this.uploadHost.endsWith("/")?"api/2.0":"/api/2.0";return"".concat(this.uploadHost).concat(e)}},{key:"getCache",value:function(){return this.cache}},{key:"getUrl",value:function(e){throw new Error("Implement me!")}},{key:"format",value:function(e){throw new Error("Implement me!")}},{key:"get",value:function(e){var t=e.id,r=e.successCallback,n=e.errorCallback,o=e.requestData,i=e.url||this.getUrl(t);return this.makeRequest(h.Dd,t,i,r,n,o)}},{key:"post",value:function(e){var t=e.id,r=e.url,n=e.data,o=e.successCallback,i=e.errorCallback;return this.makeRequest(h.Gd,t,r,o,i,n)}},{key:"put",value:function(e){var t=e.id,r=e.url,n=e.data,o=e.successCallback,i=e.errorCallback;return this.makeRequest(h.Hd,t,r,o,i,n)}},{key:"delete",value:function(e){var t=e.id,r=e.url,n=e.data,o=e.successCallback,i=e.errorCallback;return this.makeRequest(h.Cd,t,r,o,i,n)}},{key:"makeRequest",value:(i=regeneratorRuntime.mark((function e(t,r,n,o,i){var a,s,l,u,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=c.length>5&&void 0!==c[5]?c[5]:{},!this.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:return this.successCallback=o,this.errorCallback=i,s=this.xhr[t.toLowerCase()].bind(this.xhr),e.prev=6,e.next=9,s(D({id:Object(T.b)(r),url:n},a));case 9:l=e.sent,u=l.data,this.successHandler(u),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(6),this.errorHandler(e.t0);case 17:case"end":return e.stop()}}),e,this,[[6,14]])})),a=function(){var e=this,t=arguments;return new Promise((function(r,n){var o=i.apply(e,t);function a(e){j(o,r,n,a,s,"next",e)}function s(e){j(o,r,n,a,s,"throw",e)}a(void 0)}))},function(e,t,r,n,o){return a.apply(this,arguments)})}])&&M(t.prototype,r),n&&M(t,n),e}();t.a=F},function(e,t,r){"use strict";r.d(t,"a",(function(){return g})),r.d(t,"b",(function(){return v})),r.d(t,"c",(function(){return y})),r.d(t,"e",(function(){return b})),r.d(t,"d",(function(){return m})),r.d(t,"i",(function(){return k})),r.d(t,"j",(function(){return w})),r.d(t,"f",(function(){return d})),r.d(t,"g",(function(){return h})),r.d(t,"h",(function(){return p}));var n=r(172),o=r.n(n),i=r(70),a=r.n(i),s=r(1);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e){return(f="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)}var d=[s.Fc,s.Rc,s.pd,s.jd,s.Uc,s.Bc,s.Wc,s.Vc,s.Pc,s.vc,s.Qc,s.Dc,s.Jc,s.Kc,s.rc,s.Ic,s.ad,s.rd],p=[s.Fc,s.Rc,s.jd,s.Bc,s.Cc,s.gd,s.Wc,s.tc,s.uc,s.vc,s.wc,s.Pc,s.Qc,s.Tc,s.yc,s.Oc,s.Lc,s.sd,s.td,s.Jc,s.dd,s.rc,s.Ic,s.qd],h=[s.Fc,s.Wc,s.gd,s.fd,s.Cc,s.Rc,s.jd,s.Bc,s.ad,s.ud,s.rc,s.Ic],b=[s.Cc,s.Pc,s.Qc,s.dd,s.jd,s.qd,s.td],m=[s.rc,s.vc,s.Bc,s.Ic,s.Pc,s.Qc,s.Rc,s.Wc,s.bd,s.cd,s.ed,s.jd,s.nd,s.od,s.qd,s.td],y=[s.oc,s.gd],v=(s.md,s.Hc,s.vc,s.wc,s.zc,s.Mc,s.qc,s.kd,[s.ld,s.Mc,s.vc,s.wc,s.Pc,s.Wc]),g=(s.wc,s.Qc,s.Tc,s.qc,[s.mc,s.pc,s.wc,s.Sc,s.Zc]);function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&"object"===f(e)&&0!==Object.keys(e).length?t.filter((function(t){return!o()(e,t)})):t}function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(!Array.isArray(t)||0===t.length)return e;var r=u({},e);return w(e,t).forEach((function(e){a()(r,e,null)})),r}},,,function(e,t,r){"use strict";r.d(t,"b",(function(){return s})),r.d(t,"c",(function(){return l})),r.d(t,"d",(function(){return u})),r.d(t,"a",(function(){return c}));var n=r(7),o=r.n(n),i=r(1),a=/\.([0-9a-z]+)$/i;function s(e){return"".concat(i.xf).concat(e)}function l(e){return"".concat(i.yf).concat(e)}function u(e){return e.extension===i.vd}function c(e){if("string"!=typeof e)return"";var t=a.exec(e);return o()(t,"[1]","")}},function(e,t,r){"use strict";var n=r(22);r.d(t,"a",(function(){return n.a}))},,function(e,t,r){var n=r(157),o=r(263),i=r(393),a=r(99),s=r(74),l=r(399),u=r(297),c=r(220),f=u((function(e,t){var r={};if(null==e)return r;var u=!1;t=n(t,(function(t){return t=a(t,e),u||(u=t.length>1),t})),s(e,c(e),r),u&&(r=o(r,7,l));for(var f=t.length;f--;)i(r,t[f]);return r}));e.exports=f},function(e,t,r){"use strict";var n=r(0),o=r(3),i=r.n(o),a=r(26);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function l(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}t.a=function(e){var t=e.children,r=e.className,o=void 0===r?"":r,u=e.getDOMRef,c=void 0===u?i.a:u,f=e.isDisabled,d=void 0!==f&&f,p=e.type,h=void 0===p?a.a.SUBMIT:p,b=l(e,["children","className","getDOMRef","isDisabled","type"]),m={};return d&&(m["aria-disabled"]=!0,m.onClick=function(e){e.preventDefault(),e.stopPropagation()}),n.createElement("button",s({className:"btn-plain ".concat(o),ref:c,type:h},b,m),t)}},function(e,t,r){"use strict";r.d(t,"a",(function(){return h})),r.d(t,"b",(function(){return c})),r.d(t,"c",(function(){return d})),r.d(t,"d",(function(){return k})),r.d(t,"e",(function(){return b})),r.d(t,"f",(function(){return u})),r.d(t,"g",(function(){return f})),r.d(t,"h",(function(){return v})),r.d(t,"i",(function(){return y})),r.d(t,"j",(function(){return w})),r.d(t,"k",(function(){return p})),r.d(t,"l",(function(){return m})),r.d(t,"m",(function(){return x}));var n=r(7),o=r.n(n);function i(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}var a={};function s(e){return!(!e.options||!e.file)}function l(e){return!(!e.options||!e.item)}function u(e){return s(e)?e.file:e}function c(e){return l(e)?e.item:e}function f(e){return s(e)&&e.options||a}function d(e){return l(e)&&e.options||a}function p(e){var t,r=e.lastModified||e.lastModifiedDate;if(r&&("string"==typeof r||"number"==typeof r||r instanceof Date)){var n=new Date(r);if(t=n,"[object Date]"===Object.prototype.toString.call(t)&&!Number.isNaN(t.getTime()))return function(e){return e.toISOString().replace(/\.[0-9]{3}/,"")}(n)}return null}function h(e,t,r){var n=e*Math.pow(r,2);return n>t?t:n}function b(e){return(e.webkitGetAsEntry||e.mozGetAsEntry||e.getAsEntry).call(e)}function m(e){var t=b(c(e));return!!t&&t.isDirectory}function y(e){return new Promise((function(t){e.file((function(e){t(e)}))}))}function v(e){return g.apply(this,arguments)}function g(){var e;return e=regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=c(t),n=b(r)){e.next=4;break}return e.abrupt("return",null);case 4:return e.next=6,y(n);case 6:if(o=e.sent,!l(t)){e.next=9;break}return e.abrupt("return",{file:o,options:d(t)});case 9:return e.abrupt("return",o);case 10:case"end":return e.stop()}}),e)})),(g=function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function s(e){i(a,n,o,s,l,"next",e)}function l(e){i(a,n,o,s,l,"throw",e)}s(void 0)}))}).apply(this,arguments)}function w(e,t){if(!s(e))return e.name;var r=e,n=o()(r,"options.folderId",t),i=o()(r,"options.uploadInitTimestamp",Date.now()),a=r.file.webkitRelativePath||r.file.name;return"".concat(a,"_").concat(n,"_").concat(i)}function k(e,t){var r=b(c(e)).name;if(!l(e))return r;var n=d(e),o=n.folderId,i=void 0===o?t:o,a=n.uploadInitTimestamp,s=void 0===a?Date.now():a;return"".concat(r,"_").concat(i,"_").concat(s)}function x(){var e=window.crypto||window.msCrypto;return"https:"===window.location.protocol&&e&&e.subtle}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n,o=r(0),i=r(5),a=r.n(i),s=r(21),l=r.n(s),u=r(53),c=r(139);function f(e){return(f="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 d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function p(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}!function(e){e.BUTTON="button",e.RESET="reset",e.SUBMIT="submit"}(n||(n={}));var g=function(e){function t(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r=function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?m(e):t}(this,(e=b(t)).call.apply(e,[this].concat(o))),v(m(r),"btnElement",null),v(m(r),"handleClick",(function(e){var t=r.props,n=t.isDisabled,o=t.onClick;if(n||r.btnElement&&r.btnElement.classList.contains("is-disabled"))return e.preventDefault(),void e.stopPropagation();o&&o(e)})),r}var r,n,i;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}}),t&&y(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this,t=this.props,r=t.children,n=t.className,i=t.isDisabled,s=t.isLoading,f=t.isSelected,h=t.setRef,b=t.type,m=t.showRadar,y=p(t,["children","className","isDisabled","isLoading","isSelected","setRef","type","showRadar"]),v=l()(y,["onClick"]);i&&(v["aria-disabled"]=!0);var g=a()("btn",{"is-disabled":i,"is-loading":s,"is-selected":f},n),w=o.createElement("button",d({ref:function(t){e.btnElement=t,h&&h(t)},className:g,onClick:this.handleClick,type:b},v),o.createElement("span",{className:"btn-content"},r),s&&o.createElement(u.b,{className:"btn-loading-indicator"}));return m&&(w=o.createElement(c.a,null,w)),w}}])&&h(r.prototype,n),i&&h(r,i),t}(o.Component);v(g,"defaultProps",{className:"",isLoading:!1,showRadar:!1,type:n.SUBMIT}),t.b=g},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n,o=r(0);r(409);!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.DEFAULT="default"}(n||(n={}));t.b=function(e){var t=e.className,r=void 0===t?"":t,i=e.size,a=void 0===i?n.DEFAULT:i;return o.createElement("div",{className:"crawler ".concat(r," is-").concat(a)},o.createElement("div",null),o.createElement("div",null),o.createElement("div",null))}},function(e,t,r){"use strict";var n=r(24);r.d(t,"b",(function(){return n.b})),r.d(t,"a",(function(){return n.a}))},,,,,function(e,t){var r=Array.isArray;e.exports=r},function(e,t,r){"use strict";var n=r(107),o=Object(n.defineMessages)({appActivityDeleteErrorMessage:{id:"be.api.appActivityDeleteErrorMessage",defaultMessage:"There was an error deleting this item."},commentCreateErrorMessage:{id:"be.api.commentCreateErrorMessage",defaultMessage:"There was an error creating this comment."},commentCreateConflictMessage:{id:"be.api.commentCreateConflictMessage",defaultMessage:"This comment already exists."},commentDeleteErrorMessage:{id:"be.api.commentDeleteErrorMessage",defaultMessage:"There was an error deleting this comment."},taskActionErrorTitle:{id:"be.api.taskActionErrorTitle",defaultMessage:"Error"},taskApproveErrorMessage:{id:"be.api.taskApproveErrorMessage",defaultMessage:"An error has occurred while approving this task. Please refresh the page and try again."},taskCompleteErrorMessage:{id:"be.api.taskCompleteErrorMessage",defaultMessage:"An error has occurred while completing this task. Please refresh the page and try again."},taskRejectErrorMessage:{id:"be.api.taskRejectErrorMessage",defaultMessage:"An error has occurred while rejecting this task. Please refresh the page and try again."},taskDeleteErrorMessage:{id:"be.api.taskDeleteErrorMessage",defaultMessage:"There was an error while deleting this task. Please refresh the page and try again."},taskCreateErrorMessage:{id:"be.api.taskCreateErrorMessage",defaultMessage:"An error occurred while creating this task. Please try again."},taskGroupExceedsLimitWarningMessage:{id:"be.api.taskGroupExceedsWarningTitle",defaultMessage:"One or more groups can not receive this task as a group size cannot exceed the limit of {max} assignees per group."}});t.a=o},function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){var t=r(e);return null!=e&&("object"==t||"function"==t)}},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=r(226),i=r(421),a=Object.prototype.toString;function s(e){return"[object Array]"===a.call(e)}function l(e){return null!==e&&"object"===n(e)}function u(e){return"[object Function]"===a.call(e)}function c(e,t){if(null!=e)if("object"!==n(e)&&(e=[e]),s(e))for(var r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:s,isArrayBuffer:function(e){return"[object ArrayBuffer]"===a.call(e)},isBuffer:i,isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===a.call(e)},isFile:function(e){return"[object File]"===a.call(e)},isBlob:function(e){return"[object Blob]"===a.call(e)},isFunction:u,isStream:function(e){return l(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function r(r,o){"object"===n(t[o])&&"object"===n(r)?t[o]=e(t[o],r):t[o]=r}for(var o=0,i=arguments.length;o<i;o++)c(arguments[o],r);return t},extend:function(e,t,r){return c(t,(function(t,n){e[n]=r&&"function"==typeof t?o(t,r):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,r){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=r(337)},function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":r(window))&&(n=window)}e.exports=n},,function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=r(211),i="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,a=o||i||Function("return this")();e.exports=a},function(e,t,r){"use strict";var n,o=r(0),i=r(5),a=r.n(i),s=r(12),l=r.n(s),u=r(45),c=r.n(u);!function(e){e.TOP_LEFT="top left",e.TOP_CENTER="top center",e.TOP_RIGHT="top right",e.MIDDLE_LEFT="middle left",e.MIDDLE_CENTER="middle center",e.MIDDLE_RIGHT="middle right",e.BOTTOM_LEFT="bottom left",e.BOTTOM_CENTER="bottom center",e.BOTTOM_RIGHT="bottom right"}(n||(n={}));var f,d,p,h=n,b=r(153),m=r(19);r(417);function y(e){return(y="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 v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"b",(function(){return d})),r.d(t,"a",(function(){return p})),function(e){e.CALLOUT="callout",e.DEFAULT="default",e.ERROR="error"}(d||(d={})),function(e){e.BOTTOM_CENTER="bottom-center",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_RIGHT="bottom-right",e.MIDDLE_LEFT="middle-left",e.MIDDLE_RIGHT="middle-right",e.TOP_CENTER="top-center",e.TOP_LEFT="top-left",e.TOP_RIGHT="top-right"}(p||(p={}));var O=(E(f={},p.BOTTOM_CENTER,{attachment:h.TOP_CENTER,targetAttachment:h.BOTTOM_CENTER}),E(f,p.BOTTOM_LEFT,{attachment:h.TOP_RIGHT,targetAttachment:h.BOTTOM_RIGHT}),E(f,p.BOTTOM_RIGHT,{attachment:h.TOP_LEFT,targetAttachment:h.BOTTOM_LEFT}),E(f,p.MIDDLE_LEFT,{attachment:h.MIDDLE_RIGHT,targetAttachment:h.MIDDLE_LEFT}),E(f,p.MIDDLE_RIGHT,{attachment:h.MIDDLE_LEFT,targetAttachment:h.MIDDLE_RIGHT}),E(f,p.TOP_CENTER,{attachment:h.BOTTOM_CENTER,targetAttachment:h.TOP_CENTER}),E(f,p.TOP_LEFT,{attachment:h.BOTTOM_RIGHT,targetAttachment:h.TOP_RIGHT}),E(f,p.TOP_RIGHT,{attachment:h.BOTTOM_LEFT,targetAttachment:h.TOP_LEFT}),f),S=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==y(t)&&"function"!=typeof t?k(e):t}(this,w(t).call(this,e)),E(k(r),"tooltipID",l()("tooltip")),E(k(r),"tetherRef",o.createRef()),E(k(r),"position",(function(){r.tetherRef.current&&r.isShown()&&r.tetherRef.current.position()})),E(k(r),"closeTooltip",(function(){var e=r.props.onDismiss;r.setState({wasClosedByUser:!0}),e&&e()})),E(k(r),"fireChildEvent",(function(e,t){var n=r.props.children.props[e];n&&n(t)})),E(k(r),"handleTooltipEvent",(function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()})),E(k(r),"handleMouseEnter",(function(e){r.setState({isShown:!0}),r.fireChildEvent("onMouseEnter",e)})),E(k(r),"handleMouseLeave",(function(e){r.setState({isShown:!1}),r.fireChildEvent("onMouseLeave",e)})),E(k(r),"handleFocus",(function(e){r.setState({isShown:!0}),r.fireChildEvent("onFocus",e)})),E(k(r),"handleBlur",(function(e){r.setState({isShown:!1}),r.fireChildEvent("onBlur",e)})),E(k(r),"handleKeyDown",(function(e){"Escape"===e.key&&r.setState({isShown:!1}),r.fireChildEvent("onKeyDown",e)})),E(k(r),"isControlled",(function(){return void 0!==r.props.isShown})),E(k(r),"isShown",(function(){var e=r.props.isShown;return(r.isControlled()?e:r.state.isShown)&&!r.state.wasClosedByUser&&r.state.hasRendered})),r.state={isShown:!!e.isShown,hasRendered:!1,wasClosedByUser:!1},r}var r,n,i;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}}),t&&x(e,t)}(t,e),r=t,(n=[{key:"componentDidMount",value:function(){this.setState({hasRendered:!0})}},{key:"render",value:function(){var e=this.props,t=e.bodyElement,r=e.children,n=e.className,i=e.constrainToScrollParent,s=e.constrainToWindow,l=e.isDisabled,u=e.isTabbable,f=void 0===u||u,h=e.offset,y=e.position,g=void 0===y?p.TOP_CENTER:y,w=e.showCloseButton,k=e.stopBubble,x=e.text,E=e.theme;if(l)return o.Children.only(r);var S=this.isControlled(),C=this.isShown(),P=w&&S,_="string"==typeof g?O[g]:g,T=[],A={};i&&T.push({to:"scrollParent",attachment:"together"}),s&&T.push({to:"window",attachment:"together"}),C&&(A["aria-describedby"]=this.tooltipID,E===d.ERROR&&(A["aria-errormessage"]=this.tooltipID)),S||(A.onBlur=this.handleBlur,A.onFocus=this.handleFocus,A.onKeyDown=this.handleKeyDown,A.onMouseEnter=this.handleMouseEnter,A.onMouseLeave=this.handleMouseLeave,f&&(A.tabIndex="0"));var j=t instanceof HTMLElement?t:document.body,I=a()("tooltip","bdl-Tooltip",n,{"is-callout":E===d.CALLOUT,"is-error":E===d.ERROR,"with-close-button":P}),D={attachment:_.attachment,bodyElement:j,classPrefix:"tooltip",constraints:T,enabled:C,targetAttachment:_.targetAttachment};h&&(D.offset=h);var M=o.createElement(o.Fragment,null,x,P&&o.createElement(m.a,{className:"tooltip-close-button",onClick:this.closeTooltip},o.createElement(b.a,{className:"bdl-Tooltip-iconClose",width:14,height:14}))),R=k?o.createElement("div",{className:I,id:this.tooltipID,role:"presentation",onClick:this.handleTooltipEvent,onContextMenu:this.handleTooltipEvent,onKeyPress:this.handleTooltipEvent},o.createElement("div",{role:"tooltip","aria-live":"polite"},M)):o.createElement("div",{className:I,id:this.tooltipID,role:"tooltip","aria-live":"polite"},M);return o.createElement(c.a,v({ref:this.tetherRef},D),o.cloneElement(o.Children.only(r),A),C&&R)}}])&&g(r.prototype,n),i&&g(r,i),t}(o.Component);E(S,"defaultProps",{constrainToScrollParent:!1,constrainToWindow:!0,isDisabled:!1,position:p.TOP_CENTER,theme:d.DEFAULT});t.c=S},function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return null!=e&&"object"==r(e)}},,function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n};function i(e){return JSON.stringify(e.map((function(e){return e&&"object"===n(e)?(t=e,Object.keys(t).sort().map((function(e){var r;return(r={})[e]=t[e],r}))):e;var t})))}t.a=function(e,t){return void 0===t&&(t={}),function(){for(var r,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];var s=i(n),l=s&&t[s];return l||(l=new((r=e).bind.apply(r,o([void 0],n))),s&&(t[s]=l)),l}}},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var n,o=(n=r(411))&&n.__esModule?n:{default:n}},function(e,t,r){"use strict";var n=r(61),o=r.n(n),i=r(7),a=r.n(i),s=r(15),l=r(18),u=r(8),c=r(1),f=r(76),d=r(67),p=r(60);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 b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function g(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){v(i,n,o,a,s,"next",e)}function s(e){v(i,n,o,a,s,"throw",e)}a(void 0)}))}}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function k(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var O=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),k(this,x(t).apply(this,arguments))}var r,n,i,f,h,b,y;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}}),t&&E(e,t)}(t,e),r=t,(n=[{key:"getCacheKey",value:function(e){return"".concat(c.h).concat(e)}},{key:"getUrl",value:function(e){var t=e?"/".concat(e):"";return"".concat(this.getBaseApiUrl(),"/files").concat(t)}},{key:"getDownloadUrl",value:(y=g(regeneratorRuntime.mark((function e(t,r,n,i){var a,s,u,f,d,h,b,y;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.errorCode=c.Pb,this.errorCallback=i,this.successCallback=n,a=r[c.Ic],s=r[c.rc],e.next=7,p.a.getReadToken(Object(l.b)(t),this.options.token);case 7:if(u=e.sent,a&&s&&u){e.next=11;break}return this.errorHandler(new Error("Download is missing required fields or token.")),e.abrupt("return");case 11:f=o.a.parseUrl(s),d=f.query,h=f.url,b=m({},d,{access_token:u}),y=o.a.stringify(b),this.successHandler("".concat(h,"?").concat(y));case 15:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return y.apply(this,arguments)})},{key:"isRepresentationsCallComplete",value:function(e){var t=a()(e,"data.status.state");return!t||t===c.Ce||t===c.De||t===c.Ee}},{key:"generateRepresentation",value:(b=g(regeneratorRuntime.mark((function e(t){var r,n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=a()(t,"info.url")){e.next=3;break}return e.abrupt("return",t);case 3:return e.abrupt("return",Object(d.a)((function(e,t){return n.xhr.get({successCallback:e,errorCallback:t,url:r}).then((function(r){return n.isRepresentationsCallComplete(r)?e(r.data):t(r.data)})).catch((function(e){t(e)}))}),4,2e3,2));case 4:case"end":return e.stop()}}),e)}))),function(e){return b.apply(this,arguments)})},{key:"getThumbnailUrl",value:(h=g(regeneratorRuntime.mark((function e(t){var r,n,i,s,u,c,f,d,h,b;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a()(t,"representations.entries[0]"),n=a()(r,"representation"),i=a()(r,"content.url_template"),e.next=5,p.a.getReadToken(Object(l.b)(t.id),this.options.token);case 5:if(s=e.sent,n&&i&&s){e.next=8;break}return e.abrupt("return",null);case 8:return u=i.replace("{+asset_path}","jpg"===n?"":"1.png"),c=o.a.parseUrl(u),f=c.query,d=c.url,h=m({},f,{access_token:s}),b=o.a.stringify(h),e.abrupt("return","".concat(d,"?").concat(b));case 13:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"setFileDescription",value:function(e,t,r,n){var o=this,i=e.id,a=e.permissions;return i&&a?a.can_rename?this.xhr.put({id:Object(l.b)(i),url:this.getUrl(i),data:{description:t}}).then((function(e){var t=e.data;if(!o.isDestroyed()){var n=o.merge(o.getCacheKey(i),"description",t.description);r(n)}})).catch((function(){if(!o.isDestroyed()){var t=o.merge(o.getCacheKey(i),"description",e.description);n(t)}})):(n(Object(u.b)()),Promise.reject()):(n(Object(u.a)()),Promise.reject())}},{key:"getFile",value:(f=g(regeneratorRuntime.mark((function e(t,r,n){var o,i,a,u,f,d,p,h,b,m,y=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=y.length>3&&void 0!==y[3]?y[3]:{},!this.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:if(i=this.getCache(),a=this.getCacheKey(t),u=!o.forceFetch&&i.has(a),f=u?i.get(a):{id:t},d=Object(s.j)(f,o.fields),p={id:Object(l.b)(t),url:this.getUrl(t),headers:{"X-Rep-Hints":c.Uf}},this.errorCode=c.Cb,this.successCallback=r,this.errorCallback=n,!u||0!==d.length){e.next=17;break}if(r(f),d=o.fields||[],o.refreshCache){e.next=17;break}return e.abrupt("return");case 17:return d.length>0&&(p.params={fields:d.toString()}),e.prev=18,e.next=21,this.xhr.get(p);case 21:if(h=e.sent,b=h.data,!this.isDestroyed()){e.next=25;break}return e.abrupt("return");case 25:m=Object(s.i)(b,d),i.has(a)?i.merge(a,m):i.set(a,m),this.successHandler(i.get(a)),e.next=33;break;case 30:e.prev=30,e.t0=e.catch(18),this.errorHandler(e.t0);case 33:case"end":return e.stop()}}),e,this,[[18,30]])}))),function(e,t,r){return f.apply(this,arguments)})},{key:"getFileExtension",value:function(e,t,r){this.isDestroyed()||this.getFile(e,t,r,{fields:[c.Bc]})}}])&&w(r.prototype,n),i&&w(r,i),t}(f.a);t.a=O},,function(e,t,r){"use strict";r.d(t,"b",(function(){return f})),r.d(t,"a",(function(){return d})),r.d(t,"c",(function(){return p}));var n=r(0),o=r(171),i=r.n(o),a=r(11);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var l=i.a||o;var u=n.createContext(null),c=u.Consumer,f=u.Provider,d=u;function p(e,t){var r,o=t||{},i=o.intlPropName,u=void 0===i?"intl":i,f=o.forwardRef,d=void 0!==f&&f,p=o.enforceContext,h=void 0===p||p,b=function(t){return n.createElement(c,null,(function(r){return h&&Object(a.h)(r),n.createElement(e,s({},t,(l=r,(i=u)in(o={})?Object.defineProperty(o,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):o[i]=l,o),{ref:d?t.forwardedRef:null}));var o,i,l}))};return b.displayName="injectIntl(".concat((r=e).displayName||r.name||"Component",")"),b.WrappedComponent=e,l(d?n.forwardRef((function(e,t){return n.createElement(b,s({},e,{forwardedRef:t}))})):b,e)}},function(e,t,r){"use strict";var n,o=r(0),i=r(5),a=r.n(i),s=r(25);r(410);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}!function(e){e.CENTER="center",e.TOP="top"}(n||(n={}));t.a=function(e){var t=e.children,r=e.className,i=void 0===r?"":r,c=e.crawlerPosition,f=void 0===c?n.CENTER:c,d=e.crawlerSize,p=void 0===d?s.a.DEFAULT:d,h=e.isLoading,b=void 0!==h&&h,m=e.hideContent,y=void 0!==m&&m,v=u(e,["children","className","crawlerPosition","crawlerSize","isLoading","hideContent"]),g=a()("loading-indicator-veil",{"is-with-top-crawler":f===n.TOP,"is-with-center-crawler":f===n.CENTER},y?"hide-content":"blur-content");return o.createElement("div",l({className:"loading-indicator-wrapper ".concat(i)},v),t,b&&o.createElement("div",{className:g},o.createElement(s.b,{size:p})))}},,,function(e,t,r){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(n({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,n,l=s(e),u=1;u<arguments.length;u++){for(var c in r=Object(arguments[u]))i.call(r,c)&&(l[c]=r[c]);if(o){n=o(r);for(var f=0;f<n.length;f++)a.call(r,n[f])&&(l[n[f]]=r[n[f]])}}return l}},function(e,t,r){"use strict";r(143);var n=r(49);r.d(t,"a",(function(){return n.a}));var o=r(25);r.d(t,"b",(function(){return o.b}))},function(e,t,r){"use strict";var n=r(200);r.d(t,"a",(function(){return n.a}))},function(e,t,r){var n=r(85),o=r(351),i=r(352),a="[object Null]",s="[object Undefined]",l=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:l&&l in Object(e)?o(e):i(e)}},function(e,t,r){"use strict";var n=r(0),o=r(5),i=r.n(o),a=r(21),s=r.n(a),l=r(139);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 c(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var b=function(e){function t(){var e,r,n,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return r=function(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?p(e):t}(this,(e=d(t)).call.apply(e,[this].concat(s))),n=p(r),i=function(e){var t=r.props,n=t.isDisabled,o=t.onClick;if(n)return e.stopPropagation(),void e.preventDefault();o&&o(e)},(o="onClickHandler")in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i,r}var r,o,a;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}}),t&&h(e,t)}(t,e),r=t,(o=[{key:"render",value:function(){var e=this.props,t=e.children,r=e.className,o=e.isDisabled,a=e.isSelectItem,u=e.isSelected,f=e.showRadar,d=c(e,["children","className","isDisabled","isSelectItem","isSelected","showRadar"]),p=s()(d,["role","tabIndex","onClick"]);p.className=i()("menu-item",r,{"is-select-item":a,"is-selected":u}),p.role=a?"menuitemradio":"menuitem",p.tabIndex=-1,p.onClick=this.onClickHandler,a&&(p["aria-checked"]=u),o&&(p["aria-disabled"]="true");var h=n.createElement("li",p,t);return f&&(h=n.createElement(l.a,null,h)),h}}])&&f(r.prototype,o),a&&f(r,a),t}(n.Component);t.a=b},function(e,t,r){"use strict";var n=r(76),o=r(1),i=r(15);function a(e){return(a="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,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,c(t).apply(this,arguments))}var r,n,a,d,p;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}}),t&&f(e,t)}(t,e),r=t,(n=[{key:"getCacheKey",value:function(e){return"".concat(o.n).concat(e)}},{key:"getUrl",value:function(e){var t=e?"/".concat(e):"";return"".concat(this.getBaseApiUrl(),"/web_links").concat(t)}},{key:"getWeblink",value:(d=regeneratorRuntime.mark((function e(t,r,n){var a,s,l,u,c,f,d,p=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=p.length>3&&void 0!==p[3]?p[3]:{},s=a.fields,!this.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:if(l=this.getCache(),u=this.getCacheKey(t),this.errorCode=o.Ob,this.successCallback=r,this.errorCallback=n,!l.has(u)){e.next=13;break}if(0!==Object(i.j)(l.get(u),s).length){e.next=13;break}return r(l.get(u)),e.abrupt("return");case 13:return c={url:this.getUrl(t)},s&&(c.params={fields:s.toString()}),e.prev=15,e.next=18,this.xhr.get(c);case 18:if(f=e.sent,d=f.data,!this.isDestroyed()){e.next=22;break}return e.abrupt("return");case 22:l.has(u)?l.merge(u,d):l.set(u,d),this.successHandler(l.get(u)),e.next=29;break;case 26:e.prev=26,e.t0=e.catch(15),this.errorHandler(e.t0);case 29:case"end":return e.stop()}}),e,this,[[15,26]])})),p=function(){var e=this,t=arguments;return new Promise((function(r,n){var o=d.apply(e,t);function i(e){s(o,r,n,i,a,"next",e)}function a(e){s(o,r,n,i,a,"throw",e)}i(void 0)}))},function(e,t,r){return p.apply(this,arguments)})}])&&l(r.prototype,n),a&&l(r,a),t}(n.a);t.a=d},,,function(e,t,r){"use strict";var n=r(1);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function s(e){i(a,n,o,s,l,"next",e)}function l(e){i(a,n,o,s,l,"throw",e)}s(void 0)}))}}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var l=new Error("Bad id or auth token. ID should be typed id like file_123 or folder_123! Token should be a string or function."),u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,i,u,c,f,d,p;return t=e,r=null,i=[{key:"getToken",value:(p=a(regeneratorRuntime.mark((function e(t,r){var i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((null==r||"string"==typeof r||"function"==typeof r)&&(t.startsWith(n.yf)||t.startsWith(n.xf))){e.next=2;break}throw l;case 2:if(r&&"string"!=typeof r){e.next=4;break}return e.abrupt("return",r);case 4:return e.next=6,r(t);case 6:if((i=e.sent)&&"string"!=typeof i&&("object"!==o(i)||!i.read&&!i.write)){e.next=9;break}return e.abrupt("return",i);case 9:throw l;case 10:case"end":return e.stop()}}),e)}))),function(e,t){return p.apply(this,arguments)})},{key:"getReadToken",value:(d=a(regeneratorRuntime.mark((function t(r,n){var i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getToken(r,n);case 2:if(!(i=t.sent)||"object"!==o(i)){t.next=5;break}return t.abrupt("return",i.read);case 5:return t.abrupt("return",i);case 6:case"end":return t.stop()}}),t)}))),function(e,t){return d.apply(this,arguments)})},{key:"getReadTokens",value:(f=a(regeneratorRuntime.mark((function t(r,n){var o,i,a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=Array.isArray(r)?r:[r],i=o.map((function(t){return e.getReadToken(t,n)})),t.next=4,Promise.all(i);case 4:return a=t.sent,s={},a.forEach((function(e,t){s[o[t]]=e})),t.abrupt("return",Promise.resolve(s));case 8:case"end":return t.stop()}}),t)}))),function(e,t){return f.apply(this,arguments)})},{key:"getWriteToken",value:(c=a(regeneratorRuntime.mark((function t(r,n){var i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getToken(r,n);case 2:if(!(i=t.sent)||"object"!==o(i)){t.next=5;break}return t.abrupt("return",i.write||i.read);case 5:return t.abrupt("return",i);case 6:case"end":return t.stop()}}),t)}))),function(e,t){return c.apply(this,arguments)})},{key:"cacheTokens",value:(u=a(regeneratorRuntime.mark((function e(t,r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((null==r||"string"==typeof r||"function"==typeof r)&&t.every((function(e){return e.startsWith(n.yf)||e.startsWith(n.xf)}))){e.next=2;break}throw l;case 2:if("function"!=typeof r){e.next=5;break}return e.next=5,r(t);case 5:return e.abrupt("return",Promise.resolve());case 6:case"end":return e.stop()}}),e)}))),function(e,t){return u.apply(this,arguments)})}],r&&s(t.prototype,r),i&&s(t,i),e}();t.a=u},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=r(457),i=r(52),a=r(458);function s(e,t){return t.encode?t.strict?o(e):encodeURIComponent(e):e}function l(e){var t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function u(e,t){var r=function(e){var t;switch(e.arrayFormat){case"index":return function(e,r,n){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return function(e,r,n){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};default:return function(e,t,r){void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t=i({arrayFormat:"none"},t)),o=Object.create(null);return"string"!=typeof e?o:(e=e.trim().replace(/^[?#&]/,""))?(e.split("&").forEach((function(e){var t=e.replace(/\+/g," ").split("="),n=t.shift(),i=t.length>0?t.join("="):void 0;i=void 0===i?null:a(i),r(a(n),i,o)})),Object.keys(o).sort().reduce((function(e,t){var r=o[t];return Boolean(r)&&"object"===n(r)&&!Array.isArray(r)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"===n(t)?e(Object.keys(t)).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return t[e]})):t}(r):e[t]=r,e}),Object.create(null))):o}t.extract=l,t.parse=u,t.stringify=function(e,t){!1===(t=i({encode:!0,strict:!0,arrayFormat:"none"},t)).sort&&(t.sort=function(){});var r=function(e){switch(e.arrayFormat){case"index":return function(t,r,n){return null===r?[s(t,e),"[",n,"]"].join(""):[s(t,e),"[",s(n,e),"]=",s(r,e)].join("")};case"bracket":return function(t,r){return null===r?s(t,e):[s(t,e),"[]=",s(r,e)].join("")};default:return function(t,r){return null===r?s(t,e):[s(t,e),"=",s(r,e)].join("")}}}(t);return e?Object.keys(e).sort(t.sort).map((function(n){var o=e[n];if(void 0===o)return"";if(null===o)return s(n,t);if(Array.isArray(o)){var i=[];return o.slice().forEach((function(e){void 0!==e&&i.push(r(n,e,i.length))})),i.join("&")}return s(n,t)+"="+s(o,t)})).filter((function(e){return e.length>0})).join("&"):""},t.parseUrl=function(e,t){return{url:e.split("?")[0]||"",query:u(l(e),t)}}},,,function(e,t,r){var n=r(350),o=r(355);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},function(e,t,r){"use strict";var n=r(103),o=r.n(n);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cache={}}var t,r,n;return t=e,(r=[{key:"set",value:function(e,t){this.cache[e]=t}},{key:"merge",value:function(e,t){if(!this.has(e))throw new Error("Key ".concat(e," not in cache!"));this.set(e,o()({},this.get(e),t))}},{key:"unset",value:function(e){delete this.cache[e]}},{key:"unsetAll",value:function(e){var t=this;Object.keys(this.cache).forEach((function(r){r.startsWith(e)&&delete t.cache[r]}))}},{key:"has",value:function(e){return{}.hasOwnProperty.call(this.cache,e)}},{key:"get",value:function(e){if(this.has(e))return this.cache[e]}}])&&i(t.prototype,r),n&&i(t,n),e}();t.a=a},function(e,t,r){"use strict";var n=r(3),o=r.n(n),i=r(75),a=r(15),s=r(8),l=r(76),u=r(46),c=r(57),f=r(1);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 p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var w=function(e){function t(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return r=function(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?y(e):t}(this,(e=m(t)).call.apply(e,[this].concat(o))),g(y(r),"folderSuccessHandler",(function(e){var n=e.data;if(!r.isDestroyed()){var o=n.item_collection;if(!o)throw Object(s.a)();var a=o.entries,l=o.total_count,f=o.limit,d=o.offset;if(!Array.isArray(a)||"number"!=typeof l||"number"!=typeof f||"number"!=typeof d)throw Object(s.a)();var p=Object(i.a)(a,new t(r.options),new u.a(r.options),new c.a(r.options));r.itemCache=(r.itemCache||[]).concat(p),r.getCache().set(r.key,h({},n,{item_collection:h({},o,{entries:r.itemCache})})),r.finish()}})),g(y(r),"folderDetailsSuccessHandler",(function(e){var t=e.data;if(!r.isDestroyed()){var n=h({},r.getCache().get(r.key),{},t);r.getCache().set(r.key,n),r.successCallback(n)}})),g(y(r),"createSuccessHandler",(function(e){var t=e.data,n=t.id;if(!r.isDestroyed()&&n){var o=r.getCacheKey(n),i=r.getCache(),a=i.get(r.key);if(a){var l=a.item_collection;if(!l)throw Object(s.a)();var u=l.total_count,c=l.entries;if(!Array.isArray(c)||"number"!=typeof u)throw Object(s.a)();i.set(o,t),l.entries=[o].concat(c),l.total_count=u+1,r.successCallback(t)}else r.successCallback(t)}})),r}var r,n,l;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}}),t&&v(e,t)}(t,e),r=t,(n=[{key:"getCacheKey",value:function(e){return"".concat(f.i).concat(e)}},{key:"getUrl",value:function(e){var t=e?"/".concat(e):"";return"".concat(this.getBaseApiUrl(),"/folders").concat(t)}},{key:"isLoaded",value:function(){return this.getCache().has(this.key)}},{key:"finish",value:function(){if(!this.isDestroyed()){var e=this.getCache(),t=e.get(this.key),r=t.id,n=t.name,o=t.permissions,i=t.path_collection,a=t.item_collection;if(!a||!i)throw Object(s.a)();var l=a.entries,u=a.offset,c=a.total_count;if(!Array.isArray(l)||"number"!=typeof c)throw Object(s.a)();var f={id:r,name:n,offset:u,percentLoaded:100,permissions:o,boxItem:t,breadcrumbs:i.entries,items:l.map((function(t){return e.get(t)})),sortBy:this.sortBy,sortDirection:this.sortDirection,totalCount:c};this.successCallback(f)}}},{key:"folderRequest",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fields,r=e.noPagination,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.folderSuccessHandler;if(this.isDestroyed())return Promise.reject();var o=t||a.f;this.errorCode=f.Eb;var i={fields:o.toString()};return r||(i=h({},i,{direction:this.sortDirection.toLowerCase(),limit:this.limit,offset:this.offset,fields:o.toString(),sort:this.sortBy.toLowerCase()})),this.xhr.get({url:this.getUrl(this.id),params:i,headers:o.includes(f.ad)?{"X-Rep-Hints":f.Vf}:{}}).then(n).catch(this.errorHandler)}},{key:"getFolderFields",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.isDestroyed()||(this.id=e,this.key=this.getCacheKey(e),this.successCallback=t,this.errorCallback=r,this.folderRequest(h({},n,{noPagination:!0}),this.folderDetailsSuccessHandler))}},{key:"getFolder",value:function(e,t,r,n,o,i,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};this.isDestroyed()||(this.id=e,this.key=this.getCacheKey(e),this.limit=t,this.offset=r,this.sortBy=n,this.sortDirection=o,this.successCallback=i,this.errorCallback=a,s.forceFetch&&this.getCache().unset(this.key),this.isLoaded()?this.finish():this.folderRequest(s))}},{key:"folderCreateRequest",value:function(e){if(this.isDestroyed())return Promise.reject();this.errorCode=f.gb;var t="".concat(this.getUrl(),"?fields=").concat(a.f.toString());return this.xhr.post({url:t,data:{name:e,parent:{id:this.id}}}).then(this.createSuccessHandler).catch(this.errorHandler)}},{key:"create",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.a;this.isDestroyed()||(this.id=e,this.key=this.getCacheKey(e),this.successCallback=r,this.errorCallback=n,this.folderCreateRequest(t))}}])&&b(r.prototype,n),l&&b(r,l),t}(l.a);t.a=w},function(e,t,r){"use strict";function n(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=0,i=r;return new Promise((function(r,a){function s(l){setTimeout((function(){o+=1,new Promise((function(t,r){e(t,r,a)})).then(r).catch((function(e){o<t?s(i*=n):a(e)}))}),l)}s(i)}))}r.d(t,"a",(function(){return n}))},,,function(e,t,r){var n=r(419);e.exports=function(e,t,r){return null==e?e:n(e,t,r)}},,,,function(e,t,r){var n=r(160),o=r(161);e.exports=function(e,t,r,i){var a=!r;r||(r={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=i?i(r[u],e[u],u,r,e):void 0;void 0===c&&(c=e[u]),a?o(r,u,c):n(r,u,c)}return r}},function(e,t,r){"use strict";var n=r(8),o=r(1);t.a=function(e,t,r,i){var a=[];return e.forEach((function(e){var s,l=e.id,u=e.type;if(!l||!u)throw Object(n.a)();switch(u){case o.Af:s=t;break;case o.zf:s=r;break;case o.Bf:s=i;break;default:throw new Error("Unknown Type!")}var c=s.getCache(),f=s.getCacheKey(l);c.has(f)?c.merge(f,e):c.set(f,e),a.push(f)})),a}},function(e,t,r){"use strict";var n=r(3),o=r.n(n),i=r(70),a=r.n(i),s=r(8),l=r(15),u=r(14),c=r(1);function f(e){return(f="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 d(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function p(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){d(i,n,o,a,s,"next",e)}function s(e){d(i,n,o,a,s,"throw",e)}a(void 0)}))}}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var w=function(e){function t(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r=function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?y(e):t}(this,(e=m(t)).call.apply(e,[this].concat(o))),g(y(r),"deleteSuccessHandler",(function(){if(!r.isDestroyed()){var e=r.getParentCacheKey(r.parentId),t=r.getCache().get(e);if(t){var n=t.item_collection;if(n){var o=n.entries,i=n.total_count;if(!Array.isArray(o)||"number"!=typeof i)throw Object(s.a)();var a=r.getCacheKey(r.id),l=o.length,u=o.filter((function(e){return e!==a})),c=u.length,f=r.merge(e,"item_collection",h(n,{entries:u,total_count:i-(l-c)}));r.successCallback(f),r.postDeleteCleanup()}else r.postDeleteCleanup()}else r.postDeleteCleanup()}})),g(y(r),"renameSuccessHandler",(function(e){var t=e.data;if(!r.isDestroyed()){r.getCache().unsetAll(c.m);var n=r.merge(r.getCacheKey(r.id),"name",t.name);r.successCallback(n)}})),g(y(r),"shareSuccessHandler",(function(e,t){if(!r.isDestroyed()){var n=t?Object(l.i)(e,t):e,o=r.getCache(),i=r.getCacheKey(r.id);o.has(i)?o.merge(i,n):o.set(i,n),r.successCallback(o.get(i))}})),r}var r,n,i,u,d;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}}),t&&v(e,t)}(t,e),r=t,(n=[{key:"getParentCacheKey",value:function(e){return"".concat(c.i).concat(e)}},{key:"getCacheKey",value:function(e){return"getCacheKey(".concat(e,") should be overriden")}},{key:"getUrl",value:function(e){return"getUrl(".concat(e,") should be overriden")}},{key:"merge",value:function(e,t,r){var n=this.getCache();return n.merge(e,a()({},t,r)),n.get(e)}},{key:"postDeleteCleanup",value:function(){this.isDestroyed()||(this.getCache().unsetAll(c.m),this.successCallback())}},{key:"deleteItem",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.a;if(this.isDestroyed())return Promise.reject();this.errorCode=c.ob;var i=e.id,a=e.permissions,l=e.parent,u=e.type;if(!(i&&a&&l&&u))return n(Object(s.a)(),this.errorCode),Promise.reject();var f=l.id,d=a.can_delete;if(!d||!f)return n(Object(s.b)(),this.errorCode),Promise.reject();this.id=i,this.parentId=f,this.successCallback=t,this.errorCallback=n;var p="".concat(this.getUrl(i)).concat(u===c.Af?"?recursive=true":"");return this.xhr.delete({url:p}).then(this.deleteSuccessHandler).catch((function(e){r.errorHandler(e)}))}},{key:"rename",value:function(e,t,r){var n=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.a;if(this.isDestroyed())return Promise.reject();this.errorCode=c.Wb;var a=e.id,l=e.permissions;if(!a||!l)return i(Object(s.a)(),this.errorCode),Promise.reject();var u=l.can_rename;return u?(this.id=a,this.successCallback=r,this.errorCallback=i,this.xhr.put({url:"".concat(this.getUrl(a)),data:{name:t}}).then(this.renameSuccessHandler).catch((function(e){n.errorHandler(e)}))):(i(Object(s.b)(),this.errorCode),Promise.reject())}},{key:"validateRequest",value:function(e,t){if(!e||!t)throw this.errorCode=c.Zb,Object(s.a)();var r=t.can_share,n=t.can_set_share_access;if(!r||!n)throw this.errorCode=c.Zb,Object(s.b)()}},{key:"share",value:(d=p(regeneratorRuntime.mark((function e(t,r,n){var i,a,s,l,u,f,d,p,h=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=h.length>3&&void 0!==h[3]?h[3]:o.a,a=h.length>4&&void 0!==h[4]?h[4]:{},!this.isDestroyed()){e.next=4;break}return e.abrupt("return",Promise.reject());case 4:return e.prev=4,s=t.id,l=t.permissions,this.id=s,this.successCallback=n,this.errorCallback=i,this.validateRequest(s,l),u=a.fields,f={url:this.getUrl(this.id),data:{shared_link:r===c.c?null:{access:r}}},u&&(f.params={fields:u.toString()}),e.next=15,this.xhr.put(f);case 15:return d=e.sent,p=d.data,e.abrupt("return",this.shareSuccessHandler(p,u));case 20:return e.prev=20,e.t0=e.catch(4),e.abrupt("return",this.errorHandler(e.t0));case 23:case"end":return e.stop()}}),e,this,[[4,20]])}))),function(e,t,r){return d.apply(this,arguments)})},{key:"updateSharedLink",value:(u=p(regeneratorRuntime.mark((function e(t,r,n){var i,a,s,l,u,c,f,d,p=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=p.length>3&&void 0!==p[3]?p[3]:o.a,a=p.length>4&&void 0!==p[4]?p[4]:{},!this.isDestroyed()){e.next=4;break}return e.abrupt("return",Promise.reject());case 4:return e.prev=4,s=t.id,l=t.permissions,this.id=s,this.successCallback=n,this.errorCallback=i,this.validateRequest(s,l),u=a.fields,c={url:this.getUrl(this.id),data:{shared_link:r}},u&&(c.params={fields:u.toString()}),e.next=15,this.xhr.put(c);case 15:return f=e.sent,d=f.data,e.abrupt("return",this.shareSuccessHandler(d,u));case 20:return e.prev=20,e.t0=e.catch(4),e.abrupt("return",this.errorHandler(e.t0));case 23:case"end":return e.stop()}}),e,this,[[4,20]])}))),function(e,t,r){return u.apply(this,arguments)})}])&&b(r.prototype,n),i&&b(r,i),t}(u.a);t.a=w},,function(e,t,r){"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),o=r.length;if(n.length!==o)return!1;for(var i=0;i<o;i++){var a=r[i];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}},function(e,t,r){e.exports=r(420)},,function(e,t,r){"use strict";var n=r(0),o=r(48),i=r(102),a=r(11),s=r(78);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 u(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var b=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},m=r.n(s).a||s,y=function(e,t){return Object(i.b)(h(h({},a.a),{locale:"en"}),Object(a.c)(),e,t)},v=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),f(this,d(t).apply(this,arguments))}var r,i,s;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}}),t&&p(e,t)}(t,e),r=t,(i=[{key:"shouldComponentUpdate",value:function(e){var t=this.props,r=t.values,n=b(t,["values"]),o=e.values,i=b(e,["values"]);return!m(o,r)||!m(n,i)}},{key:"render",value:function(){var e=this;return n.createElement(o.a.Consumer,null,(function(t){e.props.defaultMessage||Object(a.h)(t);var r=t||{},o=r.formatMessage,i=void 0===o?y:o,s=r.textComponent,l=void 0===s?n.Fragment:s,c=e.props,f=c.id,d=c.description,p=c.defaultMessage,h=c.values,b=c.children,m=c.tagName,v=void 0===m?l:m,g=i({id:f,description:d,defaultMessage:p},h);return Array.isArray(g)||(g=[g]),"function"==typeof b?b.apply(void 0,u(g)):v?n.createElement.apply(n,[v,null].concat(u(g))):g}))}}])&&c(r.prototype,i),s&&c(r,s),t}(n.Component);v.displayName="FormattedMessage",v.defaultProps={values:{}},t.a=v},,,,function(e,t,r){var n=r(38).Symbol;e.exports=n},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},,,,function(e,t,r){"use strict";var n=r(0),o=r(3),i=r.n(o),a=r(1),s=r(184);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 u(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y=function(e){function t(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?h(e):t}(this,(e=p(t)).call.apply(e,[this].concat(o))),m(h(r),"state",{}),m(h(r),"handleError",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r.props.errorOrigin;if(e&&t&&o){var i={type:"error",code:t,message:e.message,origin:o,context_info:f(m({},a.Td,!0),n)};r.props.onError(i)}})),r}var r,o,i;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}}),t&&b(e,t)}(t,e),r=t,(o=[{key:"componentDidCatch",value:function(e,t){var r=this;this.setState({error:e},(function(){r.handleError(e,a.ac,f({},t),r.props.errorOrigin)}))}},{key:"render",value:function(){var e=this.props,t=e.children,r=e.errorComponent,o=u(e,["children","errorComponent"]),i=this.state.error;return i?n.createElement(r,{error:i}):n.cloneElement(t,f({},o,{onError:this.handleError}))}}])&&d(r.prototype,o),i&&d(r,i),t}(n.Component);m(y,"defaultProps",{errorComponent:s.a,onError:i.a});var v=y;function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.a;return function(r){return n.forwardRef((function(o,i){return n.createElement(v,g({errorComponent:t,errorOrigin:e},o),n.createElement(r,{ref:i}))}))}};r.d(t,"a",(function(){return w}))},function(e,t,r){"use strict";var n=r(0),o=r(39);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function a(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}t.a=function(e){var t=e.children,r=e.isDisabled,s=e.text,l=a(e,["children","isDisabled","text"]);return r||!s?t:n.createElement(o.c,i({text:s},l),t)}},,function(e,t,r){var n=r(159),o=r(162);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},function(e,t,r){var n=r(397);e.exports=function(e){return null==e?"":n(e)}},function(e,t,r){var n=r(130),o=1/0;e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},,function(e,t,r){"use strict";var n=r(65);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.memoryStore=new n.a;try{this.localStorage=window.localStorage,this.isLocalStorageAvailable=this.canUseLocalStorage()}catch(e){this.isLocalStorageAvailable=!1}}var t,r,i;return t=e,(r=[{key:"buildKey",value:function(e){return"".concat("localStore","/").concat("0","/").concat(e)}},{key:"canUseLocalStorage",value:function(){if(!this.localStorage)return!1;try{return this.localStorage.setItem(this.buildKey("TestKey"),"testValue"),this.localStorage.removeItem(this.buildKey("TestKey")),!0}catch(e){return!1}}},{key:"setItem",value:function(e,t){if(this.isLocalStorageAvailable)try{this.localStorage.setItem(this.buildKey(e),JSON.stringify(t))}catch(e){}else this.memoryStore.set(e,t)}},{key:"getItem",value:function(e){if(!this.isLocalStorageAvailable)return this.memoryStore.get(e);try{var t=this.localStorage.getItem(this.buildKey(e));return t?JSON.parse(t):null}catch(e){return null}}},{key:"removeItem",value:function(e){if(this.isLocalStorageAvailable)try{this.localStorage.removeItem(this.buildKey(e))}catch(e){}else this.memoryStore.unset(e)}}])&&o(t.prototype,r),i&&o(t,i),e}();t.a=i},,function(e,t,r){var n=r(31),o=r(208),i=r(394),a=r(94);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:i(a(e))}},,,function(e,t,r){"use strict";r.d(t,"b",(function(){return p})),r.d(t,"a",(function(){return h}));var n=r(0),o=r(256),i=r(11),a=r(133);function s(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function u(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=l({timeZone:t},e[n]),r}),{})}function c(e,t){return Object.keys(l(l({},e),t)).reduce((function(r,n){return r[n]=l(l({},e[n]||{}),t[n]||{}),r}),{})}function f(e,t){if(!t)return e;var r=a.a.formats;return l(l(l({},r),e),{date:c(u(r.date,t),u(e.date||{},t)),time:c(u(r.time,t),u(e.time||{},t))})}var d=function(e){return n.createElement.apply(n,[n.Fragment,null].concat(s(e)))};function p(e,t){var r=e.locale,n=e.formats,a=e.messages,s=e.defaultLocale,l=e.defaultFormats,u=e.onError,c=e.timeZone,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{id:""},h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},b=p.id,m=p.defaultMessage;Object(o.a)(!!b,"[React Intl] An `id` must be provided to format a message.");var y=a&&a[String(b)];n=f(n,c),l=f(l,c);var v=[];if(y)try{v=t.getMessageFormat(y,r,n,{formatters:t}).formatHTMLMessage(h)}catch(e){u(Object(i.b)('Error formatting message: "'.concat(b,'" for locale: "').concat(r,'"')+(m?", using default message as fallback.":""),e))}else(!m||r&&r.toLowerCase()!==s.toLowerCase())&&u(Object(i.b)('Missing message: "'.concat(b,'" for locale: "').concat(r,'"')+(m?", using default message as fallback.":"")));if(!v.length&&m)try{v=t.getMessageFormat(m,s,l).formatHTMLMessage(h)}catch(e){u(Object(i.b)('Error formatting the default message for: "'.concat(b,'"'),e))}return v.length?1===v.length&&"string"==typeof v[0]?v[0]||m||String(b):d(v):(u(Object(i.b)('Cannot format message: "'.concat(b,'", ')+"using message ".concat(y||m?"source":"id"," as fallback."))),"string"==typeof y?y||m||String(b):m||String(b))}function h(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{id:""},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return p(e,t,r,Object.keys(n).reduce((function(e,t){var r=n[t];return e[t]="string"==typeof r?Object(i.e)(r):r,e}),{}))}},function(e,t,r){var n=r(449),o=r(455)((function(e,t,r){n(e,t,r)}));e.exports=o},,,function(e,t,r){var n=r(214),o=r(374),i=r(93);e.exports=function(e){return i(e)?n(e):o(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._=function(e){return e},t.defineMessages=function(e){return e}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},,,,,,,,,function(e,t,r){"use strict";(function(e){var n=r(0),o=r(45),i=r.n(o),a=r(12),s=r.n(a),l=r(3),u=r.n(l),c=r(1);r(476);function f(e){return(f="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 d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y=function(t){function r(){var e,t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return t=function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?h(e):t}(this,(e=p(r)).call.apply(e,[this].concat(o))),m(h(t),"menuID",s()("menu")),m(h(t),"menuButtonID",s()("menubutton")),m(h(t),"state",{initialFocusIndex:null,isOpen:!1}),m(h(t),"openMenuAndSetFocusIndex",(function(e){t.setState({initialFocusIndex:e,isOpen:!0})})),m(h(t),"closeMenu",(function(){t.setState({isOpen:!1})})),m(h(t),"focusButton",(function(){var e=document.getElementById(t.menuButtonID);e&&e.focus()})),m(h(t),"handleButtonClick",(function(e){var r=t.state.isOpen;e.stopPropagation(),e.preventDefault(),r?t.closeMenu():t.openMenuAndSetFocusIndex(null)})),m(h(t),"handleButtonKeyDown",(function(e){var r=t.state.isOpen;switch(e.key){case c.Ud.space:case c.Ud.enter:case c.Ud.arrowDown:e.stopPropagation(),e.preventDefault(),t.openMenuAndSetFocusIndex(0);break;case c.Ud.arrowUp:e.stopPropagation(),e.preventDefault(),t.openMenuAndSetFocusIndex(-1);break;case c.Ud.escape:r&&e.stopPropagation(),e.preventDefault(),t.closeMenu()}})),m(h(t),"handleMenuClose",(function(e,r){var n=t.props.onMenuClose,o=void 0===n?u.a:n;t.closeMenu(),t.focusButton(),o(r)})),m(h(t),"handleDocumentClick",(function(e){var r=t.props.bodyElement?t.props.bodyElement.getRootNode():document,n=r.getElementById(t.menuID),o=r.getElementById(t.menuButtonID);if(n&&o&&e.target instanceof Node&&!n.contains(e.target)&&!o.contains(e.target)){var i=t.props.onMenuClose,a=void 0===i?u.a:i;t.closeMenu(),a(e)}})),t}var o,a,l;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}}),t&&b(e,t)}(r,t),o=r,(a=[{key:"componentDidUpdate",value:function(e,t){var r=this.props.useBubble;if(!t.isOpen&&this.state.isOpen){document.addEventListener("click",this.handleDocumentClick,!r),document.addEventListener("contextmenu",this.handleDocumentClick,!r);var n=this.props.onMenuOpen;n&&n()}else t.isOpen&&!this.state.isOpen&&(document.removeEventListener("contextmenu",this.handleDocumentClick,!r),document.removeEventListener("click",this.handleDocumentClick,!r))}},{key:"componentWillUnmount",value:function(){var e=this.props.useBubble;this.state.isOpen&&(document.removeEventListener("contextmenu",this.handleDocumentClick,!e),document.removeEventListener("click",this.handleDocumentClick,!e))}},{key:"render",value:function(){var t=this.props,r=t.bodyElement,o=t.children,a=t.isRightAligned,s=t.constrainToScrollParent,l=t.constrainToWindow,u=t.className,c=this.state,f=c.isOpen,d=c.initialFocusIndex,p=n.Children.toArray(o);if(2!==p.length)throw new Error("DropdownMenu must have exactly two children: A button component and a <Menu>");var h=p[0],b=p[1],m={id:this.menuButtonID,key:this.menuButtonID,onClick:this.handleButtonClick,onKeyDown:this.handleButtonKeyDown,"aria-haspopup":"true","aria-expanded":f?"true":"false"};f&&(m["aria-controls"]=this.menuID);var y={id:this.menuID,key:this.menuID,initialFocusIndex:d,onClose:this.handleMenuClose,"aria-labelledby":this.menuButtonID},v="top left",g="bottom left";a&&(v="top right",g="bottom right");var w=[];s&&w.push({to:"scrollParent",attachment:"together"}),l&&w.push({to:"window",attachment:"together"});var k=e.Box.appElement.current.getRootNode(),x=r instanceof HTMLElement||r instanceof ShadowRoot?r:k;return n.createElement(i.a,{attachment:v,bodyElement:x,className:u,classPrefix:"dropdown-menu",constraints:w,enabled:f,targetAttachment:g},n.cloneElement(h,m),f?n.cloneElement(b,y):null)}}])&&d(o.prototype,a),l&&d(o,l),r}(n.Component);m(y,"defaultProps",{constrainToScrollParent:!1,constrainToWindow:!1,isRightAligned:!1}),t.a=y}).call(this,r(36))},function(e,t,r){"use strict";var n=r(0),o=r(21),i=r.n(o),a=r(5),s=r.n(a);r(477);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 u(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var b=".menu-item:not([aria-disabled])",m="ul:not(.submenu) > ".concat(b,", ul:not(.submenu) > li > ").concat(b,", ul:not(.submenu) > span > ").concat(b),y="ul.submenu > ".concat(b,", ul.submenu > li > ").concat(b,", ul.submenu > span > ").concat(b);function v(e){e.stopPropagation(),e.preventDefault()}var g=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?d(e):t}(this,f(t).call(this,e)),h(d(r),"setInitialFocusIndex",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.props,t=e.initialFocusIndex,n=e.isHidden;n||void 0===t||("number"==typeof t?setTimeout((function(){r.setFocus(t)}),0):null===t&&setTimeout((function(){r.menuEl&&r.menuEl.focus()}),0))})),h(d(r),"setMenuItemEls",(function(){var e=r.props,t=e.isSubmenu,n=e.menuItemSelector||(t?y:m);r.menuItemEls=r.menuEl?[].slice.call(r.menuEl.querySelectorAll(n)):[]})),h(d(r),"getMenuItemElFromEventTarget",(function(e){for(var t=null,n=-1,o=0;o<r.menuItemEls.length;o+=1)if(r.menuItemEls[o].contains(e)){t=r.menuItemEls[o],n=o;break}return{menuItemEl:t,menuIndex:n}})),h(d(r),"setFocus",(function(e){if(r.menuItemEls.length){var t=r.menuItemEls.length;r.focusIndex=e>=t?0:e<0?t-1:e,r.menuItemEls[r.focusIndex].focus()}})),h(d(r),"focusFirstItem",(function(){r.setFocus(0)})),h(d(r),"focusLastItem",(function(){r.setFocus(-1)})),h(d(r),"focusNextItem",(function(){r.setFocus(r.focusIndex+1)})),h(d(r),"focusPreviousItem",(function(){r.setFocus(r.focusIndex-1)})),h(d(r),"fireOnCloseHandler",(function(e,t){var n=r.props.onClose;n&&n(e,t)})),h(d(r),"handleClick",(function(e){(e.target instanceof Node?r.getMenuItemElFromEventTarget(e.target):{}).menuItemEl&&r.fireOnCloseHandler(!1,e)})),h(d(r),"handleKeyDown",(function(e){var t=r.props,n=t.isSubmenu,o=t.initialFocusIndex;switch(e.key){case"ArrowDown":v(e),null!==o||r.keyboardPressed?r.focusNextItem():r.focusFirstItem();break;case"ArrowUp":v(e),r.focusPreviousItem();break;case"ArrowLeft":if(!n)return;v(e),r.fireOnCloseHandler(!0,e);break;case"Home":case"PageUp":v(e),r.focusFirstItem();break;case"End":case"PageDown":v(e),r.focusLastItem();break;case"Escape":v(e),r.fireOnCloseHandler(!0,e);break;case"Tab":r.fireOnCloseHandler(!0,e);break;case" ":case"Enter":v(e),e.target instanceof HTMLElement&&e.target.click()}r.keyboardPressed=!0})),r.focusIndex=0,r.menuEl=null,r.menuItemEls=[],r}var r,o,a;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}}),t&&p(e,t)}(t,e),r=t,(o=[{key:"componentDidMount",value:function(){this.setMenuItemEls(),this.setInitialFocusIndex()}},{key:"componentDidUpdate",value:function(e){var t=e.isHidden,r=e.children,o=this.props,i=o.children,a=o.isHidden;if(o.isSubmenu&&t&&!a&&(this.setMenuItemEls(),this.setInitialFocusIndex(this.props)),n.Children.toArray(r).length!==n.Children.toArray(i).length){var s=this.menuItemEls[this.focusIndex];this.setMenuItemEls();var l=this.getMenuItemElFromEventTarget(s).menuIndex;this.setFocus(l)}}},{key:"render",value:function(){var e=this,t=this.props,r=t.children,o=t.className,a=t.isHidden,l=t.setRef,c=t.shouldOutlineFocus,f=u(t,["children","className","isHidden","setRef","shouldOutlineFocus"]),d=i()(f,["onClose","initialFocusIndex","isSubmenu","menuItemSelector"]);return d.className=s()("aria-menu",o,{"is-hidden":a,"should-outline-focus":c}),d.ref=function(t){e.menuEl=t,l&&l(t)},d.role="menu",d.tabIndex=-1,d.onClick=this.handleClick,d.onKeyDown=this.handleKeyDown,n.createElement("ul",d,r)}}])&&c(r.prototype,o),a&&c(r,a),t}(n.Component);h(g,"defaultProps",{className:"",isSubmenu:!1,isHidden:!1}),t.a=g},,,,function(e,t,r){var n=r(340),o=r(341),i=r(342),a=r(343),s=r(344);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,r){var n=r(109);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},function(e,t,r){var n=r(64)(Object,"create");e.exports=n},function(e,t,r){var n=r(364);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},function(e,t,r){var n=r(371),o=r(40),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n=9007199254740991,o=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var i=r(e);return!!(t=null==t?n:t)&&("number"==i||"symbol"!=i&&o.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,r){var n=r(214),o=r(377),i=r(93);e.exports=function(e){return i(e)?n(e,!0):o(e)}},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=r(55),i=r(40),a="[object Symbol]";e.exports=function(e){return"symbol"==n(e)||i(e)&&o(e)==a}},,function(e,t,r){"use strict";var n=r(0),o=r.n(n),i=r(182);t.a=function(e){var t=e.language,r=e.messages,a=e.children;return!!t&&!!r?o.a.createElement(i.a,{locale:t,messages:r},a):n.Children.only(a)}},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o;function i(e){return e.type===o.literal}function a(e){return e.type===o.argument}function s(e){return e.type===o.number}function l(e){return e.type===o.date}function u(e){return e.type===o.time}function c(e){return e.type===o.select}function f(e){return e.type===o.plural}function d(e){return e.type===o.pound}function p(e){return!(!e||"object"!==n(e)||0!==e.type)}function h(e){return!(!e||"object"!==n(e)||1!==e.type)}!function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound"}(o||(o={}));var b,m=(b=function(e,t){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}b(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),y=function(){return(y=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},v=function(e){function t(r,n,o,i){var a=e.call(this)||this;return a.message=r,a.expected=n,a.found=o,a.location=i,a.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return m(t,e),t.buildMessage=function(e,t){function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function i(e){switch(e.type){case"literal":return'"'+n(e.text)+'"';case"class":var t=e.parts.map((function(e){return Array.isArray(e)?o(e[0])+"-"+o(e[1]):o(e)}));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,r,n=e.map(i);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+((a=t)?'"'+n(a)+'"':"end of input")+" found.";var a},t}(Error);var g=function(e,t){t=void 0!==t?t:{};var r,n={},i={start:ct},a=ct,s=function(e){return e.join("")},l=function(e){return y({type:o.literal,value:e},Dt())},u="#",c=nt("#",!1),f=function(){return y({type:o.pound},Dt())},d=it("argumentElement"),p="{",h=nt("{",!1),b="}",m=nt("}",!1),g=function(e){return y({type:o.argument,value:e},Dt())},w=it("numberSkeletonId"),k=/^['\/{}]/,x=ot(["'","/","{","}"],!1,!1),E={type:"any"},O=it("numberSkeletonTokenOption"),S="/",C=nt("/",!1),P=function(e){return e},_=it("numberSkeletonToken"),T=function(e,t){return{stem:e,options:t}},A=function(e){return y({type:0,tokens:e},Dt())},j="::",I=nt("::",!1),D=function(e){return e},M=function(){return jt.push("numberArgStyle"),!0},R=function(e){return jt.pop(),e.replace(/\s*$/,"")},F=",",N=nt(",",!1),L="number",U=nt("number",!1),H=function(e,t,r){return y({type:"number"===t?o.number:"date"===t?o.date:o.time,style:r&&r[2],value:e},Dt())},z="'",B=nt("'",!1),V=/^[^']/,W=ot(["'"],!0,!1),q=/^[^a-zA-Z'{}]/,G=ot([["a","z"],["A","Z"],"'","{","}"],!0,!1),X=/^[a-zA-Z]/,K=ot([["a","z"],["A","Z"]],!1,!1),$=function(e){return y({type:1,pattern:e},Dt())},Q=function(){return jt.push("dateOrTimeArgStyle"),!0},Y="date",J=nt("date",!1),Z="time",ee=nt("time",!1),te="plural",re=nt("plural",!1),ne="selectordinal",oe=nt("selectordinal",!1),ie="offset:",ae=nt("offset:",!1),se=function(e,t,r,n){return y({type:o.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:r?r[2]:0,options:n.reduce((function(e,t){var r=t.id,n=t.value,o=t.location;return r in e&&rt('Duplicate option "'+r+'" in plural element: "'+et()+'"',tt()),e[r]={value:n,location:o},e}),{})},Dt())},le="select",ue=nt("select",!1),ce=function(e,t){return y({type:o.select,value:e,options:t.reduce((function(e,t){var r=t.id,n=t.value,o=t.location;return r in e&&rt('Duplicate option "'+r+'" in select element: "'+et()+'"',tt()),e[r]={value:n,location:o},e}),{})},Dt())},fe="=",de=nt("=",!1),pe=function(e){return jt.push("select"),!0},he=function(e,t){return jt.pop(),y({id:e,value:t},Dt())},be=function(e){return jt.push("plural"),!0},me=function(e,t){return jt.pop(),y({id:e,value:t},Dt())},ye=it("whitespace"),ve=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,ge=ot([["\t","\r"]," ","…"," "," ",[" "," "],"\u2028","\u2029"," "," "," "],!1,!1),we=it("syntax pattern"),ke=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,xe=ot([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←","⑟"],["─","❵"],["➔","⯿"],["⸀","⹿"],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),Ee=it("optional whitespace"),Oe=it("number"),Se="-",Ce=nt("-",!1),Pe=function(e,t){return t?e?-t:t:0},_e=(it("apostrophe"),it("double apostrophes")),Te="''",Ae=nt("''",!1),je=function(){return"'"},Ie=function(e,t){return e+t.replace("''","'")},De=function(e){return!("{"===e||It()&&"#"===e||jt.length>1&&"}"===e)},Me="\n",Re=nt("\n",!1),Fe=function(e){return"{"===e||"}"===e||It()&&"#"===e},Ne=it("argNameOrNumber"),Le=it("argNumber"),Ue="0",He=nt("0",!1),ze=function(){return 0},Be=/^[1-9]/,Ve=ot([["1","9"]],!1,!1),We=/^[0-9]/,qe=ot([["0","9"]],!1,!1),Ge=function(e){return parseInt(e.join(""),10)},Xe=it("argName"),Ke=0,$e=0,Qe=[{line:1,column:1}],Ye=0,Je=[],Ze=0;if(void 0!==t.startRule){if(!(t.startRule in i))throw new Error("Can't start parsing from rule \""+t.startRule+'".');a=i[t.startRule]}function et(){return e.substring($e,Ke)}function tt(){return st($e,Ke)}function rt(e,t){throw function(e,t){return new v(e,[],"",t)}(e,t=void 0!==t?t:st($e,Ke))}function nt(e,t){return{type:"literal",text:e,ignoreCase:t}}function ot(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function it(e){return{type:"other",description:e}}function at(t){var r,n=Qe[t];if(n)return n;for(r=t-1;!Qe[r];)r--;for(n={line:(n=Qe[r]).line,column:n.column};r<t;)10===e.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return Qe[t]=n,n}function st(e,t){var r=at(e),n=at(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function lt(e){Ke<Ye||(Ke>Ye&&(Ye=Ke,Je=[]),Je.push(e))}function ut(e,t,r){return new v(v.buildMessage(e,t),e,t,r)}function ct(){return ft()}function ft(){var e,t;for(e=[],t=dt();t!==n;)e.push(t),t=dt();return e}function dt(){var t;return(t=function(){var e,t;e=Ke,(t=pt())!==n&&($e=e,t=l(t));return e=t}())===n&&(t=function(){var t,r,o,i;Ze++,t=Ke,123===e.charCodeAt(Ke)?(r=p,Ke++):(r=n,0===Ze&&lt(h));r!==n&&Et()!==n&&(o=_t())!==n&&Et()!==n?(125===e.charCodeAt(Ke)?(i=b,Ke++):(i=n,0===Ze&&lt(m)),i!==n?($e=t,r=g(o),t=r):(Ke=t,t=n)):(Ke=t,t=n);Ze--,t===n&&(r=n,0===Ze&&lt(d));return t}())===n&&(t=function(){var t;(t=function(){var t,r,o,i,a,s,l,u,c;t=Ke,123===e.charCodeAt(Ke)?(r=p,Ke++):(r=n,0===Ze&&lt(h));r!==n&&Et()!==n&&(o=_t())!==n&&Et()!==n?(44===e.charCodeAt(Ke)?(i=F,Ke++):(i=n,0===Ze&&lt(N)),i!==n&&Et()!==n?(e.substr(Ke,6)===L?(a=L,Ke+=6):(a=n,0===Ze&&lt(U)),a!==n&&Et()!==n?(s=Ke,44===e.charCodeAt(Ke)?(l=F,Ke++):(l=n,0===Ze&&lt(N)),l!==n&&(u=Et())!==n&&(c=function(){var t,r,o;t=Ke,e.substr(Ke,2)===j?(r=j,Ke+=2):(r=n,0===Ze&&lt(I));r!==n&&(o=function(){var e,t,r;if(e=Ke,t=[],(r=mt())!==n)for(;r!==n;)t.push(r),r=mt();else t=n;t!==n&&($e=e,t=A(t));return e=t}())!==n?($e=t,r=D(o),t=r):(Ke=t,t=n);t===n&&(t=Ke,$e=Ke,(r=(r=M())?void 0:n)!==n&&(o=pt())!==n?($e=t,r=R(o),t=r):(Ke=t,t=n));return t}())!==n?s=l=[l,u,c]:(Ke=s,s=n),s===n&&(s=null),s!==n&&(l=Et())!==n?(125===e.charCodeAt(Ke)?(u=b,Ke++):(u=n,0===Ze&&lt(m)),u!==n?($e=t,r=H(o,a,s),t=r):(Ke=t,t=n)):(Ke=t,t=n)):(Ke=t,t=n)):(Ke=t,t=n)):(Ke=t,t=n);return t}())===n&&(t=function(){var t,r,o,i,a,s,l,u,c;t=Ke,123===e.charCodeAt(Ke)?(r=p,Ke++):(r=n,0===Ze&&lt(h));r!==n&&Et()!==n&&(o=_t())!==n&&Et()!==n?(44===e.charCodeAt(Ke)?(i=F,Ke++):(i=n,0===Ze&&lt(N)),i!==n&&Et()!==n?(e.substr(Ke,4)===Y?(a=Y,Ke+=4):(a=n,0===Ze&&lt(J)),a===n&&(e.substr(Ke,4)===Z?(a=Z,Ke+=4):(a=n,0===Ze&&lt(ee))),a!==n&&Et()!==n?(s=Ke,44===e.charCodeAt(Ke)?(l=F,Ke++):(l=n,0===Ze&&lt(N)),l!==n&&(u=Et())!==n&&(c=function(){var t,r,o;t=Ke,e.substr(Ke,2)===j?(r=j,Ke+=2):(r=n,0===Ze&&lt(I));r!==n&&(o=function(){var t,r,o,i;t=Ke,r=Ke,o=[],(i=yt())===n&&(i=vt());if(i!==n)for(;i!==n;)o.push(i),(i=yt())===n&&(i=vt());else o=n;r=o!==n?e.substring(r,Ke):o;r!==n&&($e=t,r=$(r));return t=r}())!==n?($e=t,r=D(o),t=r):(Ke=t,t=n);t===n&&(t=Ke,$e=Ke,(r=(r=Q())?void 0:n)!==n&&(o=pt())!==n?($e=t,r=R(o),t=r):(Ke=t,t=n));return t}())!==n?s=l=[l,u,c]:(Ke=s,s=n),s===n&&(s=null),s!==n&&(l=Et())!==n?(125===e.charCodeAt(Ke)?(u=b,Ke++):(u=n,0===Ze&&lt(m)),u!==n?($e=t,r=H(o,a,s),t=r):(Ke=t,t=n)):(Ke=t,t=n)):(Ke=t,t=n)):(Ke=t,t=n)):(Ke=t,t=n);return t}());return t}())===n&&(t=function(){var t,r,o,i,a,s,l,u,c,f,d;t=Ke,123===e.charCodeAt(Ke)?(r=p,Ke++):(r=n,0===Ze&&lt(h));if(r!==n)if(Et()!==n)if((o=_t())!==n)if(Et()!==n)if(44===e.charCodeAt(Ke)?(i=F,Ke++):(i=n,0===Ze&&lt(N)),i!==n)if(Et()!==n)if(e.substr(Ke,6)===te?(a=te,Ke+=6):(a=n,0===Ze&&lt(re)),a===n&&(e.substr(Ke,13)===ne?(a=ne,Ke+=13):(a=n,0===Ze&&lt(oe))),a!==n)if(Et()!==n)if(44===e.charCodeAt(Ke)?(s=F,Ke++):(s=n,0===Ze&&lt(N)),s!==n)if(Et()!==n)if(l=Ke,e.substr(Ke,7)===ie?(u=ie,Ke+=7):(u=n,0===Ze&&lt(ae)),u!==n&&(c=Et())!==n&&(f=Ot())!==n?l=u=[u,c,f]:(Ke=l,l=n),l===n&&(l=null),l!==n)if((u=Et())!==n){if(c=[],(f=wt())!==n)for(;f!==n;)c.push(f),f=wt();else c=n;c!==n&&(f=Et())!==n?(125===e.charCodeAt(Ke)?(d=b,Ke++):(d=n,0===Ze&&lt(m)),d!==n?($e=t,r=se(o,a,l,c),t=r):(Ke=t,t=n)):(Ke=t,t=n)}else Ke=t,t=n;else Ke=t,t=n;else Ke=t,t=n;else Ke=t,t=n;else Ke=t,t=n;else Ke=t,t=n;else Ke=t,t=n;else Ke=t,t=n;else Ke=t,t=n;else Ke=t,t=n;else Ke=t,t=n;else Ke=t,t=n;return t}())===n&&(t=function(){var t,r,o,i,a,s,l,u,c;t=Ke,123===e.charCodeAt(Ke)?(r=p,Ke++):(r=n,0===Ze&&lt(h));if(r!==n)if(Et()!==n)if((o=_t())!==n)if(Et()!==n)if(44===e.charCodeAt(Ke)?(i=F,Ke++):(i=n,0===Ze&&lt(N)),i!==n)if(Et()!==n)if(e.substr(Ke,6)===le?(a=le,Ke+=6):(a=n,0===Ze&&lt(ue)),a!==n)if(Et()!==n)if(44===e.charCodeAt(Ke)?(s=F,Ke++):(s=n,0===Ze&&lt(N)),s!==n)if(Et()!==n){if(l=[],(u=gt())!==n)for(;u!==n;)l.push(u),u=gt();else l=n;l!==n&&(u=Et())!==n?(125===e.charCodeAt(Ke)?(c=b,Ke++):(c=n,0===Ze&&lt(m)),c!==n?($e=t,r=ce(o,l),t=r):(Ke=t,t=n)):(Ke=t,t=n)}else Ke=t,t=n;else Ke=t,t=n;else Ke=t,t=n;else Ke=t,t=n;else Ke=t,t=n;else Ke=t,t=n;else Ke=t,t=n;else Ke=t,t=n;else Ke=t,t=n;else Ke=t,t=n;return t}())===n&&(t=function(){var t,r;t=Ke,35===e.charCodeAt(Ke)?(r=u,Ke++):(r=n,0===Ze&&lt(c));r!==n&&($e=t,r=f());return t=r}()),t}function pt(){var e,t,r;if(e=Ke,t=[],(r=St())===n&&(r=Ct())===n&&(r=Pt()),r!==n)for(;r!==n;)t.push(r),(r=St())===n&&(r=Ct())===n&&(r=Pt());else t=n;return t!==n&&($e=e,t=s(t)),e=t}function ht(){var t,r,o,i,a;if(Ze++,t=Ke,r=[],o=Ke,i=Ke,Ze++,(a=kt())===n&&(k.test(e.charAt(Ke))?(a=e.charAt(Ke),Ke++):(a=n,0===Ze&&lt(x))),Ze--,a===n?i=void 0:(Ke=i,i=n),i!==n?(e.length>Ke?(a=e.charAt(Ke),Ke++):(a=n,0===Ze&&lt(E)),a!==n?o=i=[i,a]:(Ke=o,o=n)):(Ke=o,o=n),o!==n)for(;o!==n;)r.push(o),o=Ke,i=Ke,Ze++,(a=kt())===n&&(k.test(e.charAt(Ke))?(a=e.charAt(Ke),Ke++):(a=n,0===Ze&&lt(x))),Ze--,a===n?i=void 0:(Ke=i,i=n),i!==n?(e.length>Ke?(a=e.charAt(Ke),Ke++):(a=n,0===Ze&&lt(E)),a!==n?o=i=[i,a]:(Ke=o,o=n)):(Ke=o,o=n);else r=n;return t=r!==n?e.substring(t,Ke):r,Ze--,t===n&&(r=n,0===Ze&&lt(w)),t}function bt(){var t,r,o;return Ze++,t=Ke,47===e.charCodeAt(Ke)?(r=S,Ke++):(r=n,0===Ze&&lt(C)),r!==n&&(o=ht())!==n?($e=t,t=r=P(o)):(Ke=t,t=n),Ze--,t===n&&(r=n,0===Ze&&lt(O)),t}function mt(){var e,t,r,o;if(Ze++,e=Ke,Et()!==n)if((t=ht())!==n){for(r=[],o=bt();o!==n;)r.push(o),o=bt();r!==n?($e=e,e=T(t,r)):(Ke=e,e=n)}else Ke=e,e=n;else Ke=e,e=n;return Ze--,e===n&&(n,0===Ze&&lt(_)),e}function yt(){var t,r,o,i;if(t=Ke,39===e.charCodeAt(Ke)?(r=z,Ke++):(r=n,0===Ze&&lt(B)),r!==n){if(o=[],(i=St())===n&&(V.test(e.charAt(Ke))?(i=e.charAt(Ke),Ke++):(i=n,0===Ze&&lt(W))),i!==n)for(;i!==n;)o.push(i),(i=St())===n&&(V.test(e.charAt(Ke))?(i=e.charAt(Ke),Ke++):(i=n,0===Ze&&lt(W)));else o=n;o!==n?(39===e.charCodeAt(Ke)?(i=z,Ke++):(i=n,0===Ze&&lt(B)),i!==n?t=r=[r,o,i]:(Ke=t,t=n)):(Ke=t,t=n)}else Ke=t,t=n;if(t===n)if(t=[],(r=St())===n&&(q.test(e.charAt(Ke))?(r=e.charAt(Ke),Ke++):(r=n,0===Ze&&lt(G))),r!==n)for(;r!==n;)t.push(r),(r=St())===n&&(q.test(e.charAt(Ke))?(r=e.charAt(Ke),Ke++):(r=n,0===Ze&&lt(G)));else t=n;return t}function vt(){var t,r;if(t=[],X.test(e.charAt(Ke))?(r=e.charAt(Ke),Ke++):(r=n,0===Ze&&lt(K)),r!==n)for(;r!==n;)t.push(r),X.test(e.charAt(Ke))?(r=e.charAt(Ke),Ke++):(r=n,0===Ze&&lt(K));else t=n;return t}function gt(){var t,r,o,i,a;return t=Ke,Et()!==n&&(r=At())!==n&&Et()!==n?(123===e.charCodeAt(Ke)?(o=p,Ke++):(o=n,0===Ze&&lt(h)),o!==n?($e=Ke,(pe(r)?void 0:n)!==n&&(i=ft())!==n?(125===e.charCodeAt(Ke)?(a=b,Ke++):(a=n,0===Ze&&lt(m)),a!==n?($e=t,t=he(r,i)):(Ke=t,t=n)):(Ke=t,t=n)):(Ke=t,t=n)):(Ke=t,t=n),t}function wt(){var t,r,o,i,a;return t=Ke,Et()!==n&&(r=function(){var t,r,o,i;return t=Ke,r=Ke,61===e.charCodeAt(Ke)?(o=fe,Ke++):(o=n,0===Ze&&lt(de)),o!==n&&(i=Ot())!==n?r=o=[o,i]:(Ke=r,r=n),(t=r!==n?e.substring(t,Ke):r)===n&&(t=At()),t}())!==n&&Et()!==n?(123===e.charCodeAt(Ke)?(o=p,Ke++):(o=n,0===Ze&&lt(h)),o!==n?($e=Ke,(be(r)?void 0:n)!==n&&(i=ft())!==n?(125===e.charCodeAt(Ke)?(a=b,Ke++):(a=n,0===Ze&&lt(m)),a!==n?($e=t,t=me(r,i)):(Ke=t,t=n)):(Ke=t,t=n)):(Ke=t,t=n)):(Ke=t,t=n),t}function kt(){var t;return Ze++,ve.test(e.charAt(Ke))?(t=e.charAt(Ke),Ke++):(t=n,0===Ze&&lt(ge)),Ze--,t===n&&(n,0===Ze&&lt(ye)),t}function xt(){var t;return Ze++,ke.test(e.charAt(Ke))?(t=e.charAt(Ke),Ke++):(t=n,0===Ze&&lt(xe)),Ze--,t===n&&(n,0===Ze&&lt(we)),t}function Et(){var t,r,o;for(Ze++,t=Ke,r=[],o=kt();o!==n;)r.push(o),o=kt();return t=r!==n?e.substring(t,Ke):r,Ze--,t===n&&(r=n,0===Ze&&lt(Ee)),t}function Ot(){var t,r,o;return Ze++,t=Ke,45===e.charCodeAt(Ke)?(r=Se,Ke++):(r=n,0===Ze&&lt(Ce)),r===n&&(r=null),r!==n&&(o=Tt())!==n?($e=t,t=r=Pe(r,o)):(Ke=t,t=n),Ze--,t===n&&(r=n,0===Ze&&lt(Oe)),t}function St(){var t,r;return Ze++,t=Ke,e.substr(Ke,2)===Te?(r=Te,Ke+=2):(r=n,0===Ze&&lt(Ae)),r!==n&&($e=t,r=je()),Ze--,(t=r)===n&&(r=n,0===Ze&&lt(_e)),t}function Ct(){var t,r,o,i,a,s;if(t=Ke,39===e.charCodeAt(Ke)?(r=z,Ke++):(r=n,0===Ze&&lt(B)),r!==n)if((o=function(){var t,r,o,i;t=Ke,r=Ke,e.length>Ke?(o=e.charAt(Ke),Ke++):(o=n,0===Ze&&lt(E));o!==n?($e=Ke,(i=(i=Fe(o))?void 0:n)!==n?r=o=[o,i]:(Ke=r,r=n)):(Ke=r,r=n);t=r!==n?e.substring(t,Ke):r;return t}())!==n){for(i=Ke,a=[],e.substr(Ke,2)===Te?(s=Te,Ke+=2):(s=n,0===Ze&&lt(Ae)),s===n&&(V.test(e.charAt(Ke))?(s=e.charAt(Ke),Ke++):(s=n,0===Ze&&lt(W)));s!==n;)a.push(s),e.substr(Ke,2)===Te?(s=Te,Ke+=2):(s=n,0===Ze&&lt(Ae)),s===n&&(V.test(e.charAt(Ke))?(s=e.charAt(Ke),Ke++):(s=n,0===Ze&&lt(W)));(i=a!==n?e.substring(i,Ke):a)!==n?(39===e.charCodeAt(Ke)?(a=z,Ke++):(a=n,0===Ze&&lt(B)),a===n&&(a=null),a!==n?($e=t,t=r=Ie(o,i)):(Ke=t,t=n)):(Ke=t,t=n)}else Ke=t,t=n;else Ke=t,t=n;return t}function Pt(){var t,r,o,i;return t=Ke,r=Ke,e.length>Ke?(o=e.charAt(Ke),Ke++):(o=n,0===Ze&&lt(E)),o!==n?($e=Ke,(i=(i=De(o))?void 0:n)!==n?r=o=[o,i]:(Ke=r,r=n)):(Ke=r,r=n),r===n&&(10===e.charCodeAt(Ke)?(r=Me,Ke++):(r=n,0===Ze&&lt(Re))),t=r!==n?e.substring(t,Ke):r}function _t(){var t,r;return Ze++,t=Ke,(r=Tt())===n&&(r=At()),t=r!==n?e.substring(t,Ke):r,Ze--,t===n&&(r=n,0===Ze&&lt(Ne)),t}function Tt(){var t,r,o,i,a;if(Ze++,t=Ke,48===e.charCodeAt(Ke)?(r=Ue,Ke++):(r=n,0===Ze&&lt(He)),r!==n&&($e=t,r=ze()),(t=r)===n){if(t=Ke,r=Ke,Be.test(e.charAt(Ke))?(o=e.charAt(Ke),Ke++):(o=n,0===Ze&&lt(Ve)),o!==n){for(i=[],We.test(e.charAt(Ke))?(a=e.charAt(Ke),Ke++):(a=n,0===Ze&&lt(qe));a!==n;)i.push(a),We.test(e.charAt(Ke))?(a=e.charAt(Ke),Ke++):(a=n,0===Ze&&lt(qe));i!==n?r=o=[o,i]:(Ke=r,r=n)}else Ke=r,r=n;r!==n&&($e=t,r=Ge(r)),t=r}return Ze--,t===n&&(r=n,0===Ze&&lt(Le)),t}function At(){var t,r,o,i,a;if(Ze++,t=Ke,r=[],o=Ke,i=Ke,Ze++,(a=kt())===n&&(a=xt()),Ze--,a===n?i=void 0:(Ke=i,i=n),i!==n?(e.length>Ke?(a=e.charAt(Ke),Ke++):(a=n,0===Ze&&lt(E)),a!==n?o=i=[i,a]:(Ke=o,o=n)):(Ke=o,o=n),o!==n)for(;o!==n;)r.push(o),o=Ke,i=Ke,Ze++,(a=kt())===n&&(a=xt()),Ze--,a===n?i=void 0:(Ke=i,i=n),i!==n?(e.length>Ke?(a=e.charAt(Ke),Ke++):(a=n,0===Ze&&lt(E)),a!==n?o=i=[i,a]:(Ke=o,o=n)):(Ke=o,o=n);else r=n;return t=r!==n?e.substring(t,Ke):r,Ze--,t===n&&(r=n,0===Ze&&lt(Xe)),t}var jt=["root"];function It(){return"plural"===jt[jt.length-1]}function Dt(){return t&&t.captureLocation?{location:tt()}:{}}if((r=a())!==n&&Ke===e.length)return r;throw r!==n&&Ke<e.length&&lt({type:"end"}),ut(Je,Ye<e.length?e.charAt(Ye):null,Ye<e.length?st(Ye,Ye+1):st(Ye,Ye))},w=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n},k=/(^|[^\\])#/g;function x(e,t){var r=g(e,t);return t&&!1===t.normalizeHashtagInPlural||function e(t){t.forEach((function(t){(f(t)||c(t))&&Object.keys(t.options).forEach((function(r){for(var n,o=t.options[r],a=-1,s=void 0,l=0;l<o.value.length;l++){var u=o.value[l];if(i(u)&&k.test(u.value)){a=l,s=u;break}}if(s){var c=s.value.replace(k,"$1{"+t.value+", number}"),f=g(c);(n=o.value).splice.apply(n,w([a,1],f))}e(o.value)}))}))}(r),r}var E=r(42),O=function(){return(O=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},S=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function C(e){var t={};return e.replace(S,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) pattenrs are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) pattenrs are not supported, use `z` instead")}return""})),t}var P=/^\.(?:(0+)(\+|#+)?)?$/g,_=/^(@+)?(\+|#+)?$/g;function T(e){var t={};return e.replace(_,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function A(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":return{currencySign:"accounting"};case"sign-always":return{signDisplay:"always"};case"sign-accounting-always":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":return{signDisplay:"never"}}}function j(e){var t=A(e);return t||{}}function I(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":t.style="percent";continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":t.useGrouping=!1;continue;case"precision-integer":t.maximumFractionDigits=0;continue;case"measure-unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=O(O(O({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return O(O({},e),j(t))}),{}));continue;case"engineering":t=O(O(O({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return O(O({},e),j(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue}if(P.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(P,(function(e,r,n){return"."===e?t.maximumFractionDigits=0:"+"===n?t.minimumFractionDigits=n.length:"#"===r[0]?t.maximumFractionDigits=r.length:(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length+("string"==typeof n?n.length:0)),""})),o.options.length&&(t=O(O({},t),T(o.options[0])))}else if(_.test(o.stem))t=O(O({},t),T(o.stem));else{var i=A(o.stem);i&&(t=O(O({},t),i))}}return t}var D,M=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),R=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n},F=function(e){function t(t,r){var n=e.call(this,t)||this;return n.variableId=r,n}return M(t,e),t}(Error);function N(e,t,r,n,o,b,m){if(1===e.length&&i(e[0]))return[{type:0,value:e[0].value}];for(var y,v=[],g=0,w=e;g<w.length;g++){var k=w[g];if(i(k))v.push({type:0,value:k.value});else if(d(k))"number"==typeof b&&v.push({type:0,value:r.getNumberFormat(t).format(b)});else{var x=k.value;if(!(o&&x in o))throw new F('The intl string context variable "'+x+'" was not provided to the string "'+m+'"');var E=o[x];if(a(k))E&&"string"!=typeof E&&"number"!=typeof E||(E="string"==typeof E||"number"==typeof E?String(E):""),v.push({type:1,value:E});else if(l(k)){var O="string"==typeof k.style?n.date[k.style]:void 0;v.push({type:0,value:r.getDateTimeFormat(t,O).format(E)})}else if(u(k)){O="string"==typeof k.style?n.time[k.style]:h(k.style)?C(k.style.pattern):void 0;v.push({type:0,value:r.getDateTimeFormat(t,O).format(E)})}else if(s(k)){O="string"==typeof k.style?n.number[k.style]:p(k.style)?I(k.style.tokens):void 0;v.push({type:0,value:r.getNumberFormat(t,O).format(E)})}else if(c(k)){if(!(S=k.options[E]||k.options.other))throw new RangeError('Invalid values for "'+k.value+'": "'+E+'". Options are "'+Object.keys(k.options).join('", "')+'"');v.push.apply(v,N(S.value,t,r,n,o))}else if(f(k)){var S;if(!(S=k.options["="+E])){if(!Intl.PluralRules)throw new F('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n');var P=r.getPluralRules(t,{type:k.pluralType}).select(E-(k.offset||0));S=k.options[P]||k.options.other}if(!S)throw new RangeError('Invalid values for "'+k.value+'": "'+E+'". Options are "'+Object.keys(k.options).join('", "')+'"');v.push.apply(v,N(S.value,t,r,n,o,E-(k.offset||0)))}else;}}return(y=v).length<2?y:y.reduce((function(e,t){var r=e[e.length-1];return r&&0===r.type&&0===t.type?r.value+=t.value:e.push(t),e}),[])}var L="@@",U=/@@(\d+_\d+)@@/g,H=0;function z(e,t){return e.split(U).filter(Boolean).map((function(e){return null!=t[e]?t[e]:e})).reduce((function(e,t){return e.length&&"string"==typeof t&&"string"==typeof e[e.length-1]?e[e.length-1]+=t:e.push(t),e}),[])}var B=/(<([0-9a-zA-Z-_]*?)>(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,V=Date.now()+"@@",W=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function q(e,t,r,n,o,i){var a=N(e,t,r,n,o,void 0,i),s={},l=a.reduce((function(e,t){if(0===t.type)return e+t.value;var r=Date.now()+"_"+ ++H;return s[r]=t.value,e+""+L+r+L}),"");if(!B.test(l))return z(l,s);if(!o)throw new F("Message has placeholders but no values was given");if("undefined"==typeof DOMParser)throw new F("Cannot format XML message without DOMParser");D||(D=new DOMParser);var u=D.parseFromString('<formatted-message id="'+V+'">'+l+"</formatted-message>","text/html").getElementById(V);if(!u)throw new F("Malformed HTML message "+l);var c=Object.keys(o).filter((function(e){return!!u.getElementsByTagName(e).length}));if(!c.length)return z(l,s);var f=c.filter((function(e){return e!==e.toLowerCase()}));if(f.length)throw new F("HTML tag must be lowercased but the following tags are not: "+f.join(", "));return Array.prototype.slice.call(u.childNodes).reduce((function(e,t){return e.concat(function e(t,r,n){var o=t.tagName,i=t.outerHTML,a=t.textContent,s=t.childNodes;if(!o)return z(a||"",r);o=o.toLowerCase();var l=~W.indexOf(o),u=n[o];if(u&&l)throw new F(o+" is a self-closing tag and can not be used, please use another tag name.");if(!s.length)return[i];var c=Array.prototype.slice.call(s).reduce((function(t,o){return t.concat(e(o,r,n))}),[]);return u?"function"==typeof u?[u.apply(void 0,c)]:[u]:R(["<"+o+">"],c,["</"+o+">"])}(t,s,o))}),[])}var G=function(){return(G=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function X(e,t){return t?Object.keys(e).reduce((function(r,n){var o,i;return r[n]=(o=e[n],(i=t[n])?G(G(G({},o||{}),i||{}),Object.keys(o).reduce((function(e,t){return e[t]=G(G({},o[t]),i[t]||{}),e}),{})):o),r}),G({},e)):e}var K=function(){function e(t,r,n,o){var i,a=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){return function(e,t,r,n,o,i){var a=N(e,t,r,n,o,void 0,i);return 1===a.length?a[0].value:a.reduce((function(e,t){return e+t.value}),"")}(a.ast,a.locales,a.formatters,a.formats,e,a.message)},this.formatToParts=function(e){return N(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.formatHTMLMessage=function(e){return q(a.ast,a.locales,a.formatters,a.formats,e,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{normalizeHashtagInPlural:!1})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=X(e.formats,n),this.locales=r,this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Object(E.a)(Intl.NumberFormat,i.number),getDateTimeFormat:Object(E.a)(Intl.DateTimeFormat,i.dateTime),getPluralRules:Object(E.a)(Intl.PluralRules,i.pluralRules)})}return e.defaultLocale=(new Intl.NumberFormat).resolvedOptions().locale,e.__parse=x,e.formats={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();t.a=K},,,function(e,t,r){"use strict";var n=r(0),o=r(149);r(491);t.a=function(e){var t=e.children;return n.createElement("span",{className:"menu-toggle"},t,n.createElement(o.a,{className:"toggle-arrow",width:7}))}},,,function(e,t,r){"use strict";var n,o,i=r(0),a=r(12),s=r.n(a),l=r(45),u=r.n(l);r(416);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 f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function d(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}!function(e){e.BOTTOM_CENTER="bottom-center",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_RIGHT="bottom-right",e.MIDDLE_CENTER="middle-center",e.MIDDLE_LEFT="middle-left",e.MIDDLE_RIGHT="middle-right",e.TOP_CENTER="top-center",e.TOP_LEFT="top-left",e.TOP_RIGHT="top-right"}(o||(o={}));var v=(y(n={},o.BOTTOM_CENTER,{attachment:"top center",targetAttachment:"bottom center"}),y(n,o.BOTTOM_LEFT,{attachment:"top left",targetAttachment:"bottom left"}),y(n,o.BOTTOM_RIGHT,{attachment:"top right",targetAttachment:"bottom right"}),y(n,o.MIDDLE_CENTER,{attachment:"middle center",targetAttachment:"middle center"}),y(n,o.MIDDLE_LEFT,{attachment:"middle right",targetAttachment:"middle left"}),y(n,o.MIDDLE_RIGHT,{attachment:"middle left",targetAttachment:"middle right"}),y(n,o.TOP_CENTER,{attachment:"bottom center",targetAttachment:"top center"}),y(n,o.TOP_LEFT,{attachment:"bottom left",targetAttachment:"top left"}),y(n,o.TOP_RIGHT,{attachment:"bottom right",targetAttachment:"top right"}),n),g=function(e){function t(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return r=function(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?b(e):t}(this,(e=h(t)).call.apply(e,[this].concat(o))),y(b(r),"tetherRef",i.createRef()),y(b(r),"radarAnimationID",s()("radarAnimation")),y(b(r),"position",(function(){var e=r.props.isShown;r.tetherRef.current&&e&&r.tetherRef.current.position()})),r}var r,n,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}}),t&&m(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.children,r=e.className,n=void 0===r?"":r,o=e.constrainToScrollParent,a=e.constrainToWindow,s=e.position,l=e.isShown,c=e.offset,p=d(e,["children","className","constrainToScrollParent","constrainToWindow","position","isShown","offset"]),h=[];o&&h.push({to:"scrollParent",attachment:"together"}),a&&h.push({to:"window",attachment:"together"});var b=v[s],m=b.attachment,y=b.targetAttachment,g=i.Children.only(t),w=i.cloneElement(g,{"aria-describedby":this.radarAnimationID}),k={attachment:m,classPrefix:"radar-animation",constraints:h,targetAttachment:y};return c&&(k.offset=c),i.createElement(u.a,f({ref:this.tetherRef},k),w,l&&i.createElement("div",f({className:"radar ".concat(n),id:this.radarAnimationID},p),i.createElement("div",{className:"radar-dot"}),i.createElement("div",{className:"radar-circle"})))}}])&&p(r.prototype,n),o&&p(r,o),t}(i.Component);y(g,"defaultProps",{constrainToScrollParent:!1,constrainToWindow:!0,isShown:!0,position:o.MIDDLE_RIGHT});var w=g;r.d(t,"a",(function(){return w}))},,function(e,t,r){(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=r(38),i=r(372),a="object"==n(t)&&t&&!t.nodeType&&t,s=a&&"object"==n(e)&&e&&!e.nodeType&&e,l=s&&s.exports===a?o.Buffer:void 0,u=(l?l.isBuffer:void 0)||i;e.exports=u}).call(this,r(86)(e))},function(e,t,r){var n=r(382),o=r(158),i=r(383),a=r(312),s=r(296),l=r(55),u=r(212),c=u(n),f=u(o),d=u(i),p=u(a),h=u(s),b=l;(n&&"[object DataView]"!=b(new n(new ArrayBuffer(1)))||o&&"[object Map]"!=b(new o)||i&&"[object Promise]"!=b(i.resolve())||a&&"[object Set]"!=b(new a)||s&&"[object WeakMap]"!=b(new s))&&(b=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case c:return"[object DataView]";case f:return"[object Map]";case d:return"[object Promise]";case p:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=b},function(e,t,r){"use strict";var n=r(0),o=r(25);function i(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}t.a=function(e){var t=function(t){var r=t.isLoading,a=void 0!==r&&r,s=t.loadingIndicatorProps,l=void 0===s?{}:s,u=i(t,["isLoading","loadingIndicatorProps"]);return a?n.createElement(o.b,l):n.createElement(e,u)};return t.displayName="Loadable".concat(e.displayName||e.name||"Component"),t}},function(e,t,r){var n=r(459);e.exports=function(e){return n(e)&&e!=+e}},,,,,function(e,t,r){"use strict";var n=r(0),o=r(9);t.a=function(e){var t=e.className,r=void 0===t?"":t,i=e.color,a=void 0===i?"#000":i,s=e.height,l=void 0===s?6:s,u=e.title,c=e.width,f=void 0===c?10:c;return n.createElement(o.a,{className:"icon-caret-down ".concat(r),height:l,title:u,viewBox:"0 0 10 6",width:f},n.createElement("path",{className:"fill-color",d:"M0 .5l5 5 5-5H0z",fill:a,fillRule:"evenodd"}))}},,function(e,t,r){var n=r(313),o=r(93),i=r(283),a=r(299),s=r(439),l=Math.max;e.exports=function(e,t,r,u){e=o(e)?e:s(e),r=r&&!u?a(r):0;var c=e.length;return r<0&&(r=l(c+r,0)),i(e)?r<=c&&e.indexOf(t,r)>-1:!!c&&n(e,t,r)>-1}},function(e,t,r){var n=r(123),o=r(345),i=r(346),a=r(347),s=r(348),l=r(349);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},function(e,t,r){"use strict";var n=r(0),o=r(2),i=r(10);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}t.a=function(e){return n.createElement(i.a,a({width:16,height:16,viewBox:"0 0 16 16"},e),n.createElement("path",{fill:o.i,fillRule:"evenodd",d:"M8 6.586l4.182-4.182a.5.5 0 01.707 0l.707.707a.5.5 0 010 .707L9.414 8l4.182 4.182a.5.5 0 010 .707l-.707.707a.5.5 0 01-.707 0L8 9.414l-4.182 4.182a.5.5 0 01-.707 0l-.707-.707a.5.5 0 010-.707L6.586 8 2.404 3.818a.5.5 0 010-.707l.707-.707a.5.5 0 01.707 0L8 6.586z"}))}},,,,function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}},function(e,t,r){var n=r(64)(r(38),"Map");e.exports=n},function(e,t,r){var n=r(55),o=r(33),i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";e.exports=function(e){if(!o(e))return!1;var t=n(e);return t==a||t==s||t==i||t==l}},function(e,t,r){var n=r(161),o=r(109),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];i.call(e,t)&&o(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},function(e,t,r){var n=r(213);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},function(e,t){var r=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,r){(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=r(211),i="object"==n(t)&&t&&!t.nodeType&&t,a=i&&"object"==n(e)&&e&&!e.nodeType&&e,s=a&&a.exports===i&&o.process,l=function(){try{var e=a&&a.require&&a.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=l}).call(this,r(86)(e))},function(e,t){var r=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},function(e,t,r){var n=r(380),o=r(217),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},function(e,t){e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},function(e,t,r){var n=r(215)(Object.getPrototypeOf,Object);e.exports=n},function(e,t,r){var n=r(270);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},function(e,t,r){"use strict";(function(t){var n=r(34),o=r(423),i={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,l={adapter:("undefined"!=typeof XMLHttpRequest?s=r(227):void 0!==t&&(s=r(227)),s),transformRequest:[function(e,t){return o(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){l.headers[e]=n.merge(i)})),e.exports=l}).call(this,r(195))},function(e,t,r){"use strict";var n=r(407),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=p(r);o&&o!==h&&e(t,o,n)}var a=c(r);f&&(a=a.concat(f(r)));for(var s=l(t),b=l(r),m=0;m<a.length;++m){var y=a[m];if(!(i[y]||n&&n[y]||b&&b[y]||s&&s[y])){var v=d(r,y);try{u(t,y,v)}catch(e){}}}}return t}},function(e,t,r){var n=r(418),o=r(272);e.exports=function(e,t){return null!=e&&o(e,t,n)}},,,,,,function(e,t,r){"use strict";var n=r(0),o=r(2),i=r(10);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var c=function(e){return n.createElement(i.a,u({width:32,height:32,viewBox:"0 0 32 32"},e),n.createElement("g",{fill:"none"},n.createElement("path",{fill:"#009AED",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),n.createElement("path",{fill:o.y,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),n.createElement("path",{fill:o.y,d:"M18 18v-2h-2v-4h-1v4h-2v2H9v1h4v2h2v4h1v-4h2v-2h4v-1h-4zm-1 2h-3v-3h3v3z"})))};function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var d=function(e){return n.createElement(i.a,f({width:32,height:32,viewBox:"0 0 32 32"},e),n.createElement("g",{fill:"none"},n.createElement("path",{fill:"#107C41",d:"M9 3h9.586c.265 0 .52.105.707.293l6.415 6.414a1 1 0 01.293.707V26A3.002 3.002 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),n.createElement("path",{fill:"#87BDA0",d:"M19.286 3.286l6.422 6.421a.994.994 0 01.203.293H21a2.001 2.001 0 01-1.995-1.85L19 8V3.09c.105.048.202.114.286.196z"}),n.createElement("path",{fill:o.y,d:"M20.25 25a.748.748 0 00.75-.75v-10.5a.748.748 0 00-.75-.75H12a.748.748 0 00-.75.75v1.5h-1.5A.748.748 0 009 16v6a.748.748 0 00.75.75h1.5v1.5A.748.748 0 0012 25h8.25zm-4.5-9.75H12v-1.5h3.75v1.5zm4.5 0H16.5v-1.5h3.75v1.5zm0 3H16.5V16h3.75v2.25zm-8.344 3.188h-1.511l1.582-2.45-1.442-2.425h1.518l.756 1.494.82-1.494h1.43l-1.483 2.42 1.518 2.454H13.6l-.838-1.564-.856 1.564zm8.344-.188H16.5V19h3.75v2.25zm0 3H16.5V22h3.75v2.25zm-4.5 0H12v-1.5h3.75v1.5z"})))};function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var h=function(e){return n.createElement(i.a,p({width:32,height:32,viewBox:"0 0 32 32"},e),n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("path",{fill:"#4083F7",fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),n.createElement("path",{fill:o.y,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),n.createElement("path",{fill:o.y,d:"M16 23v1h-6v-1h6zm5-3v1H10v-1h11zm0-3v1H10v-1h11zm0-3v1H10v-1h11z"})))};function b(){return(b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var m=function(e){return n.createElement(i.a,b({width:32,height:32,viewBox:"0 0 32 32"},e),n.createElement("g",{fill:"none"},n.createElement("path",{fill:"#21A464",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),n.createElement("path",{fill:o.y,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),n.createElement("path",{fill:o.y,d:"M20.499 14c.277 0 .501.228.501.51v8.98c0 .282-.23.51-.501.51H10.5a.505.505 0 01-.501-.51v-8.98c0-.282.23-.51.501-.51h10zM11 21v2h4v-2.001L11 21zm5 0v2h4v-2h-4zm4-3h-4v2h4v-2zm0-3h-4v2h4v-2zm-5 0h-4v2l4-.001V15zm-4 5l4-.001v-2L11 18v2z"})))};function y(){return(y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var v=function(e){return n.createElement(i.a,y({width:32,height:32,viewBox:"0 0 32 32"},e),n.createElement("g",{fill:"none"},n.createElement("path",{fill:"#F7BA00",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),n.createElement("path",{fill:o.y,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),n.createElement("path",{fill:o.y,d:"M10 14v9c0 .6.4 1 1 1h9c.6 0 1-.4 1-1v-9c0-.6-.4-1-1-1h-9c-.6 0-1 .4-1 1zm10 7h-9v-5h9v5z"})))};function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var w=function(e){return n.createElement(i.a,g({width:32,height:32,viewBox:"0 0 32 32"},e),n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("path",{fill:"#051E25",fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),n.createElement("path",{fill:o.y,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),n.createElement("path",{fill:"#FF9400",d:"M20.42 15.805c.072 0 .108.027.108.107v6.982c0 .07-.018.106-.107.106h-1.393c-.09 0-.117-.044-.117-.115v-6.973h-.009c0-.071.027-.107.108-.107h1.41zm-5.813-2.557c.063 0 .09.017.108.088l2.857 9.549c.018.07 0 .115-.072.115h-1.49c-.072 0-.117-.018-.135-.08l-.737-2.663h-2.875l-.71 2.655c-.018.07-.045.088-.135.088h-1.32c-.09 0-.109-.027-.09-.133l2.551-8.796c.045-.16.072-.301.09-.735 0-.062.027-.088.072-.088h1.887zm-.917 1.416h-.018c-.188 1.035-.665 2.787-1.042 4.159h2.13c-.252-.982-.845-3.124-1.07-4.16zM19.72 13c.548 0 .916.363.916.903 0 .584-.386.902-.934.902-.521 0-.899-.318-.899-.902 0-.567.404-.903.917-.903z"})))};function k(){return(k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var x=function(e){return n.createElement(i.a,k({width:32,height:32,viewBox:"0 0 32 32"},e),n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("path",{fill:"#3FB87F",fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),n.createElement("path",{fill:o.y,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),n.createElement("path",{fill:o.y,d:"M14.754 18.128l3.102 3.204 1.327-1.625c.158-.193.415-.193.575 0l2.06 2.485c.37.446.159.808-.472.808H10.63c-.633 0-.82-.341-.414-.767a72386.439 72386.439 0 013.9-4.089.444.444 0 01.64-.016zM17.5 14a1.5 1.5 0 110 3 1.5 1.5 0 010-3z"})))};function E(){return(E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var O=function(e){return n.createElement(i.a,E({width:32,height:32,viewBox:"0 0 32 32"},e),n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("path",{fill:"#051E25",fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),n.createElement("path",{fill:o.y,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),n.createElement("path",{fill:"#FF57A1",d:"M19.866 13c.071 0 .09.027.09.072v8.385c0 .251 0 .565.044.906 0 .063-.018.072-.08.108a5.449 5.449 0 01-2.342.529c-1.975 0-3.387-1.229-3.387-3.73-.01-2.144 1.403-3.813 3.664-3.813.188 0 .295 0 .474.018V13.09c0-.063.044-.09.09-.09h1.447zm-7.364 0c.071 0 .107.027.107.108v9.64c0 .09-.018.117-.116.117h-1.377c-.09 0-.116-.044-.116-.116v-9.632c0-.09.045-.117.116-.117h1.386zm5.3 3.83c-1.154 0-1.958.888-1.958 2.367 0 1.686.822 2.368 1.85 2.368.224 0 .456-.027.635-.108V16.92a1.282 1.282 0 00-.528-.09z"})))};function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var C=function(e){return n.createElement(i.a,S({width:32,height:32,viewBox:"0 0 32 32"},e),n.createElement("g",{fill:"none"},n.createElement("path",{fill:"#007AFF",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),n.createElement("path",{fill:o.y,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),n.createElement("path",{fill:o.y,d:"M20.904 19.137a.413.413 0 01-.086.112l-.114.085H10.205a.479.479 0 01-.2-.197.468.468 0 010-.131v-.562H21v.562a.45.45 0 01-.096.13zm-10.699-1.161s.134-2.351.173-3.147v-.375a1.321 1.321 0 010-.187.6.6 0 01.057-.178.62.62 0 01.115-.15.63.63 0 01.335-.16h.735v-.524a1.743 1.743 0 010-.243.772.772 0 01.24-.46.69.69 0 01.19-.121.912.912 0 01.278-.084h1.415a.15.15 0 00.124 0l.153-.207a.457.457 0 01.115-.093l.153-.047h1.32l.152.047a.487.487 0 01.23.225.546.546 0 01.057.15c.006.05.006.1 0 .15a.918.918 0 010 .215.536.536 0 01-.057.15.54.54 0 01-.23.224l-.153.057h-1.319a.612.612 0 01-.153-.047l-.096-.066-.153-.159a.163.163 0 00-.114-.066H12.29a.331.331 0 00-.134.132.294.294 0 000 .093.973.973 0 000 .169v.534h7.907a.63.63 0 01.335.159.582.582 0 01.114.15.6.6 0 01.058.178c.005.062.005.125 0 .187v.3c0 .608.172 3.212.172 3.212H10.205v-.018zm2.869 6.087h1.912V19.85h.956v4.214h1.912c.264 0 .478.21.478.469a.473.473 0 01-.478.468h-4.78a.473.473 0 01-.478-.468c0-.259.214-.469.478-.469z"})))};function P(){return(P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var _=function(e){return n.createElement(i.a,P({width:32,height:32,viewBox:"0 0 32 32"},e),n.createElement("g",{fill:"none"},n.createElement("path",{fill:"#00A650",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),n.createElement("path",{fill:o.y,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),n.createElement("path",{fill:o.y,d:"M21.744 23.524c.141 0 .256.093.256.206v.064c0 .114-.115.206-.256.206H9.256C9.115 24 9 23.908 9 23.794v-.064c0-.113.115-.206.256-.206h12.488zm-6.606-5.203c.062 0 .113.05.113.11V22.9c0 .06-.05.11-.113.11h-2.627a.112.112 0 01-.112-.11v-4.47c0-.06.05-.11.112-.11h2.627zm-3.275 2.66c.046 0 .084.035.084.077v1.876c0 .042-.038.076-.084.076H9.18c-.046 0-.084-.034-.084-.076v-1.876c0-.042.038-.076.084-.076h2.684zM18.458 13c.062 0 .112.05.112.11v9.79a.11.11 0 01-.033.078.113.113 0 01-.08.033H15.83a.111.111 0 01-.112-.111v-9.79a.11.11 0 01.033-.079.113.113 0 01.08-.032h2.627zm3.33 2.93c.056 0 .101.046.101.103v6.873a.102.102 0 01-.1.104h-2.65a.102.102 0 01-.101-.104v-6.873c0-.057.045-.104.1-.104h2.65z"})))};function T(){return(T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var A=function(e){return n.createElement(i.a,T({width:32,height:32,viewBox:"0 0 32 32"},e),n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("path",{fill:"#FF9500",fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.414 6.414a1 1 0 01.293.707V26a3 3 0 01-3 3H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),n.createElement("path",{fill:o.y,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),n.createElement("path",{fill:o.y,d:"M26 24v1H11.5a.5.5 0 110-1H26zm-14.033-1.59l.483.49-.773.488c-.086.087-.248-.058-.215-.16l.505-.818zm7.73-8.118l.774.782-6.861 6.945c-.25.252-.53.47-.832.653l-.231.13-.484-.49c.155-.321.353-.619.59-.883l.184-.192 6.86-6.945zm.194-.196l.966-.978a.546.546 0 01.729.045.563.563 0 01.1.65l-.056.087-.966.979-.773-.783.966-.978-.966.978z"})))};function j(){return(j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var I=function(e){return n.createElement(i.a,j({width:32,height:32,viewBox:"0 0 32 32"},e),n.createElement("g",{fill:"none"},n.createElement("path",{fill:"#D0021B",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),n.createElement("path",{fill:o.y,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),n.createElement("path",{fill:o.y,d:"M13.133 16.998c0 .354-.054.66-.162.918a1.745 1.745 0 01-1.044 1.012 2.057 2.057 0 01-.693.122h-.621v2.322H9.2V15h1.98c.228 0 .457.033.688.099a1.655 1.655 0 011.089.945c.118.258.176.576.176.954zm-1.35.027c0-.288-.069-.495-.207-.621a.72.72 0 00-.504-.189h-.459v1.665h.459a.665.665 0 00.504-.22c.138-.148.207-.359.207-.635zm6.854 1.179c0 .48-.052.915-.157 1.305-.106.39-.266.723-.482.999a2.14 2.14 0 01-.824.639c-.333.15-.727.225-1.183.225H14.2V15h1.791c.456 0 .85.075 1.183.225.334.15.608.364.824.643.216.28.376.615.482 1.008.105.394.157.836.157 1.328zm-1.449 0c0-.642-.11-1.126-.328-1.454-.22-.327-.503-.49-.851-.49h-.351v3.852h.351c.348 0 .631-.163.85-.49.22-.328.329-.8.329-1.418zm3.961-1.899v1.296h1.521v1.233h-1.512v2.538H19.7V15h3.105v1.305h-1.656z"})))};function D(){return(D=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var M=function(e){return n.createElement(i.a,D({width:32,height:32,viewBox:"0 0 32 32"},e),n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("path",{fill:"#051E25",fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),n.createElement("path",{fill:o.y,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),n.createElement("path",{fill:"#26C9FF",d:"M19.527 15.491c.79 0 1.34.116 1.643.25.074.045.092.116.092.179v1.223c0 .071-.046.116-.138.09-.403-.25-1-.403-1.597-.403-.725 0-.973.358-.973.652 0 .322.166.545 1.139 1.036 1.44.678 1.89 1.33 1.89 2.286 0 1.428-1.12 2.196-2.634 2.196-.798 0-1.487-.16-1.881-.384-.065-.027-.074-.071-.074-.143v-1.312c0-.09.046-.116.11-.072.579.366 1.24.527 1.845.527.725 0 1.028-.295 1.028-.696 0-.322-.211-.607-1.138-1.072-1.303-.607-1.845-1.223-1.845-2.25 0-1.152.927-2.107 2.533-2.107zM12.57 13c2.542 0 3.534 1.357 3.534 3.09 0 2.267-1.69 3.24-3.763 3.24-.35 0-.469-.017-.716-.017v3.428c0 .071-.028.107-.11.107H10.11c-.073 0-.11-.027-.11-.107v-9.59c0-.062.129-.106.202-.106.587-.027 1.46-.045 2.368-.045zm-.055 1.42c-.367 0-.716.018-.881.026v3.447c.21.018.376.018.743.018 1.074 0 2.084-.366 2.084-1.786 0-1.134-.725-1.705-1.946-1.705z"})))};function R(){return(R=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var F=function(e){return n.createElement(i.a,R({width:32,height:32,viewBox:"0 0 32 32"},e),n.createElement("g",{fill:"none"},n.createElement("path",{fill:"#C43E1C",d:"M9 3h9.586c.265 0 .52.105.707.293l6.415 6.414a1 1 0 01.293.707V26A3.002 3.002 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),n.createElement("path",{fill:"#E19E8D",d:"M19.286 3.286l6.422 6.421a.994.994 0 01.203.293H21a2.001 2.001 0 01-1.995-1.85L19 8V3.09c.105.048.202.114.286.196z"}),n.createElement("path",{fill:o.y,d:"M16 24a5.947 5.947 0 004.239-1.76 6.07 6.07 0 00.94-1.214c.262-.443.465-.92.607-1.432A5.862 5.862 0 0022 18a5.947 5.947 0 00-1.76-4.239 6.07 6.07 0 00-1.214-.94 5.894 5.894 0 00-1.432-.607A5.862 5.862 0 0016 12c-.457 0-.904.05-1.342.152a6.123 6.123 0 00-1.257.44c-.4.191-.776.427-1.128.706-.351.28-.67.597-.955.952h-.568A.748.748 0 0010 15v6a.748.748 0 00.75.75h.568c.286.355.604.673.955.952.352.28.728.515 1.128.706.4.192.82.338 1.257.44.438.101.885.152 1.342.152zm0-9.75h-3.668A5.186 5.186 0 0116 12.75v1.5zm5.197 3H17.5V15a.73.73 0 00-.219-.527.847.847 0 00-.241-.161.703.703 0 00-.29-.062v-1.447a5.086 5.086 0 011.617.512c.504.26.951.585 1.342.976.39.39.716.838.976 1.342.26.504.43 1.043.512 1.617zm-7.869 3.188h-1.213v-4.875h1.887c.258 0 .495.03.712.093.217.063.402.16.557.29.154.131.275.297.363.498.088.202.132.439.132.712 0 .266-.047.503-.141.712-.094.21-.223.386-.387.53a1.688 1.688 0 01-.577.331c-.22.077-.458.115-.712.115h-.62v1.593zm.527-2.655c.207 0 .369-.043.484-.129.115-.086.173-.24.173-.463 0-.214-.056-.36-.167-.439-.112-.078-.267-.117-.466-.117h-.55v1.148h.526zM16 23.25a5.186 5.186 0 01-3.668-1.5h4.418a.748.748 0 00.75-.75v-3.006h3.75c0 .485-.063.95-.188 1.395a5.251 5.251 0 01-1.353 2.32 5.258 5.258 0 01-2.317 1.353A5.155 5.155 0 0116 23.25z"})))};function N(){return(N=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var L=function(e){return n.createElement(i.a,N({width:32,height:32,viewBox:"0 0 32 32"},e),n.createElement("g",{fill:"none"},n.createElement("path",{fill:"#F7931D",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),n.createElement("path",{fill:o.y,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),n.createElement("path",{fill:o.y,d:"M15.643 20.354a.5.5 0 00.707 0l5.003-5a.5.5 0 10-.706-.708l-4.65 4.647-1.647-1.647a.5.5 0 00-.707 0L9.646 21.65a.5.5 0 10.708.707l3.643-3.649 1.646 1.647z"})))};function U(){return(U=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var H=function(e){return n.createElement(i.a,U({width:32,height:32,viewBox:"0 0 32 32"},e),n.createElement("g",{fill:"none"},n.createElement("path",{fill:"#3FB87F",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),n.createElement("path",{fill:o.y,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),n.createElement("path",{fill:o.y,d:"M22 23.49c0 .282-.229.51-.5.51h-11a.505.505 0 01-.5-.51v-8.98c0-.282.229-.51.5-.51h11c.276 0 .5.228.5.51v8.98zM11 23h2v-2h-2v2zm10-2h-7v2h7v-2zm0-1v-2h-7v2h7zm-10 0h2v-2h-2v2zm10-3v-2h-7v2h7zm-8-2h-2v2h2v-2z"})))};function z(){return(z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var B=function(e){return n.createElement(i.a,z({width:32,height:32,viewBox:"0 0 32 32"},e),n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("path",{fill:o.b,fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),n.createElement("path",{fill:o.y,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),n.createElement("path",{fill:o.y,d:"M17.5 21c.245 0 .45.183.492.412L18 21.5c0 .276-.23.5-.5.5h-7a.505.505 0 01-.5-.5c0-.276.23-.5.5-.5h7zm4-3c.245 0 .45.183.492.412L22 18.5c0 .276-.229.5-.5.5h-11a.505.505 0 01-.5-.5c0-.276.229-.5.5-.5h11zm-1.001-3c.246 0 .45.183.493.412L21 15.5c0 .276-.23.5-.501.5H10.5a.506.506 0 01-.501-.5c0-.276.23-.5.501-.5h10z"})))};function V(){return(V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var W=function(e){return n.createElement(i.a,V({width:32,height:32,viewBox:"0 0 32 32"},e),n.createElement("g",{fill:"none"},n.createElement("path",{fill:"#F7931D",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),n.createElement("path",{fill:o.y,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),n.createElement("path",{fill:o.y,d:"M20 14.068l-3.6-1.85c-.5-.291-1.3-.291-1.8 0l-3.6 1.85c-.6.292-1 .973-1 1.556v4.768c0 .681.4 1.265 1 1.557l3.6 1.849c.496.27 1.234.27 1.8 0l3.6-1.849c.6-.292 1-.973 1-1.557v-4.768c0-.583-.4-1.264-1-1.556zm-8.6 7.103c-.2-.098-.4-.487-.4-.681v-4.768c0-.292.2-.584.4-.681l3.6-1.85c.2-.096.6-.096.9 0l3.6 1.85c.1.061.154.134.2.194l-4.2 1.761v6.12c-.2 0-.282-.05-.4-.097l-3.7-1.848z"})))};function q(){return(q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var G=function(e){return n.createElement(i.a,q({width:32,height:32,viewBox:"0 0 32 32"},e),n.createElement("g",{fill:"none"},n.createElement("path",{fill:"#F7931D",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),n.createElement("path",{fill:o.y,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),n.createElement("path",{fill:o.y,d:"M13.195 17.07l.005.01c.12.312.292.6.504.851l-.424.254c-1.414.847-2.452 2.33-2.715 3.992a1 1 0 11-.999-.078c.289-1.994 1.516-3.763 3.2-4.772l.43-.257zm5.618.003l.429.256c1.687 1.008 2.91 2.77 3.197 4.77a1 1 0 11-1.002.073c-.26-1.664-1.293-3.14-2.708-3.985l-.43-.256.013-.019c.194-.235.354-.5.47-.787l.03-.052zM16 14a2 2 0 011.937 1.5h4.592c.26 0 .471.21.471.47v.06c0 .26-.21.47-.47.47l-4.593.001a2 2 0 01-3.874 0L9.471 16.5a.47.47 0 01-.47-.47v-.06c0-.26.21-.47.47-.47h4.592A2 2 0 0116 14zm0 1a1 1 0 00-1 .98v.039l.007.098A1 1 0 1016 15z"})))};function X(){return(X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var K=function(e){return n.createElement(i.a,X({width:32,height:32,viewBox:"0 0 32 32"},e),n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("path",{fill:"#009AED",fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),n.createElement("path",{fill:o.y,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),n.createElement("path",{fill:o.y,d:"M19.723 18.973l-5.914 3.957a.543.543 0 01-.809-.473v-7.914a.543.543 0 01.809-.473l5.914 3.957a.543.543 0 010 .946z"})))};function $(){return($=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var Q=function(e){return n.createElement(i.a,$({width:32,height:32,viewBox:"0 0 32 32"},e),n.createElement("g",{fill:"none"},n.createElement("path",{fill:"#185ABD",d:"M9 3h9.586c.265 0 .52.105.707.293l6.415 6.414a1 1 0 01.293.707V26A3.002 3.002 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),n.createElement("path",{fill:"#8BACDE",d:"M19.286 3.286l6.422 6.421a.994.994 0 01.203.293H21a2.001 2.001 0 01-1.995-1.85L19 8V3.09c.105.048.202.114.286.196z"}),n.createElement("path",{fill:o.y,d:"M20.25 25a.748.748 0 00.75-.75v-10.5a.748.748 0 00-.75-.75H12a.748.748 0 00-.75.75v1.5h-1.5A.748.748 0 009 16v6a.748.748 0 00.75.75h1.5v1.5A.748.748 0 0012 25h8.25zm0-9.75H12v-1.5h8.25v1.5zm0 3H16.5V16h3.75v2.25zm-8.104 3.188h-1.26l-1.083-4.875h1.207l.55 2.8.61-2.8h1.184l.638 2.783.51-2.784h1.195l-1.078 4.875h-1.242l-.633-2.8-.598 2.8zm8.104-.188H16.5V19h3.75v2.25zm0 3H12v-1.5h3.75a.748.748 0 00.75-.75h3.75v2.25z"})))};function Y(){return(Y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var J=function(e){return n.createElement(i.a,Y({width:32,height:32,viewBox:"0 0 32 32"},e),n.createElement("g",{fill:"none"},n.createElement("path",{fill:o.h,d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),n.createElement("path",{fill:o.y,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),n.createElement("path",{fill:o.k,d:"M10 24h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1V8zm1 15h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1V9z"})))},Z={IconFileAudio:function(e){return n.createElement(i.a,a({width:32,height:32,viewBox:"0 0 32 32"},e),n.createElement("g",{fill:"none"},n.createElement("path",{fill:o.r,d:"M9 3h9.172a2 2 0 011.414.586l5.83 5.828A2 2 0 0126 10.83V26a3 3 0 01-3 3H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),n.createElement("path",{fill:o.y,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),n.createElement("path",{fill:o.y,d:"M18.75 17h-5.5a.25.25 0 00-.25.25v4.25a1.5 1.5 0 11-1.5-1.5.9.9 0 01.5.1v-6.35a.75.75 0 01.75-.75h6.5a.75.75 0 01.75.75v7.75a1.5 1.5 0 11-1.5-1.5.9.9 0 01.5.1v-2.85a.25.25 0 00-.25-.25zm-5.5-1h5.5a.25.25 0 00.25-.25V14.5a.5.5 0 00-.5-.5h-5a.5.5 0 00-.5.5v1.25c0 .138.112.25.25.25z"})))},IconFileBoxNote:function(e){return n.createElement(i.a,s({width:32,height:32,viewBox:"0 0 32 32"},e),n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("path",{fill:o.h,fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),n.createElement("path",{fill:o.y,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),n.createElement("path",{fill:"#9725DD",d:"M18.526 14.146l-.92 1.375h-6.92a.685.685 0 01-.686-.688c0-.38.31-.687.687-.687h7.839z"}),n.createElement("path",{fill:o.b,d:"M16.379 17.583l-.92 1.375h-4.762a.69.69 0 01-.697-.687c0-.38.31-.688.697-.688h5.682z"}),n.createElement("path",{fill:"#00C8C0",d:"M14.231 21.02l-.424.637a2.166 2.166 0 00-.229.493l-.031.118-.028.127H10.69a.687.687 0 110-1.374h3.541z"}),n.createElement("path",{fill:o.x,d:"M14.841 21.332l4.64-6.72.053.092c.074.114.235.322.538.541.456.329.797.374.797.374l-4.64 6.72a2.558 2.558 0 01-.461.483l-1.373 1.037c-.146.11-.234.054-.193-.14l.372-1.764c.04-.187.156-.46.267-.623zm6.648-8.163c.373.272.407.704.407.704a3.57 3.57 0 01-.314.607l-.28.417-.09-.016a1.714 1.714 0 01-.632-.282c-.35-.255-.628-.687-.628-.687l.28-.418c.106-.158.284-.397.448-.51l.074-.009c.14-.012.456-.01.735.194z"})))},IconFileCode:function(e){return n.createElement(i.a,l({width:32,height:32,viewBox:"0 0 32 32"},e),n.createElement("g",{fill:"none"},n.createElement("path",{fill:"#E33D55",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),n.createElement("path",{fill:o.y,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),n.createElement("path",{fill:o.y,d:"M17.553 13.776a.5.5 0 01.894.448l-4 8a.5.5 0 01-.894-.448zm-4.83 1.808a.5.5 0 11.554.832L10.901 18l2.376 1.584a.5.5 0 11-.554.832l-3-2a.5.5 0 010-.832zm6.554 0l3 2a.5.5 0 010 .832l-3 2a.5.5 0 11-.554-.832L21.099 18l-2.376-1.584a.5.5 0 01.554-.832z"})))},IconFileDefault:r(267).a,IconFileDocument:B,IconFileDwg:c,IconFileExcelSpreadsheet:d,IconFileGoogleDocs:h,IconFileGoogleSheets:m,IconFileGoogleSlides:v,IconFileIllustrator:w,IconFileImage:x,IconFileIndesign:O,IconFileKeynote:C,IconFileNumbers:_,IconFilePages:A,IconFilePDF:I,IconFilePhotoshop:M,IconFilePowerpointPresentation:F,IconFilePresentation:L,IconFileSpreadsheet:H,IconFileText:B,IconFileThreeD:W,IconFileVector:G,IconFileVideo:K,IconFileWordDocument:Q,IconFileZip:J},ee=function(e){return e.reduce((function(e,t){return e[t]=t,e}),{})},te={IconFileAudio:ee(["aac","aif","aifc","aiff","amr","au","flac","m3u","m4a","mid","mp3","ra","wav","wma","wpl"]),IconFileBoxNote:ee(["boxnote"]),IconFileCode:ee(["as","as3","asm","aspx","c","cpp","bat","c","cc","cmake","cs","css","cxx","db","diff","erb","groovy","h","haml","hh","htm","html","java","js","less","m","make","md","ml","mm","php","pl","plist","properties","py","rb","sass","scala","script","scm","sml","sql","sh","wabba","yaml"]),IconFileDocument:ee(["csv","dot","dotx","msg","odt","rtf","tsv","wpd","xhtml","xml","xsd","xsl"]),IconFileDwg:ee(["dwg","dwgzip"]),IconFileExcelSpreadsheet:ee(["xls","xlsx","xlsm","xlsb"]),IconFileGoogleDocs:ee(["gdoc"]),IconFileGoogleSheets:ee(["gsheet"]),IconFileGoogleSlides:ee(["gslide","gslides"]),IconFileVector:ee(["eps"]),IconFileIllustrator:ee(["ai"]),IconFileIndesign:ee(["indd"]),IconFileKeynote:ee(["key"]),IconFileNumbers:ee(["numbers"]),IconFilePages:ee(["pages"]),IconFileImage:ee(["bmp","gif","gdraw","jpeg","jpg","png","ps","svs","svg","tif","tiff","heic","heif"]),IconFilePDF:ee(["pdf"]),IconFilePresentation:ee(["odp","otp","pot","potx"]),IconFilePowerpointPresentation:ee(["ppt","pptx","pptm"]),IconFilePhotoshop:ee(["psd"]),IconFileSpreadsheet:ee(["ods","xlt","xltx"]),IconFileText:ee(["txt","vi","vim","webdoc"]),IconFileThreeD:ee(["3ds","dae","fbx","obj","ply","stl"]),IconFileVideo:ee(["3g2","3gp","avi","flv","m2v","m2ts","m4v","mkv","mov","mp4","mpeg","mpg","ogg","mts","qt","wmv"]),IconFileWordDocument:ee(["docx","doc","docm"]),IconFileZip:ee(["rar","tgz","zip"])};t.a=function(e){var t=e.dimension,r=void 0===t?32:t,o=e.extension,i=void 0===o?"":o,a=e.title,s=Z[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=Object.keys(te).filter((function(t){return!!te[t][e.toLowerCase()]}))[0];return t||"IconFileDefault"}(i)];return n.createElement(s,{height:r,title:a,width:r})}},function(e,t,r){"use strict";var n=r(0),o=r(107),i=r(81),a=r(9),s=function(e){var t=e.className,r=void 0===t?"":t,o=e.color,i=void 0===o?"#979797":o,s=e.height,l=void 0===s?64:s,u=e.title,c=e.width,f=void 0===c?64:c;return n.createElement(a.a,{className:"icon-sad-cloud ".concat(r),height:l,title:u,viewBox:"0 0 1224 792",width:f},n.createElement("g",{transform:"translate(1 1)"},n.createElement("path",{className:"fill-color",d:"M273.7 788.9c-142 0-257.6-116.5-257.6-259.7 0-140.3 110.9-255 249-259.6 4.6-70.2 33.9-135.4 83.6-185.3C402.8 29.7 475-.3 551.9-.3c56.8 0 110.7 11.3 156 32.7 43.7 20.7 78.4 50.5 101.3 86.9 7.8-1.9 16.2-2.9 25.1-2.9 43.4 0 97.3 23.8 128.2 56.6l.2.2c23.9 26 41.2 59.1 48.9 93.1 4.1 18.3 5 35.1 2.8 49.2 15.8 3.5 32.3 9.8 48.9 18.7 25.1 13.5 49.9 32.7 71.7 55.4 48.9 51.2 77 113.7 77 171.7 0 61.1-23.4 118.4-66 161.3-42.5 42.8-99.1 66.4-159.5 66.4l-712.8-.1zm0-479.5c-120 0-217.6 98.6-217.6 219.7 0 121.2 97.6 219.7 217.6 219.7h712.8c49.6 0 96.2-19.4 131.1-54.6 35.1-35.3 54.4-82.6 54.4-133.1 0-47.7-24-100.2-65.9-144-37.8-39.5-84.7-65-119.6-65-7.9 0-15.1-4.6-18.3-11.9-3.2-7.2-1.9-15.6 3.4-21.5 2.8-3.1 6.8-18 1-43.8-6.1-26.9-20.4-54.1-39.3-74.8-23.2-24.6-66.7-43.9-99-43.9-9.9 0-18.3 1.7-24.8 5.2-4.7 2.5-10.3 3-15.3 1.4-5.1-1.6-9.3-5.2-11.8-9.9-18.2-35.5-49.9-64.7-91.6-84.4-40-18.9-88-28.9-138.9-28.9-66.2 0-128.3 25.8-175 72.8-46.8 47.1-72.6 109.9-72.6 176.9 0 11-9 20-20 20h-10.6z",fill:i}),n.createElement("path",{className:"fill-color",d:"M442.7 585.5c-2.9 0-5.9-.6-8.7-2-10-4.8-14.1-16.7-9.3-26.7 15.4-32 39.7-59.1 70.3-78.1 31-19.3 66.9-29.5 104-29.5 75.5 0 141.4 40 176.2 107.1 5.1 9.8 1.3 21.9-8.5 27-9.8 5.1-21.9 1.3-27-8.5-27.8-53.6-80.3-85.5-140.6-85.5-29.6 0-58.2 8.1-82.8 23.5-24.1 15.1-43.3 36.3-55.4 61.5-3.6 7-10.7 11.2-18.2 11.2z",fill:i}),n.createElement("circle",{className:"fill-color",cx:"496.3",cy:"351.5",fill:i,r:"32.1"}),n.createElement("circle",{className:"fill-color",cx:"688.9",cy:"351.5",fill:i,r:"32.1"})))},l=(r(538),Object(o.defineMessages)({errorMaskIconSadCloudText:{id:"boxui.errorMask.iconSadCloudText",defaultMessage:"Sad Box Cloud"}}));t.a=function(e){var t=e.errorHeader,r=e.errorSubHeader;return n.createElement("div",{className:"error-mask"},n.createElement(s,{className:"error-mask-sad-cloud",height:50,title:n.createElement(i.a,l.errorMaskIconSadCloudText)}),n.createElement("h4",null,t),n.createElement("h5",null,r))}},,,function(e,t,r){"use strict";var n=r(0),o=r(48),i=r(11);var a=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function s(e,t){var r=e.locale,n=e.formats,o=e.onError,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=s.format,u=l&&Object(i.g)(n,"number",l,o)||{};return t(r,Object(i.f)(s,a,u))}function l(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{return s(e,t,n).format(r)}catch(t){e.onError(Object(i.b)("Error formatting number.",t))}return String(r)}function u(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{return s(e,t,n).formatToParts(r)}catch(t){e.onError(Object(i.b)("Error formatting number.",t))}return[]}var c=["numeric","style"];function f(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};n||(n="second"),Intl.RelativeTimeFormat||e.onError(Object(i.b)('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n'));try{return function(e,t){var r=e.locale,n=e.formats,o=e.onError,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=a.format,l=!!s&&Object(i.g)(n,"relative",s,o)||{};return t(r,Object(i.f)(a,c,l))}(e,t,o).format(r,n)}catch(t){e.onError(Object(i.b)("Error formatting relative time.",t))}return String(r)}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var p=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function h(e,t,r){var n=e.locale,o=e.formats,a=e.onError,s=e.timeZone,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=l.format,c=d(d({},s&&{timeZone:s}),u&&Object(i.g)(o,t,u,a)),f=Object(i.f)(l,p,c);return"time"!==t||f.hour||f.minute||f.second||(f=d(d({},f),{hour:"numeric",minute:"numeric"})),r(n,f)}function b(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof r?new Date(r||0):r;try{return h(e,"date",t,n).format(o)}catch(t){e.onError(Object(i.b)("Error formatting date.",t))}return String(o)}function m(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof r?new Date(r||0):r;try{return h(e,"time",t,n).format(o)}catch(t){e.onError(Object(i.b)("Error formatting time.",t))}return String(o)}function y(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof r?new Date(r||0):r;try{return h(e,"date",t,n).formatToParts(o)}catch(t){e.onError(Object(i.b)("Error formatting date.",t))}return[]}function v(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof r?new Date(r||0):r;try{return h(e,"time",t,n).formatToParts(o)}catch(t){e.onError(Object(i.b)("Error formatting time.",t))}return[]}var g=["localeMatcher","type"];function w(e,t,r){var n=e.locale,o=e.onError,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Intl.PluralRules||o(Object(i.b)('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n'));var s=Object(i.f)(a,g);try{return t(n,s).select(r)}catch(e){o(Object(i.b)("Error formatting plural.",e))}return"other"}var k=r(102),x=r(78),E=r.n(x);function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var S=["localeMatcher","type","style"],C=Date.now();function P(e,t,r){var n=e.locale,o=e.onError,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Intl.ListFormat||o(Object(i.b)('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n'));var s=Object(i.f)(a,S);try{var l={},u=r.map((function(e,t){if("object"===O(e)){var r=function(e){return"".concat(C,"_").concat(e,"_").concat(C)}(t);return l[r]=e,r}return String(e)}));return Object.keys(l).length?t(n,s).formatToParts(u).reduce((function(e,t){var r=t.value;return l[r]?e.push(l[r]):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e}),[]):t(n,s).format(u)}catch(e){o(Object(i.b)("Error formatting list.",e))}return r}function _(e){return(_="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 T(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function A(e,t){return!t||"object"!==_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function D(){return(D=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,"a",(function(){return N}));var M=E.a||x;function R(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError}}function F(e,t){var r=Object(i.c)(t),n=D(D({},i.a),e);if(!n.locale||!function(e,t){if("undefined"==typeof Intl)return!1;if(!e)throw new Error("locales must be supplied.");Array.isArray(e)||(e=[e]);var r=t||[Intl.DateTimeFormat,Intl.NumberFormat,Intl.PluralRules];return!(0===(r=r.filter(Boolean)).length||t&&r.length!==t.length)&&r.every((function(t){return t.supportedLocalesOf(e).length===e.length}))}(n.locale)){var o=n.locale,a=n.defaultLocale,s=n.onError;"function"==typeof s&&s(Object(i.b)('Missing locale data for locale: "'.concat(o,'". ')+'Using default locale: "'.concat(a,'" as fallback.'))),n.locale=n.defaultLocale||"en"}return D(D({},n),{formatters:r,formatNumber:l.bind(null,n,r.getNumberFormat),formatNumberToParts:u.bind(null,n,r.getNumberFormat),formatRelativeTime:f.bind(null,n,r.getRelativeTimeFormat),formatDate:b.bind(null,n,r.getDateTimeFormat),formatDateToParts:y.bind(null,n,r.getDateTimeFormat),formatTime:m.bind(null,n,r.getDateTimeFormat),formatTimeToParts:v.bind(null,n,r.getDateTimeFormat),formatPlural:w.bind(null,n,r.getPluralRules),formatMessage:k.b.bind(null,n,r),formatHTMLMessage:k.a.bind(null,n,r),formatList:P.bind(null,n,r.getListFormat)})}var N=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=A(this,j(t).apply(this,arguments))).cache=Object(i.d)(),e.state={cache:e.cache,intl:F(R(e.props),e.cache),prevConfig:R(e.props)},e}var r,a,s;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}}),t&&I(e,t)}(t,e),r=t,s=[{key:"getDerivedStateFromProps",value:function(e,t){var r=t.prevConfig,n=t.cache,o=R(e);return M(r,o)?null:{intl:F(o,n),prevConfig:o}}}],(a=[{key:"render",value:function(){return Object(i.h)(this.state.intl),n.createElement(o.b,{value:this.state.intl},this.props.children)}}])&&T(r.prototype,a),s&&T(r,s),t}(n.PureComponent);N.displayName="IntlProvider",N.defaultProps=i.a},,function(e,t,r){"use strict";var n=r(0),o=r(81),i=r(179),a=r(4);r(640);t.a=function(){return n.createElement("section",{className:"be-default-error"},n.createElement(i.a,{errorHeader:n.createElement(o.a,a.a.defaultErrorMaskHeaderMessage),errorSubHeader:n.createElement(o.a,a.a.defaultErrorMaskSubHeaderMessage)}))}},,function(e,t,r){var n=r(356),o=r(363),i=r(365),a=r(366),s=r(367);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,r){var n=r(373),o=r(163),i=r(164),a=i&&i.isTypedArray,s=a?o(a):n;e.exports=s},function(e,t,r){var n=r(99),o=r(95);e.exports=function(e,t){for(var r=0,i=(t=n(t,e)).length;null!=e&&r<i;)e=e[o(t[r++])];return r&&r==i?e:void 0}},function(e,t){e.exports=function(e){return e}},function(e,t,r){"use strict";(function(e){function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var n,o=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}var o,i,a;return o=t,a=[{key:"getUserAgent",value:function(){return e.navigator.userAgent}},{key:"isMobile",value:function(){return/iphone|ipad|ipod|android|blackberry|bb10|mini|windows\sce|palm/i.test(t.getUserAgent())}},{key:"isIE",value:function(){return/Trident/i.test(t.getUserAgent())}},{key:"canPlayDash",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(void 0===n||t){var r=e.MediaSource;n=!!r&&"function"==typeof r.isTypeSupported&&r.isTypeSupported('video/mp4; codecs="avc1.64001E"')}return n}},{key:"canWriteToClipboard",value:function(){return!(!e.navigator.clipboard||!e.navigator.clipboard.writeText)}},{key:"canReadFromClipboard",value:function(){return!(!e.navigator.clipboard||!e.navigator.clipboard.readText)}}],(i=null)&&r(o.prototype,i),a&&r(o,a),t}();t.a=o}).call(this,r(36))},,,,function(e,t){e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},function(e,t){var r,n,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l,u=[],c=!1,f=-1;function d(){c&&l&&(c=!1,l.length?u=l.concat(u):f=-1,u.length&&p())}function p(){if(!c){var e=s(d);c=!0;for(var t=u.length;t;){for(l=u,u=[];++f<t;)l&&l[f].run();f=-1,t=u.length}l=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function b(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new h(e,t)),1!==u.length||c||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=b,o.addListener=b,o.once=b,o.off=b,o.removeListener=b,o.removeAllListeners=b,o.emit=b,o.prependListener=b,o.prependOnceListener=b,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},,,,,function(e,t,r){"use strict";var n=r(65),o=r(3),i=r.n(o),a=r(144),s=r.n(a),l=r(23),u=r(67),c=r(245),f=r.n(c);function d(){return window.crypto||window.msCrypto}function p(e,t){var r=d();return r!==window.msCrypto?r.subtle.digest(e,t):new Promise((function(n,o){if("SHA-1"===e)try{var i=f.a.arrayBuffer(t);n(i)}catch(e){o(e)}else{var a=r.subtle.digest({name:e},t);a.oncomplete=function(e){n(e.target.result)},a.onerror=o}}))}function h(e,t,r){"use asm";var n=new e.Int32Array(r);function o(e,t){e=e|0;t=t|0;var r=0,o=0,i=0,a=0,s=0,l=0,u=0,c=0,f=0,d=0,p=0,h=0,b=0,m=0;i=n[t+320>>2]|0;s=n[t+324>>2]|0;u=n[t+328>>2]|0;f=n[t+332>>2]|0;p=n[t+336>>2]|0;for(r=0;(r|0)<(e|0);r=r+64|0){a=i;l=s;c=u;d=f;h=p;for(o=0;(o|0)<64;o=o+4|0){m=n[r+o>>2]|0;b=((i<<5|i>>>27)+(s&u|~s&f)|0)+((m+p|0)+1518500249|0)|0;p=f;f=u;u=s<<30|s>>>2;s=i;i=b;n[e+o>>2]=m}for(o=e+64|0;(o|0)<(e+80|0);o=o+4|0){m=(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])<<1|(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])>>>31;b=((i<<5|i>>>27)+(s&u|~s&f)|0)+((m+p|0)+1518500249|0)|0;p=f;f=u;u=s<<30|s>>>2;s=i;i=b;n[o>>2]=m}for(o=e+80|0;(o|0)<(e+160|0);o=o+4|0){m=(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])<<1|(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])>>>31;b=((i<<5|i>>>27)+(s^u^f)|0)+((m+p|0)+1859775393|0)|0;p=f;f=u;u=s<<30|s>>>2;s=i;i=b;n[o>>2]=m}for(o=e+160|0;(o|0)<(e+240|0);o=o+4|0){m=(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])<<1|(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])>>>31;b=((i<<5|i>>>27)+(s&u|s&f|u&f)|0)+((m+p|0)-1894007588|0)|0;p=f;f=u;u=s<<30|s>>>2;s=i;i=b;n[o>>2]=m}for(o=e+240|0;(o|0)<(e+320|0);o=o+4|0){m=(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])<<1|(n[o-12>>2]^n[o-32>>2]^n[o-56>>2]^n[o-64>>2])>>>31;b=((i<<5|i>>>27)+(s^u^f)|0)+((m+p|0)-899497514|0)|0;p=f;f=u;u=s<<30|s>>>2;s=i;i=b;n[o>>2]=m}i=i+a|0;s=s+l|0;u=u+c|0;f=f+d|0;p=p+h|0}n[t+320>>2]=i;n[t+324>>2]=s;n[t+328>>2]=u;n[t+332>>2]=f;n[t+336>>2]=p}return{hash:o}}var b=function(){var e=new Blob(["const RushaCore = ".concat(h.toString()),";\n",'function Rusha(e){for(var r=function(e){if("string"==typeof e)return"string";if(e instanceof Array)return"array";if("undefined"!=typeof global&&global.Buffer&&global.Buffer.isBuffer(e))return"buffer";if(e instanceof ArrayBuffer)return"arraybuffer";if(e.buffer instanceof ArrayBuffer)return"view";if(e instanceof Blob)return"blob";throw new Error("Unsupported data type.")},n={fill:0},t=function(e){for(e+=9;e%64>0;e+=1);return e},a=function(e,r,n,t,a){var f,s=this,i=a%4,h=(t+i)%4,u=t-h;switch(i){case 0:e[a]=s[n+3];case 1:e[a+1-(i<<1)|0]=s[n+2];case 2:e[a+2-(i<<1)|0]=s[n+1];case 3:e[a+3-(i<<1)|0]=s[n]}if(!(t<h+i)){for(f=4-i;f<u;f=f+4|0)r[a+f>>2|0]=s[n+f]<<24|s[n+f+1]<<16|s[n+f+2]<<8|s[n+f+3];switch(h){case 3:e[a+u+1|0]=s[n+u+2];case 2:e[a+u+2|0]=s[n+u+1];case 1:e[a+u+3|0]=s[n+u]}}},f=function(e){switch(r(e)){case"string":return function(e,r,n,t,a){var f,s=this,i=a%4,h=(t+i)%4,u=t-h;switch(i){case 0:e[a]=s.charCodeAt(n+3);case 1:e[a+1-(i<<1)|0]=s.charCodeAt(n+2);case 2:e[a+2-(i<<1)|0]=s.charCodeAt(n+1);case 3:e[a+3-(i<<1)|0]=s.charCodeAt(n)}if(!(t<h+i)){for(f=4-i;f<u;f=f+4|0)r[a+f>>2]=s.charCodeAt(n+f)<<24|s.charCodeAt(n+f+1)<<16|s.charCodeAt(n+f+2)<<8|s.charCodeAt(n+f+3);switch(h){case 3:e[a+u+1|0]=s.charCodeAt(n+u+2);case 2:e[a+u+2|0]=s.charCodeAt(n+u+1);case 1:e[a+u+3|0]=s.charCodeAt(n+u)}}}.bind(e);case"array":case"buffer":return a.bind(e);case"arraybuffer":return a.bind(new Uint8Array(e));case"view":return a.bind(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));case"blob":return function(e,r,n,t,a){var f,s=a%4,i=(t+s)%4,h=t-i,u=new Uint8Array(reader.readAsArrayBuffer(this.slice(n,n+t)));switch(s){case 0:e[a]=u[3];case 1:e[a+1-(s<<1)|0]=u[2];case 2:e[a+2-(s<<1)|0]=u[1];case 3:e[a+3-(s<<1)|0]=u[0]}if(!(t<i+s)){for(f=4-s;f<h;f=f+4|0)r[a+f>>2|0]=u[f]<<24|u[f+1]<<16|u[f+2]<<8|u[f+3];switch(i){case 3:e[a+h+1|0]=u[h+2];case 2:e[a+h+2|0]=u[h+1];case 1:e[a+h+3|0]=u[h]}}}.bind(e)}},s=new Array(256),i=0;i<256;i++)s[i]=(i<16?"0":"")+i.toString(16);var h=function(e){for(var r=new Uint8Array(e),n=new Array(e.byteLength),t=0;t<n.length;t++)n[t]=s[r[t]];return n.join("")};!function(e){if(e%64>0)throw new Error("Chunk size must be a multiple of 128 bit");n.offset=0,n.maxChunkLen=e,n.padMaxChunkLen=t(e),n.heap=new ArrayBuffer(function(e){var r;if(e<=65536)return 65536;if(e<16777216)for(r=1;r<e;r<<=1);else for(r=16777216;r<e;r+=16777216);return r}(n.padMaxChunkLen+320+20)),n.h32=new Int32Array(n.heap),n.h8=new Int8Array(n.heap),n.core=new RushaCore({Int32Array:Int32Array,DataView:DataView},{},n.heap),n.buffer=null}(e||65536);var u=function(e,r){n.offset=0;var t=new Int32Array(e,r+320,5);t[0]=1732584193,t[1]=-271733879,t[2]=-1732584194,t[3]=271733878,t[4]=-1009589776},c=function(e,r){var a,f,s,i=t(e),h=new Int32Array(n.heap,0,i>>2);return function(e,r){var n=new Uint8Array(e.buffer),t=r%4,a=r-t;switch(t){case 0:n[a+3]=0;case 1:n[a+2]=0;case 2:n[a+1]=0;case 3:n[a+0]=0}for(var f=1+(r>>2);f<e.length;f++)e[f]=0}(h,e),s=r,(a=h)[(f=e)>>2]|=128<<24-(f%4<<3),a[14+(2+(f>>2)&-16)]=s/(1<<29)|0,a[15+(2+(f>>2)&-16)]=s<<3,i},o=function(e,r,t,a){f(e)(n.h8,n.h32,r,t,a||0)},d=function(e,r,t,a,f){var s=t;o(e,r,t),f&&(s=c(t,a)),n.core.hash(s,n.padMaxChunkLen)},y=function(e,r){var n=new Int32Array(e,r+320,5),t=new Int32Array(5),a=new DataView(t.buffer);return a.setInt32(0,n[0],!1),a.setInt32(4,n[1],!1),a.setInt32(8,n[2],!1),a.setInt32(12,n[3],!1),a.setInt32(16,n[4],!1),t},w=this.rawDigest=function(e){var r=e.byteLength||e.length||e.size||0;u(n.heap,n.padMaxChunkLen);var t=0,a=n.maxChunkLen;for(t=0;r>t+a;t+=a)d(e,t,a,r,!1);return d(e,t,r-t,r,!0),y(n.heap,n.padMaxChunkLen)};this.digest=this.digestFromString=this.digestFromBuffer=this.digestFromArrayBuffer=function(e){return h(w(e).buffer)},this.resetState=function(){return u(n.heap,n.padMaxChunkLen),this},this.append=function(e){var r,t=0,a=e.byteLength||e.length||e.size||0,f=n.offset%n.maxChunkLen;for(n.offset+=a;t<a;)r=Math.min(a-t,n.maxChunkLen-f),o(e,t,r,f),t+=r,(f+=r)===n.maxChunkLen&&(n.core.hash(n.maxChunkLen,n.padMaxChunkLen),f=0);return this},this.getState=function(){var e;if(n.offset%n.maxChunkLen)e=n.heap.slice(0);else{var r=new Int32Array(n.heap,n.padMaxChunkLen+320,5);e=r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}return{offset:n.offset,heap:e}},this.setState=function(e){(n.offset=e.offset,20===e.heap.byteLength)?new Int32Array(n.heap,n.padMaxChunkLen+320,5).set(new Int32Array(e.heap)):n.h32.set(new Int32Array(e.heap));return this};var p=this.rawEnd=function(){var e=n.offset,r=e%n.maxChunkLen,t=c(r,e);n.core.hash(t,n.padMaxChunkLen);var a=y(n.heap,n.padMaxChunkLen);return u(n.heap,n.padMaxChunkLen),a};this.end=function(){return h(p().buffer)}}',";\n","var setupWorker = ",function(){var e=new Rusha;e.resetState();var t=0;self.onmessage=function(r){var n=r.data,o=n.part,i=n.fileSize,a=n.partContents,s=Date.now();try{if(o.offset!==t)throw new Error("Out of order parts given to worker");if(e.append(a),self.postMessage({type:"partDone",part:n.part,duration:Date.now()-s,partContents:a},[a]),t+=o.size,o.offset+o.size===i){var l=e.end();self.postMessage({type:"done",sha1:l})}}catch(e){var u={type:"error",name:e.name,message:e.message,part:o};self.postMessage(u)}}}.toString(),";\n","setupWorker();"],{type:"text/javascript"}),t=(window.URL||window.webkitURL).createObjectURL(e),r=new Worker(t);return r.oldTerminate=r.terminate,r.terminate=function(){(window.URL||window.webkitURL).revokeObjectURL(t),r.oldTerminate()},r},m=r(1),y=r(7),v=r.n(y),g=r(246),w=r.n(g);function k(e,t){if(!t)return e;var r=new w.a(e);return Object.keys(t).forEach((function(e){var n=t[e];n&&(r.hasQueryParam(e)?r.replaceQueryParam(e,n):r.addQueryParam(e,n))})),r.toString()}var x=r(14);function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function S(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var A=5,j=10,I=function(e){function t(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r=function(e,t){return!t||"object"!==E(t)&&"function"!=typeof t?P(e):t}(this,(e=C(t)).call.apply(e,[this].concat(o))),T(P(r),"retryCount",0),T(P(r),"reachabilityRetryCount",0),T(P(r),"isUploadFallbackLogicEnabled",!1),T(P(r),"makePreflightRequest",(function(){if(!r.isDestroyed()){var e="".concat(r.getBaseApiUrl(),"/files/content");if(r.fileId&&(e=e.replace("content","".concat(r.fileId,"/content"))),r.isUploadFallbackLogicEnabled){var t=r.uploadsReachability.getUnreachableHostsUrls();0!==t.length&&(e+="?unreachable_hosts=".concat(t.join(",")))}var n=r.file,o=n.size,i=n.name,a={name:r.fileName||i,parent:{id:r.folderId},description:r.fileDescription,size:o};r.xhr.options({url:e,data:a,successHandler:function(e){r.isUploadFallbackLogicEnabled?r.preflightSuccessReachabilityHandler(e):r.preflightSuccessHandler(e)},errorHandler:r.preflightErrorHandler})}})),T(P(r),"preflightSuccessReachabilityHandler",function(){var e,t=(e=regeneratorRuntime.mark((function e(t){var n,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.data,!r.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:if(o=n.upload_url){e.next=7;break}return r.preflightSuccessHandler({data:n}),e.abrupt("return");case 7:if((i=r.getUploadHostFromUrl(o))!=="".concat(m.O,"/")){e.next=11;break}return r.preflightSuccessHandler({data:n}),e.abrupt("return");case 11:return e.next=13,r.uploadsReachability.isReachable(i);case 13:e.sent?r.preflightSuccessHandler({data:n}):r.reachabilityRetryCount>=j?r.preflightSuccessHandler({data:{}}):(r.reachabilityRetryCount+=1,r.makePreflightRequest());case 15:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){O(i,n,o,a,s,"next",e)}function s(e){O(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()),T(P(r),"preflightErrorHandler",(function(e){if(!r.isDestroyed()){r.fileName=r.file?r.file.name:"";var t=e,n=e.response;if(n&&n.data&&(t=n.data),r.retryCount>=A)r.errorCallback(t);else if(t&&409===t.status){if(r.overwrite){var o=t.context_info.conflicts.id;!r.fileId&&o&&(r.fileId=o)}else if(r.conflictCallback)r.fileName=r.conflictCallback(r.fileName);else{var i=r.fileName.substr(r.fileName.lastIndexOf("."))||"";r.fileName="".concat(r.fileName.substr(0,r.fileName.lastIndexOf(".")),"-").concat(Date.now()).concat(i)}r.makePreflightRequest(),r.retryCount+=1}else if(!t||429!==t.status&&"too_many_requests"!==t.code)t&&(t.status||"Failed to fetch"===t.message)&&"function"==typeof r.errorCallback?r.errorCallback(t):(r.retryTimeout=setTimeout(r.makePreflightRequest,Math.pow(2,r.retryCount)*m.de),r.retryCount+=1);else{var a=m.W;if(t.headers){var s=parseInt(t.headers["retry-after"]||t.headers.get("Retry-After"),10);Number.isNaN(s)||(a=s*m.de)}r.retryTimeout=setTimeout(r.makePreflightRequest,a),r.retryCount+=1}}})),r}var r,n,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}}),t&&_(e,t)}(t,e),r=t,(n=[{key:"readFile",value:function(e,t){return new Promise((function(r,n){e.readAsArrayBuffer(t),e.onload=function(){r({buffer:e.result,readCompleteTimestamp:Date.now()})},e.onerror=n}))}},{key:"getUploadHostFromUrl",value:function(e){var t=e.split("/");return"".concat(t[0],"//").concat(t[2],"/")}}])&&S(r.prototype,n),o&&S(r,o),t}(x.a);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 M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function F(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function L(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var U={digestReadahead:5,initialRetryDelayMs:5e3,maxRetryDelayMs:6e4,parallelism:4,requestTimeoutMs:12e4,retries:5},H=function(e){function t(e,r,n){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=function(e,t){return!t||"object"!==D(t)&&"function"!=typeof t?F(e):t}(this,R(t).call(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach((function(t){L(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e,{shouldRetry:!1}))),L(F(o),"logEvent",(function(e,t){var r={event_type:e};return t&&(r.event_info=t),o.xhr.post({url:o.sessionEndpoints.logEvent,data:r})})),o.config=n||U,o.sessionEndpoints=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}}),t&&N(e,t)}(t,e),t}(I);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 B(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function V(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){B(i,n,o,a,s,"next",e)}function s(e){B(i,n,o,a,s,"throw",e)}a(void 0)}))}}function W(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function q(e){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function G(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function X(e,t){return(X=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function K(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $=0,Q=2,Y=3,J=function(e){function t(e,r,n,o,a,s,c,f,d,p,h,b){var y;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),y=function(e,t){return!t||"object"!==z(t)&&"function"!=typeof t?G(e):t}(this,q(t).call(this,e,c,f)),K(G(y),"toJSON",(function(){return JSON.stringify({index:y.index,offset:y.offset,partSize:y.partSize,state:y.state,uploadedBytes:y.uploadedBytes,numUploadRetriesPerformed:y.numUploadRetriesPerformed,numDigestRetriesPerformed:y.numDigestRetriesPerformed,sha256:y.sha256,timing:y.timing})})),K(G(y),"getPart",(function(){return y.data.part||{}})),K(G(y),"upload",(function(){if(!y.isDestroyedOrPaused()){if(!y.sha256)throw new Error("Part SHA-256 unavailable");if(!y.blob)throw new Error("Part blob unavailable");var e={documentHidden:document.hidden,digest_retries:y.numDigestRetriesPerformed,timing:y.timing,parts_uploading:y.getNumPartsUploading()},t={"Content-Type":"application/octet-stream",Digest:"sha-256=".concat(y.sha256),"Content-Range":"bytes ".concat(y.offset,"-").concat(y.rangeEnd,"/").concat(y.fileSize),"X-Box-Client-Event-Info":JSON.stringify(e)};y.state=Q,y.startTimestamp=Date.now(),y.xhr.uploadFile({url:y.sessionEndpoints.uploadPart,data:y.blob,headers:t,method:m.Hd,successHandler:y.uploadSuccessHandler,errorHandler:y.uploadErrorHandler,progressHandler:y.uploadProgressHandler,withIdleTimeout:!0,idleTimeoutDuration:y.config.requestTimeoutMs})}})),K(G(y),"uploadSuccessHandler",(function(e){var t=e.data;y.isDestroyedOrPaused()||(y.state=Y,y.consoleLog("Upload completed: ".concat(y.toJSON(),".")),y.data=t,y.blob=null,y.timing.uploadTime=Date.now()-y.startTimestamp,y.onSuccess(G(y)),y.uploadedBytes=y.partSize)})),K(G(y),"uploadProgressHandler",(function(e){if(!y.isDestroyedOrPaused()){var t=parseInt(e.loaded,10),r=y.uploadedBytes;y.uploadedBytes=t,y.onProgress(r,t)}})),K(G(y),"uploadErrorHandler",function(){var e=V(regeneratorRuntime.mark((function e(t){var r,n,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!y.isDestroyedOrPaused()){e.next=2;break}return e.abrupt("return");case 2:if(r=v()(y.xhr,"xhr.readyState",null),n=v()(y.xhr,"xhr.statusText",""),y.consoleLog("Upload failure ".concat(t.message," for part ").concat(y.toJSON(),". XHR state: ").concat(r,".")),o={message:t.message,part:{uploadedBytes:y.uploadedBytes,id:y.id,index:y.index,offset:y.offset},xhr_ready_state:r,xhr_status_text:n},i=JSON.stringify(o),y.sessionEndpoints.logEvent?Object(u.a)((function(e,t){y.logEvent("part_failure",i).then(e).catch(t)}),y.config.retries,y.config.initialRetryDelayMs).catch((function(e){return y.consoleLog("Failure in logEvent: ".concat(e.message))})):y.consoleLog("logEvent endpoint not found"),!(y.numUploadRetriesPerformed>=y.config.retries)){e.next=11;break}return y.onError(t,i),e.abrupt("return");case 11:a=Object(l.a)(y.config.initialRetryDelayMs,y.config.maxRetryDelayMs,y.numUploadRetriesPerformed),y.numUploadRetriesPerformed+=1,y.consoleLog("Retrying uploading part ".concat(y.toJSON()," in ").concat(a," ms")),y.retryTimeout=setTimeout(y.retryUpload,a);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),K(G(y),"retryUpload",V(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!y.isDestroyedOrPaused()){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,y.listParts(y.index,1);case 5:if(!(t=e.sent)||1!==t.length||t[0].offset!==y.offset||!t[0].part_id){e.next=11;break}return y.consoleLog("Part ".concat(y.toJSON()," is available on server. Not re-uploading.")),y.id=t[0].part_id,y.uploadSuccessHandler({data:{part:t[0]}}),e.abrupt("return");case 11:throw y.consoleLog("Part ".concat(y.toJSON()," is not available on server. Re-uploading.")),new Error("Part not found on the server");case 15:e.prev=15,e.t0=e.catch(2),(r=e.t0.response)&&r.status&&y.consoleLog("Error ".concat(r.status," while listing part ").concat(y.toJSON(),". Re-uploading.")),y.numUploadRetriesPerformed+=1,y.upload();case 21:case"end":return e.stop()}}),e,null,[[2,15]])})))),K(G(y),"listParts",function(){var e=V(regeneratorRuntime.mark((function e(t,r){var n,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={offset:t,limit:r},o=k(y.sessionEndpoints.listParts,n),e.next=4,y.xhr.get({url:o});case 4:return i=e.sent,e.abrupt("return",i.data.entries);case 6:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),y.index=r,y.numDigestRetriesPerformed=0,y.numUploadRetriesPerformed=0,y.offset=n,y.partSize=o,y.fileSize=a,y.state=$,y.timing={},y.uploadedBytes=0,y.data={},y.config=f,y.rangeEnd=n+o-1,y.rangeEnd>a-1&&(y.rangeEnd=a-1),y.isPaused=!1,y.onSuccess=p||i.a,y.onError=b||i.a,y.onProgress=h||i.a,y.getNumPartsUploading=d,y}var r,n,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}}),t&&X(e,t)}(t,e),r=t,(n=[{key:"cancel",value:function(){clearTimeout(this.retryTimeout),this.blob=null,this.data={},this.destroy()}},{key:"pause",value:function(){clearTimeout(this.retryTimeout),this.isPaused=!0,this.state=1,this.xhr.abort()}},{key:"unpause",value:function(){this.isPaused=!1,this.state=Q,this.retryUpload()}},{key:"reset",value:function(){this.numUploadRetriesPerformed=0,this.timing={},this.uploadedBytes=0}},{key:"isDestroyedOrPaused",value:function(){return this.isDestroyed()||this.isPaused}}])&&W(r.prototype,n),o&&W(r,o),t}(H);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 ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function te(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(r),!0).forEach((function(t){le(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ee(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function re(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function ne(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){re(i,n,o,a,s,"next",e)}function s(e){re(i,n,o,a,s,"throw",e)}a(void 0)}))}}function oe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ie(e){return(ie=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ae(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function se(e,t){return(se=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function le(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ue="create_session_misc_error",ce="create_session_retries_exceeded",fe="part_upload_retries_exceeded",de="commit_retries_exceeded",pe="web_worker_error",he="file_reader_received_not_found_error",be="part_digest_retries_exceeded",me=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Z(t)&&"function"!=typeof t?ae(e):t}(this,ie(t).call(this,e,{createSession:null,uploadPart:null,listParts:null,commit:null,abort:null,logEvent:null},r)),le(ae(n),"getBaseUploadUrlFromPreflightResponse",(function(e){var t=e.data;if(!t||!t.upload_url)return n.getBaseUploadUrl();var r=t.upload_url.split("/");return n.uploadHost="".concat(r[0],"//").concat(r[2]),n.getBaseUploadUrl()})),le(ae(n),"preflightSuccessHandler",function(){var e=ne(regeneratorRuntime.mark((function e(t){var r,o,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.isDestroyed()){e.next=2;break}return e.abrupt("return");case 2:return r=n.getBaseUploadUrlFromPreflightResponse(t),(o="".concat(r,"/files/upload_sessions")).includes("fupload-ec2")&&(n.config.parallelism=1),i={file_size:n.file.size,file_name:n.fileName},n.fileId?o=o.replace("upload_sessions","".concat(n.fileId,"/upload_sessions")):i.folder_id=n.folderId,e.prev=7,e.next=10,n.xhr.post({url:o,data:i});case 10:a=e.sent,n.createSessionSuccessHandler(a.data),e.next=31;break;case 14:if(e.prev=14,e.t0=e.catch(7),!((s=n.getErrorResponse(e.t0))&&s.status>=500&&s.status<600)){e.next=20;break}return n.createSessionErrorHandler(e.t0),e.abrupt("return");case 20:if(!s||409!==s.status||"session_conflict"!==s.code){e.next=23;break}return n.createSessionSuccessHandler(s.context_info.session),e.abrupt("return");case 23:if(!(s&&s.status===m.Kd&&s.code===m.lc||s.status===m.Kd&&"access_denied_insufficient_permissions"===s.code)){e.next=26;break}return n.errorCallback(s),e.abrupt("return");case 26:if(!s||409!==s.status){e.next=30;break}return n.resolveConflict(s),n.createSessionRetry(),e.abrupt("return");case 30:n.sessionErrorHandler(e.t0,ue,JSON.stringify(e.t0));case 31:case"end":return e.stop()}}),e,null,[[7,14]])})));return function(t){return e.apply(this,arguments)}}()),le(ae(n),"createSessionErrorHandler",(function(e){n.isDestroyed()||(n.createSessionNumRetriesPerformed<n.config.retries?n.createSessionRetry():(n.consoleLog("Too many create session failures, failing upload"),n.sessionErrorHandler(e,ce,JSON.stringify(e))))})),le(ae(n),"getSessionInfo",ne(regeneratorRuntime.mark((function e(){var t,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.getBaseUploadUrl(),r="".concat(t,"/files/upload_sessions/").concat(n.sessionId),e.prev=2,e.next=5,n.xhr.get({url:r});case 5:o=e.sent,n.getSessionSuccessHandler(o.data),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),n.getSessionErrorHandler(e.t0);case 12:case"end":return e.stop()}}),e,null,[[2,9]])})))),le(ae(n),"partUploadSuccessHandler",(function(e){n.numPartsUploading-=1,n.numPartsUploaded+=1,n.updateProgress(e.uploadedBytes,n.partSize),n.processNextParts()})),le(ae(n),"partUploadErrorHandler",(function(e,t){if(n.sessionErrorHandler(e,fe,t),n.isResumableUploadsEnabled)for(var r=n.firstUnuploadedPartIndex;n.numPartsUploading>0;){var o=n.parts[r];o&&o.state===Q&&(o.reset(),o.pause(),n.numPartsUploading-=1,n.numPartsDigestReady+=1),r+=1}})),le(ae(n),"updateProgress",(function(e,t){n.isDestroyed()||(n.totalUploadedBytes+=t-e,n.progressCallback({loaded:n.totalUploadedBytes,total:n.file.size}))})),le(ae(n),"processNextParts",(function(){if(!n.failSessionIfFileChangeDetected())if(n.numPartsUploaded===n.parts.length&&n.fileSha1)n.commitSession();else{for(n.updateFirstUnuploadedPartIndex();n.canStartMorePartUploads();)n.uploadNextPart();n.shouldComputeDigestForNextPart()&&n.computeDigestForNextPart()}})),le(ae(n),"onWorkerMessage",(function(e){if(!n.isDestroyed()){var t,r=e.data;if("partDone"===r.type){n.numPartsDigestComputing-=1;var o=r.part;n.parts[o.index].timing.fileDigestTime=r.duration,n.processNextParts()}else"done"===r.type?(n.fileSha1=(t=r.sha1,btoa(String.fromCharCode.apply(null,t.replace(/\r|\n/g,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")))),n.sha1Worker.terminate(),n.processNextParts()):"error"===r.type&&n.sessionErrorHandler(null,pe,JSON.stringify(r))}})),le(ae(n),"sendPartToWorker",(function(e,t){if(!n.isDestroyed()){var r={index:e.index,offset:e.offset,size:e.partSize};n.sha1Worker.postMessage({part:r,fileSize:n.file.size,partContents:t},[t]),n.consoleLog("Part sent to worker: ".concat(JSON.stringify(e),".}"))}})),le(ae(n),"onPartDigestError",(function(e,t){if(n.consoleLog("Error computing digest for part ".concat(JSON.stringify(t),": ").concat(JSON.stringify(e))),"NotFoundError"!==e.name&&"NOT_FOUND_ERR"!==e.name){if(!n.failSessionIfFileChangeDetected())if(t.numDigestRetriesPerformed>=n.config.retries)n.sessionErrorHandler(null,be,JSON.stringify(e));else{var r=Object(l.a)(n.config.initialRetryDelayMs,n.config.maxRetryDelayMs,t.numDigestRetriesPerformed);t.numDigestRetriesPerformed+=1,n.consoleLog("Retrying digest work for part ".concat(JSON.stringify(t)," in ").concat(r," ms")),setTimeout((function(){n.computeDigestForPart(t)}),r)}}else n.sessionErrorHandler(null,he,JSON.stringify(e))})),le(ae(n),"commitSession",(function(){if(!n.isDestroyed()){var e={totalPartReadTime:0,totalPartDigestTime:0,totalFileDigestTime:0,totalPartUploadTime:0},t={parts:n.parts.map((function(t){return e.totalPartReadTime+=t.timing.readTime,e.totalPartDigestTime+=t.timing.subtleCryptoTime,e.totalFileDigestTime+=t.timing.fileDigestTime,e.totalPartUploadTime+=t.timing.uploadTime,t.getPart()})).sort((function(e,t){return e.offset-t.offset})),attributes:{}},r=Object(l.k)(n.file);r&&(t.attributes.content_modified_at=r),n.fileDescription&&(t.attributes.description=n.fileDescription);var o={avg_part_read_time:Math.round(e.totalPartReadTime/n.parts.length),avg_part_digest_time:Math.round(e.totalPartDigestTime/n.parts.length),avg_file_digest_time:Math.round(e.totalFileDigestTime/n.parts.length),avg_part_upload_time:Math.round(e.totalPartUploadTime/n.parts.length)},i=n.fileSha1,a={Digest:"sha=".concat(i),"X-Box-Client-Event-Info":JSON.stringify(o)};n.xhr.post({url:n.sessionEndpoints.commit,data:t,headers:a}).then(n.commitSessionSuccessHandler).catch(n.commitSessionErrorHandler)}})),le(ae(n),"commitSessionSuccessHandler",(function(e){if(!n.isDestroyed()){var t=e.status,r=e.data;if(202!==t){var o=r.entries;!o&&r.id&&(o=[r]),n.destroy(),n.successCallback&&o&&n.successCallback(o)}else n.commitSessionRetry(e)}})),le(ae(n),"commitSessionErrorHandler",(function(e){if(!n.isDestroyed()){var t=e.response;if(t)return n.commitRetryCount>=n.config.retries?(n.consoleLog("Too many commit failures, failing upload"),void n.sessionErrorHandler(e,de,JSON.stringify(e))):void n.commitSessionRetry(t);n.consoleError(e)}})),le(ae(n),"getNumPartsUploading",(function(){return n.numPartsUploading})),n.parts=[],n.options=e,n.fileSha1=null,n.totalUploadedBytes=0,n.numPartsNotStarted=0,n.numPartsDigestComputing=0,n.numPartsDigestReady=0,n.numPartsUploading=0,n.numPartsUploaded=0,n.firstUnuploadedPartIndex=0,n.createSessionNumRetriesPerformed=0,n.partSize=0,n.commitRetryCount=0,n.clientId=null,n.isResumableUploadsEnabled=!1,n.numResumeRetries=0,n}var r,n,o,a,c,f;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}}),t&&se(e,t)}(t,e),r=t,(n=[{key:"reset",value:function(){this.parts=[],this.fileSha1=null,this.totalUploadedBytes=0,this.numPartsNotStarted=0,this.numPartsDigestComputing=0,this.numPartsDigestReady=0,this.numPartsUploading=0,this.numPartsUploaded=0,this.firstUnuploadedPartIndex=0,this.createSessionNumRetriesPerformed=0,this.partSize=0,this.commitRetryCount=0,this.numResumeRetries=0}},{key:"setFileInfo",value:function(e){var t=e.file,r=e.folderId,n=e.errorCallback,o=e.progressCallback,a=e.successCallback,s=e.overwrite,l=void 0===s||s,u=e.conflictCallback,c=e.fileId;this.file=t,this.fileName=this.file.name,this.folderId=r,this.errorCallback=n||i.a,this.progressCallback=o||i.a,this.successCallback=a||i.a,this.overwrite=l,this.conflictCallback=u,this.fileId=c}},{key:"upload",value:function(e){var t=e.file,r=e.fileDescription,n=e.folderId,o=e.errorCallback,a=e.progressCallback,s=e.successCallback,u=e.overwrite,c=void 0===u||u,f=e.conflictCallback,d=e.fileId;this.file=t,this.fileName=this.file.name,this.initialFileSize=this.file.size,this.initialFileLastModified=Object(l.k)(this.file),this.folderId=n,this.errorCallback=o||i.a,this.progressCallback=a||i.a,this.successCallback=s||i.a,this.sha1Worker=b(),this.sha1Worker.addEventListener("message",this.onWorkerMessage),this.conflictCallback=f,this.overwrite=c,this.fileId=d,this.fileDescription=r,this.makePreflightRequest()}},{key:"createSessionRetry",value:function(){var e=Object(l.a)(this.config.initialRetryDelayMs,this.config.maxRetryDelayMs,this.createSessionNumRetriesPerformed);this.createSessionNumRetriesPerformed+=1,this.consoleLog("Retrying create session in ".concat(e," ms")),this.createSessionTimeout=setTimeout(this.makePreflightRequest,e)}},{key:"createSessionSuccessHandler",value:function(e){if(!this.isDestroyed()){var t=e.id,r=e.part_size,n=e.session_endpoints;this.sessionId=t,this.partSize=r,this.sessionEndpoints=te({},this.sessionEndpoints,{uploadPart:n.upload_part,listParts:n.list_parts,commit:n.commit,abort:n.abort,logEvent:n.log_event}),this.populateParts(),this.processNextParts()}}},{key:"resume",value:function(e){var t=e.file,r=e.folderId,n=e.errorCallback,o=e.progressCallback,i=e.sessionId,a=e.successCallback,s=e.overwrite,l=void 0===s||s,u=e.conflictCallback,c=e.fileId;this.setFileInfo({file:t,folderId:r,errorCallback:n,progressCallback:o,successCallback:a,conflictCallback:u,overwrite:l,fileId:c}),this.sessionId=i,this.sha1Worker||(this.sha1Worker=b()),this.sha1Worker.addEventListener("message",this.onWorkerMessage),this.getSessionInfo()}},{key:"getSessionSuccessHandler",value:function(e){var t=e.part_size,r=e.session_endpoints;this.partSize=t,this.sessionEndpoints=te({},this.sessionEndpoints,{uploadPart:r.upload_part,listParts:r.list_parts,commit:r.commit,abort:r.abort,logEvent:r.log_event}),this.processNextParts()}},{key:"getSessionErrorHandler",value:function(e){if(!this.isDestroyed()){var t=this.getErrorResponse(e);if(this.numResumeRetries>this.config.retries)this.errorCallback(t);else if(t&&429===t.status){var r=m.W;if(t.headers){var n=parseInt(t.headers["retry-after"]||t.headers.get("Retry-After"),10);s()(n)||(r=n*m.de)}this.retryTimeout=setTimeout(this.getSessionInfo,r),this.numResumeRetries+=1}else if(t&&t.status>=400&&t.status<500){this.parts.forEach((function(e){e.cancel()})),this.reset(),clearTimeout(this.createSessionTimeout),clearTimeout(this.commitSessionTimeout),this.abortSession();var o={file:this.file,folderId:this.folderId,errorCallback:this.errorCallback,progressCallback:this.progressCallback,successCallback:this.successCallback,overwrite:this.overwrite,fileId:this.fileId};this.upload(o)}else this.retryTimeout=setTimeout(this.getSessionInfo,Math.pow(2,this.numResumeRetries)*m.de),this.numResumeRetries+=1}}},{key:"sessionErrorHandler",value:(f=ne(regeneratorRuntime.mark((function e(t,r,n){var o,i=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isResumableUploadsEnabled||this.destroy(),o=this.getErrorResponse(t),this.errorCallback(o),e.prev=3,this.sessionEndpoints.logEvent){e.next=6;break}throw new Error("logEvent endpoint not found");case 6:return e.next=8,Object(u.a)((function(e,t){i.logEvent(r,n).then(e).catch(t)}),this.config.retries,this.config.initialRetryDelayMs);case 8:this.isResumableUploadsEnabled||this.abortSession(),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),this.isResumableUploadsEnabled||this.abortSession();case 14:case"end":return e.stop()}}),e,this,[[3,11]])}))),function(e,t,r){return f.apply(this,arguments)})},{key:"abortSession",value:function(){var e=this;this.sha1Worker&&this.sha1Worker.terminate(),this.sessionEndpoints.abort&&this.sessionId&&this.xhr.delete({url:this.sessionEndpoints.abort}).then((function(){e.sessionId=""}))}},{key:"shouldComputeDigestForNextPart",value:function(){return!this.isDestroyed()&&0===this.numPartsDigestComputing&&this.numPartsNotStarted>0&&this.numPartsDigestReady<this.config.digestReadahead}},{key:"computeDigestForNextPart",value:function(){for(var e=this.firstUnuploadedPartIndex;e<this.parts.length;e+=1){var t=this.parts[e];if(t.state===$)return this.numPartsNotStarted-=1,this.numPartsDigestComputing+=1,void this.computeDigestForPart(t)}}},{key:"computeDigestForPart",value:(c=ne(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,s,l,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.file.slice(t.offset,t.offset+this.partSize),n=new window.FileReader,o=Date.now(),e.prev=3,e.next=6,this.readFile(n,r);case 6:return i=e.sent,a=i.buffer,s=i.readCompleteTimestamp,e.next=11,p("SHA-256",a);case 11:l=e.sent,u=btoa([].reduce.call(new Uint8Array(l),(function(e,t){return e+String.fromCharCode(t)}),"")),this.sendPartToWorker(t,a),t.sha256=u,t.state=1,t.blob=r,this.numPartsDigestReady+=1,c=Date.now(),t.timing={partDigestTime:c-o,readTime:s-o,subtleCryptoTime:c-s},this.processNextParts(),e.next=26;break;case 23:e.prev=23,e.t0=e.catch(3),this.onPartDigestError(e.t0,t);case 26:case"end":return e.stop()}}),e,this,[[3,23]])}))),function(e){return c.apply(this,arguments)})},{key:"commitSessionRetry",value:function(e){var t=e.status,r=e.headers,n=m.W;if(r){var o=parseInt(r["retry-after"],10);Number.isNaN(o)||(n=1e3*o)}var i=Object(l.a)(this.config.initialRetryDelayMs,this.config.maxRetryDelayMs,this.commitRetryCount);202!==t&&(this.commitRetryCount+=1);var a=n||i;this.consoleLog("Retrying commit in ".concat(a," ms")),this.commitSessionTimeout=setTimeout(this.commitSession,a)}},{key:"uploadNextPart",value:function(){for(var e=this.firstUnuploadedPartIndex;e<this.parts.length;e+=1){var t=this.parts[e];if(1===t.state){this.numPartsDigestReady-=1,this.numPartsUploading+=1,t.isPaused?t.unpause():t.upload();break}}}},{key:"canStartMorePartUploads",value:function(){return!this.isDestroyed()&&this.numPartsUploading<this.config.parallelism&&this.numPartsDigestReady>0}},{key:"updateFirstUnuploadedPartIndex",value:function(){for(var e=this.parts[this.firstUnuploadedPartIndex];e&&e.state===Y;)this.firstUnuploadedPartIndex+=1,e=this.parts[this.firstUnuploadedPartIndex]}},{key:"populateParts",value:function(){this.numPartsNotStarted=Math.ceil(this.file.size/this.partSize);for(var e=0;e<this.numPartsNotStarted;e+=1){var t=e*this.partSize,r=Math.min(t+this.partSize,this.file.size)-t,n=new J(this.options,e,t,r,this.file.size,this.sessionId,this.sessionEndpoints,this.config,this.getNumPartsUploading,this.partUploadSuccessHandler,this.updateProgress,this.partUploadErrorHandler);this.parts.push(n)}}},{key:"failSessionIfFileChangeDetected",value:function(){var e=this.file.size,t=Object(l.k)(this.file);return(e!==this.initialFileSize||t!==this.initialFileLastModified)&&(this.sessionErrorHandler(null,"file_changed_during_upload",JSON.stringify({oldSize:this.initialFileSize,newSize:e,oldLastModified:this.initialFileLastModified,newLastModified:t})),!0)}},{key:"cancel",value:function(){this.isDestroyed()||(this.parts.forEach((function(e){e.cancel()})),this.parts=[],clearTimeout(this.createSessionTimeout),clearTimeout(this.commitSessionTimeout),this.abortSession(),this.destroy())}},{key:"resolveConflict",value:(a=ne(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.overwrite||!t.context_info){e.next=3;break}return this.fileId=t.context_info.conflicts.id,e.abrupt("return");case 3:if(!this.conflictCallback){e.next=6;break}return this.fileName=this.conflictCallback(this.fileName),e.abrupt("return");case 6:r=this.fileName.substr(this.fileName.lastIndexOf("."))||"",this.fileName="".concat(this.fileName.substr(0,this.fileName.lastIndexOf(".")),"-").concat(Date.now()).concat(r);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"getErrorResponse",value:function(e){if(!e)return{};var t=e.response;return t?401===t.status?t:t.data:{}}}])&&oe(r.prototype,n),o&&oe(r,o),t}(H);function ye(e){return(ye="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 ve(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function ge(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){ve(i,n,o,a,s,"next",e)}function s(e){ve(i,n,o,a,s,"throw",e)}a(void 0)}))}}function we(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ke(e){return(ke=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ee(e,t){return(Ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Oe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Se="Content-MD5",Ce=function(e){function t(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r=function(e,t){return!t||"object"!==ye(t)&&"function"!=typeof t?xe(e):t}(this,(e=ke(t)).call.apply(e,[this].concat(o))),Oe(xe(r),"uploadSuccessHandler",(function(e){var t=e.data.entries;r.isDestroyed()||"function"==typeof r.successCallback&&r.successCallback(t)})),Oe(xe(r),"uploadProgressHandler",(function(e){r.isDestroyed()||"function"==typeof r.progressCallback&&r.progressCallback(e)})),Oe(xe(r),"preflightSuccessHandler",function(){var e=ge(regeneratorRuntime.mark((function e(t){var n,o,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.data,!r.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:return(o=n.upload_url)||(o="".concat(r.getBaseUploadUrl(),"/files/content"),r.fileId&&(o=o.replace("content","".concat(r.fileId,"/content")))),i=JSON.stringify({name:r.fileName,parent:{id:r.folderId},description:r.fileDescription,content_modified_at:Object(l.k)(r.file)}),a={url:o,data:{attributes:i,file:r.file},headers:{},successHandler:r.uploadSuccessHandler,errorHandler:r.preflightErrorHandler,progressHandler:r.uploadProgressHandler},e.next=9,r.computeSHA1(r.file);case 9:(s=e.sent)&&(a.headers=Oe({},Se,s)),r.xhr.uploadFile(a);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),r}var r,n,o,a;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}}),t&&Ee(e,t)}(t,e),r=t,(n=[{key:"upload",value:function(e){var t=e.folderId,r=e.fileId,n=e.file,o=e.fileDescription,a=e.successCallback,s=void 0===a?i.a:a,l=e.errorCallback,u=void 0===l?i.a:l,c=e.progressCallback,f=void 0===c?i.a:c,d=e.conflictCallback,p=e.overwrite,h=void 0===p||p;this.isDestroyed()||(this.folderId=t,this.fileId=r,this.file=n,this.fileDescription=o,this.fileName=this.file.name,this.successCallback=s,this.errorCallback=u,this.progressCallback=f,this.overwrite=h,this.conflictCallback=d,this.makePreflightRequest())}},{key:"cancel",value:function(){this.isDestroyed()||(clearTimeout(this.retryTimeout),this.destroy())}},{key:"computeSHA1",value:(a=ge(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="",e.prev=1,n=new window.FileReader,e.next=5,this.readFile(n,t);case 5:return o=e.sent,i=o.buffer,e.next=9,p("SHA-1",i);case 9:a=e.sent,s=Array.from(new Uint8Array(a)),r=s.map((function(e){return"00".concat(e.toString(16)).slice(-2)})).join(""),e.next=16;break;case 14:e.prev=14,e.t0=e.catch(1);case 16:return e.abrupt("return",r);case 17:case"end":return e.stop()}}),e,this,[[1,14]])}))),function(e){return a.apply(this,arguments)})}])&&we(r.prototype,n),o&&we(r,o),t}(I),Pe=r(66),_e=r(46),Te=r(57),Ae=r(75),je=r(15),Ie=r(8);function De(e){return(De="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){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Re(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(r),!0).forEach((function(t){He(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Me(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Fe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ne(e){return(Ne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Le(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ue(e,t){return(Ue=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function He(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ze=function(e){function t(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r=function(e,t){return!t||"object"!==De(t)&&"function"!=typeof t?Le(e):t}(this,(e=Ne(t)).call.apply(e,[this].concat(o))),He(Le(r),"searchSuccessHandler",(function(e){var t=e.data;if(!r.isDestroyed()){var n=t.entries,o=t.total_count,i=t.limit,a=t.offset;if(!Array.isArray(n)||"number"!=typeof o||"number"!=typeof i||"number"!=typeof a)throw Object(Ie.a)();var s=Object(Ae.a)(n,new Pe.a(r.options),new _e.a(r.options),new Te.a(r.options));r.itemCache=(r.itemCache||[]).concat(s),r.getCache().set(r.key,{item_collection:Re({},t,{entries:r.itemCache})}),r.finish()}})),He(Le(r),"searchErrorHandler",(function(e){r.isDestroyed()||r.errorCallback(e,r.errorCode)})),r}var r,n,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}}),t&&Ue(e,t)}(t,e),r=t,(n=[{key:"getEncodedQuery",value:function(e){return encodeURIComponent(e)}},{key:"getCacheKey",value:function(e,t){return"".concat(m.m).concat(e,"|").concat(t)}},{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/search")}},{key:"isLoaded",value:function(){return this.getCache().has(this.key)}},{key:"finish",value:function(){if(!this.isDestroyed()){var e=this.getCache(),t=e.get(this.key).item_collection;if(!t)throw Object(Ie.a)();var r=t.entries,n=t.total_count;if(!Array.isArray(r)||"number"!=typeof n)throw Object(Ie.a)();var o={id:this.id,items:r.map((function(t){return e.get(t)})),offset:this.offset,percentLoaded:100,sortBy:m.Yc,sortDirection:m.df,totalCount:n};this.successCallback(o)}}},{key:"searchRequest",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.isDestroyed())return Promise.reject();var t=e.fields,r=t||je.f;return this.errorCode=m.Yb,this.xhr.get({url:this.getUrl(),params:{offset:this.offset,query:this.query,ancestor_folder_ids:this.id,limit:this.limit,fields:r.toString()},headers:r.includes(m.ad)?{"X-Rep-Hints":m.Vf}:{}}).then(this.searchSuccessHandler).catch(this.searchErrorHandler)}},{key:"search",value:function(e,t,r,n,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{};this.isDestroyed()||(this.limit=r,this.offset=n,this.query=t,this.id=e,this.key=this.getCacheKey(e,this.getEncodedQuery(this.query)),this.successCallback=o,this.errorCallback=i,a.forceFetch&&this.getCache().unset(this.key),this.isLoaded()?this.finish():this.searchRequest(a))}}])&&Fe(r.prototype,n),o&&Fe(r,o),t}(x.a);function Be(e){return(Be="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 Ve(){return(Ve=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function We(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function qe(e){return(qe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ge(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xe(e,t){return(Xe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ke(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $e=function(e){function t(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r=function(e,t){return!t||"object"!==Be(t)&&"function"!=typeof t?Ge(e):t}(this,(e=qe(t)).call.apply(e,[this].concat(o))),Ke(Ge(r),"recentsSuccessHandler",(function(e){var t=e.data;if(!r.isDestroyed()){var n=t.entries,o=t.order,i=o.by,a=o.direction,s=[];n.forEach((function(e){var t=e.item,n=e.interacted_at,o=t.path_collection;(r.id===m.X||!!o&&-1!==o.entries.findIndex((function(e){return e.id===r.id})))&&s.push(Ve(t,{interacted_at:n}))}));var l=Object(Ae.a)(s,new Pe.a(r.options),new _e.a(r.options),new Te.a(r.options));r.getCache().set(r.key,{item_collection:{entries:l,order:[{by:i,direction:a}]}}),r.finish()}})),Ke(Ge(r),"recentsErrorHandler",(function(e){r.isDestroyed()||r.errorCallback(e,r.errorCode)})),r}var r,n,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}}),t&&Xe(e,t)}(t,e),r=t,(n=[{key:"getCacheKey",value:function(e){return"".concat(m.l).concat(e)}},{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/recent_items")}},{key:"finish",value:function(){if(!this.isDestroyed()){var e=this.getCache(),t=e.get(this.key).item_collection;if(!t)throw Object(Ie.a)();var r=t.entries;if(!Array.isArray(r))throw Object(Ie.a)();var n={id:this.id,items:r.map((function(t){return e.get(t)})),percentLoaded:100,sortBy:m.xc,sortDirection:m.df};this.successCallback(n)}}},{key:"recentsRequest",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.isDestroyed())return Promise.reject();var t=e.fields,r=t||je.f;return this.errorCode=m.Ib,this.xhr.get({url:this.getUrl(),params:{fields:r.toString()},headers:r.includes(m.ad)?{"X-Rep-Hints":m.Vf}:{}}).then(this.recentsSuccessHandler).catch(this.recentsErrorHandler)}},{key:"recents",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!this.isDestroyed()){this.id=e,this.successCallback=t,this.errorCallback=r;var o=this.getCache();this.key=this.getCacheKey(this.id),n.forceFetch&&o.unset(this.key),o.has(this.key)?this.finish():this.recentsRequest(n)}}}])&&We(r.prototype,n),o&&We(r,o),t}(x.a),Qe=r(18);function Ye(e){return(Ye="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 Je(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ze(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(r),!0).forEach((function(t){et(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Je(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function et(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tt(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function rt(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){tt(i,n,o,a,s,"next",e)}function s(e){tt(i,n,o,a,s,"throw",e)}a(void 0)}))}}function nt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ot(e,t){return!t||"object"!==Ye(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function it(e){return(it=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function at(e,t){return(at=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var st=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ot(this,it(t).apply(this,arguments))}var r,n,o,i,a;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}}),t&&at(e,t)}(t,e),r=t,(n=[{key:"getQueryParameters",value:function(e,t,r){var n={offset:e,limit:t};return r&&r.length>0&&(n.fields=r.toString()),n}},{key:"hasMoreItems",value:function(e,t){return void 0===t||e<t}},{key:"offsetGetRequest",value:(a=rt(regeneratorRuntime.mark((function e(t,r,n,o,i){var a,s,l,u,c,f,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isDestroyed()){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,a=this.getQueryParameters(r,n,i),s=this.getUrl(t),e.next=7,this.xhr.get({url:s,id:Object(Qe.b)(t),params:a});case 7:if(l=e.sent,u=l.data,c=this.data?this.data.entries:[],this.data=Ze({},u,{entries:c.concat(u.entries)}),f=u.total_count,d=r+n,!o||!this.hasMoreItems(d,f)){e.next=16;break}return this.offsetGetRequest(t,d,n,o,i),e.abrupt("return");case 16:this.successHandler(this.data),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(2),this.errorHandler(e.t0);case 22:case"end":return e.stop()}}),e,this,[[2,19]])}))),function(e,t,r,n,o){return a.apply(this,arguments)})},{key:"offsetGet",value:(i=rt(regeneratorRuntime.mark((function e(t,r,n){var o,i,a,s,l=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=l.length>3&&void 0!==l[3]?l[3]:m.K,i=l.length>4&&void 0!==l[4]?l[4]:m.J,a=l.length>5?l[5]:void 0,s=!(l.length>6&&void 0!==l[6])||l[6],this.successCallback=r,this.errorCallback=n,e.abrupt("return",this.offsetGetRequest(t,o,i,s,a));case 7:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return i.apply(this,arguments)})}])&&nt(r.prototype,n),o&&nt(r,o),t}(x.a);function lt(e){return(lt="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 ut(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ct(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ft(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(r),!0).forEach((function(t){yt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ct(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function dt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function pt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ht(e){return(ht=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function bt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mt(e,t){return(mt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function yt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var vt=function(e){function t(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r=function(e,t){return!t||"object"!==lt(t)&&"function"!=typeof t?bt(e):t}(this,(e=ht(t)).call.apply(e,[this].concat(o))),yt(bt(r),"successHandler",(function(e){r.isDestroyed()||"function"!=typeof r.successCallback||r.successCallback(e)})),r}var r,n,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}}),t&&mt(e,t)}(t,e),r=t,(n=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing file id!");return"".concat(this.getBaseApiUrl(),"/files/").concat(e,"/versions")}},{key:"getVersionUrl",value:function(e,t){if(!t)throw new Error("Missing version id!");return"".concat(this.getUrl(e),"/").concat(t)}},{key:"addPermissions",value:function(e,t){if(!e)return e;var r=e.entries,n=e.total_count,o=v()(t,["permissions",m.ze],!1);return{entries:r.map((function(e){var t=e.permissions;return ft({},dt(e,["permissions"]),{permissions:ft({can_upload:o},t)})})),total_count:n}}},{key:"deleteVersion",value:function(e){var t=e.errorCallback,r=e.fileId,n=e.permissions,o=e.successCallback,i=e.versionId;this.errorCode=m.sb;try{this.checkApiCallValidity(m.te,n,r)}catch(e){return void t(e,this.errorCode)}this.delete({id:r,url:this.getVersionUrl(r,i),successCallback:o,errorCallback:t})}},{key:"getVersions",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:m.K,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:m.J,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:je.d,a=!(arguments.length>6&&void 0!==arguments[6])||arguments[6];this.errorCode=m.Nb,this.offsetGet(e,t,r,n,o,i,a)}},{key:"getVersion",value:function(e,t,r,n){this.errorCode=m.Mb,this.get({id:e,successCallback:r,errorCallback:n,url:this.getVersionUrl(e,t),requestData:{params:{fields:je.d.toString()}}})}},{key:"addCurrentVersion",value:function(e,t,r){if(!e)return t||{entries:[],total_count:0};if(!t)return{entries:[e],total_count:1};var n=v()(r,"restored_from.id"),o=t.entries.find((function(e){return e.id===n}));return o&&(e.version_promoted=o.version_number),{entries:[].concat(ut(t.entries),[e]),total_count:t.total_count+1}}},{key:"promoteVersion",value:function(e){var t=e.errorCallback,r=e.fileId,n=e.permissions,o=e.successCallback,i=e.versionId;this.errorCode=m.Vb;try{this.checkApiCallValidity(m.ze,n,r)}catch(e){return void t(e,this.errorCode)}this.post({id:r,data:{data:{id:i,type:"file_version"}},url:this.getVersionUrl(r,"current"),successCallback:o,errorCallback:t})}},{key:"restoreVersion",value:function(e){var t=e.errorCallback,r=e.fileId,n=e.permissions,o=e.successCallback,i=e.versionId;this.errorCode=m.Xb;try{this.checkApiCallValidity(m.te,n,r)}catch(e){return void t(e,this.errorCode)}this.put({id:r,data:{data:{trashed_at:null}},url:this.getVersionUrl(r,i),successCallback:o,errorCallback:t})}}])&&pt(r.prototype,n),o&&pt(r,o),t}(st);function gt(e){return(gt="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,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function kt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wt(Object(r),!0).forEach((function(t){Ct(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function xt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Et(e){return(Et=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ot(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function St(e,t){return(St=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ct(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Pt=function(e){function t(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r=function(e,t){return!t||"object"!==gt(t)&&"function"!=typeof t?Ot(e):t}(this,(e=Et(t)).call.apply(e,[this].concat(o))),Ct(Ot(r),"successHandler",(function(e){if(!r.isDestroyed()&&"function"==typeof r.successCallback)if(e)if(e.entries){var t=e.entries.map(r.format);r.successCallback(kt({},e,{entries:t}))}else r.successCallback(r.format(e));else r.successCallback()})),r}var r,n,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}}),t&&St(e,t)}(t,e),r=t,(n=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing file id!");return"".concat(this.getBaseApiUrl(),"/files/").concat(e,"/comments")}},{key:"commentsUrl",value:function(e){var t="".concat(this.getBaseApiUrl(),"/comments");return e?"".concat(t,"/").concat(e):t}},{key:"format",value:function(e){return kt({},e,{tagged_message:""!==e.tagged_message?e.tagged_message:e.message})}},{key:"createComment",value:function(e){var t=e.file,r=e.message,n=e.taggedMessage,o=e.successCallback,i=e.errorCallback;this.errorCode=m.fb;var a=t.id,s=void 0===a?"":a,l=t.permissions;try{this.checkApiCallValidity(m.re,l,s)}catch(e){return void i(e,this.errorCode)}var u={data:{item:{id:s,type:"file"},message:r,tagged_message:n},params:{fields:je.b.toString()}};this.post({id:s,url:this.commentsUrl(),data:u,successCallback:o,errorCallback:i})}},{key:"updateComment",value:function(e){var t=e.file,r=e.commentId,n=e.message,o=e.tagged_message,i=e.permissions,a=e.successCallback,s=e.errorCallback;this.errorCode=m.cc;var l=t.id,u=void 0===l?"":l;try{this.checkApiCallValidity(m.ve,i,u)}catch(e){return void s(e,this.errorCode)}var c={data:{message:n,tagged_message:o}};this.put({id:u,url:this.commentsUrl(r),data:c,successCallback:a,errorCallback:s})}},{key:"deleteComment",value:function(e){var t=e.file,r=e.commentId,n=e.permissions,o=e.successCallback,i=e.errorCallback;this.errorCode=m.nb;var a=t.id,s=void 0===a?"":a;try{this.checkApiCallValidity(m.te,n,s)}catch(e){return void i(e,this.errorCode)}this.delete({id:s,url:this.commentsUrl(r),successCallback:o,errorCallback:i})}},{key:"getComments",value:function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:je.b,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0;this.errorCode=m.yb;try{this.checkApiCallValidity(m.re,t,e)}catch(e){return void n(e,this.errorCode)}this.offsetGet(e,r,n,i,a,o,s)}}])&&xt(r.prototype,n),o&&xt(r,o),t}(st);function _t(e){return(_t="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 Tt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function At(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function It(e,t){return!t||"object"!==_t(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Dt(e){return(Dt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Mt(e,t){return(Mt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Rt=[m.Pd,m.Md,m.Od,m.Id,m.Qd,m.Ld],Ft=function(e){function t(e){var r=e.retryableStatusCodes,n=void 0===r?Rt:r,o=jt(e,["retryableStatusCodes"]);return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),It(this,Dt(t).call(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(r),!0).forEach((function(t){At(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},o,{retryableStatusCodes: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}}),t&&Mt(e,t)}(t,e),t}(x.a);function Nt(e){return(Nt="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 Lt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ut(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Lt(Object(r),!0).forEach((function(t){Ht(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ht(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zt(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Bt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Vt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Wt(e,t){return!t||"object"!==Nt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function qt(e){return(qt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Gt(e,t){return(Gt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Xt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Wt(this,qt(t).apply(this,arguments))}var r,n,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}}),t&&Gt(e,t)}(t,e),r=t,(n=[{key:"getUrlForFileTasks",value:function(e){return"".concat(this.getBaseApiUrl(),"/undoc/files/").concat(e,"/linked_tasks?limit=").concat(m.e)}},{key:"getUrlForTaskCreateWithDeps",value:function(){return"".concat(this.getBaseApiUrl(),"/undoc/tasks/with_dependencies")}},{key:"getUrlForTask",value:function(e){return"".concat(this.getBaseApiUrl(),"/undoc/tasks/").concat(e)}},{key:"getUrlForTaskWithDeps",value:function(e){return"".concat(this.getBaseApiUrl(),"/undoc/tasks/").concat(e,"/with_dependencies")}},{key:"updateTaskWithDeps",value:function(e){var t=e.errorCallback,r=e.file,n=e.successCallback,o=e.task;this.errorCode=m.fc;var i=o.addedAssignees.map((function(e){return{op:e.item&&"group"===e.item.type?"add_task_collaborators_expand_group":"add_task_collaborator",payload:{target:{type:e.item&&"group"===e.item.type?"group":"user",id:e.id}}}})),a=o.removedAssignees.map((function(e){return{op:"delete_task_collaborator",id:e.id}})),s=(o.id,o.addedAssignees,o.removedAssignees,Bt(o,["id","addedAssignees","removedAssignees"]));this.put({id:r.id,url:this.getUrlForTaskWithDeps(o.id),data:{data:[{op:"update_task",payload:Ut({},s)}].concat(zt(i),zt(a))},successCallback:n,errorCallback:t})}},{key:"deleteTask",value:function(e){var t=e.errorCallback,r=e.file,n=e.successCallback,o=e.task;this.errorCode=m.qb,this.delete({id:r.id,url:this.getUrlForTask(o.id),successCallback:n,errorCallback:t})}},{key:"getTasksForFile",value:function(e){var t=e.errorCallback,r=e.file,n=e.successCallback;this.errorCode=m.Kb,this.get({id:r.id,url:this.getUrlForFileTasks(r.id),successCallback:n,errorCallback:t})}},{key:"getTask",value:function(e){var t=e.errorCallback,r=e.file,n=e.id,o=e.successCallback;this.errorCode=m.Kb,this.get({id:r.id,url:this.getUrlForTask(n),successCallback:o,errorCallback:t})}},{key:"createTaskWithDeps",value:function(e){var t=e.errorCallback,r=e.file,n=e.successCallback,o=e.task,i=e.assignees;this.errorCode=m.ib;var a=i.map((function(e){return{target:{type:e.item&&"group"===e.item.type?"group":"user",id:e.id}}})),s=[{target:{id:r.id,type:"file"}}],l={task:Ut({},o),assigned_to:a,task_links:s};this.post({id:r.id,url:this.getUrlForTaskCreateWithDeps(),data:{data:Ut({},l)},successCallback:n,errorCallback:t})}}])&&Vt(r.prototype,n),o&&Vt(r,o),t}(Ft),Kt=r(21),$t=r.n(Kt);function Qt(e){return(Qt="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 Yt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Jt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yt(Object(r),!0).forEach((function(t){Zt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Zt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function er(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function tr(e,t){return!t||"object"!==Qt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function rr(e){return(rr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function nr(e,t){return(nr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var or=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),tr(this,rr(t).apply(this,arguments))}var r,n,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}}),t&&nr(e,t)}(t,e),r=t,(n=[{key:"getUrlForTaskCollaborators",value:function(e){return"".concat(this.getBaseApiUrl(),"/undoc/tasks/").concat(e,"/task_collaborators?role=ASSIGNEE&limit=").concat(m.e)}},{key:"getUrlForTaskCollaboratorCreate",value:function(){return"".concat(this.getBaseApiUrl(),"/undoc/task_collaborators")}},{key:"getUrlForTaskCollaborator",value:function(e){return"".concat(this.getBaseApiUrl(),"/undoc/task_collaborators/").concat(e)}},{key:"getUrlForTaskGroupCreate",value:function(){return"".concat(this.getBaseApiUrl(),"/undoc/task_collaborators/expand_group")}},{key:"createTaskCollaborator",value:function(e){var t=e.errorCallback,r=e.file,n=e.successCallback,o=e.task,i=e.user;this.errorCode=m.jb;var a={data:{task:{type:"task",id:o.id},target:{type:"user",id:i.id}}};this.post({id:r.id,url:this.getUrlForTaskCollaboratorCreate(),data:Jt({},a),successCallback:n,errorCallback:t})}},{key:"createTaskCollaboratorsforGroup",value:function(e){var t=e.errorCallback,r=e.file,n=e.successCallback,o=e.task,i=e.group;this.errorCode=m.jb;var a={data:{task:{type:"task",id:o.id},target:{type:"group",id:i.id}}};this.post({id:r.id,url:this.getUrlForTaskGroupCreate(),data:Jt({},a),successCallback:n,errorCallback:t})}},{key:"getTaskCollaborators",value:function(e){var t=e.errorCallback,r=e.file,n=e.successCallback,o=e.task;this.errorCode=m.Lb;var i=this.getUrlForTaskCollaborators(o.id);this.get({id:r.id,successCallback:n,errorCallback:t,url:i})}},{key:"updateTaskCollaborator",value:function(e){var t=e.errorCallback,r=e.file,n=e.successCallback,o=e.taskCollaborator;this.errorCode=m.gc;var i={data:$t()(o,"id")};this.put({id:r.id,url:this.getUrlForTaskCollaborator(o.id),data:Jt({},i),successCallback:n,errorCallback:t})}},{key:"deleteTaskCollaborator",value:function(e){var t=e.errorCallback,r=e.file,n=e.successCallback,o=e.taskCollaborator;this.errorCode=m.rb,this.delete({id:r.id,url:this.getUrlForTaskCollaborator(o.id),successCallback:n,errorCallback:t})}}])&&er(r.prototype,n),o&&er(r,o),t}(Ft);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 ar(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function sr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ar(Object(r),!0).forEach((function(t){lr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ar(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function lr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ur(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function cr(e,t){return!t||"object"!==ir(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fr(e){return(fr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function dr(e,t){return(dr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var pr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),cr(this,fr(t).apply(this,arguments))}var r,n,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}}),t&&dr(e,t)}(t,e),r=t,(n=[{key:"getUrlForTaskLinkCreate",value:function(){return"".concat(this.getBaseApiUrl(),"/undoc/task_links")}},{key:"createTaskLink",value:function(e){var t=e.errorCallback,r=e.file,n=e.successCallback,o=e.task;this.errorCode=m.kb;var i={data:{target:{id:r.id,type:"file"},task:{id:o.id,type:"task"}}};this.post({id:r.id,url:this.getUrlForTaskLinkCreate(),data:sr({},i),successCallback:n,errorCallback:t})}}])&&ur(r.prototype,n),o&&ur(r,o),t}(Ft);function hr(e){return(hr="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 br(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function mr(e,t){return!t||"object"!==hr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function yr(e){return(yr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vr(e,t){return(vr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var gr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),mr(this,yr(t).apply(this,arguments))}var r,n,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}}),t&&vr(e,t)}(t,e),r=t,(n=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing file id!");return"".concat(this.getBaseApiUrl(),"/file_access_stats/").concat(e)}},{key:"getFileAccessStats",value:function(e,t,r){this.errorCode=m.ub,this.get({id:e,successCallback:t,errorCallback:r})}}])&&br(r.prototype,n),o&&br(r,o),t}(x.a);function wr(e){return(wr="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 kr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kr(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Er(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Or(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function Sr(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Or(i,n,o,a,s,"next",e)}function s(e){Or(i,n,o,a,s,"throw",e)}a(void 0)}))}}function Cr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Pr(e,t){return!t||"object"!==wr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _r(e){return(_r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Tr(e,t){return(Tr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ar=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Pr(this,_r(t).apply(this,arguments))}var r,n,o,i,a;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}}),t&&Tr(e,t)}(t,e),r=t,(n=[{key:"hasMoreItems",value:function(e){return null!==e&&""!==e}},{key:"markerGetRequest",value:(a=Sr(regeneratorRuntime.mark((function e(t,r,n,o){var i,a,s,l,u,c,f,d=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=d.length>4&&void 0!==d[4]?d[4]:{},!this.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,a=this.getUrl(t),s=xr({},i,{marker:r,limit:n}),e.next=8,this.xhr.get({url:a,id:Object(Qe.b)(t),params:s});case 8:if(l=e.sent,u=l.data,c=this.data?this.data.entries:[],this.data=xr({},u,{entries:c.concat(u.entries)}),f=u.next_marker,!o||!this.hasMoreItems(f)){e.next=16;break}return this.markerGetRequest(t,f,n,o,i),e.abrupt("return");case 16:this.successHandler(this.data),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(3),this.errorHandler(e.t0);case 22:case"end":return e.stop()}}),e,this,[[3,19]])}))),function(e,t,r,n){return a.apply(this,arguments)})},{key:"markerGet",value:(i=Sr(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,s,l,u,c,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.id,n=t.successCallback,o=t.errorCallback,i=t.marker,a=void 0===i?"":i,s=t.limit,l=void 0===s?1e3:s,u=t.requestData,c=t.shouldFetchAll,f=void 0===c||c,this.successCallback=n,this.errorCallback=o,e.abrupt("return",this.markerGetRequest(r,a,l,f,u));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})}])&&Cr(r.prototype,n),o&&Cr(r,o),t}(x.a);function jr(e){return(jr="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 Ir(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Dr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ir(Object(r),!0).forEach((function(t){Mr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ir(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Mr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Fr(e,t){return!t||"object"!==jr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Nr(e){return(Nr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Lr(e,t){return(Lr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ur=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Fr(this,Nr(t).apply(this,arguments))}var r,n,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}}),t&&Lr(e,t)}(t,e),r=t,(n=[{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/groups")}},{key:"getGroupsInEnterprise",value:function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:m.R;this.errorCode=m.Ab,this.markerGet({id:e,limit:o,successCallback:t,errorCallback:r,requestData:Dr({usemarker:!0},n),shouldFetchAll:!1})}}])&&Rr(r.prototype,n),o&&Rr(r,o),t}(Ar);function Hr(e){return(Hr="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 zr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Br(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zr(Object(r),!0).forEach((function(t){Vr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Vr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function qr(e,t){return!t||"object"!==Hr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Gr(e){return(Gr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xr(e,t){return(Xr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Kr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),qr(this,Gr(t).apply(this,arguments))}var r,n,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}}),t&&Xr(e,t)}(t,e),r=t,(n=[{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/users")}},{key:"getUsersInEnterprise",value:function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:m.R;this.errorCode=m.Bb,this.markerGet({id:e,limit:o,successCallback:t,errorCallback:r,requestData:Br({usemarker:!0},n),shouldFetchAll:!1})}}])&&Wr(r.prototype,n),o&&Wr(r,o),t}(Ar);function $r(e){return($r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Yr(e,t){return!t||"object"!==$r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Jr(e){return(Jr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Zr(e,t){return(Zr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var en=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Yr(this,Jr(t).apply(this,arguments))}var r,n,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}}),t&&Zr(e,t)}(t,e),r=t,(n=[{key:"getUrlForGroupCount",value:function(e){return"".concat(this.getBaseApiUrl(),"/groups/").concat(e,"/memberships")}},{key:"getGroupCount",value:function(e){var t=this,r=e.errorCallback,n=void 0===r?i.a:r,o=e.successCallback,a=void 0===o?i.a:o,s=e.group,l=e.file;return new Promise((function(e,r){return t.get({id:l.id,url:t.getUrlForGroupCount(s.id),successCallback:function(){a.apply(void 0,arguments),e.apply(void 0,arguments)},errorCallback:function(){n.apply(void 0,arguments),r()},requestData:{params:{limit:1}}})}))}}])&&Qr(r.prototype,n),o&&Qr(r,o),t}(x.a),tn=r(61),rn=r.n(tn),nn=r(60);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 an(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function sn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ln(e,t){return!t||"object"!==on(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function un(e){return(un=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function cn(e,t){return(cn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var fn=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ln(this,un(t).apply(this,arguments))}var r,n,o,i,a;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}}),t&&cn(e,t)}(t,e),r=t,(n=[{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/users/me")}},{key:"getAvatarUrl",value:function(e){if(!e)throw new Error("Missing user id");return"".concat(this.getBaseApiUrl(),"/users/").concat(e,"/avatar")}},{key:"getAvatarUrlWithAccessToken",value:(i=regeneratorRuntime.mark((function e(t,r){var n,o,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return",null);case 2:if(!(n=this.getCache()).has(t)){e.next=5;break}return e.abrupt("return",n.get(t));case 5:return e.next=7,nn.a.getReadToken(Object(Qe.b)(r),this.options.token);case 7:if("string"!=typeof(o=e.sent)){e.next=14;break}return i={access_token:o,pic_type:"large"},a=rn.a.stringify(i),s="".concat(this.getAvatarUrl(t),"?").concat(a),n.set(t,s),e.abrupt("return",s);case 14:return e.abrupt("return",null);case 15:case"end":return e.stop()}}),e,this)})),a=function(){var e=this,t=arguments;return new Promise((function(r,n){var o=i.apply(e,t);function a(e){an(o,r,n,a,s,"next",e)}function s(e){an(o,r,n,a,s,"throw",e)}a(void 0)}))},function(e,t){return a.apply(this,arguments)})},{key:"getUser",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.errorCode=m.zb,this.get({id:e,successCallback:t,errorCallback:r,requestData:n})}}])&&sn(r.prototype,n),o&&sn(r,o),t}(x.a),dn=r(12),pn=r.n(dn);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 bn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function yn(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function vn(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){yn(i,n,o,a,s,"next",e)}function s(e){yn(i,n,o,a,s,"throw",e)}a(void 0)}))}}function gn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function wn(e,t){return!t||"object"!==hn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function kn(e){return(kn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xn(e,t){return(xn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var En=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),wn(this,kn(t).apply(this,arguments))}var r,n,o,i,a,s,l,u,c,f,d,p,h;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}}),t&&xn(e,t)}(t,e),r=t,(n=[{key:"getMetadataCacheKey",value:function(e){return"".concat(m.j).concat(e)}},{key:"getSkillsCacheKey",value:function(e){return"".concat(this.getMetadataCacheKey(e),"_skills")}},{key:"getClassificationCacheKey",value:function(e){return"".concat(this.getMetadataCacheKey(e),"_classification")}},{key:"getMetadataUrl",value:function(e,t,r){var n="".concat(this.getUrl(e),"/metadata");return t&&r?"".concat(n,"/").concat(t,"/").concat(r):n}},{key:"getMetadataTemplateUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/metadata_templates")}},{key:"getMetadataTemplateUrlForInstance",value:function(e){return"".concat(this.getMetadataTemplateUrl(),"?metadata_instance_id=").concat(e)}},{key:"getMetadataTemplateSchemaUrl",value:function(e){return"".concat(this.getMetadataTemplateUrl(),"/enterprise/").concat(e,"/schema")}},{key:"getMetadataTemplateUrlForScope",value:function(e){return"".concat(this.getMetadataTemplateUrl(),"/").concat(e)}},{key:"getCustomPropertiesTemplate",value:function(){return{id:pn()("metadata_template_"),scope:m.Wd,templateKey:m.Zd,hidden:!1}}},{key:"createEditor",value:function(e,t,r){var n={};return Object.keys(e).forEach((function(t){t.startsWith("$")||(n[t]=e[t])})),{template:t,instance:{id:e.$id,canEdit:e.$canEdit&&r,data:n}}}},{key:"getTemplates",value:(h=vn(regeneratorRuntime.mark((function e(t,r,n){var o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.errorCode=m.Hb,o={},i=n?this.getMetadataTemplateUrlForInstance(n):this.getMetadataTemplateUrlForScope(r),e.prev=3,e.next=6,this.xhr.get({url:i,id:Object(Qe.b)(t),params:{limit:m.Yd}});case 6:o=e.sent,e.next=14;break;case 9:if(e.prev=9,e.t0=e.catch(3),a=e.t0.status,!Object(Ie.d)(a)){e.next=14;break}throw e.t0;case 14:return e.abrupt("return",v()(o,"data.entries",[]));case 15:case"end":return e.stop()}}),e,this,[[3,9]])}))),function(e,t,r){return h.apply(this,arguments)})},{key:"getSchemaByTemplateKey",value:function(e){var t=this.getMetadataTemplateSchemaUrl(e);return this.xhr.get({url:t})}},{key:"getInstances",value:(p=vn(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.errorCode=m.Gb,r={},e.prev=2,e.next=5,this.xhr.get({url:this.getMetadataUrl(t),id:Object(Qe.b)(t)});case 5:r=e.sent,e.next=13;break;case 8:if(e.prev=8,e.t0=e.catch(2),n=e.t0.status,!Object(Ie.d)(n)){e.next=13;break}throw e.t0;case 13:return e.abrupt("return",v()(r,"data.entries",[]));case 14:case"end":return e.stop()}}),e,this,[[2,8]])}))),function(e){return p.apply(this,arguments)})},{key:"getUserAddableTemplates",value:function(e,t,r,n){var o=[];return r&&(o=n?[e]:[e].concat(t)),o.filter((function(e){return!e.hidden&&e.templateKey!==m.Xd}))}},{key:"extractClassification",value:function(e,t){var r=t.find((function(e){return e.$template===m.Xd}));if(r){t.splice(t.indexOf(r),1);var n=this.getCache(),o=this.getClassificationCacheKey(e);n.set(o,r)}return t}},{key:"getTemplateForInstance",value:(d=vn(regeneratorRuntime.mark((function e(t,r,n){var o,i,a,s,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=r.$id,i=r.$template,a=r.$scope,(s=n.find((function(e){return e.templateKey===i&&e.scope===a})))||!a.startsWith(m.Vd)){e.next=9;break}return e.next=7,this.getTemplates(t,a,o);case 7:l=e.sent,s=l[0];case 9:return e.abrupt("return",s);case 10:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return d.apply(this,arguments)})},{key:"getEditors",value:(f=vn(regeneratorRuntime.mark((function e(t,r,n,o,i,a){var s,l,u,c=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=[n].concat(o,i),l=this.extractClassification(t,r),u=[],e.next=5,Promise.all(l.map(function(){var e=vn(regeneratorRuntime.mark((function e(r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.getTemplateForInstance(t,r,s);case 2:(n=e.sent)&&u.push(c.createEditor(r,n,a));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 5:return e.abrupt("return",u);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,o,i){return f.apply(this,arguments)})},{key:"getMetadata",value:(c=vn(regeneratorRuntime.mark((function e(t,r,n,o){var i,a,s,l,u,c,f,d,p,h,b,y,v,g,w=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=w.length>4&&void 0!==w[4]?w[4]:{},a=t.id,s=t.permissions,l=t.is_externally_owned,this.errorCode=m.Gb,this.successCallback=r,this.errorCallback=n,a&&s){e.next=8;break}return this.errorHandler(Object(Ie.a)()),e.abrupt("return");case 8:if(u=this.getCache(),c=this.getMetadataCacheKey(a),i.forceFetch&&u.unset(c),!u.has(c)){e.next=15;break}if(this.successHandler(u.get(c)),i.refreshCache){e.next=15;break}return e.abrupt("return");case 15:return e.prev=15,f=this.getCustomPropertiesTemplate(),e.next=19,Promise.all([this.getInstances(a),this.getTemplates(a,m.Wd),o?this.getTemplates(a,m.Vd):Promise.resolve([])]);case 19:return d=e.sent,p=mn(d,3),h=p[0],b=p[1],y=p[2],e.next=26,this.getEditors(a,h,f,y,b,!!s.can_upload);case 26:v=e.sent,g={editors:v,templates:this.getUserAddableTemplates(f,y,o,l)},u.set(c,g),this.isDestroyed()||this.successHandler(g),e.next=35;break;case 32:e.prev=32,e.t0=e.catch(15),this.errorHandler(e.t0);case 35:case"end":return e.stop()}}),e,this,[[15,32]])}))),function(e,t,r,n){return c.apply(this,arguments)})},{key:"getSkills",value:(u=vn(regeneratorRuntime.mark((function e(t,r,n){var o,i,a,s,l,u,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=c.length>3&&void 0!==c[3]&&c[3],this.errorCode=m.Jb,i=t.id){e.next=6;break}return n(Object(Ie.a)(),this.errorCode),e.abrupt("return");case 6:if(a=this.getCache(),s=this.getSkillsCacheKey(i),this.successCallback=r,this.errorCallback=n,o&&a.unset(s),!a.has(s)){e.next=14;break}return this.successHandler(a.get(s)),e.abrupt("return");case 14:if(l={data:v()(t,m.Oc)},e.prev=15,l.data){e.next=20;break}return e.next=19,this.xhr.get({url:this.getMetadataUrl(i,m.Wd,m.ae),id:Object(Qe.b)(i)});case 19:l=e.sent;case 20:this.isDestroyed()||(u=l.data.cards||[],a.set(s,u),this.successHandler(u)),e.next=26;break;case 23:e.prev=23,e.t0=e.catch(15),this.errorHandler(e.t0);case 26:case"end":return e.stop()}}),e,this,[[15,23]])}))),function(e,t,r){return u.apply(this,arguments)})},{key:"updateSkills",value:(l=vn(regeneratorRuntime.mark((function e(t,r,n,o){var i,a,s,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.errorCode=m.ec,i=t.id,a=t.permissions,i&&a){e.next=5;break}return o(Object(Ie.a)(),this.errorCode),e.abrupt("return");case 5:if(a.can_upload){e.next=8;break}return o(Object(Ie.b)(),this.errorCode),e.abrupt("return");case 8:return this.successCallback=n,this.errorCallback=o,e.prev=10,e.next=13,this.xhr.put({url:this.getMetadataUrl(i,m.Wd,m.ae),headers:bn({},m.Bd,"application/json-patch+json"),id:Object(Qe.b)(i),data:r});case 13:s=e.sent,this.isDestroyed()||(l=s.data.cards||[],this.merge(this.getCacheKey(i),m.Oc,s.data),this.getCache().set(this.getSkillsCacheKey(i),l),this.successHandler(l)),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(10),this.errorHandler(e.t0);case 20:case"end":return e.stop()}}),e,this,[[10,17]])}))),function(e,t,r,n){return l.apply(this,arguments)})},{key:"updateMetadata",value:(s=vn(regeneratorRuntime.mark((function e(t,r,n,o,i){var a,s,l,u,c,f,d,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.errorCode=m.dc,this.successCallback=o,this.errorCallback=i,a=t.id,s=t.permissions,a&&s){e.next=7;break}return this.errorHandler(Object(Ie.a)()),e.abrupt("return");case 7:if(l=!!s.can_upload){e.next=11;break}return this.errorHandler(Object(Ie.b)()),e.abrupt("return");case 11:return e.prev=11,e.next=14,this.xhr.put({url:this.getMetadataUrl(a,r.scope,r.templateKey),headers:bn({},m.Bd,"application/json-patch+json"),id:Object(Qe.b)(a),data:n});case 14:u=e.sent,this.isDestroyed()||(c=this.getCache(),f=this.getMetadataCacheKey(a),d=c.get(f),p=this.createEditor(u.data,r,l),d&&d.editors&&d.editors.splice(d.editors.findIndex((function(e){return e.instance.id===p.instance.id})),1,p),this.successHandler(p)),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(11),this.errorHandler(e.t0);case 21:case"end":return e.stop()}}),e,this,[[11,18]])}))),function(e,t,r,n,o){return s.apply(this,arguments)})},{key:"createMetadata",value:(a=vn(regeneratorRuntime.mark((function e(t,r,n,o){var i,a,s,l,u,c,f,d,p,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.errorCode=m.hb,t&&r){e.next=4;break}return o(Object(Ie.a)(),this.errorCode),e.abrupt("return");case 4:if(i=t.id,a=t.permissions,s=t.is_externally_owned,i&&a){e.next=8;break}return o(Object(Ie.a)(),this.errorCode),e.abrupt("return");case 8:if(l=!!a.can_upload,u=r.templateKey===m.Zd&&r.scope===m.Wd,l&&(!s||u)){e.next=13;break}return o(Object(Ie.b)(),this.errorCode),e.abrupt("return");case 13:return this.successCallback=n,this.errorCallback=o,e.prev=15,e.next=18,this.xhr.post({url:this.getMetadataUrl(i,r.scope,r.templateKey),id:Object(Qe.b)(i),data:{}});case 18:c=e.sent,this.isDestroyed()||(f=this.getCache(),d=this.getMetadataCacheKey(i),p=f.get(d),h=this.createEditor(c.data,r,l),p.editors.push(h),this.successHandler(h)),e.next=25;break;case 22:e.prev=22,e.t0=e.catch(15),this.errorHandler(e.t0);case 25:case"end":return e.stop()}}),e,this,[[15,22]])}))),function(e,t,r,n){return a.apply(this,arguments)})},{key:"deleteMetadata",value:(i=vn(regeneratorRuntime.mark((function e(t,r,n,o){var i,a,s,l,u,c,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.errorCode=m.pb,t&&r){e.next=4;break}return o(Object(Ie.a)(),this.errorCode),e.abrupt("return");case 4:if(i=r.scope,a=r.templateKey,s=t.id,l=t.permissions,s&&l){e.next=9;break}return o(Object(Ie.a)(),this.errorCode),e.abrupt("return");case 9:if(l.can_upload){e.next=12;break}return o(Object(Ie.b)(),this.errorCode),e.abrupt("return");case 12:return this.successCallback=n,this.errorCallback=o,e.prev=14,e.next=17,this.xhr.delete({url:this.getMetadataUrl(s,i,a),id:Object(Qe.b)(s)});case 17:this.isDestroyed()||(u=this.getCache(),c=this.getMetadataCacheKey(s),(f=u.get(c)).editors.splice(f.editors.findIndex((function(e){return e.template.scope===i&&e.template.templateKey===a})),1),this.successHandler()),e.next=23;break;case 20:e.prev=20,e.t0=e.catch(14),this.errorHandler(e.t0);case 23:case"end":return e.stop()}}),e,this,[[14,20]])}))),function(e,t,r,n){return i.apply(this,arguments)})}])&&gn(r.prototype,n),o&&gn(r,o),t}(_e.a);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 Sn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Cn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Pn(e){return(Pn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tn(e,t){return(Tn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function An(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var jn=function(e){function t(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r=function(e,t){return!t||"object"!==On(t)&&"function"!=typeof t?_n(e):t}(this,(e=Pn(t)).call.apply(e,[this].concat(o))),An(_n(r),"successHandler",(function(e){if(!r.isDestroyed()&&"function"==typeof r.successCallback){var t=e.entries.map((function(e){var t;return"group"===e.type?t=e:(t=e).email=t.login,{id:e.id,name:e.name,item:t}}));r.successCallback(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(r),!0).forEach((function(t){An(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e,{entries:t}))}})),r}var r,n,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}}),t&&Tn(e,t)}(t,e),r=t,(n=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing file id!");return"".concat(this.getBaseApiUrl(),"/files/").concat(e,"/collaborators")}},{key:"getFileCollaborators",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:m.Q;this.markerGet({id:e,limit:o,successCallback:t,errorCallback:r,requestData:n})}}])&&Cn(r.prototype,n),o&&Cn(r,o),t}(Ar);function In(e){return(In="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 Dn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Mn(e){return(Mn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Rn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fn(e,t){return(Fn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Nn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ln=function(e){function t(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r=function(e,t){return!t||"object"!==In(t)&&"function"!=typeof t?Rn(e):t}(this,(e=Mn(t)).call.apply(e,[this].concat(o))),Nn(Rn(r),"getCollaborations",(function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:m.Q;r.markerGet({id:e,limit:i,successCallback:t,errorCallback:n,requestData:o})})),Nn(Rn(r),"successHandler",(function(e){r.isDestroyed()||"function"!=typeof r.successCallback||r.successCallback(e)})),r}var r,n,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}}),t&&Fn(e,t)}(t,e),r=t,(n=[{key:"getUrl",value:function(e){return"getUrl(".concat(e,") should be overridden")}}])&&Dn(r.prototype,n),o&&Dn(r,o),t}(Ar);function Un(e){return(Un="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 Hn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function zn(e,t){return!t||"object"!==Un(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Bn(e){return(Bn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Vn(e,t){return(Vn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Wn=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),zn(this,Bn(t).apply(this,arguments))}var r,n,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}}),t&&Vn(e,t)}(t,e),r=t,(n=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing file ID!");return"".concat(this.getBaseApiUrl(),"/files/").concat(e,"/collaborations")}}])&&Hn(r.prototype,n),o&&Hn(r,o),t}(Ln);function qn(e){return(qn="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 Gn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Xn(e,t){return!t||"object"!==qn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Kn(e){return(Kn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $n(e,t){return($n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Qn=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Xn(this,Kn(t).apply(this,arguments))}var r,n,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}}),t&&$n(e,t)}(t,e),r=t,(n=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing folder ID!");return"".concat(this.getBaseApiUrl(),"/folders/").concat(e,"/collaborations")}}])&&Gn(r.prototype,n),o&&Gn(r,o),t}(Ln);function Yn(e){return(Yn="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 Jn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Zn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jn(Object(r),!0).forEach((function(t){oo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function eo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function to(e){return(to=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ro(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function no(e,t){return(no=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function oo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var io=function(e){function t(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r=function(e,t){return!t||"object"!==Yn(t)&&"function"!=typeof t?ro(e):t}(this,(e=to(t)).call.apply(e,[this].concat(o))),oo(ro(r),"addCollaboration",(function(e,t,n,o){var i=e.id;r.post({id:i,data:{data:Zn({item:e},t)},errorCallback:o,successCallback:n,url:r.getUrl()})})),r}var r,n,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}}),t&&no(e,t)}(t,e),r=t,(n=[{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/collaborations")}}])&&eo(r.prototype,n),o&&eo(r,o),t}(x.a),ao=r(4),so=r(32);function lo(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce((function(e,t){return t?e.concat(t.entries):e}),[]).sort((function(e,t){return Date.parse(e.created_at)-Date.parse(t.created_at)}))}var uo=r(103),co=r.n(uo);function fo(e){return(fo="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 po(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ho(e,t){return!t||"object"!==fo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function bo(e){return(bo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function mo(e,t){return(mo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var yo=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ho(this,bo(t).apply(this,arguments))}var r,n,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}}),t&&mo(e,t)}(t,e),r=t,(n=[{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/undoc/annotations")}},{key:"getUrlForId",value:function(e){return"".concat(this.getUrl(),"/").concat(e)}},{key:"createAnnotation",value:function(e,t,r,n,o,i){this.errorCode=m.eb;try{this.checkApiCallValidity(m.se,n,e)}catch(e){return void i(e,this.errorCode)}var a={description:{type:"reply"},file_version:{id:t,type:"file_version"},status:"open",type:"annotation"};this.post({id:e,data:{data:co()(a,r)},errorCallback:i,successCallback:o,url:this.getUrl()})}},{key:"deleteAnnotation",value:function(e,t,r,n,o){this.errorCode=m.lb;try{this.checkApiCallValidity(m.te,r,e)}catch(e){return void o(e,this.errorCode)}this.delete({id:e,errorCallback:o,successCallback:n,url:this.getUrlForId(t)})}},{key:"getAnnotation",value:function(e,t,r,n,o){this.errorCode=m.wb;try{this.checkApiCallValidity(m.Ae,r,e)}catch(e){return void o(e,this.errorCode)}this.get({id:e,errorCallback:o,successCallback:n,url:this.getUrlForId(t)})}},{key:"getAnnotations",value:function(e,t,r,n,o,i,a){this.errorCode=m.xb;try{this.checkApiCallValidity(m.Ae,r,e)}catch(e){return void o(e,this.errorCode)}this.markerGet({id:e,errorCallback:o,limit:i,requestData:{file_id:e,file_version_id:t},shouldFetchAll:a,successCallback:n})}}])&&po(r.prototype,n),o&&po(r,o),t}(Ar);function vo(e){return(vo="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 go(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function wo(e){return(wo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ko(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xo(e,t){return(xo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Eo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Oo=function(e){function t(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r=function(e,t){return!t||"object"!==vo(t)&&"function"!=typeof t?ko(e):t}(this,(e=wo(t)).call.apply(e,[this].concat(o))),Eo(ko(r),"permissions",{}),Eo(ko(r),"mapAppActivityItem",(function(e){var t=e.activity_template,n=e.app,o=e.created_by,i=e.id,a=e.occurred_at,s=e.rendered_text,l=e.type;return{activity_template:t,app:n,created_at:a,created_by:o,id:i,permissions:{can_delete:r.permissions.can_delete},rendered_text:s,type:l}})),Eo(ko(r),"successHandler",(function(e){var t=e.entries,n=void 0===t?[]:t;if(!r.isDestroyed()&&"function"==typeof r.successCallback){var o=n.map(r.mapAppActivityItem);r.successCallback({entries:o,total_count:o.length})}})),Eo(ko(r),"errorHandler",(function(e){if(!r.isDestroyed()||"function"==typeof r.errorCallback){var t=e.response;t.status===m.Nd?r.successHandler({entries:[],total_count:0}):r.errorCallback(e,t.status)}})),r}var r,n,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}}),t&&xo(e,t)}(t,e),r=t,(n=[{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/app_activities")}},{key:"getDeleteUrl",value:function(e){if(!e)throw new Error("Missing file id!");return"".concat(this.getUrl(),"/").concat(e)}},{key:"getAppActivity",value:function(e,t,r,n){var o={item_id:e,item_type:"file",fields:je.a.toString()};this.permissions=t,this.markerGet({id:e,successCallback:r,errorCallback:n,requestData:o})}},{key:"deleteAppActivity",value:function(e){var t=e.id,r=e.appActivityId,n=e.successCallback,o=e.errorCallback;this.errorCode=m.mb,this.delete({id:t,url:this.getDeleteUrl(r),successCallback:n,errorCallback:o})}}])&&go(r.prototype,n),o&&go(r,o),t}(Ar);function So(e){return(So="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 Co(e){return function(e){if(Array.isArray(e))return e}(e)||_o(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Po(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||_o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function _o(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function To(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function Ao(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function jo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ao(Object(r),!0).forEach((function(t){No(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ao(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Io(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Do(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mo(e,t,r){return(Mo="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ro(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r):o.value}})(e,t,r||e)}function Ro(e){return(Ro=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fo(e,t){return(Fo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function No(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Lo=m.sf,Uo="task",Ho=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==So(t)&&"function"!=typeof t?Do(e):t}(this,Ro(t).call(this,e)),No(Do(r),"deleteAnnotation",(function(e,t,n,o,i){if(r.annotationsAPI=new yo(r.options),!e.id)throw Object(Ie.a)();r.file=e,r.errorCallback=i,r.updateFeedItem({isPending:!0},t),r.annotationsAPI.deleteAnnotation(r.file.id,t,n,r.deleteFeedItem.bind(Do(r),t,o),(function(e,n){r.deleteCommentErrorCallback(e,n,t)}))})),No(Do(r),"updateTaskCollaborator",(function(e,t,n,o,i,a){if(!e.id)throw Object(Ie.a)();r.file=e,r.errorCallback=a,r.updateFeedItem({isPending:!0},t);var s=new or(r.options);r.taskCollaboratorsAPI.push(s);var l={id:n,status:o},u=function(e,n){var i;switch(o){case m.pf:i=so.a.taskApproveErrorMessage;break;case m.qf:i=so.a.taskCompleteErrorMessage;break;case m.tf:i=so.a.taskRejectErrorMessage;break;default:i=so.a.taskCompleteErrorMessage}r.updateFeedItem(r.createFeedError(i,so.a.taskActionErrorTitle),t),r.feedErrorCallback(!0,e,n)};s.updateTaskCollaborator({file:e,taskCollaborator:l,successCallback:function(n){r.updateTaskCollaboratorSuccessCallback(t,e,n,i,u)},errorCallback:u})})),No(Do(r),"updateTaskCollaboratorSuccessCallback",(function(e,t,n,o,i){r.tasksNewAPI=new Xt(r.options),r.tasksNewAPI.getTask({id:e,file:t,successCallback:function(t){r.updateFeedItem(jo({},t,{isPending:!1}),e),o(n)},errorCallback:i})})),No(Do(r),"updateTaskNew",function(){var e,t=(e=regeneratorRuntime.mark((function e(t,n){var o,a,s,l,u,c,f=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=f.length>2&&void 0!==f[2]?f[2]:i.a,a=f.length>3&&void 0!==f[3]?f[3]:i.a,t.id){e.next=4;break}throw Object(Ie.a)();case 4:return r.file=t,r.errorCallback=a,r.tasksNewAPI=new Xt(r.options),r.updateFeedItem({isPending:!0},n.id),e.prev=8,s=n.addedAssignees.filter((function(e){return e.item&&"group"===e.item.type})).map((function(e){return e.id})).map((function(e){return new en(r.options).getGroupCount({file:t,group:{id:e}})})),e.next=12,Promise.all(s);case 12:if(l=e.sent,u=l.some((function(e){return e.total_count>m.of})),c={code:m.Qb,type:"warning"},!u){e.next=18;break}return r.feedErrorCallback(!1,c,m.Qb),e.abrupt("return");case 18:return e.next=20,new Promise((function(e,o){r.tasksNewAPI.updateTaskWithDeps({file:t,task:n,successCallback:e,errorCallback:o})}));case 20:return e.next=22,new Promise((function(e,o){r.tasksNewAPI.getTask({file:t,id:n.id,successCallback:function(t){r.updateFeedItem(jo({},t,{isPending:!1}),n.id),e()},errorCallback:function(e){r.updateFeedItem({isPending:!1},n.id),r.feedErrorCallback(!1,e,m.fc),o()}})}));case 22:r.isDestroyed()||o(),e.next=29;break;case 25:e.prev=25,e.t0=e.catch(8),r.updateFeedItem({isPending:!1},n.id),r.feedErrorCallback(!1,e.t0,m.fc);case 29:case"end":return e.stop()}}),e,null,[[8,25]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){To(i,n,o,a,s,"next",e)}function s(e){To(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e,r){return t.apply(this,arguments)}}()),No(Do(r),"deleteComment",(function(e,t,n,o,i){if(r.commentsAPI=new Pt(r.options),!e.id)throw Object(Ie.a)();r.file=e,r.errorCallback=i,r.updateFeedItem({isPending:!0},t),r.commentsAPI.deleteComment({file:e,commentId:t,permissions:n,successCallback:r.deleteFeedItem.bind(Do(r),t,o),errorCallback:function(e,n){r.deleteCommentErrorCallback(e,n,t)}})})),No(Do(r),"deleteCommentErrorCallback",(function(e,t,n){r.updateFeedItem(r.createFeedError(so.a.commentDeleteErrorMessage),n),r.feedErrorCallback(!0,e,t)})),No(Do(r),"createTaskNew",(function(e,t,n,o,i,a,s,l,u){if(!e.id)throw Object(Ie.a)();r.file=e,r.errorCallback=u;var c,f=pn()("task_");a&&(c=new Date(a).toISOString());var d={created_by:{type:"task_collaborator",target:t,id:pn()(),role:"CREATOR",status:Lo},completion_rule:s,created_at:(new Date).toISOString(),due_at:c,id:f,description:n,type:Uo,assigned_to:{entries:o.map((function(e){return{id:pn()(),target:jo({},e,{avatar_url:"",type:"user"}),status:Lo,permissions:{can_delete:!1,can_update:!1},role:"ASSIGNEE",type:"task_collaborator"}})),limit:10,next_marker:null},permissions:{can_update:!1,can_delete:!1,can_create_task_collaborator:!1,can_create_task_link:!1},task_links:{entries:[{id:pn()(),type:"task_link",target:jo({type:"file"},e),permissions:{can_delete:!1,can_update:!1}}],limit:1,next_marker:null},task_type:i,status:m.sf},p={description:n,due_at:c,task_type:i,completion_rule:s},h=o.filter((function(e){return"group"===(e.item&&e.item.type)})).map((function(e){return e.id})).map((function(t){return new en(r.options).getGroupCount({file:e,group:{id:t}})}));Promise.all(h).then((function(n){var i=n.some((function(e){return e.total_count>m.of})),a={code:m.Qb,type:"warning"};i?r.feedErrorCallback(!1,a,m.Qb):(r.tasksNewAPI=new Xt(r.options),r.tasksNewAPI.createTaskWithDeps({file:e,task:p,assignees:o,successCallback:function(e){r.addPendingItem(r.file.id,t,d),r.updateFeedItem(jo({},e,{task_links:{entries:e.task_links,next_marker:null,limit:1},assigned_to:{entries:e.assigned_to,next_marker:null,limit:e.assigned_to.length},isPending:!1}),f),l(e)},errorCallback:function(e,t){r.feedErrorCallback(!1,e,t)}}))})).catch((function(e){r.feedErrorCallback(!1,e,m.ib)}))})),No(Do(r),"deleteTaskNew",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i.a;if(!e.id)throw Object(Ie.a)();r.file=e,r.errorCallback=o,r.tasksNewAPI=new Xt(r.options),r.updateFeedItem({isPending:!0},t.id),r.tasksNewAPI.deleteTask({file:e,task:t,successCallback:r.deleteFeedItem.bind(Do(r),t.id,n),errorCallback:function(e,n){r.updateFeedItem(r.createFeedError(so.a.taskDeleteErrorMessage),t.id),r.feedErrorCallback(!0,e,n)}})})),No(Do(r),"deleteFeedItem",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.a,n=r.getCachedItems(r.file.id);if(n){var o=n.items.filter((function(t){return t.id!==e}));r.setCachedItems(r.file.id,o),r.isDestroyed()||t(e)}})),No(Do(r),"feedErrorCallback",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;e&&r.errors.push(jo({},t,{code:n})),!r.isDestroyed()&&r.errorCallback&&r.errorCallback(t,n,No({error:t},m.Td,e)),console.error(t)})),No(Do(r),"addPendingItem",(function(e,t,n){if(!t)throw Object(Ie.c)();var o=(new Date).toISOString(),i=jo({created_at:o,created_by:t,modified_at:o,isPending:!0},n),a=r.getCachedItems(r.file.id),s=a?a.items:[],l=[].concat(Po(s),[i]);return r.setCachedItems(e,l),i})),No(Do(r),"createCommentSuccessCallback",(function(e,t,n){var o=e.message,i=void 0===o?"":o,a=e.tagged_message,s=void 0===a?"":a;e.tagged_message=s||i,r.updateFeedItem(jo({},e,{isPending:!1}),t),r.isDestroyed()||n(e)})),No(Do(r),"createCommentErrorCallback",(function(e,t,n){var o=e.status===m.Jd?so.a.commentCreateConflictMessage:so.a.commentCreateErrorMessage;r.updateFeedItem(r.createFeedError(o),n),r.feedErrorCallback(!1,e,t)})),No(Do(r),"updateFeedItem",(function(e,t){if(!r.file.id)throw Object(Ie.a)();var n=r.getCachedItems(r.file.id);if(n){var o=n.items.map((function(r){return r.id===t?jo({},r,{},e):r}));return r.setCachedItems(r.file.id,o),o}return null})),No(Do(r),"createComment",(function(e,t,n,o,i,a){var s=pn()("comment_"),l={id:s,tagged_message:n,type:"comment"};if(!e.id)throw Object(Ie.a)();r.file=e,r.errorCallback=a,r.addPendingItem(r.file.id,t,l);var u={};o?u.taggedMessage=n:u.message=n,r.commentsAPI=new Pt(r.options),r.commentsAPI.createComment(jo({file:e},u,{successCallback:function(e){r.createCommentSuccessCallback(e,s,i)},errorCallback:function(e,t){r.createCommentErrorCallback(e,t,s)}}))})),No(Do(r),"updateComment",(function(e,t,n,o,i,a,s){var l={tagged_message:n};if(!e.id)throw Object(Ie.a)();r.file=e,r.errorCallback=s,r.updateFeedItem(jo({},l,{isPending:!0}),t);var u={};o?u.tagged_message=n:u.message=n,r.commentsAPI=new Pt(r.options),r.commentsAPI.updateComment(jo({file:e,commentId:t,permissions:i},u,{successCallback:function(e){r.updateFeedItem(jo({},u,{isPending:!1}),t),r.isDestroyed()||a(e)},errorCallback:function(e,t){r.feedErrorCallback(!0,e,t)}}))})),No(Do(r),"deleteAppActivity",(function(e,t,n,o){var i=e.id;if(!i)throw Object(Ie.a)();r.appActivityAPI=new Oo(r.options),r.file=e,r.errorCallback=o,r.updateFeedItem({isPending:!0},t),r.appActivityAPI.deleteAppActivity({id:i,appActivityId:t,successCallback:r.deleteFeedItem.bind(Do(r),t,n),errorCallback:function(e,n){r.deleteAppActivityErrorCallback(e,n,t)}})})),No(Do(r),"deleteAppActivityErrorCallback",(function(e,t,n){r.updateFeedItem(r.createFeedError(so.a.appActivityDeleteErrorMessage),n),r.feedErrorCallback(!0,e,t)})),r.taskCollaboratorsAPI=[],r.taskLinksAPI=[],r.errors=[],r}var r,n,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}}),t&&Fo(e,t)}(t,e),r=t,(n=[{key:"addAnnotation",value:function(e,t,r,n,o){if(!e.id)throw Object(Ie.a)();if(this.file=e,o){var i=jo({},r,{created_by:t,id:n,type:"annotation"});this.addPendingItem(this.file.id,t,i)}else this.updateFeedItem(jo({},r,{isPending:!1}),n)}},{key:"getCacheKey",value:function(e){return"".concat(m.wf).concat(e)}},{key:"getCachedItems",value:function(e){var t=this.getCache(),r=this.getCacheKey(e);return t.get(r)}},{key:"setCachedItems",value:function(e,t){var r=this.getCache(),n=this.getCacheKey(e);r.set(n,{errors:this.errors,items:t})}},{key:"feedItems",value:function(e){function t(t,r,n,o,i){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t,r,n,o){var i=this,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=a.shouldShowAnnotations,l=void 0!==s&&s,u=a.shouldShowAppActivity,c=void 0!==u&&u,f=e.id,d=e.permissions,p=void 0===d?{}:d,h=this.getCachedItems(f);if(h){var b=h.errors,m=h.items;if(b.length?n(m,b):r(m),!t)return}this.file=e,this.errors=[],this.errorCallback=o;var y=l?this.fetchAnnotations(p):Promise.resolve(),v=this.fetchVersions(),g=this.fetchCurrentVersion(),w=this.fetchComments(p),k=this.fetchTasksNew(),x=c?this.fetchAppActivity(p):Promise.resolve();Promise.all([v,g,w,k,x,y]).then((function(e){var t=Co(e),o=t[0],a=t[1],s=t.slice(2),l=i.versionsAPI.addCurrentVersion(a,o,i.file),u=lo.apply(void 0,[l].concat(Po(s)));i.isDestroyed()||(i.setCachedItems(f,u),i.errors.length?n(u,i.errors):r(u))}))}))},{key:"fetchAnnotations",value:function(e){var t=this;return this.annotationsAPI=new yo(this.options),new Promise((function(r){t.annotationsAPI.getAnnotations(t.file.id,void 0,e,r,t.fetchFeedItemErrorCallback.bind(t,r))}))}},{key:"fetchComments",value:function(e){var t=this;return this.commentsAPI=new Pt(this.options),new Promise((function(r){t.commentsAPI.getComments(t.file.id,e,r,t.fetchFeedItemErrorCallback.bind(t,r))}))}},{key:"fetchVersions",value:function(){var e=this;return this.versionsAPI=new vt(this.options),new Promise((function(t){e.versionsAPI.getVersions(e.file.id,t,e.fetchFeedItemErrorCallback.bind(e,t))}))}},{key:"fetchCurrentVersion",value:function(){var e=this;return this.versionsAPI=new vt(this.options),new Promise((function(t){var r=e.file.file_version,n=void 0===r?{}:r;e.versionsAPI.getVersion(e.file.id,n.id,t,e.fetchFeedItemErrorCallback.bind(e,t))}))}},{key:"fetchTasksNew",value:function(){var e=this;return this.tasksNewAPI=new Xt(this.options),new Promise((function(t){e.tasksNewAPI.getTasksForFile({file:{id:e.file.id},successCallback:t,errorCallback:function(r,n){return e.fetchFeedItemErrorCallback(t,r,n)}})}))}},{key:"fetchFeedItemErrorCallback",value:function(e,t,r){var n=t.status,o=Object(Ie.d)(n);this.feedErrorCallback(o,t,r),e()}},{key:"createTaskCollaboratorsforGroup",value:function(e,t,r){var n=this;if(!e.id)throw Object(Ie.a)();return this.file=e,new Promise((function(o,i){var a=new or(n.options);n.taskCollaboratorsAPI.push(a),a.createTaskCollaboratorsforGroup({file:e,task:t,group:r,successCallback:o,errorCallback:function(e){i(e)}})}))}},{key:"createTaskCollaborator",value:function(e,t,r){var n=this;if(!e.id)throw Object(Ie.a)();return this.file=e,new Promise((function(o,i){var a=new or(n.options);n.taskCollaboratorsAPI.push(a),a.createTaskCollaborator({file:e,task:t,user:r,successCallback:o,errorCallback:function(e){i(e)}})}))}},{key:"deleteTaskCollaborator",value:function(e,t,r){var n=this;if(!e.id)throw Object(Ie.a)();return this.file.id=e.id,new Promise((function(o,i){var a=new or(n.options);n.taskCollaboratorsAPI.push(a),a.deleteTaskCollaborator({file:e,task:t,taskCollaborator:{id:r.id},successCallback:o,errorCallback:function(e){i(e)}})}))}},{key:"createTaskLink",value:function(e,t){var r=this;if(!e.id)throw Object(Ie.a)();return this.file=e,new Promise((function(n,o){var i=new pr(r.options);r.taskLinksAPI.push(i),i.createTaskLink({file:e,task:t,successCallback:n,errorCallback:o})}))}},{key:"createFeedError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ao.a.errorOccured;return{error:{message:e,title:t}}}},{key:"destroyTaskCollaborators",value:function(){Array.isArray(this.taskCollaboratorsAPI)&&(this.taskCollaboratorsAPI.forEach((function(e){return e.destroy()})),this.taskCollaboratorsAPI=[])}},{key:"destroyTaskLinks",value:function(){Array.isArray(this.taskLinksAPI)&&(this.taskLinksAPI.forEach((function(e){return e.destroy()})),this.taskLinksAPI=[])}},{key:"fetchAppActivity",value:function(e){var t=this;return this.appActivityAPI=new Oo(this.options),new Promise((function(r){t.appActivityAPI.getAppActivity(t.file.id,e,r,t.fetchFeedItemErrorCallback.bind(t,r))}))}},{key:"destroy",value:function(){Mo(Ro(t.prototype),"destroy",this).call(this),this.annotationsAPI&&(this.annotationsAPI.destroy(),delete this.annotationsAPI),this.commentsAPI&&(this.commentsAPI.destroy(),delete this.commentsAPI),this.versionsAPI&&(this.versionsAPI.destroy(),delete this.versionsAPI),this.appActivityAPI&&(this.appActivityAPI.destroy(),delete this.appActivityAPI),this.tasksNewAPI&&(this.tasksNewAPI.destroy(),delete this.tasksNewAPI),this.destroyTaskCollaborators(),this.destroyTaskLinks()}}])&&Io(r.prototype,n),o&&Io(r,o),t}(x.a);function zo(e){return(zo="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 Bo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Vo(e,t){return!t||"object"!==zo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Wo(e){return(Wo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qo(e,t){return(qo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Go=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Vo(this,Wo(t).apply(this,arguments))}var r,n,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}}),t&&qo(e,t)}(t,e),r=t,(n=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing app integration id!");return"".concat(this.getBaseApiUrl(),"/app_integrations/").concat(e)}},{key:"execute",value:function(e,t,r,n){if(!e)throw new Error("Missing integration id!");if(!t)throw new Error("Missing file id!");this.errorCode=m.tb;var o="".concat(this.getUrl(e),"/execute"),i={data:{item:{id:t,type:m.zf}}};this.post({id:t,url:o,data:i,successCallback:r,errorCallback:n})}}])&&Bo(r.prototype,n),o&&Bo(r,o),t}(x.a);function Xo(e){return(Xo="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 Ko(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function $o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Qo(e,t){return!t||"object"!==Xo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Yo(e){return(Yo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Jo(e,t){return(Jo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Zo=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Qo(this,Yo(t).apply(this,arguments))}var r,n,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}}),t&&Jo(e,t)}(t,e),r=t,(n=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing file id!");return"".concat(this.getBaseApiUrl(),"/files/").concat(e,"/open_with_integrations")}},{key:"getOpenWithIntegrations",value:function(e,t,r){var n=this;this.errorCode=m.Fb,this.get({id:e,successCallback:function(e){var r=n.formatOpenWithData(e),o=n.consolidateBoxEditIntegrations(r);t(o)},errorCallback:r})}},{key:"consolidateBoxEditIntegrations",value:function(e){var t=Ko(e);return e.some((function(e){return e.appIntegrationId===m.f}))&&(t=e.filter((function(e){return e.appIntegrationId!==m.g}))),t}},{key:"formatOpenWithData",value:function(e){var t=e.items,r=e.default_app_integration;return t.map((function(e){var t=e.app_integration,n=e.disabled_reasons,o=e.display_name,i=e.display_description,a=e.display_order,s=e.is_disabled,l=e.should_show_consent_popup,u=t.id,c=t.type;return{appIntegrationId:u,displayDescription:i,disabledReasons:n||[],displayOrder:a,isDefault:!!r&&u===r.id,isDisabled:s,displayName:o,requiresConsent:l,type:c}})).sort((function(e,t){return e.displayOrder-t.displayOrder}))}}])&&$o(r.prototype,n),o&&$o(r,o),t}(x.a);function ei(e){return(ei="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 ti(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ri(e){return(ri=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ni(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oi(e,t){return(oi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ii=function(e){function t(){var e,r,n,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return r=function(e,t){return!t||"object"!==ei(t)&&"function"!=typeof t?ni(e):t}(this,(e=ri(t)).call.apply(e,[this].concat(s))),n=ni(r),i=function(e){var t=e.data;r.getCache().set(r.key,t),r.finish()},(o="queryMetadataSuccessHandler")in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i,r}var r,n,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}}),t&&oi(e,t)}(t,e),r=t,(n=[{key:"getCacheKey",value:function(e){return"".concat(m.k).concat(e)}},{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/metadata_queries/execute_read")}},{key:"isLoaded",value:function(){return this.getCache().has(this.key)}},{key:"finish",value:function(){if(!this.isDestroyed()){var e=this.getCache().get(this.key);this.successCallback(e)}}},{key:"queryMetadataRequest",value:function(e){this.isDestroyed()||(this.errorCode=m.Ub,this.xhr.post({url:this.getUrl(),data:e}).then(this.queryMetadataSuccessHandler).catch(this.errorHandler))}},{key:"queryMetadata",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!this.isDestroyed()){var o=n.context,i=void 0===o?{}:o;this.key=this.getCacheKey(i.id),this.successCallback=t,this.errorCallback=r,n.forceFetch&&this.getCache().unset(this.key),this.isLoaded()?this.finish():this.queryMetadataRequest(e)}}}])&&ti(r.prototype,n),o&&ti(r,o),t}(x.a);function ai(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var si={CHROME:"Chrome",EDGE:"Edge",FIREFOX:"Firefox",MAC:"Mac",SAFARI:"Safari",IE:"Explorer"},li=[{key:"userAgent",subString:si.EDGE,identity:si.EDGE},{key:"userAgent",subString:si.CHROME,identity:si.CHROME},{key:"userAgent",subString:"criOS",identity:si.CHROME,versionSearch:"criOS"},{key:"vendor",subString:"Apple",identity:si.SAFARI,versionSearch:"Version"},{key:"userAgent",subString:si.FIREFOX,identity:si.FIREFOX},{key:"userAgent",subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{key:"userAgent",subString:"Trident",identity:"Explorer",versionSearch:"rv"},{key:"userAgent",subString:"Gecko",identity:"Mozilla",versionSearch:"rv"}],ui=[{key:"platform",subString:"Win",identity:"Windows"},{key:"userAgent",subString:"iPod",identity:"iOS",device:"iPod"},{key:"userAgent",subString:"iPhone",identity:"iOS",device:"iPhone"},{key:"userAgent",subString:"iPad",identity:"iOS",device:"iPad"},{key:"platform",subString:si.MAC,identity:si.MAC},{key:"userAgent",subString:"Android",identity:"Android"},{key:"platform",subString:"Linux",identity:"Linux"}];function ci(e,t){for(var r,n=null,o=null,i="",a=0,s=t.length;a<s;a+=1)if(r=e[t[a].key],i=t[a].versionSearch||t[a].identity,r&&-1!==r.indexOf(t[a].subString)){n=t[a].identity,o=t[a].device;break}return{identity:n,device:o,versionSearchString:i}}function fi(e,t){var r=e.indexOf(t);if(-1===r)return"";var n=e.substring(r+t.length+1).match(/[0-9]+(?:\.[0-9]*)?/);return n&&n.length?n[0]:""}var di=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t=window.navigator,r=ci(t,li),n=ci(t,ui);this.browser=r.identity||"unknown",this.version=fi(t.userAgent,r.versionSearchString)||fi(t.appVersion,r.versionSearchString)||"unknown",this.OS=n.identity||"unknown",this.device=n.device||"unknown"}var t,r,n;return t=e,(r=[{key:"getName",value:function(){return this.browser}},{key:"getVersion",value:function(){return this.version}},{key:"isMinBrowser",value:function(e,t){return this.browser.toLowerCase()===e.toLowerCase()&&parseFloat(this.version)>=parseFloat(t)}},{key:"isSafari",value:function(){return this.browser===si.SAFARI}},{key:"isFirefox",value:function(){return this.browser===si.FIREFOX}},{key:"isChrome",value:function(){return this.browser===si.CHROME}},{key:"isIE",value:function(){return this.browser===si.IE}},{key:"isEdge",value:function(){return this.browser===si.EDGE}},{key:"isIEAndSpecificBrowserPluginSupported",value:function(e){return this.isIE()&&function(e){var t=e||"htmlfile",r=!1;try{"ActiveXObject"in window&&(r=!!new(0,window.ActiveXObject)(t))}catch(e){r=!1}return r}(e)}}])&&ai(t.prototype,r),n&&ai(t,n),e}());var pi=function(e){var t,r=[],n=0;return new Promise((function(o,i){e.forEach((function(a,s){a.then(o).catch(function(o){return function(a){r[o]=a,(n+=1)===e.length&&(t=new Error("no promises resolved"),i(t))}}(s))}))}))},hi={SAFARI_CHANNEL_NAME:"safari_channel",SECRET_STORE_COOKIE_NAME:"box-edit-secret-cookie-name",BOX_EDIT_APP_NAME:"BoxEdit",BOX_EDIT_NOT_SUPPORTED_ERROR:"box_edit_not_supported_error",BOX_EDIT_UNINSTALLED_ERROR:"box_edit_uninstalled_error",BOX_EDIT_UPGRADE_BROWSER_ERROR:"box_edit_upgrade_browser_error",BOX_EDIT_SAFARI_ERROR:"box_edit_safari_error",BOX_EDIT_INSECURE_REQUESTS_UPGRADED_ERROR:"box_edit_insecure_requests_upgraded_error",BOX_TOOLS_PLUGIN_NAME:"Box.BoxTools",BOX_SECURE_LOCAL_BASE_URL:"https://edit.boxlocalhost.com:",BOX_UNSECURE_LOCAL_BASE_URL:"http://127.0.0.1:",ACTIVEX_CHANNEL_NAME:"activex_channel",HTTP_CHANNEL_NAME:"http_channel",HTTPS_CHANNEL_NAME:"https_channel",OPERATION_STATUS:"status",OPERATION_REQUEST:"application_request",OPERATION_COMMAND:"application_command",UNCREATED_STATUS:"uncreated",CREATED_STATUS:"created",ACTIVE_STATUS:"active",HIVE_TABLE_WEBAPP_BOXTOOLS_ANALYTICS:"webapp_boxtools_analytics",KEY_LENGTH:16,KEY_ID_LENGTH:8,IV:"75392C57F66CE7E7EF47110410280DD7",OUTPUT_EVENT:"box_extension_output",REQUEST_ID_PRE:"BOX-EXT-REQ-ID-",REQUEST_TIMEOUT_RESPONSE_CODE:408,EXTENSION_BLACKLIST:{A6P:1,AC:1,AS:1,ACR:1,ACTION:1,AIR:1,APP:1,AWK:1,BAT:1,BOXNOTE:1,CGI:1,CHM:1,CMD:1,COM:1,CSH:1,DEK:1,DLD:1,DS:1,EBM:1,ESH:1,EXE:1,EZS:1,FKY:1,FRS:1,FXP:1,GADGET:1,HMS:1,HTA:1,ICD:1,INX:1,IPF:1,ISU:1,JAR:1,JS:1,JSE:1,JSX:1,KIX:1,LNK:1,LUA:1,MCR:1,MEM:1,MPX:1,MS:1,MSI:1,MST:1,OBS:1,PAF:1,PEX:1,PIF:1,PL:1,PRC:1,PRG:1,PVD:1,PWC:1,PY:1,PYC:1,PYO:1,QPX:1,RBX:1,REG:1,RGS:1,ROX:1,RPJ:1,SCAR:1,SCR:1,SCRIPT:1,SCPT:1,SCT:1,SH:1,SHB:1,SHS:1,SPR:1,TLB:1,TMS:1,U3P:1,UDF:1,URL:1,VB:1,VBE:1,VBS:1,VBSCRIPT:1,WCM:1,WPK:1,WS:1,WSF:1,XQT:1}};function bi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function mi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var yi=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),mi(this,"buildNextRequestID",(function(){return"".concat(hi.REQUEST_ID_PRE).concat(r.window.performance.now())})),mi(this,"buildDetailsObj",(function(e,t,n){var o=n.toString(),i={data:void 0,operation:e,properties:{application:r.appName,timeout:o},req_id:r.buildNextRequestID()};if(e!==hi.OPERATION_STATUS){if(!t)throw new TypeError("Data cannot be undefined for ".concat(e));i.data=t}return i})),this.appName=t,this.window=window}var t,r,n;return t=e,(r=[{key:"sendCommand",value:function(e,t,r){return Promise.resolve("TODO")}},{key:"sendRequest",value:function(e,t,r){return Promise.resolve("TODO")}},{key:"getComServerStatus",value:function(e,t){return Promise.resolve("TODO")}},{key:"destroy",value:function(){}}])&&bi(t.prototype,r),n&&bi(t,n),e}();function vi(e){return(vi="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 gi(e){return(gi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ki(e,t){return(ki=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ei=2,Oi=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==vi(t)&&"function"!=typeof t?wi(e):t}(this,gi(t).call(this,e)),xi(wi(n),"executeOperation",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new Promise((function(i,a){var s=n.buildDetailsObj(e,t,o),l=setTimeout((function(){a(new Error({status_code:hi.REQUEST_TIMEOUT_RESPONSE_CODE}))}),r);n.reqIdToPromiseMap.set(s.req_id,{resolve:i,rejectTimeout:l}),n.executeActiveXEvent({detail:s})}))})),xi(wi(n),"repairActiveXConnection",(function(e){di.isIEAndSpecificBrowserPluginSupported(hi.BOX_TOOLS_PLUGIN_NAME)&&(n.retryAttempt>=Ei||(n.retryAttempt+=1,setTimeout((function(){n.executeActiveXEvent(e)}),100)))})),xi(wi(n),"executeActiveXEvent",(function(e){var t=n.createActiveXObjectJSRef(),r="ExecuteSync"in t;try{n.isSynchronous&&r?t.ExecuteSync(JSON.stringify(e)):t.Execute(JSON.stringify(e))}catch(t){n.repairActiveXConnection(e)}})),xi(wi(n),"createActiveXObjectJSRef",(function(){return new(0,n.window.ActiveXObject)(hi.BOX_TOOLS_PLUGIN_NAME)})),xi(wi(n),"setupActiveXCommunication",(function(){n.isActiveXExtensionListenerAttached||(n.document.addEventListener(hi.OUTPUT_EVENT,n.appExtensionEventResponseHandler),n.isActiveXExtensionListenerAttached=!0)})),xi(wi(n),"tearDownActiveXCommunication",(function(){n.isActiveXExtensionListenerAttached&&(n.document.removeEventListener(hi.OUTPUT_EVENT,n.appExtensionEventResponseHandler),n.isActiveXExtensionListenerAttached=!1)})),xi(wi(n),"appExtensionEventResponseHandler",(function(e){n.retryAttempt>0&&(n.retryAttempt=0);var t="string"==typeof e.detail?JSON.parse(e.detail):e.detail;if(n.reqIdToPromiseMap.has(t.req_id)){var r=n.reqIdToPromiseMap.get(t.req_id);if(r){clearTimeout(r.rejectTimeout),n.reqIdToPromiseMap.delete(t.req_id);var o="string"==typeof t.com_server_response.data?JSON.parse(t.com_server_response.data):t.com_server_response.data;r.resolve(o)}}})),xi(wi(n),"getComServerStatus",(function(e,t){return n.executeOperation(hi.OPERATION_STATUS,null,e,t)})),xi(wi(n),"sendRequest",(function(e,t,r){return n.executeOperation(hi.OPERATION_REQUEST,e,t,r)})),xi(wi(n),"sendCommand",(function(e,t,r){return n.executeOperation(hi.OPERATION_COMMAND,e,t,r)})),xi(wi(n),"destroy",(function(){n.tearDownActiveXCommunication()})),n.isSynchronous=r,n.channelName=hi.ACTIVEX_CHANNEL_NAME,n.reqIdToPromiseMap=new Map,n.isActiveXExtensionListenerAttached=!1,n.retryAttempt=0,n.document=document,n.window=window,n.setupActiveXCommunication(),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}}),t&&ki(e,t)}(t,e),t}(yi),Si=r(97);function Ci(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",i=window.document,a=new Date,s=[];void 0===r&&(r=a.getTime()+5184e6),a.setTime(r),s.push("".concat(e,"=").concat(encodeURIComponent(t))),0!==r&&s.push("; expires=".concat(a.toUTCString())),s.push("; path=".concat(n)),o&&s.push("; domain=".concat(o)),s.push("; secure"),i.cookie=s.join("")}function Pi(e){return(Pi="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 _i(e){return(_i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ti(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ai(e,t){return(Ai=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ji(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ii="GET",Di="POST",Mi=31536e6,Ri=17223,Fi=17224,Ni="Content-Type",Li="text/plain; charset=UTF-8",Ui="notrunning",Hi=new Si.a;function zi(){return Hi.getItem("comUseFallback")?{primary:Fi,fallback:Ri}:{primary:Ri,fallback:Fi}}var Bi=function(e){function t(e,r,n){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=function(e,t){return!t||"object"!==Pi(t)&&"function"!=typeof t?Ti(e):t}(this,_i(t).call(this,e)),ji(Ti(o),"createCORSRequest",(function(e,t){var r;try{return(r=new(0,o.window.XMLHttpRequest)).open(e,t,!0),r}catch(r){if(o.retryCounter<3)return o.retryCounter+=1,o.createCORSRequest(e,t);throw new Error("could not create xhr")}})),ji(Ti(o),"getComServerStatusInstallationPromise",(function(e){var t,r,n=new Promise((function(e,n){t=e,r=n})),i=function(e,r){o.currentPort=e,e===Ri?Hi.removeItem("comUseFallback"):Hi.setItem("comUseFallback",1),o.comServerInstallationPromiseRejected=!1,t(r)},a=zi(),s=a.primary,l=a.fallback;return o.checkInstallStatus(s,e).then(i.bind(Ti(o),s)).catch((function(t){if(t===Ui)return o.comServerInstallationPromiseRejected=!0,void r();o.checkInstallStatus(l,e).then(i.bind(Ti(o),l)).catch((function(){o.comServerInstallationPromiseRejected=!0,r()}))})),n})),ji(Ti(o),"sendComServerRequest",(function(e,t,r,n){return new Promise((function(i,a){try{var s=o.createCORSRequest(e,t);s.setRequestHeader(Ni,Li),s.onload=function(){i(s)},s.onerror=function(){a(s)},n>0&&(s.timeout=n,s.ontimeout=function(){a(s)}),setTimeout((function(){s.send(r)}),0)}catch(e){a()}}))})),ji(Ti(o),"checkInstallStatus",(function(e,t){return o.sendComServerRequest(Ii,"".concat(o.url).concat(e,"/status"),null,t).then((function(e){var t=JSON.parse(e.responseText);if(t.running)return t;throw o.comServerInstallationPromiseRejected=!0,new Error(Ui)}))})),ji(Ti(o),"getComChannel",(function(e){return function(e){var t,r,n=window.document.cookie.split("; "),o=n.length;for(r=0;r<o;r+=1)if((t=n[r].split("="))[0]===e)return t[1]?decodeURIComponent(t[1]):"";return""}("".concat(e,"-bgp-id"))})),ji(Ti(o),"setComChannel",(function(e){var t=o.getComChannel(e)||o.generateId(),r="bgp-".concat(t),n=(new Date).getTime()+Mi;return Ci("".concat(e,"-bgp-id"),t,n),Ci("bgp-".concat(t),"generic",n),r})),ji(Ti(o),"getComServerStatus",(function(e){return!o.comServerInstallationPromise||o.comServerInstallationPromiseRejected?(o.comServerInstallationPromise=null,o.comServerInstallationPromise=o.getComServerStatusInstallationPromise(e),o.comServerInstallationPromise):o.comServerInstallationPromise})),ji(Ti(o),"sendRequest",(function(e,t,r){var n="".concat(o.url).concat(o.currentPort,"/application_request?application=").concat(o.appName,"&com=").concat(o.comChannelName,"&timeout=").concat(r);return o.sendComServerRequest(Di,n,e,t).then((function(e){var t=JSON.parse(e.responseText);if(t.response_type&&"error"===t.response_type)throw new Error("Communication error: ".concat(t.message));return t}))})),ji(Ti(o),"sendCommand",(function(e,t,r){var n="".concat(o.url).concat(o.currentPort,"/application_command?application=").concat(o.appName,"&com=").concat(o.comChannelName,"&timeout=").concat(r);return o.sendComServerRequest(Di,n,e,t).then((function(e){return JSON.parse(e.responseText)}))})),ji(Ti(o),"generateId",(function(){var e=(new Date).getTime();return"xxxxxxxx".replace(/x/g,(function(){return Math.floor((e+16*Math.random())%16).toString(16)}))})),o.url=r,o.comChannelName=o.setComChannel(e),o.channelName=n,o.comServerInstallationPromise=null,o.comServerInstallationPromiseRejected=!1,o.retryCounter=0,o.sendCount=0,o.currentPort=zi().primary,o.window=window,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}}),t&&Ai(e,t)}(t,e),t}(yi);function Vi(e){return(Vi="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 Wi(e){return(Wi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gi(e,t){return(Gi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ki="box_extension_input",$i="box_extension_output",Qi=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==Vi(t)&&"function"!=typeof t?qi(e):t}(this,Wi(t).call(this,e)),Xi(qi(r),"executeOperation",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new Promise((function(i,a){var s=r.buildDetailsObj(e,t,o),l=setTimeout((function(){a(new Error({status_code:hi.REQUEST_TIMEOUT_RESPONSE_CODE}))}),n);r.reqIdToPromiseMap.set(s.req_id,{resolve:i,rejectTimeout:l}),r.createAndDispatchAppExtensionEvent({detail:s})}))})),Xi(qi(r),"setupSafariExtensionCommunication",(function(){r.isAppExtensionListenerAttached||(r.isAppExtensionListenerAttached=!0,r.document.addEventListener($i,r.appExtensionEventResponseHandler))})),Xi(qi(r),"tearDownSafariExtensionCommunication",(function(){r.isAppExtensionListenerAttached&&(r.isAppExtensionListenerAttached=!1,r.document.removeEventListener($i,r.appExtensionEventResponseHandler))})),Xi(qi(r),"appExtensionEventResponseHandler",(function(e){var t="string"==typeof e.detail?JSON.parse(e.detail):e.detail;if(r.reqIdToPromiseMap.has(t.req_id)){var n=r.reqIdToPromiseMap.get(t.req_id);if(n){clearTimeout(n.rejectTimeout),r.reqIdToPromiseMap.delete(t.req_id);var o="string"==typeof t.com_server_response.data?JSON.parse(t.com_server_response.data):t.com_server_response.data;n.resolve(o)}}})),Xi(qi(r),"createAndDispatchAppExtensionEvent",(function(e){var t=new(0,r.window.CustomEvent)(Ki,e);r.document.dispatchEvent(t)})),Xi(qi(r),"getComServerStatus",(function(e,t){return r.executeOperation(hi.OPERATION_STATUS,null,e,t)})),Xi(qi(r),"sendRequest",(function(e,t,n){return r.executeOperation(hi.OPERATION_REQUEST,e,t,n)})),Xi(qi(r),"sendCommand",(function(e,t,n){return r.executeOperation(hi.OPERATION_COMMAND,e,t,n)})),Xi(qi(r),"destroy",(function(){r.tearDownSafariExtensionCommunication()})),r.reqIdToPromiseMap=new Map,r.channelName=hi.SAFARI_CHANNEL_NAME,r.window=window,r.document=document,r.setupSafariExtensionCommunication(),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}}),t&&Gi(e,t)}(t,e),t}(yi);function Yi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Ji,Zi=55,ea="16.16299",ta="17.17134",ra=5e3;function na(e){var t=hi.BOX_UNSECURE_LOCAL_BASE_URL,r=hi.CREATED_STATUS,n=hi.HTTP_CHANNEL_NAME;return Ji.http_channel_status=r,new Bi(e,t,n)}function oa(e){var t=hi.CREATED_STATUS;return Ji.safari_channel_status=t,new Qi(e)}function ia(e){var t=hi.CREATED_STATUS;return Ji.activex_channel_status=t,new Oi(e,!0)}function aa(){var e=si.EDGE;return di.isMinBrowser(e,ta)||di.isMinBrowser(e,ea)&&di.getVersion().startsWith("16.")}function sa(){return di.isEdge()&&!aa()}function la(){var e=si.CHROME,t=si.FIREFOX;return di.isMinBrowser(e,53)||di.isMinBrowser(t,Zi)||aa()}function ua(){return di.isMinBrowser(si.SAFARI,10)}function ca(){return di.isMinBrowser(si.IE,11)}function fa(e){var t=hi.BOX_EDIT_NOT_SUPPORTED_ERROR,r=hi.BOX_EDIT_SAFARI_ERROR,n=hi.BOX_EDIT_UNINSTALLED_ERROR,o=hi.BOX_EDIT_UPGRADE_BROWSER_ERROR,i=t;return la()?i=n:ca()?i=n:di.isFirefox()||di.isChrome()||di.isSafari()&&!ua()||sa()?i=o:ua()&&(i=r),Ji.error_message=i,e(new Error(i))}function da(e){var t=ra;return"number"==typeof e&&e>=0&&(t=Math.floor(e)),t}function pa(e){var t=+(e/1e3).toFixed(2);return e<2?t/=2:t-=1,t}var ha=function(){function e(t){var r,n,o,i,a,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o=!1,(n="isInitialized")in(r=this)?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,this.channels=[],this.isInitialized=!0,i=di.getName(),a=di.getVersion(),s=hi.UNCREATED_STATUS,Ji={box_tools_version:null,browser_name:i,browser_version:a,error_message:null,installation_type:null,http_channel_status:s,https_channel_status:s,activex_channel_status:s,safari_channel_status:s},la()?this.channels.push(na(t)):ua()?this.channels.push(oa(t)):ca()&&di.isIEAndSpecificBrowserPluginSupported(hi.BOX_TOOLS_PLUGIN_NAME)?this.channels.push(function(e){var t=hi.CREATED_STATUS;return Ji.activex_channel_status=t,new Oi(e,!1)}(t)):di.isFirefox()&&!di.isMinBrowser(si.FIREFOX,Zi)||sa()||(this.channels=this.channels.concat([na(t),oa(t),ia(t)]))}var t,r,n;return t=e,(r=[{key:"getComServerStatus",value:function(e){var t=this,r=hi.ACTIVE_STATUS,n=da(e),o=pa(n),i=sa();return new Promise((function(e,a){return i?fa.call(null,a):t.channels.length?pi(t.channels.map((function(i){return i.getComServerStatus(n,o).then((function(n){return t.activeChannel=i,n&&(Ji.installation_type=n.installation_type,Ji.box_tools_version=n.version),Ji["".concat(i.channelName,"_status")]=r,e(n)}))}))).catch(fa.bind(null,a)):fa.call(null,a)}))}},{key:"sendRequest",value:function(e,t,r){var n=this,o=da(r),i=pa(o);return this.activeChannel?this.activeChannel.sendRequest(e,o,i):this.getComServerStatus().then((function(){return n.activeChannel.sendRequest(e,o,i)}))}},{key:"sendCommand",value:function(e,t){var r=this,n=da(t),o=pa(n);return this.activeChannel?this.activeChannel.sendCommand(e,n,o):this.getComServerStatus().then((function(){return r.activeChannel.sendCommand(e,n,o)}))}}])&&Yi(t.prototype,r),n&&Yi(t,n),e}();function ba(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ma(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function ya(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){ma(i,n,o,a,s,"next",e)}function s(e){ma(i,n,o,a,s,"throw",e)}a(void 0)}))}}function va(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ga;var wa=null,ka=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),wa instanceof e||(wa=this),this.extensionRequestQueue=new Map,wa}var t,r,n,o;return t=e,(r=[{key:"queueGetNativeAppNameFromLocal",value:function(e){if(this.extensionRequestQueue.has(e)){var t=this.extensionRequestQueue.get(e);if(!t)throw new Error("Race condition re: queueGetNativeAppNameFromLocal");return t.promise}var r={},n=new Promise((function(e,t){r.resolve=e,r.reject=t}));return r.promise=n,this.extensionRequestQueue.set(e,r),n}},{key:"checkBoxEditAvailability",value:function(){return this.getBoxEditAvailability()}},{key:"getBoxEditAvailability",value:function(){return this.client=new ha(hi.BOX_EDIT_APP_NAME),this.client.getComServerStatus()}},{key:"canOpenWithBoxEdit",value:(o=ya(regeneratorRuntime.mark((function e(t){var r,n,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(t.map(function(){var e=ya(regeneratorRuntime.mark((function e(t){var r,n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.getAppForExtension(t);case 3:return r=e.sent,n=[t,r],e.abrupt("return",n);case 8:return e.prev=8,e.t0=e.catch(0),i=[t,""],e.abrupt("return",i);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}()));case 2:return r=e.sent,n=new Map,r.forEach((function(e){return n.set.apply(n,ba(e))})),e.abrupt("return",Promise.resolve(n));case 6:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"openFile",value:function(e,t){var r=function(e,t,r,n){return JSON.stringify({auth_code:r,auth_token:t,browser_type:di.getName(),command_type:"launch_application",file_id:e.toString(),token_scope:n})}(e,t.data.token,t.data.auth_code,t.data.token_scope);return this.client.sendCommand(r,5e3)}},{key:"getAppForExtension",value:function(e){var t=this;try{if(function(e){var t=hi.EXTENSION_BLACKLIST,r=e.toUpperCase();return"."===r.charAt(0)&&(r=r.substr(1)),r in t}(e))throw new Error("blacklisted");var r=this.queueGetNativeAppNameFromLocal(e);return ga||(ga=setTimeout((function(){t.processExtensionRequestQueue()}),100)),r}catch(e){return Promise.reject()}}},{key:"processExtensionRequestQueue",value:function(){var e=new Map,t=[];this.extensionRequestQueue.forEach((function(r,n){e.set(n,r),t.push(n)})),this.extensionRequestQueue.clear(),ga=null;var r=function(e){return JSON.stringify({request_type:"get_default_application",extension:e})}(t);return this.client.sendRequest(r).then((function(r){if(r&&r.default_application_name){var n=r.default_application_name;"[object Object]"===Object.prototype.toString.call(n)&&(n=[n]),n.forEach((function(t){var r=Object.keys(t)[0],n=decodeURIComponent(t[r]);if(n){var o=e.get(r);o&&(o.resolve(n),e.delete(r))}}))}t.forEach((function(t){var r=e.get(t);r&&r.reject()}))}))}}])&&va(t.prototype,r),n&&va(t,n),e}();function xa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ea(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oa(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Sa=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xa(Object(r),!0).forEach((function(t){Ea(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t,{apiHost:t.apiHost||m.L,uploadHost:t.uploadHost||m.O,cache:t.cache||new n.a,language:t.language})}var t,r,o;return t=e,(r=[{key:"destroy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.fileAPI&&(this.fileAPI.destroy(),delete this.fileAPI),this.weblinkAPI&&(this.weblinkAPI.destroy(),delete this.weblinkAPI),this.plainUploadAPI&&(this.plainUploadAPI.destroy(),delete this.plainUploadAPI),this.chunkedUploadAPI&&(this.chunkedUploadAPI.destroy(),delete this.chunkedUploadAPI),this.folderAPI&&(this.folderAPI.destroy(),delete this.folderAPI),this.searchAPI&&(this.searchAPI.destroy(),delete this.searchAPI),this.recentsAPI&&(this.recentsAPI.destroy(),delete this.recentsAPI),this.versionsAPI&&(this.versionsAPI.destroy(),delete this.versionsAPI),this.fileAccessStatsAPI&&(this.fileAccessStatsAPI.destroy(),delete this.fileAccessStatsAPI),this.tasksNewAPI&&(this.tasksNewAPI.destroy(),delete this.tasksNewAPI),this.taskCollaboratorsAPI&&(this.taskCollaboratorsAPI.destroy(),delete this.taskCollaboratorsAPI),this.taskLinksAPI&&(this.taskLinksAPI.destroy(),delete this.taskLinksAPI),this.commentsAPI&&(this.commentsAPI.destroy(),delete this.commentsAPI),this.markerBasedGroupsAPI&&(this.markerBasedGroupsAPI.destroy(),delete this.markerBasedGroupsAPI),this.markerBasedUsersAPI&&(this.markerBasedUsersAPI.destroy(),delete this.markerBasedUsersAPI),this.groupsAPI&&(this.groupsAPI.destroy(),delete this.groupsAPI),this.usersAPI&&(this.usersAPI.destroy(),delete this.usersAPI),this.metadataAPI&&(this.metadataAPI.destroy(),delete this.metadataAPI),this.fileCollaboratorsAPI&&(this.fileCollaboratorsAPI.destroy(),delete this.fileCollaboratorsAPI),this.fileCollaborationsAPI&&(this.fileCollaborationsAPI.destroy(),delete this.fileCollaborationsAPI),this.folderCollaborationsAPI&&(this.folderCollaborationsAPI.destroy(),delete this.folderCollaborationsAPI),this.collaborationsAPI&&(this.collaborationsAPI.destroy(),delete this.collaborationsAPI),this.appIntegrationsAPI&&(this.appIntegrationsAPI.destroy(),delete this.appIntegrationsAPI),this.metadataQueryAPI&&(this.metadataQueryAPI.destroy(),delete this.metadataQueryAPI),this.openWithAPI&&(this.openWithAPI.destroy(),delete this.openWithAPI),this.annotationsAPI&&(this.annotationsAPI.destroy(),delete this.annotationsAPI),e&&(this.options.cache=new n.a)}},{key:"getCache",value:function(){return this.options.cache}},{key:"getAPI",value:function(e){var t;switch(e){case m.Af:t=this.getFolderAPI();break;case m.zf:t=this.getFileAPI();break;case m.Bf:t=this.getWebLinkAPI();break;default:throw new Error("Unknown Type!")}return t}},{key:"getFileAPI",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return e&&this.destroy(),this.fileAPI=new _e.a(this.options),this.fileAPI}},{key:"getWebLinkAPI",value:function(){return this.destroy(),this.weblinkAPI=new Te.a(this.options),this.weblinkAPI}},{key:"getPlainUploadAPI",value:function(){return this.destroy(),this.plainUploadAPI=new Ce(this.options),this.plainUploadAPI}},{key:"getChunkedUploadAPI",value:function(){return this.destroy(),this.chunkedUploadAPI=new me(this.options),this.chunkedUploadAPI}},{key:"getFolderAPI",value:function(){return this.destroy(),this.folderAPI=new Pe.a(this.options),this.folderAPI}},{key:"getSearchAPI",value:function(){return this.destroy(),this.searchAPI=new ze(this.options),this.searchAPI}},{key:"getRecentsAPI",value:function(){return this.destroy(),this.recentsAPI=new $e(this.options),this.recentsAPI}},{key:"getMetadataAPI",value:function(e){return e&&this.destroy(),this.metadataAPI=new En(this.options),this.metadataAPI}},{key:"getVersionsAPI",value:function(e){return e&&this.destroy(),this.versionsAPI=new vt(this.options),this.versionsAPI}},{key:"getCommentsAPI",value:function(e){return e&&this.destroy(),this.commentsAPI=new Pt(this.options),this.commentsAPI}},{key:"getTasksNewAPI",value:function(e){return e&&this.destroy(),this.tasksNewAPI=new Xt(this.options),this.tasksNewAPI}},{key:"getTaskCollaboratorsAPI",value:function(e){return e&&this.destroy(),this.taskCollaboratorsAPI=new or(this.options),this.taskCollaboratorsAPI}},{key:"getTaskLinksAPI",value:function(e){return e&&this.destroy(),this.taskLinksAPI=new pr(this.options),this.taskLinksAPI}},{key:"getFileAccessStatsAPI",value:function(e){return e&&this.destroy(),this.fileAccessStatsAPI=new gr(this.options),this.fileAccessStatsAPI}},{key:"getFileCollaboratorsAPI",value:function(e){return e&&this.destroy(),this.fileCollaboratorsAPI=new jn(this.options),this.fileCollaboratorsAPI}},{key:"getFileCollaborationsAPI",value:function(e){return e&&this.destroy(),this.fileCollaborationsAPI=new Wn(this.options),this.fileCollaborationsAPI}},{key:"getFolderCollaborationsAPI",value:function(e){return e&&this.destroy(),this.folderCollaborationsAPI=new Qn(this.options),this.folderCollaborationsAPI}},{key:"getCollaborationsAPI",value:function(e){return e&&this.destroy(),this.collaborationsAPI=new io(this.options),this.collaborationsAPI}},{key:"getMarkerBasedGroupsAPI",value:function(e){return e&&this.destroy(),this.markerBasedGroupsAPI=new Ur(this.options),this.markerBasedGroupsAPI}},{key:"getMarkerBasedUsersAPI",value:function(e){return e&&this.destroy(),this.markerBasedUsersAPI=new Kr(this.options),this.markerBasedUsersAPI}},{key:"getGroupsAPI",value:function(e){return e&&this.destroy(),this.groupsAPI=new en(this.options),this.groupsAPI}},{key:"getUsersAPI",value:function(e){return e&&this.destroy(),this.usersAPI=new fn(this.options),this.usersAPI}},{key:"getFeedAPI",value:function(e){return e&&this.destroy(),this.feedItemsAPI=new Ho(this.options),this.feedItemsAPI}},{key:"getOpenWithAPI",value:function(e){return e&&this.destroy(),this.openWithAPI=new Zo(this.options),this.openWithAPI}},{key:"getAppIntegrationsAPI",value:function(e){return e&&this.destroy(),this.appIntegrationsAPI=new Go(this.options),this.appIntegrationsAPI}},{key:"getMetadataQueryAPI",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.destroy(),this.metadataQueryAPI=new ii(this.options),this.metadataQueryAPI}},{key:"getBoxEditAPI",value:function(){return this.boxEditAPI=new ka,this.boxEditAPI}},{key:"getAnnotationsAPI",value:function(e){return e&&this.destroy(),this.annotationsAPI=new yo(this.options),this.annotationsAPI}}])&&Oa(t.prototype,r),o&&Oa(t,o),e}();t.a=Sa},,,,,,,function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=r(31),i=r(130),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(o(e))return!1;var r=n(e);return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!i(e))||(s.test(e)||!a.test(e)||null!=t&&e in Object(t))}},function(e,t,r){"use strict";var n=r(0),o=r(9),i=r(2);t.a=function(e){var t=e.className,r=void 0===t?"":t,a=e.color,s=void 0===a?i.k:a,l=e.height,u=void 0===l?16:l,c=e.title,f=e.width,d=void 0===f?16:f;return n.createElement(o.a,{className:"icon-open-with ".concat(r),height:u,title:c,viewBox:"0 0 16 16",width:d},n.createElement("path",{className:"fill-color",fill:s,fillRule:"evenodd",d:"M12 2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm0 1H4a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zm-1 2v6h-1V6.71l-4.65 4.64-.7-.7L9.29 6H5V5h6z"}))}},,function(e,t,r){(function(t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n="object"==(void 0===t?"undefined":r(t))&&t&&t.Object===Object&&t;e.exports=n}).call(this,r(36))},function(e,t){var r=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,r){var n=r(64),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,r){var n=r(370),o=r(127),i=r(31),a=r(141),s=r(128),l=r(187),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),c=!r&&o(e),f=!r&&!c&&a(e),d=!r&&!c&&!f&&l(e),p=r||c||f||d,h=p?n(e.length,String):[],b=h.length;for(var m in e)!t&&!u.call(e,m)||p&&("length"==m||f&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,b))||h.push(m);return h}},function(e,t){e.exports=function(e,t){return function(r){return e(t(r))}}},function(e,t,r){(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=r(38),i="object"==n(t)&&t&&!t.nodeType&&t,a=i&&"object"==n(e)&&e&&!e.nodeType&&e,s=a&&a.exports===i?o.Buffer:void 0,l=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=l?l(r):new e.constructor(r);return e.copy(n),n}}).call(this,r(86)(e))},function(e,t){e.exports=function(){return[]}},function(e,t,r){var n=r(167),o=r(168),i=r(166),a=r(217),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,i(e)),e=o(e);return t}:a;e.exports=s},function(e,t,r){var n=r(167),o=r(31);e.exports=function(e,t,r){var i=t(e);return o(e)?i:n(i,r(e))}},function(e,t,r){var n=r(219),o=r(218),i=r(129);e.exports=function(e){return n(e,i,o)}},function(e,t,r){var n=r(169);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},function(e,t,r){var n=r(257),o=r(168),i=r(165);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:n(o(e))}},function(e,t,r){var n=r(55),o=r(168),i=r(40),a="[object Object]",s=Function.prototype,l=Object.prototype,u=s.toString,c=l.hasOwnProperty,f=u.call(Object);e.exports=function(e){if(!i(e)||n(e)!=a)return!1;var t=o(e);if(null===t)return!0;var r=c.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==f}},function(e,t,r){var n=r(403),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=i[a];return u[t]=r(l),n(e,this,u)}}},function(e,t,r){var n=r(404),o=r(406)(n);e.exports=o},function(e,t,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},function(e,t,r){"use strict";var n=r(34),o=r(424),i=r(426),a=r(427),s=r(428),l=r(228);e.exports=function(e){return new Promise((function(t,u){var c=e.data,f=e.headers;n.isFormData(c)&&delete f["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",h=e.auth.password||"";f.Authorization="Basic "+btoa(p+":"+h)}if(d.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,n={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:r,config:e,request:d};o(t,u,n),d=null}},d.onerror=function(){u(l("Network Error",e,null,d)),d=null},d.ontimeout=function(){u(l("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",d)),d=null},n.isStandardBrowserEnv()){var b=r(429),m=(e.withCredentials||s(e.url))&&e.xsrfCookieName?b.read(e.xsrfCookieName):void 0;m&&(f[e.xsrfHeaderName]=m)}if("setRequestHeader"in d&&n.forEach(f,(function(e,t){void 0===c&&"content-type"===t.toLowerCase()?delete f[t]:d.setRequestHeader(t,e)})),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){d&&(d.abort(),u(e),d=null)})),void 0===c&&(c=null),d.send(c)}))}},function(e,t,r){"use strict";var n=r(425);e.exports=function(e,t,r,o,i){var a=new Error(e);return n(a,t,r,o,i)}},function(e,t,r){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,r){var n=r(441),o=r(442),i=r(445),a=RegExp("['’]","g");e.exports=function(e){return function(t){return n(i(o(t).replace(a,"")),e,"")}}},function(e,t,r){var n=r(161),o=r(109);e.exports=function(e,t,r){(void 0===r||o(e[t],r))&&(void 0!==r||t in e)||n(e,t,r)}},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},,,function(e,t,r){},,,,,,,function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o,i="object"===("undefined"==typeof Reflect?"undefined":n(Reflect))?Reflect:null,a=i&&"function"==typeof i.apply?i.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};o=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function l(){l.init.call(this)}e.exports=l,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var u=10;function c(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function f(e,t,r,o){var i,a,s,l;if("function"!=typeof r)throw new TypeError('The "listener" argument must be of type Function. Received type '+n(r));if(void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),s=a[t]),void 0===s)s=a[t]=r,++e._eventsCount;else if("function"==typeof s?s=a[t]=o?[r,s]:[s,r]:o?s.unshift(r):s.push(r),(i=c(e))>0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,l=u,console&&console.warn&&console.warn(l)}return e}function d(){for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,a(this.listener,this.target,e))}function p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=d.bind(n);return o.listener=r,n.wrapFn=o,o}function h(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):m(o,o.length)}function b(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},l.prototype.getMaxListeners=function(){return c(this)},l.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var s=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)a(l,this,t);else{var u=l.length,c=m(l,u);for(r=0;r<u;++r)a(c[r],this,t)}return!0},l.prototype.addListener=function(e,t){return f(this,e,t,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(e,t){return f(this,e,t,!0)},l.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+n(t));return this.on(e,p(this,e,t)),this},l.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+n(t));return this.prependListener(e,p(this,e,t)),this},l.prototype.removeListener=function(e,t){var r,o,i,a,s;if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+n(t));if(void 0===(o=this._events))return this;if(void 0===(r=o[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete o[e],o.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,a=r.length-1;a>=0;a--)if(r[a]===t||r[a].listener===t){s=r[a].listener,i=a;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(o[e]=r[0]),void 0!==o.removeListener&&this.emit("removeListener",e,s||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},l.prototype.listeners=function(e){return h(this,e,!0)},l.prototype.rawListeners=function(e){return h(this,e,!1)},l.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):b.call(e,t)},l.prototype.listenerCount=b,l.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]}},function(e,t,r){var n=r(231)((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}));e.exports=n},function(module,exports,__webpack_require__){(function(process,global,module){var __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(e){return(_typeof="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)}
/*
 * [js-sha1]{@link https://github.com/emn178/js-sha1}
 *
 * @version 0.6.0
 * @author Chen, Yi-Cyuan [emn178@gmail.com]
 * @copyright Chen, Yi-Cyuan 2014-2017
 * @license MIT
 */!function(){"use strict";var root="object"===("undefined"==typeof window?"undefined":_typeof(window))?window:{},NODE_JS=!root.JS_SHA1_NO_NODE_JS&&"object"===(void 0===process?"undefined":_typeof(process))&&process.versions&&process.versions.node;NODE_JS&&(root=global);var COMMON_JS=!root.JS_SHA1_NO_COMMON_JS&&"object"===_typeof(module)&&module.exports,AMD=__webpack_require__(108),HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[],createOutputMethod=function(e){return function(t){return new Sha1(!0).update(t)[e]()}},createMethod=function(){var e=createOutputMethod("hex");NODE_JS&&(e=nodeWrap(e)),e.create=function(){return new Sha1},e.update=function(t){return e.create().update(t)};for(var t=0;t<OUTPUT_TYPES.length;++t){var r=OUTPUT_TYPES[t];e[r]=createOutputMethod(r)}return e},nodeWrap=function nodeWrap(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(e){if("string"==typeof e)return crypto.createHash("sha1").update(e,"utf8").digest("hex");if(e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(void 0===e.length)return method(e);return crypto.createHash("sha1").update(new Buffer(e)).digest("hex")};return nodeMethod};function Sha1(e){e?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Sha1.prototype.update=function(e){if(!this.finalized){var t="string"!=typeof e;t&&e.constructor===root.ArrayBuffer&&(e=new Uint8Array(e));for(var r,n,o=0,i=e.length||0,a=this.blocks;o<i;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),t)for(n=this.start;o<i&&n<64;++o)a[n>>2]|=e[o]<<SHIFT[3&n++];else for(n=this.start;o<i&&n<64;++o)(r=e.charCodeAt(o))<128?a[n>>2]|=r<<SHIFT[3&n++]:r<2048?(a[n>>2]|=(192|r>>6)<<SHIFT[3&n++],a[n>>2]|=(128|63&r)<<SHIFT[3&n++]):r<55296||r>=57344?(a[n>>2]|=(224|r>>12)<<SHIFT[3&n++],a[n>>2]|=(128|r>>6&63)<<SHIFT[3&n++],a[n>>2]|=(128|63&r)<<SHIFT[3&n++]):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++o)),a[n>>2]|=(240|r>>18)<<SHIFT[3&n++],a[n>>2]|=(128|r>>12&63)<<SHIFT[3&n++],a[n>>2]|=(128|r>>6&63)<<SHIFT[3&n++],a[n>>2]|=(128|63&r)<<SHIFT[3&n++]);this.lastByteIndex=n,this.bytes+=n-this.start,n>=64?(this.block=a[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha1.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha1.prototype.hash=function(){var e,t,r=this.h0,n=this.h1,o=this.h2,i=this.h3,a=this.h4,s=this.blocks;for(e=16;e<80;++e)t=s[e-3]^s[e-8]^s[e-14]^s[e-16],s[e]=t<<1|t>>>31;for(e=0;e<20;e+=5)r=(t=(n=(t=(o=(t=(i=(t=(a=(t=r<<5|r>>>27)+(n&o|~n&i)+a+1518500249+s[e]<<0)<<5|a>>>27)+(r&(n=n<<30|n>>>2)|~r&o)+i+1518500249+s[e+1]<<0)<<5|i>>>27)+(a&(r=r<<30|r>>>2)|~a&n)+o+1518500249+s[e+2]<<0)<<5|o>>>27)+(i&(a=a<<30|a>>>2)|~i&r)+n+1518500249+s[e+3]<<0)<<5|n>>>27)+(o&(i=i<<30|i>>>2)|~o&a)+r+1518500249+s[e+4]<<0,o=o<<30|o>>>2;for(;e<40;e+=5)r=(t=(n=(t=(o=(t=(i=(t=(a=(t=r<<5|r>>>27)+(n^o^i)+a+1859775393+s[e]<<0)<<5|a>>>27)+(r^(n=n<<30|n>>>2)^o)+i+1859775393+s[e+1]<<0)<<5|i>>>27)+(a^(r=r<<30|r>>>2)^n)+o+1859775393+s[e+2]<<0)<<5|o>>>27)+(i^(a=a<<30|a>>>2)^r)+n+1859775393+s[e+3]<<0)<<5|n>>>27)+(o^(i=i<<30|i>>>2)^a)+r+1859775393+s[e+4]<<0,o=o<<30|o>>>2;for(;e<60;e+=5)r=(t=(n=(t=(o=(t=(i=(t=(a=(t=r<<5|r>>>27)+(n&o|n&i|o&i)+a-1894007588+s[e]<<0)<<5|a>>>27)+(r&(n=n<<30|n>>>2)|r&o|n&o)+i-1894007588+s[e+1]<<0)<<5|i>>>27)+(a&(r=r<<30|r>>>2)|a&n|r&n)+o-1894007588+s[e+2]<<0)<<5|o>>>27)+(i&(a=a<<30|a>>>2)|i&r|a&r)+n-1894007588+s[e+3]<<0)<<5|n>>>27)+(o&(i=i<<30|i>>>2)|o&a|i&a)+r-1894007588+s[e+4]<<0,o=o<<30|o>>>2;for(;e<80;e+=5)r=(t=(n=(t=(o=(t=(i=(t=(a=(t=r<<5|r>>>27)+(n^o^i)+a-899497514+s[e]<<0)<<5|a>>>27)+(r^(n=n<<30|n>>>2)^o)+i-899497514+s[e+1]<<0)<<5|i>>>27)+(a^(r=r<<30|r>>>2)^n)+o-899497514+s[e+2]<<0)<<5|o>>>27)+(i^(a=a<<30|a>>>2)^r)+n-899497514+s[e+3]<<0)<<5|n>>>27)+(o^(i=i<<30|i>>>2)^a)+r-899497514+s[e+4]<<0,o=o<<30|o>>>2;this.h0=this.h0+r<<0,this.h1=this.h1+n<<0,this.h2=this.h2+o<<0,this.h3=this.h3+i<<0,this.h4=this.h4+a<<0},Sha1.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3,o=this.h4;return HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]},Sha1.prototype.toString=Sha1.prototype.hex,Sha1.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3,o=this.h4;return[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,r>>24&255,r>>16&255,r>>8&255,255&r,n>>24&255,n>>16&255,n>>8&255,255&n,o>>24&255,o>>16&255,o>>8&255,255&o]},Sha1.prototype.array=Sha1.prototype.digest,Sha1.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(20),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),e};var exports=createMethod();COMMON_JS?module.exports=exports:(root.sha1=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))}()}).call(this,__webpack_require__(195),__webpack_require__(36),__webpack_require__(86)(module))},function(e,t,r){var n;
/*!
 * jsUri
 * https://github.com/derek-watson/jsUri
 *
 * Copyright 2013, Derek Watson
 * Released under the MIT license.
 *
 * Includes parseUri regular expressions
 * http://blog.stevenlevithan.com/archives/parseuri
 * Copyright 2007, Steven Levithan
 * Released under the MIT license.
 */!function(o){var i={starts_with_slashes:/^\/+/,ends_with_slashes:/\/+$/,pluses:/\+/g,query_separator:/[&;]/,uri_parser:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*)(?::([^:@]*))?)?@)?(\[[0-9a-fA-F:.]+\]|[^:\/?#]*)(?::(\d+|(?=:)))?(:)?)((((?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/};function a(e){return e&&(e=e.toString().replace(i.pluses,"%20"),e=decodeURIComponent(e)),e}function s(e){var t,r,n,o,s,l,u,c=[];if(null==e||""===e)return c;for(0===e.indexOf("?")&&(e=e.substring(1)),t=0,u=(r=e.toString().split(i.query_separator)).length;t<u;t++)0!==(o=(n=r[t]).indexOf("="))&&(s=a(n.substring(0,o)),l=a(n.substring(o+1)),c.push(-1===o?[n,null]:[s,l]));return c}function l(e){this.uriParts=function(e){var t=i.uri_parser.exec(e||""),r={};return["source","protocol","authority","userInfo","user","password","host","port","isColonUri","relative","path","directory","file","query","anchor"].forEach((function(e,n){r[e]=t[n]||""})),r}(e),this.queryPairs=s(this.uriParts.query),this.hasAuthorityPrefixUserPref=null}Array.prototype.forEach||(Array.prototype.forEach=function(e,t){var r,n;if(null==this)throw new TypeError(" this is null or not defined");var o=Object(this),i=o.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(r=t),n=0;n<i;){var a;n in o&&(a=o[n],e.call(r,a,n,o)),n++}}),["protocol","userInfo","host","port","path","anchor"].forEach((function(e){l.prototype[e]=function(t){return void 0!==t&&(this.uriParts[e]=t),this.uriParts[e]}})),l.prototype.hasAuthorityPrefix=function(e){return void 0!==e&&(this.hasAuthorityPrefixUserPref=e),null===this.hasAuthorityPrefixUserPref?-1!==this.uriParts.source.indexOf("//"):this.hasAuthorityPrefixUserPref},l.prototype.isColonUri=function(e){if(void 0===e)return!!this.uriParts.isColonUri;this.uriParts.isColonUri=!!e},l.prototype.query=function(e){var t,r,n,o="";for(void 0!==e&&(this.queryPairs=s(e)),t=0,n=this.queryPairs.length;t<n;t++)r=this.queryPairs[t],o.length>0&&(o+="&"),null===r[1]?o+=r[0]:(o+=r[0],o+="=",void 0!==r[1]&&(o+=encodeURIComponent(r[1])));return o.length>0?"?"+o:o},l.prototype.getQueryParamValue=function(e){var t,r,n;for(r=0,n=this.queryPairs.length;r<n;r++)if(e===(t=this.queryPairs[r])[0])return t[1]},l.prototype.getQueryParamValues=function(e){var t,r,n,o=[];for(t=0,n=this.queryPairs.length;t<n;t++)e===(r=this.queryPairs[t])[0]&&o.push(r[1]);return o},l.prototype.deleteQueryParam=function(e,t){var r,n,o,i,s,l=[];for(r=0,s=this.queryPairs.length;r<s;r++)o=a((n=this.queryPairs[r])[0])===a(e),i=n[1]===t,(1!==arguments.length||o)&&(2!==arguments.length||o&&i)||l.push(n);return this.queryPairs=l,this},l.prototype.addQueryParam=function(e,t,r){return 3===arguments.length&&-1!==r?(r=Math.min(r,this.queryPairs.length),this.queryPairs.splice(r,0,[e,t])):arguments.length>0&&this.queryPairs.push([e,t]),this},l.prototype.hasQueryParam=function(e){var t,r=this.queryPairs.length;for(t=0;t<r;t++)if(this.queryPairs[t][0]==e)return!0;return!1},l.prototype.replaceQueryParam=function(e,t,r){var n,o,i=-1,s=this.queryPairs.length;if(3===arguments.length){for(n=0;n<s;n++)if(a((o=this.queryPairs[n])[0])===a(e)&&decodeURIComponent(o[1])===a(r)){i=n;break}i>=0&&this.deleteQueryParam(e,a(r)).addQueryParam(e,t,i)}else{for(n=0;n<s;n++)if(a((o=this.queryPairs[n])[0])===a(e)){i=n;break}this.deleteQueryParam(e),this.addQueryParam(e,t,i)}return this},["protocol","hasAuthorityPrefix","isColonUri","userInfo","host","port","path","query","anchor"].forEach((function(e){var t="set"+e.charAt(0).toUpperCase()+e.slice(1);l.prototype[t]=function(t){return this[e](t),this}})),l.prototype.scheme=function(){var e="";return this.protocol()?(e+=this.protocol(),this.protocol().indexOf(":")!==this.protocol().length-1&&(e+=":"),e+="//"):this.hasAuthorityPrefix()&&this.host()&&(e+="//"),e},l.prototype.origin=function(){var e=this.scheme();return this.userInfo()&&this.host()&&(e+=this.userInfo(),this.userInfo().indexOf("@")!==this.userInfo().length-1&&(e+="@")),this.host()&&(e+=this.host(),(this.port()||this.path()&&this.path().substr(0,1).match(/[0-9]/))&&(e+=":"+this.port())),e},l.prototype.addTrailingSlash=function(){var e=this.path()||"";return"/"!==e.substr(-1)&&this.path(e+"/"),this},l.prototype.toString=function(){var e,t=this.origin();return this.isColonUri()?this.path()&&(t+=":"+this.path()):this.path()?(e=this.path(),i.ends_with_slashes.test(t)||i.starts_with_slashes.test(e)?(t&&t.replace(i.ends_with_slashes,"/"),e=e.replace(i.starts_with_slashes,"/")):t+="/",t+=e):this.host()&&(this.query().toString()||this.anchor())&&(t+="/"),this.query().toString()&&(t+=this.query().toString()),this.anchor()&&(0!==this.anchor().indexOf("#")&&(t+="#"),t+=this.anchor()),t},l.prototype.clone=function(){return new l(this.toString())},void 0===(n=function(){return l}.call(t,r,t,e))||(e.exports=n)}()},,function(e,t,r){"use strict";var n=r(243),o=r.n(n),i=r(35),a=r.n(i);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u={language:"en-US",messages:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},{"be.accessStatsPermissionsError":"Sorry, you do not have permission to see the access stats for this file.","be.activityFeed.fullDateTime":"{time, date, full} at {time, time, short}","be.activityFeedItemApiError":"There was a problem loading the activity feed. Please refresh the page or try again later.","be.activitySidebar.activityFeed.annotationMissingError":"This comment no longer exists","be.activitySidebar.activityFeed.commentMissingError":"This comment no longer exists","be.activitySidebar.activityFeed.feedInlineErrorTitle":"Error","be.activitySidebar.activityFeed.taskMissingError":"This task no longer exists","be.add":"Add","be.additionalTab.blockedByShieldAccessPolicy":"Use of this app has been disabled by the applied access policy","be.api.appActivityDeleteErrorMessage":"There was an error deleting this item.","be.api.commentCreateConflictMessage":"This comment already exists.","be.api.commentCreateErrorMessage":"There was an error creating this comment.","be.api.commentDeleteErrorMessage":"There was an error deleting this comment.","be.api.taskActionErrorTitle":"Error","be.api.taskApproveErrorMessage":"An error has occurred while approving this task. Please refresh the page and try again.","be.api.taskCompleteErrorMessage":"An error has occurred while completing this task. Please refresh the page and try again.","be.api.taskCreateErrorMessage":"An error occurred while creating this task. Please try again.","be.api.taskDeleteErrorMessage":"There was an error while deleting this task. Please refresh the page and try again.","be.api.taskGroupExceedsWarningTitle":"One or more groups can not receive this task as a group size cannot exceed the limit of {max} assignees per group.","be.api.taskRejectErrorMessage":"An error has occurred while rejecting this task. Please refresh the page and try again.","be.appActivity.altIcon":"{appActivityName} Icon","be.appActivity.deleteMenuItem":"Delete","be.appActivity.deletePrompt":"Are you sure you want to permanently delete this app activity?","be.back":"Back","be.boxEditBlacklistedError":"This file cannot be opened locally","be.boxEditErrorBlockedByPolicy":"Local editing of this content has been disabled based on an access policy","be.boxToolsInstallMessage":"Install {boxTools} to open this file on your desktop","be.cancel":"Cancel","be.choose":"Choose","be.close":"Close","be.collapse":"Collapse","be.contentSharing.badRequestError":"The request for this item was malformed.","be.contentSharing.collaboratorsLoadingError":"Could not retrieve collaborators for this item.","be.contentSharing.getContactsError":"Could not retrieve contacts.","be.contentSharing.loadingError":"Could not load shared link for this item.","be.contentSharing.noAccessError":"You do not have access to this item.","be.contentSharing.notFoundError":"Could not find shared link for this item.","be.contentSharing.sendInvitesError":"Could not send invites.","be.contentSharing.sendInvitesSuccess":"Successfully invited collaborators.","be.contentSharing.sharedLinkRemovalSuccess":"The shared link for this item was removed.","be.contentSharing.sharedLinkSettingsUpdateSuccess":"The shared link for this item was successfully updated.","be.contentSharing.sharedLinkUpdateError":"Could not update the shared link for this item.","be.contentSidebar.activityFeed.annotationActivity.annotationActivityDeleteMenuItem":"Delete","be.contentSidebar.activityFeed.annotationActivity.annotationActivityDeletePrompt":"Are you sure you want to permanently delete this comment?","be.contentSidebar.activityFeed.annotationActivity.annotationActivityPostedFullDateTime":"{time, date, full} at {time, time, short}","be.contentSidebar.activityFeed.annotationActivityPageItem":"Page {number}","be.contentSidebar.activityFeed.annotationActivityVersionLink":"Version {number}","be.contentSidebar.activityFeed.annotationActivityVersionUnavailable":"Version Unavailable","be.contentSidebar.activityFeed.comment.commentDeleteMenuItem":"Delete","be.contentSidebar.activityFeed.comment.commentDeletePrompt":"Are you sure you want to permanently delete this comment?","be.contentSidebar.activityFeed.comment.commentEditMenuItem":"Modify","be.contentSidebar.activityFeed.comment.commentPostedFullDateTime":"{time, date, full} at {time, time, short}","be.contentSidebar.activityFeed.commentForm.approvalAddAssignee":"Add an assignee","be.contentSidebar.activityFeed.commentForm.approvalAddTask":"Add Task","be.contentSidebar.activityFeed.commentForm.approvalAddTaskTooltip":"Assigning a task to someone will send them a notification with the message in the comment box and allow them to approve or deny.","be.contentSidebar.activityFeed.commentForm.approvalAssignees":"Assignees","be.contentSidebar.activityFeed.commentForm.approvalDueDate":"Due Date","be.contentSidebar.activityFeed.commentForm.approvalSelectDate":"Select a date","be.contentSidebar.activityFeed.commentForm.atMentionTip":"@mention users to notify them.","be.contentSidebar.activityFeed.commentForm.commentCancel":"Cancel","be.contentSidebar.activityFeed.commentForm.commentLabel":"Comment","be.contentSidebar.activityFeed.commentForm.commentPost":"Post","be.contentSidebar.activityFeed.commentForm.commentWrite":"Write a comment","be.contentSidebar.activityFeed.commmon.showOriginalMessage":"Show Original","be.contentSidebar.activityFeed.common.translateMessage":"Translate","be.contentSidebar.activityFeed.task.taskAnyAffordanceTooltip":"Only one assignee is required to complete this task","be.contentSidebar.activityFeed.task.taskDeleteMenuItem":"Delete task","be.contentSidebar.activityFeed.task.taskDeletePrompt":"Are you sure you want to permanently delete this task?","be.contentSidebar.activityFeed.task.taskEditMenuItem":"Modify task","be.contentSidebar.activityFeed.task.taskMultipleFilesAffordanceTooltip":"There are multiple files associated with this task","be.contentSidebar.activityFeed.taskForm.taskAnyCheckboxLabel":"Only one assignee is required to complete this task","be.contentSidebar.activityFeed.taskForm.taskAnyInfoGroupTooltip":"Selecting this option will require only one assignee to complete this task. This will include assignees across all groups.","be.contentSidebar.activityFeed.taskForm.taskAnyInfoTooltip":"By default, all assignees are required to take action before a task is complete. Selecting this option will require only one assignee to complete this task.","be.contentSidebar.activityFeed.taskForm.taskApprovalAssigneeRemovalWarningMessage":"Unable to remove assignee(s) because the task is now approved.","be.contentSidebar.activityFeed.taskForm.taskCreateErrorTitle":"Error","be.contentSidebar.activityFeed.taskForm.taskCreateGroupLabel":"Group","be.contentSidebar.activityFeed.taskForm.taskEditWarningTitle":"Task Updated with Errors","be.contentSidebar.activityFeed.taskForm.taskGeneralAssigneeRemovalWarningMessage":"Unable to remove assignee(s) because the task is now completed.","be.contentSidebar.activityFeed.taskForm.taskGroupExceedsWarningTitle":"Exceeded max assignees per group","be.contentSidebar.activityFeed.taskForm.taskUpdateErrorMessage":"An error occurred while modifying this task. Please try again.","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormCancelLabel":"Cancel","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormDueDateLabel":"Due Date","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormMessageLabel":"Message","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormSelectAssigneesLabel":"Select Assignees","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormSubmitLabel":"Create","be.contentSidebar.activityFeed.taskForm.tasksEditTaskFormSubmitLabel":"Update","be.contentSidebar.activityFeed.taskNew.taskAssignmentCompleted":"Completed","be.contentSidebar.activityFeed.taskNew.taskCollaboratorLoadErrorMessage":"An error has occurred while loading collaborators for this task. Please try again.","be.contentSidebar.activityFeed.taskNew.taskDueDateLabel":"Due: {date}","be.contentSidebar.activityFeed.taskNew.taskFeedStatusDue":"DUE {dateTime}","be.contentSidebar.activityFeed.taskNew.taskShowLessAssignees":"Show Less","be.contentSidebar.activityFeed.taskNew.taskShowMoreAssignees":"Show {additionalAssigneeCount} More","be.contentSidebar.activityFeed.taskNew.taskShowMoreAssigneesOverflow":"{additionalAssigneeCount, plural, one {Show #+ More} other {Show #+ More}}","be.contentSidebar.activityFeed.taskNew.tasksFeedApproveAction":"Approve","be.contentSidebar.activityFeed.taskNew.tasksFeedApprovedLabel":"Approved","be.contentSidebar.activityFeed.taskNew.tasksFeedApprovedUppercaseLabel":"APPROVED","be.contentSidebar.activityFeed.taskNew.tasksFeedAssigneeListTitle":"Assignees","be.contentSidebar.activityFeed.taskNew.tasksFeedCompleteAction":"Mark as Complete","be.contentSidebar.activityFeed.taskNew.tasksFeedCompletedLabel":"Completed","be.contentSidebar.activityFeed.taskNew.tasksFeedCompletedUppercaseLabel":"COMPLETED","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineApproval":"{user} assigned an Approval Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineApprovalCurrentUser":"{user} assigned you an Approval Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineGeneral":"{user} assigned a Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineGeneralCurrentUser":"{user} assigned you a Task","be.contentSidebar.activityFeed.taskNew.tasksFeedInProgressLabel":"In Progress","be.contentSidebar.activityFeed.taskNew.tasksFeedInProgressUppercaseLabel":"IN PROGRESS","be.contentSidebar.activityFeed.taskNew.tasksFeedMoreAssigneesLabel":"See all assignees","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectAction":"Reject","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectedLabel":"Rejected","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectedUppercaseLabel":"REJECTED","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusApproved":"Approved {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusCompleted":"Completed {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusRejected":"Rejected {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedViewDetailsAction":"View Task Details","be.contentSidebar.addTask":"Add Task","be.contentSidebar.addTask.approval":"Approval Task","be.contentSidebar.addTask.approval.description":"Assignees will be responsible for approving or rejecting tasks","be.contentSidebar.addTask.approval.title":"Create Approval Task","be.contentSidebar.addTask.general":"General Task","be.contentSidebar.addTask.general.description":"Assignees will be responsible for marking tasks as complete","be.contentSidebar.addTask.general.title":"Create General Task","be.contentSidebar.editTask.approval.title":"Modify Approval Task","be.contentSidebar.editTask.general.title":"Modify General Task","be.copy":"Copy","be.create":"Create","be.createDialogErrorInUse":"A folder with the same name already exists.","be.createDialogErrorInvalid":"This is an invalid folder name.","be.createDialogErrorTooLong":"This folder name is too long.","be.createDialogLabel":"New Folder","be.createDialogText":"Please enter a name.","be.currentUserErrorHeaderMessage":"Something went wrong when fetching the current user.","be.dateASC":"Date: Oldest → Newest","be.dateDESC":"Date: Newest → Oldest","be.defaultErrorMaskHeaderMessage":"We’re sorry, something went wrong.","be.defaultErrorMaskSubHeaderMessage":"Please refresh the page or try again later.","be.defaultInlineErrorContentMessage":"Please try again later.","be.defaultOpenWithDescription":"Open this file with a partner service","be.defaultSkill":"Skill Card","be.delete":"Delete","be.deleteDialogFileText":"Are you sure you want to delete {name}?","be.deleteDialogFolderText":"Are you sure you want to delete {name} and all its contents?","be.deleteDialogLabel":"Confirm Delete","be.description":"Description","be.descriptionPlaceholder":"Enter a description","be.download":"Download","be.drawAnnotation":"Drawing annotation mode","be.editLabel":"Edit","be.emptyOpenWithDescription":"No integrations are available for this file","be.error":"Error","be.errorBreadcrumb":"Error","be.errorOccured":"An error occurred","be.errorOpenWithDescription":"Opening this file with other services is currently unavailable","be.errorState":"A network error has occurred while trying to load.","be.executeIntegrationOpenWithErrorHeader":"We’re sorry, this integration is currently unavailable.","be.executeIntegrationOpenWithErrorSubHeader":"Please try again later.","be.expand":"Expand","be.faceSkill":"Faces","be.feedbackCtaText":"Click to provide feedback","be.feedbackFormDescription":"Beta Feedback Form","be.fileAccessStatsErrorHeaderMessage":"Something went wrong when fetching the access stats.","be.fileClassificationErrorHeaderMessage":"Something went wrong when fetching classification.","be.fileDescriptionInlineErrorTitleMessage":"Something went wrong when saving the description.","be.fileRequestDisplayName":"File Request","be.folderState":"There are no items in this folder.","be.getVersionInfo":"Get version information","be.gridView":"Switch to Grid View","be.gridView.decreaseColumnSize":"Decrease column size","be.gridView.increaseColumnSize":"Increase column size","be.in":"In","be.interactedDate":"Last accessed on {date}","be.itemCreated":"Created","be.itemInteracted":"Last Accessed","be.itemModified":"Modified","be.itemName":"Name","be.itemOwner":"Owner","be.itemSize":"Size","be.itemUploader":"Uploader","be.keywordSkill":"Topics","be.keywordsAppliedList":"Keywords were applied","be.keywordsList":"Keywords: {words}","be.listView":"Switch to List View","be.loadingState":"Please wait while the items load...","be.logo":"Logo","be.max":"max","be.metadataState":"There are no items in this folder.","be.modifiedDate":"Modified {date}","be.modifiedDateBy":"Modified {date} by {name}","be.nameASC":"Name: A → Z","be.nameDESC":"Name: Z → A","be.nameDate":"{date} by {name}","be.newFolder":"New Folder","be.nextFile":"Next File","be.nextSegment":"Next Segment","be.noActivity":"No activity to show","be.noActivityAnnotationPrompt":"Hover over the preview and use the controls at the bottom to annotate the file.","be.noActivityCommentPrompt":"Comment and @mention people to notify them.","be.open":"Open","be.pagination.nextPage":"Next Page","be.pagination.pageStatus":"{pageNumber} of {pageCount}","be.pagination.previousPage":"Previous Page","be.pointAnnotation":"Point annotation mode","be.preview":"Preview","be.previewError":"We’re sorry, the preview didn’t load. Please refresh the page.","be.previewErrorBlockedByPolicy":"Your access is restricted due to the classification applied to this content.","be.previewUpdate":"A new version of this file is available.","be.previousFile":"Previous File","be.previousSegment":"Previous Segment","be.print":"Print","be.priorCollaborator":"A Prior Collaborator","be.recentsBreadcrumb":"Recents","be.recentsState":"There are no recent items yet.","be.reload":"Reload","be.remove":"Remove","be.rename":"Rename","be.renameDialogErrorInUse":"An item with the same name already exists.","be.renameDialogErrorInvalid":"This name is invalid.","be.renameDialogErrorTooLong":"This name is too long.","be.renameDialogLabel":"Rename","be.renameDialogText":"Please enter a new name for {name}:","be.resume":"Resume","be.resumeAll":"Resume All","be.retry":"Retry","be.rootBreadcrumb":"All Files","be.save":"Save","be.searchBreadcrumb":"Search Results","be.searchPlaceholder":"Search files and folders","be.searchState":"Sorry, we couldn’t find what you’re looking for.","be.selected":"{count} Selected","be.selectedBreadcrumb":"Selected Items","be.selectedState":"You haven’t selected any items yet.","be.share":"Share","be.shareAccessCollab":"Access: People in this folder","be.shareAccessCompany":"People in this company","be.shareAccessNone":"No shared link","be.shareAccessOpen":"Access: People with the link","be.shareAccessRemove":"Remove shared link","be.shareDialogLabel":"Share","be.shareDialogNone":"None","be.shareDialogText":"Shared Link:","be.sidebarAccessStats":"Access Stats","be.sidebarActivityTitle":"Activity","be.sidebarDetailsTitle":"Details","be.sidebarFileFetchingErrorContent":"An error has occurred while fetching your Box file. Please refresh the page and try again.","be.sidebarHide":"Hide Sidebar","be.sidebarMetadataEditingErrorContent":"An error has occurred while updating metadata. Please refresh the page and try again.","be.sidebarMetadataFetchingErrorContent":"An error has occurred while fetching metadata. Please refresh the page and try again.","be.sidebarMetadataTitle":"Metadata","be.sidebarNavLabel":"Sidebar","be.sidebarProperties":"File Properties","be.sidebarShow":"Show Sidebar","be.sidebarSkillsErrorContent":"An error has occurred while updating skills. Please refresh the page and try again.","be.sidebarSkillsErrorTitle":"Skills Error","be.sidebarSkillsTitle":"Skills","be.sidebarVersions.current":"Current Version","be.sidebarVersions.delete":"Delete","be.sidebarVersions.deleteError":"File version could not be deleted.","be.sidebarVersions.deletedBy":"Deleted by {name}","be.sidebarVersions.disabledByRetention":"Disabled by retention policy","be.sidebarVersions.download":"Download","be.sidebarVersions.downloadError":"File version could not be downloaded.","be.sidebarVersions.empty":"No prior versions are available for this file.","be.sidebarVersions.fetchError":"File versions could not be retrieved.","be.sidebarVersions.fileRequestDisplayName":"File Request","be.sidebarVersions.preview":"Preview","be.sidebarVersions.priorWeek":"Last Week","be.sidebarVersions.promote":"Make Current","be.sidebarVersions.promoteError":"File version could not be made current.","be.sidebarVersions.promotedBy":"Promoted from v{versionPromoted} by {name}","be.sidebarVersions.restore":"Restore","be.sidebarVersions.restoreError":"File version could not be restored.","be.sidebarVersions.restoredBy":"Restored by {name}","be.sidebarVersions.serverError":"Server Error","be.sidebarVersions.thisMonth":"This Month","be.sidebarVersions.title":"Version History","be.sidebarVersions.today":"Today","be.sidebarVersions.toggle":"Toggle Actions Menu","be.sidebarVersions.uploadedBy":"Uploaded by {name}","be.sidebarVersions.versionLimitExceeded":"You are limited to the last {versionLimit, number} {versionLimit, plural, one {version} other {versions}}.","be.sidebarVersions.versionMaxEntries":"Version history is limited to the last {maxVersions} entries.","be.sidebarVersions.versionNumberBadge":"V{versionNumber}","be.sidebarVersions.versionNumberLabel":"Version number {versionNumber}","be.sidebarVersions.versionRetentionDelete":"Will be deleted {time} by retention policy.","be.sidebarVersions.versionRetentionIndefinite":"Retained indefinitely by retention policy.","be.sidebarVersions.versionRetentionRemove":"Retention policy expires on {time}.","be.sidebarVersions.versionUserUnknown":"Unknown","be.sidebarVersions.yesterday":"Yesterday","be.sizeASC":"Size: Smallest → Largest","be.sizeDESC":"Size: Largest → Smallest","be.skillFileProcessingError":"We’re sorry, something went wrong with processing the file.","be.skillInvalidFileExtensionError":"We’re sorry, no skills information was found. This file extension is currently not supported.","be.skillInvalidFileSizeError":"We’re sorry, no skills information was found. This file size is currently not supported.","be.skillInvokedStatus":"We’re preparing to process your file - please hold!","be.skillNoInfoFoundError":"We’re sorry, no skills information was found.","be.skillPendingStatus":"We’re working on processing your file - please hold!","be.skillUnknownError":"Something went wrong with running this skill or fetching its data.","be.sort":"Sort","be.statusSkill":"Status","be.today":"today","be.topicsSkill":"Topics","be.transcriptEdit":"Click any section to edit.","be.transcriptSkill":"Transcript","be.upload":"Upload","be.uploadEmptyFileInput":"Browse your device","be.uploadEmptyFolderInput":"Select Folders","be.uploadEmptyWithFolderUploadDisabled":"Drag and drop files","be.uploadEmptyWithFolderUploadEnabled":"Drag and drop files and folders","be.uploadError":"A network error has occurred while trying to upload.","be.uploadErrorTooManyFiles":"You can only upload up to {fileLimit} file(s) at a time.","be.uploadInProgress":"Drag and drop to add additional files","be.uploadNoDragDrop":"Select files from your device","be.uploadOptions":"{option1} or {option2}","be.uploadSuccess":"Success! Your files have been uploaded.","be.uploadSuccessFileInput":"Select More Files","be.uploadSuccessFolderInput":"Select More Folders","be.uploadsCancelButtonTooltip":"Cancel this upload","be.uploadsDefaultErrorMessage":"Something went wrong with the upload. Please try again.","be.uploadsFileSizeLimitExceededErrorMessage":"File size exceeds the folder owner’s file size limit","be.uploadsItemNameInUseErrorMessage":"A file with this name already exists.","be.uploadsManagerUploadComplete":"Completed","be.uploadsManagerUploadFailed":"Some Uploads Failed","be.uploadsManagerUploadInProgress":"Uploading","be.uploadsManagerUploadPrompt":"Drop files on this page to upload them into this folder.","be.uploadsOneOrMoreChildFoldersFailedToUploadMessage":"One or more child folders failed to upload.","be.uploadsPendingFolderSizeLimitErrorMessage":"Pending app folder size limit exceeded","be.uploadsProvidedFolderNameInvalidMessage":"Provided folder name, {name}, could not be used to create a folder.","be.uploadsRetryButtonTooltip":"Retry upload","be.uploadsStorageLimitErrorMessage":"Account storage limit reached","be.versionDeleted":"{name} deleted v{version_number}","be.versionMultipleUsersUploaded":"{numberOfCollaborators} collaborators uploaded v{versions}","be.versionPromoted":"{name} promoted v{version_promoted} to v{version_number}","be.versionRestored":"{name} restored v{version_number}","be.versionUploadCollapsed":"{name} uploaded v{versions}","be.versionUploaded":"{name} uploaded v{version_number}","be.yesterday":"yesterday","boxui.accessStats.accessStatsComments":"Comments","boxui.accessStats.accessStatsDownloads":"Downloads","boxui.accessStats.accessStatsEdits":"Edits","boxui.accessStats.accessStatsPreviews":"Previews","boxui.accessStats.accessStatsViewDetails":"View Details","boxui.accessStats.accessStatsViews":"Views","boxui.badges.beta":"BETA","boxui.badges.trial":"TRIAL","boxui.badges.upgrade":"UPGRADE","boxui.base.nextMonth":"Next Month","boxui.base.previousMonth":"Previous Month","boxui.breadcrumb.breadcrumbLabel":"Breadcrumb","boxui.checkboxTooltip.iconInfoText":"Info","boxui.classification.add":"Add","boxui.classification.classification":"Classification","boxui.classification.classificationDarkBlue":"Dark Blue","boxui.classification.classificationGreen":"Green","boxui.classification.classificationGrey":"Grey","boxui.classification.classificationLightBlue":"Light Blue","boxui.classification.classificationOrange":"Orange","boxui.classification.classificationPurple":"Purple","boxui.classification.classificationRed":"Red","boxui.classification.classificationYellow":"Yellow","boxui.classification.definition":"Definition","boxui.classification.edit":"Edit","boxui.classification.missing":"Not classified","boxui.classification.modifiedBy":"{modifiedBy} on {modifiedAt}","boxui.classification.modifiedByLabel":"Classification Updated By","boxui.collaboratorAvatars.collaboration.pendingCollabText":"Pending","boxui.collaboratorAvatars.collaboratorAvatarsLabel":"Shared with","boxui.collaboratorAvatars.collaborators.expirationTooltipText":"Access expires on {date}","boxui.collaboratorAvatars.collaborators.externalCollabTooltipText":"{email} is from outside of your company","boxui.collaboratorAvatars.manageAllLinkText":"Manage All","boxui.collaboratorAvatars.viewAdditionalPeopleText":"View additional people","boxui.collapsiblesidebar.collapseBtnLabel":"Collapse","boxui.collapsiblesidebar.expandBtnLabel":"Expand","boxui.contentExplorer.bookmark":"Bookmark","boxui.contentExplorer.breadcrumb":"Breadcrumb","boxui.contentExplorer.cancel":"Cancel","boxui.contentExplorer.choose":"Choose","boxui.contentExplorer.clickToGoBack":"Click to go back","boxui.contentExplorer.collaboratedFolder":"Collaborated Folder","boxui.contentExplorer.copy":"Copy","boxui.contentExplorer.emptyFolder":"There are no subfolders in this folder.","boxui.contentExplorer.emptySearch":"Sorry, we couldn't find what you're looking for.","boxui.contentExplorer.externalFolder":"External Folder","boxui.contentExplorer.file":"File","boxui.contentExplorer.move":"Move","boxui.contentExplorer.name":"Name","boxui.contentExplorer.newFolder":"New Folder","boxui.contentExplorer.numSelected":"{numSelected} Selected","boxui.contentExplorer.personalFolder":"Personal Folder","boxui.contentExplorer.searchPlaceholder":"Search","boxui.contentExplorer.searchResults":"Search Results","boxui.contentExplorer.selectItem":"Select {name}","boxui.contentexplorer.newFolder.forbidden":"You do not have permission to create a folder here.","boxui.core.cancel":"Cancel","boxui.core.close":"Close","boxui.core.copied":"Copied","boxui.core.copy":"Copy","boxui.core.done":"Done","boxui.core.guidetooltip.navigation":"{currentStepIndex} of {totalNumSteps}","boxui.core.hotkeys.altKey":"Alt","boxui.core.hotkeys.ctrlKey":"Ctrl","boxui.core.hotkeys.enterKey":"Enter","boxui.core.hotkeys.escKey":"Esc","boxui.core.hotkeys.hotkeyModalTitle":"Keyboard Shortcuts","boxui.core.hotkeys.hotkeySequence":"{key1} then {key2}","boxui.core.hotkeys.shiftKey":"Shift","boxui.core.hotkeys.spacebarKey":"Spacebar","boxui.core.okay":"Okay","boxui.core.optional":"optional","boxui.core.save":"Save","boxui.core.selection.deselectAllDescription":"Deselect all items","boxui.core.selection.downDescription":"Select next item","boxui.core.selection.selectAllDescription":"Select all items","boxui.core.selection.shiftDownDescription":"Add next item to current selection","boxui.core.selection.shiftUpDescription":"Add previous item to current selection","boxui.core.selection.shiftXDescription":"Select current item","boxui.core.selection.upDescription":"Select previous item","boxui.core.send":"Send","boxui.datePicker.chooseDate":"Choose Date","boxui.datePicker.dateClearButton":"Clear Date","boxui.datePicker.iconAlertText":"Invalid Date","boxui.draftjs.mentionSelector.startMention":"Mention someone to notify them","boxui.errorMask.iconSadCloudText":"Sad Box Cloud","boxui.features.VirtualizedTableRenderers.allFiles":"All Files","boxui.features.VirtualizedTableRenderers.anonymousUser":"Anonymous User","boxui.features.VirtualizedTableRenderers.externalFile":"External File","boxui.features.VirtualizedTableRenderers.externalFolder":"External Folder","boxui.features.VirtualizedTableRenderers.lastModifiedBy":"{lastModified} by {user}","boxui.features.VirtualizedTableRenderers.unknownUser":"Unknown User","boxui.itemDetails.bookmarkExpiration":"This bookmark will be deleted on {expiration}.","boxui.itemDetails.created":"Created","boxui.itemDetails.deleted":"Deleted","boxui.itemDetails.description":"Description","boxui.itemDetails.descriptionPlaceholder":"Enter a description","boxui.itemDetails.enterpriseOwner":"Enterprise Owner","boxui.itemDetails.fileExpiration":"This file will be deleted on {expiration}.","boxui.itemDetails.folderExpiration":"This folder will be deleted on {expiration}.","boxui.itemDetails.modified":"Modified","boxui.itemDetails.owner":"Owner","boxui.itemDetails.retentionPolicyDescription":"Policy","boxui.itemDetails.retentionPolicyExpiration":"Policy Expiration","boxui.itemDetails.retentionPolicyExtend":"Extend","boxui.itemDetails.savedVersions":"{versionCount, number} Saved Versions","boxui.itemDetails.sharedLinkExpiration":"This shared link will be disabled on {expiration}.","boxui.itemDetails.size":"Size","boxui.itemDetails.uploader":"Uploader","boxui.itemDetails.url":"URL","boxui.itemDetails.urlPlaceholder":"Enter a valid url","boxui.metadataInstanceEditor.allAttributesAreHidden":"All attributes in this template have been hidden.","boxui.metadataInstanceEditor.applyCascadePolicyText":"Apply template and its values to all new and existing items in this folder and its subfolders.","boxui.metadataInstanceEditor.cannotApplyCascadePolicyText":"Cascade policy cannot be applied to custom metadata at this time.","boxui.metadataInstanceEditor.cascadePolicyLearnMore":"Learn more","boxui.metadataInstanceEditor.cascadePolicyModeQuestion":"In the case of conflicts when applying this template and its values to existing items, what would you like to do? This is a one time action.","boxui.metadataInstanceEditor.cascadePolicyOverwriteMode":"Overwrite all existing template values","boxui.metadataInstanceEditor.cascadePolicySkipMode":"Skip and keep all existing template values","boxui.metadataInstanceEditor.customAdd":"Add","boxui.metadataInstanceEditor.customErrorDuplicateKey":"A field with that key already exists.","boxui.metadataInstanceEditor.customErrorInternalKey":"Keys cannot begin with a $.","boxui.metadataInstanceEditor.customErrorRequired":"A key is required.","boxui.metadataInstanceEditor.customKey":"Key","boxui.metadataInstanceEditor.customKeyPlaceholder":"e.g. Order Number","boxui.metadataInstanceEditor.customNewField":"New Field","boxui.metadataInstanceEditor.customNewFieldMessage":"Add a custom metadata field. Other people will be able to see and search for this field.","boxui.metadataInstanceEditor.customRemove":"Remove","boxui.metadataInstanceEditor.customTitle":"Custom Metadata","boxui.metadataInstanceEditor.customValue":"Value","boxui.metadataInstanceEditor.customValuePlaceholder":"e.g. 42","boxui.metadataInstanceEditor.editTooltip":"Edit Metadata","boxui.metadataInstanceEditor.enableCascadePolicy":"Enable Cascade Policy","boxui.metadataInstanceEditor.fileMetadataRemoveCustomTemplateConfirm":"Are you sure you want to delete this custom metadata and all of its values from this file?","boxui.metadataInstanceEditor.fileMetadataRemoveTemplateConfirm":'Are you sure you want to delete "{metadataName}" and all of its values from this file?',"boxui.metadataInstanceEditor.folderMetadataRemoveCustomTemplateConfirm":"Are you sure you want to delete this custom metadata and all of its values? Any metadata template values already applied to files in this folder will not be deleted.","boxui.metadataInstanceEditor.folderMetadataRemoveTemplateConfirm":'Are you sure you want to delete "{metadataName}" and all of its values? Any metadata template values already applied to files in this folder will not be deleted.',"boxui.metadataInstanceEditor.invalidValue":"Invalid Input!","boxui.metadataInstanceEditor.metadataCancel":"Cancel","boxui.metadataInstanceEditor.metadataCascadePolicyEnabledInfo":"This template and its values are being cascaded to all items in this folder and its subfolders.","boxui.metadataInstanceEditor.metadataSave":"Save","boxui.metadataInstanceEditor.noAttributesForTemplate":"There are no attributes in this template.","boxui.metadataInstanceEditor.noMetadata":"No Metadata Applied","boxui.metadataInstanceEditor.noMetadataAddTemplate":"Click 'Add' in the top right to add metadata to this item","boxui.metadataInstanceEditor.operationNotImmediate":"This operation is not immediate and may take some time.","boxui.metadataInstanceEditor.removeTemplate":"Remove","boxui.metadataInstanceEditor.templateAdd":"Add","boxui.metadataInstanceEditor.templateSearchPlaceholder":"Search all templates","boxui.metadataInstanceEditor.templatesFetchFailed":"Sorry! We could not fetch templates. Please contact your administrator","boxui.metadataInstanceEditor.templatesNoRemainingTemplates":"All templates have been added","boxui.metadataInstanceEditor.templatesNoResults":"No Results","boxui.metadataInstanceEditor.templatesServerHasNoTemplates":"Zero templates","boxui.metadataInstanceEditor.templatesTitle":"Templates","boxui.metadataInstanceFields.customAdd":"Add","boxui.metadataInstanceFields.customRemove":"Remove","boxui.metadataInstanceFields.fieldMultiSelectValue":"Select Values","boxui.metadataInstanceFields.fieldNoValue":"No Value","boxui.metadataInstanceFields.fieldSelectValue":"Select Value","boxui.metadataInstanceFields.fieldSetDate":"Set Date","boxui.metadataInstanceFields.fieldSetValue":"Set Value","boxui.metadataInstanceFields.invalidMetadataFieldType":"Invalid metadata field type!","boxui.modalDialog.closeModalText":"Close Modal","boxui.newFolderModal.cancel":"Cancel","boxui.newFolderModal.create":"Create","boxui.newFolderModal.folderName.label":"Folder Name","boxui.newFolderModal.folderName.placeholder":"My New Folder","boxui.newFolderModal.title":'Create a New Folder in "{parentFolderName}"',"boxui.notification.clearNotification":"Clear Notification","boxui.presence.accessedInTheLastMinute":"Viewed less than a minute ago","boxui.presence.activeNow":"Active now","boxui.presence.commentedIntheLastMinute":"Commented less than a minute ago","boxui.presence.getLinkButton":"Get Link","boxui.presence.inviteButton":"Invite People","boxui.presence.modifiedIntheLastMinute":"Edited less than a minute ago","boxui.presence.previewPresenceFlyoutAccessStatsLink":"See all activity","boxui.presence.previewPresenceFlyoutActivityCTA":"View Recent Activity","boxui.presence.previewPresenceFlyoutCopy":"Quickly see who has commented on, edited, or viewed this file.","boxui.presence.previewedIntheLastMinute":"Previewed less than a minute ago","boxui.presence.recentActivity":"Recent Activity","boxui.presence.timeSinceLastAccessed":"Viewed {timeAgo}","boxui.presence.timeSinceLastCommented":"Commented {timeAgo}","boxui.presence.timeSinceLastModified":"Edited {timeAgo}","boxui.presence.timeSinceLastPreviewed":"Previewed {timeAgo}","boxui.queryBar.addFilterButtonText":"+ Add Filter","boxui.queryBar.applyFiltersButtonText":"Apply","boxui.queryBar.columnsButtonText":"Columns","boxui.queryBar.columnsHiddenButtonText":"{count, plural, one {1 Column Hidden} other {{count} Columns Hidden}}","boxui.queryBar.connectorAndText":"AND","boxui.queryBar.connectorOrText":"OR","boxui.queryBar.connectorWhereText":"WHERE","boxui.queryBar.filtersButtonText":"Modify Filters","boxui.queryBar.metadataViewTemplateListHeaderTitle":"METADATA TEMPLATES","boxui.queryBar.multipleFiltersButtonText":"{number} Filters","boxui.queryBar.noFiltersAppliedText":"No Filters Applied","boxui.queryBar.noTemplatesText":"No Templates Available","boxui.queryBar.selectValuePlaceholderText":"Select value","boxui.queryBar.templatesButtonText":"Select Metadata","boxui.queryBar.templatesLoadingButtonText":"Template Name","boxui.queryBar.tooltipEnterValueError":"Please Enter a Value","boxui.queryBar.tooltipInvalidFloatError":"Please Enter a Decimal Number","boxui.queryBar.tooltipInvalidNumberError":"Please Enter an Integer","boxui.queryBar.tooltipSelectDateError":"Please Select a Date","boxui.queryBar.tooltipSelectValueError":"Please Select a Value","boxui.quickSearch.bookmark":"Bookmark","boxui.quickSearch.collaboratedFolder":"Collaborated Folder","boxui.quickSearch.externalFolder":"External Folder","boxui.quickSearch.file":"File","boxui.quickSearch.parentFolder":"Parent Folder","boxui.quickSearch.personalFolder":"Personal Folder","boxui.quickSearch.updatedText":"{date, date, medium} by {user}","boxui.quickSearch.updatedTextToday":"Today by {user}","boxui.quickSearch.updatedTextYesterday":"Yesterday by {user}","boxui.readableTime.eventTime":"{time, date, medium}","boxui.readableTime.eventTimeDate":"{time, date, medium} at {time, time, short}","boxui.readableTime.eventTimeDateShort":"{date} at {time, time, short}","boxui.readableTime.eventTimeToday":"Today at {time, time, short}","boxui.readableTime.eventTimeWeekdayLong":"{weekday}, {time, date, medium}","boxui.readableTime.eventTimeYesterday":"Yesterday at {time, time, short}","boxui.searchForm.clearButtonTitle":"Clear","boxui.searchForm.searchButtonTitle":"Search","boxui.searchForm.searchLabel":"Search query","boxui.securityCloudGame.instructions":"For security purposes, please drag the white cloud into the dark cloud.","boxui.securityCloudGame.success":"Success!","boxui.securityControls.allAppNames":"All applications: {appsList}","boxui.securityControls.appDownloadBlacklist":"Download restricted for some applications: {appNames}","boxui.securityControls.appDownloadBlacklistOverflow":"Download restricted for some applications: {appNames} +{remainingAppCount} more","boxui.securityControls.appDownloadBlock":"Some application restrictions apply.","boxui.securityControls.appDownloadWhitelist":"Only select applications are allowed: {appNames}","boxui.securityControls.appDownloadWhitelistOverflow":"Only select applications are allowed: {appNames} +{remainingAppCount} more","boxui.securityControls.desktopDownloadExternalOwners":"Download restricted on Box Drive, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.desktopDownloadExternalOwnersEditors":"Download restricted on Box Drive, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.desktopDownloadOwners":"Download restricted on Box Drive, except Owners/Co-Owners.","boxui.securityControls.desktopDownloadOwnersEditors":"Download restricted on Box Drive, except Owners/Co-Owners/Editors.","boxui.securityControls.downloadExternal":"Download restricted on Box Drive for external users.","boxui.securityControls.externalCollabBlock":"External collaboration restricted.","boxui.securityControls.externalCollabDomainList":"External collaboration limited to approved domains.","boxui.securityControls.mobileDownloadExternal":"Download restricted on mobile for external users.","boxui.securityControls.mobileDownloadExternalOwners":"Download restricted on mobile, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.mobileDownloadExternalOwnersEditors":"Download restricted on mobile, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.mobileDownloadOwners":"Download restricted on mobile, except Owners/Co-Owners.","boxui.securityControls.mobileDownloadOwnersEditors":"Download restricted on mobile, except Owners/Co-Owners/Editors.","boxui.securityControls.modalDescription":"Classification labels defined by your administrator can be used to label content and apply security policies.","boxui.securityControls.modalTitle":"View Classification for '{itemName}'","boxui.securityControls.securityControlsLabel":"Restrictions","boxui.securityControls.sharingCollabAndCompanyOnly":"Shared links cannot be made publicly accessible.","boxui.securityControls.sharingCollabOnly":"Shared links allowed for collaborators only.","boxui.securityControls.shortAllRestrictions":"Sharing, download and app restrictions apply","boxui.securityControls.shortApp":"Application restrictions apply","boxui.securityControls.shortDownload":"Download restrictions apply","boxui.securityControls.shortDownloadApp":"Download and app restrictions apply","boxui.securityControls.shortSharing":"Sharing restriction applies","boxui.securityControls.shortSharingApp":"Sharing and app restrictions apply","boxui.securityControls.shortSharingDownload":"Sharing and download restrictions apply","boxui.securityControls.viewAll":"View All","boxui.securityControls.webDownloadExternal":"Download restricted on web for external users.","boxui.securityControls.webDownloadExternalOwners":"Download restricted on web, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.webDownloadExternalOwnersEditors":"Download restricted on web, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.webDownloadOwners":"Download restricted on web, except Owners/Co-Owners.","boxui.securityControls.webDownloadOwnersEditors":"Download restricted on web, except Owners/Co-Owners/Editors.","boxui.selectField.clearAll":"Clear All","boxui.selectField.noResults":"No Results","boxui.selectField.searchPlaceholder":"Search","boxui.share.accessType":"ACCESS TYPE","boxui.share.canEdit":"Can edit","boxui.share.canView":"Can view","boxui.share.coownerLevelText":"Co-owner","boxui.share.deleteTableHeaderText":"Delete","boxui.share.downloadTableHeaderText":"Download","boxui.share.editTableHeaderText":"Edit","boxui.share.editorLevelText":"Editor","boxui.share.emailSharedLink":"Email Shared Link","boxui.share.enterAtLeastOneEmail":"Enter at least one valid email","boxui.share.getLinkTableHeaderText":"Get Link","boxui.share.groupLabel":"Group","boxui.share.inviteCollaboratorsModalCancelButton":"Cancel","boxui.share.inviteCollaboratorsModalSendInvites":"Send Invites","boxui.share.inviteCollaboratorsModalTitle":"Invite to {itemName}","boxui.share.inviteFieldLabel":"Invite","boxui.share.inviteFileEditorsLabel":"Invite people to become editors of this file.","boxui.share.inviteePermissionsFieldLabel":"Invitee Permissions","boxui.share.inviteePermissionsLearnMore":"Learn More","boxui.share.message":"Message","boxui.share.messageSelectorPlaceholder":"Add a message","boxui.share.ownerTableHeaderText":"Owner","boxui.share.peopleInCompanyCanDownloadFile":"Anyone in your company with the link can view and download this file.","boxui.share.peopleInCompanyCanDownloadFolder":"Anyone in your company with the link can view this folder and download its contents.","boxui.share.peopleInCompanyCanEditFile":"Anyone in your company with the link can edit and download this file.","boxui.share.peopleInCompanyCanViewFile":"Anyone in your company with the link can view this file.","boxui.share.peopleInCompanyCanViewFolder":"Anyone in your company with the link can view this folder.","boxui.share.peopleInEnterprise":"People in {enterpriseName}","boxui.share.peopleInItemCanAccessFile":"Any collaborator on the file with the link can access this file.","boxui.share.peopleInItemCanAccessFolder":"Any collaborator on the folder with the link can access this folder.","boxui.share.peopleInItemCanDownloadFile":"Any collaborator on this file with the link can download this file.","boxui.share.peopleInItemCanDownloadFolder":"Any collaborator on this folder with the link can download this folder.","boxui.share.peopleInItemCanEditFile":"Any collaborator on this file with the link can edit this file and download its contents.","boxui.share.peopleInItemCanPreviewAndDownloadFile":"Any collaborator on this file with the link can view this file and download its contents.","boxui.share.peopleInItemCanPreviewAndDownloadFolder":"Any collaborator on this folder with the link can view this folder and download its contents.","boxui.share.peopleInItemCanPreviewFile":"Any collaborator on this file with the link can view this file.","boxui.share.peopleInItemCanPreviewFolder":"Any collaborator on this folder with the link can view this folder.","boxui.share.peopleInSpecifiedCompanyCanDownloadFile":"Anyone in {company} with the link can view and download this file.","boxui.share.peopleInSpecifiedCompanyCanDownloadFolder":"Anyone in {company} with the link can view this folder and download its contents.","boxui.share.peopleInSpecifiedCompanyCanEditFile":"Anyone in {company} with the link can edit and download this file.","boxui.share.peopleInSpecifiedCompanyCanViewFile":"Anyone in {company} with the link can view this file.","boxui.share.peopleInSpecifiedCompanyCanViewFolder":"Anyone in {company} with the link can view this folder.","boxui.share.peopleInThisFile":"People in this file","boxui.share.peopleInThisFolder":"People in this folder","boxui.share.peopleInYourCompany":"People in your company","boxui.share.peopleWithLinkCanDownloadFile":"Anyone with the link can view and download this file.","boxui.share.peopleWithLinkCanDownloadFolder":"Anyone with the link can view this folder and download its contents.","boxui.share.peopleWithLinkCanEditFile":"Anyone with the link can edit and download this file.","boxui.share.peopleWithLinkCanViewFile":"Anyone with the link can view this file.","boxui.share.peopleWithLinkCanViewFolder":"Anyone with the link can view this folder.","boxui.share.peopleWithTheLink":"People with the link","boxui.share.permissionLevelsTableHeaderText":"Permission Levels","boxui.share.personalMessageLabel":"Personal Message","boxui.share.pillSelectorPlaceholder":"Add names or email addresses","boxui.share.previewTableHeaderText":"Preview","boxui.share.previewerLevelText":"Previewer","boxui.share.previewerUploaderLevelText":"Previewer Uploader","boxui.share.referAFriendBadgeText":"REFER","boxui.share.referAFriendRewardCenterLinkText":"Click Here","boxui.share.referAFriendText":"Want a free month of Box? Refer your friend!","boxui.share.removeLink":"Remove Link","boxui.share.removeLinkConfirmationDescription":"This will permanently remove the shared link. If this item is embedded on other sites it will also become inaccessible. Any custom properties, settings and expirations will be removed as well. Do you want to continue?","boxui.share.removeLinkConfirmationTitle":"Remove Shared Link","boxui.share.settingsButtonLabel":"Open shared link settings popup","boxui.share.sharedLinkExpirationTooltip":"This link will expire on {expiration, date, long}","boxui.share.sharedLinkLabel":"Shared Link","boxui.share.sharedLinkModalTitle":"Shared Link for {itemName}","boxui.share.sharedLinkSettings.accessLevel.inCompanyView":"This content is available to anyone within your company with the link, and can be viewed.","boxui.share.sharedLinkSettings.accessLevel.inCompanyViewDownload":"This content is available to anyone within your company with the link, and can be viewed or downloaded.","boxui.share.sharedLinkSettings.accessLevel.inItem":"This content is available to invited collaborators with the link.","boxui.share.sharedLinkSettings.accessLevel.withLinkView":"This content is publicly available to anyone with the link, and can be viewed.","boxui.share.sharedLinkSettings.accessLevel.withLinkViewDownload":"This content is publicly available to anyone with the link, and can be viewed or downloaded.","boxui.share.sharedLinkSettings.allowDownloadLabel":"Allow users with the shared link to download this item","boxui.share.sharedLinkSettings.allowDownloadTitle":"Allow Download","boxui.share.sharedLinkSettings.customURLLabel":"Non-private custom URL","boxui.share.sharedLinkSettings.directDownloadBlockedByAccessPolicyWithClassification":"Download has been disabled for content due to the classification.","boxui.share.sharedLinkSettings.directDownloadBlockedByAccessPolicyWithoutClassification":"Download has been disabled for content without classification.","boxui.share.sharedLinkSettings.directDownloadBlockedByMaliciousContent":"Download for this content has been disabled due to a security policy.","boxui.share.sharedLinkSettings.directLinkLabel":"Direct Link","boxui.share.sharedLinkSettings.expirationLabel":"Disable Shared Link on","boxui.share.sharedLinkSettings.expirationTitle":"Link Expiration","boxui.share.sharedLinkSettings.inaccessibleSettingsNotice":"Certain settings may not be available for this item due to permissions.","boxui.share.sharedLinkSettings.modalTitle":"Shared Link Settings","boxui.share.sharedLinkSettings.passwordLabel":"Require password","boxui.share.sharedLinkSettings.passwordPlaceholder":"Enter a password","boxui.share.sharedLinkSettings.passwordTitle":"Password Protect","boxui.share.sharedLinkSettings.sharedLinkSettingWarningLinkText":"Learn more about shared link settings.","boxui.share.sharedLinkSettings.sharedLinkWarningText":"This content is publicly available to anyone with the link.","boxui.share.sharedLinkSettings.vanityNameNotSet":"The custom URL has not been set","boxui.share.sharedLinkSettings.vanityNamePlaceholder":"Enter a custom path (12 or more characters)","boxui.share.sharedLinkSettings.vanityURLWarning":"Custom URLs should not be used when sharing sensitive content.","boxui.share.sharedLinkURLLabel":"URL","boxui.share.upgradeGetMoreAccessControls":"Get More Access Controls","boxui.share.uploadTableHeaderText":"Upload","boxui.share.uploaderLevelText":"Uploader","boxui.share.vanityURLEnableText":"Publish content broadly with a custom, non-private URL","boxui.share.viewerLevelText":"Viewer","boxui.share.viewerUploaderLevelText":"Viewer Uploader","boxui.shareMenu.downloadOnly":"Download Only","boxui.shareMenu.editAndComment":"Edit and Comment","boxui.shareMenu.getSharedLink":"Get Shared Link","boxui.shareMenu.insufficientPermissionsMenuOption":"Insufficient sharing permissions. Please contact the folder owner.","boxui.shareMenu.insufficientPermissionsTooltip":"You have insufficient permissions to invite collaborators.","boxui.shareMenu.inviteCollabs":"Invite Collaborators","boxui.shareMenu.ownerCoownerOnlyTooltip":"You have insufficient permissions to invite collaborators. Only the owner and co-owners can invite collaborators.","boxui.shareMenu.shortcutOnly":"Shortcut Only","boxui.shareMenu.viewAndDownload":"View and Download","boxui.shareMenu.viewOnly":"View Only","boxui.unifiedShare.collaboration.groupCollabText":"Group","boxui.unifiedShare.collaboration.userCollabText":"User","boxui.unifiedShare.collaboratorListTitle":"People in ‘{itemName}’","boxui.unifiedShare.collaborators.expirationTooltipClickableText":"Access expires on {date}. Click for details.","boxui.unifiedShare.contactsExceedLimitError":"Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches.","boxui.unifiedShare.contentSharedWithExternalCollaborators":"This content will be shared with external collaborators.","boxui.unifiedShare.coownerLevelButtonLabel":"Invite as Co-owner","boxui.unifiedShare.coownerLevelDescription":"Manage security, upload, download, preview, share, edit, and delete","boxui.unifiedShare.coownerLevelText":"Co-owner","boxui.unifiedShare.disabledCreateLinkTooltip":"You do not have permission to create the link.","boxui.unifiedShare.disabledMaliciousContentShareLinkPermission":"This option isn’t available for this item due to a security policy.","boxui.unifiedShare.disabledShareLinkPermission":"This option isn’t available for this item due to a security restriction or classification.","boxui.unifiedShare.editorLevelButtonLabel":"Invite as Editor","boxui.unifiedShare.editorLevelDescription":"Upload, download, preview, share, edit, and delete","boxui.unifiedShare.editorLevelFileDescription":"Upload, download, preview, share, and edit","boxui.unifiedShare.editorLevelText":"Editor","boxui.unifiedShare.emailModalTitle":"Send Link to ‘{itemName}’","boxui.unifiedShare.enterAtLeastOneEmail":"Enter at least one valid email","boxui.unifiedShare.enterEmailAddressesCalloutText":"Share this item with coworkers by entering their email addresses","boxui.unifiedShare.ftuxConfirmLabel":"Got it","boxui.unifiedShare.ftuxLinkText":"Read more about shared link security here.","boxui.unifiedShare.ftuxNewUSMUserBody":"We’ve simplified the sharing experience when you click 'Share'. Invite people to this item here and toggle the link on or off below for easy sharing.","boxui.unifiedShare.ftuxNewUsmUserTitle":"Simplified sharing for files and folders","boxui.unifiedShare.groupLabel":"Group","boxui.unifiedShare.inviteDisabledTooltip":"You do not have permission to invite collaborators.","boxui.unifiedShare.inviteDisabledWeblinkTooltip":"Collaborators cannot be added to bookmarks.","boxui.unifiedShare.inviteFieldLabel":"Invite People","boxui.unifiedShare.linkShareOff":"Create shared link","boxui.unifiedShare.linkShareOn":"Shared link is created","boxui.unifiedShare.message":"Message","boxui.unifiedShare.modalTitle":"Share ‘{itemName}’","boxui.unifiedShare.peopleInCompanyCanAccessFile":"Anyone in your company with the link or people invited to this file can access","boxui.unifiedShare.peopleInCompanyCanAccessFolder":"Anyone in your company with the link or people invited to this folder can access","boxui.unifiedShare.peopleInEnterpriseName":"People in {enterpriseName}","boxui.unifiedShare.peopleInItemCanAccessFile":"Only invited people can access this file","boxui.unifiedShare.peopleInItemCanAccessFolder":"Only invited people can access this folder","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessFile":"Anyone at {company} with the link or people invited to this file can access","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessFolder":"Anyone at {company} with the link or people invited to this folder can access","boxui.unifiedShare.peopleInThisFile":"Invited people only","boxui.unifiedShare.peopleInThisFolder":"Invited people only","boxui.unifiedShare.peopleInYourCompany":"People in your company","boxui.unifiedShare.peopleWithLinkDescription":"Publicly accessible and no sign-in required","boxui.unifiedShare.peopleWithTheLinkText":"People with the link","boxui.unifiedShare.previewerLevelButtonLabel":"Invite as Previewer","boxui.unifiedShare.previewerLevelDescription":"Preview only","boxui.unifiedShare.previewerLevelText":"Previewer","boxui.unifiedShare.previewerUploaderLevelButtonLabel":"Invite as Previewer Uploader","boxui.unifiedShare.previewerUploaderLevelDescription":"Upload and preview","boxui.unifiedShare.previewerUploaderLevelText":"Previewer Uploader","boxui.unifiedShare.recommendedSharingTooltipCalloutText":"Based on your usage, we think {fullName} would be interested in this file.","boxui.unifiedShare.removeLinkConfirmationDescription":"This will permanently remove the shared link. If this item is embedded on other sites it will also become inaccessible. Any custom properties, settings and expirations will be removed as well. Do you want to continue?","boxui.unifiedShare.removeLinkConfirmationTitle":"Remove Shared Link","boxui.unifiedShare.removeLinkTooltip":"You do not have permission to remove the link.","boxui.unifiedShare.sendSharedLink":"Send Shared Link","boxui.unifiedShare.sendSharedLinkFieldLabel":"Email Shared Link","boxui.unifiedShare.settingsButtonLabel":"Open shared link settings popup","boxui.unifiedShare.sharedLinkDisabledTooltipCopy":"Create and copy link for sharing","boxui.unifiedShare.sharedLinkExpirationTooltip":"This link will expire and be inaccessible on {expiration, date, long}.","boxui.unifiedShare.sharedLinkPermissionsEdit":"Can edit","boxui.unifiedShare.sharedLinkPermissionsEditTooltip":"This permission can only be changed in Box Notes","boxui.unifiedShare.sharedLinkPermissionsViewDownload":"Can view and download","boxui.unifiedShare.sharedLinkPermissionsViewDownloadDescription":"Users can view and download","boxui.unifiedShare.sharedLinkPermissionsViewOnly":"Can view only","boxui.unifiedShare.sharedLinkPermissionsViewOnlyDescription":"Users can view only","boxui.unifiedShare.sharedLinkPubliclyAvailable":"This content is publicly available to anyone with the link.","boxui.unifiedShare.sharedLinkSectionLabel":"Share Link","boxui.unifiedShare.sharedLinkSettings":"Link Settings","boxui.unifiedShare.sharedLinkSettingsCalloutText":"Create a custom URL, enable password protection, enable link expiration, and much more","boxui.unifiedShare.suggestedCollabsTitle":"Suggested","boxui.unifiedShare.upgradeGetMoreAccessControlsDescription":"62% of customers on your plan {upgradeGetMoreAccessControlsLink} to manage collaborators’ access and permission settings","boxui.unifiedShare.upgradeGetMoreAccessControlsLink":"upgrade","boxui.unifiedShare.uploaderLevelButtonLabel":"Invite as Uploader","boxui.unifiedShare.uploaderLevelDescription":"Upload only","boxui.unifiedShare.uploaderLevelText":"Uploader","boxui.unifiedShare.viewerLevelButtonLabel":"Invite as Viewer","boxui.unifiedShare.viewerLevelDescription":"Download, preview, and share","boxui.unifiedShare.viewerLevelText":"Viewer","boxui.unifiedShare.viewerUploaderLevelButtonLabel":"Invite as Viewer Uploader","boxui.unifiedShare.viewerUploaderLevelDescription":"Upload, download, preview, share, and edit","boxui.unifiedShare.viewerUploaderLevelText":"Viewer Uploader","boxui.validation.URLError":"Invalid URL","boxui.validation.emailError":"Invalid Email Address","boxui.validation.genericError":"Invalid Input","boxui.validation.invalidUserError":"Invalid User","boxui.validation.requiredError":"Required Field","boxui.validation.tooLongError":"Input cannot exceed {max} characters","boxui.validation.tooShortError":"Input must be at least {min} characters"})},c=r(1);function f(e){return(f="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 d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t,r){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r):o.value}})(e,t,r||e)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=function(e){function t(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r=function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?p(e):t}(this,(e=b(t)).call.apply(e,[this].concat(o))),y(p(r),"language",u.language),y(p(r),"messages",u.messages),y(p(r),"setComponent",(function(e){r.component=e})),y(p(r),"onInteraction",(function(e){r.emit("interaction",e)})),r}var r,n,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}}),t&&m(e,t)}(t,e),r=t,(n=[{key:"show",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.id=e,this.token=t,this.options=r,this.options.version="2.1.0",this.emit=this.emit.bind(this);var n=r.container||c.I;this.container=n instanceof HTMLElement?n:document.querySelector(n),this.render()}},{key:"hide",value:function(){this.removeAllListeners(),a.a.unmountComponentAtNode(this.container),this.container&&(this.container.innerHTML="")}},{key:"render",value:function(){throw new Error("Unimplemented!")}},{key:"getComponent",value:function(){return this.component}},{key:"clearCache",value:function(){var e=this.getComponent();e&&"function"==typeof e.clearCache&&e.clearCache()}},{key:"emit",value:function(e,r){try{return h(b(t.prototype),"emit",this).call(this,e,r)}catch(e){}return!1}}])&&d(r.prototype,n),o&&d(r,o),t}(o.a);t.a=v},,,,,,,,function(e,t,r){"use strict";function n(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}r.d(t,"a",(function(){return n}))},function(e,t,r){var n=r(33),o=Object.create,i=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=i},function(e,t,r){var n=r(33),o=r(130),i=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return i;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var r=l.test(e);return r||u.test(e)?c(e.slice(2),r?2:8):s.test(e)?i:+e}},,,,,function(e,t,r){var n=r(152),o=r(368),i=r(160),a=r(369),s=r(376),l=r(216),u=r(194),c=r(379),f=r(381),d=r(269),p=r(220),h=r(142),b=r(384),m=r(385),y=r(222),v=r(31),g=r(141),w=r(389),k=r(33),x=r(391),E=r(106),O=1,S=2,C=4,P="[object Arguments]",_="[object Function]",T="[object GeneratorFunction]",A="[object Object]",j={};j[P]=j["[object Array]"]=j["[object ArrayBuffer]"]=j["[object DataView]"]=j["[object Boolean]"]=j["[object Date]"]=j["[object Float32Array]"]=j["[object Float64Array]"]=j["[object Int8Array]"]=j["[object Int16Array]"]=j["[object Int32Array]"]=j["[object Map]"]=j["[object Number]"]=j[A]=j["[object RegExp]"]=j["[object Set]"]=j["[object String]"]=j["[object Symbol]"]=j["[object Uint8Array]"]=j["[object Uint8ClampedArray]"]=j["[object Uint16Array]"]=j["[object Uint32Array]"]=!0,j["[object Error]"]=j[_]=j["[object WeakMap]"]=!1,e.exports=function e(t,r,I,D,M,R){var F,N=r&O,L=r&S,U=r&C;if(I&&(F=M?I(t,D,M,R):I(t)),void 0!==F)return F;if(!k(t))return t;var H=v(t);if(H){if(F=b(t),!N)return u(t,F)}else{var z=h(t),B=z==_||z==T;if(g(t))return l(t,N);if(z==A||z==P||B&&!M){if(F=L||B?{}:y(t),!N)return L?f(t,s(F,t)):c(t,a(F,t))}else{if(!j[z])return M?t:{};F=m(t,z,N)}}R||(R=new n);var V=R.get(t);if(V)return V;R.set(t,F),x(t)?t.forEach((function(n){F.add(e(n,r,I,n,t,R))})):w(t)&&t.forEach((function(n,o){F.set(o,e(n,r,I,o,t,R))}));var W=U?L?p:d:L?keysIn:E,q=H?void 0:W(t);return o(q||t,(function(n,o){q&&(n=t[o=n]),i(F,o,e(n,r,I,o,t,R))})),F}},function(e,t,r){(function(e){function t(e){return(t="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)}var r=function(e){"use strict";var r,n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r,n){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),a=new _(n||[]);return i._invoke=function(e,t,r){var n=f;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===h){if("throw"===o)throw i;return A()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=S(a,r);if(s){if(s===b)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var l=c(e,t,r);if("normal"===l.type){if(n=r.done?h:d,l.arg===b)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n=h,r.method="throw",r.arg=l.arg)}}}(e,r,a),i}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",b={};function m(){}function y(){}function v(){}var g={};g[a]=function(){return this};var w=Object.getPrototypeOf,k=w&&w(w(T([])));k&&k!==n&&o.call(k,a)&&(g=k);var x=v.prototype=m.prototype=Object.create(g);function E(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function O(e){var r;this._invoke=function(n,i){function a(){return new Promise((function(r,a){!function r(n,i,a,s){var l=c(e[n],e,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"===t(f)&&o.call(f,"__await")?Promise.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):Promise.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}(n,i,r,a)}))}return r=r?r.then(a,a):a()}}function S(e,t){var n=e.iterator[t.method];if(n===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=r,S(e,t),"throw"===t.method))return b;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}var o=c(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,b;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,b):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,b)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(o.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=r,t.done=!0,t};return i.next=i}}return{next:A}}function A(){return{value:r,done:!0}}return y.prototype=x.constructor=v,v.constructor=y,v[l]=y.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},E(O.prototype),O.prototype[s]=function(){return this},e.AsyncIterator=O,e.async=function(t,r,n,o){var i=new O(u(t,r,n,o));return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},E(x),x[l]="Generator",x[a]=function(){return this},x.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=T,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(P),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,o){return s.type="throw",s.arg=e,t.next=n,o&&(t.method="next",t.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),b}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}}).call(this,r(86)(e))},function(e,t,r){var n=r(258),o=1/0,i=17976931348623157e292;e.exports=function(e){return e?(e=n(e))===o||e===-o?(e<0?-1:1)*i:e==e?e:0:0===e?e:0}},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=r(109),i=r(93),a=r(128),s=r(33);e.exports=function(e,t,r){if(!s(r))return!1;var l=n(t);return!!("number"==l?i(r)&&a(t,r.length):"string"==l&&t in r)&&o(r[t],e)}},function(e,t,r){"use strict";var n=r(0),o=r(2),i=r(10);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}t.a=function(e){return n.createElement(i.a,a({width:32,height:32,viewBox:"0 0 32 32"},e),n.createElement("g",{fill:"none"},n.createElement("path",{fill:o.h,d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),n.createElement("path",{fill:o.y,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"})))}},,function(e,t,r){var n=r(219),o=r(166),i=r(106);e.exports=function(e){return n(e,i,o)}},function(e,t,r){var n=r(38).Uint8Array;e.exports=n},function(e,t){e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}},function(e,t,r){var n=r(99),o=r(127),i=r(31),a=r(128),s=r(162),l=r(95);e.exports=function(e,t,r){for(var u=-1,c=(t=n(t,e)).length,f=!1;++u<c;){var d=l(t[u]);if(!(f=null!=e&&r(e,d)))break;e=e[d]}return f||++u!=c?f:!!(c=null==e?0:e.length)&&s(c)&&a(d,c)&&(i(e)||o(e))}},,,,,,,,,,,function(e,t,r){var n=r(55),o=r(31),i=r(40),a="[object String]";e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&n(e)==a}},,,,,,,,,,,,,function(e,t,r){var n=r(64)(r(38),"WeakMap");e.exports=n},function(e,t,r){var n=r(400),o=r(224),i=r(225);e.exports=function(e){return i(o(e,void 0,n),e+"")}},function(e,t){e.exports=function(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},function(e,t,r){var n=r(265);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},,,,,,,,,,,,,function(e,t,r){var n=r(64)(r(38),"Set");e.exports=n},function(e,t,r){var n=r(298),o=r(437),i=r(438);e.exports=function(e,t,r){return t==t?i(e,t,r):n(e,o,r)}},,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";
/** @license React v16.9.0
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=r(52),i="function"==typeof Symbol&&Symbol.for,a=i?Symbol.for("react.element"):60103,s=i?Symbol.for("react.portal"):60106,l=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,c=i?Symbol.for("react.profiler"):60114,f=i?Symbol.for("react.provider"):60109,d=i?Symbol.for("react.context"):60110,p=i?Symbol.for("react.forward_ref"):60112,h=i?Symbol.for("react.suspense"):60113,b=i?Symbol.for("react.suspense_list"):60120,m=i?Symbol.for("react.memo"):60115,y=i?Symbol.for("react.lazy"):60116;i&&Symbol.for("react.fundamental"),i&&Symbol.for("react.responder");var v="function"==typeof Symbol&&Symbol.iterator;function g(e){for(var t=e.message,r="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)r+="&args[]="+encodeURIComponent(arguments[n]);return e.message="Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k={};function x(e,t,r){this.props=e,this.context=t,this.refs=k,this.updater=r||w}function E(){}function O(e,t,r){this.props=e,this.context=t,this.refs=k,this.updater=r||w}x.prototype.isReactComponent={},x.prototype.setState=function(e,t){if("object"!==n(e)&&"function"!=typeof e&&null!=e)throw g(Error(85));this.updater.enqueueSetState(this,e,t,"setState")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},E.prototype=x.prototype;var S=O.prototype=new E;S.constructor=O,o(S,x.prototype),S.isPureReactComponent=!0;var C={current:null},P={suspense:null},_={current:null},T=Object.prototype.hasOwnProperty,A={key:!0,ref:!0,__self:!0,__source:!0};function j(e,t,r){var n=void 0,o={},i=null,s=null;if(null!=t)for(n in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)T.call(t,n)&&!A.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(n in l=e.defaultProps)void 0===o[n]&&(o[n]=l[n]);return{$$typeof:a,type:e,key:i,ref:s,props:o,_owner:_.current}}function I(e){return"object"===n(e)&&null!==e&&e.$$typeof===a}var D=/\/+/g,M=[];function R(e,t,r,n){if(M.length){var o=M.pop();return o.result=e,o.keyPrefix=t,o.func=r,o.context=n,o.count=0,o}return{result:e,keyPrefix:t,func:r,context:n,count:0}}function F(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>M.length&&M.push(e)}function N(e,t,r){return null==e?0:function e(t,r,o,i){var l=n(t);"undefined"!==l&&"boolean"!==l||(t=null);var u=!1;if(null===t)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case a:case s:u=!0}}if(u)return o(i,t,""===r?"."+L(t,0):r),1;if(u=0,r=""===r?".":r+":",Array.isArray(t))for(var c=0;c<t.length;c++){var f=r+L(l=t[c],c);u+=e(l,f,o,i)}else if(null===t||"object"!==n(t)?f=null:f="function"==typeof(f=v&&t[v]||t["@@iterator"])?f:null,"function"==typeof f)for(t=f.call(t),c=0;!(l=t.next()).done;)u+=e(l=l.value,f=r+L(l,c++),o,i);else if("object"===l)throw o=""+t,g(Error(31),"[object Object]"===o?"object with keys {"+Object.keys(t).join(", ")+"}":o,"");return u}(e,"",t,r)}function L(e,t){return"object"===n(e)&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function U(e,t){e.func.call(e.context,t,e.count++)}function H(e,t,r){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?z(e,n,r,(function(e){return e})):null!=e&&(I(e)&&(e=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(D,"$&/")+"/")+r)),n.push(e))}function z(e,t,r,n,o){var i="";null!=r&&(i=(""+r).replace(D,"$&/")+"/"),N(e,H,t=R(t,i,n,o)),F(t)}function B(){var e=C.current;if(null===e)throw g(Error(321));return e}var V={Children:{map:function(e,t,r){if(null==e)return e;var n=[];return z(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;N(e,U,t=R(null,null,t,r)),F(t)},count:function(e){return N(e,(function(){return null}),null)},toArray:function(e){var t=[];return z(e,t,null,(function(e){return e})),t},only:function(e){if(!I(e))throw g(Error(143));return e}},createRef:function(){return{current:null}},Component:x,PureComponent:O,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:f,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:p,render:e}},lazy:function(e){return{$$typeof:y,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return B().useCallback(e,t)},useContext:function(e,t){return B().useContext(e,t)},useEffect:function(e,t){return B().useEffect(e,t)},useImperativeHandle:function(e,t,r){return B().useImperativeHandle(e,t,r)},useDebugValue:function(){},useLayoutEffect:function(e,t){return B().useLayoutEffect(e,t)},useMemo:function(e,t){return B().useMemo(e,t)},useReducer:function(e,t,r){return B().useReducer(e,t,r)},useRef:function(e){return B().useRef(e)},useState:function(e){return B().useState(e)},Fragment:l,Profiler:c,StrictMode:u,Suspense:h,unstable_SuspenseList:b,createElement:j,cloneElement:function(e,t,r){if(null==e)throw g(Error(267),e);var n=void 0,i=o({},e.props),s=e.key,l=e.ref,u=e._owner;if(null!=t){void 0!==t.ref&&(l=t.ref,u=_.current),void 0!==t.key&&(s=""+t.key);var c=void 0;for(n in e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)T.call(t,n)&&!A.hasOwnProperty(n)&&(i[n]=void 0===t[n]&&void 0!==c?c[n]:t[n])}if(1===(n=arguments.length-2))i.children=r;else if(1<n){c=Array(n);for(var f=0;f<n;f++)c[f]=arguments[f+2];i.children=c}return{$$typeof:a,type:e.type,key:s,ref:l,props:i,_owner:u}},createFactory:function(e){var t=j.bind(null,e);return t.type=e,t},isValidElement:I,version:"16.9.0",unstable_withSuspenseConfig:function(e,t){var r=P.suspense;P.suspense=void 0===t?null:t;try{e()}finally{P.suspense=r}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:C,ReactCurrentBatchConfig:P,ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:o}},W={default:V},q=W&&V||W;e.exports=q.default||q},function(e,t,r){"use strict";
/** @license React v16.9.0
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=r(0),i=r(52),a=r(338);function s(e){for(var t=e.message,r="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)r+="&args[]="+encodeURIComponent(arguments[n]);return e.message="Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e}if(!o)throw s(Error(227));var l=null,u={};function c(){if(l)for(var e in u){var t=u[e],r=l.indexOf(e);if(!(-1<r))throw s(Error(96),e);if(!d[r]){if(!t.extractEvents)throw s(Error(97),e);for(var n in d[r]=t,r=t.eventTypes){var o=void 0,i=r[n],a=t,c=n;if(p.hasOwnProperty(c))throw s(Error(99),c);p[c]=i;var h=i.phasedRegistrationNames;if(h){for(o in h)h.hasOwnProperty(o)&&f(h[o],a,c);o=!0}else i.registrationName?(f(i.registrationName,a,c),o=!0):o=!1;if(!o)throw s(Error(98),n,e)}}}}function f(e,t,r){if(h[e])throw s(Error(100),e);h[e]=t,b[e]=t.eventTypes[r].dependencies}var d=[],p={},h={},b={};function m(e,t,r,n,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(e){this.onError(e)}}var y=!1,v=null,g=!1,w=null,k={onError:function(e){y=!0,v=e}};function x(e,t,r,n,o,i,a,s,l){y=!1,v=null,m.apply(k,arguments)}var E=null,O=null,S=null;function C(e,t,r){var n=e.type||"unknown-event";e.currentTarget=S(r),function(e,t,r,n,o,i,a,l,u){if(x.apply(this,arguments),y){if(!y)throw s(Error(198));var c=v;y=!1,v=null,g||(g=!0,w=c)}}(n,t,void 0,e),e.currentTarget=null}function P(e,t){if(null==t)throw s(Error(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function _(e,t,r){Array.isArray(e)?e.forEach(t,r):e&&t.call(r,e)}var T=null;function A(e){if(e){var t=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(t))for(var n=0;n<t.length&&!e.isPropagationStopped();n++)C(e,t[n],r[n]);else t&&C(e,t,r);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function j(e){if(null!==e&&(T=P(T,e)),e=T,T=null,e){if(_(e,A),T)throw s(Error(95));if(g)throw e=w,g=!1,w=null,e}}var I={injectEventPluginOrder:function(e){if(l)throw s(Error(101));l=Array.prototype.slice.call(e),c()},injectEventPluginsByName:function(e){var t,r=!1;for(t in e)if(e.hasOwnProperty(t)){var n=e[t];if(!u.hasOwnProperty(t)||u[t]!==n){if(u[t])throw s(Error(102),t);u[t]=n,r=!0}}r&&c()}};function D(e,t){var r=e.stateNode;if(!r)return null;var o=E(r);if(!o)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw s(Error(231),t,n(r));return r}var M=Math.random().toString(36).slice(2),R="__reactInternalInstance$"+M,F="__reactEventHandlers$"+M;function N(e){if(e[R])return e[R];for(;!e[R];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[R]).tag||6===e.tag?e:null}function L(e){return!(e=e[R])||5!==e.tag&&6!==e.tag?null:e}function U(e){if(5===e.tag||6===e.tag)return e.stateNode;throw s(Error(33))}function H(e){return e[F]||null}function z(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function B(e,t,r){(t=D(e,r.dispatchConfig.phasedRegistrationNames[t]))&&(r._dispatchListeners=P(r._dispatchListeners,t),r._dispatchInstances=P(r._dispatchInstances,e))}function V(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,r=[];t;)r.push(t),t=z(t);for(t=r.length;0<t--;)B(r[t],"captured",e);for(t=0;t<r.length;t++)B(r[t],"bubbled",e)}}function W(e,t,r){e&&r&&r.dispatchConfig.registrationName&&(t=D(e,r.dispatchConfig.registrationName))&&(r._dispatchListeners=P(r._dispatchListeners,t),r._dispatchInstances=P(r._dispatchInstances,e))}function q(e){e&&e.dispatchConfig.registrationName&&W(e._targetInst,null,e)}function G(e){_(e,V)}var X=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement);function K(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var $={animationend:K("Animation","AnimationEnd"),animationiteration:K("Animation","AnimationIteration"),animationstart:K("Animation","AnimationStart"),transitionend:K("Transition","TransitionEnd")},Q={},Y={};function J(e){if(Q[e])return Q[e];if(!$[e])return e;var t,r=$[e];for(t in r)if(r.hasOwnProperty(t)&&t in Y)return Q[e]=r[t];return e}X&&(Y=document.createElement("div").style,"AnimationEvent"in window||(delete $.animationend.animation,delete $.animationiteration.animation,delete $.animationstart.animation),"TransitionEvent"in window||delete $.transitionend.transition);var Z=J("animationend"),ee=J("animationiteration"),te=J("animationstart"),re=J("transitionend"),ne="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),oe=null,ie=null,ae=null;function se(){if(ae)return ae;var e,t,r=ie,n=r.length,o="value"in oe?oe.value:oe.textContent,i=o.length;for(e=0;e<n&&r[e]===o[e];e++);var a=n-e;for(t=1;t<=a&&r[n-t]===o[i-t];t++);return ae=o.slice(e,1<t?1-t:void 0)}function le(){return!0}function ue(){return!1}function ce(e,t,r,n){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=r,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(r):"target"===o?this.target=n:this[o]=r[o]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?le:ue,this.isPropagationStopped=ue,this}function fe(e,t,r,n){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,r,n),o}return new this(e,t,r,n)}function de(e){if(!(e instanceof this))throw s(Error(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function pe(e){e.eventPool=[],e.getPooled=fe,e.release=de}i(ce.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=le)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=le)},persist:function(){this.isPersistent=le},isPersistent:ue,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=ue,this._dispatchInstances=this._dispatchListeners=null}}),ce.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ce.extend=function(e){function t(){}function r(){return n.apply(this,arguments)}var n=this;t.prototype=n.prototype;var o=new t;return i(o,r.prototype),r.prototype=o,r.prototype.constructor=r,r.Interface=i({},n.Interface,e),r.extend=n.extend,pe(r),r},pe(ce);var he=ce.extend({data:null}),be=ce.extend({data:null}),me=[9,13,27,32],ye=X&&"CompositionEvent"in window,ve=null;X&&"documentMode"in document&&(ve=document.documentMode);var ge=X&&"TextEvent"in window&&!ve,we=X&&(!ye||ve&&8<ve&&11>=ve),ke=String.fromCharCode(32),xe={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Ee=!1;function Oe(e,t){switch(e){case"keyup":return-1!==me.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Se(e){return"object"===n(e=e.detail)&&"data"in e?e.data:null}var Ce=!1;var Pe={eventTypes:xe,extractEvents:function(e,t,r,n){var o=void 0,i=void 0;if(ye)e:{switch(e){case"compositionstart":o=xe.compositionStart;break e;case"compositionend":o=xe.compositionEnd;break e;case"compositionupdate":o=xe.compositionUpdate;break e}o=void 0}else Ce?Oe(e,r)&&(o=xe.compositionEnd):"keydown"===e&&229===r.keyCode&&(o=xe.compositionStart);return o?(we&&"ko"!==r.locale&&(Ce||o!==xe.compositionStart?o===xe.compositionEnd&&Ce&&(i=se()):(ie="value"in(oe=n)?oe.value:oe.textContent,Ce=!0)),o=he.getPooled(o,t,r,n),i?o.data=i:null!==(i=Se(r))&&(o.data=i),G(o),i=o):i=null,(e=ge?function(e,t){switch(e){case"compositionend":return Se(t);case"keypress":return 32!==t.which?null:(Ee=!0,ke);case"textInput":return(e=t.data)===ke&&Ee?null:e;default:return null}}(e,r):function(e,t){if(Ce)return"compositionend"===e||!ye&&Oe(e,t)?(e=se(),ae=ie=oe=null,Ce=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return we&&"ko"!==t.locale?null:t.data;default:return null}}(e,r))?((t=be.getPooled(xe.beforeInput,t,r,n)).data=e,G(t)):t=null,null===i?t:null===t?i:[i,t]}},_e=null,Te=null,Ae=null;function je(e){if(e=O(e)){if("function"!=typeof _e)throw s(Error(280));var t=E(e.stateNode);_e(e.stateNode,e.type,t)}}function Ie(e){Te?Ae?Ae.push(e):Ae=[e]:Te=e}function De(){if(Te){var e=Te,t=Ae;if(Ae=Te=null,je(e),t)for(e=0;e<t.length;e++)je(t[e])}}function Me(e,t){return e(t)}function Re(e,t,r,n){return e(t,r,n)}function Fe(){}var Ne=Me,Le=!1;function Ue(){null===Te&&null===Ae||(Fe(),De())}var He={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ze(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!He[e.type]:"textarea"===t}function Be(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function Ve(e){if(!X)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function We(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function qe(e){e._valueTracker||(e._valueTracker=function(e){var t=We(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Ge(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=We(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}var Xe=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Xe.hasOwnProperty("ReactCurrentDispatcher")||(Xe.ReactCurrentDispatcher={current:null}),Xe.hasOwnProperty("ReactCurrentBatchConfig")||(Xe.ReactCurrentBatchConfig={suspense:null});var Ke=/^(.*)[\\\/]/,$e="function"==typeof Symbol&&Symbol.for,Qe=$e?Symbol.for("react.element"):60103,Ye=$e?Symbol.for("react.portal"):60106,Je=$e?Symbol.for("react.fragment"):60107,Ze=$e?Symbol.for("react.strict_mode"):60108,et=$e?Symbol.for("react.profiler"):60114,tt=$e?Symbol.for("react.provider"):60109,rt=$e?Symbol.for("react.context"):60110,nt=$e?Symbol.for("react.concurrent_mode"):60111,ot=$e?Symbol.for("react.forward_ref"):60112,it=$e?Symbol.for("react.suspense"):60113,at=$e?Symbol.for("react.suspense_list"):60120,st=$e?Symbol.for("react.memo"):60115,lt=$e?Symbol.for("react.lazy"):60116;$e&&Symbol.for("react.fundamental"),$e&&Symbol.for("react.responder");var ut="function"==typeof Symbol&&Symbol.iterator;function ct(e){return null===e||"object"!==n(e)?null:"function"==typeof(e=ut&&e[ut]||e["@@iterator"])?e:null}function ft(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Je:return"Fragment";case Ye:return"Portal";case et:return"Profiler";case Ze:return"StrictMode";case it:return"Suspense";case at:return"SuspenseList"}if("object"===n(e))switch(e.$$typeof){case rt:return"Context.Consumer";case tt:return"Context.Provider";case ot:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case st:return ft(e.type);case lt:if(e=1===e._status?e._result:null)return ft(e)}return null}function dt(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var r="";break e;default:var n=e._debugOwner,o=e._debugSource,i=ft(e.type);r=null,n&&(r=ft(n.type)),n=i,i="",o?i=" (at "+o.fileName.replace(Ke,"")+":"+o.lineNumber+")":r&&(i=" (created by "+r+")"),r="\n    in "+(n||"Unknown")+i}t+=r,e=e.return}while(e);return t}var pt=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ht=Object.prototype.hasOwnProperty,bt={},mt={};function yt(e,t,r,o){if(null==t||function(e,t,r,o){if(null!==r&&0===r.type)return!1;switch(n(t)){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,o))return!0;if(o)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function vt(e,t,r,n,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i}var gt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){gt[e]=new vt(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];gt[t]=new vt(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){gt[e]=new vt(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){gt[e]=new vt(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){gt[e]=new vt(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){gt[e]=new vt(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){gt[e]=new vt(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){gt[e]=new vt(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){gt[e]=new vt(e,5,!1,e.toLowerCase(),null,!1)}));var wt=/[\-:]([a-z])/g;function kt(e){return e[1].toUpperCase()}function xt(e,t,r,n){var o=gt.hasOwnProperty(t)?gt[t]:null;(null!==o?0===o.type:!n&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(yt(t,r,o,n)&&(r=null),n||null===o?function(e){return!!ht.call(mt,e)||!ht.call(bt,e)&&(pt.test(e)?mt[e]=!0:(bt[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=null===r?3!==o.type&&"":r:(t=o.attributeName,n=o.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(o=o.type)||4===o&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}function Et(e){switch(n(e)){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Ot(e,t){var r=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function St(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=Et(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ct(e,t){null!=(t=t.checked)&&xt(e,"checked",t,!1)}function Pt(e,t){Ct(e,t);var r=Et(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?Tt(e,t.type,r):t.hasOwnProperty("defaultValue")&&Tt(e,t.type,Et(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function _t(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function Tt(e,t,r){"number"===t&&e.ownerDocument.activeElement===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(wt,kt);gt[t]=new vt(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(wt,kt);gt[t]=new vt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(wt,kt);gt[t]=new vt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){gt[e]=new vt(e,1,!1,e.toLowerCase(),null,!1)})),gt.xlinkHref=new vt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){gt[e]=new vt(e,1,!1,e.toLowerCase(),null,!0)}));var At={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function jt(e,t,r){return(e=ce.getPooled(At.change,e,t,r)).type="change",Ie(r),G(e),e}var It=null,Dt=null;function Mt(e){j(e)}function Rt(e){if(Ge(U(e)))return e}function Ft(e,t){if("change"===e)return t}var Nt=!1;function Lt(){It&&(It.detachEvent("onpropertychange",Ut),Dt=It=null)}function Ut(e){if("value"===e.propertyName&&Rt(Dt))if(e=jt(Dt,e,Be(e)),Le)j(e);else{Le=!0;try{Me(Mt,e)}finally{Le=!1,Ue()}}}function Ht(e,t,r){"focus"===e?(Lt(),Dt=r,(It=t).attachEvent("onpropertychange",Ut)):"blur"===e&&Lt()}function zt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Rt(Dt)}function Bt(e,t){if("click"===e)return Rt(t)}function Vt(e,t){if("input"===e||"change"===e)return Rt(t)}X&&(Nt=Ve("input")&&(!document.documentMode||9<document.documentMode));var Wt={eventTypes:At,_isInputEventSupported:Nt,extractEvents:function(e,t,r,n){var o=t?U(t):window,i=void 0,a=void 0,s=o.nodeName&&o.nodeName.toLowerCase();if("select"===s||"input"===s&&"file"===o.type?i=Ft:ze(o)?Nt?i=Vt:(i=zt,a=Ht):(s=o.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(i=Bt),i&&(i=i(e,t)))return jt(i,r,n);a&&a(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&Tt(o,"number",o.value)}},qt=ce.extend({view:null,detail:null}),Gt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Xt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Gt[e])&&!!t[e]}function Kt(){return Xt}var $t=0,Qt=0,Yt=!1,Jt=!1,Zt=qt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Kt,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=$t;return $t=e.screenX,Yt?"mousemove"===e.type?e.screenX-t:0:(Yt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Qt;return Qt=e.screenY,Jt?"mousemove"===e.type?e.screenY-t:0:(Jt=!0,0)}}),er=Zt.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),tr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},rr={eventTypes:tr,extractEvents:function(e,t,r,n){var o="mouseover"===e||"pointerover"===e,i="mouseout"===e||"pointerout"===e;if(o&&(r.relatedTarget||r.fromElement)||!i&&!o)return null;if(o=n.window===n?n:(o=n.ownerDocument)?o.defaultView||o.parentWindow:window,i?(i=t,t=(t=r.relatedTarget||r.toElement)?N(t):null):i=null,i===t)return null;var a=void 0,s=void 0,l=void 0,u=void 0;"mouseout"===e||"mouseover"===e?(a=Zt,s=tr.mouseLeave,l=tr.mouseEnter,u="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=er,s=tr.pointerLeave,l=tr.pointerEnter,u="pointer");var c=null==i?o:U(i);if(o=null==t?o:U(t),(e=a.getPooled(s,i,r,n)).type=u+"leave",e.target=c,e.relatedTarget=o,(r=a.getPooled(l,t,r,n)).type=u+"enter",r.target=o,r.relatedTarget=c,n=t,i&&n)e:{for(o=n,u=0,a=t=i;a;a=z(a))u++;for(a=0,l=o;l;l=z(l))a++;for(;0<u-a;)t=z(t),u--;for(;0<a-u;)o=z(o),a--;for(;u--;){if(t===o||t===o.alternate)break e;t=z(t),o=z(o)}t=null}else t=null;for(o=t,t=[];i&&i!==o&&(null===(u=i.alternate)||u!==o);)t.push(i),i=z(i);for(i=[];n&&n!==o&&(null===(u=n.alternate)||u!==o);)i.push(n),n=z(n);for(n=0;n<t.length;n++)W(t[n],"bubbled",e);for(n=i.length;0<n--;)W(i[n],"captured",r);return[e,r]}};function nr(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var or=Object.prototype.hasOwnProperty;function ir(e,t){if(nr(e,t))return!0;if("object"!==n(e)||null===e||"object"!==n(t)||null===t)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(o=0;o<r.length;o++)if(!or.call(t,r[o])||!nr(e[r[o]],t[r[o]]))return!1;return!0}function ar(e,t){return{responder:e,props:t}}function sr(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function lr(e){if(2!==sr(e))throw s(Error(188))}function ur(e){if(!(e=function(e){var t=e.alternate;if(!t){if(3===(t=sr(e)))throw s(Error(188));return 1===t?null:e}for(var r=e,n=t;;){var o=r.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(n=o.return)){r=n;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===r)return lr(o),e;if(i===n)return lr(o),t;i=i.sibling}throw s(Error(188))}if(r.return!==n.return)r=o,n=i;else{for(var a=!1,l=o.child;l;){if(l===r){a=!0,r=o,n=i;break}if(l===n){a=!0,n=o,r=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===r){a=!0,r=i,n=o;break}if(l===n){a=!0,n=i,r=o;break}l=l.sibling}if(!a)throw s(Error(189))}}if(r.alternate!==n)throw s(Error(190))}if(3!==r.tag)throw s(Error(188));return r.stateNode.current===r?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}new Map,new Map,new Set,new Map;var cr=ce.extend({animationName:null,elapsedTime:null,pseudoElement:null}),fr=ce.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dr=qt.extend({relatedTarget:null});function pr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}for(var hr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},br={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},mr=qt.extend({key:function(e){if(e.key){var t=hr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=pr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?br[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Kt,charCode:function(e){return"keypress"===e.type?pr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?pr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),yr=Zt.extend({dataTransfer:null}),vr=qt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Kt}),gr=ce.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),wr=Zt.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),kr=[["blur","blur",0],["cancel","cancel",0],["click","click",0],["close","close",0],["contextmenu","contextMenu",0],["copy","copy",0],["cut","cut",0],["auxclick","auxClick",0],["dblclick","doubleClick",0],["dragend","dragEnd",0],["dragstart","dragStart",0],["drop","drop",0],["focus","focus",0],["input","input",0],["invalid","invalid",0],["keydown","keyDown",0],["keypress","keyPress",0],["keyup","keyUp",0],["mousedown","mouseDown",0],["mouseup","mouseUp",0],["paste","paste",0],["pause","pause",0],["play","play",0],["pointercancel","pointerCancel",0],["pointerdown","pointerDown",0],["pointerup","pointerUp",0],["ratechange","rateChange",0],["reset","reset",0],["seeked","seeked",0],["submit","submit",0],["touchcancel","touchCancel",0],["touchend","touchEnd",0],["touchstart","touchStart",0],["volumechange","volumeChange",0],["drag","drag",1],["dragenter","dragEnter",1],["dragexit","dragExit",1],["dragleave","dragLeave",1],["dragover","dragOver",1],["mousemove","mouseMove",1],["mouseout","mouseOut",1],["mouseover","mouseOver",1],["pointermove","pointerMove",1],["pointerout","pointerOut",1],["pointerover","pointerOver",1],["scroll","scroll",1],["toggle","toggle",1],["touchmove","touchMove",1],["wheel","wheel",1],["abort","abort",2],[Z,"animationEnd",2],[ee,"animationIteration",2],[te,"animationStart",2],["canplay","canPlay",2],["canplaythrough","canPlayThrough",2],["durationchange","durationChange",2],["emptied","emptied",2],["encrypted","encrypted",2],["ended","ended",2],["error","error",2],["gotpointercapture","gotPointerCapture",2],["load","load",2],["loadeddata","loadedData",2],["loadedmetadata","loadedMetadata",2],["loadstart","loadStart",2],["lostpointercapture","lostPointerCapture",2],["playing","playing",2],["progress","progress",2],["seeking","seeking",2],["stalled","stalled",2],["suspend","suspend",2],["timeupdate","timeUpdate",2],[re,"transitionEnd",2],["waiting","waiting",2]],xr={},Er={},Or=0;Or<kr.length;Or++){var Sr=kr[Or],Cr=Sr[0],Pr=Sr[1],_r=Sr[2],Tr="on"+(Pr[0].toUpperCase()+Pr.slice(1)),Ar={phasedRegistrationNames:{bubbled:Tr,captured:Tr+"Capture"},dependencies:[Cr],eventPriority:_r};xr[Pr]=Ar,Er[Cr]=Ar}var jr={eventTypes:xr,getEventPriority:function(e){return void 0!==(e=Er[e])?e.eventPriority:2},extractEvents:function(e,t,r,n){var o=Er[e];if(!o)return null;switch(e){case"keypress":if(0===pr(r))return null;case"keydown":case"keyup":e=mr;break;case"blur":case"focus":e=dr;break;case"click":if(2===r.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Zt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=yr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=vr;break;case Z:case ee:case te:e=cr;break;case re:e=gr;break;case"scroll":e=qt;break;case"wheel":e=wr;break;case"copy":case"cut":case"paste":e=fr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=er;break;default:e=ce}return G(t=e.getPooled(o,t,r,n)),t}},Ir=jr.getEventPriority,Dr=[];function Mr(e){var t=e.targetInst,r=t;do{if(!r){e.ancestors.push(r);break}var n;for(n=r;n.return;)n=n.return;if(!(n=3!==n.tag?null:n.stateNode.containerInfo))break;e.ancestors.push(r),r=N(n)}while(r);for(r=0;r<e.ancestors.length;r++){t=e.ancestors[r];var o=Be(e.nativeEvent);n=e.topLevelType;for(var i=e.nativeEvent,a=null,s=0;s<d.length;s++){var l=d[s];l&&(l=l.extractEvents(n,t,i,o))&&(a=P(a,l))}j(a)}}var Rr=!0;function Fr(e,t){Nr(t,e,!1)}function Nr(e,t,r){switch(Ir(t)){case 0:var n=Lr.bind(null,t,1);break;case 1:n=Ur.bind(null,t,1);break;default:n=Hr.bind(null,t,1)}r?e.addEventListener(t,n,!0):e.addEventListener(t,n,!1)}function Lr(e,t,r){Le||Fe();var n=Hr,o=Le;Le=!0;try{Re(n,e,t,r)}finally{(Le=o)||Ue()}}function Ur(e,t,r){Hr(e,t,r)}function Hr(e,t,r){if(Rr){if(null===(t=N(t=Be(r)))||"number"!=typeof t.tag||2===sr(t)||(t=null),Dr.length){var n=Dr.pop();n.topLevelType=e,n.nativeEvent=r,n.targetInst=t,e=n}else e={topLevelType:e,nativeEvent:r,targetInst:t,ancestors:[]};try{if(r=e,Le)Mr(r);else{Le=!0;try{Ne(Mr,r,void 0)}finally{Le=!1,Ue()}}}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>Dr.length&&Dr.push(e)}}}var zr=new("function"==typeof WeakMap?WeakMap:Map);function Br(e){var t=zr.get(e);return void 0===t&&(t=new Set,zr.set(e,t)),t}function Vr(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Wr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qr(e,t){var r,n=Wr(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Wr(n)}}function Gr(){for(var e=window,t=Vr();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=Vr((e=t.contentWindow).document)}return t}function Xr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var Kr=X&&"documentMode"in document&&11>=document.documentMode,$r={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Qr=null,Yr=null,Jr=null,Zr=!1;function en(e,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Zr||null==Qr||Qr!==Vr(r)?null:("selectionStart"in(r=Qr)&&Xr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Jr&&ir(Jr,r)?null:(Jr=r,(e=ce.getPooled($r.select,Yr,e,t)).type="select",e.target=Qr,G(e),e))}var tn={eventTypes:$r,extractEvents:function(e,t,r,n){var o,i=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;if(!(o=!i)){e:{i=Br(i),o=b.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?U(t):window,e){case"focus":(ze(i)||"true"===i.contentEditable)&&(Qr=i,Yr=t,Jr=null);break;case"blur":Jr=Yr=Qr=null;break;case"mousedown":Zr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Zr=!1,en(r,n);case"selectionchange":if(Kr)break;case"keydown":case"keyup":return en(r,n)}return null}};function rn(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function nn(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Et(r),t=null,o=0;o<e.length;o++){if(e[o].value===r)return e[o].selected=!0,void(n&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function on(e,t){if(null!=t.dangerouslySetInnerHTML)throw s(Error(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function an(e,t){var r=t.value;if(null==r){if(r=t.defaultValue,null!=(t=t.children)){if(null!=r)throw s(Error(92));if(Array.isArray(t)){if(!(1>=t.length))throw s(Error(93));t=t[0]}r=t}null==r&&(r="")}e._wrapperState={initialValue:Et(r)}}function sn(e,t){var r=Et(t.value),n=Et(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function ln(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}I.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),E=H,O=L,S=U,I.injectEventPluginsByName({SimpleEventPlugin:jr,EnterLeaveEventPlugin:rr,ChangeEventPlugin:Wt,SelectEventPlugin:tn,BeforeInputEventPlugin:Pe});var un={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function cn(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function fn(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?cn(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var dn=void 0,pn=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,r,n,o){MSApp.execUnsafeLocalFunction((function(){return e(t,r)}))}:e}((function(e,t){if(e.namespaceURI!==un.svg||"innerHTML"in e)e.innerHTML=t;else{for((dn=dn||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=dn.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function hn(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var bn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},mn=["Webkit","ms","Moz","O"];function yn(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||bn.hasOwnProperty(e)&&bn[e]?(""+t).trim():t+"px"}function vn(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),o=yn(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}Object.keys(bn).forEach((function(e){mn.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),bn[t]=bn[e]}))}));var gn=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function wn(e,t){if(t){if(gn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw s(Error(137),e,"");if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw s(Error(60));if(!("object"===n(t.dangerouslySetInnerHTML)&&"__html"in t.dangerouslySetInnerHTML))throw s(Error(61))}if(null!=t.style&&"object"!==n(t.style))throw s(Error(62),"")}}function kn(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function xn(e,t){var r=Br(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=b[t];for(var n=0;n<t.length;n++){var o=t[n];if(!r.has(o)){switch(o){case"scroll":Nr(e,"scroll",!0);break;case"focus":case"blur":Nr(e,"focus",!0),Nr(e,"blur",!0),r.add("blur"),r.add("focus");break;case"cancel":case"close":Ve(o)&&Nr(e,o,!0);break;case"invalid":case"submit":case"reset":break;default:-1===ne.indexOf(o)&&Fr(o,e)}r.add(o)}}}function En(){}var On=null,Sn=null;function Cn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Pn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"===n(t.dangerouslySetInnerHTML)&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var _n="function"==typeof setTimeout?setTimeout:void 0,Tn="function"==typeof clearTimeout?clearTimeout:void 0;function An(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}new Set;var jn=[],In=-1;function Dn(e){0>In||(e.current=jn[In],jn[In]=null,In--)}function Mn(e,t){jn[++In]=e.current,e.current=t}var Rn={},Fn={current:Rn},Nn={current:!1},Ln=Rn;function Un(e,t){var r=e.type.contextTypes;if(!r)return Rn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in r)i[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Hn(e){return null!=(e=e.childContextTypes)}function zn(e){Dn(Nn),Dn(Fn)}function Bn(e){Dn(Nn),Dn(Fn)}function Vn(e,t,r){if(Fn.current!==Rn)throw s(Error(168));Mn(Fn,t),Mn(Nn,r)}function Wn(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in e))throw s(Error(108),ft(t)||"Unknown",o);return i({},r,n)}function qn(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Rn,Ln=Fn.current,Mn(Fn,t),Mn(Nn,Nn.current),!0}function Gn(e,t,r){var n=e.stateNode;if(!n)throw s(Error(169));r?(t=Wn(e,t,Ln),n.__reactInternalMemoizedMergedChildContext=t,Dn(Nn),Dn(Fn),Mn(Fn,t)):Dn(Nn),Mn(Nn,r)}var Xn=a.unstable_runWithPriority,Kn=a.unstable_scheduleCallback,$n=a.unstable_cancelCallback,Qn=a.unstable_shouldYield,Yn=a.unstable_requestPaint,Jn=a.unstable_now,Zn=a.unstable_getCurrentPriorityLevel,eo=a.unstable_ImmediatePriority,to=a.unstable_UserBlockingPriority,ro=a.unstable_NormalPriority,no=a.unstable_LowPriority,oo=a.unstable_IdlePriority,io={},ao=void 0!==Yn?Yn:function(){},so=null,lo=null,uo=!1,co=Jn(),fo=1e4>co?Jn:function(){return Jn()-co};function po(){switch(Zn()){case eo:return 99;case to:return 98;case ro:return 97;case no:return 96;case oo:return 95;default:throw s(Error(332))}}function ho(e){switch(e){case 99:return eo;case 98:return to;case 97:return ro;case 96:return no;case 95:return oo;default:throw s(Error(332))}}function bo(e,t){return e=ho(e),Xn(e,t)}function mo(e,t,r){return e=ho(e),Kn(e,t,r)}function yo(e){return null===so?(so=[e],lo=Kn(eo,go)):so.push(e),io}function vo(){null!==lo&&$n(lo),go()}function go(){if(!uo&&null!==so){uo=!0;var e=0;try{var t=so;bo(99,(function(){for(;e<t.length;e++){var r=t[e];do{r=r(!0)}while(null!==r)}})),so=null}catch(t){throw null!==so&&(so=so.slice(e+1)),Kn(eo,vo),t}finally{uo=!1}}}function wo(e,t){return 1073741823===t?99:1===t?95:0>=(e=10*(1073741821-t)-10*(1073741821-e))?99:250>=e?98:5250>=e?97:95}function ko(e,t){if(e&&e.defaultProps)for(var r in t=i({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}var xo={current:null},Eo=null,Oo=null,So=null;function Co(){So=Oo=Eo=null}function Po(e,t){var r=e.type._context;Mn(xo,r._currentValue),r._currentValue=t}function _o(e){var t=xo.current;Dn(xo),e.type._context._currentValue=t}function To(e,t){for(;null!==e;){var r=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==r&&r.childExpirationTime<t&&(r.childExpirationTime=t);else{if(!(null!==r&&r.childExpirationTime<t))break;r.childExpirationTime=t}e=e.return}}function Ao(e,t){Eo=e,So=Oo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(pa=!0),e.firstContext=null)}function jo(e,t){if(So!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(So=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Oo){if(null===Eo)throw s(Error(308));Oo=t,Eo.dependencies={expirationTime:0,firstContext:t,responders:null}}else Oo=Oo.next=t;return e._currentValue}var Io=!1;function Do(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Mo(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Ro(e,t){return{expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Fo(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function No(e,t){var r=e.alternate;if(null===r){var n=e.updateQueue,o=null;null===n&&(n=e.updateQueue=Do(e.memoizedState))}else n=e.updateQueue,o=r.updateQueue,null===n?null===o?(n=e.updateQueue=Do(e.memoizedState),o=r.updateQueue=Do(r.memoizedState)):n=e.updateQueue=Mo(o):null===o&&(o=r.updateQueue=Mo(n));null===o||n===o?Fo(n,t):null===n.lastUpdate||null===o.lastUpdate?(Fo(n,t),Fo(o,t)):(Fo(n,t),o.lastUpdate=t)}function Lo(e,t){var r=e.updateQueue;null===(r=null===r?e.updateQueue=Do(e.memoizedState):Uo(e,r)).lastCapturedUpdate?r.firstCapturedUpdate=r.lastCapturedUpdate=t:(r.lastCapturedUpdate.next=t,r.lastCapturedUpdate=t)}function Uo(e,t){var r=e.alternate;return null!==r&&t===r.updateQueue&&(t=e.updateQueue=Mo(t)),t}function Ho(e,t,r,n,o,a){switch(r.tag){case 1:return"function"==typeof(e=r.payload)?e.call(a,n,o):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(null==(o="function"==typeof(e=r.payload)?e.call(a,n,o):e))break;return i({},n,o);case 2:Io=!0}return n}function zo(e,t,r,n,o){Io=!1;for(var i=(t=Uo(e,t)).baseState,a=null,s=0,l=t.firstUpdate,u=i;null!==l;){var c=l.expirationTime;c<o?(null===a&&(a=l,i=u),s<c&&(s=c)):(Ws(c,l.suspenseConfig),u=Ho(e,0,l,u,r,n),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=l:(t.lastEffect.nextEffect=l,t.lastEffect=l))),l=l.next}for(c=null,l=t.firstCapturedUpdate;null!==l;){var f=l.expirationTime;f<o?(null===c&&(c=l,null===a&&(i=u)),s<f&&(s=f)):(u=Ho(e,0,l,u,r,n),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=l:(t.lastCapturedEffect.nextEffect=l,t.lastCapturedEffect=l))),l=l.next}null===a&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===c&&(i=u),t.baseState=i,t.firstUpdate=a,t.firstCapturedUpdate=c,e.expirationTime=s,e.memoizedState=u}function Bo(e,t,r){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),Vo(t.firstEffect,r),t.firstEffect=t.lastEffect=null,Vo(t.firstCapturedEffect,r),t.firstCapturedEffect=t.lastCapturedEffect=null}function Vo(e,t){for(;null!==e;){var r=e.callback;if(null!==r){e.callback=null;var n=t;if("function"!=typeof r)throw s(Error(191),r);r.call(n)}e=e.nextEffect}}var Wo=Xe.ReactCurrentBatchConfig,qo=(new o.Component).refs;function Go(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:i({},t,r),e.memoizedState=r,null!==(n=e.updateQueue)&&0===e.expirationTime&&(n.baseState=r)}var Xo={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===sr(e)},enqueueSetState:function(e,t,r){e=e._reactInternalFiber;var n=js(),o=Wo.suspense;(o=Ro(n=Is(n,e,o),o)).payload=t,null!=r&&(o.callback=r),No(e,o),Ms(e,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternalFiber;var n=js(),o=Wo.suspense;(o=Ro(n=Is(n,e,o),o)).tag=1,o.payload=t,null!=r&&(o.callback=r),No(e,o),Ms(e,n)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var r=js(),n=Wo.suspense;(n=Ro(r=Is(r,e,n),n)).tag=2,null!=t&&(n.callback=t),No(e,n),Ms(e,r)}};function Ko(e,t,r,n,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!ir(r,n)||!ir(o,i))}function $o(e,t,r){var o=!1,i=Rn,a=t.contextType;return"object"===n(a)&&null!==a?a=jo(a):(i=Hn(t)?Ln:Fn.current,a=(o=null!=(o=t.contextTypes))?Un(e,i):Rn),t=new t(r,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Xo,e.stateNode=t,t._reactInternalFiber=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Qo(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Xo.enqueueReplaceState(t,t.state,null)}function Yo(e,t,r,o){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=qo;var a=t.contextType;"object"===n(a)&&null!==a?i.context=jo(a):(a=Hn(t)?Ln:Fn.current,i.context=Un(e,a)),null!==(a=e.updateQueue)&&(zo(e,a,r,i,o),i.state=e.memoizedState),"function"==typeof(a=t.getDerivedStateFromProps)&&(Go(e,t,a,r),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Xo.enqueueReplaceState(i,i.state,null),null!==(a=e.updateQueue)&&(zo(e,a,r,i,o),i.state=e.memoizedState)),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}var Jo=Array.isArray;function Zo(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!==n(e)){if(r._owner){r=r._owner;var o=void 0;if(r){if(1!==r.tag)throw s(Error(309));o=r.stateNode}if(!o)throw s(Error(147),e);var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=o.refs;t===qo&&(t=o.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw s(Error(284));if(!r._owner)throw s(Error(290),e)}return e}function ei(e,t){if("textarea"!==e.type)throw s(Error(31),"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function ti(e){function t(t,r){if(e){var n=t.lastEffect;null!==n?(n.nextEffect=r,t.lastEffect=r):t.firstEffect=t.lastEffect=r,r.nextEffect=null,r.effectTag=8}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t,r){return(e=sl(e,t)).index=0,e.sibling=null,e}function a(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.effectTag=2,r):n:(t.effectTag=2,r):r}function l(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,r,n){return null===t||6!==t.tag?((t=cl(r,e.mode,n)).return=e,t):((t=i(t,r)).return=e,t)}function c(e,t,r,n){return null!==t&&t.elementType===r.type?((n=i(t,r.props)).ref=Zo(e,t,r),n.return=e,n):((n=ll(r.type,r.key,r.props,null,e.mode,n)).ref=Zo(e,t,r),n.return=e,n)}function f(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=fl(r,e.mode,n)).return=e,t):((t=i(t,r.children||[])).return=e,t)}function d(e,t,r,n,o){return null===t||7!==t.tag?((t=ul(r,e.mode,n,o)).return=e,t):((t=i(t,r)).return=e,t)}function p(e,t,r){if("string"==typeof t||"number"==typeof t)return(t=cl(""+t,e.mode,r)).return=e,t;if("object"===n(t)&&null!==t){switch(t.$$typeof){case Qe:return(r=ll(t.type,t.key,t.props,null,e.mode,r)).ref=Zo(e,null,t),r.return=e,r;case Ye:return(t=fl(t,e.mode,r)).return=e,t}if(Jo(t)||ct(t))return(t=ul(t,e.mode,r,null)).return=e,t;ei(e,t)}return null}function h(e,t,r,o){var i=null!==t?t.key:null;if("string"==typeof r||"number"==typeof r)return null!==i?null:u(e,t,""+r,o);if("object"===n(r)&&null!==r){switch(r.$$typeof){case Qe:return r.key===i?r.type===Je?d(e,t,r.props.children,o,i):c(e,t,r,o):null;case Ye:return r.key===i?f(e,t,r,o):null}if(Jo(r)||ct(r))return null!==i?null:d(e,t,r,o,null);ei(e,r)}return null}function b(e,t,r,o,i){if("string"==typeof o||"number"==typeof o)return u(t,e=e.get(r)||null,""+o,i);if("object"===n(o)&&null!==o){switch(o.$$typeof){case Qe:return e=e.get(null===o.key?r:o.key)||null,o.type===Je?d(t,e,o.props.children,i,o.key):c(t,e,o,i);case Ye:return f(t,e=e.get(null===o.key?r:o.key)||null,o,i)}if(Jo(o)||ct(o))return d(t,e=e.get(r)||null,o,i,null);ei(t,o)}return null}function m(n,i,s,l){for(var u=null,c=null,f=i,d=i=0,m=null;null!==f&&d<s.length;d++){f.index>d?(m=f,f=null):m=f.sibling;var y=h(n,f,s[d],l);if(null===y){null===f&&(f=m);break}e&&f&&null===y.alternate&&t(n,f),i=a(y,i,d),null===c?u=y:c.sibling=y,c=y,f=m}if(d===s.length)return r(n,f),u;if(null===f){for(;d<s.length;d++)null!==(f=p(n,s[d],l))&&(i=a(f,i,d),null===c?u=f:c.sibling=f,c=f);return u}for(f=o(n,f);d<s.length;d++)null!==(m=b(f,n,d,s[d],l))&&(e&&null!==m.alternate&&f.delete(null===m.key?d:m.key),i=a(m,i,d),null===c?u=m:c.sibling=m,c=m);return e&&f.forEach((function(e){return t(n,e)})),u}function y(n,i,l,u){var c=ct(l);if("function"!=typeof c)throw s(Error(150));if(null==(l=c.call(l)))throw s(Error(151));for(var f=c=null,d=i,m=i=0,y=null,v=l.next();null!==d&&!v.done;m++,v=l.next()){d.index>m?(y=d,d=null):y=d.sibling;var g=h(n,d,v.value,u);if(null===g){null===d&&(d=y);break}e&&d&&null===g.alternate&&t(n,d),i=a(g,i,m),null===f?c=g:f.sibling=g,f=g,d=y}if(v.done)return r(n,d),c;if(null===d){for(;!v.done;m++,v=l.next())null!==(v=p(n,v.value,u))&&(i=a(v,i,m),null===f?c=v:f.sibling=v,f=v);return c}for(d=o(n,d);!v.done;m++,v=l.next())null!==(v=b(d,n,m,v.value,u))&&(e&&null!==v.alternate&&d.delete(null===v.key?m:v.key),i=a(v,i,m),null===f?c=v:f.sibling=v,f=v);return e&&d.forEach((function(e){return t(n,e)})),c}return function(e,o,a,u){var c="object"===n(a)&&null!==a&&a.type===Je&&null===a.key;c&&(a=a.props.children);var f="object"===n(a)&&null!==a;if(f)switch(a.$$typeof){case Qe:e:{for(f=a.key,c=o;null!==c;){if(c.key===f){if(7===c.tag?a.type===Je:c.elementType===a.type){r(e,c.sibling),(o=i(c,a.type===Je?a.props.children:a.props)).ref=Zo(e,c,a),o.return=e,e=o;break e}r(e,c);break}t(e,c),c=c.sibling}a.type===Je?((o=ul(a.props.children,e.mode,u,a.key)).return=e,e=o):((u=ll(a.type,a.key,a.props,null,e.mode,u)).ref=Zo(e,o,a),u.return=e,e=u)}return l(e);case Ye:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){r(e,o.sibling),(o=i(o,a.children||[])).return=e,e=o;break e}r(e,o);break}t(e,o),o=o.sibling}(o=fl(a,e.mode,u)).return=e,e=o}return l(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==o&&6===o.tag?(r(e,o.sibling),(o=i(o,a)).return=e,e=o):(r(e,o),(o=cl(a,e.mode,u)).return=e,e=o),l(e);if(Jo(a))return m(e,o,a,u);if(ct(a))return y(e,o,a,u);if(f&&ei(e,a),void 0===a&&!c)switch(e.tag){case 1:case 0:throw e=e.type,s(Error(152),e.displayName||e.name||"Component")}return r(e,o)}}var ri=ti(!0),ni=ti(!1),oi={},ii={current:oi},ai={current:oi},si={current:oi};function li(e){if(e===oi)throw s(Error(174));return e}function ui(e,t){Mn(si,t),Mn(ai,e),Mn(ii,oi);var r=t.nodeType;switch(r){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fn(null,"");break;default:t=fn(t=(r=8===r?t.parentNode:t).namespaceURI||null,r=r.tagName)}Dn(ii),Mn(ii,t)}function ci(e){Dn(ii),Dn(ai),Dn(si)}function fi(e){li(si.current);var t=li(ii.current),r=fn(t,e.type);t!==r&&(Mn(ai,e),Mn(ii,r))}function di(e){ai.current===e&&(Dn(ii),Dn(ai))}var pi=1,hi=1,bi=2,mi={current:0};function yi(e){for(var t=e;null!==t;){if(13===t.tag){if(null!==t.memoizedState)return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var vi=0,gi=2,wi=4,ki=8,xi=16,Ei=32,Oi=64,Si=128,Ci=Xe.ReactCurrentDispatcher,Pi=0,_i=null,Ti=null,Ai=null,ji=null,Ii=null,Di=null,Mi=0,Ri=null,Fi=0,Ni=!1,Li=null,Ui=0;function Hi(){throw s(Error(321))}function zi(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!nr(e[r],t[r]))return!1;return!0}function Bi(e,t,r,n,o,i){if(Pi=i,_i=t,Ai=null!==e?e.memoizedState:null,Ci.current=null===Ai?ta:ra,t=r(n,o),Ni){do{Ni=!1,Ui+=1,Ai=null!==e?e.memoizedState:null,Di=ji,Ri=Ii=Ti=null,Ci.current=ra,t=r(n,o)}while(Ni);Li=null,Ui=0}if(Ci.current=ea,(e=_i).memoizedState=ji,e.expirationTime=Mi,e.updateQueue=Ri,e.effectTag|=Fi,e=null!==Ti&&null!==Ti.next,Pi=0,Di=Ii=ji=Ai=Ti=_i=null,Mi=0,Ri=null,Fi=0,e)throw s(Error(300));return t}function Vi(){Ci.current=ea,Pi=0,Di=Ii=ji=Ai=Ti=_i=null,Mi=0,Ri=null,Fi=0,Ni=!1,Li=null,Ui=0}function Wi(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===Ii?ji=Ii=e:Ii=Ii.next=e,Ii}function qi(){if(null!==Di)Di=(Ii=Di).next,Ai=null!==(Ti=Ai)?Ti.next:null;else{if(null===Ai)throw s(Error(310));var e={memoizedState:(Ti=Ai).memoizedState,baseState:Ti.baseState,queue:Ti.queue,baseUpdate:Ti.baseUpdate,next:null};Ii=null===Ii?ji=e:Ii.next=e,Ai=Ti.next}return Ii}function Gi(e,t){return"function"==typeof t?t(e):t}function Xi(e){var t=qi(),r=t.queue;if(null===r)throw s(Error(311));if(r.lastRenderedReducer=e,0<Ui){var n=r.dispatch;if(null!==Li){var o=Li.get(r);if(void 0!==o){Li.delete(r);var i=t.memoizedState;do{i=e(i,o.action),o=o.next}while(null!==o);return nr(i,t.memoizedState)||(pa=!0),t.memoizedState=i,t.baseUpdate===r.last&&(t.baseState=i),r.lastRenderedState=i,[i,n]}}return[t.memoizedState,n]}n=r.last;var a=t.baseUpdate;if(i=t.baseState,null!==a?(null!==n&&(n.next=null),n=a.next):n=null!==n?n.next:null,null!==n){var l=o=null,u=n,c=!1;do{var f=u.expirationTime;f<Pi?(c||(c=!0,l=a,o=i),f>Mi&&(Mi=f)):(Ws(f,u.suspenseConfig),i=u.eagerReducer===e?u.eagerState:e(i,u.action)),a=u,u=u.next}while(null!==u&&u!==n);c||(l=a,o=i),nr(i,t.memoizedState)||(pa=!0),t.memoizedState=i,t.baseUpdate=l,t.baseState=o,r.lastRenderedState=i}return[t.memoizedState,r.dispatch]}function Ki(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===Ri?(Ri={lastEffect:null}).lastEffect=e.next=e:null===(t=Ri.lastEffect)?Ri.lastEffect=e.next=e:(r=t.next,t.next=e,e.next=r,Ri.lastEffect=e),e}function $i(e,t,r,n){var o=Wi();Fi|=e,o.memoizedState=Ki(t,r,void 0,void 0===n?null:n)}function Qi(e,t,r,n){var o=qi();n=void 0===n?null:n;var i=void 0;if(null!==Ti){var a=Ti.memoizedState;if(i=a.destroy,null!==n&&zi(n,a.deps))return void Ki(vi,r,i,n)}Fi|=e,o.memoizedState=Ki(t,r,i,n)}function Yi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ji(){}function Zi(e,t,r){if(!(25>Ui))throw s(Error(301));var n=e.alternate;if(e===_i||null!==n&&n===_i)if(Ni=!0,e={expirationTime:Pi,suspenseConfig:null,action:r,eagerReducer:null,eagerState:null,next:null},null===Li&&(Li=new Map),void 0===(r=Li.get(t)))Li.set(t,e);else{for(t=r;null!==t.next;)t=t.next;t.next=e}else{var o=js(),i=Wo.suspense;i={expirationTime:o=Is(o,e,i),suspenseConfig:i,action:r,eagerReducer:null,eagerState:null,next:null};var a=t.last;if(null===a)i.next=i;else{var l=a.next;null!==l&&(i.next=l),a.next=i}if(t.last=i,0===e.expirationTime&&(null===n||0===n.expirationTime)&&null!==(n=t.lastRenderedReducer))try{var u=t.lastRenderedState,c=n(u,r);if(i.eagerReducer=n,i.eagerState=c,nr(c,u))return}catch(e){}Ms(e,o)}}var ea={readContext:jo,useCallback:Hi,useContext:Hi,useEffect:Hi,useImperativeHandle:Hi,useLayoutEffect:Hi,useMemo:Hi,useReducer:Hi,useRef:Hi,useState:Hi,useDebugValue:Hi,useResponder:Hi},ta={readContext:jo,useCallback:function(e,t){return Wi().memoizedState=[e,void 0===t?null:t],e},useContext:jo,useEffect:function(e,t){return $i(516,Si|Oi,e,t)},useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,$i(4,wi|Ei,Yi.bind(null,t,e),r)},useLayoutEffect:function(e,t){return $i(4,wi|Ei,e,t)},useMemo:function(e,t){var r=Wi();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Wi();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e=(e=n.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Zi.bind(null,_i,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},Wi().memoizedState=e},useState:function(e){var t=Wi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:Gi,lastRenderedState:e}).dispatch=Zi.bind(null,_i,e),[t.memoizedState,e]},useDebugValue:Ji,useResponder:ar},ra={readContext:jo,useCallback:function(e,t){var r=qi();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&zi(t,n[1])?n[0]:(r.memoizedState=[e,t],e)},useContext:jo,useEffect:function(e,t){return Qi(516,Si|Oi,e,t)},useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,Qi(4,wi|Ei,Yi.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Qi(4,wi|Ei,e,t)},useMemo:function(e,t){var r=qi();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&zi(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)},useReducer:Xi,useRef:function(){return qi().memoizedState},useState:function(e){return Xi(Gi)},useDebugValue:Ji,useResponder:ar},na=null,oa=null,ia=!1;function aa(e,t){var r=il(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function sa(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function la(e){if(ia){var t=oa;if(t){var r=t;if(!sa(e,t)){if(!(t=An(r.nextSibling))||!sa(e,t))return e.effectTag|=2,ia=!1,void(na=e);aa(na,r)}na=e,oa=An(t.firstChild)}else e.effectTag|=2,ia=!1,na=e}}function ua(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;na=e}function ca(e){if(e!==na)return!1;if(!ia)return ua(e),ia=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Pn(t,e.memoizedProps))for(t=oa;t;)aa(e,t),t=An(t.nextSibling);return ua(e),oa=na?An(e.stateNode.nextSibling):null,!0}function fa(){oa=na=null,ia=!1}var da=Xe.ReactCurrentOwner,pa=!1;function ha(e,t,r,n){t.child=null===e?ni(t,null,r,n):ri(t,e.child,r,n)}function ba(e,t,r,n,o){r=r.render;var i=t.ref;return Ao(t,o),n=Bi(e,t,r,n,i,o),null===e||pa?(t.effectTag|=1,ha(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Pa(e,t,o))}function ma(e,t,r,n,o,i){if(null===e){var a=r.type;return"function"!=typeof a||al(a)||void 0!==a.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=ll(r.type,null,n,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,ya(e,t,a,n,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(r=null!==(r=r.compare)?r:ir)(o,n)&&e.ref===t.ref)?Pa(e,t,i):(t.effectTag|=1,(e=sl(a,n)).ref=t.ref,e.return=t,t.child=e)}function ya(e,t,r,n,o,i){return null!==e&&ir(e.memoizedProps,n)&&e.ref===t.ref&&(pa=!1,o<i)?Pa(e,t,i):ga(e,t,r,n,i)}function va(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.effectTag|=128)}function ga(e,t,r,n,o){var i=Hn(r)?Ln:Fn.current;return i=Un(t,i),Ao(t,o),r=Bi(e,t,r,n,i,o),null===e||pa?(t.effectTag|=1,ha(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Pa(e,t,o))}function wa(e,t,r,o,i){if(Hn(r)){var a=!0;qn(t)}else a=!1;if(Ao(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),$o(t,r,o),Yo(t,r,o,i),o=!0;else if(null===e){var s=t.stateNode,l=t.memoizedProps;s.props=l;var u=s.context,c=r.contextType;"object"===n(c)&&null!==c?c=jo(c):c=Un(t,c=Hn(r)?Ln:Fn.current);var f=r.getDerivedStateFromProps,d="function"==typeof f||"function"==typeof s.getSnapshotBeforeUpdate;d||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(l!==o||u!==c)&&Qo(t,s,o,c),Io=!1;var p=t.memoizedState;u=s.state=p;var h=t.updateQueue;null!==h&&(zo(t,h,o,s,i),u=t.memoizedState),l!==o||p!==u||Nn.current||Io?("function"==typeof f&&(Go(t,r,f,o),u=t.memoizedState),(l=Io||Ko(t,r,l,o,p,u,c))?(d||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.effectTag|=4)):("function"==typeof s.componentDidMount&&(t.effectTag|=4),t.memoizedProps=o,t.memoizedState=u),s.props=o,s.state=u,s.context=c,o=l):("function"==typeof s.componentDidMount&&(t.effectTag|=4),o=!1)}else s=t.stateNode,l=t.memoizedProps,s.props=t.type===t.elementType?l:ko(t.type,l),u=s.context,"object"===n(c=r.contextType)&&null!==c?c=jo(c):c=Un(t,c=Hn(r)?Ln:Fn.current),(d="function"==typeof(f=r.getDerivedStateFromProps)||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(l!==o||u!==c)&&Qo(t,s,o,c),Io=!1,u=t.memoizedState,p=s.state=u,null!==(h=t.updateQueue)&&(zo(t,h,o,s,i),p=t.memoizedState),l!==o||u!==p||Nn.current||Io?("function"==typeof f&&(Go(t,r,f,o),p=t.memoizedState),(f=Io||Ko(t,r,l,o,u,p,c))?(d||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(o,p,c),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(o,p,c)),"function"==typeof s.componentDidUpdate&&(t.effectTag|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof s.componentDidUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof s.getSnapshotBeforeUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=o,t.memoizedState=p),s.props=o,s.state=p,s.context=c,o=f):("function"!=typeof s.componentDidUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof s.getSnapshotBeforeUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),o=!1);return ka(e,t,r,o,a,i)}function ka(e,t,r,n,o,i){va(e,t);var a=0!=(64&t.effectTag);if(!n&&!a)return o&&Gn(t,r,!1),Pa(e,t,i);n=t.stateNode,da.current=t;var s=a&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.effectTag|=1,null!==e&&a?(t.child=ri(t,e.child,null,i),t.child=ri(t,null,s,i)):ha(e,t,s,i),t.memoizedState=n.state,o&&Gn(t,r,!0),t.child}function xa(e){var t=e.stateNode;t.pendingContext?Vn(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Vn(0,t.context,!1),ui(e,t.containerInfo)}var Ea={};function Oa(e,t,r){var n,o=t.mode,i=t.pendingProps,a=mi.current,s=null,l=!1;if((n=0!=(64&t.effectTag))||(n=0!=(a&bi)&&(null===e||null!==e.memoizedState)),n?(s=Ea,l=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=hi),Mn(mi,a&=pi),null===e)if(l){if(i=i.fallback,(e=ul(null,o,0,null)).return=t,0==(2&t.mode))for(l=null!==t.memoizedState?t.child.child:t.child,e.child=l;null!==l;)l.return=e,l=l.sibling;(r=ul(i,o,r,null)).return=t,e.sibling=r,o=e}else o=r=ni(t,null,i.children,r);else{if(null!==e.memoizedState)if(o=(a=e.child).sibling,l){if(i=i.fallback,(r=sl(a,a.pendingProps)).return=t,0==(2&t.mode)&&(l=null!==t.memoizedState?t.child.child:t.child)!==a.child)for(r.child=l;null!==l;)l.return=r,l=l.sibling;(i=sl(o,i,o.expirationTime)).return=t,r.sibling=i,o=r,r.childExpirationTime=0,r=i}else o=r=ri(t,a.child,i.children,r);else if(a=e.child,l){if(l=i.fallback,(i=ul(null,o,0,null)).return=t,i.child=a,null!==a&&(a.return=i),0==(2&t.mode))for(a=null!==t.memoizedState?t.child.child:t.child,i.child=a;null!==a;)a.return=i,a=a.sibling;(r=ul(l,o,r,null)).return=t,i.sibling=r,r.effectTag|=2,o=i,i.childExpirationTime=0}else r=o=ri(t,a,i.children,r);t.stateNode=e.stateNode}return t.memoizedState=s,t.child=o,r}function Sa(e,t,r,n,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,last:n,tail:r,tailExpiration:0,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.last=n,i.tail=r,i.tailExpiration=0,i.tailMode=o)}function Ca(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(ha(e,t,n.children,r),0!=((n=mi.current)&bi))n=n&pi|bi,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag){if(null!==e.memoizedState){e.expirationTime<r&&(e.expirationTime=r);var a=e.alternate;null!==a&&a.expirationTime<r&&(a.expirationTime=r),To(e.return,r)}}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=pi}if(Mn(mi,n),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;null!==r;)null!==(n=r.alternate)&&null===yi(n)&&(o=r),r=r.sibling;null===(r=o)?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),Sa(t,!1,o,r,i);break;case"backwards":for(r=null,o=t.child,t.child=null;null!==o;){if(null!==(n=o.alternate)&&null===yi(n)){t.child=o;break}n=o.sibling,o.sibling=r,r=o,o=n}Sa(t,!0,r,null,i);break;case"together":Sa(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Pa(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),t.childExpirationTime<r)return null;if(null!==e&&t.child!==e.child)throw s(Error(153));if(null!==t.child){for(r=sl(e=t.child,e.pendingProps,e.expirationTime),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=sl(e,e.pendingProps,e.expirationTime)).return=t;r.sibling=null}return t.child}function _a(e){e.effectTag|=4}var Ta=void 0,Aa=void 0,ja=void 0,Ia=void 0;function Da(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ma(e){switch(e.tag){case 1:Hn(e.type)&&zn();var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:if(ci(),Bn(),0!=(64&(t=e.effectTag)))throw s(Error(285));return e.effectTag=-2049&t|64,e;case 5:return di(e),null;case 13:return Dn(mi),2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 18:return null;case 19:return Dn(mi),null;case 4:return ci(),null;case 10:return _o(e),null;default:return null}}function Ra(e,t){return{value:e,source:t,stack:dt(t)}}Ta=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(20===r.tag)e.appendChild(r.stateNode.instance);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Aa=function(){},ja=function(e,t,r,n,o){var a=e.memoizedProps;if(a!==n){var s=t.stateNode;switch(li(ii.current),e=null,r){case"input":a=Ot(s,a),n=Ot(s,n),e=[];break;case"option":a=rn(s,a),n=rn(s,n),e=[];break;case"select":a=i({},a,{value:void 0}),n=i({},n,{value:void 0}),e=[];break;case"textarea":a=on(s,a),n=on(s,n),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof n.onClick&&(s.onclick=En)}wn(r,n),s=r=void 0;var l=null;for(r in a)if(!n.hasOwnProperty(r)&&a.hasOwnProperty(r)&&null!=a[r])if("style"===r){var u=a[r];for(s in u)u.hasOwnProperty(s)&&(l||(l={}),l[s]="")}else"dangerouslySetInnerHTML"!==r&&"children"!==r&&"suppressContentEditableWarning"!==r&&"suppressHydrationWarning"!==r&&"autoFocus"!==r&&(h.hasOwnProperty(r)?e||(e=[]):(e=e||[]).push(r,null));for(r in n){var c=n[r];if(u=null!=a?a[r]:void 0,n.hasOwnProperty(r)&&c!==u&&(null!=c||null!=u))if("style"===r)if(u){for(s in u)!u.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(l||(l={}),l[s]="");for(s in c)c.hasOwnProperty(s)&&u[s]!==c[s]&&(l||(l={}),l[s]=c[s])}else l||(e||(e=[]),e.push(r,l)),l=c;else"dangerouslySetInnerHTML"===r?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(e=e||[]).push(r,""+c)):"children"===r?u===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(r,""+c):"suppressContentEditableWarning"!==r&&"suppressHydrationWarning"!==r&&(h.hasOwnProperty(r)?(null!=c&&xn(o,r),e||u===c||(e=[])):(e=e||[]).push(r,c))}l&&(e=e||[]).push("style",l),o=e,(t.updateQueue=o)&&_a(t)}},Ia=function(e,t,r,n){r!==n&&_a(t)};var Fa="function"==typeof WeakSet?WeakSet:Set;function Na(e,t){var r=t.source,n=t.stack;null===n&&null!==r&&(n=dt(r)),null!==r&&ft(r.type),t=t.value,null!==e&&1===e.tag&&ft(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function La(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Js(e,t)}else t.current=null}function Ua(e,t,r){if(null!==(r=null!==(r=r.updateQueue)?r.lastEffect:null)){var n=r=r.next;do{if((n.tag&e)!==vi){var o=n.destroy;n.destroy=void 0,void 0!==o&&o()}(n.tag&t)!==vi&&(o=n.create,n.destroy=o()),n=n.next}while(n!==r)}}function Ha(e,t){switch("function"==typeof nl&&nl(e),e.tag){case 0:case 11:case 14:case 15:var r=e.updateQueue;if(null!==r&&null!==(r=r.lastEffect)){var n=r.next;bo(97<t?97:t,(function(){var t=n;do{var r=t.destroy;if(void 0!==r){var o=e;try{r()}catch(e){Js(o,e)}}t=t.next}while(t!==n)}))}break;case 1:La(e),"function"==typeof(t=e.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Js(e,t)}}(e,t);break;case 5:La(e);break;case 4:Wa(e,t)}}function za(e,t){for(var r=e;;)if(Ha(r,t),null!==r.child&&4!==r.tag)r.child.return=r,r=r.child;else{if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function Ba(e){return 5===e.tag||3===e.tag||4===e.tag}function Va(e){e:{for(var t=e.return;null!==t;){if(Ba(t)){var r=t;break e}t=t.return}throw s(Error(160))}switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:case 4:t=t.containerInfo,n=!0;break;default:throw s(Error(161))}16&r.effectTag&&(hn(t,""),r.effectTag&=-17);e:t:for(r=e;;){for(;null===r.sibling;){if(null===r.return||Ba(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;5!==r.tag&&6!==r.tag&&18!==r.tag;){if(2&r.effectTag)continue t;if(null===r.child||4===r.tag)continue t;r.child.return=r,r=r.child}if(!(2&r.effectTag)){r=r.stateNode;break e}}for(var o=e;;){var i=5===o.tag||6===o.tag;if(i||20===o.tag){var a=i?o.stateNode:o.stateNode.instance;if(r)if(n){var l=a;a=r,8===(i=t).nodeType?i.parentNode.insertBefore(l,a):i.insertBefore(l,a)}else t.insertBefore(a,r);else n?(8===(l=t).nodeType?(i=l.parentNode).insertBefore(a,l):(i=l).appendChild(a),null!=(l=l._reactRootContainer)||null!==i.onclick||(i.onclick=En)):t.appendChild(a)}else if(4!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;o=o.return}o.sibling.return=o.return,o=o.sibling}}function Wa(e,t){for(var r=e,n=!1,o=void 0,i=void 0;;){if(!n){n=r.return;e:for(;;){if(null===n)throw s(Error(160));switch(o=n.stateNode,n.tag){case 5:i=!1;break e;case 3:case 4:o=o.containerInfo,i=!0;break e}n=n.return}n=!0}if(5===r.tag||6===r.tag)if(za(r,t),i){var a=o,l=r.stateNode;8===a.nodeType?a.parentNode.removeChild(l):a.removeChild(l)}else o.removeChild(r.stateNode);else if(20===r.tag)l=r.stateNode.instance,za(r,t),i?8===(a=o).nodeType?a.parentNode.removeChild(l):a.removeChild(l):o.removeChild(l);else if(4===r.tag){if(null!==r.child){o=r.stateNode.containerInfo,i=!0,r.child.return=r,r=r.child;continue}}else if(Ha(r,t),null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return;4===(r=r.return).tag&&(n=!1)}r.sibling.return=r.return,r=r.sibling}}function qa(e,t){switch(t.tag){case 0:case 11:case 14:case 15:Ua(wi,ki,t);break;case 1:break;case 5:var r=t.stateNode;if(null!=r){var n=t.memoizedProps,o=null!==e?e.memoizedProps:n;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(r[F]=n,"input"===e&&"radio"===n.type&&null!=n.name&&Ct(r,n),kn(e,o),t=kn(e,n),o=0;o<i.length;o+=2){var a=i[o],l=i[o+1];"style"===a?vn(r,l):"dangerouslySetInnerHTML"===a?pn(r,l):"children"===a?hn(r,l):xt(r,a,l,t)}switch(e){case"input":Pt(r,n);break;case"textarea":sn(r,n);break;case"select":t=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,null!=(e=n.value)?nn(r,!!n.multiple,e,!1):t!==!!n.multiple&&(null!=n.defaultValue?nn(r,!!n.multiple,n.defaultValue,!0):nn(r,!!n.multiple,n.multiple?[]:"",!1))}}}break;case 6:if(null===t.stateNode)throw s(Error(162));t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 12:break;case 13:if(r=t,null===t.memoizedState?n=!1:(n=!0,r=t.child,ys=fo()),null!==r)e:for(e=r;;){if(5===e.tag)i=e.stateNode,n?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,o=null!=(o=e.memoizedProps.style)&&o.hasOwnProperty("display")?o.display:null,i.style.display=yn("display",o));else if(6===e.tag)e.stateNode.nodeValue=n?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===r)break e;for(;null===e.sibling;){if(null===e.return||e.return===r)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}Ga(t);break;case 19:Ga(t);break;case 17:case 20:break;default:throw s(Error(163))}}function Ga(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Fa),t.forEach((function(t){var n=el.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}var Xa="function"==typeof WeakMap?WeakMap:Map;function Ka(e,t,r){(r=Ro(r,null)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){ws||(ws=!0,ks=n),Na(e,t)},r}function $a(e,t,r){(r=Ro(r,null)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var o=t.value;r.payload=function(){return Na(e,t),n(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(r.callback=function(){"function"!=typeof n&&(null===xs?xs=new Set([this]):xs.add(this),Na(e,t));var r=t.stack;this.componentDidCatch(t.value,{componentStack:null!==r?r:""})}),r}var Qa=Math.ceil,Ya=Xe.ReactCurrentDispatcher,Ja=Xe.ReactCurrentOwner,Za=0,es=8,ts=16,rs=32,ns=0,os=1,is=2,as=3,ss=4,ls=Za,us=null,cs=null,fs=0,ds=ns,ps=1073741823,hs=1073741823,bs=null,ms=!1,ys=0,vs=500,gs=null,ws=!1,ks=null,xs=null,Es=!1,Os=null,Ss=90,Cs=0,Ps=null,_s=0,Ts=null,As=0;function js(){return(ls&(ts|rs))!==Za?1073741821-(fo()/10|0):0!==As?As:As=1073741821-(fo()/10|0)}function Is(e,t,r){if(0==(2&(t=t.mode)))return 1073741823;var n=po();if(0==(4&t))return 99===n?1073741823:1073741822;if((ls&ts)!==Za)return fs;if(null!==r)e=1073741821-25*(1+((1073741821-e+(0|r.timeoutMs||5e3)/10)/25|0));else switch(n){case 99:e=1073741823;break;case 98:e=1073741821-10*(1+((1073741821-e+15)/10|0));break;case 97:case 96:e=1073741821-25*(1+((1073741821-e+500)/25|0));break;case 95:e=1;break;default:throw s(Error(326))}return null!==us&&e===fs&&--e,e}var Ds=0;function Ms(e,t){if(50<_s)throw _s=0,Ts=null,s(Error(185));if(null!==(e=Rs(e,t))){e.pingTime=0;var r=po();if(1073741823===t)if((ls&es)!==Za&&(ls&(ts|rs))===Za)for(var n=Vs(e,1073741823,!0);null!==n;)n=n(!0);else Fs(e,99,1073741823),ls===Za&&vo();else Fs(e,r,t);(4&ls)===Za||98!==r&&99!==r||(null===Ps?Ps=new Map([[e,t]]):(void 0===(r=Ps.get(e))||r>t)&&Ps.set(e,t))}}function Rs(e,t){e.expirationTime<t&&(e.expirationTime=t);var r=e.alternate;null!==r&&r.expirationTime<t&&(r.expirationTime=t);var n=e.return,o=null;if(null===n&&3===e.tag)o=e.stateNode;else for(;null!==n;){if(r=n.alternate,n.childExpirationTime<t&&(n.childExpirationTime=t),null!==r&&r.childExpirationTime<t&&(r.childExpirationTime=t),null===n.return&&3===n.tag){o=n.stateNode;break}n=n.return}return null!==o&&(t>o.firstPendingTime&&(o.firstPendingTime=t),0===(e=o.lastPendingTime)||t<e)&&(o.lastPendingTime=t),o}function Fs(e,t,r){if(e.callbackExpirationTime<r){var n=e.callbackNode;null!==n&&n!==io&&$n(n),e.callbackExpirationTime=r,1073741823===r?e.callbackNode=yo(Ns.bind(null,e,Vs.bind(null,e,r))):(n=null,1!==r&&(n={timeout:10*(1073741821-r)-fo()}),e.callbackNode=mo(t,Ns.bind(null,e,Vs.bind(null,e,r)),n))}}function Ns(e,t,r){var n=e.callbackNode,o=null;try{return null!==(o=t(r))?Ns.bind(null,e,o):null}finally{null===o&&n===e.callbackNode&&(e.callbackNode=null,e.callbackExpirationTime=0)}}function Ls(){(ls&(1|ts|rs))===Za&&(function(){if(null!==Ps){var e=Ps;Ps=null,e.forEach((function(e,t){yo(Vs.bind(null,t,e))})),vo()}}(),$s())}function Us(e,t){var r=ls;ls|=1;try{return e(t)}finally{(ls=r)===Za&&vo()}}function Hs(e,t,r,n){var o=ls;ls|=4;try{return bo(98,e.bind(null,t,r,n))}finally{(ls=o)===Za&&vo()}}function zs(e,t){var r=ls;ls&=-2,ls|=es;try{return e(t)}finally{(ls=r)===Za&&vo()}}function Bs(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,Tn(r)),null!==cs)for(r=cs.return;null!==r;){var n=r;switch(n.tag){case 1:var o=n.type.childContextTypes;null!=o&&zn();break;case 3:ci(),Bn();break;case 5:di(n);break;case 4:ci();break;case 13:case 19:Dn(mi);break;case 10:_o(n)}r=r.return}us=e,cs=sl(e.current,null),fs=t,ds=ns,hs=ps=1073741823,bs=null,ms=!1}function Vs(e,t,r){if((ls&(ts|rs))!==Za)throw s(Error(327));if(e.firstPendingTime<t)return null;if(r&&e.finishedExpirationTime===t)return Xs.bind(null,e);if($s(),e!==us||t!==fs)Bs(e,t);else if(ds===as)if(ms)Bs(e,t);else{var o=e.lastPendingTime;if(o<t)return Vs.bind(null,e,o)}if(null!==cs){o=ls,ls|=ts;var i=Ya.current;if(null===i&&(i=ea),Ya.current=ea,r){if(1073741823!==t){var a=js();if(a<t)return ls=o,Co(),Ya.current=i,Vs.bind(null,e,a)}}else As=0;for(;;)try{if(r)for(;null!==cs;)cs=qs(cs);else for(;null!==cs&&!Qn();)cs=qs(cs);break}catch(r){if(Co(),Vi(),null===(a=cs)||null===a.return)throw Bs(e,t),ls=o,r;e:{var l=e,u=a.return,c=a,f=r,d=fs;if(c.effectTag|=1024,c.firstEffect=c.lastEffect=null,null!==f&&"object"===n(f)&&"function"==typeof f.then){var p=f,h=0!=(mi.current&hi);f=u;do{var b;if((b=13===f.tag)&&(null!==f.memoizedState?b=!1:b=void 0!==(b=f.memoizedProps).fallback&&(!0!==b.unstable_avoidThisFallback||!h)),b){if(null===(u=f.updateQueue)?((u=new Set).add(p),f.updateQueue=u):u.add(p),0==(2&f.mode)){f.effectTag|=64,c.effectTag&=-1957,1===c.tag&&(null===c.alternate?c.tag=17:((d=Ro(1073741823,null)).tag=2,No(c,d))),c.expirationTime=1073741823;break e}c=l,l=d,null===(h=c.pingCache)?(h=c.pingCache=new Xa,u=new Set,h.set(p,u)):void 0===(u=h.get(p))&&(u=new Set,h.set(p,u)),u.has(l)||(u.add(l),c=Zs.bind(null,c,p,l),p.then(c,c)),f.effectTag|=2048,f.expirationTime=d;break e}f=f.return}while(null!==f);f=Error((ft(c.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+dt(c))}ds!==ss&&(ds=os),f=Ra(f,c),c=u;do{switch(c.tag){case 3:c.effectTag|=2048,c.expirationTime=d,Lo(c,d=Ka(c,f,d));break e;case 1:if(p=f,l=c.type,u=c.stateNode,0==(64&c.effectTag)&&("function"==typeof l.getDerivedStateFromError||null!==u&&"function"==typeof u.componentDidCatch&&(null===xs||!xs.has(u)))){c.effectTag|=2048,c.expirationTime=d,Lo(c,d=$a(c,p,d));break e}}c=c.return}while(null!==c)}cs=Gs(a)}if(ls=o,Co(),Ya.current=i,null!==cs)return Vs.bind(null,e,t)}if(e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,function(e,t){var r=e.firstBatch;return!!(null!==r&&r._defer&&r._expirationTime>=t)&&(mo(97,(function(){return r._onComplete(),null})),!0)}(e,t))return null;switch(us=null,ds){case ns:throw s(Error(328));case os:return(o=e.lastPendingTime)<t?Vs.bind(null,e,o):r?Xs.bind(null,e):(Bs(e,t),yo(Vs.bind(null,e,t)),null);case is:return 1073741823===ps&&!r&&10<(r=ys+vs-fo())?ms?(Bs(e,t),Vs.bind(null,e,t)):(o=e.lastPendingTime)<t?Vs.bind(null,e,o):(e.timeoutHandle=_n(Xs.bind(null,e),r),null):Xs.bind(null,e);case as:if(!r){if(ms)return Bs(e,t),Vs.bind(null,e,t);if((r=e.lastPendingTime)<t)return Vs.bind(null,e,r);if(1073741823!==hs?r=10*(1073741821-hs)-fo():1073741823===ps?r=0:(r=10*(1073741821-ps)-5e3,0>(r=(o=fo())-r)&&(r=0),(t=10*(1073741821-t)-o)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Qa(r/1960))-r)&&(r=t)),10<r)return e.timeoutHandle=_n(Xs.bind(null,e),r),null}return Xs.bind(null,e);case ss:return!r&&1073741823!==ps&&null!==bs&&(o=ps,0>=(t=0|(i=bs).busyMinDurationMs)?t=0:(r=0|i.busyDelayMs,t=(o=fo()-(10*(1073741821-o)-(0|i.timeoutMs||5e3)))<=r?0:r+t-o),10<t)?(e.timeoutHandle=_n(Xs.bind(null,e),t),null):Xs.bind(null,e);default:throw s(Error(329))}}function Ws(e,t){e<ps&&1<e&&(ps=e),null!==t&&e<hs&&1<e&&(hs=e,bs=t)}function qs(e){var t=tl(e.alternate,e,fs);return e.memoizedProps=e.pendingProps,null===t&&(t=Gs(e)),Ja.current=null,t}function Gs(e){cs=e;do{var t=cs.alternate;if(e=cs.return,0==(1024&cs.effectTag)){e:{var r=t,n=fs,o=(t=cs).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:Hn(t.type)&&zn();break;case 3:ci(),Bn(),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==r&&null!==r.child||(ca(t),t.effectTag&=-3),Aa(t);break;case 5:di(t),n=li(si.current);var a=t.type;if(null!==r&&null!=t.stateNode)ja(r,t,a,o,n),r.ref!==t.ref&&(t.effectTag|=128);else if(o){var l=li(ii.current);if(ca(t)){o=void 0,a=(r=t).stateNode;var u=r.type,c=r.memoizedProps;switch(a[R]=r,a[F]=c,u){case"iframe":case"object":case"embed":Fr("load",a);break;case"video":case"audio":for(var f=0;f<ne.length;f++)Fr(ne[f],a);break;case"source":Fr("error",a);break;case"img":case"image":case"link":Fr("error",a),Fr("load",a);break;case"form":Fr("reset",a),Fr("submit",a);break;case"details":Fr("toggle",a);break;case"input":St(a,c),Fr("invalid",a),xn(n,"onChange");break;case"select":a._wrapperState={wasMultiple:!!c.multiple},Fr("invalid",a),xn(n,"onChange");break;case"textarea":an(a,c),Fr("invalid",a),xn(n,"onChange")}for(o in wn(u,c),f=null,c)c.hasOwnProperty(o)&&(l=c[o],"children"===o?"string"==typeof l?a.textContent!==l&&(f=["children",l]):"number"==typeof l&&a.textContent!==""+l&&(f=["children",""+l]):h.hasOwnProperty(o)&&null!=l&&xn(n,o));switch(u){case"input":qe(a),_t(a,c,!0);break;case"textarea":qe(a),ln(a);break;case"select":case"option":break;default:"function"==typeof c.onClick&&(a.onclick=En)}n=f,r.updateQueue=n,null!==n&&_a(t)}else{c=a,r=o,u=t,f=9===n.nodeType?n:n.ownerDocument,l===un.html&&(l=cn(c)),l===un.html?"script"===c?((c=f.createElement("div")).innerHTML="<script><\/script>",f=c.removeChild(c.firstChild)):"string"==typeof r.is?f=f.createElement(c,{is:r.is}):(f=f.createElement(c),"select"===c&&(c=f,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):f=f.createElementNS(l,c),(c=f)[R]=u,c[F]=r,Ta(r=c,t,!1,!1),u=r;var d=n,p=kn(a,o);switch(a){case"iframe":case"object":case"embed":Fr("load",u),n=o;break;case"video":case"audio":for(n=0;n<ne.length;n++)Fr(ne[n],u);n=o;break;case"source":Fr("error",u),n=o;break;case"img":case"image":case"link":Fr("error",u),Fr("load",u),n=o;break;case"form":Fr("reset",u),Fr("submit",u),n=o;break;case"details":Fr("toggle",u),n=o;break;case"input":St(u,o),n=Ot(u,o),Fr("invalid",u),xn(d,"onChange");break;case"option":n=rn(u,o);break;case"select":u._wrapperState={wasMultiple:!!o.multiple},n=i({},o,{value:void 0}),Fr("invalid",u),xn(d,"onChange");break;case"textarea":an(u,o),n=on(u,o),Fr("invalid",u),xn(d,"onChange");break;default:n=o}wn(a,n),c=void 0,f=a,l=u;var b=n;for(c in b)if(b.hasOwnProperty(c)){var m=b[c];"style"===c?vn(l,m):"dangerouslySetInnerHTML"===c?null!=(m=m?m.__html:void 0)&&pn(l,m):"children"===c?"string"==typeof m?("textarea"!==f||""!==m)&&hn(l,m):"number"==typeof m&&hn(l,""+m):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(h.hasOwnProperty(c)?null!=m&&xn(d,c):null!=m&&xt(l,c,m,p))}switch(a){case"input":qe(u),_t(u,o,!1);break;case"textarea":qe(u),ln(u);break;case"option":null!=o.value&&u.setAttribute("value",""+Et(o.value));break;case"select":n=u,u=o,n.multiple=!!u.multiple,null!=(c=u.value)?nn(n,!!u.multiple,c,!1):null!=u.defaultValue&&nn(n,!!u.multiple,u.defaultValue,!0);break;default:"function"==typeof n.onClick&&(u.onclick=En)}Cn(a,o)&&_a(t),t.stateNode=r}null!==t.ref&&(t.effectTag|=128)}else if(null===t.stateNode)throw s(Error(166));break;case 6:if(r&&null!=t.stateNode)Ia(r,t,r.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw s(Error(166));r=li(si.current),li(ii.current),ca(t)?(n=t.stateNode,r=t.memoizedProps,n[R]=t,n.nodeValue!==r&&_a(t)):(n=t,(r=(9===r.nodeType?r:r.ownerDocument).createTextNode(o))[R]=t,n.stateNode=r)}break;case 11:break;case 13:if(Dn(mi),o=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=n;break e}n=null!==o,o=!1,null===r?ca(t):(o=null!==(a=r.memoizedState),n||null===a||null!==(a=r.child.sibling)&&(null!==(u=t.firstEffect)?(t.firstEffect=a,a.nextEffect=u):(t.firstEffect=t.lastEffect=a,a.nextEffect=null),a.effectTag=8)),n&&!o&&0!=(2&t.mode)&&(null===r&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(mi.current&hi)?ds===ns&&(ds=is):ds!==ns&&ds!==is||(ds=as)),(n||o)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:ci(),Aa(t);break;case 10:_o(t);break;case 9:case 14:break;case 17:Hn(t.type)&&zn();break;case 18:break;case 19:if(Dn(mi),null===(o=t.memoizedState))break;if(a=0!=(64&t.effectTag),null===(u=o.rendering)){if(a)Da(o,!1);else if(ds!==ns||null!==r&&0!=(64&r.effectTag))for(r=t.child;null!==r;){if(null!==(u=yi(r))){for(t.effectTag|=64,Da(o,!1),null!==(r=u.updateQueue)&&(t.updateQueue=r,t.effectTag|=4),t.firstEffect=t.lastEffect=null,r=t.child;null!==r;)a=n,(o=r).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(u=o.alternate)?(o.childExpirationTime=0,o.expirationTime=a,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=u.childExpirationTime,o.expirationTime=u.expirationTime,o.child=u.child,o.memoizedProps=u.memoizedProps,o.memoizedState=u.memoizedState,o.updateQueue=u.updateQueue,a=u.dependencies,o.dependencies=null===a?null:{expirationTime:a.expirationTime,firstContext:a.firstContext,responders:a.responders}),r=r.sibling;Mn(mi,mi.current&pi|bi),t=t.child;break e}r=r.sibling}}else{if(!a)if(null!==(r=yi(u))){if(t.effectTag|=64,a=!0,Da(o,!0),null===o.tail&&"hidden"===o.tailMode){null!==(n=r.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),null!==(t=t.lastEffect=o.lastEffect)&&(t.nextEffect=null);break}}else fo()>o.tailExpiration&&1<n&&(t.effectTag|=64,a=!0,Da(o,!1),t.expirationTime=t.childExpirationTime=n-1);o.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=o.last)?n.sibling=u:t.child=u,o.last=u)}if(null!==o.tail){0===o.tailExpiration&&(o.tailExpiration=fo()+500),n=o.tail,o.rendering=n,o.tail=n.sibling,o.lastEffect=t.lastEffect,n.sibling=null,r=mi.current,Mn(mi,r=a?r&pi|bi:r&pi),t=n;break e}break;case 20:break;default:throw s(Error(156))}t=null}if(n=cs,1===fs||1!==n.childExpirationTime){for(r=0,o=n.child;null!==o;)(a=o.expirationTime)>r&&(r=a),(u=o.childExpirationTime)>r&&(r=u),o=o.sibling;n.childExpirationTime=r}if(null!==t)return t;null!==e&&0==(1024&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=cs.firstEffect),null!==cs.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=cs.firstEffect),e.lastEffect=cs.lastEffect),1<cs.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=cs:e.firstEffect=cs,e.lastEffect=cs))}else{if(null!==(t=Ma(cs)))return t.effectTag&=1023,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=1024)}if(null!==(t=cs.sibling))return t;cs=e}while(null!==cs);return ds===ns&&(ds=ss),null}function Xs(e){var t=po();return bo(99,Ks.bind(null,e,t)),null!==Os&&mo(97,(function(){return $s(),null})),null}function Ks(e,t){if($s(),(ls&(ts|rs))!==Za)throw s(Error(327));var r=e.finishedWork,n=e.finishedExpirationTime;if(null===r)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,r===e.current)throw s(Error(177));e.callbackNode=null,e.callbackExpirationTime=0;var o=r.expirationTime,i=r.childExpirationTime;if(o=i>o?i:o,e.firstPendingTime=o,o<e.lastPendingTime&&(e.lastPendingTime=o),e===us&&(cs=us=null,fs=0),1<r.effectTag?null!==r.lastEffect?(r.lastEffect.nextEffect=r,o=r.firstEffect):o=r:o=r.firstEffect,null!==o){i=ls,ls|=rs,Ja.current=null,On=Rr;var a=Gr();if(Xr(a)){if("selectionStart"in a)var l={start:a.selectionStart,end:a.selectionEnd};else e:{var u=(l=(l=a.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(u&&0!==u.rangeCount){l=u.anchorNode;var c=u.anchorOffset,f=u.focusNode;u=u.focusOffset;try{l.nodeType,f.nodeType}catch(e){l=null;break e}var d=0,p=-1,h=-1,b=0,m=0,y=a,v=null;t:for(;;){for(var g;y!==l||0!==c&&3!==y.nodeType||(p=d+c),y!==f||0!==u&&3!==y.nodeType||(h=d+u),3===y.nodeType&&(d+=y.nodeValue.length),null!==(g=y.firstChild);)v=y,y=g;for(;;){if(y===a)break t;if(v===l&&++b===c&&(p=d),v===f&&++m===u&&(h=d),null!==(g=y.nextSibling))break;v=(y=v).parentNode}y=g}l=-1===p||-1===h?null:{start:p,end:h}}else l=null}l=l||{start:0,end:0}}else l=null;Sn={focusedElem:a,selectionRange:l},Rr=!1,gs=o;do{try{for(;null!==gs;){if(0!=(256&gs.effectTag)){var w=gs.alternate;switch((a=gs).tag){case 0:case 11:case 15:Ua(gi,vi,a);break;case 1:if(256&a.effectTag&&null!==w){var k=w.memoizedProps,x=w.memoizedState,E=a.stateNode,O=E.getSnapshotBeforeUpdate(a.elementType===a.type?k:ko(a.type,k),x);E.__reactInternalSnapshotBeforeUpdate=O}break;case 3:case 5:case 6:case 4:case 17:break;default:throw s(Error(163))}}gs=gs.nextEffect}}catch(e){if(null===gs)throw s(Error(330));Js(gs,e),gs=gs.nextEffect}}while(null!==gs);gs=o;do{try{for(w=t;null!==gs;){var S=gs.effectTag;if(16&S&&hn(gs.stateNode,""),128&S){var C=gs.alternate;if(null!==C){var P=C.ref;null!==P&&("function"==typeof P?P(null):P.current=null)}}switch(14&S){case 2:Va(gs),gs.effectTag&=-3;break;case 6:Va(gs),gs.effectTag&=-3,qa(gs.alternate,gs);break;case 4:qa(gs.alternate,gs);break;case 8:Wa(k=gs,w),k.return=null,k.child=null,k.memoizedState=null,k.updateQueue=null,k.dependencies=null;var _=k.alternate;null!==_&&(_.return=null,_.child=null,_.memoizedState=null,_.updateQueue=null,_.dependencies=null)}gs=gs.nextEffect}}catch(e){if(null===gs)throw s(Error(330));Js(gs,e),gs=gs.nextEffect}}while(null!==gs);if(P=Sn,C=Gr(),S=P.focusedElem,w=P.selectionRange,C!==S&&S&&S.ownerDocument&&function e(t,r){return!(!t||!r)&&(t===r||(!t||3!==t.nodeType)&&(r&&3===r.nodeType?e(t,r.parentNode):"contains"in t?t.contains(r):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(r))))}(S.ownerDocument.documentElement,S)){null!==w&&Xr(S)&&(C=w.start,void 0===(P=w.end)&&(P=C),"selectionStart"in S?(S.selectionStart=C,S.selectionEnd=Math.min(P,S.value.length)):(P=(C=S.ownerDocument||document)&&C.defaultView||window).getSelection&&(P=P.getSelection(),k=S.textContent.length,_=Math.min(w.start,k),w=void 0===w.end?_:Math.min(w.end,k),!P.extend&&_>w&&(k=w,w=_,_=k),k=qr(S,_),x=qr(S,w),k&&x&&(1!==P.rangeCount||P.anchorNode!==k.node||P.anchorOffset!==k.offset||P.focusNode!==x.node||P.focusOffset!==x.offset)&&((C=C.createRange()).setStart(k.node,k.offset),P.removeAllRanges(),_>w?(P.addRange(C),P.extend(x.node,x.offset)):(C.setEnd(x.node,x.offset),P.addRange(C))))),C=[];for(P=S;P=P.parentNode;)1===P.nodeType&&C.push({element:P,left:P.scrollLeft,top:P.scrollTop});for("function"==typeof S.focus&&S.focus(),S=0;S<C.length;S++)(P=C[S]).element.scrollLeft=P.left,P.element.scrollTop=P.top}Sn=null,Rr=!!On,On=null,e.current=r,gs=o;do{try{for(S=n;null!==gs;){var T=gs.effectTag;if(36&T){var A=gs.alternate;switch(P=S,(C=gs).tag){case 0:case 11:case 15:Ua(xi,Ei,C);break;case 1:var j=C.stateNode;if(4&C.effectTag)if(null===A)j.componentDidMount();else{var I=C.elementType===C.type?A.memoizedProps:ko(C.type,A.memoizedProps);j.componentDidUpdate(I,A.memoizedState,j.__reactInternalSnapshotBeforeUpdate)}var D=C.updateQueue;null!==D&&Bo(0,D,j);break;case 3:var M=C.updateQueue;if(null!==M){if(_=null,null!==C.child)switch(C.child.tag){case 5:_=C.child.stateNode;break;case 1:_=C.child.stateNode}Bo(0,M,_)}break;case 5:var R=C.stateNode;null===A&&4&C.effectTag&&(P=R,Cn(C.type,C.memoizedProps)&&P.focus());break;case 6:case 4:case 12:break;case 13:case 19:case 17:case 20:break;default:throw s(Error(163))}}if(128&T){var F=gs.ref;if(null!==F){var N=gs.stateNode;switch(gs.tag){case 5:var L=N;break;default:L=N}"function"==typeof F?F(L):F.current=L}}512&T&&(Es=!0),gs=gs.nextEffect}}catch(e){if(null===gs)throw s(Error(330));Js(gs,e),gs=gs.nextEffect}}while(null!==gs);gs=null,ao(),ls=i}else e.current=r;if(Es)Es=!1,Os=e,Cs=n,Ss=t;else for(gs=o;null!==gs;)t=gs.nextEffect,gs.nextEffect=null,gs=t;if(0!==(t=e.firstPendingTime)?Fs(e,T=wo(T=js(),t),t):xs=null,"function"==typeof rl&&rl(r.stateNode,n),1073741823===t?e===Ts?_s++:(_s=0,Ts=e):_s=0,ws)throw ws=!1,e=ks,ks=null,e;return(ls&es)!==Za?null:(vo(),null)}function $s(){if(null===Os)return!1;var e=Os,t=Cs,r=Ss;return Os=null,Cs=0,Ss=90,bo(97<r?97:r,Qs.bind(null,e,t))}function Qs(e){if((ls&(ts|rs))!==Za)throw s(Error(331));var t=ls;for(ls|=rs,e=e.current.firstEffect;null!==e;){try{var r=e;if(0!=(512&r.effectTag))switch(r.tag){case 0:case 11:case 15:Ua(Si,vi,r),Ua(vi,Oi,r)}}catch(t){if(null===e)throw s(Error(330));Js(e,t)}r=e.nextEffect,e.nextEffect=null,e=r}return ls=t,vo(),!0}function Ys(e,t,r){No(e,t=Ka(e,t=Ra(r,t),1073741823)),null!==(e=Rs(e,1073741823))&&Fs(e,99,1073741823)}function Js(e,t){if(3===e.tag)Ys(e,e,t);else for(var r=e.return;null!==r;){if(3===r.tag){Ys(r,e,t);break}if(1===r.tag){var n=r.stateNode;if("function"==typeof r.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===xs||!xs.has(n))){No(r,e=$a(r,e=Ra(t,e),1073741823)),null!==(r=Rs(r,1073741823))&&Fs(r,99,1073741823);break}}r=r.return}}function Zs(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),us===e&&fs===r?ds===as||ds===is&&1073741823===ps&&fo()-ys<vs?Bs(e,fs):ms=!0:e.lastPendingTime<r||(0!==(t=e.pingTime)&&t<r||(e.pingTime=r,e.finishedExpirationTime===r&&(e.finishedExpirationTime=0,e.finishedWork=null),Fs(e,t=wo(t=js(),r),r)))}function el(e,t){var r=e.stateNode;null!==r&&r.delete(t),r=wo(r=js(),t=Is(r,e,null)),null!==(e=Rs(e,t))&&Fs(e,r,t)}var tl=void 0;tl=function(e,t,r){var o=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||Nn.current)pa=!0;else if(o<r){switch(pa=!1,t.tag){case 3:xa(t),fa();break;case 5:if(fi(t),4&t.mode&&1!==r&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:Hn(t.type)&&qn(t);break;case 4:ui(t,t.stateNode.containerInfo);break;case 10:Po(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(o=t.child.childExpirationTime)&&o>=r?Oa(e,t,r):(Mn(mi,mi.current&pi),null!==(t=Pa(e,t,r))?t.sibling:null);Mn(mi,mi.current&pi);break;case 19:if(o=t.childExpirationTime>=r,0!=(64&e.effectTag)){if(o)return Ca(e,t,r);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),Mn(mi,mi.current),!o)return null}return Pa(e,t,r)}}else pa=!1;switch(t.expirationTime=0,t.tag){case 2:if(o=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=Un(t,Fn.current),Ao(t,r),i=Bi(null,t,o,e,i,r),t.effectTag|=1,"object"===n(i)&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,Vi(),Hn(o)){var a=!0;qn(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null;var l=o.getDerivedStateFromProps;"function"==typeof l&&Go(t,o,l,e),i.updater=Xo,t.stateNode=i,i._reactInternalFiber=t,Yo(t,o,e,r),t=ka(null,t,o,!0,a,r)}else t.tag=0,ha(null,t,i,r),t=t.child;return t;case 16:switch(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)})),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(i),t.type=i,a=t.tag=function(e){if("function"==typeof e)return al(e)?1:0;if(null!=e){if((e=e.$$typeof)===ot)return 11;if(e===st)return 14}return 2}(i),e=ko(i,e),a){case 0:t=ga(null,t,i,e,r);break;case 1:t=wa(null,t,i,e,r);break;case 11:t=ba(null,t,i,e,r);break;case 14:t=ma(null,t,i,ko(i.type,e),o,r);break;default:throw s(Error(306),i,"")}return t;case 0:return o=t.type,i=t.pendingProps,ga(e,t,o,i=t.elementType===o?i:ko(o,i),r);case 1:return o=t.type,i=t.pendingProps,wa(e,t,o,i=t.elementType===o?i:ko(o,i),r);case 3:if(xa(t),null===(o=t.updateQueue))throw s(Error(282));return i=null!==(i=t.memoizedState)?i.element:null,zo(t,o,t.pendingProps,null,r),(o=t.memoizedState.element)===i?(fa(),t=Pa(e,t,r)):(i=t.stateNode,(i=(null===e||null===e.child)&&i.hydrate)&&(oa=An(t.stateNode.containerInfo.firstChild),na=t,i=ia=!0),i?(t.effectTag|=2,t.child=ni(t,null,o,r)):(ha(e,t,o,r),fa()),t=t.child),t;case 5:return fi(t),null===e&&la(t),o=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,l=i.children,Pn(o,i)?l=null:null!==a&&Pn(o,a)&&(t.effectTag|=16),va(e,t),4&t.mode&&1!==r&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(ha(e,t,l,r),t=t.child),t;case 6:return null===e&&la(t),null;case 13:return Oa(e,t,r);case 4:return ui(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=ri(t,null,o,r):ha(e,t,o,r),t.child;case 11:return o=t.type,i=t.pendingProps,ba(e,t,o,i=t.elementType===o?i:ko(o,i),r);case 7:return ha(e,t,t.pendingProps,r),t.child;case 8:case 12:return ha(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,l=t.memoizedProps,Po(t,a=i.value),null!==l){var u=l.value;if(0===(a=nr(u,a)?0:0|("function"==typeof o._calculateChangedBits?o._calculateChangedBits(u,a):1073741823))){if(l.children===i.children&&!Nn.current){t=Pa(e,t,r);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var c=u.dependencies;if(null!==c){l=u.child;for(var f=c.firstContext;null!==f;){if(f.context===o&&0!=(f.observedBits&a)){1===u.tag&&((f=Ro(r,null)).tag=2,No(u,f)),u.expirationTime<r&&(u.expirationTime=r),null!==(f=u.alternate)&&f.expirationTime<r&&(f.expirationTime=r),To(u.return,r),c.expirationTime<r&&(c.expirationTime=r);break}f=f.next}}else l=10===u.tag&&u.type===t.type?null:u.child;if(null!==l)l.return=u;else for(l=u;null!==l;){if(l===t){l=null;break}if(null!==(u=l.sibling)){u.return=l.return,l=u;break}l=l.return}u=l}}ha(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,o=(a=t.pendingProps).children,Ao(t,r),o=o(i=jo(i,a.unstable_observedBits)),t.effectTag|=1,ha(e,t,o,r),t.child;case 14:return a=ko(i=t.type,t.pendingProps),ma(e,t,i,a=ko(i.type,a),o,r);case 15:return ya(e,t,t.type,t.pendingProps,o,r);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:ko(o,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Hn(o)?(e=!0,qn(t)):e=!1,Ao(t,r),$o(t,o,i),Yo(t,o,i,r),ka(null,t,o,!0,e,r);case 19:return Ca(e,t,r)}throw s(Error(156))};var rl=null,nl=null;function ol(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function il(e,t,r,n){return new ol(e,t,r,n)}function al(e){return!(!(e=e.prototype)||!e.isReactComponent)}function sl(e,t){var r=e.alternate;return null===r?((r=il(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childExpirationTime=e.childExpirationTime,r.expirationTime=e.expirationTime,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function ll(e,t,r,o,i,a){var l=2;if(o=e,"function"==typeof e)al(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case Je:return ul(r.children,i,a,t);case nt:l=8,i|=7;break;case Ze:l=8,i|=1;break;case et:return(e=il(12,r,t,8|i)).elementType=et,e.type=et,e.expirationTime=a,e;case it:return(e=il(13,r,t,i)).type=it,e.elementType=it,e.expirationTime=a,e;case at:return(e=il(19,r,t,i)).elementType=at,e.expirationTime=a,e;default:if("object"===n(e)&&null!==e)switch(e.$$typeof){case tt:l=10;break e;case rt:l=9;break e;case ot:l=11;break e;case st:l=14;break e;case lt:l=16,o=null;break e}throw s(Error(130),null==e?e:n(e),"")}return(t=il(l,r,t,i)).elementType=e,t.type=o,t.expirationTime=a,t}function ul(e,t,r,n){return(e=il(7,e,n,t)).expirationTime=r,e}function cl(e,t,r){return(e=il(6,e,null,t)).expirationTime=r,e}function fl(e,t,r){return(t=il(4,null!==e.children?e.children:[],e.key,t)).expirationTime=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function dl(e,t,r){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=this.firstBatch=null,this.pingTime=this.lastPendingTime=this.firstPendingTime=this.callbackExpirationTime=0}function pl(e,t,r){return e=new dl(e,t,r),t=il(3,null,null,2===t?7:1===t?3:0),e.current=t,t.stateNode=e}function hl(e,t,r,n,o,i){var a=t.current;e:if(r){t:{if(2!==sr(r=r._reactInternalFiber)||1!==r.tag)throw s(Error(170));var l=r;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(Hn(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw s(Error(171))}if(1===r.tag){var u=r.type;if(Hn(u)){r=Wn(r,u,l);break e}}r=l}else r=Rn;return null===t.context?t.context=r:t.pendingContext=r,t=i,(o=Ro(n,o)).payload={element:e},null!==(t=void 0===t?null:t)&&(o.callback=t),No(a,o),Ms(a,n),n}function bl(e,t,r,n){var o=t.current,i=js(),a=Wo.suspense;return hl(e,t,r,o=Is(i,o,a),a,n)}function ml(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function yl(e){var t=1073741821-25*(1+((1073741821-js()+500)/25|0));t<=Ds&&--t,this._expirationTime=Ds=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function vl(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function gl(e,t,r){this._internalRoot=pl(e,t,r)}function wl(e,t){this._internalRoot=pl(e,2,t)}function kl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function xl(e,t,r,n,o){var i=r._reactRootContainer,a=void 0;if(i){if(a=i._internalRoot,"function"==typeof o){var s=o;o=function(){var e=ml(a);s.call(e)}}bl(t,a,e,o)}else{if(i=r._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var r;r=e.lastChild;)e.removeChild(r);return new gl(e,0,t)}(r,n),a=i._internalRoot,"function"==typeof o){var l=o;o=function(){var e=ml(a);l.call(e)}}zs((function(){bl(t,a,e,o)}))}return ml(a)}function El(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!kl(t))throw s(Error(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Ye,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)}_e=function(e,t,r){switch(t){case"input":if(Pt(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=H(n);if(!o)throw s(Error(90));Ge(n),Pt(n,o)}}}break;case"textarea":sn(e,r);break;case"select":null!=(t=r.value)&&nn(e,!!r.multiple,t,!1)}},yl.prototype.render=function(e){if(!this._defer)throw s(Error(250));this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,r=this._expirationTime,n=new vl;return hl(e,t,null,r,null,n._onCommit),n},yl.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},yl.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(!this._defer||null===t)throw s(Error(251));if(this._hasChildren){var r=this._expirationTime;if(t!==this){this._hasChildren&&(r=this._expirationTime=t._expirationTime,this.render(this._children));for(var n=null,o=t;o!==this;)n=o,o=o._next;if(null===n)throw s(Error(251));n._next=o._next,this._next=t,e.firstBatch=this}if(this._defer=!1,t=r,(ls&(ts|rs))!==Za)throw s(Error(253));yo(Vs.bind(null,e,t)),vo(),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},yl.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},vl.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},vl.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var r=e[t];if("function"!=typeof r)throw s(Error(191),r);r()}}},wl.prototype.render=gl.prototype.render=function(e,t){var r=this._internalRoot,n=new vl;return null!==(t=void 0===t?null:t)&&n.then(t),bl(e,r,null,n._onCommit),n},wl.prototype.unmount=gl.prototype.unmount=function(e){var t=this._internalRoot,r=new vl;return null!==(e=void 0===e?null:e)&&r.then(e),bl(null,t,null,r._onCommit),r},wl.prototype.createBatch=function(){var e=new yl(this),t=e._expirationTime,r=this._internalRoot,n=r.firstBatch;if(null===n)r.firstBatch=e,e._next=null;else{for(r=null;null!==n&&n._expirationTime>=t;)r=n,n=n._next;e._next=n,null!==r&&(r._next=e)}return e},Me=Us,Re=Hs,Fe=Ls,Ne=function(e,t){var r=ls;ls|=2;try{return e(t)}finally{(ls=r)===Za&&vo()}};var Ol,Sl,Cl={createPortal:El,findDOMNode:function(e){if(null==e)e=null;else if(1!==e.nodeType){var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw s(Error(188));throw s(Error(268),Object.keys(e))}e=null===(e=ur(t))?null:e.stateNode}return e},hydrate:function(e,t,r){if(!kl(t))throw s(Error(200));return xl(null,e,t,!0,r)},render:function(e,t,r){if(!kl(t))throw s(Error(200));return xl(null,e,t,!1,r)},unstable_renderSubtreeIntoContainer:function(e,t,r,n){if(!kl(r))throw s(Error(200));if(null==e||void 0===e._reactInternalFiber)throw s(Error(38));return xl(e,t,r,!1,n)},unmountComponentAtNode:function(e){if(!kl(e))throw s(Error(40));return!!e._reactRootContainer&&(zs((function(){xl(null,null,e,!1,(function(){e._reactRootContainer=null}))})),!0)},unstable_createPortal:function(){return El.apply(void 0,arguments)},unstable_batchedUpdates:Us,unstable_interactiveUpdates:function(e,t,r,n){return Ls(),Hs(e,t,r,n)},unstable_discreteUpdates:Hs,unstable_flushDiscreteUpdates:Ls,flushSync:function(e,t){if((ls&(ts|rs))!==Za)throw s(Error(187));var r=ls;ls|=1;try{return bo(99,e.bind(null,t))}finally{ls=r,vo()}},unstable_createRoot:function(e,t){if(!kl(e))throw s(Error(299),"unstable_createRoot");return new wl(e,null!=t&&!0===t.hydrate)},unstable_createSyncRoot:function(e,t){if(!kl(e))throw s(Error(299),"unstable_createRoot");return new gl(e,1,null!=t&&!0===t.hydrate)},unstable_flushControlled:function(e){var t=ls;ls|=1;try{bo(99,e)}finally{(ls=t)===Za&&vo()}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[L,U,H,I.injectEventPluginsByName,p,G,function(e){_(e,q)},Ie,De,Hr,j,$s,{current:!1}]}};Sl=(Ol={findFiberByHostInstance:N,bundleType:0,version:"16.9.0",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var r=t.inject(e);rl=function(e){try{t.onCommitFiberRoot(r,e,void 0,64==(64&e.current.effectTag))}catch(e){}},nl=function(e){try{t.onCommitFiberUnmount(r,e)}catch(e){}}}catch(e){}}(i({},Ol,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Xe.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=ur(e))?null:e.stateNode},findFiberByHostInstance:function(e){return Sl?Sl(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}));var Pl={default:Cl},_l=Pl&&Cl||Pl;e.exports=_l.default||_l},function(e,t,r){"use strict";e.exports=r(339)},function(e,t,r){"use strict";
/** @license React v0.15.0
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=void 0,i=void 0,a=void 0,s=void 0,l=void 0;if(t.unstable_now=void 0,t.unstable_forceFrameRate=void 0,"undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,f=function e(){if(null!==u)try{var r=t.unstable_now();u(!0,r),u=null}catch(t){throw setTimeout(e,0),t}};t.unstable_now=function(){return Date.now()},o=function(e){null!==u?setTimeout(o,0,e):(u=e,setTimeout(f,0))},i=function(e,t){c=setTimeout(e,t)},a=function(){clearTimeout(c)},s=function(){return!1},l=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,p=window.Date,h=window.setTimeout,b=window.clearTimeout,m=window.requestAnimationFrame,y=window.cancelAnimationFrame;"undefined"!=typeof console&&("function"!=typeof m&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof y&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")),t.unstable_now="object"===n(d)&&"function"==typeof d.now?function(){return d.now()}:function(){return p.now()};var v=!1,g=null,w=-1,k=-1,x=33.33,E=-1,O=-1,S=0,C=!1;s=function(){return t.unstable_now()>=S},l=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):0<e?(x=Math.floor(1e3/e),C=!0):(x=33.33,C=!1)};var P=function(){if(null!==g){var e=t.unstable_now(),r=0<S-e;try{g(r,e)||(g=null)}catch(e){throw T.postMessage(null),e}}},_=new MessageChannel,T=_.port2;_.port1.onmessage=P;o=function(e){g=e,v||(v=!0,m((function(e){!function e(r){if(null===g)O=E=-1,v=!1;else{v=!0,m((function(t){b(w),e(t)}));if(w=h((function e(){S=t.unstable_now()+x/2,P(),w=h(e,3*x)}),3*x),-1!==E&&.1<r-E){var n=r-E;!C&&-1!==O&&n<x&&O<x&&(8.33>(x=n<O?O:n)&&(x=8.33)),O=n}E=r,S=r+x,T.postMessage(null)}}(e)})))},i=function(e,r){k=h((function(){e(t.unstable_now())}),r)},a=function(){b(k),k=-1}}var A=null,j=null,I=null,D=3,M=!1,R=!1,F=!1;function N(e,t){var r=e.next;if(r===e)A=null;else{e===A&&(A=r);var n=e.previous;n.next=r,r.previous=n}e.next=e.previous=null,r=e.callback,n=D;var o=I;D=e.priorityLevel,I=e;try{var i=e.expirationTime<=t;switch(D){case 1:var a=r(i);break;case 2:case 3:case 4:a=r(i);break;case 5:a=r(i)}}catch(e){throw e}finally{D=n,I=o}if("function"==typeof a)if(t=e.expirationTime,e.callback=a,null===A)A=e.next=e.previous=e;else{a=null,i=A;do{if(t<=i.expirationTime){a=i;break}i=i.next}while(i!==A);null===a?a=A:a===A&&(A=e),(t=a.previous).next=a.previous=e,e.next=a,e.previous=t}}function L(e){if(null!==j&&j.startTime<=e)do{var t=j,r=t.next;if(t===r)j=null;else{j=r;var n=t.previous;n.next=r,r.previous=n}t.next=t.previous=null,B(t,t.expirationTime)}while(null!==j&&j.startTime<=e)}function U(e){F=!1,L(e),R||(null!==A?(R=!0,o(H)):null!==j&&i(U,j.startTime-e))}function H(e,r){R=!1,F&&(F=!1,a()),L(r),M=!0;try{if(e){if(null!==A)do{N(A,r),L(r=t.unstable_now())}while(null!==A&&!s())}else for(;null!==A&&A.expirationTime<=r;)N(A,r),L(r=t.unstable_now());return null!==A||(null!==j&&i(U,j.startTime-r),!1)}finally{M=!1}}function z(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}function B(e,t){if(null===A)A=e.next=e.previous=e;else{var r=null,n=A;do{if(t<n.expirationTime){r=n;break}n=n.next}while(n!==A);null===r?r=A:r===A&&(A=e),(t=r.previous).next=r.previous=e,e.next=r,e.previous=t}}var V=l;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=D;D=e;try{return t()}finally{D=r}},t.unstable_next=function(e){switch(D){case 1:case 2:case 3:var t=3;break;default:t=D}var r=D;D=t;try{return e()}finally{D=r}},t.unstable_scheduleCallback=function(e,r,s){var l=t.unstable_now();if("object"===n(s)&&null!==s){var u=s.delay;u="number"==typeof u&&0<u?l+u:l,s="number"==typeof s.timeout?s.timeout:z(e)}else s=z(e),u=l;if(e={callback:r,priorityLevel:e,startTime:u,expirationTime:s=u+s,next:null,previous:null},u>l){if(s=u,null===j)j=e.next=e.previous=e;else{r=null;var c=j;do{if(s<c.startTime){r=c;break}c=c.next}while(c!==j);null===r?r=j:r===j&&(j=e),(s=r.previous).next=r.previous=e,e.next=r,e.previous=s}null===A&&j===e&&(F?a():F=!0,i(U,u-l))}else B(e,s),R||M||(R=!0,o(H));return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(e===t)e===A?A=null:e===j&&(j=null);else{e===A?A=t:e===j&&(j=t);var r=e.previous;r.next=t,t.previous=r}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var t=D;return function(){var r=D;D=t;try{return e.apply(this,arguments)}finally{D=r}}},t.unstable_getCurrentPriorityLevel=function(){return D},t.unstable_shouldYield=function(){var e=t.unstable_now();return L(e),null!==I&&null!==A&&A.startTime<=e&&A.expirationTime<I.expirationTime||s()},t.unstable_requestPaint=V,t.unstable_continueExecution=function(){R||M||(R=!0,o(H))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return A}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,r){var n=r(124),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},function(e,t,r){var n=r(124);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},function(e,t,r){var n=r(124);e.exports=function(e){return n(this.__data__,e)>-1}},function(e,t,r){var n=r(124);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},function(e,t,r){var n=r(123);e.exports=function(){this.__data__=new n,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,r){var n=r(123),o=r(158),i=r(186),a=200;e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!o||s.length<a-1)return s.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(s)}return r.set(e,t),this.size=r.size,this}},function(e,t,r){var n=r(159),o=r(353),i=r(33),a=r(212),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,f=u.hasOwnProperty,d=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?d:s).test(a(e))}},function(e,t,r){var n=r(85),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[s]=r:delete e[s]),o}},function(e,t){var r=Object.prototype.toString;e.exports=function(e){return r.call(e)}},function(e,t,r){var n,o=r(354),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},function(e,t,r){var n=r(38)["__core-js_shared__"];e.exports=n},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,r){var n=r(357),o=r(123),i=r(158);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},function(e,t,r){var n=r(358),o=r(359),i=r(360),a=r(361),s=r(362);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,r){var n=r(125);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,r){var n=r(125),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return r===o?void 0:r}return i.call(t,e)?t[e]:void 0}},function(e,t,r){var n=r(125),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},function(e,t,r){var n=r(125),o="__lodash_hash_undefined__";e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?o:t,this}},function(e,t,r){var n=r(126);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){var t=r(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,r){var n=r(126);e.exports=function(e){return n(this,e).get(e)}},function(e,t,r){var n=r(126);e.exports=function(e){return n(this,e).has(e)}},function(e,t,r){var n=r(126);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},function(e,t,r){var n=r(74),o=r(106);e.exports=function(e,t){return e&&n(t,o(t),e)}},function(e,t){e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},function(e,t,r){var n=r(55),o=r(40),i="[object Arguments]";e.exports=function(e){return o(e)&&n(e)==i}},function(e,t){e.exports=function(){return!1}},function(e,t,r){var n=r(55),o=r(162),i=r(40),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[n(e)]}},function(e,t,r){var n=r(165),o=r(375),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},function(e,t,r){var n=r(215)(Object.keys,Object);e.exports=n},function(e,t,r){var n=r(74),o=r(129);e.exports=function(e,t){return e&&n(t,o(t),e)}},function(e,t,r){var n=r(33),o=r(165),i=r(378),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=o(e),r=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&r.push(s);return r}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},function(e,t,r){var n=r(74),o=r(166);e.exports=function(e,t){return n(e,o(e),t)}},function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}},function(e,t,r){var n=r(74),o=r(218);e.exports=function(e,t){return n(e,o(e),t)}},function(e,t,r){var n=r(64)(r(38),"DataView");e.exports=n},function(e,t,r){var n=r(64)(r(38),"Promise");e.exports=n},function(e,t){var r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&r.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},function(e,t,r){var n=r(169),o=r(386),i=r(387),a=r(388),s=r(221),l="[object Boolean]",u="[object Date]",c="[object Map]",f="[object Number]",d="[object RegExp]",p="[object Set]",h="[object String]",b="[object Symbol]",m="[object ArrayBuffer]",y="[object DataView]",v="[object Float32Array]",g="[object Float64Array]",w="[object Int8Array]",k="[object Int16Array]",x="[object Int32Array]",E="[object Uint8Array]",O="[object Uint8ClampedArray]",S="[object Uint16Array]",C="[object Uint32Array]";e.exports=function(e,t,r){var P=e.constructor;switch(t){case m:return n(e);case l:case u:return new P(+e);case y:return o(e,r);case v:case g:case w:case k:case x:case E:case O:case S:case C:return s(e,r);case c:return new P;case f:case h:return new P(e);case d:return i(e);case p:return new P;case b:return a(e)}}},function(e,t,r){var n=r(169);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},function(e,t){var r=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,r.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,r){var n=r(85),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},function(e,t,r){var n=r(390),o=r(163),i=r(164),a=i&&i.isMap,s=a?o(a):n;e.exports=s},function(e,t,r){var n=r(142),o=r(40),i="[object Map]";e.exports=function(e){return o(e)&&n(e)==i}},function(e,t,r){var n=r(392),o=r(163),i=r(164),a=i&&i.isSet,s=a?o(a):n;e.exports=s},function(e,t,r){var n=r(142),o=r(40),i="[object Set]";e.exports=function(e){return o(e)&&n(e)==i}},function(e,t,r){var n=r(99),o=r(207),i=r(398),a=r(95);e.exports=function(e,t){return t=n(t,e),null==(e=i(e,t))||delete e[a(o(t))]}},function(e,t,r){var n=r(395),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,r,n,o){t.push(n?o.replace(i,"$1"):r||e)})),t}));e.exports=a},function(e,t,r){var n=r(396),o=500;e.exports=function(e){var t=n(e,(function(e){return r.size===o&&r.clear(),e})),r=t.cache;return t}},function(e,t,r){var n=r(186),o="Expected a function";function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var r=function r(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(i.Cache||n),r}i.Cache=n,e.exports=i},function(e,t,r){var n=r(85),o=r(157),i=r(31),a=r(130),s=1/0,l=n?n.prototype:void 0,u=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return u?u.call(t):"";var r=t+"";return"0"==r&&1/t==-s?"-0":r}},function(e,t,r){var n=r(188),o=r(271);e.exports=function(e,t){return t.length<2?e:n(e,o(t,0,-1))}},function(e,t,r){var n=r(223);e.exports=function(e){return n(e)?void 0:e}},function(e,t,r){var n=r(401);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},function(e,t,r){var n=r(167),o=r(402);e.exports=function e(t,r,i,a,s){var l=-1,u=t.length;for(i||(i=o),s||(s=[]);++l<u;){var c=t[l];r>0&&i(c)?r>1?e(c,r-1,i,a,s):n(s,c):a||(s[s.length]=c)}return s}},function(e,t,r){var n=r(85),o=r(127),i=r(31),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},function(e,t){e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},function(e,t,r){var n=r(405),o=r(213),i=r(189),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){var r=800,n=16,o=Date.now;e.exports=function(e){var t=0,i=0;return function(){var a=o(),s=n-(a-i);if(i=a,s>0){if(++t>=r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,r){"use strict";e.exports=r(408)},function(e,t,r){"use strict";
/** @license React v16.12.0
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,s=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,u=o?Symbol.for("react.profiler"):60114,c=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.async_mode"):60111,p=o?Symbol.for("react.concurrent_mode"):60111,h=o?Symbol.for("react.forward_ref"):60112,b=o?Symbol.for("react.suspense"):60113,m=o?Symbol.for("react.suspense_list"):60120,y=o?Symbol.for("react.memo"):60115,v=o?Symbol.for("react.lazy"):60116,g=o?Symbol.for("react.fundamental"):60117,w=o?Symbol.for("react.responder"):60118,k=o?Symbol.for("react.scope"):60119;function x(e){if("object"===n(e)&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case p:case s:case u:case l:case b:return e;default:switch(e=e&&e.$$typeof){case f:case h:case v:case y:case c:return e;default:return t}}case a:return t}}}function E(e){return x(e)===p}t.typeOf=x,t.AsyncMode=d,t.ConcurrentMode=p,t.ContextConsumer=f,t.ContextProvider=c,t.Element=i,t.ForwardRef=h,t.Fragment=s,t.Lazy=v,t.Memo=y,t.Portal=a,t.Profiler=u,t.StrictMode=l,t.Suspense=b,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===p||e===u||e===l||e===b||e===m||"object"===n(e)&&null!==e&&(e.$$typeof===v||e.$$typeof===y||e.$$typeof===c||e.$$typeof===f||e.$$typeof===h||e.$$typeof===g||e.$$typeof===w||e.$$typeof===k)},t.isAsyncMode=function(e){return E(e)||x(e)===d},t.isConcurrentMode=E,t.isContextConsumer=function(e){return x(e)===f},t.isContextProvider=function(e){return x(e)===c},t.isElement=function(e){return"object"===n(e)&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return x(e)===h},t.isFragment=function(e){return x(e)===s},t.isLazy=function(e){return x(e)===v},t.isMemo=function(e){return x(e)===y},t.isPortal=function(e){return x(e)===a},t.isProfiler=function(e){return x(e)===u},t.isStrictMode=function(e){return x(e)===l},t.isSuspense=function(e){return x(e)===b}},function(e,t,r){},function(e,t,r){},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(0)),i=l(r(412)),a=l(r(35)),s=l(r(415));function l(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(e){return n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)})(e)}function c(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function f(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}s.default||console.error("It looks like Tether has not been included. Please load this dependency first https://github.com/HubSpot/tether");var y=void 0!==a.default.createPortal,v=[i.default.string,i.default.shape({appendChild:i.default.func.isRequired})],g=["auto auto","top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],w=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?b(e):t}(this,p(t).call(this,e)),m(b(b(r)),"_targetNode",null),m(b(b(r)),"_elementParentNode",null),m(b(b(r)),"_tether",null),m(b(b(r)),"_elementComponent",null),m(b(b(r)),"_targetComponent",null),r.updateChildrenComponents(r.props),r}var r,n,i;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}}),t&&h(e,t)}(t,e),r=t,(n=[{key:"updateChildrenComponents",value:function(e){var t=o.Children.toArray(e.children);if(this._targetComponent=t[0],this._elementComponent=t[1],this._targetComponent&&this._elementComponent&&this._createContainer(),this._elementParentNode&&this.props.className!==e.className){var r,n,i=(this.props.className||"").split(" ").filter((function(e){return e.length>0})),a=(e.className||"").split(" ").filter((function(e){return e.length>0}));(r=this._elementParentNode.classList).remove.apply(r,f(i)),(n=this._elementParentNode.classList).add.apply(n,f(a))}}},{key:"componentDidMount",value:function(){this._update()}},{key:"componentDidUpdate",value:function(){this._update()}},{key:"componentWillUnmount",value:function(){this._destroy()}},{key:"getTetherInstance",value:function(){return this._tether}},{key:"disable",value:function(){this._tether.disable()}},{key:"enable",value:function(){this._tether.enable()}},{key:"on",value:function(e,t,r){this._tether.on(e,t,r)}},{key:"once",value:function(e,t,r){this._tether.once(e,t,r)}},{key:"off",value:function(e,t){this._tether.off(e,t)}},{key:"position",value:function(){this._tether.position()}},{key:"_registerEventListeners",value:function(){var e=this;this.on("update",(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.props.onUpdate&&e.props.onUpdate.apply(e,r)})),this.on("repositioned",(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.props.onRepositioned&&e.props.onRepositioned.apply(e,r)}))}},{key:"_destroy",value:function(){this._elementParentNode&&(y||a.default.unmountComponentAtNode(this._elementParentNode),this._elementParentNode.parentNode.removeChild(this._elementParentNode)),this._tether&&this._tether.destroy(),this._elementParentNode=null,this._tether=null,this._targetNode=null,this._targetComponent=null,this._elementComponent=null}},{key:"_createContainer",value:function(){if(!this._elementParentNode){var e=this.props,t=e.renderElementTag,r=e.className;this._elementParentNode=document.createElement(t),this._elementParentNode.className=r||"",this._renderNode.appendChild(this._elementParentNode)}}},{key:"_update",value:function(){var e=this,t=!this._elementComponent||!this._targetComponent;t||(this._targetNode=a.default.findDOMNode(this),t=!this._targetNode),t?this._destroy():y?this._updateTether():a.default.unstable_renderSubtreeIntoContainer(this,this._elementComponent,this._elementParentNode,(function(){e._elementParentNode&&e._updateTether()}))}},{key:"_updateTether",value:function(){var e=this.props,t=(e.children,e.renderElementTag,e.renderElementTo,e.id),r=(e.className,e.style),n=c(e,["children","renderElementTag","renderElementTo","id","className","style"]),o=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){m(e,t,r[t])}))}return e}({target:this._targetNode,element:this._elementParentNode},n),i=t||"";if(this._elementParentNode.id!==i&&(this._elementParentNode.id=i),r){var a=this._elementParentNode.style;Object.keys(r).forEach((function(e){a[e]!==r[e]&&(a[e]=r[e])}))}this._tether?this._tether.setOptions(o):(this._tether=new s.default(o),this._registerEventListeners()),this._tether.position()}},{key:"render",value:function(){return this._targetComponent?y&&this._elementComponent?[this._targetComponent,a.default.createPortal(this._elementComponent,this._elementParentNode)]:this._targetComponent:null}},{key:"_renderNode",get:function(){var e=this.props.renderElementTo;return"string"==typeof e?document.querySelector(e):e||document.body}}])&&d(r.prototype,n),i&&d(r,i),t}(o.Component);function k(e){this.updateChildrenComponents(e)}m(w,"propTypes",{renderElementTag:i.default.string,renderElementTo:i.default.oneOfType(v),attachment:i.default.oneOf(g).isRequired,targetAttachment:i.default.oneOf(g),offset:i.default.string,targetOffset:i.default.string,targetModifier:i.default.string,enabled:i.default.bool,classes:i.default.object,classPrefix:i.default.string,optimizations:i.default.object,constraints:i.default.array,id:i.default.string,className:i.default.string,style:i.default.object,onUpdate:i.default.func,onRepositioned:i.default.func,children:function(e,t,r){var n=e.children,i=o.Children.count(n);return i<=0?new Error("".concat(r," expects at least one child to use as the target element.")):i>2?new Error("Only a max of two children allowed in ".concat(r,".")):void 0}}),m(w,"defaultProps",{renderElementTag:"div",renderElementTo:null});var x,E,O=o.default.version.split(".").map(Number),S=(E=2,function(e){if(Array.isArray(e))return e}(x=O)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(x,E)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),C=S[0],P=S[1];C<16||16===C&&P<9?w.prototype.componentWillUpdate=k:w.prototype.UNSAFE_componentWillUpdate=k;var _=w;t.default=_},function(e,t,r){e.exports=r(413)()},function(e,t,r){"use strict";var n=r(414);function o(){}e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return r.checkPropTypes=o,r.PropTypes=r,r}},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){var n,o,i;function a(e){return(a="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)}
/*! tether 1.4.7 */o=[],void 0===(i="function"==typeof(n=function(){"use strict";var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=void 0;void 0===r&&(r={modules:[]});var n=null;function o(e){var t=e.getBoundingClientRect(),r={};for(var n in t)r[n]=t[n];try{if(e.ownerDocument!==document){var i=e.ownerDocument.defaultView.frameElement;if(i){var a=o(i);r.top+=a.top,r.bottom+=a.top,r.left+=a.left,r.right+=a.left}}}catch(e){}return r}function i(e){var t=(getComputedStyle(e)||{}).position,r=[];if("fixed"===t)return[e];for(var n=e;(n=n.parentNode)&&n&&1===n.nodeType;){var o=void 0;try{o=getComputedStyle(n)}catch(e){}if(null==o)return r.push(n),r;var i=o,a=i.overflow,s=i.overflowX,l=i.overflowY;/(auto|scroll|overlay)/.test(a+l+s)&&("absolute"!==t||["relative","absolute","fixed"].indexOf(o.position)>=0)&&r.push(n)}return r.push(e.ownerDocument.body),e.ownerDocument!==document&&r.push(e.ownerDocument.defaultView),r}var s,l=(s=0,function(){return++s}),u={},c=function(){var e=n;e&&document.body.contains(e)||((e=document.createElement("div")).setAttribute("data-tether-id",l()),m(e.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(e),n=e);var t=e.getAttribute("data-tether-id");return void 0===u[t]&&(u[t]=o(e),O((function(){delete u[t]}))),u[t]};function f(){n&&document.body.removeChild(n),n=null}function d(e){var t=void 0;e===document?(t=document,e=document.documentElement):t=e.ownerDocument;var r=t.documentElement,n=o(e),i=c();return n.top-=i.top,n.left-=i.left,void 0===n.width&&(n.width=document.body.scrollWidth-n.left-n.right),void 0===n.height&&(n.height=document.body.scrollHeight-n.top-n.bottom),n.top=n.top-r.clientTop,n.left=n.left-r.clientLeft,n.right=t.body.clientWidth-n.width-n.left,n.bottom=t.body.clientHeight-n.height-n.top,n}function p(e){return e.offsetParent||document.documentElement}var h=null;function b(){if(h)return h;var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");m(t.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);var r=e.offsetWidth;t.style.overflow="scroll";var n=e.offsetWidth;r===n&&(n=t.clientWidth),document.body.removeChild(t);var o=r-n;return h={width:o,height:o}}function m(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=[];return Array.prototype.push.apply(t,arguments),t.slice(1).forEach((function(t){if(t)for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])})),e}function y(e,t){if(void 0!==e.classList)t.split(" ").forEach((function(t){t.trim()&&e.classList.remove(t)}));else{var r=new RegExp("(^| )"+t.split(" ").join("|")+"( |$)","gi"),n=w(e).replace(r," ");k(e,n)}}function v(e,t){if(void 0!==e.classList)t.split(" ").forEach((function(t){t.trim()&&e.classList.add(t)}));else{y(e,t);var r=w(e)+" "+t;k(e,r)}}function g(e,t){if(void 0!==e.classList)return e.classList.contains(t);var r=w(e);return new RegExp("(^| )"+t+"( |$)","gi").test(r)}function w(e){return e.className instanceof e.ownerDocument.defaultView.SVGAnimatedString?e.className.baseVal:e.className}function k(e,t){e.setAttribute("class",t)}function x(e,t,r){r.forEach((function(r){-1===t.indexOf(r)&&g(e,r)&&y(e,r)})),t.forEach((function(t){g(e,t)||v(e,t)}))}var E=[],O=function(e){E.push(e)},S=function(){for(var e=void 0;e=E.pop();)e()},C=function(){function r(){t(this,r)}return e(r,[{key:"on",value:function(e,t,r){var n=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[e]&&(this.bindings[e]=[]),this.bindings[e].push({handler:t,ctx:r,once:n})}},{key:"once",value:function(e,t,r){this.on(e,t,r,!0)}},{key:"off",value:function(e,t){if(void 0!==this.bindings&&void 0!==this.bindings[e])if(void 0===t)delete this.bindings[e];else for(var r=0;r<this.bindings[e].length;)this.bindings[e][r].handler===t?this.bindings[e].splice(r,1):++r}},{key:"trigger",value:function(e){if(void 0!==this.bindings&&this.bindings[e]){for(var t=0,r=arguments.length,n=Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];for(;t<this.bindings[e].length;){var i=this.bindings[e][t],a=i.handler,s=i.ctx,l=i.once,u=s;void 0===u&&(u=this),a.apply(u,n),l?this.bindings[e].splice(t,1):++t}}}}]),r}();r.Utils={getActualBoundingClientRect:o,getScrollParents:i,getBounds:d,getOffsetParent:p,extend:m,addClass:v,removeClass:y,hasClass:g,updateClasses:x,defer:O,flush:S,uniqueId:l,Evented:C,getScrollBarSize:b,removeUtilElements:f};var P=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},_=(e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),function(e,t,r){for(var n=!0;n;){var o=e,i=t,a=r;n=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,i);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(a)}var u=Object.getPrototypeOf(o);if(null===u)return;e=u,t=i,r=a,n=!0,s=u=void 0}});function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}if(void 0===r)throw new Error("You must include the utils.js file before tether.js");var i=(Q=r.Utils).getScrollParents,p=(d=Q.getBounds,Q.getOffsetParent),v=(m=Q.extend,Q.addClass),y=Q.removeClass,b=(x=Q.updateClasses,O=Q.defer,S=Q.flush,Q.getScrollBarSize),f=Q.removeUtilElements;function T(e,t){var r=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return e+r>=t&&t>=e-r}var A,j,I,D,M=function(){if("undefined"==typeof document)return"";for(var e=document.createElement("div"),t=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],r=0;r<t.length;++r){var n=t[r];if(void 0!==e.style[n])return n}}(),R=[],F=function(){R.forEach((function(e){e.position(!1)})),S()};function N(){return"object"===("undefined"==typeof performance?"undefined":a(performance))&&"function"==typeof performance.now?performance.now():+new Date}A=null,j=null,I=null,D=function e(){if(void 0!==j&&j>16)return j=Math.min(j-16,250),void(I=setTimeout(e,250));void 0!==A&&N()-A<10||(null!=I&&(clearTimeout(I),I=null),A=N(),F(),j=N()-A)},"undefined"!=typeof window&&void 0!==window.addEventListener&&["resize","scroll","touchmove"].forEach((function(e){window.addEventListener(e,D)}));var L={center:"center",left:"right",right:"left"},U={middle:"middle",top:"bottom",bottom:"top"},H={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},z=function(e,t){var r=e.left,n=e.top;return"auto"===r&&(r=L[t.left]),"auto"===n&&(n=U[t.top]),{left:r,top:n}},B=function(e){var t=e.left,r=e.top;return void 0!==H[e.left]&&(t=H[e.left]),void 0!==H[e.top]&&(r=H[e.top]),{left:t,top:r}};function V(){for(var e={top:0,left:0},t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t){var r=t.top,n=t.left;"string"==typeof r&&(r=parseFloat(r,10)),"string"==typeof n&&(n=parseFloat(n,10)),e.top+=r,e.left+=n})),e}function W(e,t){return"string"==typeof e.left&&-1!==e.left.indexOf("%")&&(e.left=parseFloat(e.left,10)/100*t.width),"string"==typeof e.top&&-1!==e.top.indexOf("%")&&(e.top=parseFloat(e.top,10)/100*t.height),e}var q=function(e){var t=e.split(" "),r=P(t,2);return{top:r[0],left:r[1]}},G=q,X=function(n){function o(e){var n=this;t(this,o),_(Object.getPrototypeOf(o.prototype),"constructor",this).call(this),this.position=this.position.bind(this),R.push(this),this.history=[],this.setOptions(e,!1),r.modules.forEach((function(e){void 0!==e.initialize&&e.initialize.call(n)})),this.position()}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+a(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,n),e(o,[{key:"getClass",value:function(){var e=arguments.length<=0||void 0===arguments[0]?"":arguments[0],t=this.options.classes;return void 0!==t&&t[e]?this.options.classes[e]:this.options.classPrefix?this.options.classPrefix+"-"+e:e}},{key:"setOptions",value:function(e){var t=this,r=arguments.length<=1||void 0===arguments[1]||arguments[1],n={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=m(n,e);var o=this.options,a=o.element,s=o.target,l=o.targetModifier;if(this.element=a,this.target=s,this.targetModifier=l,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach((function(e){if(void 0===t[e])throw new Error("Tether Error: Both element and target must be defined");void 0!==t[e].jquery?t[e]=t[e][0]:"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),v(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&v(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=G(this.options.targetAttachment),this.attachment=G(this.options.attachment),this.offset=q(this.options.offset),this.targetOffset=q(this.options.targetOffset),void 0!==this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=i(this.target),!1!==this.options.enabled&&this.enable(r)}},{key:"getTargetBounds",value:function(){if(void 0===this.targetModifier)return d(this.target);if("visible"===this.targetModifier)return this.target===document.body?{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth}:((i={height:(e=d(this.target)).height,width:e.width,top:e.top,left:e.left}).height=Math.min(i.height,e.height-(pageYOffset-e.top)),i.height=Math.min(i.height,e.height-(e.top+e.height-(pageYOffset+innerHeight))),i.height=Math.min(innerHeight,i.height),i.height-=2,i.width=Math.min(i.width,e.width-(pageXOffset-e.left)),i.width=Math.min(i.width,e.width-(e.left+e.width-(pageXOffset+innerWidth))),i.width=Math.min(innerWidth,i.width),i.width-=2,i.top<pageYOffset&&(i.top=pageYOffset),i.left<pageXOffset&&(i.left=pageXOffset),i);if("scroll-handle"===this.targetModifier){var e=void 0,t=this.target;t===document.body?(t=document.documentElement,e={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):e=d(t);var r=getComputedStyle(t),n=0;(t.scrollWidth>t.clientWidth||[r.overflow,r.overflowX].indexOf("scroll")>=0||this.target!==document.body)&&(n=15);var o=e.height-parseFloat(r.borderTopWidth)-parseFloat(r.borderBottomWidth)-n,i={width:15,height:.975*o*(o/t.scrollHeight),left:e.left+e.width-parseFloat(r.borderLeftWidth)-15},a=0;o<408&&this.target===document.body&&(a=-11e-5*Math.pow(o,2)-.00727*o+22.58),this.target!==document.body&&(i.height=Math.max(i.height,24));var s=this.target.scrollTop/(t.scrollHeight-o);return i.top=s*(o-i.height-a)+e.top+parseFloat(r.borderTopWidth),this.target===document.body&&(i.height=Math.max(i.height,24)),i}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(e,t){return void 0===this._cache&&(this._cache={}),void 0===this._cache[e]&&(this._cache[e]=t.call(this)),this._cache[e]}},{key:"enable",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&v(this.target,this.getClass("enabled")),v(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach((function(t){t!==e.target.ownerDocument&&t.addEventListener("scroll",e.position)})),t&&this.position()}},{key:"disable",value:function(){var e=this;y(this.target,this.getClass("enabled")),y(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParents&&this.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.position)}))}},{key:"destroy",value:function(){var e=this;this.disable(),R.forEach((function(t,r){t===e&&R.splice(r,1)})),0===R.length&&f()}},{key:"updateAttachClasses",value:function(e,t){var r=this;e=e||this.attachment,t=t||this.targetAttachment,void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]);var n=this._addAttachClasses;e.top&&n.push(this.getClass("element-attached")+"-"+e.top),e.left&&n.push(this.getClass("element-attached")+"-"+e.left),t.top&&n.push(this.getClass("target-attached")+"-"+t.top),t.left&&n.push(this.getClass("target-attached")+"-"+t.left);var o=[];["left","top","bottom","right","middle","center"].forEach((function(e){o.push(r.getClass("element-attached")+"-"+e),o.push(r.getClass("target-attached")+"-"+e)})),O((function(){void 0!==r._addAttachClasses&&(x(r.element,r._addAttachClasses,o),!1!==r.options.addTargetClasses&&x(r.target,r._addAttachClasses,o),delete r._addAttachClasses)}))}},{key:"position",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var n=z(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,n);var o=this.cache("element-bounds",(function(){return d(e.element)})),i=o.width,s=o.height;if(0===i&&0===s&&void 0!==this.lastSize){var l=this.lastSize;i=l.width,s=l.height}else this.lastSize={width:i,height:s};var u=this.cache("target-bounds",(function(){return e.getTargetBounds()})),c=u,f=W(B(this.attachment),{width:i,height:s}),h=W(B(n),c),m=W(this.offset,{width:i,height:s}),y=W(this.targetOffset,c);f=V(f,m),h=V(h,y);for(var v=u.left+h.left-f.left,g=u.top+h.top-f.top,w=0;w<r.modules.length;++w){var k=r.modules[w],x=k.position.call(this,{left:v,top:g,targetAttachment:n,targetPos:u,elementPos:o,offset:f,targetOffset:h,manualOffset:m,manualTargetOffset:y,scrollbarSize:P,attachment:this.attachment});if(!1===x)return!1;void 0!==x&&"object"===a(x)&&(g=x.top,v=x.left)}var E={page:{top:g,left:v},viewport:{top:g-pageYOffset,bottom:pageYOffset-g-s+innerHeight,left:v-pageXOffset,right:pageXOffset-v-i+innerWidth}},O=this.target.ownerDocument,C=O.defaultView,P=void 0;return C.innerHeight>O.documentElement.clientHeight&&(P=this.cache("scrollbar-size",b),E.viewport.bottom-=P.height),C.innerWidth>O.documentElement.clientWidth&&(P=this.cache("scrollbar-size",b),E.viewport.right-=P.width),-1!==["","static"].indexOf(O.body.style.position)&&-1!==["","static"].indexOf(O.body.parentElement.style.position)||(E.page.bottom=O.body.scrollHeight-g-s,E.page.right=O.body.scrollWidth-v-i),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var t=e.cache("target-offsetparent",(function(){return p(e.target)})),r=e.cache("target-offsetparent-bounds",(function(){return d(t)})),n=getComputedStyle(t),o=r,i={};if(["Top","Left","Bottom","Right"].forEach((function(e){i[e.toLowerCase()]=parseFloat(n["border"+e+"Width"])})),r.right=O.body.scrollWidth-r.left-o.width+i.right,r.bottom=O.body.scrollHeight-r.top-o.height+i.bottom,E.page.top>=r.top+i.top&&E.page.bottom>=r.bottom&&E.page.left>=r.left+i.left&&E.page.right>=r.right){var a=t.scrollTop,s=t.scrollLeft;E.offset={top:E.page.top-r.top+a-i.top,left:E.page.left-r.left+s-i.left}}}(),this.move(E),this.history.unshift(E),this.history.length>3&&this.history.pop(),t&&S(),!0}}},{key:"move",value:function(e){var t=this;if(void 0!==this.element.parentNode){var r={};for(var n in e)for(var o in r[n]={},e[n]){for(var i=!1,a=0;a<this.history.length;++a){var s=this.history[a];if(void 0!==s[n]&&!T(s[n][o],e[n][o])){i=!0;break}}i||(r[n][o]=!0)}var l,u,c={top:"",left:"",right:"",bottom:""},f=function(e,r){if(!1!==(void 0!==t.options.optimizations?t.options.optimizations.gpu:null)){var n=void 0,o=void 0;e.top?(c.top=0,n=r.top):(c.bottom=0,n=-r.bottom),e.left?(c.left=0,o=r.left):(c.right=0,o=-r.right),"number"==typeof window.devicePixelRatio&&devicePixelRatio%1==0&&(o=Math.round(o*devicePixelRatio)/devicePixelRatio,n=Math.round(n*devicePixelRatio)/devicePixelRatio),c[M]="translateX("+o+"px) translateY("+n+"px)","msTransform"!==M&&(c[M]+=" translateZ(0)")}else e.top?c.top=r.top+"px":c.bottom=r.bottom+"px",e.left?c.left=r.left+"px":c.right=r.right+"px"},d=!1;if((r.page.top||r.page.bottom)&&(r.page.left||r.page.right)?(c.position="absolute",f(r.page,e.page)):(r.viewport.top||r.viewport.bottom)&&(r.viewport.left||r.viewport.right)?(c.position="fixed",f(r.viewport,e.viewport)):void 0!==r.offset&&r.offset.top&&r.offset.left?function(){c.position="absolute";var n=t.cache("target-offsetparent",(function(){return p(t.target)}));p(t.element)!==n&&O((function(){t.element.parentNode.removeChild(t.element),n.appendChild(t.element)})),f(r.offset,e.offset),d=!0}():(c.position="absolute",f({top:!0,left:!0},e.page)),!d)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{for(var h=!0,b=this.element.parentNode;b&&1===b.nodeType&&"BODY"!==b.tagName&&(u=void 0,((u=(l=b).ownerDocument).fullscreenElement||u.webkitFullscreenElement||u.mozFullScreenElement||u.msFullscreenElement)!==l);){if("static"!==getComputedStyle(b).position){h=!1;break}b=b.parentNode}h||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var y={},v=!1;for(var o in c){var g=c[o];this.element.style[o]!==g&&(v=!0,y[o]=g)}v&&O((function(){m(t.element.style,y),t.trigger("repositioned")}))}}}]),o}(C);X.modules=[],r.position=F;var K=m(X,r);P=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},d=(Q=r.Utils).getBounds;var m=Q.extend,$=(x=Q.updateClasses,O=Q.defer,["left","top","right","bottom"]);r.modules.push({position:function(e){var t=this,r=e.top,n=e.left,o=e.targetAttachment;if(!this.options.constraints)return!0;var i=this.cache("element-bounds",(function(){return d(t.element)})),a=i.height,s=i.width;if(0===s&&0===a&&void 0!==this.lastSize){var l=this.lastSize;s=l.width,a=l.height}var u=this.cache("target-bounds",(function(){return t.getTargetBounds()})),c=u.height,f=u.width,p=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach((function(e){var t=e.outOfBoundsClass,r=e.pinnedClass;t&&p.push(t),r&&p.push(r)})),p.forEach((function(e){["left","top","right","bottom"].forEach((function(t){p.push(e+"-"+t)}))}));var h=[],b=m({},o),y=m({},this.attachment);return this.options.constraints.forEach((function(e){var i=e.to,l=e.attachment,u=e.pin;void 0===l&&(l="");var p=void 0,m=void 0;if(l.indexOf(" ")>=0){var v=l.split(" "),g=P(v,2);m=g[0],p=g[1]}else p=m=l;var w=function(e,t){return"scrollParent"===t?t=e.scrollParents[0]:"window"===t&&(t=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),t===document&&(t=t.documentElement),void 0!==t.nodeType&&function(){var e=t,r=d(t),n=r,o=getComputedStyle(t);if(t=[n.left,n.top,r.width+n.left,r.height+n.top],e.ownerDocument!==document){var i=e.ownerDocument.defaultView;t[0]+=i.pageXOffset,t[1]+=i.pageYOffset,t[2]+=i.pageXOffset,t[3]+=i.pageYOffset}$.forEach((function(e,r){"Top"===(e=e[0].toUpperCase()+e.substr(1))||"Left"===e?t[r]+=parseFloat(o["border"+e+"Width"]):t[r]-=parseFloat(o["border"+e+"Width"])}))}(),t}(t,i);"target"!==m&&"both"!==m||(r<w[1]&&"top"===b.top&&(r+=c,b.top="bottom"),r+a>w[3]&&"bottom"===b.top&&(r-=c,b.top="top")),"together"===m&&("top"===b.top&&("bottom"===y.top&&r<w[1]?(r+=c,b.top="bottom",r+=a,y.top="top"):"top"===y.top&&r+a>w[3]&&r-(a-c)>=w[1]&&(r-=a-c,b.top="bottom",y.top="bottom")),"bottom"===b.top&&("top"===y.top&&r+a>w[3]?(r-=c,b.top="top",r-=a,y.top="bottom"):"bottom"===y.top&&r<w[1]&&r+(2*a-c)<=w[3]&&(r+=a-c,b.top="top",y.top="top")),"middle"===b.top&&(r+a>w[3]&&"top"===y.top?(r-=a,y.top="bottom"):r<w[1]&&"bottom"===y.top&&(r+=a,y.top="top"))),"target"!==p&&"both"!==p||(n<w[0]&&"left"===b.left&&(n+=f,b.left="right"),n+s>w[2]&&"right"===b.left&&(n-=f,b.left="left")),"together"===p&&(n<w[0]&&"left"===b.left?"right"===y.left?(n+=f,b.left="right",n+=s,y.left="left"):"left"===y.left&&(n+=f,b.left="right",n-=s,y.left="right"):n+s>w[2]&&"right"===b.left?"left"===y.left?(n-=f,b.left="left",n-=s,y.left="right"):"right"===y.left&&(n-=f,b.left="left",n+=s,y.left="left"):"center"===b.left&&(n+s>w[2]&&"left"===y.left?(n-=s,y.left="right"):n<w[0]&&"right"===y.left&&(n+=s,y.left="left"))),"element"!==m&&"both"!==m||(r<w[1]&&"bottom"===y.top&&(r+=a,y.top="top"),r+a>w[3]&&"top"===y.top&&(r-=a,y.top="bottom")),"element"!==p&&"both"!==p||(n<w[0]&&("right"===y.left?(n+=s,y.left="left"):"center"===y.left&&(n+=s/2,y.left="left")),n+s>w[2]&&("left"===y.left?(n-=s,y.left="right"):"center"===y.left&&(n-=s/2,y.left="right"))),"string"==typeof u?u=u.split(",").map((function(e){return e.trim()})):!0===u&&(u=["top","left","right","bottom"]),u=u||[];var k,x,E=[],O=[];r<w[1]&&(u.indexOf("top")>=0?(r=w[1],E.push("top")):O.push("top")),r+a>w[3]&&(u.indexOf("bottom")>=0?(r=w[3]-a,E.push("bottom")):O.push("bottom")),n<w[0]&&(u.indexOf("left")>=0?(n=w[0],E.push("left")):O.push("left")),n+s>w[2]&&(u.indexOf("right")>=0?(n=w[2]-s,E.push("right")):O.push("right")),E.length&&(k=void 0,k=void 0!==t.options.pinnedClass?t.options.pinnedClass:t.getClass("pinned"),h.push(k),E.forEach((function(e){h.push(k+"-"+e)}))),O.length&&(x=void 0,x=void 0!==t.options.outOfBoundsClass?t.options.outOfBoundsClass:t.getClass("out-of-bounds"),h.push(x),O.forEach((function(e){h.push(x+"-"+e)}))),(E.indexOf("left")>=0||E.indexOf("right")>=0)&&(y.left=b.left=!1),(E.indexOf("top")>=0||E.indexOf("bottom")>=0)&&(y.top=b.top=!1),b.top===o.top&&b.left===o.left&&y.top===t.attachment.top&&y.left===t.attachment.left||(t.updateAttachClasses(y,b),t.trigger("update",{attachment:y,targetAttachment:b}))})),O((function(){!1!==t.options.addTargetClasses&&x(t.target,h,p),x(t.element,h,p)})),{top:r,left:n}}});var Q,d=(Q=r.Utils).getBounds,x=Q.updateClasses;return O=Q.defer,r.modules.push({position:function(e){var t=this,r=e.top,n=e.left,o=this.cache("element-bounds",(function(){return d(t.element)})),i=o.height,a=o.width,s=this.getTargetBounds(),l=r+i,u=n+a,c=[];r<=s.bottom&&l>=s.top&&["left","right"].forEach((function(e){var t=s[e];t!==n&&t!==u||c.push(e)})),n<=s.right&&u>=s.left&&["top","bottom"].forEach((function(e){var t=s[e];t!==r&&t!==l||c.push(e)}));var f=[],p=[];return f.push(this.getClass("abutted")),["left","top","right","bottom"].forEach((function(e){f.push(t.getClass("abutted")+"-"+e)})),c.length&&p.push(this.getClass("abutted")),c.forEach((function(e){p.push(t.getClass("abutted")+"-"+e)})),O((function(){!1!==t.options.addTargetClasses&&x(t.target,p,f),x(t.element,p,f)})),!0}}),P=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r.modules.push({position:function(e){var t=e.top,r=e.left;if(this.options.shift){var n=this.options.shift;"function"==typeof this.options.shift&&(n=this.options.shift.call(this,{top:t,left:r}));var o=void 0,i=void 0;if("string"==typeof n){(n=n.split(" "))[1]=n[1]||n[0];var a=P(n,2);o=a[0],i=a[1],o=parseFloat(o,10),i=parseFloat(i,10)}else o=n.top,i=n.left;return{top:t+=o,left:r+=i}}}}),K})?n.apply(t,o):n)||(e.exports=i)},function(e,t,r){},function(e,t,r){},function(e,t){var r=Object.prototype.hasOwnProperty;e.exports=function(e,t){return null!=e&&r.call(e,t)}},function(e,t,r){var n=r(160),o=r(99),i=r(128),a=r(33),s=r(95);e.exports=function(e,t,r,l){if(!a(e))return e;for(var u=-1,c=(t=o(t,e)).length,f=c-1,d=e;null!=d&&++u<c;){var p=s(t[u]),h=r;if(u!=f){var b=d[p];void 0===(h=l?l(b,p,d):void 0)&&(h=a(b)?b:i(t[u+1])?[]:{})}n(d,p,h),d=d[p]}return e}},function(e,t,r){"use strict";var n=r(34),o=r(226),i=r(422),a=r(170);function s(e){var t=new i(e),r=o(i.prototype.request,t);return n.extend(r,i.prototype,t),n.extend(r,t),r}var l=s(a);l.Axios=i,l.create=function(e){return s(n.merge(a,e))},l.Cancel=r(230),l.CancelToken=r(435),l.isCancel=r(229),l.all=function(e){return Promise.all(e)},l.spread=r(436),e.exports=l,e.exports.default=l},function(e,t){
/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */
e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,r){"use strict";var n=r(170),o=r(34),i=r(430),a=r(431);function s(e){this.defaults=e,this.interceptors={request:new i,response:new i}}s.prototype.request=function(e){"string"==typeof e&&(e=o.merge({url:arguments[0]},arguments[1])),(e=o.merge(n,{method:"get"},this.defaults,e)).method=e.method.toLowerCase();var t=[a,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)r=r.then(t.shift(),t.shift());return r},o.forEach(["delete","get","head","options"],(function(e){s.prototype[e]=function(t,r){return this.request(o.merge(r||{},{method:e,url:t}))}})),o.forEach(["post","put","patch"],(function(e){s.prototype[e]=function(t,r,n){return this.request(o.merge(n||{},{method:e,url:t,data:r}))}})),e.exports=s},function(e,t,r){"use strict";var n=r(34);e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},function(e,t,r){"use strict";var n=r(228);e.exports=function(e,t,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},function(e,t,r){"use strict";e.exports=function(e,t,r,n,o){return e.config=t,r&&(e.code=r),e.request=n,e.response=o,e}},function(e,t,r){"use strict";var n=r(34);function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var a=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}return i&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e}},function(e,t,r){"use strict";var n=r(34),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,a={};return e?(n.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=n.trim(e.substr(0,i)).toLowerCase(),r=n.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}})),a):a}},function(e,t,r){"use strict";var n=r(34);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},function(e,t,r){"use strict";var n=r(34);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,r){"use strict";var n=r(34);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},function(e,t,r){"use strict";var n=r(34),o=r(432),i=r(229),a=r(170),s=r(433),l=r(434);function u(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return u(e),e.baseURL&&!s(e.url)&&(e.url=l(e.baseURL,e.url)),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return u(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,r){"use strict";var n=r(34);e.exports=function(e,t,r){return n.forEach(r,(function(r){e=r(e,t)})),e}},function(e,t,r){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,r){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,r){"use strict";var n=r(230);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,r){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}},function(e,t,r){var n=r(440),o=r(106);e.exports=function(e){return null==e?[]:n(e,o(e))}},function(e,t,r){var n=r(157);e.exports=function(e,t){return n(t,(function(t){return e[t]}))}},function(e,t){e.exports=function(e,t,r,n){var o=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}},function(e,t,r){var n=r(443),o=r(94),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(i,n).replace(a,"")}},function(e,t,r){var n=r(444)({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});e.exports=n},function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},function(e,t,r){var n=r(446),o=r(447),i=r(94),a=r(448);e.exports=function(e,t,r){return e=i(e),void 0===(t=r?void 0:t)?o(e)?a(e):n(e):e.match(t)||[]}},function(e,t){var r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(r)||[]}},function(e,t){var r=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return r.test(e)}},function(e,t){var r="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",n="["+r+"]",o="\\d+",i="[\\u2700-\\u27bf]",a="[a-z\\xdf-\\xf6\\xf8-\\xff]",s="[^\\ud800-\\udfff"+r+o+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",c="[A-Z\\xc0-\\xd6\\xd8-\\xde]",f="(?:"+a+"|"+s+")",d="(?:"+c+"|"+s+")",p="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",h="[\\ufe0e\\ufe0f]?"+p+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",l,u].join("|")+")[\\ufe0e\\ufe0f]?"+p+")*"),b="(?:"+[i,l,u].join("|")+")"+h,m=RegExp([c+"?"+a+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[n,c,"$"].join("|")+")",d+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[n,c+f,"$"].join("|")+")",c+"?"+f+"+(?:['’](?:d|ll|m|re|s|t|ve))?",c+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",o,b].join("|"),"g");e.exports=function(e){return e.match(m)||[]}},function(e,t,r){var n=r(152),o=r(232),i=r(450),a=r(452),s=r(33),l=r(129),u=r(233);e.exports=function e(t,r,c,f,d){t!==r&&i(r,(function(i,l){if(d||(d=new n),s(i))a(t,r,l,c,e,f,d);else{var p=f?f(u(t,l),i,l+"",t,r,d):void 0;void 0===p&&(p=i),o(t,l,p)}}),l)}},function(e,t,r){var n=r(451)();e.exports=n},function(e,t){e.exports=function(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===r(i[l],l,i))break}return t}}},function(e,t,r){var n=r(232),o=r(216),i=r(221),a=r(194),s=r(222),l=r(127),u=r(31),c=r(453),f=r(141),d=r(159),p=r(33),h=r(223),b=r(187),m=r(233),y=r(454);e.exports=function(e,t,r,v,g,w,k){var x=m(e,r),E=m(t,r),O=k.get(E);if(O)n(e,r,O);else{var S=w?w(x,E,r+"",e,t,k):void 0,C=void 0===S;if(C){var P=u(E),_=!P&&f(E),T=!P&&!_&&b(E);S=E,P||_||T?u(x)?S=x:c(x)?S=a(x):_?(C=!1,S=o(E,!0)):T?(C=!1,S=i(E,!0)):S=[]:h(E)||l(E)?(S=x,l(x)?S=y(x):p(x)&&!d(x)||(S=s(E))):C=!1}C&&(k.set(E,S),g(S,E,v,w,k),k.delete(E)),n(e,r,S)}}},function(e,t,r){var n=r(93),o=r(40);e.exports=function(e){return o(e)&&n(e)}},function(e,t,r){var n=r(74),o=r(129);e.exports=function(e){return n(e,o(e))}},function(e,t,r){var n=r(456),o=r(266);e.exports=function(e){return n((function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++n<i;){var l=r[n];l&&e(t,l,n,a)}return t}))}},function(e,t,r){var n=r(189),o=r(224),i=r(225);e.exports=function(e,t){return i(o(e,t,n),e+"")}},function(e,t,r){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=new RegExp("%[a-f0-9]{2}","gi"),i=new RegExp("(%[a-f0-9]{2})+","gi");function a(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],a(r),a(n))}function s(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(o),r=1;r<t.length;r++)t=(e=a(t,r).join("")).match(o);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+n(e)+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=i.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var n=s(r[0]);n!==r[0]&&(t[r[0]]=n)}r=i.exec(e)}t["%C2"]="�";for(var o=Object.keys(t),a=0;a<o.length;a++){var l=o[a];e=e.replace(new RegExp(l,"g"),t[l])}return e}(e)}}},function(e,t,r){var n=r(55),o=r(40),i="[object Number]";e.exports=function(e){return"number"==typeof e||o(e)&&n(e)==i}},,,,,,,,,,,,,,,,,function(e,t,r){},function(e,t,r){},,,,,,,,,,,,,,function(e,t,r){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n),i=r(5),a=r.n(i),s=r(12),l=r.n(s),u=r(3),c=r.n(u),f=r(81),d=r(61),p=r.n(d),h=r(132),b=r(4),m=r(90),y=r(54),v=r(179),g=r(25),w=r(35);var k=function(e){var t=e.integrationWindow,r=e.children,n=t.document.createElement("div");return function(e,t){Array.from(e.styleSheets).forEach((function(e){if(e.href){var r=t.document.createElement("link");r.rel="stylesheet",r.href=e.href,t.document.head.appendChild(r)}})),t.document.body.style.margin=0,t.document.body.style.padding=0}(document,t),t.document.body.appendChild(n),Object(w.createPortal)(r,n)},x=function(e){var t=e.hasError,r=e.integrationWindow;return n.createElement(k,{integrationWindow:r},n.createElement("div",{className:"be bcow bcow-portal-container"},t?n.createElement(v.a,{errorHeader:n.createElement(f.a,b.a.executeIntegrationOpenWithErrorHeader),errorSubHeader:n.createElement(f.a,b.a.executeIntegrationOpenWithErrorSubHeader)}):n.createElement(g.b,{className:"bcow-portal-loading-indicator",size:"large"})))},E=r(118),O=r(119),S=r(56),C=r(1),P=r(9),_=function(e){var t=e.className,r=void 0===t?"":t,o=e.height,i=void 0===o?30:o,a=e.title,s=e.width,l=void 0===s?30:s;return n.createElement(P.a,{className:"icon-adobe-sign ".concat(r),height:i,title:a,viewBox:"0 0 30 30",width:l},n.createElement("path",{d:"M1.27 1.27h27.45v26.67H1.27z",fill:"#260000"}),n.createElement("path",{d:"M0 0v29.23h30V0zm1.45 1.45h27.1v26.31H1.45z",fill:"#ff3601"}),n.createElement("path",{d:"M5.8 11.59v4.01l1.73 2.76 1.72-2.76v-4.01H5.8M5.68 20.4h19.06v1.04H5.68z",fill:"#ff3601"}),n.createElement("path",{d:"M24.78 16a.29.29 0 0 0-.2-.16 8.9 8.9 0 0 0-4.64.45c1.24-1.64 1-1.93.91-2.09s-.38-.22-.72-.08a28.23 28.23 0 0 0-3.07 1.54c1-1.54 1.35-2.55 1.1-2.94a.55.55 0 0 0-.58-.23 7.25 7.25 0 0 0-1.13.29c2.07-3.1 2.72-4.71 2.23-5.54-.23-.38-.7-.54-1.39-.46a8.13 8.13 0 0 0-3.77 1.92 5.38 5.38 0 0 0-2.12 2.84 1.17 1.17 0 0 0 1 1.25.31.31 0 0 0 .25 0 .29.29 0 0 0 .16-.2.29.29 0 0 0 0-.24.29.29 0 0 0-.2-.16c-.49-.15-.54-.38-.53-.57.11-1.3 3.49-3.94 5.32-4.16.4 0 .65 0 .74.16.34.58-.59 2.48-2.77 5.64-2.8 1.29-4.85 3.25-5 4.27a.85.85 0 0 0 .48.92.8.8 0 0 0 .44.11c1.15 0 2.61-2 4.54-4.78a7.77 7.77 0 0 1 1.79-.57 13.36 13.36 0 0 1-1.88 3.33.32.32 0 0 0 0 .42.34.34 0 0 0 .41 0 38.86 38.86 0 0 1 4-2.11 15.55 15.55 0 0 1-1.42 1.94.35.35 0 0 0 0 .41.32.32 0 0 0 .38.11c.58-.23 3.56-1.33 5.29-.82a.31.31 0 0 0 .25 0 .35.35 0 0 0 .16-.2.31.31 0 0 0-.03-.29zm-10.22-1.62c-.93 1.31-2.75 3.83-3.45 3.46-.11-.05-.14-.1-.12-.23.1-.72 1.74-2.19 3.57-3.23z",fill:"#facfcb"}))};function T(e){return(T="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){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function I(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D(e,t){return(D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function M(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var R="icon-google-docs",F=function(e){function t(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r=function(e,t){return!t||"object"!==T(t)&&"function"!=typeof t?I(e):t}(this,(e=j(t)).call.apply(e,[this].concat(o))),M(I(r),"idPrefix","".concat(l()(R),"-")),r}var r,o,i;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}}),t&&D(e,t)}(t,e),r=t,(o=[{key:"render",value:function(){var e=this.props,t=e.className,r=e.height,o=e.title,i=e.width;return n.createElement(P.a,{className:"".concat(R," ").concat(t),height:r,title:o,viewBox:"0 0 30 30",width:i},n.createElement("defs",null,n.createElement("linearGradient",{gradientTransform:"matrix(2.67 0 0 -2.67 596.67 1357)",gradientUnits:"userSpaceOnUse",id:"".concat(this.idPrefix,"a"),x1:"-215.49",x2:"-215.49",y1:"505.79",y2:"503.19"},n.createElement("stop",{offset:"0",stopColor:"#1a237e",stopOpacity:".2"}),n.createElement("stop",{offset:"1",stopColor:"#1a237e",stopOpacity:".02"}))),n.createElement("path",{d:"M17.64 0H6.05A2.05 2.05 0 0 0 4 2.05V28a2.05 2.05 0 0 0 2.05 2h17.72a2.05 2.05 0 0 0 2.05-2V8.18l-4.77-3.41z",fill:"#4285f4"}),n.createElement("path",{d:"M18.23 7.58l7.59 7.58V8.18l-7.59-.6z",fill:"url(#".concat(this.idPrefix,"a)")}),n.createElement("path",{d:"M9.45 21.82h10.91v-1.37H9.45zm0 2.73h8.19v-1.37H9.45zm0-9.55v1.36h10.91V15zm0 4.09h10.91v-1.36H9.45z",fill:"#f1f1f1"}),n.createElement("path",{d:"M17.64 0v6.14a2 2 0 0 0 2 2h6.14z",fill:"#a1c2fa"}),n.createElement("path",{d:"M6.05 0A2.05 2.05 0 0 0 4 2.05v.17A2.05 2.05 0 0 1 6.05.17h11.59V0z",fill:"#fff",fillOpacity:".2"}),n.createElement("path",{d:"M19.68 8.18a2 2 0 0 1-2-2v.17a2 2 0 0 0 2 2h6.14v-.17z",fill:"#1a237e",fillOpacity:".1"}))}}])&&A(r.prototype,o),i&&A(r,i),t}(n.Component);M(F,"defaultProps",{className:"",height:30,width:30});var N=F;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 U(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function H(e){return(H=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function z(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B(e,t){return(B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function V(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var W="icon-google-sheets",q=function(e){function t(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r=function(e,t){return!t||"object"!==L(t)&&"function"!=typeof t?z(e):t}(this,(e=H(t)).call.apply(e,[this].concat(o))),V(z(r),"idPrefix","".concat(l()(W),"-")),r}var r,o,i;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}}),t&&B(e,t)}(t,e),r=t,(o=[{key:"render",value:function(){var e=this.props,t=e.className,r=e.height,o=e.title,i=e.width;return n.createElement(P.a,{className:"".concat(W," ").concat(t),height:r,title:o,viewBox:"0 0 30 30",width:i},n.createElement("defs",null,n.createElement("linearGradient",{gradientTransform:"matrix(2.67 0 0 -2.67 596.67 1357)",gradientUnits:"userSpaceOnUse",id:"".concat(this.idPrefix,"a"),x1:"-215.49",x2:"-215.49",y1:"505.79",y2:"503.19"},n.createElement("stop",{offset:"0",stopColor:"#208256"}),n.createElement("stop",{offset:".55",stopColor:"#19955a",stopOpacity:".2"}))),n.createElement("path",{d:"M17.64 0H6.05A2.05 2.05 0 0 0 4 2.05V28a2.05 2.05 0 0 0 2.05 2h17.72a2.05 2.05 0 0 0 2.05-2V8.18l-4.77-3.41z",fill:"#22a565"}),n.createElement("path",{d:"M18.23 7.58l7.59 7.58V8.18l-7.59-.6z",fill:"url(#".concat(this.idPrefix,"a)")}),n.createElement("path",{d:"M17.64 0v6.14a2 2 0 0 0 2 2h6.14z",fill:"#8ed1b1"}),n.createElement("path",{d:"M6.05 0A2.05 2.05 0 0 0 4 2.05v.17A2.05 2.05 0 0 1 6.05.17h11.59V0z",fill:"#fff",fillOpacity:".2"}),n.createElement("path",{d:"M19.68 8.18a2 2 0 0 1-2-2v.17a2 2 0 0 0 2 2h6.14v-.17z",fill:"#1a237e",fillOpacity:".1"}),n.createElement("path",{d:"M10 14v10h10V14zm1 1h3.5v2H11zm0 3h3.5v2H11zm0 5v-2h3.5v2zm8 0h-3.5v-2H19zm0-3h-3.5v-2H19zm0-3h-3.5v-2H19z",fill:"#f1f1f1"}))}}])&&U(r.prototype,o),i&&U(r,i),t}(n.Component);V(q,"defaultProps",{className:"",height:30,width:30});var G=q;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 K(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function $(e){return($=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y(e,t){return(Y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function J(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Z="icon-google-slides",ee=function(e){function t(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r=function(e,t){return!t||"object"!==X(t)&&"function"!=typeof t?Q(e):t}(this,(e=$(t)).call.apply(e,[this].concat(o))),J(Q(r),"idPrefix","".concat(l()(Z),"-")),r}var r,o,i;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}}),t&&Y(e,t)}(t,e),r=t,(o=[{key:"render",value:function(){var e=this.props,t=e.className,r=e.height,o=e.title,i=e.width;return n.createElement(P.a,{className:"".concat(Z," ").concat(t),height:r,title:o,viewBox:"0 0 30 30",width:i},n.createElement("defs",null,n.createElement("linearGradient",{gradientTransform:"matrix(2.67 0 0 -2.67 596.67 1357)",gradientUnits:"userSpaceOnUse",id:"".concat(this.idPrefix,"a"),x1:"-215.49",x2:"-215.49",y1:"505.79",y2:"503.19"},n.createElement("stop",{offset:"0",stopColor:"#d08714",stopOpacity:".88"}),n.createElement("stop",{offset:".55",stopColor:"#cf8714",stopOpacity:".2"}))),n.createElement("path",{d:"M17.64 0H6.05A2.05 2.05 0 0 0 4 2.05V28a2.05 2.05 0 0 0 2.05 2h17.72a2.05 2.05 0 0 0 2.05-2V8.18l-4.77-3.41z",fill:"#f4b912"}),n.createElement("path",{d:"M18.23 7.58l7.59 7.58V8.18l-7.59-.6z",fill:"url(#".concat(this.idPrefix,"a)")}),n.createElement("path",{d:"M17.64 0v6.14a2 2 0 0 0 2 2h6.14z",fill:"#fadc87"}),n.createElement("path",{d:"M6.05 0A2.05 2.05 0 0 0 4 2.05v.17A2.05 2.05 0 0 1 6.05.17h11.59V0z",fill:"#fff",fillOpacity:".2"}),n.createElement("path",{d:"M19.68 8.18a2 2 0 0 1-2-2v.17a2 2 0 0 0 2 2h6.14v-.17z",fill:"#1a237e",fillOpacity:".1"}),n.createElement("path",{d:"M10 15v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-8a1 1 0 0 0-1 1zm9 6h-8v-4h8z",fill:"#f1f1f1"}))}}])&&K(r.prototype,o),i&&K(r,i),t}(n.Component);J(ee,"defaultProps",{className:"",height:30,width:30});var te=ee,re=r(178),ne={"Adobe Sign":_,"Google Docs":N,"Google Docs (beta)":N,"Google Sheets":G,"Google Sheets (beta)":G,"Google Slides":te,"Google Slides (beta)":te};var oe=function(e){return ne[e]||re.a},ie=r(7),ae=r.n(ie);r(772);function se(){return(se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var le=function(e){var t=e.boxToolsName,r=void 0===t?"Box Tools":t,o=e.boxToolsInstallUrl,i=void 0===o?"https://cloud.box.com/v/installboxtools":o;return n.createElement(f.a,se({},b.a.boxToolsInstallMessage,{values:{boxTools:n.createElement("a",{href:"#",onClick:function(){window.open(i)},rel:"noopener noreferrer"},r)}}))},ue=function(e){return ae()(e,"disabledReasons.0.type")===le};r(773);var ce=function(e){var t=e.integration,r=e.onClick,o=t.displayName,i=t.displayDescription,s=t.isDisabled,l=t.extension,u=t.disabledReasons,c=oe(o),d=s?function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=t[0],o=n.createElement(f.a,b.a.errorOpenWithDescription);switch(r){case"blocked_by_shield_access_policy":e=n.createElement(f.a,b.a.boxEditErrorBlockedByPolicy);break;case"collaborators_hidden":e=o;break;default:e=t[0]||o}return e}(u):i,p=a()({"bcow-box-tools-uninstalled":ue(t)});return n.createElement(S.a,{className:p,isDisabled:s,onClick:function(){return r(t)}},n.createElement(c,{dimension:C.ge,extension:l,height:C.ge,width:C.ge}),n.createElement("span",null,n.createElement("p",{className:"bcow-menu-item-title"},o),n.createElement("p",{className:"bcow-menu-item-description"},d)))},fe=r(136),de=r(209),pe=r(24),he=r(91),be=function(e){var t=e.children;return n.createElement(n.Fragment,null,t,n.createElement("span",{className:"bcow-btn-header-text"},n.createElement(f.a,b.a.open)))};function me(){return(me=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var ye=function(e){return n.createElement(he.a,{position:"middle-left",text:n.createElement(f.a,b.a.defaultOpenWithDescription)},n.createElement(pe.b,me({"data-testid":"multipleintegrationsbutton"},e),n.createElement(fe.a,null,n.createElement(be,null,n.createElement(de.a,{className:C.o,dimension:C.fe,height:C.fe,width:C.fe})))))},ve=function(e){var t=e.dropdownAlignment,r=void 0===t?"right":t,o=e.integrations,i=e.onClick;return n.createElement(E.a,{isRightAligned:"right"===r},n.createElement(ye,null),n.createElement(O.a,{className:"bcow-menu"},o.map((function(e){return n.createElement(ce,{key:e.appIntegrationId,integration:e,onClick:i})}))))};function ge(){return(ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function we(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var ke=function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(t)return null;var i=n.createElement(f.a,b.a.emptyOpenWithDescription);if(o.length>0){var a=we(o,1);i=a[0]}else r?i=n.createElement(f.a,b.a.errorOpenWithDescription):e&&(i=e);return i},xe=function(e){var t=e.error,r=e.onClick,o=void 0===r?c.a:r,i=e.displayIntegration,a=e.isLoading,s=i||{},l=s.displayName,u=s.isDisabled,f=s.extension,d=s.disabledReasons,p=s.displayDescription,h=!!u||!l,b=l?oe(l):de.a,m=ue(i)?{isShown:!0,showCloseButton:!0}:{};return n.createElement(he.a,ge({className:"bcow-tooltip",position:"bottom-center",text:ke(p,a,t,d)},m),n.createElement(pe.b,{"data-testid":"singleintegrationbutton",isDisabled:h,onClick:function(){return i?o(i):c.a}},n.createElement(be,null,n.createElement(b,{className:C.o,dimension:C.fe,extension:f,height:C.fe,width:C.fe}))))},Ee=function(e){var t=e.error;return n.createElement("div",{className:"be bcow"},n.createElement(xe,{error:t,isLoading:!1}))};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 Se(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ce(e,t){return!t||"object"!==Oe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Pe(e){return(Pe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _e(e,t){return(_e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Te=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Ce(this,Pe(t).call(this,e))).ref=o.a.createRef(),r}var r,n,i;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}}),t&&_e(e,t)}(t,e),r=t,(n=[{key:"componentDidMount",value:function(){var e=this.props.onSubmit;this.ref.current.submit(),e()}},{key:"render",value:function(){var e=this.props,t=e.executePostData,r=t.url,n=t.params,i=e.id,a=e.windowName;return o.a.createElement("form",{ref:this.ref,action:r,id:"bcow-execute-form-".concat(i),method:C.Gd,rel:"noreferrer noopener",target:a||"_blank"},n&&n.map((function(e){var t=e.key,r=e.value;return o.a.createElement("input",{key:t,name:t,type:"hidden",value:r})})))}}])&&Se(r.prototype,n),i&&Se(r,i),t}(n.PureComponent);r(236),r(774);function Ae(e){return(Ae="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 je(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ie(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?je(Object(r),!0).forEach((function(t){Le(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):je(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function De(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function Me(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Re(e){return(Re=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ne(e,t){return(Ne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Le(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ue="Integration invocation using this HTTP method type is not supported",He="boxToolsBlacklistedError",ze="boxToolsInstallErrorMessage",Be="executeIntegrationOpenWithErrorHeader",Ve="auth_code",We=function(e){function t(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==Ae(t)&&"function"!=typeof t?Fe(e):t}(this,Re(t).call(this,e)),Le(Fe(r),"initialState",{isDropdownOpen:!1,integrations:null,isLoading:!0,fetchError:null,executePostData:null,shouldRenderErrorIntegrationPortal:!1,shouldRenderLoadingIntegrationPortal:!1}),Le(Fe(r),"fetchOpenWithSuccessHandler",function(){var e,t=(e=regeneratorRuntime.mark((function e(t){var n,i,a,s,l,u,c,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.props,i=n.boxToolsName,a=n.boxToolsInstallUrl,!(s=t.find((function(e){var t=e.appIntegrationId;return r.isBoxEditIntegration(t)})))||s.isDisabled){e.next=22;break}return e.prev=3,e.next=6,r.getIntegrationFileExtension();case 6:return l=e.sent,u=l.extension,s.extension=u,e.next=11,r.isBoxEditAvailable();case 11:return e.next=13,r.canOpenExtensionWithBoxEdit(s);case 13:e.next=22;break;case 15:e.prev=15,e.t0=e.catch(3),c=b.a[e.t0.message]||b.a[Be],d=o.a.createElement(f.a,c),e.t0.message===ze&&(d=o.a.createElement(le,{boxToolsInstallUrl:a,boxToolsName:i})),s.disabledReasons.push(d),s.isDisabled=!0;case 22:r.setState({integrations:t,isLoading:!1});case 23:case"end":return e.stop()}}),e,null,[[3,15]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){De(i,n,o,a,s,"next",e)}function s(e){De(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()),Le(Fe(r),"getIntegrationFileExtension",(function(){var e=r.props.fileId;return new Promise((function(t,n){r.api.getFileAPI().getFileExtension(e,t,(function(){return n(new Error(Be))}))}))})),Le(Fe(r),"isBoxEditAvailable",(function(){return r.api.getBoxEditAPI().checkBoxEditAvailability().catch((function(){throw new Error(ze)}))})),Le(Fe(r),"canOpenExtensionWithBoxEdit",(function(e){var t=e.extension,n=void 0===t?"":t;return r.api.getBoxEditAPI().getAppForExtension(n).catch((function(){throw new Error(He)}))})),Le(Fe(r),"fetchErrorHandler",(function(e,t){r.props.onError(e,t,{error:e}),r.setState({fetchError:e,isLoading:!1})})),Le(Fe(r),"onIntegrationClick",(function(e){var t=e.appIntegrationId,n=e.displayName,o=r.props.fileId,i=r.isBoxEditIntegration(t);if(r.api.getAppIntegrationsAPI(!1).execute(t,o,r.executeIntegrationSuccessHandler.bind(Fe(r),t),i?r.executeBoxEditErrorHandler:r.executeIntegrationErrorHandler),!i){var a="left=".concat(window.screenX,",top=").concat(window.screenY,",height=").concat(window.outerHeight,",width=").concat(window.innerWidth,",toolbar=0");r.integrationWindow=r.window.open("","".concat(l()(t)),a),r.integrationWindow.document.title=n,r.integrationWindow.onunload=r.cleanupIntegrationWindow,r.setState({shouldRenderLoadingIntegrationPortal:!0,shouldRenderErrorIntegrationPortal:!1})}})),Le(Fe(r),"cleanupIntegrationWindow",(function(){r.setState({shouldRenderLoadingIntegrationPortal:!1,shouldRenderErrorIntegrationPortal:!1})})),Le(Fe(r),"executeIntegrationSuccessHandler",(function(e,t){r.isBoxEditIntegration(e)?r.executeBoxEditSuccessHandler(e,t):r.executeOnlineIntegrationSuccessHandler(t),r.onExecute(e)})),Le(Fe(r),"executeOnlineIntegrationSuccessHandler",(function(e){var t=e.method,n=e.url;switch(t){case C.Gd:r.setState({executePostData:e});break;case C.Dd:if(!r.integrationWindow)return;r.integrationWindow.location=n,r.integrationWindow.opener=null;break;default:r.executeIntegrationErrorHandler(Error(Ue),C.tb)}r.integrationWindow=null})),Le(Fe(r),"executeBoxEditSuccessHandler",(function(e,t){var n=t.url,o=r.props,i=o.fileId,a=o.token,s=o.onError,l=p.a.parse(n)[Ve],u=r.isBoxEditSFCIntegration(e);r.api.getBoxEditAPI().openFile(i,{data:{auth_code:l,token:a,token_scope:u?C.zf:C.Af}}).catch((function(e){s(e,C.tb,{error:e})}))})),Le(Fe(r),"onExecuteFormSubmit",(function(){r.setState({executePostData:null})})),Le(Fe(r),"executeIntegrationErrorHandler",(function(e,t){r.props.onError(e,t,{error:e}),console.error(e),r.setState({shouldRenderLoadingIntegrationPortal:!1,shouldRenderErrorIntegrationPortal:!0})})),Le(Fe(r),"executeBoxEditErrorHandler",(function(e){r.props.onError(e),console.error(e)}));var n=e.token,i=e.apiHost,a=e.clientName,s=e.language,u=e.requestInterceptor,c=e.responseInterceptor;return r.id=l()("bcow_"),r.api=new y.a({apiHost:i,clientName:a,language:s,requestInterceptor:u,responseInterceptor:c,token:n}),r.state=Ie({},r.initialState),r}var r,n,i;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}}),t&&Ne(e,t)}(t,e),r=t,(n=[{key:"clearCache",value:function(){this.api.destroy(!0)}},{key:"componentWillUnmount",value:function(){this.api.destroy(!1)}},{key:"componentDidMount",value:function(){this.props.fileId&&(this.window=window,this.fetchOpenWithData())}},{key:"componentDidUpdate",value:function(e){var t=this.props.fileId,r=e.fileId;t&&t!==r&&(this.setState(Ie({},this.initialState)),this.fetchOpenWithData())}},{key:"isBoxEditIntegration",value:function(e){return e===C.f||this.isBoxEditSFCIntegration(e)}},{key:"isBoxEditSFCIntegration",value:function(e){return e===C.g}},{key:"fetchOpenWithData",value:function(){var e=this.props.fileId;this.api.getOpenWithAPI(!1).getOpenWithIntegrations(e,this.fetchOpenWithSuccessHandler,this.fetchErrorHandler)}},{key:"onExecute",value:function(e){this.props.onExecute(e),this.setState({shouldRenderLoadingIntegrationPortal:!1})}},{key:"getDisplayIntegration",value:function(){var e=this.state.integrations;return Array.isArray(e)&&1===e.length?e[0]:null}},{key:"render",value:function(){var e=this.props,t=e.language,r=e.messages,n=e.dropdownAlignment,i=this.state,s=i.fetchError,l=i.isLoading,u=i.integrations,c=i.executePostData,f=i.shouldRenderLoadingIntegrationPortal,d=i.shouldRenderErrorIntegrationPortal,p=a()("be bcow",this.props.className),b=this.getDisplayIntegration(),m=u?u.length:0;return o.a.createElement(h.a,{language:t,messages:r},o.a.createElement("div",{className:p,"data-testid":"bcow-content",id:this.id},m<=1?o.a.createElement(xe,{displayIntegration:b,error:s,isLoading:l,onClick:this.onIntegrationClick}):o.a.createElement(ve,{dropdownAlignment:n,integrations:u,onClick:this.onIntegrationClick}),(f||d)&&o.a.createElement(x,{hasError:d,integrationWindow:this.integrationWindow}),c&&o.a.createElement(Te,{executePostData:c,id:this.id,onSubmit:this.onExecuteFormSubmit,windowName:this.integrationWindow&&this.integrationWindow.name})))}}])&&Me(r.prototype,n),i&&Me(r,i),t}(n.PureComponent);Le(We,"defaultProps",{apiHost:C.L,className:"",clientName:C.E,onExecute:c.a,onError:c.a});var qe=Object(m.a)(C.me,Ee)(We);r.d(t,"default",(function(){return qe}))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){},function(e,t,r){},function(e,t,r){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";r.r(t),function(e){r(264);var n=r(0),o=r.n(n),i=r(35),a=r(248),s=r(672);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 u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var b=function(e){function t(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?d(e):t}(this,(e=f(t)).call.apply(e,[this].concat(o))),h(d(r),"onExecute",(function(e){r.emit("execute",e)})),h(d(r),"onError",(function(e){r.emit("error",e)})),r}var r,n,a;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}}),t&&p(e,t)}(t,e),r=t,(n=[{key:"render",value:function(){Object(i.render)(o.a.createElement(s.default,u({componentRef:this.setComponent,fileId:this.id,language:this.language,messages:this.messages,onError:this.onError,onExecute:this.onExecute,onInteraction:this.onInteraction,token:this.token},this.options)),this.container)}}])&&c(r.prototype,n),a&&c(r,a),t}(a.a);e.Box=e.Box||{},e.Box.ContentOpenWith=b,t.default=b}.call(this,r(36))}]);