1(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{"+21N":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("D/fu"),r=n("qf2y"),s=n("fXoL");let o=(()=>{class e{constructor(e,t,n,s,o,a,c,l,u,d,h,p){this.congressApi=e,this.congressProfile=t,this.congressAccess=n,this.congressSubmission=s,this.congressAssignment=o,this.congressReview=a,this.congressEvent=c,this.template=l,this.userApi=u,this.courseApi=d,this.courseAccess=h,this.congressSubscription=p,i.p.setBaseURL(r.b),i.p.setApiVersion(r.a),i.p.setRequestOptionsCredentials(!0),i.p.filterOnUrl(),i.p.whereOnUrl()}findUserProfByEmail(e){return this.userApi.find({where:{email:e},include:"congressProfile"})}createUserProfile(e,t){return this.userApi.createCongressProfile(e,t)}findCongressByPublicName(e){return this.congressApi.find({where:{public_name:e},fields:"*"})}getCongressDashboard(e){return this.congressApi.getStats({id:e})}getCongresses(e){return this.congressApi.find({where:{status:"active"},fields:"*"})}getCongressesRegional(){return this.congressApi.find({where:{status:{neq:"pending"},type:"regional"},fields:["name","date_start","date_end","reviews_end","picture","abstract_mode","demo"]})}getCongressesNational(){return this.congressApi.find({where:{status:"active",type:"national"},fields:["name","date_start","date_end","reviews_end","picture","abstract_mode","demo"]})}getCongressesWSubscriptions(e){return this.congressApi.find({where:{and:[{date_start:{gte:new Date(e,0,1).toISOString()}},{date_start:{lte:new Date(e+1,0,1).toISOString()}}]},fields:["name","date_start","date_end","reviews_end","picture","abstract_mode","ecm","webinar","sede"],include:[{relation:"subscriptions",scope:{include:"user",fields:"*"}},{relation:"accesses",scope:{where:{status:"submitted"}}}]})}getCongress(e){return this.congressApi.findById(e,{fields:"*",include:["sponsors",{relation:"lives",scope:{fields:"*"}},{relation:"events",scope:{order:"date_start ASC",fields:["room","moderators"]}},"exam"]})}getCongressSubscriptions(e){return this.congressApi.getSubscriptions(e,{where:{status:"accepted",userId:{neq:"5f083015f35e9f6b06eb7b31"}},fields:"*",include:[{relation:"user",scope:{fields:"*",include:["associate",{relation:"instituteMappings",scope:{fields:["specializzazione"],include:{relation:"institute",scope:{fields:["address"]}}}}]}},{relation:"payments",scope:{fields:"*"}},"event",{relation:"examSubmissions",scope:{fields:"*"}}]})}deleteCongressCertificateId(e,t){return this.congressApi.deleteCertificates(e,{id:t})}findActiveCongresses(){return this.congressApi.find({where:{status:{neq:"pending"}},fields:["date_start"]})}postCongress(e){return this.congressApi.create(e)}congressParticipate(e){return this.congressApi.participate(e)}congressSubscribe(e){return this.congressApi.subscribe(e)}getAuthorsByCongress(e){return this.congressApi.getAuthors(e)}getRefereesByCongress(e){return this.congressApi.getReviewers(e)}congressAddtoCalendar(e){return this.congressApi.addToCalendar(e)}getCongressAuthors(e){return this.congressApi.getAccesses(e,{include:[{relation:"profile",scope:{fields:["userId"],include:{relation:"user",scope:{include:"associate",fields:["name","email"]}}}},{relation:"submissions",scope:{fields:["title","congressId","status","progressive_number"]}}]})}getCongressReferees(e){return this.congressApi.getAssignments(e,{include:[{relation:"profile",scope:{fields:["fields","userId"],include:{relation:"user",scope:{fields:["name","email","registry","emailVerified"]}}}},{relation:"submission",scope:{fields:["title","total_score","scores","congressId"]}},{relation:"review"}]})}getCongressAssignmentsReview(e){return this.congressApi.getAssignments(e,{include:["review",{relation:"profile",scope:{include:"user"}}]})}patchCongress(e,t){return this.congressApi.patchAttributes(e,t)}getCongressEvents(e){return this.congressApi.getEvents(e,{fields:"*"})}congressSendInvite(e,t,n){return this.congressApi.invite(e,t,n)}deleteCongress(e){return this.congressApi.deleteById(e)}generateCertificates(e,t,n){return this.congressApi.generateCertificatesPassed(e,t,n)}congressCertificatesParticipation(e,t,n){return this.congressApi.generateCertificatesParticipation(e,t,n)}countCongressSubscriptions(e){return this.congressApi.countSubscriptions(e)}patchCongressSubscription(e,t){return this.congressSubscription.patchAttributes(e,t)}submitCongressSubscription(e){return this.congressSubscription.submit(e)}participateCongress(e){return this.congressApi.participate(e)}getCongressSubmissionsQuery(e,t){return this.congressApi.getSubmissions(e,{fields:"*",where:{"result.value":t},include:{relation:"profile",scope:{include:"user"}}})}getCongressSubmissionsFilter(e,t){return this.congressApi.getSubmissions(e,t)}getSubmissionsFilter(e){return this.congressSubmission.find(e)}createSubscription(e){return this.congressSubscription.create(e)}acceptSubscription(e,t){return this.congressApi.acceptSubscriptions(e,t)}cancelSubscription(e,t){return this.congressApi.cancelSubscriptions(e,t)}findSubscriptionByCongress(e,t){return this.congressSubscription.find({where:{eventId:e,userId:t},fields:["created","result","submitted_date","request_doc","details","ecm"]})}findSubscriptions(){return this.congressSubscription.find({where:{or:[{status:"submitted"},{status:"canceled"}]},include:[{relation:"payments",scope:{fields:"*"}},{relation:"event",scope:{fields:["name","date_start","date_end","webinar","public_name","address","fad"]}},{relation:"user",scope:{fields:["email","name","address","registry"],include:["associate","instituteMappings"]}}],fields:["submitted_date","details","request_doc","ecm","request_notes"]})}
1getProfiles(){return this.congressProfile.find({fields:["fields"],include:[{relation:"user",scope:{fields:["email","name"]}},{relation:"assignments",scope:{include:{relation:"submission",scope:{fields:["title","field","total_score","congressId","scores"]}}}}]})}getCongressProfiles(e){return this.congressProfile.find({fields:["fields"],include:[{relation:"user",scope:{fields:["email","name"]}},{relation:"assignments",scope:{where:{congressId:e},include:{relation:"submission",scope:{fields:["title","field","total_score","congressId","scores"]}}}}]})}getAllProfiles(){return this.congressProfile.find({include:[{relation:"user",scope:{fields:["email","name","address","registry"],include:"associate"}},{relation:"accesses",scope:{include:"congress",fields:"updated"}},{relation:"subscriptions",scope:{where:{status:{neq:"accepted"}},fields:["submitted_date","details","request_doc","ecm"],include:"event"}}]})}profileDashboard(e,t){return this.congressProfile.getByIdDashboard(e,{include:[{relation:"submissions",scope:{where:{congressId:t},fields:["status","congressId","result"]}},{relation:"subscriptions",scope:{fields:["eventId"],include:"event"}},{relation:"assignments",scope:{where:{congressId:t}}},{relation:"reviews",scope:{where:{congressId:t}}}]})}demoProfileDashboard(e){return this.congressProfile.getSubscriptions(e,{include:{relation:"event",scope:{fields:"*"}}})}demoDashboard(e){return this.userApi.getCongressSubscriptions(e,{include:{relation:"event",scope:{fields:["picture"]}}})}getProfileHistory(e){return this.congressProfile.findById(e,{include:[{relation:"submissions",scope:{fields:["status","congressId","result"]}},{relation:"subscriptions",scope:{fields:"*",include:{relation:"event",scope:{fields:["abstract_mode"]}}}},{relation:"accesses",scope:{include:["submissions","congress"]}},{relation:"reviews"}]})}getProfileCongressDashboard(e,t){return this.congressProfile.findById(e,{include:[{relation:"submissions",scope:{where:{congressId:t},fields:["status","congressId"]}},{relation:"assignments",scope:{where:{congressId:t}}},{relation:"reviews",scope:{where:{congressId:t}}},{relation:"accesses",scope:{where:{congressId:t}}},{relation:"subscriptions",scope:{where:{eventId:t},fields:"*",include:["payments","surveySubmissions","examSubmissions","recordings"]}}]})}patchProfile(e,t){return this.congressProfile.patchAttributes(e,t)}findProfileByEmail(e){return this.userApi.find({where:{email:e},include:"profile"})}postCongressProfile(e){return this.userApi.createCongressProfile(e,{})}profileGetSubmissions(e,t){return this.congressProfile.getSubmissions(e,{include:"congress",where:{congressId:t},fields:["status","updated"]})}profileGetSubmissionsFull(e,t){return this.congressProfile.getSubmissions(e,{where:{congressId:t},fields:["progressive_number","status","field","scores","total_score","congressId"],include:[{relation:"profile",scope:{fields:["userId"],include:"user"}},{relation:"assignments",scope:{fields:["congressId"],include:[{relation:"profile",scope:{fields:["userId"],include:["user"]}},{relation:"review"}]}}]})}profileGetFull(e,t){return this.congressProfile.findById(e,{fields:["fields","userId"],include:[{relation:"user",scope:{fields:["name","email","registry"]}},{relation:"assignments",scope:{fields:["congressId"],include:{relation:"submission",scope:{fields:["scores","title"]}}}}]})}getProfilesQuery(e,t,n){return this.congressApi.getProfiles(e,t,n)}profileCountSubmissions(e,t){return this.congressProfile.countSubmissions(e,{include:"congress",where:{congressId:t}})}profileGetAssignments(e,t){return this.congressProfile.getAssignments(e,{where:{congressId:t},include:[{relation:"review",scope:{fields:["status"]}},{relation:"submission",scope:{fields:["field","title"]}}]})}postSubmission(e,t){return this.congressAccess.createSubmissions(e,t)}getAccessSubmission(e,t){return this.congressAccess.findByIdSubmissions(e,t)}confirmAccess(e){return this.congressAccess.accept(e)}cancelAccess(e){return this.congressAccess.cancel(e)}getPendingAccesses(){return this.congressAccess.find({where:{or:[{status:"pending"},{status:"canceled"}]},include:[{relation:"congress",scope:{fields:["name","date_start","date_end","webinar","public_name","address"]}},{relation:"profile",scope:{include:{relation:"user",scope:{include:"associate"}}}}],fields:["updated"]})}getSubmissions(e){return this.congressSubmission.find({where:{congressId:e},fields:"*",include:[{relation:"profile",scope:{fields:["userId"],include:{relation:"user",scope:{fields:"*",include:"associate"}}}},{relation:"assignments",scope:{include:[{relation:"profile",scope:{fields:["userId"],include:["user"]}},{relation:"review"}]}}]})}getSubmissionsExport(e){return this.congressSubmission.find({where:{congressId:e},fields:["progressive_number","status","field","scores","total_score","authors","congressId","result","profileId"],include:[{relation:"profile",scope:{fields:["userId"],include:{relation:"user",scope:{fields:"*"}}}}]})}getSubmission(e){return this.congressSubmission.findById(e,{fields:["authors","total_score","content","result","status","progressive_number","updated"],include:[{relation:"profile",scope:{fields:["userId"],include:{relation:"user"}}},{relation:"reviews"}]})}getSubmissionsByIds(e){return this.congressSubmission.find({where:{id:{inq:e}},fields:["authors","total_score","content","result","status","progressive_number","updated"],include:[{relation:"profile",scope:{fields:["userId"],include:{relation:"user"}}},{relation:"reviews"}]})}patchSubmission(e,t){return this.congressSubmission.patchAttributes(e,t)}getSubmissionReviews(e){return this.congressSubmission.getReviews(e,{include:{relation:"profile",scope:{fields:["userId"],include:{relation:"user"}}}})}confirmAbstract(e){return this.congressSubmission.confirm(e)}postResult(e,t){return this.congressSubmission.setresult(e,t)}createAssignment(e){return this.congressAssignment.create(e)}postReview(e,t){return this.congressAssignment.createReview(e,t)}confirmReview(e){return this.congressReview.confirm(e)}getAssignmentReview(e){return this.congressAssignment.findById(e,{include:[{relation:"congress",scope:{fields:["reviews_end"]}},{relation:"submission",scope:{fields:["content"]}},"review"]})}deleteAssignment(e){return this.congressAssignment.deleteById(e)}deleteAbstract(e){return this.congressSubmission.deleteById(e)}getEvent(e){return this.congressEvent.findById(e,{fields:["room","moderators"]})}postEvent(e){return this.congressEvent.create(e)}patchEvent(e,t){return this.congressEvent.patchAttributes(e,t)}deleteEvent(e){return this.congressEvent.deleteById(e)}findCongressEvent(e){return this.congressEvent.find(e)}getTemplates(){return this.template.getCongress()}postTemplate(e){return this.template.createCongress(e)}patchTemplate(e,t){return this.template.patchAttributes(e,t)}addCongressToCalendar(e){}findCourses(){return this.courseApi.find({fields:"*"})}courseParticipate(e){return this.courseApi.subscribe(e)}addToCalendar(e){return this.courseApi.addToCalendar(e)}courseAddToCalendar(e){return this.courseApi.addToCalendar(e)}findAccessByCourse(e,t){return this.courseAccess.find({where:{eventId:t,userId:e},fields:["details","created","result","submitted_date","request_doc"]})}findCourseById(e){return this.courseApi.findById(e,{fields:"*",include:{relation:"subscriptions",scope:{fields:["details","created","result","submitted_date","request_doc"],include:{relation:"user",scope:{include:"associate"}}}}})}courseMaterialCount(e){return this.courseApi.countMaterials(e)}participateCourse(e){return this.courseApi.subscribe(e)}patchAccess(e,t){return this.courseAccess.patchAttributes(e,t)}submitSubscription(e){return this.courseAccess.submit(e)}getLinkedEvents(e){return this.congressApi.linkedEventsLinks(e,{include:{relation:"linked",scope:{include:"subscriptions"}}})}congressAttended(e,t,n){return this.congressSubscription.attended({eventId:e,id:t},n)}cancelCongressSubscription(e){return this.congressSubscription.deleteById(e)}congressEventPassed(e,t,n){return this.congressSubscription.passed({eventId:e,id:t},n)}congressEventFailed(e,t){return this.congressSubscription.failed({eventId:e,id:t})}}return e.\u0275fac=function(t){return new(t||e)(s.gc(i.b),s.gc(i.e),s.gc(i.a),s.gc(i.i),s.gc(i.h),s.gc(i.g),s.gc(i.c),s.gc(i.A),s.gc(i.y),s.gc(i.l),s.gc(i.m),s.gc(i.j))},e.\u0275prov=s.Pb({token:e,factory:e.\u0275fac}),e})()},"+5j6":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getEvent(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventThreadComments/:id/event",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getThread(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventThreadComments/:id/thread",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventThreadComments/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventThreadComments/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}uploadattachments(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventThreadComments/:id/upload/attachments";return this.request("POST",n,{id:e},{},{},null,t)}downloadattachments(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventThreadComments/:id/attachments/:filename";return this.request("GET",i,{id:e,filename:t},{},{},null,n)}getModelName(){return"SimiEventThreadComment"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},"+X0y":function(e,t){var n={"":!0,up:!0};function i(e){return"number"==typeof e&&e>=0&&e<=100}e.exports=function(){var e=100,t=3,r=0,s=100,o=0,a=100,c="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!i(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return s},set:function(e){if(!i(e))throw new Error("RegionAnchorX must be between 0 and 100.");s=e}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(e){if(!i(e))throw new Error("RegionAnchorY must be between 0 and 100.");r=e}},viewportAnchorY:{enumerable:!0,get:function(){return a}
1,set:function(e){if(!i(e))throw new Error("ViewportAnchorY must be between 0 and 100.");a=e}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(e){if(!i(e))throw new Error("ViewportAnchorX must be between 0 and 100.");o=e}},scroll:{enumerable:!0,get:function(){return c},set:function(e){var t=function(e){return"string"==typeof e&&!!n[e.toLowerCase()]&&e.toLowerCase()}(e);!1===t?console.warn("Scroll: an invalid or illegal string was specified."):c=t}}})}},"+tEU":function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiElectionCandidate"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiElectionCandidate",plural:"SimiElectionCandidates",path:"SimiElectionCandidates",idName:"id",properties:{year:{name:"year",type:"number"},electionId:{name:"electionId",type:"any"},candidateId:{name:"candidateId",type:"any"},presentation:{name:"presentation",type:"any"},data:{name:"data",type:"any"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{election:{name:"election",type:"SimiElection",model:"SimiElection",relationType:"belongsTo",keyFrom:"electionId",keyTo:"id"},candidate:{name:"candidate",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"candidateId",keyTo:"id"}}}}}},"+z1p":function(e,t,n){!function(e){const t=e.en=e.en||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 of %1","Block quote":"Block quote",Bold:"Bold","Bulleted List":"Bulleted List",Cancel:"Cancel","Cannot upload file:":"Cannot upload file:","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading",Column:"Column","Could not insert image at the current position.":"Could not insert image at the current position.","Could not obtain resized image URL.":"Could not obtain resized image URL.","Decrease indent":"Decrease indent","Delete column":"Delete column","Delete row":"Delete row",Downloadable:"Downloadable","Dropdown toolbar":"Dropdown toolbar","Edit link":"Edit link","Editor toolbar":"Editor toolbar","Enter image caption":"Enter image caption","Full size image":"Full size image","Header column":"Header column","Header row":"Header row",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4","Heading 5":"Heading 5","Heading 6":"Heading 6","Image toolbar":"Image toolbar","image widget":"image widget","Increase indent":"Increase indent","Insert column left":"Insert column left","Insert column right":"Insert column right","Insert image":"Insert image","Insert image or file":"Insert image or file","Insert media":"Insert media","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert row above":"Insert row above","Insert row below":"Insert row below","Insert table":"Insert table","Inserting image failed":"Inserting image failed",Italic:"Italic","Left aligned image":"Left aligned image",Link:"Link","Link URL":"Link URL","Media URL":"Media URL","media widget":"media widget","Merge cell down":"Merge cell down","Merge cell left":"Merge cell left","Merge cell right":"Merge cell right","Merge cell up":"Merge cell up","Merge cells":"Merge cells",Next:"Next","Numbered List":"Numbered List","Open in a new tab":"Open in a new tab","Open link in new tab":"Open link in new tab",Paragraph:"Paragraph","Paste the media URL in the input.":"Paste the media URL in the input.",Previous:"Previous",Redo:"Redo","Rich Text Editor":"Rich Text Editor","Rich Text Editor, %0":"Rich Text Editor, %0","Right aligned image":"Right aligned image",Row:"Row",Save:"Save","Select all":"Select all","Select column":"Select column","Select row":"Select row","Selecting resized image failed":"Selecting resized image failed","Show more items":"Show more items","Side image":"Side image","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically","Table toolbar":"Table toolbar","Text alternative":"Text alternative","The URL must not be empty.":"The URL must not be empty.","This link has no URL":"This link has no URL","This media URL is not supported.":"This media URL is not supported.","Tip: Paste the URL into the content to embed faster.":"Tip: Paste the URL into the content to embed faster.",
1Undo:"Undo",Unlink:"Unlink","Upload failed":"Upload failed","Upload in progress":"Upload in progress","Widget toolbar":"Widget toolbar"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),window,e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,(function(t){return e[t]}).bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=96)}([function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return r});class i extends Error{constructor(e,t,n){e=r(e),n&&(e+=" "+JSON.stringify(n)),super(e),this.name="CKEditorError",this.context=t,this.data=n}is(e){return"CKEditorError"===e}static rethrowUnexpectedError(e,t){if(e.is&&e.is("CKEditorError"))throw e;const n=new i(e.message,t);throw n.stack=e.stack,n}}function r(e){const t=e.match(/^([^:]+):/);return t?e+` Read more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html#error-${t[1]}\n`:e}},function(e,t,n){"use strict";var i,r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function o(e){for(var t=-1,n=0;n<s.length;n++)if(s[n].identifier===e){t=n;break}return t}function a(e,t){for(var n={},i=[],r=0;r<e.length;r++){var a=e[r],c=t.base?a[0]+t.base:a[0],l=n[c]||0,u="".concat(c," ").concat(l);n[c]=l+1;var d=o(u),h={css:a[1],media:a[2],sourceMap:a[3]};-1!==d?(s[d].references++,s[d].updater(h)):s.push({identifier:u,updater:g(h,t),references:1}),i.push(u)}return i}function c(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var s=n.nc;s&&(i.nonce=s)}
1if(Object.keys(i).forEach(function(e){t.setAttribute(e,i[e])}),"function"==typeof e.insert)e.insert(t);else{var o=r(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}return t}var l,u=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function d(e,t,n,i){var r=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=u(t,r);else{var s=document.createTextNode(r),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(s,o[t]):e.appendChild(s)}}function h(e,t,n){var i=n.css,r=n.media,s=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),s&&btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var p=null,f=0;function g(e,t){var n,i,r;if(t.singleton){var s=f++;n=p||(p=c(t)),i=d.bind(null,n,s,!1),r=d.bind(null,n,s,!0)}else n=c(t),i=h.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i));var n=a(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var r=o(n[i]);s[r].references--}for(var c=a(e,t),l=0;l<n.length;l++){var u=o(n[l]);0===s[u].references&&(s[u].updater(),s.splice(u,1))}n=c}}}},,function(e,t,n){"use strict";var i=n(7),r="object"==typeof self&&self&&self.Object===Object&&self,s=i.a||r||Function("return this")();t.a=s},function(e,n,i){"use strict";(function(e){var r=i(3),s=i(12),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,c=a&&a.exports===o?r.a.Buffer:void 0;n.a=(c?c.isBuffer:void 0)||s.a}).call(this,i(9)(e))},function(e,n,i){"use strict";(function(e){var r=i(7),s=t&&!t.nodeType&&t,o=s&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===s&&r.a.process,c=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();n.a=c}).call(this,i(9)(e))},function(e,t,n){"use strict";(function(e){var t=n(0);const i="object"==typeof window?window:e;if(i.CKEDITOR_VERSION)throw new t.b("ckeditor-duplicated-modules: Some CKEditor 5 modules are duplicated.",null);i.CKEDITOR_VERSION="21.0.0"}).call(this,n(10))},function(e,t,n){"use strict";(function(e){t.a="object"==typeof e&&e&&e.Object===Object&&e}).call(this,n(10))},function(e,n,i){"use strict";(function(e){var r=i(3),s=t&&!t.nodeType&&t,o=s&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===s?r.a.Buffer:void 0,c=a?a.allocUnsafe:void 0;n.a=function(e,t){if(t)return e.slice();var n=e.length,i=c?c(n):new e.constructor(n);return e.copy(i),i}}).call(this,i(9)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var i=n(1),r=n(71);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t,n){"use strict";t.a=function(){return!1}},function(e,t,n){var i=n(1),r=n(14);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-placeholder:before,.ck .ck-placeholder:before{content:attr(data-placeholder);pointer-events:none}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-placeholder:before,.ck .ck-placeholder:before{cursor:text;color:var(--ck-color-engine-placeholder-text)}"},function(e,t,n){var i=n(1),r=n(16);
1"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck-hidden{display:none!important}.ck.ck-reset,.ck.ck-reset_all,.ck.ck-reset_all *{box-sizing:border-box;width:auto;height:auto;position:static}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999);--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#c4c4c4;--ck-color-base-action:#61b045;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#198cf0;--ck-color-base-active-focus:#0e7fe1;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:208,79%,51%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#bcdefb;--ck-color-focus-disabled-shadow:rgba(119,186,248,0.3);--ck-color-focus-error-shadow:rgba(255,64,31,0.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,0.15);--ck-color-shadow-drop-active:rgba(0,0,0,0.2);--ck-color-shadow-inner:rgba(0,0,0,0.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#e6e6e6;--ck-color-button-default-active-background:#d9d9d9;--ck-color-button-default-active-shadow:#bfbfbf;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#dedede;--ck-color-button-on-hover-background:#c4c4c4;--ck-color-button-on-active-background:#bababa;--ck-color-button-on-active-shadow:#a1a1a1;--ck-color-button-on-disabled-background:#dedede;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#579e3d;--ck-color-button-action-active-background:#53973b;--ck-color-button-action-active-shadow:#498433;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#b0b0b0;--ck-color-switch-button-off-hover-background:#a3a3a3;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#579e3d;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,0.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:#c7c7c7;--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:#c7c7c7;--ck-color-input-disabled-text:#5c5c5c;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-base-active);--ck-color-list-button-on-background-focus:var(--ck-color-base-active-focus);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-foreground);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,177,255,0.1);--ck-color-link-fake-selection:rgba(31,177,255,0.3);--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}
1.ck.ck-reset,.ck.ck-reset_all,.ck.ck-reset_all *{margin:0;padding:0;border:0;background:transparent;text-decoration:none;vertical-align:middle;transition:none;word-wrap:break-word}.ck.ck-reset_all,.ck.ck-reset_all *{border-collapse:collapse;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);color:var(--ck-color-text);text-align:left;white-space:nowrap;cursor:auto;float:none}.ck.ck-reset_all .ck-rtl *{text-align:right}.ck.ck-reset_all iframe{vertical-align:inherit}.ck.ck-reset_all textarea{white-space:pre-wrap}.ck.ck-reset_all input[type=password],.ck.ck-reset_all input[type=text],.ck.ck-reset_all textarea{cursor:text}.ck.ck-reset_all input[type=password][disabled],.ck.ck-reset_all input[type=text][disabled],.ck.ck-reset_all textarea[disabled]{cursor:default}.ck.ck-reset_all fieldset{padding:10px;border:2px groove #dfdee3}.ck.ck-reset_all button::-moz-focus-inner{padding:0;border:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}"},function(e,t,n){var i=n(1),r=n(18);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-focused{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0}.ck.ck-editor__editable_inline{overflow:auto;padding:0 var(--ck-spacing-standard);border:1px solid transparent}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-base-foreground)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-base-foreground)}"},function(e,t,n){var i=n(1),r=n(20);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}"},function(e,t,n){var i=n(1),r=n(22);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{z-index:var(--ck-z-modal);position:fixed;top:0}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{top:auto;position:absolute}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{box-shadow:var(--ck-drop-shadow),0 0;border-width:0 1px 1px;border-top-left-radius:0;border-top-right-radius:0}"},function(e,t,n){var i=n(1),r=n(24);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on .ck-tooltip{display:none}.ck.ck-dropdown .ck-dropdown__panel{-webkit-backface-visibility:hidden;display:none;z-index:var(--ck-z-modal);position:absolute}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{top:100%;bottom:auto}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left
1:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}:root{--ck-dropdown-arrow-size:calc(0.5*var(--ck-icon-size))}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{width:7em;overflow:hidden;text-overflow:ellipsis}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{box-shadow:var(--ck-drop-shadow),0 0;background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}"},function(e,t,n){var i=n(1),r=n(26);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{width:var(--ck-icon-size);height:var(--ck-icon-size);font-size:.8333350694em;will-change:transform}.ck.ck-icon,.ck.ck-icon *{color:inherit;cursor:inherit}.ck.ck-icon :not([fill]){fill:currentColor}"},function(e,t,n){var i=n(1),r=n(28);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports='.ck.ck-tooltip,.ck.ck-tooltip .ck-tooltip__text:after{position:absolute;pointer-events:none;-webkit-backface-visibility:hidden}.ck.ck-tooltip{visibility:hidden;opacity:0;display:none;z-index:var(--ck-z-modal)}.ck.ck-tooltip .ck-tooltip__text{display:inline-block}.ck.ck-tooltip .ck-tooltip__text:after{content:"";width:0;height:0}:root{--ck-tooltip-arrow-size:5px}.ck.ck-tooltip{left:50%;top:0;transition:opacity .2s ease-in-out .2s}.ck.ck-tooltip .ck-tooltip__text{border-radius:0}.ck-rounded-corners .ck.ck-tooltip .ck-tooltip__text,.ck.ck-tooltip .ck-tooltip__text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-tooltip .ck-tooltip__text{font-size:.9em;line-height:1.5;color:var(--ck-color-tooltip-text);padding:var(--ck-spacing-small) var(--ck-spacing-medium);background:var(--ck-color-tooltip-background);position:relative;left:-50%}.ck.ck-tooltip .ck-tooltip__text:after{transition:opacity .2s ease-in-out .2s;border-style:solid;left:50%}.ck.ck-tooltip.ck-tooltip_s{bottom:calc(-1*var(--ck-tooltip-arrow-size));transform:translateY(100%)}.ck.ck-tooltip.ck-tooltip_s .ck-tooltip__text:after{top:calc(-1*var(--ck-tooltip-arrow-size));transform:translateX(-50%);border-left-color:transparent;border-bottom-color:var(--ck-color-tooltip-background);border-right-color:transparent;border-top-color:transparent;border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:var(--ck-tooltip-arrow-size);border-right-width:var(--ck-tooltip-arrow-size);border-top-width:0}.ck.ck-tooltip.ck-tooltip_n{top:calc(-1*var(--ck-tooltip-arrow-size));transform:translateY(-100%)}.ck.ck-tooltip.ck-tooltip_n .ck-tooltip__text:after{bottom:calc(-1*var(--ck-tooltip-arrow-size));transform:translateX(-50%);border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;border-top-color:var(--ck-color-tooltip-background);border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:0;border-right-width:var(--ck-tooltip-arrow-size);border-top-width:var(--ck-tooltip-arrow-size)}'},function(e,t,n){var i=n(1),r=n(30);
1"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-button,a.ck.ck-button{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:block}@media (hover:none){.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:none}}.ck.ck-button,a.ck.ck-button{position:relative;display:inline-flex;align-items:center;justify-content:left}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button:hover .ck-tooltip,a.ck.ck-button:hover .ck-tooltip{visibility:visible;opacity:1}.ck.ck-button:focus:not(:hover) .ck-tooltip,a.ck.ck-button:focus:not(:hover) .ck-tooltip{display:none}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-default-active-shadow)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{white-space:nowrap;cursor:default;vertical-align:middle;padding:var(--ck-spacing-tiny);text-align:center;min-width:var(--ck-ui-component-min-height);min-height:var(--ck-ui-component-min-height);line-height:1;font-size:inherit;border:1px solid transparent;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;-webkit-appearance:none}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{font-size:inherit;font-weight:inherit;color:inherit;cursor:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__icon{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(-1*var(--ck-spacing-small));margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-right:calc(-1*var(--ck-spacing-small));margin-left:var(--ck-spacing-small)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-on-active-shadow)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-action-active-shadow)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}"},function(e,t,n){var i=n(1),r=n(32);
1"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-list{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:column}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{list-style-type:none;background:var(--ck-color-list-background)}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{min-height:unset;width:100%;text-align:left;border-radius:0;padding:calc(0.2*var(--ck-line-height-base)*var(--ck-font-size-base)) calc(0.4*var(--ck-line-height-base)*var(--ck-font-size-base))}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(1.2*var(--ck-line-height-base)*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck.ck-list__separator{height:1px;width:100%;background:var(--ck-color-base-border)}"},function(e,t,n){var i=n(1),r=n(34);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:1.0769230769em;--ck-switch-button-toggle-spacing:1px;--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2*var(--ck-switch-button-toggle-spacing))}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(2*var(--ck-spacing-large))}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(2*var(--ck-spacing-large))}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{transition:background .4s ease;width:var(--ck-switch-button-toggle-width);background:var(--ck-color-switch-button-off-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(0.5*var(--ck-border-radius))}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{margin:var(--ck-switch-button-toggle-spacing);width:var(--ck-switch-button-toggle-inner-size);height:var(--ck-switch-button-toggle-inner-size);background:var(--ck-color-switch-button-inner-background);transition:all .3s ease}
1.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var(--ck-switch-button-translation))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(-1*var(--ck-switch-button-translation)))}"},function(e,t,n){var i=n(1),r=n(36);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-toolbar-dropdown .ck.ck-toolbar .ck.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar-dropdown .ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}"},function(e,t,n){var i=n(1),r=n(38);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}"},function(e,t,n){var i=n(1),r=n(40);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-toolbar{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-flow:row nowrap;align-items:center}.ck.ck-toolbar>.ck-toolbar__items{display:flex;flex-flow:row wrap;align-items:center;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);padding:0 var(--ck-spacing-small);border:1px solid var(--ck-color-toolbar-border)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;width:1px;min-width:1px;background:var(--ck-color-toolbar-border);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items>*{margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>*,.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{width:100%;margin:0;border-radius:0;border:0}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-right:var(--ck-spacing-small)}"},function(e,t,n){var i=n(1),r=n(42);
1"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}"},function(e,t,n){var i=n(1),r=n(44);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck-content blockquote{overflow:hidden;padding-right:1.5em;padding-left:1.5em;margin-left:0;margin-right:0;font-style:italic;border-left:5px solid #ccc}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}"},function(e,t,n){var i=n(1),r=n(46);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{width:0;height:0;border-style:solid}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:var(--ck-balloon-arrow-height);border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:0}.ck.ck-balloon-panel[class*=arrow_n]:before{border-bottom-color:var(--ck-color-panel-border)}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-color:transparent;border-right-color:transparent;border-top-color:transparent}.ck.ck-balloon-panel[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background);margin-top:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:0;border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-top-color:var(--ck-color-panel-border)}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent}.ck.ck-balloon-panel[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background);margin-bottom:var(--ck-balloon-arrow-offset)}
1.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(-1*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{left:50%;margin-left:calc(-1*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{left:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{right:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{right:25%;margin-right:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{left:25%;margin-left:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}
1.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{right:25%;margin-right:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}'},function(e,t,n){var i=n(1),r=n(48);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{height:100%;border-right:1px solid var(--ck-color-base-text);margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}"},function(e,t,n){var i=n(1),r=n(50);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports='.ck .ck-widget .ck-widget__type-around__button{display:block;position:absolute;overflow:hidden;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{position:absolute;top:50%;left:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{top:calc(-0.5*var(--ck-widget-outline-thickness));left:min(10%,30px);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(-0.5*var(--ck-widget-outline-thickness));right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;position:absolute;top:1px;left:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;position:absolute;left:0;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(-1*var(--ck-widget-outline-thickness));right:calc(-1*var(--ck-widget-outline-thickness))}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{top:calc(-1*var(--ck-widget-outline-thickness) - 1px);
1display:block}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(-1*var(--ck-widget-outline-thickness) - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{width:var(--ck-widget-type-around-button-size);height:var(--ck-widget-type-around-button-size);background:var(--ck-color-widget-type-around-button);border-radius:100px;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);opacity:0;pointer-events:none}.ck .ck-widget .ck-widget__type-around__button svg{width:10px;height:8px;transform:translate(-50%,-50%);transition:transform .5s ease;margin-top:1px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{width:calc(var(--ck-widget-type-around-button-size) - 2px);height:calc(var(--ck-widget-type-around-button-size) - 2px);border-radius:100px;background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3))}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{pointer-events:none;height:1px;animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;outline:1px solid hsla(0,0%,100%,.5);background:var(--ck-color-base-text)}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}
1.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer{opacity:0}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}
1to{opacity:1}}'},function(e,t,n){var i=n(1),r=n(52);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-resizer-size:10px;--ck-resizer-border-width:1px;--ck-resizer-border-radius:2px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-tooltip-offset:10px;--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover .ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);color:var(--ck-color-resizer-tooltip-text);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);font-size:var(--ck-font-size-tiny);display:block;padding:var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{top:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{top:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-width:var(--ck-widget-outline-thickness);outline-style:solid;outline-color:transparent;transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;background-color:var(--ck-color-widget-editable-focus-background)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{padding:4px;box-sizing:border-box;background-color:transparent;opacity:0;transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;transform:translateY(-100%);left:calc(0px - var(--ck-widget-outline-thickness))}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{width:var(--ck-widget-handler-icon-size);height:var(--ck-widget-handler-icon-size);color:var(--ck-color-widget-drag-handler-icon-color)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover .ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover .ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-focus-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle .ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}"},function(e,t,n){var i=n(1),r=n(54);
1"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view>.ck.ck-label{width:100%;text-overflow:ellipsis;overflow:hidden}"},function(e,t,n){var i=n(1),r=n(56);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=":root{--ck-input-text-width:18em}.ck.ck-input-text{border-radius:0}.ck-rounded-corners .ck.ck-input-text,.ck.ck-input-text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-text{box-shadow:var(--ck-inner-shadow),0 0;background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);min-width:var(--ck-input-text-width);min-height:var(--ck-ui-component-min-height);transition:box-shadow .2s ease-in-out,border .2s ease-in-out}.ck.ck-input-text:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),var(--ck-inner-shadow)}.ck.ck-input-text[readonly]{border:1px solid var(--ck-color-input-disabled-border);background:var(--ck-color-input-disabled-background);color:var(--ck-color-input-disabled-text)}.ck.ck-input-text[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),var(--ck-inner-shadow)}.ck.ck-input-text.ck-error{border-color:var(--ck-color-input-error-border);animation:ck-text-input-shake .3s ease both}.ck.ck-input-text.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),var(--ck-inner-shadow)}@keyframes ck-text-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}"},function(e,t,n){var i=n(1),r=n(58);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}.ck.ck-text-alternative-form{padding:var(--ck-spacing-standard)}.ck.ck-text-alternative-form:focus{outline:none}[dir=ltr] .ck.ck-text-alternative-form>:not(:first-child),[dir=rtl] .ck.ck-text-alternative-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-text-alternative-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-text-alternative-form .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-text-alternative-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-text-alternative-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-text-alternative-form .ck-button{margin-left:0}[dir=ltr] .ck.ck-text-alternative-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-text-alternative-form .ck-button{margin-left:0}[dir=rtl] .ck.ck-text-alternative-form .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}"},function(e,t,n){var i=n(1),r=n(60);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck .ck-balloon-rotator__navigation{dis
1play:flex;align-items:center;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-small)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}"},function(e,t,n){var i=n(1),r=n(62);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);width:100%;height:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}"},function(e,t,n){var i=n(1),r=n(64);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck-content .image{display:table;clear:both;text-align:center;margin:1em auto}.ck-content .image img{display:block;margin:0 auto;max-width:100%;min-width:50px}"},function(e,t,n){var i=n(1),r=n(66);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-editor__editable .image{position:relative}.ck.ck-editor__editable .image .ck-progress-bar{position:absolute;top:0;left:0}.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar{height:2px;width:0;background:var(--ck-color-upload-bar-background);transition:width .1s}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}"},function(e,t,n){var i=n(1),r=n(68);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports='.ck-image-upload-complete-icon{display:block;position:absolute;top:10px;right:10px;border-radius:50%}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20px;--ck-image-upload-icon-width:2px}.ck-image-upload-complete-icon{width:var(--ck-image-upload-icon-size);height:var(--ck-image-upload-icon-size);opacity:0;background:var(--ck-color-image-upload-icon-background);animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;animation-fill-mode:forwards,forwards;animation-duration:.5s,.5s;font-size:var(--ck-image-upload-icon-size);animation-delay:0ms,3s}.ck-image-upload-complete-icon:after{left:25%;top:50%;opacity:0;height:0;width:0;
1transform:scaleX(-1) rotate(135deg);transform-origin:left top;border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);animation-name:ck-upload-complete-icon-check;animation-duration:.5s;animation-delay:.5s;animation-fill-mode:forwards;box-sizing:border-box}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{opacity:1;width:0;height:0}33%{width:.3em;height:0}to{opacity:1;width:.3em;height:.45em}}'},function(e,t,n){var i=n(1),r=n(70);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports='.ck .ck-upload-placeholder-loader{position:absolute;display:flex;align-items:center;justify-content:center;top:0;left:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px}.ck .ck-image-upload-placeholder{width:100%;margin:0}.ck .ck-upload-placeholder-loader{width:100%;height:100%}.ck .ck-upload-placeholder-loader:before{width:var(--ck-upload-placeholder-loader-size);height:var(--ck-upload-placeholder-loader-size);border-radius:50%;border-top:3px solid var(--ck-color-upload-placeholder-loader);border-right:2px solid transparent;animation:ck-upload-placeholder-loader 1s linear infinite}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}'},function(e,t){e.exports=".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}"},function(e,t,n){var i=n(1),r=n(73);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck-content .image>figcaption{display:table-caption;caption-side:bottom;word-break:break-word;color:#333;background-color:#f7f7f7;padding:.6em;font-size:.75em;outline-offset:-1px}"},function(e,t,n){var i=n(1),r=n(75);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=":root{--ck-image-style-spacing:1.5em}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}"},function(e,t,n){var i=n(1),r=n(77);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form{padding:var(--ck-spacing-standard)}.ck.ck-link-form:focus{outline:none}[dir=ltr] .ck.ck-link-form>:not(:first-child),[dir=rtl] .ck.ck-link-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-link-form .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form .ck-button{margin-left:0}[dir=ltr] .ck.ck-link-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-link-form .ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}.ck.ck-link-form_layout-vertical{padding:0;min-width:var(--ck-input-text-width)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical .ck-button{padding:var(--ck-spacing-standard);margin:0;border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border);width:50%}[dir=ltr] .ck.ck-link-form_layout-vertical .ck-button{margin-left:0}[dir=ltr] .ck.ck-link-form_layout-vertical .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin-left:0}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{border:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}"},function(e,t,n){var i=n(1),r=n(79);
1"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions{padding:var(--ck-spacing-standard)}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{padding:0 var(--ck-spacing-medium);color:var(--ck-color-link-default);text-overflow:ellipsis;cursor:pointer;max-width:var(--ck-input-text-width);min-width:3em;text-align:center}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}.ck.ck-link-actions:focus{outline:none}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{min-width:0;max-width:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview):first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview):last-of-type{border-right:1px solid var(--ck-color-base-border)}}"},function(e,t,n){var i=n(1),r=n(81);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports='.ck-media__wrapper .ck-media__placeholder{display:flex;flex-direction:column;align-items:center}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:block}@media (hover:none){.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:none}}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url:hover .ck-tooltip{visibility:visible;opacity:1}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{overflow:hidden;display:block}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{padding:calc(3*var(--ck-spacing-standard));background:var(--ck-color-base-foreground)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{min-width:var(--ck-media-embed-placeholder-icon-size);height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);background-position:50%;background-size:cover}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{width:100%;height:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);white-space:nowrap;text-align:center;font-style:italic;text-overflow:ellipsis}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-width:300px;max-height:380px}.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMDAzLjc4IDEuNjFoNDkuNjIxYzEuNjk0IDAgMy4xOS0uNzk4IDQuMTQ2LTIuMDM3eiIgZmlsbD0iIzVjODhjNSIvPjxwYXRoIGQ9Ik0yMjYuNzQyIDIyMi45ODhjLTkuMjY2IDAtMTYuNzc3IDcuMTctMTYuNzc3IDE2LjAxNC4wMDcgMi43NjIuNjYzIDUuNDc0IDIuMDkzIDcuODc1LjQzLjcwMy44MyAxLjQwOCAxLjE5IDIuMTA3LjMzMy41MDIuNjUgMS4wMDUuOTUgMS41MDguMzQzLjQ3Ny42NzMuOTU3Ljk4OCAxLjQ0IDEuMzEgMS43NjkgMi41IDMuNTAyIDMuNjM3IDUuMTY4Ljc5MyAxLjI3NSAxLjY4MyAyLjY0IDIuNDY2IDMuOTkgMi4zNjMgNC4wOTQgNC4wMDcgOC4wOTIgNC42IDEzLjkxNHYuMDEyYy4xODIuNDEyLjUxNi42NjYuODc5LjY2Ny40MDMtLjAwMS43NjgtLjMxNC45My0uNzk5LjYwMy01Ljc1NiAyLjIzOC05LjcyOSA0LjU4NS0xMy43OTQuNzgyLTEuMzUgMS42NzMtMi43MTUgMi40NjUtMy45OSAxLjEzNy0xLjY2NiAyLjMyOC0zLjQgMy42MzgtNS4xNjkuMzE1LS40ODIuNjQ1LS45NjIuOTg4LTEuNDM5LjMtLjUwMy42MTctMS4wMDYuOTUtMS41MDguMzU5LS43Ljc2LTEuNDA0IDEuMTktMi4xMDcgMS40MjYtMi40MDIgMi01LjExNCAyLjAwNC03Ljg3NSAwLTguODQ0LTcuNTExLTE2LjAxNC0xNi43NzYtMTYuMDE0eiIgZmlsbD0iI2RkNGIzZSIg
1cGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48ZWxsaXBzZSByeT0iNS41NjQiIHJ4PSI1LjgyOCIgY3k9IjIzOS4wMDIiIGN4PSIyMjYuNzQyIiBmaWxsPSIjODAyZDI3IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0xOTAuMzAxIDIzNy4yODNjLTQuNjcgMC04LjQ1NyAzLjg1My04LjQ1NyA4LjYwNnMzLjc4NiA4LjYwNyA4LjQ1NyA4LjYwN2MzLjA0MyAwIDQuODA2LS45NTggNi4zMzctMi41MTYgMS41My0xLjU1NyAyLjA4Ny0zLjkxMyAyLjA4Ny02LjI5IDAtLjM2Mi0uMDIzLS43MjItLjA2NC0xLjA3OWgtOC4yNTd2My4wNDNoNC44NWMtLjE5Ny43NTktLjUzMSAxLjQ1LTEuMDU4IDEuOTg2LS45NDIuOTU4LTIuMDI4IDEuNTQ4LTMuOTAxIDEuNTQ4LTIuODc2IDAtNS4yMDgtMi4zNzItNS4yMDgtNS4yOTkgMC0yLjkyNiAyLjMzMi01LjI5OSA1LjIwOC01LjI5OSAxLjM5OSAwIDIuNjE4LjQwNyAzLjU4NCAxLjI5M2wyLjM4MS0yLjM4YzAtLjAwMi0uMDAzLS4wMDQtLjAwNC0uMDA1LTEuNTg4LTEuNTI0LTMuNjItMi4yMTUtNS45NTUtMi4yMTV6bTQuNDMgNS42NmwuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxNS4xODQgMjUxLjkyOWwtNy45OCA3Ljk3OSAyOC40NzcgMjguNDc1YTUuMjMzIDUuMjMzIDAgMDAuNDQ5LTIuMTIzdi0zMS4xNjVjLS40NjkuNjc1LS45MzQgMS4zNDktMS4zODIgMi4wMDUtLjc5MiAxLjI3NS0xLjY4MiAyLjY0LTIuNDY1IDMuOTktMi4zNDcgNC4wNjUtMy45ODIgOC4wMzgtNC41ODUgMTMuNzk0LS4xNjIuNDg1LS41MjcuNzk4LS45My43OTktLjM2My0uMDAxLS42OTctLjI1NS0uODc5LS42Njd2LS4wMTJjLS41OTMtNS44MjItMi4yMzctOS44Mi00LjYtMTMuOTE0LS43ODMtMS4zNS0xLjY3My0yLjcxNS0yLjQ2Ni0zLjk5LTEuMTM3LTEuNjY2LTIuMzI3LTMuNC0zLjYzNy01LjE2OWwtLjAwMi0uMDAzeiIgZmlsbD0iI2MzYzNjMyIvPjxwYXRoIGQ9Ik0yMTIuOTgzIDI0OC40OTVsLTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAwNS4yMzggNS4yMzhoMS4wMTVsMzUuNjY2LTM1LjY2NmExMzYuMjc1IDEzNi4yNzUgMCAwMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAwLS45ODktMS40NCAzNS4xMjcgMzUuMTI3IDAgMDAtLjk1LTEuNTA4Yy0uMDgzLS4xNjItLjE3Ni0uMzI2LS4yNjQtLjQ4OXoiIGZpbGw9IiNmZGRjNGYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxMS45OTggMjYxLjA4M2wtNi4xNTIgNi4xNTEgMjQuMjY0IDI0LjI2NGguNzgxYTUuMjI3IDUuMjI3IDAgMDA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuN
1Dg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OXptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OXoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzN6bTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1ek00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45I
1DIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIGZpbGw9IiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}'},function(e,t,n){var i=n(1),r=n(83);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-media-form{display:flex;align-items:flex-start;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}.ck.ck-media-form{padding:var(--ck-spacing-standard)}.ck.ck-media-form:focus{outline:none}[dir=ltr] .ck.ck-media-form>:not(:first-child),[dir=rtl] .ck.ck-media-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-media-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-media-form .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-media-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-media-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-media-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-media-form .ck-button{margin-left:0}[dir=ltr] .ck.ck-media-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-media-form .ck-button{margin-left:0}[dir=rtl] .ck.ck-media-form .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}"},function(e,t,n){var i=n(1),r=n(85);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck-content .media{clear:both;margin:1em 0;display:block;min-width:15em}"},function(e,t,n){var i=n(1),r=n(87);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=":root{--ck-color-table-focused-cell-background:rgba(158,207,250,0.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-table-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}"},function(e,t,n){var i=n(1),r=n(89);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button .ck-tooltip{display:none}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__action{border-top-right-radius:unset;border-bottom-right-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__action{border-top-left-radius:unset;border-bottom-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-radius:0}.ck-rounded-corners [dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow,[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:unset;border-bottom-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-top-right-radius:unset;border-bottom-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled){border-left-color:var(--ck-color-split-button-hover-border)}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled){border-right-color:var(--ck-color-split-button-hover-border)}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}"},function(e,t,n){var i=n(1),r=n(91);
1"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2);padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0}.ck .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{width:var(--ck-insert-table-dropdown-box-width);height:var(--ck-insert-table-dropdown-box-height);margin:var(--ck-insert-table-dropdown-box-margin);border:1px solid var(--ck-color-base-border);border-radius:1px}.ck .ck-insert-table-dropdown-grid-box.ck-on{border-color:var(--ck-color-focus-border);background:var(--ck-color-focus-outer-shadow)}"},function(e,t,n){var i=n(1),r=n(93);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=':root{--ck-table-selected-cell-background:rgba(158,207,250,0.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{position:relative;caret-color:transparent;outline:unset;box-shadow:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{content:"";pointer-events:none;background-color:var(--ck-table-selected-cell-background);position:absolute;top:0;left:0;right:0;bottom:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget_selected{outline:unset}'},function(e,t,n){var i=n(1),r=n(95);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),i(r,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=r.locals||{}},function(e,t){e.exports=".ck-content .table{margin:1em auto;display:table}.ck-content .table table{border-collapse:collapse;border-spacing:0;width:100%;height:100%;border:1px double #b3b3b3}.ck-content .table table td,.ck-content .table table th{min-width:2em;padding:.4em;border:1px solid #bfbfbf}.ck-content .table table th{font-weight:700;background:hsla(0,0%,0%,5%)}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}"},function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return zg});var i=n(3),r=i.a.Symbol,s=Object.prototype,o=s.hasOwnProperty,a=s.toString,c=r?r.toStringTag:void 0,l=Object.prototype.toString,u=r?r.toStringTag:void 0,d=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":u&&u in Object(e)?function(e){var t=o.call(e,c),n=e[c];try{e[c]=void 0;var i=!0}catch(e){}var r=a.call(e);return i&&(t?e[c]=n:delete e[c]),r}(e):function(e){return l.call(e)}(e)},h=function(e,t){return function(n){return e(t(n))}},p=h(Object.getPrototypeOf,Object),f=function(e){return null!=e&&"object"==typeof e},g=Function.prototype.toString,m=Object.prototype.hasOwnProperty,b=g.call(Object),y=function(e){if(!f(e)||"[object Object]"!=d(e))return!1;var t=p(e);if(null===t)return!0;var n=m.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&g.call(n)==b},v=function(e,t){return e===t||e!=e&&t!=t},_=function(e,t){for(var n=e.length;n--;)if(v(e[n][0],t))return n;return-1},w=Array.prototype.splice;function k(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}k.prototype.clear=function(){this.__data__=[],this.size=0},k.prototype.delete=function(e){var t=this.__data__,n=_(t,e);return!(n<0||(n==t.length-1?t.pop():w.call(t,n,1),--this.size,0))},k.prototype.get=function(e){var t=this.__data__,n=_(t,e);return n<0?void 0:t[n][1]},k.prototype.has=function(e){return _(this.__data__,e)>-1},k.prototype.set=function(e,t){var n=this.__data__,i=_(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};var C,S=k,T=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},P=function(e){if(!T(e))return!1;var t=d(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},O=i.a["__core-js_shared__"],x=(C=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||""))?"Symbol(sr
1c)_1."+C:"",A=Function.prototype.toString,E=function(e){if(null!=e){try{return A.call(e)}catch(e){}try{return e+""}catch(e){}}return""},M=/^\[object .+?Constructor\]$/,I=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),R=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!T(e)||function(e){return!!x&&x in e}(e))&&(P(e)?I:M).test(E(e))}(n)?n:void 0},L=R(i.a,"Map"),D=R(Object,"create"),j=Object.prototype.hasOwnProperty,N=Object.prototype.hasOwnProperty;function V(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}V.prototype.clear=function(){this.__data__=D?D(null):{},this.size=0},V.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},V.prototype.get=function(e){var t=this.__data__;if(D){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return j.call(t,e)?t[e]:void 0},V.prototype.has=function(e){var t=this.__data__;return D?void 0!==t[e]:N.call(t,e)},V.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=D&&void 0===t?"__lodash_hash_undefined__":t,this};var z=V,F=function(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map};function B(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}B.prototype.clear=function(){this.size=0,this.__data__={hash:new z,map:new(L||S),string:new z}},B.prototype.delete=function(e){var t=F(this,e).delete(e);return this.size-=t?1:0,t},B.prototype.get=function(e){return F(this,e).get(e)},B.prototype.has=function(e){return F(this,e).has(e)},B.prototype.set=function(e,t){var n=F(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};var q=B;function U(e){var t=this.__data__=new S(e);this.size=t.size}U.prototype.clear=function(){this.__data__=new S,this.size=0},U.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},U.prototype.get=function(e){return this.__data__.get(e)},U.prototype.has=function(e){return this.__data__.has(e)},U.prototype.set=function(e,t){var n=this.__data__;if(n instanceof S){var i=n.__data__;if(!L||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new q(i)}return n.set(e,t),this.size=n.size,this};var H=U,W=function(){try{var e=R(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),G=function(e,t,n){"__proto__"==t&&W?W(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Y=Object.prototype.hasOwnProperty,$=function(e,t,n){var i=e[t];Y.call(e,t)&&v(i,n)&&(void 0!==n||t in e)||G(e,t,n)},Z=function(e,t,n,i){var r=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var a=t[s],c=i?i(n[a],e[a],a,n,e):void 0;void 0===c&&(c=e[a]),r?G(n,a,c):$(n,a,c)}return n},Q=function(e){return f(e)&&"[object Arguments]"==d(e)},X=Object.prototype,K=X.hasOwnProperty,J=X.propertyIsEnumerable,ee=Q(function(){return arguments}())?Q:function(e){return f(e)&&K.call(e,"callee")&&!J.call(e,"callee")},te=Array.isArray,ne=n(4),ie=/^(?:0|[1-9]\d*)$/,re=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ie.test(e))&&e>-1&&e%1==0&&e<t},se=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},oe={};oe["[object Float32Array]"]=oe["[object Float64Array]"]=oe["[object Int8Array]"]=oe["[object Int16Array]"]=oe["[object Int32Array]"]=oe["[object Uint8Array]"]=oe["[object Uint8ClampedArray]"]=oe["[object Uint16Array]"]=oe["[object Uint32Array]"]=!0,oe["[object Arguments]"]=oe["[object Array]"]=oe["[object ArrayBuffer]"]=oe["[object Boolean]"]=oe["[object DataView]"]=oe["[object Date]"]=oe["[object Error]"]=oe["[object Function]"]=oe["[object Map]"]=oe["[object Number]"]=oe["[object Object]"]=oe["[object RegExp]"]=oe["[object Set]"]=oe["[object String]"]=oe["[object WeakMap]"]=!1;var ae=function(e){return function(t){return e(t)}},ce=n(5),le=ce.a&&ce.a.isTypedArray,ue=le?ae(le):function(e){return f(e)&&se(e.length)&&!!oe[d(e)]},de=Object.prototype.hasOwnProperty,he=function(e,t){var n=te(e),i=!n&&ee(e),r=!n&&!i&&Object(ne.a)(e),s=!n&&!i&&!r&&ue(e),o=n||i||r||s,a=o?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],c=a.length;for(var l in e)!t&&!de.call(e,l)||o&&("length"==l||r&&("offset"==l||"parent"==l)||s&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||re(l,c))||a.push(l);return a},pe=Object.prototype,fe=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||pe)},ge=h(Object.keys,Object),me=Object.prototype.hasOwnProperty,be=function(e){return null!=e&&se(e.length)&&!P(e)},ye=function(e){return be(e)?he(e):function(e){if(!fe(e))return ge(e);var t=[];for(var n in Object(e))me.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)},ve=Object.prototype.hasOwnProperty,_e=function(e){return be(e)?he(e,!0):function(e){if(!T(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=fe(e),n=[];
1for(var i in e)("constructor"!=i||!t&&ve.call(e,i))&&n.push(i);return n}(e)},we=n(8),ke=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},Ce=function(){return[]},Se=Object.prototype.propertyIsEnumerable,Te=Object.getOwnPropertySymbols,Pe=Te?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,i=null==e?0:e.length,r=0,s=[];++n<i;){var o=e[n];t(o)&&(s[r++]=o)}return s}(Te(e),function(t){return Se.call(e,t)}))}:Ce,Oe=function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e},xe=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Oe(t,Pe(e)),e=p(e);return t}:Ce,Ae=function(e,t,n){var i=t(e);return te(e)?i:Oe(i,n(e))},Ee=function(e){return Ae(e,ye,Pe)},Me=function(e){return Ae(e,_e,xe)},Ie=R(i.a,"DataView"),Re=R(i.a,"Promise"),Le=R(i.a,"Set"),De=R(i.a,"WeakMap"),je=E(Ie),Ne=E(L),Ve=E(Re),ze=E(Le),Fe=E(De),Be=d;(Ie&&"[object DataView]"!=Be(new Ie(new ArrayBuffer(1)))||L&&"[object Map]"!=Be(new L)||Re&&"[object Promise]"!=Be(Re.resolve())||Le&&"[object Set]"!=Be(new Le)||De&&"[object WeakMap]"!=Be(new De))&&(Be=function(e){var t=d(e),n="[object Object]"==t?e.constructor:void 0,i=n?E(n):"";if(i)switch(i){case je:return"[object DataView]";case Ne:return"[object Map]";case Ve:return"[object Promise]";case ze:return"[object Set]";case Fe:return"[object WeakMap]"}return t});var qe=Be,Ue=Object.prototype.hasOwnProperty,He=i.a.Uint8Array,We=function(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t},Ge=/\w*$/,Ye=r?r.prototype:void 0,$e=Ye?Ye.valueOf:void 0,Ze=function(e,t){var n=t?We(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},Qe=Object.create,Xe=function(){function e(){}return function(t){if(!T(t))return{};if(Qe)return Qe(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Ke=function(e){return"function"!=typeof e.constructor||fe(e)?{}:Xe(p(e))},Je=ce.a&&ce.a.isMap,et=Je?ae(Je):function(e){return f(e)&&"[object Map]"==qe(e)},tt=ce.a&&ce.a.isSet,nt=tt?ae(tt):function(e){return f(e)&&"[object Set]"==qe(e)},it={};it["[object Arguments]"]=it["[object Array]"]=it["[object ArrayBuffer]"]=it["[object DataView]"]=it["[object Boolean]"]=it["[object Date]"]=it["[object Float32Array]"]=it["[object Float64Array]"]=it["[object Int8Array]"]=it["[object Int16Array]"]=it["[object Int32Array]"]=it["[object Map]"]=it["[object Number]"]=it["[object Object]"]=it["[object RegExp]"]=it["[object Set]"]=it["[object String]"]=it["[object Symbol]"]=it["[object Uint8Array]"]=it["[object Uint8ClampedArray]"]=it["[object Uint16Array]"]=it["[object Uint32Array]"]=!0,it["[object Error]"]=it["[object Function]"]=it["[object WeakMap]"]=!1;var rt=function e(t,n,i,r,s,o){var a,c=1&n,l=2&n,u=4&n;if(i&&(a=s?i(t,r,s,o):i(t)),void 0!==a)return a;if(!T(t))return t;var d=te(t);if(d){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ue.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!c)return ke(t,a)}else{var h=qe(t),p="[object Function]"==h||"[object GeneratorFunction]"==h;if(Object(ne.a)(t))return Object(we.a)(t,c);if("[object Object]"==h||"[object Arguments]"==h||p&&!s){if(a=l||p?{}:Ke(t),!c)return l?function(e,t){return Z(e,xe(e),t)}(t,function(e,t){return e&&Z(t,_e(t),e)}(a,t)):function(e,t){return Z(e,Pe(e),t)}(t,function(e,t){return e&&Z(t,ye(t),e)}(a,t))}else{if(!it[h])return s?t:{};a=function(e,t,n){var i=e.constructor;switch(t){case"[object ArrayBuffer]":return We(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return function(e,t){var n=t?We(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Ze(e,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,Ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return function(e){return $e?Object($e.call(e)):{}}(e)}}(t,h,c)}}o||(o=new H);var f=o.get(t);if(f)return f;o.set(t,a),nt(t)?t.forEach(function(r){a.add(e(r,n,i,r,t,o))}):et(t)&&t.forEach(function(r,s){a.set(s,e(r,n,i,s,t,o))});var g=u?l?Me:Ee:l?keysIn:ye,m=d?void 0:g(t);return function(e,t){for(var n=-1,i=null==e?0:e.length;
1++n<i&&!1!==t(e[n],n););}(m||t,function(r,s){m&&(r=t[s=r]),$(a,s,e(r,n,i,s,t,o))}),a},st=function(e,t){return rt(e,5,t="function"==typeof t?t:void 0)},ot=function(e){return f(e)&&1===e.nodeType&&!y(e)};class at{constructor(e,t){this._config={},t&&this.define(ct(t)),e&&this._setObjectToTarget(this._config,e)}set(e,t){this._setToTarget(this._config,e,t)}define(e,t){this._setToTarget(this._config,e,t,!0)}get(e){return this._getFromSource(this._config,e)}*names(){for(const e of Object.keys(this._config))yield e}_setToTarget(e,t,n,i=!1){if(y(t))return void this._setObjectToTarget(e,t,i);const r=t.split(".");t=r.pop();for(const s of r)y(e[s])||(e[s]={}),e=e[s];if(y(n))return y(e[t])||(e[t]={}),void this._setObjectToTarget(e=e[t],n,i);i&&void 0!==e[t]||(e[t]=n)}_getFromSource(e,t){const n=t.split(".");t=n.pop();for(const i of n){if(!y(e[i])){e=null;break}e=e[i]}return e?ct(e[t]):void 0}_setObjectToTarget(e,t,n){Object.keys(t).forEach(i=>{this._setToTarget(e,i,t[i],n)})}}function ct(e){return st(e,lt)}function lt(e){return ot(e)?e:void 0}class ut{constructor(e,t){this.source=e,this.name=t,this.path=[],this.stop=function e(){e.called=!0},this.off=function e(){e.called=!0}}}const dt=new Array(256).fill().map((e,t)=>("0"+t.toString(16)).slice(-2));function ht(){const e=4294967296*Math.random()>>>0,t=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0,i=4294967296*Math.random()>>>0;return"e"+dt[e>>0&255]+dt[e>>8&255]+dt[e>>16&255]+dt[e>>24&255]+dt[t>>0&255]+dt[t>>8&255]+dt[t>>16&255]+dt[t>>24&255]+dt[n>>0&255]+dt[n>>8&255]+dt[n>>16&255]+dt[n>>24&255]+dt[i>>0&255]+dt[i>>8&255]+dt[i>>16&255]+dt[i>>24&255]}var pt={get(e){return"number"!=typeof e?this[e]||this.normal:e},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5},ft=(n(6),n(0));const gt=Symbol("listeningTo"),mt=Symbol("emitterId");var bt={on(e,t,n={}){this.listenTo(this,e,t,n)},once(e,t,n){let i=!1;this.listenTo(this,e,function(e,...n){i||(i=!0,e.off(),t.call(this,e,...n))},n)},off(e,t){this.stopListening(this,e,t)},listenTo(e,t,n,i={}){let r,s;this[gt]||(this[gt]={});const o=this[gt];vt(e)||yt(e);const a=vt(e);(r=o[a])||(r=o[a]={emitter:e,callbacks:{}}),(s=r.callbacks[t])||(s=r.callbacks[t]=[]),s.push(n),function(e,t){const n=_t(e);if(n[t])return;let i=t,r=null;const s=[];for(;""!==i&&!n[i];)n[i]={callbacks:[],childEvents:[]},s.push(n[i]),r&&n[i].childEvents.push(r),r=i,i=i.substr(0,i.lastIndexOf(":"));if(""!==i){for(const e of s)e.callbacks=n[i].callbacks.slice();n[i].childEvents.push(r)}}(e,t);const c=wt(e,t),l=pt.get(i.priority),u={callback:n,priority:l};for(const d of c){let e=!1;for(let t=0;t<d.length;t++)if(d[t].priority<l){d.splice(t,0,u),e=!0;break}e||d.push(u)}},stopListening(e,t,n){const i=this[gt];let r=e&&vt(e);const s=i&&r&&i[r],o=s&&t&&s.callbacks[t];if(!(!i||e&&!s||t&&!o))if(n)Ct(e,t,n);else if(o){for(;n=o.pop();)Ct(e,t,n);delete s.callbacks[t]}else if(s){for(t in s.callbacks)this.stopListening(e,t);delete i[r]}else{for(r in i)this.stopListening(i[r].emitter);delete this[gt]}},fire(e,...t){try{const n=e instanceof ut?e:new ut(this,e),i=n.name;let r=function e(t,n){let i;return t._events&&(i=t._events[n])&&i.callbacks.length?i.callbacks:n.indexOf(":")>-1?e(t,n.substr(0,n.lastIndexOf(":"))):null}(this,i);if(n.path.push(this),r){const e=[n,...t];r=Array.from(r);for(let t=0;t<r.length&&(r[t].callback.apply(this,e),n.off.called&&(delete n.off.called,Ct(this,i,r[t].callback)),!n.stop.called);t++);}if(this._delegations){const e=this._delegations.get(i),r=this._delegations.get("*");e&&kt(e,n,t),r&&kt(r,n,t)}return n.return}catch(e){ft.b.rethrowUnexpectedError(e,this)}},delegate(...e){return{to:(t,n)=>{this._delegations||(this._delegations=new Map),e.forEach(e=>{const i=this._delegations.get(e);i?i.set(t,n):this._delegations.set(e,new Map([[t,n]]))})}}},stopDelegating(e,t){if(this._delegations)if(e)if(t){const n=this._delegations.get(e);n&&n.delete(t)}else this._delegations.delete(e);else this._delegations.clear()}};function yt(e,t){e[mt]||(e[mt]=t||ht())}function vt(e){return e[mt]}function _t(e){return e._events||Object.defineProperty(e,"_events",{value:{}}),e._events}function wt(e,t){const n=_t(e)[t];if(!n)return[];let i=[n.callbacks];for(let r=0;r<n.childEvents.length;r++){const t=wt(e,n.childEvents[r]);i=i.concat(t)}return i}function kt(e,t,n){for(let[i,r]of e){r?"function"==typeof r&&(r=r(t.name)):r=t.name;
1const e=new ut(t.source,r);e.path=[...t.path],i.fire(e,...n)}}function Ct(e,t,n){const i=wt(e,t);for(const r of i)for(let e=0;e<r.length;e++)r[e].callback==n&&(r.splice(e,1),e--)}function St(e){return!(!e||!e[Symbol.iterator])}function Tt(e,...t){t.forEach(t=>{Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t)).forEach(n=>{if(n in e.prototype)return;const i=Object.getOwnPropertyDescriptor(t,n);i.enumerable=!1,Object.defineProperty(e.prototype,n,i)})})}class Pt{constructor(e={},t={}){const n=St(e);if(n||(t=e),this._items=[],this._itemMap=new Map,this._idProperty=t.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],n)for(const i of e)this._items.push(i),this._itemMap.set(this._getItemIdBeforeAdding(i),i)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(e,t){return this.addMany([e],t)}addMany(e,t){if(void 0===t)t=this._items.length;else if(t>this._items.length||t<0)throw new ft.b("collection-add-item-invalid-index",this);for(let n=0;n<e.length;n++){const i=e[n],r=this._getItemIdBeforeAdding(i),s=t+n;this._items.splice(s,0,i),this._itemMap.set(r,i),this.fire("add",i,s)}return this.fire("change",{added:e,removed:[],index:t}),this}get(e){let t;if("string"==typeof e)t=this._itemMap.get(e);else{if("number"!=typeof e)throw new ft.b("collection-get-invalid-arg: Index or id must be given.",this);t=this._items[e]}return t||null}has(e){return this._itemMap.has("string"==typeof e?e:e[this._idProperty])}getIndex(e){let t;return t="string"==typeof e?this._itemMap.get(e):e,this._items.indexOf(t)}remove(e){const[t,n]=this._remove(e);return this.fire("change",{added:[],removed:[t],index:n}),t}map(e,t){return this._items.map(e,t)}find(e,t){return this._items.find(e,t)}filter(e,t){return this._items.filter(e,t)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const e=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:e,index:0})}bindTo(e){if(this._bindToCollection)throw new ft.b("collection-bind-to-rebind: The collection cannot be bound more than once.",this);return this._bindToCollection=e,{as:e=>{this._setUpBindToBinding(t=>new e(t))},using:e=>{this._setUpBindToBinding("function"==typeof e?t=>e(t):t=>t[e])}}}_setUpBindToBinding(e){const t=this._bindToCollection,n=(n,i,r)=>{const s=t._bindToCollection==this,o=t._bindToInternalToExternalMap.get(i);if(s&&o)this._bindToExternalToInternalMap.set(i,o),this._bindToInternalToExternalMap.set(o,i);else{const n=e(i);if(!n)return void this._skippedIndexesFromExternal.push(r);let s=r;for(const e of this._skippedIndexesFromExternal)r>e&&s--;for(const e of t._skippedIndexesFromExternal)s>=e&&s++;this._bindToExternalToInternalMap.set(i,n),this._bindToInternalToExternalMap.set(n,i),this.add(n,s);for(let e=0;e<t._skippedIndexesFromExternal.length;e++)s<=t._skippedIndexesFromExternal[e]&&t._skippedIndexesFromExternal[e]++}};for(const i of t)n(0,i,t.getIndex(i));this.listenTo(t,"add",n),this.listenTo(t,"remove",(e,t,n)=>{const i=this._bindToExternalToInternalMap.get(t);i&&this.remove(i),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((e,t)=>(n<t&&e.push(t-1),n>t&&e.push(t),e),[])})}_getItemIdBeforeAdding(e){const t=this._idProperty;let n;if(t in e){if(n=e[t],"string"!=typeof n)throw new ft.b("collection-add-invalid-id",this);if(this.get(n))throw new ft.b("collection-add-item-already-exists",this)}else e[t]=n=ht();return n}_remove(e){let t,n,i,r=!1;const s=this._idProperty;if("string"==typeof e?(n=e,i=this._itemMap.get(n),r=!i,i&&(t=this._items.indexOf(i))):"number"==typeof e?(t=e,i=this._items[t],r=!i,i&&(n=i[s])):(i=e,n=i[s],t=this._items.indexOf(i),r=-1==t||!this._itemMap.get(n)),r)throw new ft.b("collection-remove-404: Item not found.",this);this._items.splice(t,1),this._itemMap.delete(n);const o=this._bindToInternalToExternalMap.get(i);return this._bindToInternalToExternalMap.delete(i),this._bindToExternalToInternalMap.delete(o),this.fire("remove",i,t),[i,t]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}Tt(Pt,bt);class Ot{constructor(e,t=[],n=[]){this._context=e,this._plugins=new Map,this._availablePlugins=new Map;for(const i of t)i.pluginName&&this._availablePlugins.set(i.pluginName,i);this._contextPlugins=new Map;for(const[i,r]of n)this._contextPlugins.set(i,r),this._contextPlugins.set(r,i),i.pluginName&&this._availablePlugins.set(i.pluginName,i)}*[Symbol.iterator](){for(const e of this._plugins)"function"==typeof e[0]&&(yield e)}get(e){const t=this._plugins.get(e);if(!t){let t=e;throw"function"==typeof e&&(t=e.pluginName||e.name),new ft.b("plugincollection-
1plugin-not-loaded: The requested plugin is not loaded.",this._context,{plugin:t})}return t}has(e){return this._plugins.has(e)}init(e,t=[]){const n=this,i=this._context,r=new Set,s=[],o=d(e),a=d(t),c=function(e){const t=[];for(const n of e)u(n)||t.push(n);return t.length?t:null}(e);if(c){const e="plugincollection-plugin-not-found: Some plugins are not available and could not be loaded.";return console.error(Object(ft.a)(e),{plugins:c}),Promise.reject(new ft.b(e,i,{plugins:c}))}return Promise.all(o.map(function e(o){if(!a.includes(o)&&!n._plugins.has(o)&&!r.has(o))return function(o){return new Promise(a=>{r.add(o),o.requires&&o.requires.forEach(n=>{const r=u(n);if(o.isContextPlugin&&!r.isContextPlugin)throw new ft.b("plugincollection-context-required: Context plugin can not require plugin which is not a context plugin",null,{plugin:r.name,requiredBy:o.name});if(t.includes(r))throw new ft.b("plugincollection-required: Cannot load a plugin because one of its dependencies is listed inthe `removePlugins` option.",i,{plugin:r.name,requiredBy:o.name});e(r)});const c=n._contextPlugins.get(o)||new o(i);n._add(o,c),s.push(c),a()})}(o).catch(e=>{throw console.error(Object(ft.a)("plugincollection-load: It was not possible to load the plugin."),{plugin:o}),e})})).then(()=>l(s,"init")).then(()=>l(s,"afterInit")).then(()=>s);function l(e,t){return e.reduce((e,i)=>i[t]?n._contextPlugins.has(i)?e:e.then(i[t].bind(i)):e,Promise.resolve())}function u(e){return"function"==typeof e?e:n._availablePlugins.get(e)}function d(e){return e.map(e=>u(e)).filter(e=>!!e)}}destroy(){const e=[];for(const[,t]of this)"function"!=typeof t.destroy||this._contextPlugins.has(t)||e.push(t.destroy());return Promise.all(e)}_add(e,t){this._plugins.set(e,t);const n=e.pluginName;if(n){if(this._plugins.has(n))throw new ft.b("plugincollection-plugin-name-conflict: Two plugins with the same name were loaded.",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:e});this._plugins.set(n,t)}}}Tt(Ot,bt),window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={});const xt=["ar","fa","he","ku","ug"];class At{constructor(e={}){this.uiLanguage=e.uiLanguage||"en",this.contentLanguage=e.contentLanguage||this.uiLanguage,this.uiLanguageDirection=Et(this.uiLanguage),this.contentLanguageDirection=Et(this.contentLanguage),this.t=(e,t)=>this._t(e,t)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(e,t=[]){return Array.isArray(t)||(t=[t]),"string"==typeof e&&(e={string:e}),function(e,t){return e.replace(/%(\d+)/g,(e,n)=>n<t.length?t[n]:e)}(function(e,t,n=1){if("number"!=typeof n)throw new ft.b("translation-service-quantity-not-a-number: Expecting `quantity` to be a number.",null,{quantity:n});const i=Object.keys(window.CKEDITOR_TRANSLATIONS).length;1===i&&(e=Object.keys(window.CKEDITOR_TRANSLATIONS)[0]);const r=t.id||t.string;if(0===i||!function(e,t){return!!window.CKEDITOR_TRANSLATIONS[e]&&!!window.CKEDITOR_TRANSLATIONS[e].dictionary[t]}(e,r))return 1!==n?t.plural:t.string;const s=window.CKEDITOR_TRANSLATIONS[e].dictionary,o=window.CKEDITOR_TRANSLATIONS[e].getPluralForm||(e=>1===e?0:1);if("string"==typeof s[r])return s[r];const a=Number(o(n));return s[r][a]}(this.uiLanguage,e,e.plural?t[0]:1),t)}}function Et(e){return xt.includes(e)?"rtl":"ltr"}class Mt{constructor(e){this.config=new at(e,this.constructor.defaultConfig);const t=this.constructor.builtinPlugins;this.config.define("plugins",t),this.plugins=new Ot(this,t);const n=this.config.get("language")||{};this.locale=new At({uiLanguage:"string"==typeof n?n:n.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new Pt,this._contextOwner=null}initPlugins(){const e=this.config.get("plugins")||[];for(const t of e){if("function"!=typeof t)throw new ft.b("context-initplugins-constructor-only: Only a constructor function is allowed as a context plugin.",null,{Plugin:t});if(!0!==t.isContextPlugin)throw new ft.b("context-initplugins-invalid-plugin: Only a plugin marked as a context plugin is allowed to be used with a context.",null,{Plugin:t})}return this.plugins.init(e)}destroy(){return Promise.all(Array.from(this.editors,e=>e.destroy())).then(()=>this.plugins.destroy())}_addEditor(e,t){if(this._contextOwner)throw new ft.b("context-addEditor-private-context: Cannot add multiple editors to the context which is created by the editor.");this.editors.add(e),t&&(this._contextOwner=e)}_removeEditor(e){return this.editors.has(e)&&this.editors.remove(e),this._contextOwner===e?this.destroy():Promise.resolve()}_getEditorConfig(){const e={};for(const t of this.config.names())["plugins","removePlugins","extraPlugins"].includes(t)||(e[t]=this.config.get(t));return e}static create(e){return new Promise(t=>{const n=new this(e);t(n.initPlugins().then(()=>n))})}}function It(e,t){const n=Math.min(e.length,t.length);for(let i=0;i<n;i++)if(e[i]!=t[i])return i;return e.length==t.length?"same":e.length<t.length?"prefix":"extension"}var Rt=function(e){return rt(e,4)};class Lt{constructor(e){this.document=e,this.parent=null}get index(){let e;if(!this.parent)return null;if(-1==(e=this.parent.getChildIndex(this)))throw new ft.b("view-node-not-found-in-parent: The node's parent does not contain this node.",this);return e}get nextSibling(){const e=this.index;return null!==e&&this.parent.getChild(e+1)||null}get previousSibling(){const e=this.index;return null!==e&&this.parent.getChild(e-1)||null}get root(){let e=this;for(;e.parent;)e=e.parent;return e}isAttached(){return this.root.is("rootElement")}getPath(){const e=[];let t=this;for(;t.parent;)e.unshift(t.index),t=t.parent;return e}getAncestors(e={includeSelf:!1,parentFirst:!1}){const t=[];let n=e.includeSelf?this:this.parent;for(;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}getCommonAncestor(e,t={}){const n=this.getAncestors(t),i=e.getAncestors(t);let r=0;for(;n[r]==i[r]&&n[r];)r++;return 0===r?null:n[r-1]}isBefore(e){if(this==e)return!1;if(this.root!==e.root)return!1;const t=this.getPath(),n=e.getPath(),i=It(t,n);switch(i){case"prefix":return!0;case"extension":return!1;default:return t[i]<n[i]}}isAfter(e){return this!=e&&this.root===e.root&&!this.isBefore(e)}_remove(){this.parent._removeChildren(this.index)}
1_fireChange(e,t){this.fire("change:"+e,t),this.parent&&this.parent._fireChange(e,t)}toJSON(){const e=Rt(this);return delete e.parent,e}is(e){return"node"===e||"view:node"===e}}Tt(Lt,bt);class Dt extends Lt{constructor(e,t){super(e),this._textData=t}is(e){return"$text"===e||"view:$text"===e||"text"===e||"view:text"===e||"node"===e||"view:node"===e}get data(){return this._textData}get _data(){return this.data}set _data(e){this._fireChange("text",this),this._textData=e}isSimilar(e){return e instanceof Dt&&(this===e||this.data===e.data)}_clone(){return new Dt(this.document,this.data)}}class jt{constructor(e,t,n){if(this.textNode=e,t<0||t>e.data.length)throw new ft.b("view-textproxy-wrong-offsetintext: Given offsetInText value is incorrect.",this);if(n<0||t+n>e.data.length)throw new ft.b("view-textproxy-wrong-length: Given length value is incorrect.",this);this.data=e.data.substring(t,t+n),this.offsetInText=t}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}is(e){return"$textProxy"===e||"view:$textProxy"===e||"textProxy"===e||"view:textProxy"===e}getAncestors(e={includeSelf:!1,parentFirst:!1}){const t=[];let n=e.includeSelf?this.textNode:this.parent;for(;null!==n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}}function Nt(e){return St(e)?new Map(e):function(e){const t=new Map;for(const n in e)t.set(n,e[n]);return t}(e)}class Vt{constructor(...e){this._patterns=[],this.add(...e)}add(...e){for(let t of e)("string"==typeof t||t instanceof RegExp)&&(t={name:t}),t.classes&&("string"==typeof t.classes||t.classes instanceof RegExp)&&(t.classes=[t.classes]),this._patterns.push(t)}match(...e){for(const t of e)for(const e of this._patterns){const n=zt(t,e);if(n)return{element:t,pattern:e,match:n}}return null}matchAll(...e){const t=[];for(const n of e)for(const e of this._patterns){const i=zt(n,e);i&&t.push({element:n,pattern:e,match:i})}return t.length>0?t:null}getElementName(){if(1!==this._patterns.length)return null;const e=this._patterns[0],t=e.name;return"function"==typeof e||!t||t instanceof RegExp?null:t}}function zt(e,t){if("function"==typeof t)return t(e);const n={};return t.name&&(n.name=function(e,t){return e instanceof RegExp?e.test(t):e===t}(t.name,e.name),!n.name)||t.attributes&&(n.attributes=function(e,t){const n=[];for(const i in e){const r=e[i];if(!t.hasAttribute(i))return null;{const e=t.getAttribute(i);if(!0===r)n.push(i);else if(r instanceof RegExp){if(!r.test(e))return null;n.push(i)}else{if(e!==r)return null;n.push(i)}}}return n}(t.attributes,e),!n.attributes)?null:!(t.classes&&(n.classes=function(e,t){const n=[];for(const i of e)if(i instanceof RegExp){const e=t.getClassNames();for(const t of e)i.test(t)&&n.push(t);if(0===n.length)return null}else{if(!t.hasClass(i))return null;n.push(i)}return n}(t.classes,e),!n.classes))&&!(t.styles&&(n.styles=function(e,t){const n=[];for(const i in e){const r=e[i];if(!t.hasStyle(i))return null;{const e=t.getStyle(i);if(r instanceof RegExp){if(!r.test(e))return null;n.push(i)}else{if(e!==r)return null;n.push(i)}}}return n}(t.styles,e),!n.styles))&&n}var Ft=function(e){return"symbol"==typeof e||f(e)&&"[object Symbol]"==d(e)},Bt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qt=/^\w*$/;function Ut(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],s=n.cache;if(s.has(r))return s.get(r);var o=e.apply(this,i);return n.cache=s.set(r,o)||s,o};return n.cache=new(Ut.Cache||q),n}Ut.Cache=q;var Ht=Ut,Wt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gt=/\\(\\)?/g,Yt=function(e){var t=Ht(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Wt,function(e,n,i,r){t.push(i?r.replace(Gt,"$1"):n||e)}),t},function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(),$t=r?r.prototype:void 0,Zt=$t?$t.toString:void 0,Qt=function e(t){if("string"==typeof t)return t;if(te(t))return function(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}(t,e)+"";if(Ft(t))return Zt?Zt.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},Xt=function(e){return null==e?"":Qt(e)},Kt=function(e,t){return te(e)?e:function(e,t){if(te(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ft(e))||qt.test(e)||!Bt.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:Yt(Xt(e))},Jt=function(e){if("string"==typeof e||Ft(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},en=function(e,t){for(var n=0,i=(t=Kt(t,e)).length;null!=e&&n<i;)e=e[Jt(t[n++])];return n&&n==i?e:void 0},tn=function(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(r);++i<r;)s[i]=e[i+t];return s},nn=function(e,t,n){var i=null==e?void 0:en(e,t);return void 0===i?n:i},rn=function(e,t,n){(void 0!==n&&!v(e[t],n)||void 0===n&&!(t in e))&&G(e,t,n)},sn=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},on=function e(t,n,i,r,s){t!==n&&function(e,t,n){for(var i=-1,r=Object(e),s=n(e),o=s.length;o--;){var a=s[++i];if(!1===t(r[a],a,r))break}}(n,function(o,a){if(s||(s=new H),T(o))!function(e,t,n,i,r,s,o){var a=sn(e,n),c=sn(t,n),l=o.get(c);if(l)rn(e,n,l);else{var u=s?s(a,c,n+"",e,t,o):void 0,d=void 0===u;if(d){var h=te(c),p=!h&&Object(ne.a)(c),g=!h&&!p&&ue(c);u=c,h||p||g?te(a)?u=a:function(e){return f(e)&&be(e)}(a)?u=ke(a):p?(d=!1,u=Object(we.a)(c,!0)):g?(d=!1,u=Ze(c,!0)):u=[]:y(c)||ee(c)?(u=a,ee(a)?u=function(e){return Z(e,_e(e))}
1(a):T(a)&&!P(a)||(u=Ke(c))):d=!1}d&&(o.set(c,u),r(u,c,i,s,o),o.delete(c)),rn(e,n,u)}}(t,n,a,i,e,r,s);else{var c=r?r(sn(t,a),o,a+"",t,n,s):void 0;void 0===c&&(c=o),rn(t,a,c)}},_e)},an=function(e){return e},cn=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},ln=Math.max,un=function(e){return function(){return e}},dn=W?function(e,t){return W(e,"toString",{configurable:!0,enumerable:!1,value:un(t),writable:!0})}:an,hn=Date.now,pn=function(e){var t=0,n=0;return function(){var i=hn(),r=16-(i-n);if(n=i,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(dn),fn=function(e){return function(e,t){return pn(function(e,t,n){return t=ln(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,s=ln(i.length-t,0),o=Array(s);++r<s;)o[r]=i[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=i[r];return a[t]=n(o),cn(e,this,a)}}(e,t,an),e+"")}(function(t,n){var i=-1,r=n.length,s=r>1?n[r-1]:void 0,o=r>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(r--,s):void 0,o&&function(e,t,n){if(!T(n))return!1;var i=typeof t;return!!("number"==i?be(n)&&re(t,n.length):"string"==i&&t in n)&&v(n[t],e)}(n[0],n[1],o)&&(s=r<3?void 0:s,r=1),t=Object(t);++i<r;){var a=n[i];a&&e(t,a,i,s)}return t})},gn=fn(function(e,t,n){on(e,t,n)});class mn{constructor(e){this._styles={},this._styleProcessor=e}get isEmpty(){const e=Object.entries(this._styles);return!Array.from(e).length}get size(){return this.isEmpty?0:this.getStyleNames().length}setTo(e){this.clear();const t=Array.from(function(e){let t=null,n=0,i=0,r=null;const s=new Map;if(""===e)return s;";"!=e.charAt(e.length-1)&&(e+=";");for(let o=0;o<e.length;o++){const a=e.charAt(o);if(null===t)switch(a){case":":r||(r=e.substr(n,o-n),i=o+1);break;case'"':case"'":t=a;break;case";":{const t=e.substr(i,o-i);r&&s.set(r.trim(),t.trim()),r=null,n=o+1;break}}else a===t&&(t=null)}return s}(e).entries());for(const[n,i]of t)this._styleProcessor.toNormalizedForm(n,i,this._styles)}has(e){if(this.isEmpty)return!1;const t=this._styleProcessor.getReducedForm(e,this._styles).find(([t])=>t===e);return Array.isArray(t)}set(e,t){if(T(e))for(const[n,i]of Object.entries(e))this._styleProcessor.toNormalizedForm(n,i,this._styles);else this._styleProcessor.toNormalizedForm(e,t,this._styles)}remove(e){const t=yn(e);(function(e,t){null==e||function(e,t){null==(e=function(e,t){return t.length<2?e:en(e,tn(t,0,-1))}(e,t=Kt(t,e)))||delete e[Jt(function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}(t))]}(e,t)})(this._styles,t),delete this._styles[e],this._cleanEmptyObjectsOnPath(t)}getNormalized(e){return this._styleProcessor.getNormalized(e,this._styles)}toString(){return this.isEmpty?"":this._getStylesEntries().map(e=>e.join(":")).sort().join(";")+";"}getAsString(e){if(this.isEmpty)return;if(this._styles[e]&&!T(this._styles[e]))return this._styles[e];const t=this._styleProcessor.getReducedForm(e,this._styles).find(([t])=>t===e);return Array.isArray(t)?t[1]:void 0}getStyleNames(){return this.isEmpty?[]:this._getStylesEntries().map(([e])=>e)}clear(){this._styles={}}_getStylesEntries(){const e=[],t=Object.keys(this._styles);for(const n of t)e.push(...this._styleProcessor.getReducedForm(n,this._styles));return e}_cleanEmptyObjectsOnPath(e){const t=e.split(".");if(!(t.length>1))return;const n=t.splice(0,t.length-1).join("."),i=nn(this._styles,n);i&&!Array.from(Object.keys(i)).length&&this.remove(n)}}class bn{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(e,t,n){if(T(t))vn(n,yn(e),t);else if(this._normalizers.has(e)){const i=this._normalizers.get(e),{path:r,value:s}=i(t);vn(n,r,s)}else vn(n,e,t)}getNormalized(e,t){if(!e)return gn({},t);if(void 0!==t[e])return t[e];if(this._extractors.has(e)){const n=this._extractors.get(e);if("string"==typeof n)return nn(t,n);const i=n(e,t);if(i)return i}return nn(t,yn(e))}getReducedForm(e,t){const n=this.getNormalized(e,t);return void 0===n?[]:this._reducers.has(e)?this._reducers.get(e)(n):[[e,n]]}getRelatedStyles(e){return this._consumables.get(e)||[]}setNormalizer(e,t){this._normalizers.set(e,t)}setExtractor(e,t){this._extractors.set(e,t)}setReducer(e,t){this._reducers.set(e,t)}setStyleRelation(e,t){this._mapStyleNames(e,t);for(const n of t)this._mapStyleNames(n,[e])}_mapStyleNames(e,t){this._consumables.has(e)||this._consumables.set(e,[]),this._consumables.get(e).push(...t)}}function yn(e){return e.replace("-",".")}
1function vn(e,t,n){let i=n;T(n)&&(i=gn({},nn(e,t),n)),function(e,t,n){null==e||function(e,t,n,i){if(!T(e))return e;for(var r=-1,s=(t=Kt(t,e)).length,o=s-1,a=e;null!=a&&++r<s;){var c=Jt(t[r]),l=n;if(r!=o){var u=a[c];void 0===(l=void 0)&&(l=T(u)?u:re(t[r+1])?[]:{})}$(a,c,l),a=a[c]}}(e,t,n)}(e,t,i)}class _n extends Lt{constructor(e,t,n,i){if(super(e),this.name=t,this._attrs=function(e){e=Nt(e);for(const[t,n]of e)null===n?e.delete(t):"string"!=typeof n&&e.set(t,String(n));return e}(n),this._children=[],i&&this._insertChild(0,i),this._classes=new Set,this._attrs.has("class")){const e=this._attrs.get("class");wn(this._classes,e),this._attrs.delete("class")}this._styles=new mn(this.document.stylesProcessor),this._attrs.has("style")&&(this._styles.setTo(this._attrs.get("style")),this._attrs.delete("style")),this._customProperties=new Map}get childCount(){return this._children.length}get isEmpty(){return 0===this._children.length}is(e,t=null){return t?t===this.name&&("element"===e||"view:element"===e):"element"===e||"view:element"===e||"node"===e||"view:node"===e}getChild(e){return this._children[e]}getChildIndex(e){return this._children.indexOf(e)}getChildren(){return this._children[Symbol.iterator]()}*getAttributeKeys(){this._classes.size>0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(e){if("class"==e)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==e){const e=this._styles.toString();return""==e?void 0:e}return this._attrs.get(e)}hasAttribute(e){return"class"==e?this._classes.size>0:"style"==e?!this._styles.isEmpty:this._attrs.has(e)}isSimilar(e){if(!(e instanceof _n))return!1;if(this===e)return!0;if(this.name!=e.name)return!1;if(this._attrs.size!==e._attrs.size||this._classes.size!==e._classes.size||this._styles.size!==e._styles.size)return!1;for(const[t,n]of this._attrs)if(!e._attrs.has(t)||e._attrs.get(t)!==n)return!1;for(const t of this._classes)if(!e._classes.has(t))return!1;for(const t of this._styles.getStyleNames())if(!e._styles.has(t)||e._styles.getAsString(t)!==this._styles.getAsString(t))return!1;return!0}hasClass(...e){for(const t of e)if(!this._classes.has(t))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(e){return this._styles.getAsString(e)}getNormalizedStyle(e){return this._styles.getNormalized(e)}getStyleNames(){return this._styles.getStyleNames()}hasStyle(...e){for(const t of e)if(!this._styles.has(t))return!1;return!0}findAncestor(...e){const t=new Vt(...e);let n=this.parent;for(;n;){if(t.match(n))return n;n=n.parent}return null}getCustomProperty(e){return this._customProperties.get(e)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const e=Array.from(this._classes).sort().join(","),t=this._styles.toString(),n=Array.from(this._attrs).map(e=>`${e[0]}="${e[1]}"`).sort().join(" ");return this.name+(""==e?"":` class="${e}"`)+(t?` style="${t}"`:"")+(""==n?"":" "+n)}_clone(e=!1){const t=[];if(e)for(const i of this.getChildren())t.push(i._clone(e));const n=new this.constructor(this.document,this.name,this._attrs,t);return n._classes=new Set(this._classes),n._styles.set(this._styles.getNormalized()),n._customProperties=new Map(this._customProperties),n.getFillerOffset=this.getFillerOffset,n}_appendChild(e){return this._insertChild(this.childCount,e)}_insertChild(e,t){this._fireChange("children",this);let n=0;const i=function(e,t){return"string"==typeof t?[new Dt(e,t)]:(St(t)||(t=[t]),Array.from(t).map(t=>"string"==typeof t?new Dt(e,t):t instanceof jt?new Dt(e,t.data):t))}(this.document,t);for(const r of i)null!==r.parent&&r._remove(),r.parent=this,r.document=this.document,this._children.splice(e,0,r),e++,n++;return n}_removeChildren(e,t=1){this._fireChange("children",this);for(let n=e;n<e+t;n++)this._children[n].parent=null;return this._children.splice(e,t)}_setAttribute(e,t){t=String(t),this._fireChange("attributes",this),"class"==e?wn(this._classes,t):"style"==e?this._styles.setTo(t):this._attrs.set(e,t)}_removeAttribute(e){return this._fireChange("attributes",this),"class"==e?this._classes.size>0&&(this._classes.clear(),!0):"style"==e?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(e)}_addClass(e){this._fireChange("attributes",this),(e=Array.isArray(e)?e:[e]).forEac
1h(e=>this._classes.add(e))}_removeClass(e){this._fireChange("attributes",this),(e=Array.isArray(e)?e:[e]).forEach(e=>this._classes.delete(e))}_setStyle(e,t){this._fireChange("attributes",this),this._styles.set(e,t)}_removeStyle(e){this._fireChange("attributes",this),(e=Array.isArray(e)?e:[e]).forEach(e=>this._styles.remove(e))}_setCustomProperty(e,t){this._customProperties.set(e,t)}_removeCustomProperty(e){return this._customProperties.delete(e)}}function wn(e,t){const n=t.split(/\s+/);e.clear(),n.forEach(t=>e.add(t))}class kn extends _n{constructor(e,t,n,i){super(e,t,n,i),this.getFillerOffset=Cn}is(e,t=null){return t?t===this.name&&("containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}}function Cn(){const e=[...this.getChildren()],t=e[this.childCount-1];if(t&&t.is("element","br"))return this.childCount;for(const n of e)if(!n.is("uiElement"))return null;return this.childCount}var Sn=fn(function(e,t){Z(t,_e(t),e)});const Tn=Symbol("observableProperties"),Pn=Symbol("boundObservables"),On=Symbol("boundProperties"),xn={set(e,t){if(T(e))return void Object.keys(e).forEach(t=>{this.set(t,e[t])},this);En(this);const n=this[Tn];if(e in this&&!n.has(e))throw new ft.b("observable-set-cannot-override: Cannot override an existing property.",this);Object.defineProperty(this,e,{enumerable:!0,configurable:!0,get:()=>n.get(e),set(t){const i=n.get(e);let r=this.fire("set:"+e,e,t,i);void 0===r&&(r=t),i===r&&n.has(e)||(n.set(e,r),this.fire("change:"+e,e,r,i))}}),this[e]=t},bind(...e){if(!e.length||!Rn(e))throw new ft.b("observable-bind-wrong-properties: All properties must be strings.",this);if(new Set(e).size!==e.length)throw new ft.b("observable-bind-duplicate-properties: Properties must be unique.",this);En(this);const t=this[On];e.forEach(e=>{if(t.has(e))throw new ft.b("observable-bind-rebind: Cannot bind the same property more than once.",this)});const n=new Map;return e.forEach(e=>{const i={property:e,to:[]};t.set(e,i),n.set(e,i)}),{to:Mn,toMany:In,_observable:this,_bindProperties:e,_to:[],_bindings:n}},unbind(...e){if(!this[Tn])return;const t=this[On],n=this[Pn];if(e.length){if(!Rn(e))throw new ft.b("observable-unbind-wrong-properties: Properties must be strings.",this);e.forEach(e=>{const i=t.get(e);if(!i)return;let r,s,o,a;i.to.forEach(e=>{r=e[0],s=e[1],o=n.get(r),a=o[s],a.delete(i),a.size||delete o[s],Object.keys(o).length||(n.delete(r),this.stopListening(r,"change"))}),t.delete(e)})}else n.forEach((e,t)=>{this.stopListening(t,"change")}),n.clear(),t.clear()},decorate(e){const t=this[e];if(!t)throw new ft.b("observablemixin-cannot-decorate-undefined: Cannot decorate an undefined method.",this,{object:this,methodName:e});this.on(e,(e,n)=>{e.return=t.apply(this,n)}),this[e]=function(...t){return this.fire(e,t)}}};Sn(xn,bt);var An=xn;function En(e){e[Tn]||(Object.defineProperty(e,Tn,{value:new Map}),Object.defineProperty(e,Pn,{value:new Map}),Object.defineProperty(e,On,{value:new Map}))}function Mn(...e){const t=function(...e){if(!e.length)throw new ft.b("observable-bind-to-parse-error: Invalid argument syntax in `to()`.",null);const t={to:[]};let n;return"function"==typeof e[e.length-1]&&(t.callback=e.pop()),e.forEach(e=>{if("string"==typeof e)n.properties.push(e);else{if("object"!=typeof e)throw new ft.b("observable-bind-to-parse-error: Invalid argument syntax in `to()`.",null);n={observable:e,properties:[]},t.to.push(n)}}),t}(...e),n=Array.from(this._bindings.keys()),i=n.length;if(!t.callback&&t.to.length>1)throw new ft.b("observable-bind-to-no-callback: Binding multiple observables only possible with callback.",this);if(i>1&&t.callback)throw new ft.b("observable-bind-to-extra-callback: Cannot bind multiple properties and use a callback in one binding.",this);var r;t.to.forEach(e=>{if(e.properties.length&&e.properties.length!==i)throw new ft.b("observable-bind-to-properties-length: The number of properties must match.",this);e.properties.length||(e.properties=this._bindProperties)}),this._to=t.to,t.callback&&(this._bindings.get(n[0]).callback=t.callback),r=this._observable,this._to.forEach(e
1=>{const t=r[Pn];let n;t.get(e.observable)||r.listenTo(e.observable,"change",(i,s)=>{n=t.get(e.observable)[s],n&&n.forEach(e=>{Ln(r,e.property)})})}),function(e){let t;e._bindings.forEach((n,i)=>{e._to.forEach(r=>{t=r.properties[n.callback?0:e._bindProperties.indexOf(i)],n.to.push([r.observable,t]),function(e,t,n,i){const r=e[Pn],s=r.get(n),o=s||{};o[i]||(o[i]=new Set),o[i].add(t),s||r.set(n,o)}(e._observable,n,r.observable,t)})})}(this),this._bindProperties.forEach(e=>{Ln(this._observable,e)})}function In(e,t,n){if(this._bindings.size>1)throw new ft.b("observable-bind-to-many-not-one-binding: Cannot bind multiple properties with toMany().",this);this.to(...function(e,t){const n=e.map(e=>[e,t]);return Array.prototype.concat.apply([],n)}(e,t),n)}function Rn(e){return e.every(e=>"string"==typeof e)}function Ln(e,t){const n=e[On].get(t);let i;n.callback?i=n.callback.apply(e,n.to.map(e=>e[0][e[1]])):(i=n.to[0],i=i[0][i[1]]),Object.prototype.hasOwnProperty.call(e,t)?e[t]=i:e.set(t,i)}class Dn extends kn{constructor(e,t,n,i){super(e,t,n,i),this.set("isReadOnly",!1),this.set("isFocused",!1),this.bind("isReadOnly").to(e),this.bind("isFocused").to(e,"isFocused",t=>t&&e.selection.editableElement==this),this.listenTo(e.selection,"change",()=>{this.isFocused=e.isFocused&&e.selection.editableElement==this})}is(e,t=null){return t?t===this.name&&("editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}destroy(){this.stopListening()}}Tt(Dn,An);const jn=Symbol("rootName");class Nn extends Dn{constructor(e,t){super(e,t),this.rootName="main"}is(e,t=null){return t?t===this.name&&("rootElement"===e||"view:rootElement"===e||"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"rootElement"===e||"view:rootElement"===e||"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}get rootName(){return this.getCustomProperty(jn)}set rootName(e){this._setCustomProperty(jn,e)}set _name(e){this.name=e}}class Vn{constructor(e={}){if(!e.boundaries&&!e.startPosition)throw new ft.b("view-tree-walker-no-start-position: Neither boundaries nor starting position have been defined.",null);if(e.direction&&"forward"!=e.direction&&"backward"!=e.direction)throw new ft.b("view-tree-walker-unknown-direction: Only `backward` and `forward` direction allowed.",e.startPosition,{direction:e.direction});this.boundaries=e.boundaries||null,this.position=zn._createAt(e.startPosition?e.startPosition:e.boundaries["backward"==e.direction?"end":"start"]),this.direction=e.direction||"forward",this.singleCharacters=!!e.singleCharacters,this.shallow=!!e.shallow,this.ignoreElementEnd=!!e.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}skip(e){let t,n,i;do{i=this.position,({done:t,value:n}=this.next())}while(!t&&e(n));t||(this.position=i)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let e=this.position.clone();const t=this.position,n=e.parent;if(null===n.parent&&e.offset===n.childCount)return{done:!0};if(n===this._boundaryEndParent&&e.offset==this.boundaries.end.offset)return{done:!0};let i;if(n instanceof Dt){if(e.isAtEnd)return this.position=zn._createAfter(n),this._next();i=n.data[e.offset]}else i=n.getChild(e.offset);if(i instanceof _n)return this.shallow?e.offset++:e=new zn(i,0),this.position=e,this._formatReturnValue("elementStart",i,t,e,1);if(i instanceof Dt){if(this.singleCharacters)return e=new zn(i,0),this.position=e,this._next();{let n,r=i.data.length;return i==this._boundaryEndParent?(r=this.boundaries.end.offset,n=new jt(i,0,r),e=zn._createAfter(n)):(n=new jt(i,0,i.data.length),e.offset++),this.position=e,this._formatReturnValue("text",n,t,e,r)}}if("string"==typeof i){let i;i=this.singleCharacters?1:(n===this._boundaryEndParent?this.boundaries.end.offset:n.data.length)-e.offset;const r=new jt(n,e.offset,i);return e.offset+=i,this.position=e,this._formatReturnValue("text",r,t,e,i)}return e=zn._createAfter(n),this.position=e,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",n,t,e)}_previous(){let e=this.position.clone();const t=this.position,n=e.parent;if(null===n.parent&&0===e.offset)return{done:!0};if(n==this._boundaryStartParent&&e.offset==this.boundaries.start.offset)return{done:!0};let i;if(n instanceof Dt){if(e.isAtStart)return this.position=zn._createBefore(n),this._previous();i=n.data[e.offset-1]}else i=n.getChild(e.offset-1);if(i instanceof _n)return this.shallow?(e.offset--,this.position=e,this._formatReturnValue("elementStart",i,t,e,1)):(e=new zn(i,i.childCount),this.position=e,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",i,t,e));if(i instanceof Dt){if(this.singleCharacters)return e=new zn(i,i.data.length),this.position=e,this._previous();{let n,r=i.data.length;if(i==this._boundaryStartParent){const t=this.boundaries.start.offset;n=new jt(i,t,i.data.length-t),r=n.data.length,e=zn._createBefore(n)}else n=new jt(i,0,i.data.length),e.offset--;return this.position=e,this._formatReturnValue("text",n,t,e,r)}}if("string"==typeof i){let i;i=this.singleCharacters?1:e.offset-(n===this._boundaryStartParent?this.boundaries.start.offset:0),e.offset-=i;const r=new jt(n,e.offset,i);return this.position=e,this._formatReturnValue("text",r,t,e,i)}return e=zn._createBefore(n),this.position=e,this._formatReturnValue("elementStart",n,t,e,1)}_formatReturnValue(e,t,n,i,r){return t instanceof jt&&(t.offsetInText+t.data.length==t.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?n=zn._createAfter(t.textNode):(i=zn._createAfter(t.textNode),this.position=i)),0===t.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?n=zn._createBefore(t.textNode):(i=zn._createBefore(t.textNode),this.position=i))),{done:!1,value:{type:e,item:t,previousPosition:n,nextPosition:i,length:r}}}}class zn{constructor(e,t){this.parent=e,this.offset=t}get nodeAfter(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return 0===this.offset}get isAtEnd(){const e=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===e}get root(){return this.parent.root}get editableElement(){let e=this.parent;for(;!(e instanceof Dn);){if(!e.parent)return null;e=e.parent}return e}getShiftedBy(e){const t=zn._createAt(this),n=t.offset+e;return t.offset=n<0?0:n,t}getLastMatchingPosition(e,t={}){t.startPosition=this;const n=new Vn(t);return n.skip(e),n.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(e){const t=this.getAncestors(),n=e.getAncestors();let i=0;for(;t[i]==n[i]&&t[i];)i++;return 0===i?null:t[i-1]}is(e){return"position"===e||"view:position"===e}isEqual(e){return this.parent==e.parent&&this.offset==e.offset}isBefore(e){return"before"==this.compareWith(e)}isAfter(e){return"after"==this.compareWith(e)}compareWith(e){if(this.root!==e.root)return"different";if(this.isEqual(e))return"same";const t=this.parent.is("node")?this.parent.getPath():[],n=e.parent.is("node")?e.parent.getPath():[];t.push(this.offset),n.push(e.offset);const i=It(t,n);switch(i){case"prefix":return"before";case"extension":return"after";default:return t[i]<n[i]?"before":"after"}}getWalker(e={}){return e.startPosition=this,new Vn(e)}clone(){return new zn(this.parent,this.offset)}static _createAt(e,t){if(e instanceof zn)return new this(e.parent,e.offset);{const n=e;if("end"==t)t=n.is("$text")?n.data.length:n.childCount;else{if("before"==t)return this._createBefore(n);if("after"==t)return this._createAfter(n);if(0!==t&&!t)throw new ft.b("view-createPositionAt-offset-required: View#createPositionAt() requires the offset when the first parameter is a view item.",n)}return new zn(n,t)}}static _createAfter(e){if(e.is("$textProxy"))return new zn(e.textNode,e.offsetInText+e.data.length);if(!e.parent)throw new ft.b("view-position-after-root: You can not make position after root.",e,{root:e});return new zn(e.parent,e.index+1)}static _createBefore(e){if(e.is("$textProxy"))return new zn(e.textNode,e.offsetInText);if(!e.parent)throw new ft.b("view-position-before-root: You can not make position before root.",e,{root:e});return new zn(e.parent,e.index)}}class Fn{constructor(e,t=null){this.start=e.clone(),this.end=t?t.clone():e.clone()}*[Symbol.iterator](){yield*new Vn({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return this.start.parent===this.end.parent}get root(){return this.start.root}getEnlarged(){let e=this.start.getLastMatchingPosition(Bn,{direction:"backward"}),t=this.end.getLastMatchingPosition(Bn);return e.parent.is("$text")&&e.isAtStart&&(e=zn._createBefore(e.parent)),t.parent.is("$text")&&t.isAtEnd&&(t=zn._createAfter(t.parent)),new Fn(e,t)}getTrimmed(){let e=this.start.getLastMatchingPosition(Bn);if(e.isAfter(this.end)||e.isEqual(this.end))return new Fn(e,e);let t=this.end.getLastMatchingPosition(Bn,{direction:"backward"});const n=e.nodeAfter,i=t.nodeBefore;return n&&n.is("$text")&&(e=new zn(n,0)),i&&i.is("$text")&&(t=new zn(i,i.data.length)),new Fn(e,t)}isEqual(e){return this==e||this.start.isEqual(e.start)&&this.end.isEqual(e.end)}containsPosition(e){return e.isAfter(this.start)&&e.isBefore(this.end)}containsRange(e,t=!1){e.isCollapsed&&(t=!1);const n=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),i=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return n&&i}getDifference(e){const t=[];return this.isIntersecting(e)?(this.containsPosition(e.start)&&t.push(new Fn(this.start,e.start)),this.containsPosition(e.end)&&t.pu
1sh(new Fn(e.end,this.end))):t.push(this.clone()),t}getIntersection(e){if(this.isIntersecting(e)){let t=this.start,n=this.end;return this.containsPosition(e.start)&&(t=e.start),this.containsPosition(e.end)&&(n=e.end),new Fn(t,n)}return null}getWalker(e={}){return e.boundaries=this,new Vn(e)}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;let e=this.start.nodeAfter,t=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(e=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(t=this.end.parent.previousSibling),e&&e.is("element")&&e===t?e:null}clone(){return new Fn(this.start,this.end)}*getItems(e={}){e.boundaries=this,e.ignoreElementEnd=!0;const t=new Vn(e);for(const n of t)yield n.item}*getPositions(e={}){e.boundaries=this;const t=new Vn(e);yield t.position;for(const n of t)yield n.nextPosition}is(e){return"range"===e||"view:range"===e}isIntersecting(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}static _createFromParentsAndOffsets(e,t,n,i){return new this(new zn(e,t),new zn(n,i))}static _createFromPositionAndShift(e,t){const n=e,i=e.getShiftedBy(t);return t>0?new this(n,i):new this(i,n)}static _createIn(e){return this._createFromParentsAndOffsets(e,0,e,e.childCount)}static _createOn(e){const t=e.is("$textProxy")?e.offsetSize:1;return this._createFromPositionAndShift(zn._createBefore(e),t)}}function Bn(e){return!(!e.item.is("attributeElement")&&!e.item.is("uiElement"))}function qn(e){let t=0;for(const n of e)t++;return t}class Un{constructor(e=null,t,n){this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",this.setTo(e,t,n)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.end:e.start).clone()}get focus(){if(!this._ranges.length)return null;const e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.start:e.end).clone()}get isCollapsed(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const e of this._ranges)yield e.clone()}getFirstRange(){let e=null;for(const t of this._ranges)e&&!t.start.isBefore(e.start)||(e=t);return e?e.clone():null}getLastRange(){let e=null;for(const t of this._ranges)e&&!t.end.isAfter(e.end)||(e=t);return e?e.clone():null}getFirstPosition(){const e=this.getFirstRange();return e?e.start.clone():null}getLastPosition(){const e=this.getLastRange();return e?e.end.clone():null}isEqual(e){if(this.isFake!=e.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=e.fakeSelectionLabel)return!1;if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;for(const t of this._ranges){let n=!1;for(const i of e._ranges)if(t.isEqual(i)){n=!0;break}if(!n)return!1}return!0}isSimilar(e){if(this.isBackward!=e.isBackward)return!1;const t=qn(this.getRanges());if(t!=qn(e.getRanges()))return!1;if(0==t)return!0;for(let n of this.getRanges()){n=n.getTrimmed();let t=!1;for(let i of e.getRanges())if(i=i.getTrimmed(),n.start.isEqual(i.start)&&n.end.isEqual(i.end)){t=!0;break}if(!t)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(e,t,n){if(null===e)this._setRanges([]),this._setFakeOptions(t);else if(e instanceof Un||e instanceof Hn)this._setRanges(e.getRanges(),e.isBackward),this._setFakeOptions({fake:e.isFake,label:e.fakeSelectionLabel});else if(e instanceof Fn)this._setRanges([e],t&&t.backward),this._setFakeOptions(t);else if(e instanceof zn)this._setRanges([new Fn(e)]),this._setFakeOptions(t);else if(e instanceof Lt){const i=!!n&&!!n.backward;let r;if(void 0===t)throw new ft.b("view-selection-setTo-required-second-parameter: selection.setTo requires the second parameter when the first parameter is a node.",this);r="in"==t?Fn._createIn(e):"on"==t?Fn._createOn(e):new Fn(zn._createAt(e,t)),this._setRanges([r],i),this._setFakeOptions(n)}else{if(!St(e))throw new ft.b("view-selection-setTo-not-selectable: Cannot set selection to given place.",this);this._setRanges(e,t&&t.backward),this._setFakeOptions(t)}this.fire("change")}setFocus(e,t){if(null===this.anchor)throw new ft.b("view-selection-setFocus-no-ranges: Cannot set selection focus if there are no ranges in selection.",this);const n=zn._createAt(e,t);if("same"==n.compareWith(this.focus))return;const i=this.anchor;this._ranges.pop(),"before"==n.compareWith(i)?this._addRange(new Fn(n,i),!0):this._addRange(new Fn(i,n)),this.fire("change")}is(e){return"selection"===e||"view:selection"===e}_setRanges(e,t=!1){e=Array.from(e),this._ranges=[];for(const n of e)this._addRange(n);this._lastRangeBackward=!!t}_setFakeOptions(e={}){this._isFake=!!e.fake,this._fakeSelectionLabel=e.fake&&e.label||""}_addRange(e,t=!1){if(!(e instanceof Fn))throw new ft.b("view-selection-add-range-not-range: Selection range set to an object that is not an instance of view.Range",this);this._pushRange(e),this._lastRangeBackward=!!t}_pushRange(e){for(const t of this._ranges)if(e.isIntersecting(t))throw new ft.b("view-selection-range-intersects: Trying to add a range that intersects with another range from selection.",this,{addedRange:e,intersectingRange:t});this._ranges.push(new Fn(e.start,e.end))}}Tt(Un,bt);class Hn{constructor(e=null,t,n){this._selection=new Un,this._selection.delegate("change").to(this),this._selection.setTo(e,t,n)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(e){return this._selection.isEqual(e)}isSimilar(e){return this._selection.isSimilar(e)}is(e){return"selection"===e||"documentSelection"==e||"view:selection"==e||"view:documentSelection"==e}_setTo(e,t,n){this._selection.setTo(e,t,n)}_setFocus(e,t){this._selection.setFocus(e,t)}}Tt(Hn,bt);class Wn{constructor(e){this.selection=new Hn,this.roots=new Pt({idProperty:"rootName"}),this.stylesProcessor=e,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isComposing",!1),this._postFixers=new Set}getRoot(e="main"){return this.roots.get(e)}registerPostFixer(e){this._postFixers.add(e)}destroy(){this.roots.map(e=>e.destroy()),this.stopListening()}_callPostFixers(e){let t=!1;do{for(const n of this._postFixers)if(t=n(e),t)break}while(t)}}Tt(Wn,An);class Gn extends _n{constructor(e,t,n,i){super(e,t,n,i),this.getFillerOffset=Yn,this._priority=10,this._id=null,this._clonesGroup=null}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new ft.b("attribute-element-get-elements-with-same-id-no-id: Cannot get elements with the same id for an attribute element without id.",this);return new Set(this._clonesGroup)}is(e,t=null){return t?t===this.name&&("attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e):"attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}isSimilar(e){return null!==this.id||null!==e.id?this.id===e.id:super.isSimilar(e)&&this.priority==e.priority}_clone(e){const t=super._clone(e);return t._priority=this._priority,t._id=this._id,t}}function Yn(){if($n(this))return null;let e=this.parent;for(;e&&e.is("attributeElement");){if($n(e)>1)return null;e=e.parent}return!e||$n(e)>1?null:this.childCount}function $n(e){return Array.from(e.getChildren()).filter(e=>!e.is("uiElement")).length}Gn.DEFAULT_PRIORITY=10;class Zn extends _n{constructor(e,t,n,i){super(e,t,n,i),this.getFillerOffset=Qn}is(e,t=null){return t?t===this.name&&("emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e):"emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}_insertChild(e,t){if(t&&(t instanceof Lt||Array.from(t).length>0))throw new ft.b("view-emptyelement-cannot-add: Cannot add child nodes to EmptyElement instance.",[this,t])}}function Qn(){return null}const Xn=navigator.userAgent.toLowerCase();var Kn=function(e){return e.indexOf("macintosh")>-1}(Xn),Jn=function(e){return!!e.match(/gecko\/\d+/)}(Xn),ei=function(e){return e.indexOf(" applewebkit/")>-1&&-1===e.indexOf("chrome")}(Xn),ti=function(e){return e.indexOf("android")>-1}(Xn);!function(){let e=!1;
1try{e=0==="\u0107".search(new RegExp("[\\p{L}]","u"))}catch(e){}}();const ni={"\u2318":"ctrl","\u21e7":"shift","\u2325":"alt"},ii={ctrl:"\u2318",shift:"\u21e7",alt:"\u2325"},ri=function(){const e={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,cmd:1114112,shift:2228224,alt:4456448};for(let t=65;t<=90;t++)e[String.fromCharCode(t).toLowerCase()]=t;for(let t=48;t<=57;t++)e[t-48]=t;for(let t=112;t<=123;t++)e["f"+(t-111)]=t;return e}();function si(e){let t;if("string"==typeof e){if(t=ri[e.toLowerCase()],!t)throw new ft.b("keyboard-unknown-key: Unknown key name.",null,{key:e})}else t=e.keyCode+(e.altKey?ri.alt:0)+(e.ctrlKey?ri.ctrl:0)+(e.shiftKey?ri.shift:0);return t}function oi(e){return"string"==typeof e&&(e=di(e)),e.map(e=>"string"==typeof e?si(e):e).reduce((e,t)=>t+e,0)}function ai(e){return Kn?di(e).map(e=>ii[e.toLowerCase()]||e).reduce((e,t)=>e.slice(-1)in ni?e+t:e+"+"+t):e}function ci(e){return e==ri.arrowright||e==ri.arrowleft||e==ri.arrowup||e==ri.arrowdown}function li(e,t){const n="ltr"===t;switch(e){case ri.arrowleft:return n?"left":"right";case ri.arrowright:return n?"right":"left";case ri.arrowup:return"up";case ri.arrowdown:return"down"}}function ui(e,t){const n=li(e,t);return"down"===n||"right"===n}function di(e){return e.split(/\s*\+\s*/)}class hi extends _n{constructor(e,t,n,i){super(e,t,n,i),this.getFillerOffset=pi}is(e,t=null){return t?t===this.name&&("uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e):"uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}_insertChild(e,t){if(t&&(t instanceof Lt||Array.from(t).length>0))throw new ft.b("view-uielement-cannot-add: Cannot add child nodes to UIElement instance.",this)}render(e){return this.toDomElement(e)}toDomElement(e){const t=e.createElement(this.name);for(const n of this.getAttributeKeys())t.setAttribute(n,this.getAttribute(n));return t}}function pi(){return null}class fi extends _n{constructor(e,t,n,i){super(e,t,n,i),this.getFillerOffset=gi}is(e,t=null){return t?t===this.name&&("rawElement"===e||"view:rawElement"===e||"element"===e||"view:element"===e):"rawElement"===e||"view:rawElement"===e||e===this.name||e==="view:"+this.name||"element"===e||"view:element"===e||"node"===e||"view:node"===e}_insertChild(e,t){if(t&&(t instanceof Lt||Array.from(t).length>0))throw new ft.b("view-rawelement-cannot-add: Cannot add child nodes to a RawElement instance.",[this,t])}}function gi(){return null}class mi{constructor(e,t){this.document=e,this._children=[],t&&this._insertChild(0,t)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}is(e){return"documentFragment"===e||"view:documentFragment"===e}_appendChild(e){return this._insertChild(this.childCount,e)}getChild(e){return this._children[e]}getChildIndex(e){return this._children.indexOf(e)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(e,t){this._fireChange("children",this);let n=0;const i=function(e,t){return"string"==typeof t?[new Dt(e,t)]:(St(t)||(t=[t]),Array.from(t).map(t=>"string"==typeof t?new Dt(e,t):t instanceof jt?new Dt(e,t.data):t))}(this.document,t);for(const r of i)null!==r.parent&&r._remove(),r.parent=this,this._children.splice(e,0,r),e++,n++;return n}_removeChildren(e,t=1){this._fireChange("children",this);for(let n=e;n<e+t;n++)this._children[n].parent=null;return this._children.splice(e,t)}_fireChange(e,t){this.fire("change:"+e,t)}}Tt(mi,bt);class bi{constructor(e){this.document=e,this._cloneGroups=new Map}setSelection(e,t,n){this.document.selection._setTo(e,t,n)}setSelectionFocus(e,t){this.document.selection._setFocus(e,t)}createText(e){return new Dt(this.document,e)}createAttributeElement(e,t,n={}){const i=new Gn(this.document,e,t);return n.priority&&(i._priority=n.priority),n.id&&(i._id=n.id),i}createContainerElement(e,t){return new kn(this.document,e,t)}createEditableElement(e,t){const n=new Dn(this.document,e,t);return n._document=this.document,n}createEmptyElement(e,t){return new Zn(this.document,e,t)}createUIElement(e,t,n){const i=new hi(this.document,e,t);return n&&(i.render=n),i}createRawElement(e,t,n){const i=new fi(this.document,e,t);return i.render=n||(()=>{}),i}setAttribute(e,t,n){n._setAttribute(e,t)}removeAttribute(e,t){t._removeAttribute(e)}addClass(e,t){t._addClass(e)}removeClass(e,t){t._removeClass(e)}setStyle(e,t,n){y(e)&&void 0===n&&(n=t),n._setStyle(e,t)}removeStyle(e,t){t._removeStyle(e)}setCustomProperty(e,t,n){n._setCustomProperty(e,t)}removeCustomProperty(e,t){return t._removeCustomProperty(e)}breakAttributes(e){return e instanceof zn?this._breakAttributes(e):this._breakAttributesRange(e)}breakContainer(e){const t=e.parent;if(!t.is("containerElement"))throw new ft.b("view-writer-break-non-container-element: Trying to break an element which is not a container element.",this.document);if(!t.parent)throw new ft.b("view-writer-break-root: Trying to break root element.",this.document);if(e.isAtStart)return zn._createBefore(t);if(!e.isAtEnd){const n=t._clone(!1);this.insert(zn._createAfter(t),n);const i=new Fn(e,zn._createAt(t,"end")),r=new zn(n,0);this.move(i,r)}return zn._createAfter(t)}mergeAttributes(e){const t=e.offset,n=e.parent;if(n.is("$text"))return e;if(n.is("attributeElement")&&0===n.childCount){const e=n.parent,t=n.index;return n._remove(),this._removeFromClonedElementsGroup(n),this.mergeAttributes(new zn(e,t))}const i=n.getChild(t-1),r=n.getChild(t);if(!i||!r)return e;if(i.is("$text")&&r.is("$text"))return ki(i,r);if(i.is("attributeElement")&&r.is("attributeElement")&&i.isSimilar(r)){const e=i.childCount;return i._appendChild(r.getChildren()),r._remove(),this._removeFromClonedElementsGroup(r),this.mergeAttributes(new zn(i,e))}return e}mergeContainers(e){const t=e.nodeBefore,n=e.nodeAfter;if(!(t&&n&&t.is("containerElement")&&n.is("containerElement")))throw new ft.b("view-writer-merge-containers-invalid-position: Element before and after given position cannot be merged.",this.document);const i=t.getChild(t.childCount-1),r=zn._createAt(i instanceof Dt?i:t,"end");return this.move(Fn._createIn(n),zn._createAt(t,"end")),this.remove(Fn._createOn(n)),r}insert(e,t){!function e(t,n){for(const i of t){if(!Ci.some(e=>i instanceof e))throw new ft.b("view-writer-insert-invalid-node",n);i.is("$text")||e(i.getChildren(),n)}}(t=St(t)?[...t]:[t],this.document);const n=yi(e);if(!n)throw new ft.b("view-writer-invalid-position-container",this.document);const i=this._breakAttributes(e,!0),r=n._insertChild(i.offset,t);for(const a of t)this._addToClonedElementsGroup(a);const s=i.getShiftedBy(r),o=this.mergeAttributes(i);if(0===r)return new Fn(o,o);{o.isEqual(i)||s.offset--;const e=this.mergeAttributes(s);return new Fn(o,e)}}remove(e){const t=e instanceof Fn?e:Fn._createOn(e);if(Ti(t,this.document),t.isCollapsed)return new mi(this.document);const{start:n,end:i}=this._breakAttributesRange(t,!0),r=n.parent._removeChildren(n.offset,i.offset-n.offset);for(const o of r)this._removeFromClonedElementsGroup(o);const s=this.mergeAttributes(n);return t.start=s,t.end=s.clone(),new mi(this.document,r)}clear(e,t){Ti(e,this.document);const n=e.getWalker({direction:"backward",ignoreElementEnd:!0});for(const i of n){const n=i.item;let r;if(n.is("element")&&t.isSimilar(n))r=Fn._createOn(n);else if(!i.nextPosition.isAfter(e.start)&&n.is("$textProxy")){const e=n.getAncestors().find(e=>e.is("element")&&t.isSimilar(e));e&&(r=Fn._createIn(e))}r&&(r.end.isAfter(e.end)&&(r.end=e.end),r.start.isBefore(e.start)&&(r.start=e.start),this.remove(r))}}move(e,t){let n;if(t.isAfter(e.end)){const i=(t=this._breakAttributes(t,!0)).parent,r=i.childCount;e=this._breakAttributesRange(e,!0),n=this.remove(e),t.offset+=i.childCount-r}else n=this.remove(e);return this.insert(t,n)}wrap(e,t){if(!(t instanceof Gn))throw new ft.b("view-writer-wrap-invalid-attribute",this.document);if(Ti(e,this.document),e.isCollapsed){let n=e.start;n.parent.is("element")&&!Array.from(n.parent.getChildren()).some(e=>!e.is("uiElement"))&&(n=n.getLastMatchingPosition(e=>e.item.is("uiElement"))),n=this._wrapPosition(n,t);const i=this.document.selection;return i.isCollapsed&&i.getFirstPosition().isEqual(e.start)&&this.setSelection(n),new Fn(n)}return this._wrapRange(e,t)}unwrap(e,t){if(!(t instanceof Gn))throw new ft.b("view-writer-unwrap-invalid-attribute",this.document);if(Ti(e,this.document),e.isCollapsed)return e;const{start:n,end:i}=this._breakAttributesRange(e,!0),r=this._unwrapChildren(n.parent,n.offset,i.offset,t),s=this.mergeAttributes(r.start);s.isEqual(r.start)||r.end.offset--;
1const o=this.mergeAttributes(r.end);return new Fn(s,o)}rename(e,t){const n=new kn(this.document,e,t.getAttributes());return this.insert(zn._createAfter(t),n),this.move(Fn._createIn(t),zn._createAt(n,0)),this.remove(Fn._createOn(t)),n}clearClonedElementsGroup(e){this._cloneGroups.delete(e)}createPositionAt(e,t){return zn._createAt(e,t)}createPositionAfter(e){return zn._createAfter(e)}createPositionBefore(e){return zn._createBefore(e)}createRange(e,t){return new Fn(e,t)}createRangeOn(e){return Fn._createOn(e)}createRangeIn(e){return Fn._createIn(e)}createSelection(e,t,n){return new Un(e,t,n)}_wrapChildren(e,t,n,i){let r=t;const s=[];for(;r<n;){const t=e.getChild(r),n=t.is("$text"),o=t.is("attributeElement"),a=t.is("emptyElement"),c=t.is("uiElement"),l=t.is("rawElement");if(o&&this._wrapAttributeElement(i,t))s.push(new zn(e,r));else if(n||a||c||l||o&&vi(i,t)){const n=i._clone();t._remove(),n._appendChild(t),e._insertChild(r,n),this._addToClonedElementsGroup(n),s.push(new zn(e,r))}else o&&this._wrapChildren(t,0,t.childCount,i);r++}let o=0;for(const a of s)a.offset-=o,a.offset!=t&&(this.mergeAttributes(a).isEqual(a)||(o++,n--));return Fn._createFromParentsAndOffsets(e,t,e,n)}_unwrapChildren(e,t,n,i){let r=t;const s=[];for(;r<n;){const t=e.getChild(r);if(t.is("attributeElement"))if(t.isSimilar(i)){const i=t.getChildren(),o=t.childCount;t._remove(),e._insertChild(r,i),this._removeFromClonedElementsGroup(t),s.push(new zn(e,r),new zn(e,r+o)),r+=o,n+=o-1}else this._unwrapAttributeElement(i,t)?(s.push(new zn(e,r),new zn(e,r+1)),r++):(this._unwrapChildren(t,0,t.childCount,i),r++);else r++}let o=0;for(const a of s)a.offset-=o,a.offset!=t&&a.offset!=n&&(this.mergeAttributes(a).isEqual(a)||(o++,n--));return Fn._createFromParentsAndOffsets(e,t,e,n)}_wrapRange(e,t){const{start:n,end:i}=this._breakAttributesRange(e,!0),r=this._wrapChildren(n.parent,n.offset,i.offset,t),s=this.mergeAttributes(r.start);s.isEqual(r.start)||r.end.offset--;const o=this.mergeAttributes(r.end);return new Fn(s,o)}_wrapPosition(e,t){if(t.isSimilar(e.parent))return _i(e.clone());e.parent.is("$text")&&(e=wi(e));const n=this.createAttributeElement();n._priority=Number.POSITIVE_INFINITY,n.isSimilar=()=>!1,e.parent._insertChild(e.offset,n);const i=new Fn(e,e.getShiftedBy(1));this.wrap(i,t);const r=new zn(n.parent,n.index);n._remove();const s=r.nodeBefore,o=r.nodeAfter;return s instanceof Dt&&o instanceof Dt?ki(s,o):_i(r)}_wrapAttributeElement(e,t){if(!Pi(e,t))return!1;if(e.name!==t.name||e.priority!==t.priority)return!1;for(const n of e.getAttributeKeys())if("class"!==n&&"style"!==n&&t.hasAttribute(n)&&t.getAttribute(n)!==e.getAttribute(n))return!1;for(const n of e.getStyleNames())if(t.hasStyle(n)&&t.getStyle(n)!==e.getStyle(n))return!1;for(const n of e.getAttributeKeys())"class"!==n&&"style"!==n&&(t.hasAttribute(n)||this.setAttribute(n,e.getAttribute(n),t));for(const n of e.getStyleNames())t.hasStyle(n)||this.setStyle(n,e.getStyle(n),t);for(const n of e.getClassNames())t.hasClass(n)||this.addClass(n,t);return!0}_unwrapAttributeElement(e,t){if(!Pi(e,t))return!1;if(e.name!==t.name||e.priority!==t.priority)return!1;for(const n of e.getAttributeKeys())if("class"!==n&&"style"!==n&&(!t.hasAttribute(n)||t.getAttribute(n)!==e.getAttribute(n)))return!1;if(!t.hasClass(...e.getClassNames()))return!1;for(const n of e.getStyleNames())if(!t.hasStyle(n)||t.getStyle(n)!==e.getStyle(n))return!1;for(const n of e.getAttributeKeys())"class"!==n&&"style"!==n&&this.removeAttribute(n,t);return this.removeClass(Array.from(e.getClassNames()),t),this.removeStyle(Array.from(e.getStyleNames()),t),!0}_breakAttributesRange(e,t=!1){const n=e.start,i=e.end;if(Ti(e,this.document),e.isCollapsed){const n=this._breakAttributes(e.start,t);return new Fn(n,n)}const r=this._breakAttributes(i,t),s=r.parent.childCount,o=this._breakAttributes(n,t);return r.offset+=r.parent.childCount-s,new Fn(o,r)}_breakAttributes(e,t=!1){const n=e.offset,i=e.parent;if(e.parent.is("emptyElement"))throw new ft.b("view-writer-cannot-break-empty-element",this.document);if(e.parent.is("uiElement"))throw new ft.b("view-writer-cannot-break-ui-element",this.document);if(e.parent.is("rawElement"))throw new ft.b("view-writer-cannot-break-raw-element: Cannot break inside a RawElement instance.",this.document);if(!t&&i.is("$text")&&Si(i.parent))return e.clone();if(Si(i))return e.clone();if(i.is("$text"))return this._breakAttributes(wi(e),t);if(n==i.childCount){const e=new zn(i.parent,i.index+1);return this._breakAttributes(e,t)}if(0===n){const e=new zn(i.parent,i.index);return this._breakAttributes(e,t)}{const e=i.index+1,r=i._clone();i.parent._insertChild(e,r),this._addToClonedElementsGroup(r);const s=i._removeChildren(n,i.childCount-n);r._appendChild(s);const o=new zn(i.parent,e);return this._breakAttributes(o,t)}}_addToClonedElementsGroup(e){if(!e.root.is("rootElement"))return;if(e.is("element"))for(const i of e.getChildren())this._addToClonedElementsGroup(i);const t=e.id;if(!t)return;let n=this._cloneGroups.get(t);n||(n=new Set,this._cloneGroups.set(t,n)),n.add(e),e._clonesGroup=n}_removeFromClonedElementsGroup(e){if(e.is("element"))for(const i of e.getChildren())this._removeFromClonedElementsGroup(i);const t=e.id;if(!t)return;const n=this._cloneGroups.get(t);n&&n.delete(e)}}function yi(e){let t=e.parent;for(;!Si(t);){if(!t)return;t=t.parent}return t}function vi(e,t){return e.priority<t.priority||!(e.priority>t.priority)&&e.getIdentity()<t.getIdentity()}function _i(e){const t=e.nodeBefore;if(t&&t.is("$text"))return new zn(t,t.data.length);const n=e.nodeAfter;return n&&n.is("$text")?new zn(n,0):e}function wi(e){if(e.offset==e.parent.data.length)return new zn(e.parent.parent,e.parent.index+1);if(0===e.offset)return new zn(e.parent.parent,e.parent.index);const t=e.parent.data.slice(e.offset);return e.parent._data=e.parent.data.slice(0,e.offset),e.parent.parent._insertChild(e.parent.index+1,new Dt(e.root.document,t)),new zn(e.parent.parent,e.parent.index+1)}function ki(e,t){const n=e.data.length;return e._data+=t.data,t._remove(),new zn(e,n)}const Ci=[Dt,Gn,kn,Zn,fi,hi];function Si(e){return e&&(e.is("containerElement")||e.is("documentFragment"))}function Ti(e,t){const n=yi(e.start),i=yi(e.end);if(!n||!i||n!==i)throw new ft.b("view-writer-invalid-range-container",t)}function Pi(e,t){return null===e.id&&null===t.id}function Oi(e){return"[object Text]"==Object.prototype.toString.call(e)}const xi=e=>e.createTextNode("\xa0"),Ai=e=>{const t=e.createElement("br");return t.dataset.ckeFiller=!0,t},Ei=(()=>{let e="";for(let t=0;t<7;t++)e+="\u200b";return e})();function Mi(e){return Oi(e)&&e.data.substr(0,7)===Ei}function Ii(e){return 7==e.data.length&&Mi(e)}function Ri(e){return Mi(e)?e.data.slice(7):e.data}function Li(e,t){if(t.keyCode==ri.arrowleft){const e=t.domTarget.ownerDocument.defaultView.getSelection();if(1==e.rangeCount&&e.getRangeAt(0).collapsed){const t=e.getRangeAt(0).startContainer,n=e.getRangeAt(0).startOffset;Mi(t)&&n<=7&&e.collapse(t,0)}}}function Di(e,t,n,i=!1){n=n||function(e,t){return e===t},Array.isArray(e)||(e=Array.prototype.slice.call(e)),Array.isArray(t)||(t=Array.prototype.slice.call(t));const r=function(e,t,n){const i=ji(e,t,n);if(-1===i)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const r=ji(Ni(e,i),Ni(t,i),n);return{firstIndex:i,lastIndexOld:e.length-r,lastIndexNew:t.length-r}}(e,t,n);return i?function(e,t){const{firstIndex:n,lastIndexOld:i,lastIndexNew:r}=e;if(-1===n)return Array(t).fill("equal");let s=[];return n>0&&(s=s.concat(Array(n).fill("equal"))),r-n>0&&(s=s.concat(Array(r-n).fill("insert"))),i-n>0&&(s=s.concat(Array(i-n).fill("delete"))),r<t&&(s=s.concat(Array(t-r).fill("equal"))),s}(r,t.length):function(e,t){const n=[],{firstIndex:i,lastIndexOld:r,lastIndexNew:s}=t;return s-i>0&&n.push({index:i,type:"insert",values:e.slice(i,s)}),r-i>0&&n.push({index:i+(s-i),type:"delete",howMany:r-i}),n}(t,r)}function ji(e,t,n){for(let i=0;i<Math.max(e.length,t.length);i++)if(void 0===e[i]||void 0===t[i]||!n(e[i],t[i]))return i;return-1}function Ni(e,t){return e.slice(t).reverse()}function Vi(e,t,n){n=n||function(e,t){return e===t};const i=e.length,r=t.length;if(i>200||r>200||i+r>300)return Vi.fastDiff(e,t,n,!0);let s,o;
1if(r<i){const n=e;e=t,t=n,s="delete",o="insert"}else s="insert",o="delete";const a=e.length,c=t.length,l=c-a,u={},d={};function h(i){const r=(void 0!==d[i-1]?d[i-1]:-1)+1,l=void 0!==d[i+1]?d[i+1]:-1,h=r>l?-1:1;u[i+h]&&(u[i]=u[i+h].slice(0)),u[i]||(u[i]=[]),u[i].push(r>l?s:o);let p=Math.max(r,l),f=p-i;for(;f<a&&p<c&&n(e[f],t[p]);)f++,p++,u[i].push("equal");return p}let p,f=0;do{for(p=-f;p<l;p++)d[p]=h(p);for(p=l+f;p>l;p--)d[p]=h(p);d[l]=h(l),f++}while(d[l]!==c);return u[l].slice(1)}function zi(e,t,n){e.insertBefore(n,e.childNodes[t]||null)}function Fi(e){const t=e.parentNode;t&&t.removeChild(e)}function Bi(e){if(e){if(e.defaultView)return e instanceof e.defaultView.Document;if(e.ownerDocument&&e.ownerDocument.defaultView)return e instanceof e.ownerDocument.defaultView.Node}return!1}Vi.fastDiff=Di;class qi{constructor(e,t){this.domDocuments=new Set,this.domConverter=e,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this.selection=t,this.isFocused=!1,this._inlineFiller=null,this._fakeSelectionContainer=null}markToSync(e,t){if("text"===e)this.domConverter.mapViewToDom(t.parent)&&this.markedTexts.add(t);else{if(!this.domConverter.mapViewToDom(t))return;if("attributes"===e)this.markedAttributes.add(t);else{if("children"!==e)throw new ft.b("view-renderer-unknown-type: Unknown type passed to Renderer.markToSync.",this);this.markedChildren.add(t)}}}render(){let e;for(const t of this.markedChildren)this._updateChildrenMappings(t);this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?e=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(e=this.selection.getFirstPosition(),this.markedChildren.add(e.parent));for(const t of this.markedAttributes)this._updateAttrs(t);for(const t of this.markedChildren)this._updateChildren(t,{inlineFillerPosition:e});for(const t of this.markedTexts)!this.markedChildren.has(t.parent)&&this.domConverter.mapViewToDom(t.parent)&&this._updateText(t,{inlineFillerPosition:e});if(e){const t=this.domConverter.viewPositionToDom(e),n=t.parent.ownerDocument;this._inlineFiller=Mi(t.parent)?t.parent:Ui(n,t.parent,t.offset)}else this._inlineFiller=null;this._updateSelection(),this._updateFocus(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(e){const t=this.domConverter.mapViewToDom(e);if(!t)return;const n=this.domConverter.mapViewToDom(e).childNodes,i=Array.from(this.domConverter.viewChildrenToDom(e,t.ownerDocument,{withChildren:!1})),r=this._diffNodeLists(n,i),s=this._findReplaceActions(r,n,i);if(-1!==s.indexOf("replace")){const t={equal:0,insert:0,delete:0};for(const r of s)if("replace"===r){const r=t.equal+t.insert,s=t.equal+t.delete,o=e.getChild(r);!o||o.is("uiElement")||o.is("rawElement")||this._updateElementMappings(o,n[s]),Fi(i[r]),t.equal++}else t[r]++}}_updateElementMappings(e,t){this.domConverter.unbindDomElement(t),this.domConverter.bindElements(t,e),this.markedChildren.add(e),this.markedAttributes.add(e)}_getInlineFillerPosition(){const e=this.selection.getFirstPosition();return e.parent.is("$text")?zn._createBefore(this.selection.getFirstPosition().parent):e}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const e=this.selection.getFirstPosition(),t=this.domConverter.viewPositionToDom(e);return!!(t&&Oi(t.parent)&&Mi(t.parent))}_removeInlineFiller(){const e=this._inlineFiller;if(!Mi(e))throw new ft.b("view-renderer-filler-was-lost: The inline filler node was lost.",this);Ii(e)?e.parentNode.removeChild(e):e.data=e.data.substr(7),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const e=this.selection.getFirstPosition(),t=e.parent,n=e.offset;return!(!this.domConverter.mapViewToDom(t.root)||!t.is("element")||!function(e){if("false"==e.getAttribute("contenteditable"))return!1;const t=e.findAncestor(e=>e.hasAttribute("contenteditable"));return!t||"true"==t.getAttribute("contenteditable")}(t)||n===t.getFillerOffset()||e.nodeBefore instanceof Dt||e.nodeAfter instanceof Dt)}_updateText(e,t){const n=this.domConverter.findCorrespondingDomText(e),i=this.domConverter.viewToDom(e,n.ownerDocument),r=n.data;let s=i.data;const o=t.inlineFillerPosition;if(o&&o.parent==e.parent&&o.offset==e.index&&(s=Ei+s),r!=s){const e=Di(r,s);for(const t of e)"insert"===t.type?n.insertData(t.index,t.values.join("")):n.deleteData(t.index,t.howMany)}}_updateAttrs(e){const t=this.domConverter.mapViewToDom(e);if(!t)return;const n=Array.from(t.attributes).map(e=>e.name),i=e.getAttributeKeys();for(const r of i)t.setAttribute(r,e.getAttribute(r));for(const r of n)e.hasAttribute(r)||t.removeAttribute(r)}_updateChildren(e,t){const n=this.domConverter.mapViewToDom(e);if(!n)return;const i=t.inlineFillerPosition,r=this.domConverter.mapViewToDom(e).childNodes,s=Array.from(this.domConverter.viewChildrenToDom(e,n.ownerDocument,{bind:!0,inl
1ineFillerPosition:i}));i&&i.parent===e&&Ui(n.ownerDocument,s,i.offset);const o=this._diffNodeLists(r,s);let a=0;const c=new Set;for(const l of o)"delete"===l?(c.add(r[a]),Fi(r[a])):"equal"===l&&a++;a=0;for(const l of o)"insert"===l?(zi(n,a,s[a]),a++):"equal"===l&&(this._markDescendantTextToSync(this.domConverter.domToView(s[a])),a++);for(const l of c)l.parentNode||this.domConverter.unbindDomElement(l)}_diffNodeLists(e,t){return Vi(e=function(e,t){const n=Array.from(e);return 0!=n.length&&t?(n[n.length-1]==t&&n.pop(),n):n}(e,this._fakeSelectionContainer),t,Wi.bind(null,this.domConverter))}_findReplaceActions(e,t,n){if(-1===e.indexOf("insert")||-1===e.indexOf("delete"))return e;let i=[],r=[],s=[];const o={equal:0,insert:0,delete:0};for(const a of e)"insert"===a?s.push(n[o.equal+o.insert]):"delete"===a?r.push(t[o.equal+o.delete]):(i=i.concat(Vi(r,s,Hi).map(e=>"equal"===e?"replace":e)),i.push("equal"),r=[],s=[]),o[a]++;return i.concat(Vi(r,s,Hi).map(e=>"equal"===e?"replace":e))}_markDescendantTextToSync(e){if(e)if(e.is("$text"))this.markedTexts.add(e);else if(e.is("element"))for(const t of e.getChildren())this._markDescendantTextToSync(t)}_updateSelection(){if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();const e=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&e&&(this.selection.isFake?this._updateFakeSelection(e):(this._removeFakeSelection(),this._updateDomSelection(e)))}_updateFakeSelection(e){const t=e.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(e){const t=e.createElement("div");return Object.assign(t.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),t.textContent="\xa0",t}(t));const n=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(n,this.selection),!this._fakeSelectionNeedsUpdate(e))return;n.parentElement&&n.parentElement==e||e.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||"\xa0";const i=t.getSelection(),r=t.createRange();i.removeAllRanges(),r.selectNodeContents(n),i.addRange(r)}_updateDomSelection(e){const t=e.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(t))return;const n=this.domConverter.viewPositionToDom(this.selection.anchor),i=this.domConverter.viewPositionToDom(this.selection.focus);e.focus(),t.collapse(n.parent,n.offset),t.extend(i.parent,i.offset),Jn&&function(e,t){const n=e.parent;if(n.nodeType!=Node.ELEMENT_NODE||e.offset!=n.childNodes.length-1)return;const i=n.childNodes[e.offset];i&&"BR"==i.tagName&&t.addRange(t.getRangeAt(0))}(i,t)}_domSelectionNeedsUpdate(e){if(!this.domConverter.isDomSelectionCorrect(e))return!0;const t=e&&this.domConverter.domSelectionToView(e);return!(t&&this.selection.isEqual(t)||!this.selection.isCollapsed&&this.selection.isSimilar(t))}_fakeSelectionNeedsUpdate(e){const t=this._fakeSelectionContainer,n=e.ownerDocument.getSelection();return!t||t.parentElement!==e||n.anchorNode!==t&&!t.contains(n.anchorNode)||t.textContent!==this.selection.fakeSelectionLabel}_removeDomSelection(){for(const e of this.domDocuments)if(e.getSelection().rangeCount){const t=e.activeElement,n=this.domConverter.mapDomToView(t);t&&n&&e.getSelection().removeAllRanges()}}_removeFakeSelection(){const e=this._fakeSelectionContainer;e&&e.remove()}_updateFocus(){if(this.isFocused){const e=this.selection.editableElement;e&&this.domConverter.focus(e)}}}function Ui(e,t,n){const i=t instanceof Array?t:t.childNodes,r=i[n];if(Oi(r))return r.data=Ei+r.data,r;{const r=e.createTextNode(Ei);return Array.isArray(t)?i.splice(n,0,r):zi(t,n,r),r}}function Hi(e,t){return Bi(e)&&Bi(t)&&!Oi(e)&&!Oi(t)&&e.nodeType!==Node.COMMENT_NODE&&t.nodeType!==Node.COMMENT_NODE&&e.tagName.toLowerCase()===t.tagName.toLowerCase()}function Wi(e,t,n){return t===n||(Oi(t)&&Oi(n)?t.data===n.data:!(!e.isBlockFiller(t)||!e.isBlockFiller(n)))}Tt(qi,An);var Gi={window,document};function Yi(e){let t=0;for(;e.previousSibling;)e=e.previousSibling,t++;return t}function $i(e){const t=[];for(;e&&e.nodeType!=Node.DOCUMENT_NODE;)t.unshift(e),e=e.parentNode;return t}const Zi=Ai(document);class Qi{constructor(e,t={}){this.document=e,this.blockFillerMode=t.blockFillerMode||"br",this.preElements=["pre"],this.blockElements=["p","div","h1","h2","h3","h4","h5","h6","li","dd","dt","figcaption","td","th"],this._blockFiller="br"==this.blockFillerMode?Ai:xi,this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap}bindFakeSelection(e,t){this._fakeSelectionMapping.set(e,new Un(t))}fakeSelectionToView(e){return this._fakeSelectionMapping.get(e)}bindElements(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}unbindDomElement(e){const t=this._domToViewMapping.get(e);if(t){this._domToViewMapping.delete(e),this._viewToDomMapping.delete(t);for(const t of e.childNodes)this.unbindDomElement(t)}}bindDocumentFragments(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}viewToDom(e,t,n={}){if(e.is("$text")){const n=this._processDataFromViewText(e);return t.createTextNode(n)}{if(this.mapViewToDom(e))return this.mapViewToDom(e);let i;if(e.is("documentFragment"))i=t.createDocumentFragment(),n.bind&&this.bindDocumentFragments(i,e);else{if(e.is("uiElement"))return i=e.render(t),n.bind&&this.bindElements(i,e),i;i=e.hasAttribute("xmlns")?t.createElementNS(e.getAttribute("xmlns"),e.name):t.createElement(e.name),e.is("rawElement")&&e.render(i),n.bind&&this.bindElements(i,e);for(const t of e.getAttributeKeys())i.setAttribute(t,e.getAttribute(t))}if(n.withChildren||void 0===n.withChildren)for(const r of this.viewChildrenToDom(e,t,n))i.appendChild(r);return i}}*viewChildrenToDom(e,t,n={}){const i=e.getFillerOffset&&e.getFillerOffset();let r=0;for(const s of e.getChildren())i===r&&(yield this._blockFiller(t)),yield this.viewToDom(s,t,n),r++;i===r&&(yield this._blockFiller(t))}viewRangeToDom(e){const t=this.viewPositionToDom(e.start),n=this.viewPositionToDom(e.end),i=document.createRange();return i.setStart(t.parent,t.offset),i.setEnd(n.parent,n.offset),i}viewPositionToDom(e){const t=e.parent;if(t.is("$text")){const n=this.findCorrespondingDomText(t);if(!n)return null;let i=e.offset;return Mi(n)&&(i+=7),{parent:n,offset:i}}{let n,i,r;if(0===e.offset){if(n=this.mapViewToDom(t),!n)return null;r=n.childNodes[0]}else{const t=e.nodeBefore;if(i=t.is("$text")?this.findCorrespondingDomText(t):this.mapViewToDom(e.nodeBefore),!i)return null;n=i.parentNode,r=i.nextSibling}return Oi(r)&&Mi(r)?{parent:r,offset:7}:{parent:n,offset:i?Yi(i)+1:0}}}domToView(e,t={}){if(this.isBlockFiller(e,this.blockFillerMode))return null;const n=this.getHostViewElement(e,this._domToViewMapping);if(n)return n;if(Oi(e)){if(Ii(e))return null;{const t=this._processDataFromDomText(e);return""===t?null:new Dt(this.document,t)}}if(this.isComment(e))return null;{if(this.mapDomToView(e))return this.mapDomToView(e);let n;if(this.isDocumentFragment(e))n=new mi(this.document),t.bind&&this.bindDocumentFragments(e,n);else{const i=t.keepOriginalCase?e.tagName:e.tagName.toLowerCase();n=new _n(this.document,i),t.bind&&this.bindElements(e,n);const r=e.attributes;for(let e=r.length-1;e>=0;e--)n._setAttribute(r[e].name,r[e].value)}if(t.withChildren||void 0===t.withChildren)for(const i of this.domChildrenToView(e,t))n._appendChild(i);return n}}*domChildrenToView(e,t={}){for(let n=0;n<e.childNodes.length;n++){const i=this.domToView(e.childNodes[n],t);null!==i&&(yield i)}}
1domSelectionToView(e){if(1===e.rangeCount){let t=e.getRangeAt(0).startContainer;Oi(t)&&(t=t.parentNode);const n=this.fakeSelectionToView(t);if(n)return n}const t=this.isDomSelectionBackward(e),n=[];for(let i=0;i<e.rangeCount;i++){const t=e.getRangeAt(i),r=this.domRangeToView(t);r&&n.push(r)}return new Un(n,{backward:t})}domRangeToView(e){const t=this.domPositionToView(e.startContainer,e.startOffset),n=this.domPositionToView(e.endContainer,e.endOffset);return t&&n?new Fn(t,n):null}domPositionToView(e,t){if(this.isBlockFiller(e,this.blockFillerMode))return this.domPositionToView(e.parentNode,Yi(e));const n=this.mapDomToView(e);if(n&&(n.is("uiElement")||n.is("rawElement")))return zn._createBefore(n);if(Oi(e)){if(Ii(e))return this.domPositionToView(e.parentNode,Yi(e));const n=this.findCorrespondingViewText(e);let i=t;return n?(Mi(e)&&(i-=7,i=i<0?0:i),new zn(n,i)):null}if(0===t){const t=this.mapDomToView(e);if(t)return new zn(t,0)}else{const n=e.childNodes[t-1],i=Oi(n)?this.findCorrespondingViewText(n):this.mapDomToView(n);if(i&&i.parent)return new zn(i.parent,i.index+1)}return null}mapDomToView(e){return this.getHostViewElement(e)||this._domToViewMapping.get(e)}findCorrespondingViewText(e){if(Ii(e))return null;const t=this.getHostViewElement(e);if(t)return t;const n=e.previousSibling;if(n){if(!this.isElement(n))return null;const e=this.mapDomToView(n);if(e)return e.nextSibling instanceof Dt?e.nextSibling:null}else{const t=this.mapDomToView(e.parentNode);if(t){const e=t.getChild(0);return e instanceof Dt?e:null}}return null}mapViewToDom(e){return this._viewToDomMapping.get(e)}findCorrespondingDomText(e){const t=e.previousSibling;return t&&this.mapViewToDom(t)?this.mapViewToDom(t).nextSibling:!t&&e.parent&&this.mapViewToDom(e.parent)?this.mapViewToDom(e.parent).childNodes[0]:null}focus(e){const t=this.mapViewToDom(e);if(t&&t.ownerDocument.activeElement!==t){const{scrollX:e,scrollY:n}=Gi.window,i=[];Ki(t,e=>{const{scrollLeft:t,scrollTop:n}=e;i.push([t,n])}),t.focus(),Ki(t,e=>{const[t,n]=i.shift();e.scrollLeft=t,e.scrollTop=n}),Gi.window.scrollTo(e,n)}}isElement(e){return e&&e.nodeType==Node.ELEMENT_NODE}isDocumentFragment(e){return e&&e.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isComment(e){return e&&e.nodeType==Node.COMMENT_NODE}isBlockFiller(e){return"br"==this.blockFillerMode?e.isEqualNode(Zi):!("BR"!==e.tagName||!Ji(e,this.blockElements)||1!==e.parentNode.childNodes.length)||function(e,t){return Oi(e)&&"\xa0"==e.data&&Ji(e,t)&&1===e.parentNode.childNodes.length}(e,this.blockElements)}isDomSelectionBackward(e){if(e.isCollapsed)return!1;const t=document.createRange();t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset);const n=t.collapsed;return t.detach(),n}getHostViewElement(e){const t=$i(e);for(t.pop();t.length;){const e=t.pop(),n=this._domToViewMapping.get(e);if(n&&(n.is("uiElement")||n.is("rawElement")))return n}return null}isDomSelectionCorrect(e){return this._isDomSelectionPositionCorrect(e.anchorNode,e.anchorOffset)&&this._isDomSelectionPositionCorrect(e.focusNode,e.focusOffset)}_isDomSelectionPositionCorrect(e,t){if(Oi(e)&&Mi(e)&&t<7)return!1;if(this.isElement(e)&&Mi(e.childNodes[t]))return!1;const n=this.mapDomToView(e);return!n||!n.is("uiElement")&&!n.is("rawElement")}_processDataFromViewText(e){let t=e.data;if(e.getAncestors().some(e=>this.preElements.includes(e.name)))return t;if(" "==t.charAt(0)){const n=this._getTouchingViewTextNode(e,!1);(!n||!this._nodeEndsWithSpace(n))&&n||(t="\xa0"+t.substr(1))}if(" "==t.charAt(t.length-1)){const n=this._getTouchingViewTextNode(e,!0);" "!=t.charAt(t.length-2)&&n&&" "!=n.data.charAt(0)||(t=t.substr(0,t.length-1)+"\xa0")}return t.replace(/ {2}/g," \xa0")}_nodeEndsWithSpace(e){if(e.getAncestors().some(e=>this.preElements.includes(e.name)))return!1;const t=this._processDataFromViewText(e);return" "==t.charAt(t.length-1)}_processDataFromDomText(e){let t=e.data;if(Xi(e,this.preElements))return Ri(e);t=t.replace(/[ \n\t\r]{1,}/g," ");const n=this._getTouchingInlineDomNode(e,!1),i=this._getTouchingInlineDomNode(e,!0),r=this._checkShouldLeftTrimDomText(n),s=this._checkShouldRightTrimDomText(e,i);return r&&(t=t.replace(/^ /,"")),s&&(t=t.replace(/ $/,"")),t=Ri(new Text(t)),t=t.replace(/ \u00A0/g," "),(/( |\u00A0)\u00A0$/.test(t)||!i||i.data&&" "==i.data.charAt(0))&&(t=t.replace(/\u00A0$/," ")),r&&(t=t.replace(/^\u00A0/," ")),t}_checkShouldLeftTrimDomText(e){return!e||!!ot(e)||/[^\S\u00A0]/.test(e.data.charAt(e.data.length-1))}_checkShouldRightTrimDomText(e,t){return!t&&!Mi(e)}_getTouchingViewTextNode(e,t){const n=new Vn({startPosition:t?zn._createAfter(e):zn._createBefore(e),direction:t?"forward":"backward"});for(const i of n){if(i.item.is("containerElement"))return null;if(i.item.is("element","br"))return null;if(i.item.is("$textProxy"))return i.item}return null}_getTouchingInlineDomNode(e,t){if(!e.parentNode)return null;const n=t?"nextNode":"previousNode",i=e.ownerDocument,r=$i(e)[0],s=i.createTreeWalker(r,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:e=>Oi(e)||"BR"==e.tagName?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});s.currentNode=e;const o=s[n]();if(null!==o){const t=function(e,t){const n=$i(e),i=$i(t);let r=0;for(;n[r]==i[r]&&n[r];)r++;return 0===r?null:n[r-1]}(e,o);if(t&&!Xi(e,this.blockElements,t)&&!Xi(o,this.blockElements,t))return o}return null}}function Xi(e,t,n){let i=$i(e);return n&&(i=i.slice(i.indexOf(n)+1)),i.some(e=>e.tagName&&t.includes(e.tagName.toLowerCase()))}function Ki(e,t){for(;e&&e!=Gi.document;)t(e),e=e.parentNode}function Ji(e,t){const n=e.parentNode;return n&&n.tagName&&t.includes(n.tagName.toLowerCase())}function er(e){const t=Object.prototype.toString.apply(e);return"[object Window]"==t||"[object global]"==t}var tr=Sn({},bt,{listenTo(e,...t){if(Bi(e)||er(e)){const n=this._getProxyEmitter(e)||new nr(e);n.attach(...t),e=n}bt.listenTo.call(this,e,...t)},stopListening(e,t,n){if(Bi(e)||er(e)){const t=this._getProxyEmitter(e);if(!t)return;e=t}bt.stopListening.call(this,e,t,n),e instanceof nr&&e.detach(t)},_getProxyEmitter(e){return t=this,n=ir(e),t[gt]&&t[gt][n]?t[gt][n].emitter:null;var t,n}});
1class nr{constructor(e){yt(this,ir(e)),this._domNode=e}}function ir(e){return e["data-ck-expando"]||(e["data-ck-expando"]=ht())}Sn(nr.prototype,bt,{attach(e,t,n={}){if(this._domListeners&&this._domListeners[e])return;const i=this._createDomListener(e,!!n.useCapture);this._domNode.addEventListener(e,i,!!n.useCapture),this._domListeners||(this._domListeners={}),this._domListeners[e]=i},detach(e){let t;!this._domListeners[e]||(t=this._events[e])&&t.callbacks.length||this._domListeners[e].removeListener()},_createDomListener(e,t){const n=t=>{this.fire(e,t)};return n.removeListener=()=>{this._domNode.removeEventListener(e,n,t),delete this._domListeners[e]},n}});class rr{constructor(e){this.view=e,this.document=e.document,this.isEnabled=!1}enable(){this.isEnabled=!0}disable(){this.isEnabled=!1}destroy(){this.disable(),this.stopListening()}}function sr(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new q;++t<n;)this.add(e[t])}Tt(rr,tr),sr.prototype.add=sr.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},sr.prototype.has=function(e){return this.__data__.has(e)};var or=sr,ar=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1},cr=function(e,t){return e.has(t)},lr=function(e,t,n,i,r,s){var o=1&n,a=e.length,c=t.length;if(a!=c&&!(o&&c>a))return!1;var l=s.get(e);if(l&&s.get(t))return l==t;var u=-1,d=!0,h=2&n?new or:void 0;for(s.set(e,t),s.set(t,e);++u<a;){var p=e[u],f=t[u];if(i)var g=o?i(f,p,u,t,e,s):i(p,f,u,e,t,s);if(void 0!==g){if(g)continue;d=!1;break}if(h){if(!ar(t,function(e,t){if(!cr(h,t)&&(p===e||r(p,e,n,i,s)))return h.push(t)})){d=!1;break}}else if(p!==f&&!r(p,f,n,i,s)){d=!1;break}}return s.delete(e),s.delete(t),d},ur=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n},dr=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n},hr=r?r.prototype:void 0,pr=hr?hr.valueOf:void 0,fr=Object.prototype.hasOwnProperty,gr=Object.prototype.hasOwnProperty,mr=function e(t,n,i,r,s){return t===n||(null==t||null==n||!f(t)&&!f(n)?t!=t&&n!=n:function(e,t,n,i,r,s){var o=te(e),a=te(t),c=o?"[object Array]":qe(e),l=a?"[object Array]":qe(t),u="[object Object]"==(c="[object Arguments]"==c?"[object Object]":c),d="[object Object]"==(l="[object Arguments]"==l?"[object Object]":l),h=c==l;if(h&&Object(ne.a)(e)){if(!Object(ne.a)(t))return!1;o=!0,u=!1}if(h&&!u)return s||(s=new H),o||ue(e)?lr(e,t,n,i,r,s):function(e,t,n,i,r,s,o){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new He(e),new He(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return v(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=ur;case"[object Set]":if(a||(a=dr),e.size!=t.size&&!(1&i))return!1;var c=o.get(e);if(c)return c==t;i|=2,o.set(e,t);var l=lr(a(e),a(t),i,r,s,o);return o.delete(e),l;case"[object Symbol]":if(pr)return pr.call(e)==pr.call(t)}return!1}(e,t,c,n,i,r,s);if(!(1&n)){var p=u&&gr.call(e,"__wrapped__"),f=d&&gr.call(t,"__wrapped__");
1if(p||f){var g=p?e.value():e,m=f?t.value():t;return s||(s=new H),r(g,m,n,i,s)}}return!!h&&(s||(s=new H),function(e,t,n,i,r,s){var o=1&n,a=Ee(e),c=a.length;if(c!=Ee(t).length&&!o)return!1;for(var l=c;l--;){var u=a[l];if(!(o?u in t:fr.call(t,u)))return!1}var d=s.get(e);if(d&&s.get(t))return d==t;var h=!0;s.set(e,t),s.set(t,e);for(var p=o;++l<c;){var f=e[u=a[l]],g=t[u];if(i)var m=o?i(g,f,u,t,e,s):i(f,g,u,e,t,s);if(!(void 0===m?f===g||r(f,g,n,i,s):m)){h=!1;break}p||(p="constructor"==u)}if(h&&!p){var b=e.constructor,y=t.constructor;b==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(h=!1)}return s.delete(e),s.delete(t),h}(e,t,n,i,r,s))}(t,n,i,r,e,s))},br=function(e,t,n){var i=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===i?mr(e,t,void 0,n):!!i};class yr extends rr{constructor(e){super(e),this._config={childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0},this.domConverter=e.domConverter,this.renderer=e._renderer,this._domElements=[],this._mutationObserver=new window.MutationObserver(this._onMutations.bind(this))}flush(){this._onMutations(this._mutationObserver.takeRecords())}observe(e){this._domElements.push(e),this.isEnabled&&this._mutationObserver.observe(e,this._config)}enable(){super.enable();for(const e of this._domElements)this._mutationObserver.observe(e,this._config)}disable(){super.disable(),this._mutationObserver.disconnect()}destroy(){super.destroy(),this._mutationObserver.disconnect()}_onMutations(e){if(0===e.length)return;const t=this.domConverter,n=new Map,i=new Set;for(const c of e)if("childList"===c.type){const e=t.mapDomToView(c.target);if(e&&(e.is("uiElement")||e.is("rawElement")))continue;e&&!this._isBogusBrMutation(c)&&i.add(e)}for(const c of e){const e=t.mapDomToView(c.target);if((!e||!e.is("uiElement")&&!e.is("rawElement"))&&"characterData"===c.type){const e=t.findCorrespondingViewText(c.target);e&&!i.has(e.parent)?n.set(e,{type:"text",oldText:e.data,newText:Ri(c.target),node:e}):!e&&Mi(c.target)&&i.add(t.mapDomToView(c.target.parentNode))}}const r=[];for(const c of n.values())this.renderer.markToSync("text",c.node),r.push(c);for(const c of i){const e=t.mapViewToDom(c),n=Array.from(c.getChildren()),i=Array.from(t.domChildrenToView(e,{withChildren:!1}));br(n,i,a)||(this.renderer.markToSync("children",c),r.push({type:"children",oldChildren:n,newChildren:i,node:c}))}const s=e[0].target.ownerDocument.getSelection();let o=null;if(s&&s.anchorNode){const e=t.domPositionToView(s.anchorNode,s.anchorOffset),n=t.domPositionToView(s.focusNode,s.focusOffset);e&&n&&(o=new Un(e),o.setFocus(n))}function a(e,t){if(!Array.isArray(e))return e===t||!(!e.is("$text")||!t.is("$text"))&&e.data===t.data}r.length&&(this.document.fire("mutations",r,o),this.view.forceRender())}_isBogusBrMutation(e){let t=null;return null===e.nextSibling&&0===e.removedNodes.length&&1==e.addedNodes.length&&(t=this.domConverter.domToView(e.addedNodes[0],{withChildren:!1})),t&&t.is("element","br")}}class vr{constructor(e,t,n){this.view=e,this.document=e.document,this.domEvent=t,this.domTarget=t.target,Sn(this,n)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class _r extends rr{constructor(e){super(e),this.useCapture=!1}observe(e){("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach(t=>{this.listenTo(e,t,(e,t)=>{this.isEnabled&&this.onDomEvent(t)},{useCapture:this.useCapture})})}fire(e,t,n){this.isEnabled&&this.document.fire(e,new vr(this.view,t,n))}}class wr extends _r{constructor(e){super(e),this.domEventType=["keydown","keyup"]}onDomEvent(e){this.fire(e.type,e,{keyCode:e.keyCode,altKey:e.altKey,ctrlKey:e.ctrlKey||e.metaKey,shiftKey:e.shiftKey,get keystroke(){return si(this)}})}}var kr=function(){return i.a.Date.now()},Cr=/^\s+|\s+$/g,Sr=/^[-+]0x[0-9a-f]+$/i,Tr=/^0b[01]+$/i,Pr=/^0o[0-7]+$/i,Or=parseInt,xr=function(e){if("number"==typeof e)return e;if(Ft(e))return NaN;if(T(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=T(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Cr,"");var n=Tr.test(e);return n||Pr.test(e)?Or(e.slice(2),n?2:8):Sr.test(e)?NaN:+e}
1,Ar=Math.max,Er=Math.min,Mr=function(e,t,n){var i,r,s,o,a,c,l=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=i,s=r;return i=r=void 0,l=t,o=e.apply(s,n)}function f(e){return l=e,a=setTimeout(m,t),u?p(e):o}function g(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-l>=s}function m(){var e=kr();if(g(e))return b(e);a=setTimeout(m,function(e){var n=t-(e-c);return d?Er(n,s-(e-l)):n}(e))}function b(e){return a=void 0,h&&i?p(e):(i=r=void 0,o)}function y(){var e=kr(),n=g(e);if(i=arguments,r=this,c=e,n){if(void 0===a)return f(c);if(d)return clearTimeout(a),a=setTimeout(m,t),p(c)}return void 0===a&&(a=setTimeout(m,t)),o}return t=xr(t)||0,T(n)&&(u=!!n.leading,s=(d="maxWait"in n)?Ar(xr(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==a&&clearTimeout(a),l=0,i=c=r=a=void 0},y.flush=function(){return void 0===a?o:b(kr())},y};class Ir extends rr{constructor(e){super(e),this._fireSelectionChangeDoneDebounced=Mr(e=>this.document.fire("selectionChangeDone",e),200)}observe(){const e=this.document;e.on("keydown",(t,n)=>{var i;e.selection.isFake&&((i=n.keyCode)==ri.arrowright||i==ri.arrowleft||i==ri.arrowup||i==ri.arrowdown)&&this.isEnabled&&(n.preventDefault(),this._handleSelectionMove(n.keyCode))},{priority:"lowest"})}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(e){const t=this.document.selection,n=new Un(t.getRanges(),{backward:t.isBackward,fake:!1});e!=ri.arrowleft&&e!=ri.arrowup||n.setTo(n.getFirstPosition()),e!=ri.arrowright&&e!=ri.arrowdown||n.setTo(n.getLastPosition());const i={oldSelection:t,newSelection:n,domSelection:null};this.document.fire("selectionChange",i),this._fireSelectionChangeDoneDebounced(i)}}class Rr extends rr{constructor(e){super(e),this.mutationObserver=e.getObserver(yr),this.selection=this.document.selection,this.domConverter=e.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=Mr(e=>this.document.fire("selectionChangeDone",e),200),this._clearInfiniteLoopInterval=setInterval(()=>this._clearInfiniteLoop(),1e3),this._loopbackCounter=0}observe(e){const t=e.ownerDocument;this._documents.has(t)||(this.listenTo(t,"selectionchange",()=>{this._handleSelectionChange(t)}),this._documents.add(t))}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionChange(e){if(!this.isEnabled)return;this.mutationObserver.flush();const t=e.defaultView.getSelection(),n=this.domConverter.domSelectionToView(t);if(0!=n.rangeCount){if(this.view.hasDomSelection=!0,!(this.selection.isEqual(n)&&this.domConverter.isDomSelectionCorrect(t)||++this._loopbackCounter>60))if(this.selection.isSimilar(n))this.view.forceRender();else{const e={oldSelection:this.selection,newSelection:n,domSelection:t};this.document.fire("selectionChange",e),this._fireSelectionChangeDoneDebounced(e)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class Lr extends _r{constructor(e){super(e),this.domEventType=["focus","blur"],this.useCapture=!0;const t=this.document;t.on("focus",()=>{t.isFocused=!0,this._renderTimeoutId=setTimeout(()=>e.forceRender(),50)}),t.on("blur",(n,i)=>{const r=t.selection.editableElement;null!==r&&r!==i.target||(t.isFocused=!1,e.forceRender())})}onDomEvent(e){this.fire(e.type,e)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class Dr extends _r{constructor(e){super(e),this.domEventType=["compositionstart","compositionupdate","compositionend"];const t=this.document;t.on("compositionstart",()=>{t.isComposing=!0}),t.on("compositionend",()=>{t.isComposing=!1})}onDomEvent(e){this.fire(e.type,e)}}class jr extends _r{constructor(e){super(e),this.domEventType=["beforeinput"]}onDomEvent(e){this.fire(e.type,e)}}function Nr(e){return"[object Range]"==Object.prototype.toString.apply(e)}function Vr(e){const t=e.ownerDocument.defaultView.getComputedStyle(e);return{top:parseInt(t.borderTopWidth,10),right:parseInt(t.borderRightWidth,10),bottom:parseInt(t.borderBottomWidth,10),left:parseInt(t.borderLeftWidth,10)}}const zr=["top","right","bottom","left","width","height"];class Fr{constructor(e){const t=Nr(e);
1if(Object.defineProperty(this,"_source",{value:e._source||e,writable:!0,enumerable:!1}),ot(e)||t)Br(this,t?Fr.getDomRangeRects(e)[0]:e.getBoundingClientRect());else if(er(e)){const{innerWidth:t,innerHeight:n}=e;Br(this,{top:0,right:t,bottom:n,left:0,width:t,height:n})}else Br(this,e)}clone(){return new Fr(this)}moveTo(e,t){return this.top=t,this.right=e+this.width,this.bottom=t+this.height,this.left=e,this}moveBy(e,t){return this.top+=t,this.right+=e,this.left+=e,this.bottom+=t,this}getIntersection(e){const t={top:Math.max(this.top,e.top),right:Math.min(this.right,e.right),bottom:Math.min(this.bottom,e.bottom),left:Math.max(this.left,e.left)};return t.width=t.right-t.left,t.height=t.bottom-t.top,t.width<0||t.height<0?null:new Fr(t)}getIntersectionArea(e){const t=this.getIntersection(e);return t?t.getArea():0}getArea(){return this.width*this.height}getVisible(){const e=this._source;let t=this.clone();if(!qr(e)){let n=e.parentNode||e.commonAncestorContainer;for(;n&&!qr(n);){const e=new Fr(n),i=t.getIntersection(e);if(!i)return null;i.getArea()<t.getArea()&&(t=i),n=n.parentNode}}return t}isEqual(e){for(const t of zr)if(this[t]!==e[t])return!1;return!0}contains(e){const t=this.getIntersection(e);return!(!t||!t.isEqual(e))}excludeScrollbarsAndBorders(){const e=this._source;let t,n,i;if(er(e))t=e.innerWidth-e.document.documentElement.clientWidth,n=e.innerHeight-e.document.documentElement.clientHeight,i=e.getComputedStyle(e.document.documentElement).direction;else{const r=Vr(this._source);t=e.offsetWidth-e.clientWidth-r.left-r.right,n=e.offsetHeight-e.clientHeight-r.top-r.bottom,i=e.ownerDocument.defaultView.getComputedStyle(e).direction,this.left+=r.left,this.top+=r.top,this.right-=r.right,this.bottom-=r.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=t,"ltr"===i?this.right-=t:this.left+=t,this.height-=n,this.bottom-=n,this}static getDomRangeRects(e){const t=[],n=Array.from(e.getClientRects());if(n.length)for(const i of n)t.push(new Fr(i));else{let n=e.startContainer;Oi(n)&&(n=n.parentNode);const i=new Fr(n.getBoundingClientRect());i.right=i.left,i.width=0,t.push(i)}return t}}function Br(e,t){for(const n of zr)e[n]=t[n]}function qr(e){return!!ot(e)&&e===e.ownerDocument.body}function Ur({target:e,viewportOffset:t=0}){const n=Qr(e);let i=n,r=null;for(;i;){let s;s=Xr(i==n?e:r),Wr(s,()=>Kr(e,i));const o=Kr(e,i);if(Hr(i,o,t),i.parent!=i){if(r=i.frameElement,i=i.parent,!r)return}else i=null}}function Hr(e,t,n){const i=t.clone().moveBy(0,n),r=t.clone().moveBy(0,-n),s=new Fr(e).excludeScrollbarsAndBorders();if(![r,i].every(e=>s.contains(e))){let{scrollX:o,scrollY:a}=e;Yr(r,s)?a-=s.top-t.top+n:Gr(i,s)&&(a+=t.bottom-s.bottom+n),$r(t,s)?o-=s.left-t.left+n:Zr(t,s)&&(o+=t.right-s.right+n),e.scrollTo(o,a)}}function Wr(e,t){const n=Qr(e);let i,r;for(;e!=n.document.body;)r=t(),i=new Fr(e).excludeScrollbarsAndBorders(),i.contains(r)||(Yr(r,i)?e.scrollTop-=i.top-r.top:Gr(r,i)&&(e.scrollTop+=r.bottom-i.bottom),$r(r,i)?e.scrollLeft-=i.left-r.left:Zr(r,i)&&(e.scrollLeft+=r.right-i.right)),e=e.parentNode}function Gr(e,t){return e.bottom>t.bottom}function Yr(e,t){return e.top<t.top}function $r(e,t){return e.left<t.left}function Zr(e,t){return e.right>t.right}function Qr(e){return Nr(e)?e.startContainer.ownerDocument.defaultView:e.ownerDocument.defaultView}function Xr(e){if(Nr(e)){let t=e.commonAncestorContainer;return Oi(t)&&(t=t.parentNode),t}return e.parentNode}function Kr(e,t){const n=Qr(e),i=new Fr(e);if(n===t)return i;{let e=n;for(;e!=t;){const t=new Fr(e.frameElement).excludeScrollbarsAndBorders();i.moveBy(t.left,t.top),e=e.parent}}return i}Object.assign({},{scrollViewportToShowTarget:Ur,scrollAncestorsToShowTarget:function(e){Wr(Xr(e),()=>new Fr(e))}});class Jr{constructor(e){this.document=new Wn(e),this.domConverter=new Qi(this.document),this.domRoots=new Map,this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new qi(this.domConverter,this.document.selection),this._renderer.bind("isFocused").to(this.document),this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this._writer=new bi(this.document),this.addObserver(yr),this.addObserver(Rr),this.addObserver(Lr),this.addObserver(wr),this.addObserver(Ir),this.addObserver(Dr),ti&&this.addObserver(jr),this.document.on("key
1down",Li),function(e){e.document.on("keydown",(t,n)=>function(e,t,n){if(t.keyCode==ri.arrowright){const e=t.domTarget.ownerDocument.defaultView.getSelection(),i=1==e.rangeCount&&e.getRangeAt(0).collapsed;if(i||t.shiftKey){const t=n.domPositionToView(e.focusNode,e.focusOffset);if(null===t)return;let r=!1;const s=t.getLastMatchingPosition(e=>(e.item.is("uiElement")&&(r=!0),!(!e.item.is("uiElement")&&!e.item.is("attributeElement"))));if(r){const t=n.viewPositionToDom(s);i?e.collapse(t.parent,t.offset):e.extend(t.parent,t.offset)}}}}(0,n,e.domConverter))}(this),this.on("render",()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1}),this.listenTo(this.document.selection,"change",()=>{this._hasChangedSinceTheLastRendering=!0})}attachDomRoot(e,t="main"){const n=this.document.getRoot(t);n._name=e.tagName.toLowerCase();const i={};for(const{name:s,value:o}of Array.from(e.attributes))i[s]=o,"class"===s?this._writer.addClass(o.split(" "),n):this._writer.setAttribute(s,o,n);this._initialDomRootAttributes.set(e,i);const r=()=>{this._writer.setAttribute("contenteditable",!n.isReadOnly,n),n.isReadOnly?this._writer.addClass("ck-read-only",n):this._writer.removeClass("ck-read-only",n)};r(),this.domRoots.set(t,e),this.domConverter.bindElements(e,n),this._renderer.markToSync("children",n),this._renderer.markToSync("attributes",n),this._renderer.domDocuments.add(e.ownerDocument),n.on("change:children",(e,t)=>this._renderer.markToSync("children",t)),n.on("change:attributes",(e,t)=>this._renderer.markToSync("attributes",t)),n.on("change:text",(e,t)=>this._renderer.markToSync("text",t)),n.on("change:isReadOnly",()=>this.change(r)),n.on("change",()=>{this._hasChangedSinceTheLastRendering=!0});for(const s of this._observers.values())s.observe(e,t)}detachDomRoot(e){const t=this.domRoots.get(e);Array.from(t.attributes).forEach(({name:e})=>t.removeAttribute(e));const n=this._initialDomRootAttributes.get(t);for(const i in n)t.setAttribute(i,n[i]);this.domRoots.delete(e),this.domConverter.unbindDomElement(t)}getDomRoot(e="main"){return this.domRoots.get(e)}addObserver(e){let t=this._observers.get(e);if(t)return t;t=new e(this),this._observers.set(e,t);for(const[n,i]of this.domRoots)t.observe(i,n);return t.enable(),t}getObserver(e){return this._observers.get(e)}disableObservers(){for(const e of this._observers.values())e.disable()}enableObservers(){for(const e of this._observers.values())e.enable()}scrollToTheSelection(){const e=this.document.selection.getFirstRange();e&&Ur({target:this.domConverter.viewRangeToDom(e),viewportOffset:20})}focus(){if(!this.document.isFocused){const e=this.document.selection.editableElement;e&&(this.domConverter.focus(e),this.forceRender())}}change(e){if(this.isRenderingInProgress||this._postFixersInProgress)throw new ft.b("cannot-change-view-tree: Attempting to make changes to the view when it is in an incorrect state: rendering or post-fixers are in progress. This may cause some unexpected behavior and inconsistency between the DOM and the view.",this);try{if(this._ongoingChange)return e(this._writer);this._ongoingChange=!0;const t=e(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),t}catch(e){ft.b.rethrowUnexpectedError(e,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.change(()=>{})}destroy(){for(const e of this._observers.values())e.destroy();this.document.destroy(),this.stopListening()}createPositionAt(e,t){return zn._createAt(e,t)}createPositionAfter(e){return zn._createAfter(e)}createPositionBefore(e){return zn._createBefore(e)}createRange(e,t){return new Fn(e,t)}createRangeOn(e){return Fn._createOn(e)}createRangeIn(e){return Fn._createIn(e)}createSelection(e,t,n){return new Un(e,t,n)}_disableRendering(e){this._renderingDisabled=e,0==e&&this.change(()=>{})}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}Tt(Jr,An);class es{constructor(e){this.parent=null,this._attrs=Nt(e)}get index(){let e;if(!this.parent)return null;if(null===(e=this.parent.getChildIndex(this)))throw new ft.b("model-node-not-found-in-parent: The node's parent does not contain this node.",this);return e}get startOffset(){let e;if(!this.parent)return null;if(null===(e=this.parent.getChildStartOffset(this)))throw new ft.b("model-node-not-found-in-parent: The node's parent does not contain this node.",this);return e}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const e=this.index;return null!==e&&this.parent.getChild(e+1)||null}get previousSibling(){const e=this.index;return null!==e&&this.parent.getChild(e-1)||null}get root(){let e=this;for(;e.parent;)e=e.parent;return e}isAttached(){return this.root.is("rootElement")}getPath(){const e=[];let t=this;for(;t.parent;)e.unshift(t.startOffset),t=t.parent;return e}getAncestors(e={includeSelf:!1,parentFirst:!1}){const t=[];let n=e.includeSelf?this:this.parent;for(;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}getCommonAncestor(e,t={}){const n=this.getAncestors(t),i=e.getAncestors(t);let r=0;for(;n[r]==i[r]&&n[r];)r++;return 0===r?null:n[r-1]}isBefore(e){if(this==e)return!1;if(this.root!==e.root)return!1;const t=this.getPath(),n=e.getPath(),i=It(t,n);switch(i){case"prefix":return!0;case"extension":return!1;default:return t[i]<n[i]}}isAfter(e){return this!=e&&this.root===e.root&&!this.isBefore(e)}hasAttribute(e){return this._attrs.has(e)}getAttribute(e){return this._attrs.get(e)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}toJSON(){const e={};return this._attrs.size&&(e.attributes=Array.from(this._attrs).reduce((e,t)=>
1(e[t[0]]=t[1],e),{})),e}is(e){return"node"===e||"model:node"===e}_clone(){return new es(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(e,t){this._attrs.set(e,t)}_setAttributesTo(e){this._attrs=Nt(e)}_removeAttribute(e){return this._attrs.delete(e)}_clearAttributes(){this._attrs.clear()}}class ts extends es{constructor(e,t){super(t),this._data=e||""}get offsetSize(){return this.data.length}get data(){return this._data}is(e){return"$text"===e||"model:$text"===e||"text"===e||"model:text"===e||"node"===e||"model:node"===e}toJSON(){const e=super.toJSON();return e.data=this.data,e}_clone(){return new ts(this.data,this.getAttributes())}static fromJSON(e){return new ts(e.data,e.attributes)}}class ns{constructor(e,t,n){if(this.textNode=e,t<0||t>e.offsetSize)throw new ft.b("model-textproxy-wrong-offsetintext: Given offsetInText value is incorrect.",this);if(n<0||t+n>e.offsetSize)throw new ft.b("model-textproxy-wrong-length: Given length value is incorrect.",this);this.data=e.data.substring(t,t+n),this.offsetInText=t}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}is(e){return"$textProxy"===e||"model:$textProxy"===e||"textProxy"===e||"model:textProxy"===e}getPath(){const e=this.textNode.getPath();return e.length>0&&(e[e.length-1]+=this.offsetInText),e}getAncestors(e={includeSelf:!1,parentFirst:!1}){const t=[];let n=e.includeSelf?this:this.parent;for(;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}hasAttribute(e){return this.textNode.hasAttribute(e)}getAttribute(e){return this.textNode.getAttribute(e)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}class is{constructor(e){this._nodes=[],e&&this._insertNodes(0,e)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce((e,t)=>e+t.offsetSize,0)}getNode(e){return this._nodes[e]||null}getNodeIndex(e){const t=this._nodes.indexOf(e);return-1==t?null:t}getNodeStartOffset(e){const t=this.getNodeIndex(e);return null===t?null:this._nodes.slice(0,t).reduce((e,t)=>e+t.offsetSize,0)}indexToOffset(e){if(e==this._nodes.length)return this.maxOffset;const t=this._nodes[e];if(!t)throw new ft.b("model-nodelist-index-out-of-bounds: Given index cannot be found in the node list.",this);return this.getNodeStartOffset(t)}offsetToIndex(e){let t=0;for(const n of this._nodes){if(e>=t&&e<t+n.offsetSize)return this.getNodeIndex(n);t+=n.offsetSize}if(t!=e)throw new ft.b("model-nodelist-offset-out-of-bounds: Given offset cannot be found in the node list.",this,{offset:e,nodeList:this});return this.length}
1_insertNodes(e,t){for(const n of t)if(!(n instanceof es))throw new ft.b("model-nodelist-insertNodes-not-node: Trying to insert an object which is not a Node instance.",this);this._nodes.splice(e,0,...t)}_removeNodes(e,t=1){return this._nodes.splice(e,t)}toJSON(){return this._nodes.map(e=>e.toJSON())}}class rs extends es{constructor(e,t,n){super(t),this.name=e,this._children=new is,n&&this._insertChild(0,n)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}is(e,t=null){return t?t===this.name&&("element"===e||"model:element"===e):"element"===e||"model:element"===e||"node"===e||"model:node"===e}getChild(e){return this._children.getNode(e)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(e){return this._children.getNodeIndex(e)}getChildStartOffset(e){return this._children.getNodeStartOffset(e)}offsetToIndex(e){return this._children.offsetToIndex(e)}getNodeByPath(e){let t=this;for(const n of e)t=t.getChild(t.offsetToIndex(n));return t}findAncestor(e,t={includeSelf:!1}){let n=t.includeSelf?this:this.parent;for(;n;){if(n.name===e)return n;n=n.parent}return null}toJSON(){const e=super.toJSON();if(e.name=this.name,this._children.length>0){e.children=[];for(const t of this._children)e.children.push(t.toJSON())}return e}_clone(e=!1){const t=e?Array.from(this._children).map(e=>e._clone(!0)):null;return new rs(this.name,this.getAttributes(),t)}_appendChild(e){this._insertChild(this.childCount,e)}_insertChild(e,t){const n=function(e){return"string"==typeof e?[new ts(e)]:(St(e)||(e=[e]),Array.from(e).map(e=>"string"==typeof e?new ts(e):e instanceof ns?new ts(e.data,e.getAttributes()):e))}(t);for(const i of n)null!==i.parent&&i._remove(),i.parent=this;this._children._insertNodes(e,n)}_removeChildren(e,t=1){const n=this._children._removeNodes(e,t);for(const i of n)i.parent=null;return n}static fromJSON(e){let t=null;if(e.children){t=[];for(const n of e.children)t.push(n.name?rs.fromJSON(n):ts.fromJSON(n))}return new rs(e.name,e.attributes,t)}}class ss{constructor(e={}){if(!e.boundaries&&!e.startPosition)throw new ft.b("model-tree-walker-no-start-position: Neither boundaries nor starting position have been defined.",null);const t=e.direction||"forward";if("forward"!=t&&"backward"!=t)throw new ft.b("model-tree-walker-unknown-direction: Only `backward` and `forward` direction allowed.",e,{direction:t});this.direction=t,this.boundaries=e.boundaries||null,this.position=e.startPosition?e.startPosition.clone():as._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!e.singleCharacters,this.shallow=!!e.shallow,this.ignoreElementEnd=!!e.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}skip(e){let t,n,i,r;do{i=this.position,r=this._visitedParent,({done:t,value:n}=this.next())}while(!t&&e(n));t||(this.position=i,this._visitedParent=r)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const e=this.position,t=this.position.clone(),n=this._visitedParent;if(null===n.parent&&t.offset===n.maxOffset)return{done:!0};if(n===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0};const i=t.parent,r=cs(t,i),s=r||ls(t,i,r);if(s instanceof rs)return this.shallow?t.offset++:(t.path.push(0),this._visitedParent=s),this.position=t,os("elementStart",s,e,t,1);if(s instanceof ts){let i;if(this.singleCharacters)i=1;else{let e=s.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offset<e&&(e=this.boundaries.end.offset),i=e-t.offset}const r=new ns(s,t.offset-s.startOffset,i);return t.offset+=i,this.position=t,os("text",r,e,t,i)}return t.path.pop(),t.offset++,this.position=t,this._visitedParent=n.parent,this.ignoreElementEnd?this._next():os("elementEnd",n,e,t)}_previous(){const e=this.position,t=this.position.clone(),n=this._visitedParent;if(null===n.parent&&0===t.offset)return{done:!0};if(n==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0};const i=t.parent,r=cs(t,i),s=r||us(t,i,r);if(s instanceof rs)return t.offset--,this.shallow?(this.position=t,os("elementStart",s,e,t,1)):(t.path.push(s.maxOffset),this.position=t,this._visitedParent=s,this.ignoreElementEnd?this._previous():os("elementEnd",s,e,t));if(s instanceof ts){let i;if(this.singleCharacters)i=1;else{let e=s.startOffset;this._boundaryStartParent==n&&this.boundaries.start.offset>e&&(e=this.boundaries.start.offset),i=t.offset-e}const r=new ns(s,t.offset-s.startOffset-i,i);return t.offset-=i,this.position=t,os("text",r,e,t,i)}return t.path.pop(),this.position=t,this._visitedParent=n.parent,os("elementStart",n,e,t,1)}}function os(e,t,n,i,r){return{done:!1,value:{type:e,item:t,previousPosition:n,nextPosition:i,length:r}}}class as{constructor(e,t,n="toNone"){if(!e.is("element")&&!e.is("documentFragment"))throw new ft.b("model-position-root-invalid: Position root invalid.",e);if(!(t instanceof Array)||0===t.length)throw new ft.b("model-position-path-incorrect-format: Position path must be an array with at least one item.",e,{path:t});e.is("rootElement")?t=t.slice():(t=[...e.getPath(),...t],e=e.root),this.root=e,this.path=t,this.stickiness=n}get offset(){return this.path[this.path.length-1]}set offset(e){this.path[this.path.length-1]=e}get parent(){let e=this.root;for(let t=0;t<this.path.length-1;t++)if(e=e.getChild(e.offsetToIndex(this.path[t])),!e)throw new ft.b("model-position-path-incorrect: The position's path is incorrect.",this,{position:this});if(e.is("$text"))throw new ft.b("model-position-path-incorrect: The position's path is incorrect.",this,{position:this});return e}get index(){return this.parent.offsetToIndex(this.offset)}get textNode(){return cs(this,this.parent)}get nodeAfter(){const e=this.parent;return ls(this,e,cs(this,e))}get nodeBefore(){const e=this.parent;return us(this,e,cs(this,e))}get isAtStart(){return 0===this.offset}get isAtEnd(){return this.offset==this.parent.maxOffset}compareWith(e){if(this.root!=e.root)return"different";const t=It(this.path,e.path);switch(t){case"same":return"same";case"prefix":return"before";case"extension":return"after";default:return this.path[t]<e.path[t]?"before":"after"}}
1getLastMatchingPosition(e,t={}){t.startPosition=this;const n=new ss(t);return n.skip(e),n.position}getParentPath(){return this.path.slice(0,-1)}getAncestors(){const e=this.parent;return e.is("documentFragment")?[e]:e.getAncestors({includeSelf:!0})}findAncestor(e){const t=this.parent;return t.is("element")?t.findAncestor(e,{includeSelf:!0}):null}getCommonPath(e){if(this.root!=e.root)return[];const t=It(this.path,e.path),n="string"==typeof t?Math.min(this.path.length,e.path.length):t;return this.path.slice(0,n)}getCommonAncestor(e){const t=this.getAncestors(),n=e.getAncestors();let i=0;for(;t[i]==n[i]&&t[i];)i++;return 0===i?null:t[i-1]}getShiftedBy(e){const t=this.clone(),n=t.offset+e;return t.offset=n<0?0:n,t}isAfter(e){return"after"==this.compareWith(e)}isBefore(e){return"before"==this.compareWith(e)}isEqual(e){return"same"==this.compareWith(e)}isTouching(e){let t=null,n=null;switch(this.compareWith(e)){case"same":return!0;case"before":t=as._createAt(this),n=as._createAt(e);break;case"after":t=as._createAt(e),n=as._createAt(this);break;default:return!1}let i=t.parent;for(;t.path.length+n.path.length;){if(t.isEqual(n))return!0;if(t.path.length>n.path.length){if(t.offset!==i.maxOffset)return!1;t.path=t.path.slice(0,-1),i=i.parent,t.offset++}else{if(0!==n.offset)return!1;n.path=n.path.slice(0,-1)}}}is(e){return"position"===e||"model:position"===e}hasSameParentAs(e){return this.root===e.root&&"same"==It(this.getParentPath(),e.getParentPath())}getTransformedByOperation(e){let t;switch(e.type){case"insert":t=this._getTransformedByInsertOperation(e);break;case"move":case"remove":case"reinsert":t=this._getTransformedByMoveOperation(e);break;case"split":t=this._getTransformedBySplitOperation(e);break;case"merge":t=this._getTransformedByMergeOperation(e);break;default:t=as._createAt(this)}return t}_getTransformedByInsertOperation(e){return this._getTransformedByInsertion(e.position,e.howMany)}_getTransformedByMoveOperation(e){return this._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany)}_getTransformedBySplitOperation(e){const t=e.movedRange;return t.containsPosition(this)||t.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(e.splitPosition,e.moveTargetPosition):e.graveyardPosition?this._getTransformedByMove(e.graveyardPosition,e.insertionPosition,1):this._getTransformedByInsertion(e.insertionPosition,1)}_getTransformedByMergeOperation(e){const t=e.movedRange;let n;return t.containsPosition(this)||t.start.isEqual(this)?(n=this._getCombined(e.sourcePosition,e.targetPosition),e.sourcePosition.isBefore(e.targetPosition)&&(n=n._getTransformedByDeletion(e.deletionPosition,1))):n=this.isEqual(e.deletionPosition)?as._createAt(e.deletionPosition):this._getTransformedByMove(e.deletionPosition,e.graveyardPosition,1),n}_getTransformedByDeletion(e,t){const n=as._createAt(this);if(this.root!=e.root)return n;if("same"==It(e.getParentPath(),this.getParentPath())){if(e.offset<this.offset){if(e.offset+t>this.offset)return null;n.offset-=t}}else if("prefix"==It(e.getParentPath(),this.getParentPath())){const i=e.path.length-1;if(e.offset<=this.path[i]){if(e.offset+t>this.path[i])return null;n.path[i]-=t}}return n}_getTransformedByInsertion(e,t){const n=as._createAt(this);if(this.root!=e.root)return n;if("same"==It(e.getParentPath(),this.getParentPath()))(e.offset<this.offset||e.offset==this.offset&&"toPrevious"!=this.stickiness)&&(n.offset+=t);else if("prefix"==It(e.getParentPath(),this.getParentPath())){const i=e.path.length-1;e.offset<=this.path[i]&&(n.path[i]+=t)}return n}_getTransformedByMove(e,t,n){if(t=t._getTransformedByDeletion(e,n),e.isEqual(t))return as._createAt(this);const i=this._getTransformedByDeletion(e,n);return null===i||e.isEqual(this)&&"toNext"==this.stickiness||e.getShiftedBy(n).isEqual(this)&&"toPrevious"==this.stickiness?this._getCombined(e,t):i._getTransformedByInsertion(t,n)}_getCombined(e,t){const n=e.path.length-1,i=as._createAt(t);return i.stickiness=this.stickiness,i.offset=i.offset+this.path[n]-e.offset,i.path=[...i.path,...this.path.slice(n+1)],i}toJSON(){return{root:this.root.toJSON(),path:Array.from(this.path),stickiness:this.stickiness}}clone(){return new this.constructor(this.root,this.path,this.stickiness)}static _createAt(e,t,n="toNone"){if(e instanceof as)return new as(e.root,e.path,e.stickiness);{const i=e;if("end"==t)t=i.maxOffset;else{if("before"==t)return this._createBefore(i,n);if("after"==t)return this._createAfter(i,n);if(0!==t&&!t)throw new ft.b("model-createPositionAt-offset-required: Model#createPositionAt() requires the offset when the first parameter is a model item.",[this,e])}if(!i.is("element")&&!i.is("documentFragment"))throw new ft.b("model-position-parent-incorrect: Position parent have to be a element or document fragment.",[this,e]);const r=i.getPath();return r.push(t),new this(i.root,r,n)}}static _createAfter(e,t){if(!e.parent)throw new ft.b("model-position-after-root: You cannot make a position after root.",[this,e],{root:e});return this._createAt(e.parent,e.endOffset,t)}static _createBefore(e,t){if(!e.parent)throw new ft.b("model-position-before-root: You cannot make a position before root.",e,{root:e});return this._createAt(e.parent,e.startOffset,t)}static fromJSON(e,t){if("$graveyard"===e.root){const n=new as(t.graveyard,e.path);return n.stickiness=e.stickiness,n}if(!t.getRoot(e.root))throw new ft.b("model-position-fromjson-no-root: Cannot create position for document. Root with specified name does not exist.",t,{rootName:e.root});return new as(t.getRoot(e.root),e.path,e.stickiness)}}function cs(e,t){const n=t.getChild(t.offsetToIndex(e.offset));return n&&n.is("$text")&&n.startOffset<e.offset?n:null}
1function ls(e,t,n){return null!==n?null:t.getChild(t.offsetToIndex(e.offset))}function us(e,t,n){return null!==n?null:t.getChild(t.offsetToIndex(e.offset)-1)}class ds{constructor(e,t=null){this.start=as._createAt(e),this.end=as._createAt(t||e),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}*[Symbol.iterator](){yield*new ss({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return"same"==It(this.start.getParentPath(),this.end.getParentPath())}get root(){return this.start.root}containsPosition(e){return e.isAfter(this.start)&&e.isBefore(this.end)}containsRange(e,t=!1){e.isCollapsed&&(t=!1);const n=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),i=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return n&&i}containsItem(e){const t=as._createBefore(e);return this.containsPosition(t)||this.start.isEqual(t)}is(e){return"range"===e||"model:range"===e}isEqual(e){return this.start.isEqual(e.start)&&this.end.isEqual(e.end)}isIntersecting(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}getDifference(e){const t=[];return this.isIntersecting(e)?(this.containsPosition(e.start)&&t.push(new ds(this.start,e.start)),this.containsPosition(e.end)&&t.push(new ds(e.end,this.end))):t.push(new ds(this.start,this.end)),t}getIntersection(e){if(this.isIntersecting(e)){let t=this.start,n=this.end;return this.containsPosition(e.start)&&(t=e.start),this.containsPosition(e.end)&&(n=e.end),new ds(t,n)}return null}getJoined(e,t=!1){let n=this.isIntersecting(e);if(n||(n=this.start.isBefore(e.start)?t?this.end.isTouching(e.start):this.end.isEqual(e.start):t?e.end.isTouching(this.start):e.end.isEqual(this.start)),!n)return null;let i=this.start,r=this.end;return e.start.isBefore(i)&&(i=e.start),e.end.isAfter(r)&&(r=e.end),new ds(i,r)}getMinimalFlatRanges(){const e=[],t=this.start.getCommonPath(this.end).length,n=as._createAt(this.start);let i=n.parent;for(;n.path.length>t+1;){const t=i.maxOffset-n.offset;0!==t&&e.push(new ds(n,n.getShiftedBy(t))),n.path=n.path.slice(0,-1),n.offset++,i=i.parent}for(;n.path.length<=this.end.path.length;){const t=this.end.path[n.path.length-1],i=t-n.offset;0!==i&&e.push(new ds(n,n.getShiftedBy(i))),n.offset=t,n.path.push(0)}return e}getWalker(e={}){return e.boundaries=this,new ss(e)}*getItems(e={}){e.boundaries=this,e.ignoreElementEnd=!0;const t=new ss(e);for(const n of t)yield n.item}*getPositions(e={}){e.boundaries=this;const t=new ss(e);yield t.position;for(const n of t)yield n.nextPosition}getTransformedByOperation(e){switch(e.type){case"insert":return this._getTransformedByInsertOperation(e);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(e);case"split":return[this._getTransformedBySplitOperation(e)];case"merge":return[this._getTransformedByMergeOperation(e)]}return[new ds(this.start,this.end)]}getTransformedByOperations(e){const t=[new ds(this.start,this.end)];for(const n of e)for(let e=0;e<t.length;e++){const i=t[e].getTransformedByOperation(n);t.splice(e,1,...i),e+=i.length-1}for(let n=0;n<t.length;n++){const e=t[n];for(let i=n+1;i<t.length;i++){const n=t[i];(e.containsRange(n)||n.containsRange(e)||e.isEqual(n))&&t.splice(i,1)}}return t}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;const e=this.start.nodeAfter,t=this.end.nodeBefore;return e&&e.is("element")&&e===t?e:null}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}clone(){return new this.constructor(this.start,this.end)}_getTransformedByInsertOperation(e,t=!1){return this._getTransformedByInsertion(e.position,e.howMany,t)}_getTransformedByMoveOperation(e,t=!1){return this._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany,t)}_getTransformedBySplitOperation(e){const t=this.start._getTransformedBySplitOperation(e);let n=this.end._getTransformedBySplitOperation(e);return this.end.isEqual(e.insertionPosition)&&(n=this.end.getShiftedBy(1)),t.root!=n.root&&(n=this.end.getShiftedBy(-1)),new ds(t,n)}_getTransformedByMergeOperation(e){if(this.start.isEqual(e.targetPosition)&&this.end.isEqual(e.deletionPosition))return new ds(this.start);let t=this.start._getTransformedByMergeOperation(e),n=this.end._getTransformedByMergeOperation(e);return t.root!=n.root&&(n=this.end.getShiftedBy(-1)),t.isAfter(n)?(e.sourcePosition.isBefore(e.targetPosition)?(t=as._createAt(n),t.offset=0):(e.deletionPosition.isEqual(t)||(n=e.deletionPosition),t=e.targetPosition),new ds(t,n)):new ds(t,n)}_getTransformedByInsertion(e,t,n=!1){if(n&&this.containsPosition(e))return[new ds(this.start,e),new ds(e.getShiftedBy(t),this.end._getTransformedByInsertion(e,t))];{const n=new ds(this.start,this.end);return n.start=n.start._getTransformedByInsertion(e,t),n.end=n.end._getTransformedByInsertion(e,t),[n]}}_getTransformedByMove(e,t,n,i=!1){if(this.isCollapsed){const i=this.start._getTransformedByMove(e,t,n);return[new ds(i)]}const r=ds._createFromPositionAndShift(e,n),s=t._getTransformedByDeletion(e,n);if(this.containsPosition(t)&&!i&&(r.containsPosition(this.start)||r.containsPosition(this.end))){const i=this.start._getTransformedByMove(e,t,n),r=this.end._getTransformedByMove(e,t,n);return[new ds(i,r)]}let o;const a=this.getDifference(r);let c=null;const l=this.getIntersection(r);if(1==a.length?c=new ds(a[0].start._getTransformedByDeletion(e,n),a[0].end._getTransformedByDeletion(e,n)):2==a.length&&(c=new ds(this.start,this.end._getTransformedByDeletion(e,n))),o=c?c._getTransformedByInsertion(s,n,null!==l||i):[],l){const e=new ds(l.start._getCombined(r.start,s),l.end._getCombined(r.start,s));2==o.length?o.splice(1,0,e):o.push(e)}return o}_getTransformedByDeletion(e,t){let n=this.start._getTransformedByDeletion(e,t),i=this.end._getTransformedByDeletion(e,t);return null==n&&null==i?null:(null==n&&(n=e),null==i&&(i=e),new ds(n,i))}static _createFromPositionAndShift(e,t){const n=e,i=e.getShiftedBy(t);return t>0?new this(n,i):new this(i,n)}static _createIn(e){return new this(as._createAt(e,0),as._createAt(e,e.maxOffset))}static _createOn(e){return this._createFromPositionAndShift(as._createBefore(e),e.offsetSize)}static _createFromRanges(e){if(0===e.length)throw new ft.b("range-create-from-ranges-empty-array: At least one range has to be passed.",null);if(1==e.length)return e[0].clone();const t=e[0];e.sort((e,t)=>
1e.start.isAfter(t.start)?1:-1);const n=e.indexOf(t),i=new this(t.start,t.end);if(n>0)for(let r=n-1;e[r].end.isEqual(i.start);r++)i.start=as._createAt(e[r].start);for(let r=n+1;r<e.length&&e[r].start.isEqual(i.end);r++)i.end=as._createAt(e[r].end);return i}static fromJSON(e,t){return new this(as.fromJSON(e.start,t),as.fromJSON(e.end,t))}}class hs{constructor(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._viewToModelLengthCallbacks=new Map,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this.on("modelToViewPosition",(e,t)=>{if(t.viewPosition)return;const n=this._modelToViewMapping.get(t.modelPosition.parent);t.viewPosition=this.findPositionIn(n,t.modelPosition.offset)},{priority:"low"}),this.on("viewToModelPosition",(e,t)=>{if(t.modelPosition)return;const n=this.findMappedViewAncestor(t.viewPosition),i=this._viewToModelMapping.get(n),r=this._toModelOffset(t.viewPosition.parent,t.viewPosition.offset,n);t.modelPosition=as._createAt(i,r)},{priority:"low"})}bindElements(e,t){this._modelToViewMapping.set(e,t),this._viewToModelMapping.set(t,e)}unbindViewElement(e){const t=this.toModelElement(e);if(this._viewToModelMapping.delete(e),this._elementToMarkerNames.has(e))for(const n of this._elementToMarkerNames.get(e))this._unboundMarkerNames.add(n);this._modelToViewMapping.get(t)==e&&this._modelToViewMapping.delete(t)}unbindModelElement(e){const t=this.toViewElement(e);this._modelToViewMapping.delete(e),this._viewToModelMapping.get(t)==e&&this._viewToModelMapping.delete(t)}bindElementToMarker(e,t){const n=this._markerNameToElements.get(t)||new Set;n.add(e);const i=this._elementToMarkerNames.get(e)||new Set;i.add(t),this._markerNameToElements.set(t,n),this._elementToMarkerNames.set(e,i)}unbindElementFromMarkerName(e,t){const n=this._markerNameToElements.get(t);n&&(n.delete(e),0==n.size&&this._markerNameToElements.delete(t));const i=this._elementToMarkerNames.get(e);i&&(i.delete(t),0==i.size&&this._elementToMarkerNames.delete(e))}flushUnboundMarkerNames(){const e=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),e}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set}toModelElement(e){return this._viewToModelMapping.get(e)}toViewElement(e){return this._modelToViewMapping.get(e)}toModelRange(e){return new ds(this.toModelPosition(e.start),this.toModelPosition(e.end))}toViewRange(e){return new Fn(this.toViewPosition(e.start),this.toViewPosition(e.end))}toModelPosition(e){const t={viewPosition:e,mapper:this};return this.fire("viewToModelPosition",t),t.modelPosition}toViewPosition(e,t={isPhantom:!1}){const n={modelPosition:e,mapper:this,isPhantom:t.isPhantom};return this.fire("modelToViewPosition",n),n.viewPosition}markerNameToElements(e){const t=this._markerNameToElements.get(e);if(!t)return null;const n=new Set;for(const i of t)if(i.is("attributeElement"))for(const e of i.getElementsWithSameId())n.add(e);else n.add(i);return n}registerViewToModelLength(e,t){this._viewToModelLengthCallbacks.set(e,t)}findMappedViewAncestor(e){let t=e.parent;for(;!this._viewToModelMapping.has(t);)t=t.parent;return t}_toModelOffset(e,t,n){if(n!=e)return this._toModelOffset(e.parent,e.index,n)+this._toModelOffset(e,t,e);if(e.is("$text"))return t;let i=0;for(let r=0;r<t;r++)i+=this.getModelLength(e.getChild(r));return i}getModelLength(e){if(this._viewToModelLengthCallbacks.get(e.name))return this._viewToModelLengthCallbacks.get(e.name)(e);if(this._viewToModelMapping.has(e))return 1;if(e.is("$text"))return e.data.length;if(e.is("uiElement"))return 0;{let t=0;for(const n of e.getChildren())t+=this.getModelLength(n);return t}}findPositionIn(e,t){let n,i=0,r=0,s=0;if(e.is("$text"))return new zn(e,t);for(;r<t;)n=e.getChild(s),i=this.getModelLength(n),r+=i,s++;return r==t?this._moveViewPositionToTextNode(new zn(e,s)):this.findPositionIn(n,t-(r-i))}_moveViewPositionToTextNode(e){const t=e.nodeBefore,n=e.nodeAfter;return t instanceof Dt?new zn(t,t.data.length):n instanceof Dt?new zn(n,0):e}}Tt(hs,bt);class ps{constructor(){this._consumable=new Map,this._textProxyRegistry=new Map}
1add(e,t){t=fs(t),e instanceof ns&&(e=this._getSymbolForTextProxy(e)),this._consumable.has(e)||this._consumable.set(e,new Map),this._consumable.get(e).set(t,!0)}consume(e,t){return t=fs(t),e instanceof ns&&(e=this._getSymbolForTextProxy(e)),!!this.test(e,t)&&(this._consumable.get(e).set(t,!1),!0)}test(e,t){t=fs(t),e instanceof ns&&(e=this._getSymbolForTextProxy(e));const n=this._consumable.get(e);if(void 0===n)return null;const i=n.get(t);return void 0===i?null:i}revert(e,t){t=fs(t),e instanceof ns&&(e=this._getSymbolForTextProxy(e));const n=this.test(e,t);return!1===n?(this._consumable.get(e).set(t,!0),!0):!0!==n&&null}_getSymbolForTextProxy(e){let t=null;const n=this._textProxyRegistry.get(e.startOffset);if(n){const i=n.get(e.endOffset);i&&(t=i.get(e.parent))}return t||(t=this._addSymbolForTextProxy(e.startOffset,e.endOffset,e.parent)),t}_addSymbolForTextProxy(e,t,n){const i=Symbol("textProxySymbol");let r,s;return r=this._textProxyRegistry.get(e),r||(r=new Map,this._textProxyRegistry.set(e,r)),s=r.get(t),s||(s=new Map,r.set(t,s)),s.set(n,i),i}}function fs(e){const t=e.split(":");return t.length>1?t[0]+":"+t[1]:t[0]}class gs{constructor(e){this.conversionApi=Sn({dispatcher:this},e)}convertChanges(e,t,n){for(const i of e.getMarkersToRemove())this.convertMarkerRemove(i.name,i.range,n);for(const i of e.getChanges())"insert"==i.type?this.convertInsert(ds._createFromPositionAndShift(i.position,i.length),n):"remove"==i.type?this.convertRemove(i.position,i.length,i.name,n):this.convertAttribute(i.range,i.attributeKey,i.attributeOldValue,i.attributeNewValue,n);for(const i of this.conversionApi.mapper.flushUnboundMarkerNames()){const e=t.get(i).getRange();this.convertMarkerRemove(i,e,n),this.convertMarkerAdd(i,e,n)}for(const i of e.getMarkersToAdd())this.convertMarkerAdd(i.name,i.range,n)}convertInsert(e,t){this.conversionApi.writer=t,this.conversionApi.consumable=this._createInsertConsumable(e);for(const n of e){const e=n.item,t={item:e,range:ds._createFromPositionAndShift(n.previousPosition,n.length)};this._testAndFire("insert",t);for(const n of e.getAttributeKeys())t.attributeKey=n,t.attributeOldValue=null,t.attributeNewValue=e.getAttribute(n),this._testAndFire("attribute:"+n,t)}this._clearConversionApi()}convertRemove(e,t,n,i){this.conversionApi.writer=i,this.fire("remove:"+n,{position:e,length:t},this.conversionApi),this._clearConversionApi()}convertAttribute(e,t,n,i,r){this.conversionApi.writer=r,this.conversionApi.consumable=this._createConsumableForRange(e,"attribute:"+t);for(const s of e){const e={item:s.item,range:ds._createFromPositionAndShift(s.previousPosition,s.length),attributeKey:t,attributeOldValue:n,attributeNewValue:i};this._testAndFire("attribute:"+t,e)}this._clearConversionApi()}convertSelection(e,t,n){const i=Array.from(t.getMarkersAtPosition(e.getFirstPosition()));if(this.conversionApi.writer=n,this.conversionApi.consumable=this._createSelectionConsumable(e,i),this.fire("selection",{selection:e},this.conversionApi),e.isCollapsed){for(const t of i){const n=t.getRange();if(!ms(e.getFirstPosition(),t,this.conversionApi.mapper))continue;const i={item:e,markerName:t.name,markerRange:n};this.conversionApi.consumable.test(e,"addMarker:"+t.name)&&this.fire("addMarker:"+t.name,i,this.conversionApi)}for(const t of e.getAttributeKeys()){const n={item:e,range:e.getFirstRange(),attributeKey:t,attributeOldValue:null,attributeNewValue:e.getAttribute(t)};this.conversionApi.consumable.test(e,"attribute:"+n.attributeKey)&&this.fire("attribute:"+n.attributeKey+":$text",n,this.conversionApi)}this._clearConversionApi()}}
1convertMarkerAdd(e,t,n){if(!t.root.document||"$graveyard"==t.root.rootName)return;this.conversionApi.writer=n;const i="addMarker:"+e,r=new ps;if(r.add(t,i),this.conversionApi.consumable=r,this.fire(i,{markerName:e,markerRange:t},this.conversionApi),r.test(t,i)){this.conversionApi.consumable=this._createConsumableForRange(t,i);for(const n of t.getItems()){if(!this.conversionApi.consumable.test(n,i))continue;const r={item:n,range:ds._createOn(n),markerName:e,markerRange:t};this.fire(i,r,this.conversionApi)}this._clearConversionApi()}}convertMarkerRemove(e,t,n){t.root.document&&"$graveyard"!=t.root.rootName&&(this.conversionApi.writer=n,this.fire("removeMarker:"+e,{markerName:e,markerRange:t},this.conversionApi),this._clearConversionApi())}_createInsertConsumable(e){const t=new ps;for(const n of e){const e=n.item;t.add(e,"insert");for(const n of e.getAttributeKeys())t.add(e,"attribute:"+n)}return t}_createConsumableForRange(e,t){const n=new ps;for(const i of e.getItems())n.add(i,t);return n}_createSelectionConsumable(e,t){const n=new ps;n.add(e,"selection");for(const i of t)n.add(e,"addMarker:"+i.name);for(const i of e.getAttributeKeys())n.add(e,"attribute:"+i);return n}_testAndFire(e,t){this.conversionApi.consumable.test(t.item,e)&&this.fire(e+":"+(t.item.name||"$text"),t,this.conversionApi)}_clearConversionApi(){delete this.conversionApi.writer,delete this.conversionApi.consumable}}function ms(e,t,n){const i=t.getRange(),r=Array.from(e.getAncestors());return r.shift(),r.reverse(),!r.some(e=>{if(i.containsItem(e))return!!n.toViewElement(e).getCustomProperty("addHighlight")})}Tt(gs,bt);class bs{constructor(e,t,n){this._lastRangeBackward=!1,this._ranges=[],this._attrs=new Map,e&&this.setTo(e,t,n)}get anchor(){if(this._ranges.length>0){const e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.end:e.start}return null}get focus(){if(this._ranges.length>0){const e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.start:e.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(e){if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;for(const t of this._ranges){let n=!1;for(const i of e._ranges)if(t.isEqual(i)){n=!0;break}if(!n)return!1}return!0}*getRanges(){for(const e of this._ranges)yield new ds(e.start,e.end)}getFirstRange(){let e=null;for(const t of this._ranges)e&&!t.start.isBefore(e.start)||(e=t);return e?new ds(e.start,e.end):null}getLastRange(){let e=null;for(const t of this._ranges)e&&!t.end.isAfter(e.end)||(e=t);return e?new ds(e.start,e.end):null}getFirstPosition(){const e=this.getFirstRange();return e?e.start.clone():null}getLastPosition(){const e=this.getLastRange();return e?e.end.clone():null}setTo(e,t,n){if(null===e)this._setRanges([]);else if(e instanceof bs)this._setRanges(e.getRanges(),e.isBackward);else if(e&&"function"==typeof e.getRanges)this._setRanges(e.getRanges(),e.isBackward);else if(e instanceof ds)this._setRanges([e],!!t&&!!t.backward);else if(e instanceof as)this._setRanges([new ds(e)]);else if(e instanceof es){const i=!!n&&!!n.backward;let r;if("in"==t)r=ds._createIn(e);else if("on"==t)r=ds._createOn(e);else{if(void 0===t)throw new ft.b("model-selection-setTo-required-second-parameter: selection.setTo requires the second parameter when the first parameter is a node.",[this,e]);r=new ds(as._createAt(e,t))}this._setRanges([r],i)}else{if(!St(e))throw new ft.b("model-selection-setTo-not-selectable: Cannot set the selection to the given place.",[this,e]);this._setRanges(e,t&&!!t.backward)}}_setRanges(e,t=!1){const n=(e=Array.from(e)).some(t=>{if(!(t instanceof ds))throw new ft.b("model-selection-set-ranges-not-range: Selection range set to an object that is not an instance of model.Range.",[this,e]);return this._ranges.every(e=>!e.isEqual(t))});if(e.length!==this._ranges.length||n){this._removeAllRanges();for(const t of e)this._pushRange(t);this._lastRangeBackward=!!t,this.fire("change:range",{directChange:!0})}}setFocus(e,t){if(null===this.anchor)throw new ft.b("model-selection-setFocus-no-ranges: Cannot set selection focus if there are no ranges in selection.",[this,e]);const n=as._createAt(e,t);if("same"==n.compareWith(this.focus))return;const i=this.anchor;this._ranges.length&&this._popRange(),"before"==n.compareWith(i)?(this._pushRange(new ds(n,i)),this._lastRangeBackward=!0):(this._pushRange(new ds(i,n)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(e){return this._attrs.get(e)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(e){return this._attrs.has(e)}removeAttribute(e){this.hasAttribute(e)&&(this._attrs.delete(e),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}setAttribute(e,t){this.getAttribute(e)!==t&&(this._attrs.set(e,t),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}is(e){return"selection"===e||"model:selection"===e}*getSelectedBlocks(){const e=new WeakSet;for(const t of this.getRanges()){const n=_s(t.start,e);n&&ws(n,t)&&(yield n);for(const r of t.getWalker()){const n=r.item;"elementEnd"==r.type&&vs(n,e,t)&&(yield n)}const i=_s(t.end,e);i&&!t.end.isTouching(as._createAt(i,0))&&ws(i,t)&&(yield i)}}containsEntireContent(e=this.anchor.root){const t=as._createAt(e,0),n=as._createAt(e,"end");return t.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}_pushRange(e){this._checkRange(e),this._ranges.push(new ds(e.start,e.end))}_checkRange(e){for(let t=0;t<this._ranges.length;t++)if(e.isIntersecting(this._ranges[t]))throw new ft.b("model-selection-range-intersects: Trying to add a range that intersects with another range in the selection.",[this,e],{addedRange:e,intersectingRange:this._ranges[t]})}_removeAllRanges(){for(;this._ranges.length>0;)this._popRange()}_popRange(){this._ranges.pop()}}function ys(e,t){return!t.has(e)&&(t.add(e),e.root.document.model.schema.isBlock(e)&&e.parent)}
1function vs(e,t,n){return ys(e,t)&&ws(e,n)}function _s(e,t){const n=e.parent.root.document.model.schema,i=e.parent.getAncestors({parentFirst:!0,includeSelf:!0});let r=!1;const s=i.find(e=>!r&&(r=n.isLimit(e),!r&&ys(e,t)));return i.forEach(e=>t.add(e)),s}function ws(e,t){const n=function(e){const t=e.root.document.model.schema;let n=e.parent;for(;n;){if(t.isBlock(n))return n;n=n.parent}}(e);return!n||!t.containsRange(ds._createOn(n),!0)}Tt(bs,bt);class ks extends ds{constructor(e,t){super(e,t),Cs.call(this)}detach(){this.stopListening()}is(e){return"liveRange"===e||"model:liveRange"===e||"range"==e||"model:range"===e}toRange(){return new ds(this.start,this.end)}static fromRange(e){return new ks(e.start,e.end)}}function Cs(){this.listenTo(this.root.document.model,"applyOperation",(e,t)=>{const n=t[0];n.isDocumentOperation&&Ss.call(this,n)},{priority:"low"})}function Ss(e){const t=this.getTransformedByOperation(e),n=ds._createFromRanges(t),i=!n.isEqual(this),r=function(e,t){switch(t.type){case"insert":return e.containsPosition(t.position);case"move":case"remove":case"reinsert":case"merge":return e.containsPosition(t.sourcePosition)||e.start.isEqual(t.sourcePosition)||e.containsPosition(t.targetPosition);case"split":return e.containsPosition(t.splitPosition)||e.containsPosition(t.insertionPosition)}return!1}(this,e);let s=null;if(i){"$graveyard"==n.root.rootName&&(s="remove"==e.type?e.sourcePosition:e.deletionPosition);const t=this.toRange();this.start=n.start,this.end=n.end,this.fire("change:range",t,{deletionPosition:s})}else r&&this.fire("change:content",this.toRange(),{deletionPosition:s})}Tt(ks,bt);class Ts{constructor(e){this._selection=new Ps(e),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(e){return this._selection.containsEntireContent(e)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(e){return this._selection.getAttribute(e)}hasAttribute(e){return this._selection.hasAttribute(e)}refresh(){this._selection._updateMarkers(),this._selection._updateAttributes(!1)}is(e){return"selection"===e||"model:selection"==e||"documentSelection"==e||"model:documentSelection"==e}_setFocus(e,t){this._selection.setFocus(e,t)}_setTo(e,t,n){this._selection.setTo(e,t,n)}_setAttribute(e,t){this._selection.setAttribute(e,t)}_removeAttribute(e){this._selection.removeAttribute(e)}_getStoredAttributes(){return this._selection._getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(e){this._selection.restoreGravity(e)}static _getStoreAttributeKey(e){return"selection:"+e}static _isStoreAttributeKey(e){return e.startsWith("selection:")}}Tt(Ts,bt);class Ps extends bs{constructor(e){super(),this.markers=new Pt({idProperty:"name"}),this._model=e.model,this._document=e,this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this.listenTo(this._model,"applyOperation",(e,t)=>{const n=t[0];n.isDocumentOperation&&"marker"!=n.type&&"rename"!=n.type&&"noop"!=n.type&&(0==this._ranges.length&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))},{priority:"lowest"}),this.on("change:range",()=>{for(const e of this.getRanges())if(!this._document._validateSelectionRange(e))throw new ft.b("document-selection-wrong-position: Range from document selection starts or ends at incorrect position.",this,{range:e})}),this.listenTo(this._model.markers,"update",()=>this._updateMarkers()),this.listenTo(this._document,"change",(e,t)=>{!function(e,t){const n=e.document.differ;for(const i of n.getChanges()){if("insert"!=i.type)continue;const n=i.position.parent;i.length===n.maxOffset&&e.enqueueChange(t,e=>{const t=Array.from(n.getAttributeKeys()).filter(e=>e.startsWith("selection:"));for(const i of t)e.removeAttribute(i,n)})}}(this._model,t)})}get isCollapsed(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let e=0;e<this._ranges.length;e++)this._ranges[e].detach();this.stopListening()}*getRanges(){this._ranges.length?yield*super.getRanges():yield this._document._getDefaultRange()}getFirstRange(){return super.getFirstRange()||this._document._getDefaultRange()}getLastRange(){return super.getLastRange()||this._document._getDefaultRange()}setTo(e,t,n){super.setTo(e,t,n),this._updateAttributes(!0),this._updateMarkers()}setFocus(e,t){super.setFocus(e,t),this._updateAttributes(!0),this._updateMarkers()}setAttribute(e,t){this._setAttribute(e,t)&&this.fire("change:attribute",{attributeKeys:[e],directChange:!0})}removeAttribute(e){this._removeAttribute(e)&&this.fire("change:attribute",{attributeKeys:[e],directChange:!0})}overrideGravity(){const e=ht();return this._overriddenGravityRegister.add(e),1===this._overriddenGravityRegister.size&&this._updateAttributes(!0),e}restoreGravity(e){if(!this._overriddenGravityRegister.has(e))throw new ft.b("document-selection-gravity-wrong-restore: Attempting to restore the selection gravity for an unknown UID.",this,{uid:e});this._overriddenGravityRegister.delete(e),this.isGravityOverridden||this._updateAttributes(!0)}_popRange(){this._ranges.pop().detach()}_pushRange(e){const t=this._prepareRange(e);t&&this._ranges.push(t)}_prepareRange(e){if(this._checkRange(e),e.root==this._document.graveyard)return;const t=ks.fromRange(e);return t.on("change:range",(e,n,i)=>{if(this._hasChangedRange=!0,t.root==this._document.graveyard){this._selectionRestorePosition=i.deletionPosition;const e=this._ranges.indexOf(t);this._ranges.splice(e,1),t.detach()}}),t}_updateMarkers(){const e=[];let t=!1;for(const i of this._model.markers){const t=i.getRange();for(const n of this.getRanges())t.containsRange(n,!n.isCollapsed)&&e.push(i)}const n=Array.from(this.markers);for(const i of e)this.markers.has(i)||(this.markers.add(i),t=!0);for(const i of Array.from(this.markers))e.includes(i)||(this.markers.remove(i),t=!0);t&&this.fire("change:marker",{oldMarkers:n,directChange:!1})}_updateAttributes(e){const t=Nt(this._getSurroundingAttributes()),n=Nt(this.getAttributes());if(e)this._attributePriority=new Map,this._attrs=new Map;else for(const[r,s]of this._attributePriority)"low"==s&&(this._attrs.delete(r),this._attributePriority.delete(r));this._setAttributesTo(t);const i=[];for(const[r,s]of this.getAttributes())n.has(r)&&n.get(r)===s||i.push(r);for(const[r]of n)this.hasAttribute(r)||i.push(r);i.length>0&&this.fire("change:attribute",{attributeKeys:i,directChange:!1})}_setAttribute(e,t,n=!0){const i=n?"normal":"low";return("low"!=i||"normal"!=this._attributePriority.get(e))&&super.getAttribute(e)!==t&&(this._attrs.set(e,t),this._attributePriority.set(e,i),!0)}
1_removeAttribute(e,t=!0){const n=t?"normal":"low";return!("low"==n&&"normal"==this._attributePriority.get(e)||(this._attributePriority.set(e,n),!super.hasAttribute(e)||(this._attrs.delete(e),0)))}_setAttributesTo(e){const t=new Set;for(const[n,i]of this.getAttributes())e.get(n)!==i&&this._removeAttribute(n,!1);for(const[n,i]of e)this._setAttribute(n,i,!1)&&t.add(n);return t}*_getStoredAttributes(){const e=this.getFirstPosition().parent;if(this.isCollapsed&&e.isEmpty)for(const t of e.getAttributeKeys())if(t.startsWith("selection:")){const n=t.substr("selection:".length);yield[n,e.getAttribute(t)]}}_getSurroundingAttributes(){const e=this.getFirstPosition(),t=this._model.schema;let n=null;if(this.isCollapsed){const t=e.textNode?e.textNode:e.nodeBefore,i=e.textNode?e.textNode:e.nodeAfter;if(this.isGravityOverridden||(n=Os(t)),n||(n=Os(i)),!this.isGravityOverridden&&!n){let e=t;for(;e&&!n;)e=e.previousSibling,n=Os(e)}if(!n){let e=i;for(;e&&!n;)e=e.nextSibling,n=Os(e)}n||(n=this._getStoredAttributes())}else{const e=this.getFirstRange();for(const i of e){if(i.item.is("element")&&t.isObject(i.item))break;if("text"==i.type){n=i.item.getAttributes();break}}}return n}_fixGraveyardSelection(e){const t=this._model.schema.getNearestSelectionRange(e);t&&this._pushRange(t)}}function Os(e){return e instanceof ns||e instanceof ts?e.getAttributes():null}class xs{constructor(e){this._dispatchers=e}add(e){for(const t of this._dispatchers)e(t);return this}}var As=function(e){return rt(e,5)};class Es extends xs{elementToElement(e){return this.add(function(e){return(e=As(e)).view=Rs(e.view,"container"),t=>{var n;t.on("insert:"+e.model,(n=e.view,(e,t,i)=>{const r=n(t.item,i.writer);if(!r)return;if(!i.consumable.consume(t.item,"insert"))return;const s=i.mapper.toViewPosition(t.range.start);i.mapper.bindElements(t.item,r),i.writer.insert(s,r)}),{priority:e.converterPriority||"normal"})}}(e))}attributeToElement(e){return this.add(function(e){let t="attribute:"+((e=As(e)).model.key?e.model.key:e.model);if(e.model.name&&(t+=":"+e.model.name),e.model.values)for(const i of e.model.values)e.view[i]=Rs(e.view[i],"attribute");else e.view=Rs(e.view,"attribute");const n=Ls(e);return i=>{i.on(t,function(e){return(t,n,i)=>{const r=e(n.attributeOldValue,i.writer),s=e(n.attributeNewValue,i.writer);if(!r&&!s)return;if(!i.consumable.consume(n.item,t.name))return;const o=i.writer;if(n.item instanceof bs||n.item instanceof Ts)o.wrap(o.document.selection.getFirstRange(),s);else{let e=i.mapper.toViewRange(n.range);null!==n.attributeOldValue&&r&&(e=o.unwrap(e,r)),null!==n.attributeNewValue&&s&&o.wrap(e,s)}}}(n),{priority:e.converterPriority||"normal"})}}(e))}attributeToAttribute(e){return this.add(function(e){let t="attribute:"+((e=As(e)).model.key?e.model.key:e.model);if(e.model.name&&(t+=":"+e.model.name),e.model.values)for(const i of e.model.values)e.view[i]=Ds(e.view[i]);else e.view=Ds(e.view);const n=Ls(e);return i=>{var r;i.on(t,(r=n,(e,t,n)=>{const i=r(t.attributeOldValue,t),s=r(t.attributeNewValue,t);if(!i&&!s)return;if(!n.consumable.consume(t.item,e.name))return;const o=n.mapper.toViewElement(t.item),a=n.writer;if(!o)throw new ft.b("conversion-attribute-to-attribute-on-text: Trying to convert text node's attribute with attribute-to-attribute converter.",[t,n]);if(null!==t.attributeOldValue&&i)if("class"==i.key){const e=Array.isArray(i.value)?i.value:[i.value];for(const t of e)a.removeClass(t,o)}else if("style"==i.key){const e=Object.keys(i.value);for(const t of e)a.removeStyle(t,o)}else a.removeAttribute(i.key,o);if(null!==t.attributeNewValue&&s)if("class"==s.key){const e=Array.isArray(s.value)?s.value:[s.value];for(const t of e)a.addClass(t,o)}else if("style"==s.key){const e=Object.keys(s.value);for(const t of e)a.setStyle(t,s.value[t],o)}else a.setAttribute(s.key,s.value,o)}),{priority:e.converterPriority||"normal"})}}(e))}markerToElement(e){return this.add(function(e){return(e=As(e)).view=Rs(e.view,"ui"),t=>{var n;t.on("addMarker:"+e.model,(n=e.view,(e,t,i)=>{t.isOpening=!0;const r=n(t,i.writer);t.isOpening=!1;const s=n(t,i.writer);if(!r||!s)return;const o=t.markerRange;if(o.isCollapsed&&!i.consumable.consume(o,e.name))return;for(const n of o)if(!i.consumable.consume(n.item,e.name))return;const a=i.mapper,c=i.writer;c.insert(a.toViewPosition(o.start),r),i.mapper.bindElementToMarker(r,t.markerName),o.isCollapsed||(c.insert(a.toViewPosition(o.end),s),i.mapper.bindElementToMarker(s,t.markerName)),e.stop()}),{priority:e.converterPriority||"normal"}),t.on("removeMarker:"+e.model,(e,t,n)=>{const i=n.mapper.markerNameToElements(t.markerName);if(i){for(const e of i)n.mapper.unbindElementFromMarkerName(e,t.markerName),n.writer.clear(n.writer.createRangeOn(e),e);n.writer.clearClonedElementsGroup(t.markerName),e.stop()}},{priority:e.converterPriority||"normal"})}}(e))}markerToHighlight(e){return this.add(function(e){return t=>{var n;t.on("addMarker:"+e.model,(n=e.view,(e,t,i)=>{if(!t.item)return;if(!(t.item instanceof bs||t.item instanceof Ts||t.item.is("$textProxy")))return;const r=js(n,t,i);if(!r)return;if(!i.consumable.consume(t.item,e.name))return;const s=i.writer,o=Ms(s,r),a=s.document.selection;if(t.item instanceof bs||t.item instanceof Ts)s.wrap(a.getFirstRange(),o,a);else{const e=i.mapper.toViewRange(t.range),n=s.wrap(e,o);for(const r of n.getItems())if(r.is("attributeElement")&&r.isSimilar(o)){i.mapper.bindElementToMarker(r,t.markerName);break}}}),{priority:e.converterPriority||"normal"}),t.on("addMarker:"+e.model,function(e){return(t,n,i)=>{if(!n.item)return;if(!(n.item instanceof rs))return;const r=js(e,n,i);if(!r)return;if(!i.consumable.test(n.item,t.name))return;const s=i.mapper.toViewElement(n.item);if(s&&s.getCustomProperty("addHighlight")){i.consumable.consume(n.item,t.name);for(const e of ds._createIn(n.item))i.consumable.consume(e.item,t.name);s.getCustomProperty("addHighlight")(s,r,i.writer),i.mapper.bindElementToMarker(s,n.markerName)}}}(e.view),{priority:e.converterPriority||"normal"}),t.on("removeMarker:"+e.model,function(e){return(t,n,i)=>{if(n.markerRange.isCollapsed)return;const r=js(e,n,i);if(!r)return;const s=Ms(i.writer,r),o=i.mapper.markerNameToElements(n.markerName);if(o){for(const e of o)i.mapper.unbindElementFromMarkerName(e,n.markerName),e.is("attributeElement")?i.writer.unwrap(i.writer.createRangeOn(e),s):e.getCustomProperty("removeHighlight")(e,r.id,i.writer);i.writer.clearClonedElementsGroup(n.markerName),t.stop()}}}(e.view),{priority:e.converterPriority||"normal"})}}(e))}markerToData(e){return this.add(function(e){const t=(e=As(e)).model;return e.view||(e.view=n=>({group:t,name:n.substr(e.model.length+1)})),n=>{var i;n.on("addMarker:"+t,(i=e.view,(e,t,n)=>{const r=i(t.markerName);if(!r)return;const s=t.markerRange;n.consumable.consume(s,e.name)&&(Is(s,!1,n,t,r),Is(s,!0,n,t,r),e.stop())}),{priority:e.converterPriority||"normal"}),n.on("removeMarker:"+t,function(e){return(t,n,i)=>{const r=e(n.markerName);if(!r)return;const s=i.mapper.markerNameToElements(n.markerName);if(s){for(const e of s)i.mapper.unbindElementFromMarkerName(e,n.markerName),e.is("containerElement")?(o(`data-${r.group}-start-before`,e),o(`data-${r.group}-start-after`,e),o(`data-${r.group}-end-before`,e),o(`data-${r.group}-end-after`,e)):i.writer.clear(i.writer.createRangeOn(e),e);i.writer.clearClonedElementsGroup(n.markerName),t.stop()}function o(e,t){if(t.hasAttribute(e)){const n=new Set(t.getAttribute(e).split(","));n.delete(r.name),0==n.size?i.writer.removeAttribute(e,t):i.writer.setAttribute(e,Array.from(n).join(","),t)}}}}(e.view),{priority:e.converterPriority||"normal"})}}(e))}}function Ms(e,t){const n=e.createAttributeElement("span",t.attributes);return t.classes&&n._addClass(t.classes),t.priority&&(n._priority=t.priority),n._id=t.id,n}function Is(e,t,n,i,r){const s=t?e.start:e.end;if(n.schema.checkChild(s,"$text"))!function(e,t,n,i,r){const s=n.writer.createUIElement(`${r.group}-${t?"start":"end"}`,r.name?{name:r.name}:null);n.writer.insert(e,s),n.mapper.bindElementToMarker(s,i.markerName)}(n.mapper.toViewPosition(s),t,n,i,r);else{let e,o;t&&s.nodeAfter||!t&&!s.nodeBefore?(e=s.nodeAfter,o=!0):(e=s.nodeBefore,o=!1),function(e,t,n,i,r,s){const o=`data-${s.group}-${t?"start":"end"}-${n?"before":"after"}`,a=e.hasAttribute(o)?e.getAttribute(o).split(","):[];a.unshift(s.name),i.writer.setAttribute(o,a.join(","),e),i.mapper.bindElementToMarker(e,r.markerName)}(n.mapper.toViewElement(e),t,o,n,i,r)}}function Rs(e,t){return"function"==typeof e?e:(n,i)=>function(e,t,n){let i;"string"==typeof e&&(e={name:e});const r=Object.assign({},e.attributes);if(i="container"==n?t.createContainerElement(e.name,r):"attribute"==n?t.createAttributeElement(e.name,r,{priority:e.priority||Gn.DEFAULT_PRIORITY}):t.createUIElement(e.name,r),e.styles){const n=Object.keys(e.styles);for(const r of n)t.setStyle(r,e.styles[r],i)}if(e.classes){const n=e.classes;if("string"==typeof n)t.addClass(n,i);else for(const e of n)t.addClass(e,i)}return i}(e,i,t)}function Ls(e){return e.model.values?(t,n)=>{const i=e.view[t];return i?i(t,n):null}:e.view}function Ds(e){return"string"==typeof e?t=>({key:e,value:t}):"object"==typeof e?e.value?()=>e:t=>({key:e.key,value:t}):e}function js(e,t,n){const i="function"==typeof e?e(t,n):e;return i?(i.priority||(i.priority=10),i.id||(i.id=t.markerName),i):null}class Ns extends xs{elementToElement(e){return this.add(Vs(e))}elementToAttribute(e){return this.add(function(e){Bs(e=As(e));const t=qs(e,!1),n=zs(e.view),i=n?"element:"+n:"element";return n=>{n.on(i,t,{priority:e.converterPriority||"low"})}}(e))}attributeToAttribute(e){return this.add(function(e){let t=null;("string"==typeof(e=As(e)).view||e.view.key)&&(t=function(e){"string"==typeof e.view&&(e.view={key:e.view});const t=e.view.key;let n;return n="class"==t||"style"==t?{["class"==t?"classes":"styles"]:e.view.value}:{attributes:{[t]:void 0===e.view.value?/[\s\S]*/:e.view.value}},e.view.name&&(n.name=e.view.name),e.view=n,t}(e)),Bs(e,t);const n=qs(e,!0);return t=>{t.on("element",n,{priority:e.converterPriority||"low"})}}(e))}elementToMarker(e){return console.warn(Object(ft.a)("upcast-helpers-element-to-marker-deprecated: The UpcastHelpers#elementToMarker() method has been deprecated and will be removed in the near future. Please use UpcastHelpers#dataToMarker() instead.")),this.add(function(e){return function(e){const t=e.model;e.model=(e,n)=>{const i="string"==typeof t?t:t(e);return n.createElement("$marker",{"data-name":i})}}(e=As(e)),Vs(e)}(e))}dataToMarker(e){return this.add(function(e){(e=As(e)).model||(e.model=t=>t?e.view+":"+t:e.view);const t=Fs(Us(e,"start")),n=Fs(Us(e,"end"));return i=>{i.on("element:"+e.view+"-start",t,{priority:e.converterPriority||"normal"}),i.on("element:"+e.view+"-end",n,{priority:e.converterPriority||"normal"});const r=pt.get("low"),s=pt.get("highest"),o=pt.get(e.converterPriority)/s;i.on("element",function(e){return(t,n,i)=>{const r="data-"+e.view;function s(t,r){for(const s of r){const r=e.model(s),o=i.writer.createElement("$marker",{"data-name":r});i.writer.insert(o,t),n.modelCursor=n.modelCursor.isEqual(t)?n.modelCursor.getShiftedBy(1):n.modelCursor._getTransformedByInsertion(t,1),n.modelRange=n.modelRange._getTransformedByInsertion(t,1)[0]}}n.modelRange||(n=Object.assign(n,i.convertChildren(n.viewItem,n.modelCursor))),i.consumable.consume(n.viewItem,{attributes:r+"-end-after"})&&s(n.modelRange.end,n.viewItem.getAttribute(r+"-end-after").split(",")),i.consumable.consume(n.viewItem,{attributes:r+"-start-after"})&&s(n.modelRange.end,n.viewItem.getAttribute(r+"-start-after").split(",")),i.consumable.consume(n.viewItem,{attributes:r+"-end-before"})&&s(n.modelRange.start,n.viewItem.getAttribute(r+"-end-before").split(",")),i.consumable.consume(n.viewItem,{attributes:r+"-start-before"})&&s(n.modelRange.start,n.viewItem.getAttribute(r+"-start-before").split(","))}}(e),{priority:r+o})}}(e))}}function Vs(e){const t=Fs(e=As(e)),n=zs(e.view),i=n?"element:"+n:"element";return n=>{n.on(i,t,{priority:e.converterPriority||"normal"})}}function zs(e){return"string"==typeof e?e:"object"==typeof e&&"string"==typeof e.name?e.name:null}function Fs(e){const t=e.view?new Vt(e.view):null;return(n,i,r)=>{let s={};if(t){const e=t.match(i.viewItem);if(!e)return;s=e.match}s.name=!0;const o=(c=r.writer,(a=e.model)instanceof Function?a(i.viewItem,c):c.createElement(a));var a,c;if(!o)return;if(!r.consumable.test(i.viewItem,s))return;const l=r.splitToAllowedParent(o,i.modelCursor);if(!l)return;r.writer.insert(o,l.position),r.convertChildren(i.viewItem,r.writer.createPositionAt(o,0)),r.consumable.consume(i.viewItem,s);const u=r.getSplitParts(o);i.modelRange=new ds(r.writer.createPositionBefore(o),r.writer.createPositionAfter(u[u.length-1])),i.modelCursor=l.cursorParent?r.writer.createPositionAt(l.cursorParent,0):i.modelRange.end}}function Bs(e,t=null){const n=null===t||(e=>e.getAttribute(t));e.model={key:"object"!=typeof e.model?e.model:e.model.key,value:"object"!=typeof e.model||void 0===e.model.value?n:e.model.value}}function qs(e,t){const n=new Vt(e.view);return(i,r,s)=>{const o=n.match(r.viewItem);if(!o)return;const a=e.model.key,c="function"==typeof e.model.value?e.model.value(r.viewItem):e.model.value;null!==c&&(function(e,t){const n="function"==typeof e?e(t):e;return!("object"==typeof n&&!zs(n)||n.classes||n.attributes||n.styles)}(e.view,r.viewItem)?o.match.name=!0:delete o.match.name,s.consumable.test(r.viewItem,o.match)&&(r.modelRange||(r=Object.assign(r,s.convertChildren(r.viewItem,r.modelCursor))),function(e,t,n,i){let r=!1;for(const s of Array.from(e.getItems({shallow:n}
1)))i.schema.checkAttribute(s,t.key)&&(i.writer.setAttribute(t.key,t.value,s),r=!0);return r}(r.modelRange,{key:a,value:c},t,s)&&s.consumable.consume(r.viewItem,o.match)))}}function Us(e,t){const n={};return n.view=e.view+"-"+t,n.model=(t,n)=>{const i=t.getAttribute("name"),r=e.model(i);return n.createElement("$marker",{"data-name":r})},n}class Hs{constructor(e,t){this.model=e,this.view=new Jr(t),this.mapper=new hs,this.downcastDispatcher=new gs({mapper:this.mapper,schema:e.schema});const n=this.model.document,i=n.selection,r=this.model.markers;this.listenTo(this.model,"_beforeChanges",()=>{this.view._disableRendering(!0)},{priority:"highest"}),this.listenTo(this.model,"_afterChanges",()=>{this.view._disableRendering(!1)},{priority:"lowest"}),this.listenTo(n,"change",()=>{this.view.change(e=>{this.downcastDispatcher.convertChanges(n.differ,r,e),this.downcastDispatcher.convertSelection(i,r,e)})},{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(e,t){return(n,i)=>{const r=i.newSelection,s=new bs,o=[];for(const e of r.getRanges())o.push(t.toModelRange(e));s.setTo(o,{backward:r.isBackward}),s.isEqual(e.document.selection)||e.change(e=>{e.setSelection(s)})}}(this.model,this.mapper)),this.downcastDispatcher.on("insert:$text",(e,t,n)=>{if(!n.consumable.consume(t.item,"insert"))return;const i=n.writer,r=n.mapper.toViewPosition(t.range.start),s=i.createText(t.item.data);i.insert(r,s)},{priority:"lowest"}),this.downcastDispatcher.on("remove",(e,t,n)=>{const i=n.mapper.toViewPosition(t.position),r=t.position.getShiftedBy(t.length),s=n.mapper.toViewPosition(r,{isPhantom:!0}),o=n.writer.createRange(i,s),a=n.writer.remove(o.getTrimmed());for(const c of n.writer.createRangeIn(a).getItems())n.mapper.unbindViewElement(c)},{priority:"low"}),this.downcastDispatcher.on("selection",(e,t,n)=>{const i=n.writer,r=i.document.selection;for(const s of r.getRanges())s.isCollapsed&&s.end.parent.isAttached()&&n.writer.mergeAttributes(s.start);i.setSelection(null)},{priority:"low"}),this.downcastDispatcher.on("selection",(e,t,n)=>{const i=t.selection;if(i.isCollapsed)return;if(!n.consumable.consume(i,"selection"))return;const r=[];for(const s of i.getRanges()){const e=n.mapper.toViewRange(s);r.push(e)}n.writer.setSelection(r,{backward:i.isBackward})},{priority:"low"}),this.downcastDispatcher.on("selection",(e,t,n)=>{const i=t.selection;if(!i.isCollapsed)return;if(!n.consumable.consume(i,"selection"))return;const r=n.writer,s=i.getFirstPosition(),o=n.mapper.toViewPosition(s),a=r.breakAttributes(o);r.setSelection(a)},{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using(e=>{if("$graveyard"==e.rootName)return null;const t=new Nn(this.view.document,e.name);return t.rootName=e.rootName,this.mapper.bindElements(e,t),t})}destroy(){this.view.destroy(),this.stopListening()}}Tt(Hs,An);class Ws{constructor(){this._commands=new Map}add(e,t){this._commands.set(e,t)}get(e){return this._commands.get(e)}execute(e,...t){const n=this.get(e);if(!n)throw new ft.b("commandcollection-command-not-found: Command does not exist.",this,{commandName:e});return n.execute(...t)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const e of this.commands())e.destroy()}}class Gs{constructor(){this._consumables=new Map}add(e,t){let n;e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):(this._consumables.has(e)?n=this._consumables.get(e):(n=new Ys(e),this._consumables.set(e,n)),n.add(t))}test(e,t){const n=this._consumables.get(e);return void 0===n?null:e.is("$text")||e.is("documentFragment")?n:n.test(t)}consume(e,t){return!!this.test(e,t)&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!1):this._consumables.get(e).consume(t),!0)}revert(e,t){const n=this._consumables.get(e);void 0!==n&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):n.revert(t))}static consumablesFromElement(e){const t={element:e,name:!0,attributes:[],classes:[],styles:[]},n=e.getAttributeKeys();for(const s of n)"style"!=s&&"class"!=s&&t.attributes.push(s);const i=e.getClassNames();for(const s of i)t.classes.push(s);const r=e.getStyleNames();for(const s of r)t.styles.push(s);return t}static createFrom(e,t){if(t||(t=new Gs(e)),e.is("$text"))return t.add(e),t;e.is("element")&&t.add(e,Gs.consumablesFromElement(e)),e.is("documentFragment")&&t.add(e);for(const n of e.getChildren())t=Gs.createFrom(n,t);return t}}class Ys{constructor(e){this.element=e,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(e){e.name&&(this._canConsumeName=!0);for(const t in this._consumables)t in e&&this._add(t,e[t])}test(e){if(e.name&&!this._canConsumeName)return this._canConsumeName;for(const t in this._consumables)if(t in e){const n=this._test(t,e[t]);if(!0!==n)return n}return!0}consume(e){e.name&&(this._canConsumeName=!1);for(const t in this._consumables)t in e&&this._consume(t,e[t])}revert(e){e.name&&(this._canConsumeName=!0);for(const t in this._consumables)t in e&&this._revert(t,e[t])}_add(e,t){const n=te(t)?t:[t],i=this._consumables[e];for(const r of n){if("attributes"===e&&("class"===r||"style"===r))throw new ft.b("viewconsumable-invalid-attribute: Classes and styles should be handled separately.",this);if(i.set(r,!0),"styles"===e)for(const e of this.element.document.stylesProcessor.getRelatedStyles(r))i.set(e,!0)}}_test(e,t){const n=te(t)?t:[t],i=this._consumables[e];for(const r of n)if("attributes"!==e||"class"!==r&&"style"!==r){const e=i.get(r);if(void 0===e)return null;if(!e)return!1}else{const e="class"==r?"classes":"styles",t=this._test(e,[...this._consumables[e].keys()]);if(!0!==t)return t}return!0}_consume(e,t){const n=te(t)?t:[t],i=this._consumables[e];for(const r of n)if("attributes"!==e||"class"!==r&&"style"!==r){if(i.set(r,!1),"styles"==e)for(const e of this.element.document.stylesProcessor.getRelatedStyles(r))i.set(e,!1)}else{const e="class"==r?"classes":"styles";this._consume(e,[...this._consumables[e].keys()])}}_revert(e,t){const n=te(t)?t:[t],i=this._consumables[e];for(const r of n)if("attributes"!==e||"class"!==r&&"style"!==r)!1===i.get(r)&&i.set(r,!0);else{const e="class"==r?"classes":"styles";this._revert(e,[...this._consumables[e].keys()])}}}class $s{constructor(){this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(e,t)=>{t[0]=new Zs(t[0])},{priority:"highest"}),this.on("checkChild",(e,t)=>{t[0]=new Zs(t[0]),t[1]=this.getDefinition(t[1])},{priority:"highest"})}register(e,t){if(this._sourceDefinitions[e])throw new ft.b("schema-cannot-register-item-twice: A single item cannot be registered twice in the schema.",this,{itemName:e});this._sourceDefinitions[e]=[Object.assign({},t)],this._clearCache()}extend(e,t){if(!this._sourceDefinitions[e])throw new ft.b("schema-cannot-extend-missing-item: Cannot extend an item which was not registered yet.",this,{itemName:e});this._sourceDefinitions[e].push(Object.assign({},t)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(e){let t;return t="string"==typeof e?e:e.is&&(e.is("$text")||e.is("$textProxy"))?"$text":e.name,this.getDefinitions()[t]}isRegistered(e){return!!this.getDefinition(e)}isBlock(e){const t=this.getDefinition(e);return!(!t||!t.isBlock)}isLimit(e){const t=this.getDefinition(e);return!(!t||!t.isLimit&&!t.isObject)}isObject(e){const t=this.getDefinition(e);return!(!t||!t.isObject)}isInline(e){const t=this.getDefinition(e);return!(!t||!t.isInline)}checkChild(e,t){return!!t&&this._checkContextMatch(t,e)}checkAttribute(e,t){const n=this.getDefinition(e.last);return!!n&&n.allowAttributes.includes(t)}checkMerge(e,t=null){if(e instanceof as){const t=e.nodeBefore,n=e.nodeAfter;if(!(t instanceof rs))throw new ft.b("schema-check-merge-no-element-before: The node before the merge position must be an element.",this);if(!(n instanceof rs))throw new ft.b("schema-check-merge-no-element-after: The node after the merge position must be an element.",this);return this.checkMerge(t,n)}for(const n of t.getChildren())if(!this.checkChild(e,n))return!1;return!0}addChildCheck(e){this.on("checkChild",(t,[n,i])=>{if(!i)return;const r=e(n,i);"boolean"==typeof r&&(t.stop(),t.return=r)},{priority:"high"})}addAttributeCheck(e){this.on("checkAttribute",(t,[n,i])=>{const r=e(n,i);"boolean"==typeof r&&(t.stop(),t.return=r)},{priority:"high"})}setAttributeProperties(e,t){this._attributeProperties[e]=Object.assign(this.getAttributeProperties(e),t)}getAttributeProperties(e){return this._attributeProperties[e]||{}}getLimitElement(e){let t;for(t=e instanceof as?e.parent:(e instanceof ds?[e]:Array.from(e.getRanges())).reduce((e,t)=>
1{const n=t.getCommonAncestor();return e?e.getCommonAncestor(n,{includeSelf:!0}):n},null);!this.isLimit(t)&&t.parent;)t=t.parent;return t}checkAttributeInSelection(e,t){if(e.isCollapsed){const n=[...e.getFirstPosition().getAncestors(),new ts("",e.getAttributes())];return this.checkAttribute(n,t)}{const n=e.getRanges();for(const e of n)for(const n of e)if(this.checkAttribute(n.item,t))return!0}return!1}*getValidRanges(e,t){e=function*(e){for(const t of e)yield*t.getMinimalFlatRanges()}(e);for(const n of e)yield*this._getValidRangesForRange(n,t)}getNearestSelectionRange(e,t="both"){if(this.checkChild(e,"$text"))return new ds(e);let n,i;const r=e.getAncestors().reverse().find(e=>this.isLimit(e))||e.root;"both"!=t&&"backward"!=t||(n=new ss({boundaries:ds._createIn(r),startPosition:e,direction:"backward"})),"both"!=t&&"forward"!=t||(i=new ss({boundaries:ds._createIn(r),startPosition:e}));for(const s of function*(e,t){let n=!1;for(;!n;){if(n=!0,e){const t=e.next();t.done||(n=!1,yield{walker:e,value:t.value})}if(t){const e=t.next();e.done||(n=!1,yield{walker:t,value:e.value})}}}(n,i)){const e=s.value;if(e.type==(s.walker==n?"elementEnd":"elementStart")&&this.isObject(e.item))return ds._createOn(e.item);if(this.checkChild(e.nextPosition,"$text"))return new ds(e.nextPosition)}return null}findAllowedParent(e,t){let n=e.parent;for(;n;){if(this.checkChild(n,t))return n;if(this.isLimit(n))return null;n=n.parent}return null}removeDisallowedAttributes(e,t){for(const n of e)if(n.is("$text"))oo(this,n,t);else{const e=ds._createIn(n).getPositions();for(const n of e)oo(this,n.nodeBefore||n.parent,t)}}createContext(e){return new Zs(e)}_clearCache(){this._compiledDefinitions=null}_compile(){const e={},t=this._sourceDefinitions,n=Object.keys(t);for(const i of n)e[i]=Qs(t[i],i);for(const i of n)Xs(e,i);for(const i of n)Ks(e,i);for(const i of n)Js(e,i),eo(e,i);for(const i of n)to(e,i),no(e,i);this._compiledDefinitions=e}_checkContextMatch(e,t,n=t.length-1){const i=t.getItem(n);if(e.allowIn.includes(i.name)){if(0==n)return!0;{const e=this.getDefinition(i);return this._checkContextMatch(e,t,n-1)}}return!1}*_getValidRangesForRange(e,t){let n=e.start,i=e.start;for(const r of e.getItems({shallow:!0}))r.is("element")&&(yield*this._getValidRangesForRange(ds._createIn(r),t)),this.checkAttribute(r,t)||(n.isEqual(i)||(yield new ds(n,i)),n=as._createAfter(r)),i=as._createAfter(r);n.isEqual(i)||(yield new ds(n,i))}}Tt($s,An);class Zs{constructor(e){if(e instanceof Zs)return e;"string"==typeof e?e=[e]:Array.isArray(e)||(e=e.getAncestors({includeSelf:!0})),e[0]&&"string"!=typeof e[0]&&e[0].is("documentFragment")&&e.shift(),this._items=e.map(so)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(e){const t=new Zs([e]);return t._items=[...this._items,...t._items],t}getItem(e){return this._items[e]}*getNames(){yield*this._items.map(e=>e.name)}endsWith(e){return Array.from(this.getNames()).join(" ").endsWith(e)}startsWith(e){return Array.from(this.getNames()).join(" ").startsWith(e)}}function Qs(e,t){const n={name:t,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],inheritTypesFrom:[]};return function(e,t){for(const n of e){const e=Object.keys(n).filter(e=>e.startsWith("is"));for(const i of e)t[i]=n[i]}}(e,n),io(e,n,"allowIn"),io(e,n,"allowContentOf"),io(e,n,"allowWhere"),io(e,n,"allowAttributes"),io(e,n,"allowAttributesOf"),io(e,n,"inheritTypesFrom"),function(e,t){for(const n of e){const e=n.inheritAllFrom;e&&(t.allowContentOf.push(e),t.allowWhere.push(e),t.allowAttributesOf.push(e),t.inheritTypesFrom.push(e))}}(e,n),n}function Xs(e,t){for(const n of e[t].allowContentOf)e[n]&&ro(e,n).forEach(e=>{e.allowIn.push(t)});delete e[t].allowContentOf}function Ks(e,t){for(const n of e[t].allowWhere){const i=e[n];i&&e[t].allowIn.push(...i.allowIn)}delete e[t].allowWhere}function Js(e,t){for(const n of e[t].allowAttributesOf){const i=e[n];i&&e[t].allowAttributes.push(...i.allowAttributes)}delete e[t].allowAttributesOf}function eo(e,t){const n=e[t];for(const i of n.inheritTypesFrom){const t=e[i];if(t){const e=Object.keys(t).filter(e=>e.startsWith("is"));for(const i of e)i in n||(n[i]=t[i])}}delete n.inheritTypesFrom}function to(e,t){const n=e[t],i=n.allowIn.filter(t=>e[t]);n.allowIn=Array.from(new Set(i))}function no(e,t){const n=e[t];n.allowAttributes=Array.from(new Set(n.allowAttributes))}function io(e,t,n){for(const i of e)"string"==typeof i[n]?t[n].push(i[n]):Array.isArray(i[n])&&t[n].push(...i[n])}function ro(e,t){const n=e[t];return(i=e,Object.keys(i).map(e=>i[e])).filter(e=>e.allowIn.includes(n.name));var i}function so(e){return"string"==typeof e?{name:e,*getAttributeKeys(){},getAttribute(){}}:{name:e.is("element")?e.name:"$text",*getAttributeKeys(){yield*e.getAttributeKeys()},getAttribute:t=>e.getAttribute(t)}}
1function oo(e,t,n){for(const i of t.getAttributeKeys())e.checkAttribute(t,i)||n.removeAttribute(i,t)}class ao{constructor(e={}){this._splitParts=new Map,this._modelCursor=null,this.conversionApi=Object.assign({},e),this.conversionApi.convertItem=this._convertItem.bind(this),this.conversionApi.convertChildren=this._convertChildren.bind(this),this.conversionApi.splitToAllowedParent=this._splitToAllowedParent.bind(this),this.conversionApi.getSplitParts=this._getSplitParts.bind(this)}convert(e,t,n=["$root"]){this.fire("viewCleanup",e),this._modelCursor=function(e,t){let n;for(const i of new Zs(e)){const e={};for(const t of i.getAttributeKeys())e[t]=i.getAttribute(t);const r=t.createElement(i.name,e);n&&t.append(r,n),n=as._createAt(r,0)}return n}(n,t),this.conversionApi.writer=t,this.conversionApi.consumable=Gs.createFrom(e),this.conversionApi.store={};const{modelRange:i}=this._convertItem(e,this._modelCursor),r=t.createDocumentFragment();if(i){this._removeEmptyElements();for(const e of Array.from(this._modelCursor.parent.getChildren()))t.append(e,r);r.markers=function(e,t){const n=new Set,i=new Map,r=ds._createIn(e).getItems();for(const s of r)"$marker"==s.name&&n.add(s);for(const s of n){const e=s.getAttribute("data-name"),n=t.createPositionBefore(s);i.has(e)?i.get(e).end=n.clone():i.set(e,new ds(n.clone())),t.remove(s)}return i}(r,t)}return this._modelCursor=null,this._splitParts.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,r}_convertItem(e,t){const n=Object.assign({viewItem:e,modelCursor:t,modelRange:null});if(e.is("element")?this.fire("element:"+e.name,n,this.conversionApi):e.is("$text")?this.fire("text",n,this.conversionApi):this.fire("documentFragment",n,this.conversionApi),n.modelRange&&!(n.modelRange instanceof ds))throw new ft.b("view-conversion-dispatcher-incorrect-result: Incorrect conversion result was dropped.",this);return{modelRange:n.modelRange,modelCursor:n.modelCursor}}_convertChildren(e,t){const n=new ds(t);let i=t;for(const r of Array.from(e.getChildren())){const e=this._convertItem(r,i);e.modelRange instanceof ds&&(n.end=e.modelRange.end,i=e.modelCursor)}return{modelRange:n,modelCursor:i}}_splitToAllowedParent(e,t){const n=this.conversionApi.schema.findAllowedParent(t,e);if(!n)return null;if(n===t.parent)return{position:t};if(this._modelCursor.parent.getAncestors().includes(n))return null;const i=this.conversionApi.writer.split(t,n),r=[];for(const s of i.range.getWalker())if("elementEnd"==s.type)r.push(s.item);else{const e=r.pop();this._registerSplitPair(e,s.item)}return{position:i.position,cursorParent:i.range.end.parent}}_registerSplitPair(e,t){this._splitParts.has(e)||this._splitParts.set(e,[e]);const n=this._splitParts.get(e);this._splitParts.set(t,n),n.push(t)}_getSplitParts(e){let t;return t=this._splitParts.has(e)?this._splitParts.get(e):[e],t}_removeEmptyElements(){let e=!1;for(const t of this._splitParts.keys())t.isEmpty&&(this.conversionApi.writer.remove(t),this._splitParts.delete(t),e=!0);e&&this._removeEmptyElements()}}Tt(ao,bt);class co{constructor(e,t){this.model=e,this.stylesProcessor=t,this.mapper=new hs,this.downcastDispatcher=new gs({mapper:this.mapper,schema:e.schema}),this.downcastDispatcher.on("insert:$text",(e,t,n)=>{if(!n.consumable.consume(t.item,"insert"))return;const i=n.writer,r=n.mapper.toViewPosition(t.range.start),s=i.createText(t.item.data);i.insert(r,s)},{priority:"lowest"}),this.upcastDispatcher=new ao({schema:e.schema}),this.viewDocument=new Wn(t),this._viewWriter=new bi(this.viewDocument),this.upcastDispatcher.on("text",(e,t,n)=>{if(n.schema.checkChild(t.modelCursor,"$text")&&n.consumable.consume(t.viewItem)){const e=n.writer.createText(t.viewItem.data);n.writer.insert(e,t.modelCursor),t.modelRange=ds._createFromPositionAndShift(t.modelCursor,e.offsetSize),t.modelCursor=t.modelRange.end}},{priority:"lowest"}),this.upcastDispatcher.on("element",(e,t,n)=>{if(!t.modelRange&&n.consumable.consume(t.viewItem,{name:!0})){const{modelRange:e,modelCursor:i}=n.convertChildren(t.viewItem,t.modelCursor);t.modelRange=e,t.modelCursor=i}},{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(e,t,n)=>{if(!t.modelRange&&n.consumable.consume(t.viewItem,{name:!0})){const{modelRange:e,modelCursor:i}=n.convertChildren(t.viewItem,t.modelCursor);t.modelRange=e,t.modelCursor=i}},{priority:"lowest"}),this.decorate("init"),this.decorate("set"),this.on("init",()=>{this.fire("ready")},{priority:"lowest"})}get(e){const{rootName:t="main",trim:n="empty"}=e||{};if(!this._checkIfRootsExists([t]))throw new ft.b("datacontroller-get-non-existent-root: Attempting to get data from a non-existing root.",this);const i=this.model.document.getRoot(t);
1return"empty"!==n||this.model.hasContent(i,{ignoreWhitespaces:!0})?this.stringify(i):""}stringify(e){const t=this.toView(e);return this.processor.toData(t)}toView(e){const t=this.viewDocument,n=this._viewWriter;this.mapper.clearBindings();const i=ds._createIn(e),r=new mi(t);if(this.mapper.bindElements(e,r),this.downcastDispatcher.convertInsert(i,n),!e.is("documentFragment")){const t=function(e){const t=[],n=e.root.document;if(!n)return[];const i=ds._createIn(e);for(const r of n.model.markers){const e=i.getIntersection(r.getRange());e&&t.push([r.name,e])}return t}(e);for(const[e,i]of t)this.downcastDispatcher.convertMarkerAdd(e,i,n)}return r}init(e){if(this.model.document.version)throw new ft.b("datacontroller-init-document-not-empty: Trying to set initial data to not empty document.",this);let t={};if("string"==typeof e?t.main=e:t=e,!this._checkIfRootsExists(Object.keys(t)))throw new ft.b("datacontroller-init-non-existent-root: Attempting to init data on a non-existing root.",this);return this.model.enqueueChange("transparent",e=>{for(const n of Object.keys(t)){const i=this.model.document.getRoot(n);e.insert(this.parse(t[n],i),i,0)}}),Promise.resolve()}set(e){let t={};if("string"==typeof e?t.main=e:t=e,!this._checkIfRootsExists(Object.keys(t)))throw new ft.b("datacontroller-set-non-existent-root: Attempting to set data on a non-existing root.",this);this.model.enqueueChange("transparent",e=>{e.setSelection(null),e.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const n of Object.keys(t)){const i=this.model.document.getRoot(n);e.remove(e.createRangeIn(i)),e.insert(this.parse(t[n],i),i,0)}})}parse(e,t="$root"){const n=this.processor.toView(e);return this.toModel(n,t)}toModel(e,t="$root"){return this.model.change(n=>this.upcastDispatcher.convert(e,n,t))}addStyleProcessorRules(e){e(this.stylesProcessor)}destroy(){this.stopListening()}_checkIfRootsExists(e){for(const t of e)if(!this.model.document.getRootNames().includes(t))return!1;return!0}}Tt(co,An);class lo{constructor(e,t){this._helpers=new Map,this._downcast=Array.isArray(e)?e:[e],this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=Array.isArray(t)?t:[t],this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(e,t){const n=this._downcast.includes(t);if(!this._upcast.includes(t)&&!n)throw new ft.b("conversion-add-alias-dispatcher-not-registered: Trying to register and alias for a dispatcher that nas not been registered.",this);this._createConversionHelpers({name:e,dispatchers:[t],isDowncast:n})}for(e){if(!this._helpers.has(e))throw new ft.b("conversion-for-unknown-group: Trying to add a converter to an unknown dispatchers group.",this);return this._helpers.get(e)}elementToElement(e){this.for("downcast").elementToElement(e);for(const{model:t,view:n}of uo(e))this.for("upcast").elementToElement({model:t,view:n,converterPriority:e.converterPriority})}attributeToElement(e){this.for("downcast").attributeToElement(e);for(const{model:t,view:n}of uo(e))this.for("upcast").elementToAttribute({view:n,model:t,converterPriority:e.converterPriority})}attributeToAttribute(e){this.for("downcast").attributeToAttribute(e);for(const{model:t,view:n}of uo(e))this.for("upcast").attributeToAttribute({view:n,model:t})}_createConversionHelpers({name:e,dispatchers:t,isDowncast:n}){if(this._helpers.has(e))throw new ft.b("conversion-group-exists: Trying to register a group name that has already been registered.",this);const i=n?new Es(t):new Ns(t);this._helpers.set(e,i)}}function*uo(e){if(e.model.values)for(const t of e.model.values){const n={key:e.model.key,value:t},i=e.view[t],r=e.upcastAlso?e.upcastAlso[t]:void 0;yield*ho(n,i,r)}else yield*ho(e.model,e.view,e.upcastAlso)}function*ho(e,t,n){if(yield{model:e,view:t},n){n=Array.isArray(n)?n:[n];for(const t of n)yield{model:e,view:t}}}class po{constructor(e="default"){this.operations=[],this.type=e}get baseVersion(){for(const e of this.operations)if(null!==e.baseVersion)return e.baseVersion;return null}addOperation(e){return e.batch=this,this.operations.push(e),e}}class fo{constructor(e){this.baseVersion=e,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const e=Object.assign({},this);return e.__className=this.constructor.className,delete e.batch,delete e.isDocumentOperation,e}static get className(){return"Operation"}static fromJSON(e){return new this(e.baseVersion)}}class go{constructor(e){this.markers=new Map,this._children=new is,e&&this._insertChild(0,e)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}is(e){return"documentFragment"===e||"model:documentFragment"===e}getChild(e){return this._children.getNode(e)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(e){return this._children.getNodeIndex(e)}getChildStartOffset(e){return this._children.getNodeStartOffset(e)}getPath(){return[]}getNodeByPath(e){let t=this;for(const n of e)t=t.getChild(t.offsetToIndex(n));return t}offsetToIndex(e){return this._children.offsetToIndex(e)}toJSON(){const e=[];for(const t of this._children)e.push(t.toJSON());return e}static fromJSON(e){const t=[];for(const n of e)t.push(n.name?rs.fromJSON(n):ts.fromJSON(n));return new go(t)}_appendChild(e){this._insertChild(this.childCount,e)}_insertChild(e,t){const n=function(e){return"string"==typeof e?[new ts(e)]:(St(e)||(e=[e]),Array.from(e).map(e=>"string"==typeof e?new ts(e):e instanceof ns?new ts(e.data,e.getAttributes()):e))}(t);for(const i of n)null!==i.parent&&i._remove(),i.parent=this;this._children._insertNodes(e,n)}_removeChildren(e,t=1){const n=this._children._removeNodes(e,t);for(const i of n)i.parent=null;return n}}function mo(e,t){const n=(t=vo(t)).reduce((e,t)=>
1e+t.offsetSize,0),i=e.parent;wo(e);const r=e.index;return i._insertChild(r,t),_o(i,r+t.length),_o(i,r),new ds(e,e.getShiftedBy(n))}function bo(e){if(!e.isFlat)throw new ft.b("operation-utils-remove-range-not-flat: Trying to remove a range which starts and ends in different element.",this);const t=e.start.parent;wo(e.start),wo(e.end);const n=t._removeChildren(e.start.index,e.end.index-e.start.index);return _o(t,e.start.index),n}function yo(e,t){if(!e.isFlat)throw new ft.b("operation-utils-move-range-not-flat: Trying to move a range which starts and ends in different element.",this);const n=bo(e);return mo(t=t._getTransformedByDeletion(e.start,e.end.offset-e.start.offset),n)}function vo(e){const t=[];e instanceof Array||(e=[e]);for(let n=0;n<e.length;n++)if("string"==typeof e[n])t.push(new ts(e[n]));else if(e[n]instanceof ns)t.push(new ts(e[n].data,e[n].getAttributes()));else if(e[n]instanceof go||e[n]instanceof is)for(const i of e[n])t.push(i);else e[n]instanceof es&&t.push(e[n]);for(let n=1;n<t.length;n++){const e=t[n],i=t[n-1];e instanceof ts&&i instanceof ts&&ko(e,i)&&(t.splice(n-1,2,new ts(i.data+e.data,i.getAttributes())),n--)}return t}function _o(e,t){const n=e.getChild(t-1),i=e.getChild(t);if(n&&i&&n.is("$text")&&i.is("$text")&&ko(n,i)){const r=new ts(n.data+i.data,n.getAttributes());e._removeChildren(t-1,2),e._insertChild(t-1,r)}}function wo(e){const t=e.textNode,n=e.parent;if(t){const i=e.offset-t.startOffset,r=t.index;n._removeChildren(r,1);const s=new ts(t.data.substr(0,i),t.getAttributes()),o=new ts(t.data.substr(i),t.getAttributes());n._insertChild(r,[s,o])}}function ko(e,t){const n=e.getAttributes(),i=t.getAttributes();for(const r of n){if(r[1]!==t.getAttribute(r[0]))return!1;i.next()}return i.next().done}var Co=function(e,t){return mr(e,t)};class So extends fo{constructor(e,t,n,i,r){super(r),this.range=e.clone(),this.key=t,this.oldValue=void 0===n?null:n,this.newValue=void 0===i?null:i}get type(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}clone(){return new So(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new So(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}toJSON(){const e=super.toJSON();return e.range=this.range.toJSON(),e}_validate(){if(!this.range.isFlat)throw new ft.b("attribute-operation-range-not-flat: The range to change is not flat.",this);for(const e of this.range.getItems({shallow:!0})){if(null!==this.oldValue&&!Co(e.getAttribute(this.key),this.oldValue))throw new ft.b("attribute-operation-wrong-old-value: Changed node has different attribute value than operation's old attribute value.",this,{item:e,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&e.hasAttribute(this.key))throw new ft.b("attribute-operation-attribute-exists: The attribute with given key already exists.",this,{node:e,key:this.key})}}_execute(){Co(this.oldValue,this.newValue)||function(e,t,n){wo(e.start),wo(e.end);for(const i of e.getItems({shallow:!0})){const e=i.is("$textProxy")?i.textNode:i;null!==n?e._setAttribute(t,n):e._removeAttribute(t),_o(e.parent,e.index)}_o(e.end.parent,e.end.index)}(this.range,this.key,this.newValue)}static get className(){return"AttributeOperation"}static fromJSON(e,t){return new So(ds.fromJSON(e.range,t),e.key,e.oldValue,e.newValue,e.baseVersion)}}class To extends fo{constructor(e,t){super(null),this.sourcePosition=e.clone(),this.howMany=t}get type(){return"detach"}toJSON(){const e=super.toJSON();return e.sourcePosition=this.sourcePosition.toJSON(),e}_validate(){if(this.sourcePosition.root.document)throw new ft.b("detach-operation-on-document-node: Cannot detach document node.",this)}_execute(){bo(ds._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class Po extends fo{constructor(e,t,n,i){super(i),this.sourcePosition=e.clone(),this.sourcePosition.stickiness="toNext",this.howMany=t,this.targetPosition=n.clone(),this.targetPosition.stickiness="toNone"}get type(){return"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move"}clone(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}getMovedRangeStart(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}getReversed(){const e=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new this.constructor(this.getMovedRangeStart(),this.howMany,e,this.baseVersion+1)}_validate(){const e=this.sourcePosition.parent,t=this.targetPosition.parent,n=this.sourcePosition.offset,i=this.targetPosition.offset;if(n+this.howMany>e.maxOffset)throw new ft.b("move-operation-nodes-do-not-exist: The nodes which should be moved do n
1ot exist.",this);if(e===t&&n<i&&i<n+this.howMany)throw new ft.b("move-operation-range-into-itself: Trying to move a range of nodes to the inside of that range.",this);if(this.sourcePosition.root==this.targetPosition.root&&"prefix"==It(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())){const e=this.sourcePosition.path.length-1;if(this.targetPosition.path[e]>=n&&this.targetPosition.path[e]<n+this.howMany)throw new ft.b("move-operation-node-into-itself: Trying to move a range of nodes into one of nodes from that range.",this)}}_execute(){yo(ds._createFromPositionAndShift(this.sourcePosition,this.howMany),this.targetPosition)}toJSON(){const e=super.toJSON();return e.sourcePosition=this.sourcePosition.toJSON(),e.targetPosition=this.targetPosition.toJSON(),e}static get className(){return"MoveOperation"}static fromJSON(e,t){const n=as.fromJSON(e.sourcePosition,t),i=as.fromJSON(e.targetPosition,t);return new this(n,e.howMany,i,e.baseVersion)}}class Oo extends fo{constructor(e,t,n){super(n),this.position=e.clone(),this.position.stickiness="toNone",this.nodes=new is(vo(t)),this.shouldReceiveAttributes=!1}get type(){return"insert"}get howMany(){return this.nodes.maxOffset}clone(){const e=new is([...this.nodes].map(e=>e._clone(!0))),t=new Oo(this.position,e,this.baseVersion);return t.shouldReceiveAttributes=this.shouldReceiveAttributes,t}getReversed(){const e=new as(this.position.root.document.graveyard,[0]);return new Po(this.position,this.nodes.maxOffset,e,this.baseVersion+1)}_validate(){const e=this.position.parent;if(!e||e.maxOffset<this.position.offset)throw new ft.b("insert-operation-position-invalid: Insertion position is invalid.",this)}_execute(){const e=this.nodes;this.nodes=new is([...e].map(e=>e._clone(!0))),mo(this.position,e)}toJSON(){const e=super.toJSON();return e.position=this.position.toJSON(),e.nodes=this.nodes.toJSON(),e}static get className(){return"InsertOperation"}static fromJSON(e,t){const n=[];for(const r of e.nodes)n.push(r.name?rs.fromJSON(r):ts.fromJSON(r));const i=new Oo(as.fromJSON(e.position,t),n,e.baseVersion);return i.shouldReceiveAttributes=e.shouldReceiveAttributes,i}}class xo extends fo{constructor(e,t,n,i,r,s){super(s),this.name=e,this.oldRange=t?t.clone():null,this.newRange=n?n.clone():null,this.affectsData=r,this._markers=i}get type(){return"marker"}clone(){return new xo(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new xo(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}_execute(){this._markers[this.newRange?"_set":"_remove"](this.name,this.newRange,!0,this.affectsData)}toJSON(){const e=super.toJSON();return this.oldRange&&(e.oldRange=this.oldRange.toJSON()),this.newRange&&(e.newRange=this.newRange.toJSON()),delete e._markers,e}static get className(){return"MarkerOperation"}static fromJSON(e,t){return new xo(e.name,e.oldRange?ds.fromJSON(e.oldRange,t):null,e.newRange?ds.fromJSON(e.newRange,t):null,t.model.markers,e.affectsData,e.baseVersion)}}class Ao extends fo{constructor(e,t,n,i){super(i),this.position=e,this.position.stickiness="toNext",this.oldName=t,this.newName=n}get type(){return"rename"}clone(){return new Ao(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new Ao(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const e=this.position.nodeAfter;if(!(e instanceof rs))throw new ft.b("rename-operation-wrong-position: Given position is invalid or node after it is not an instance of Element.",this);if(e.name!==this.oldName)throw new ft.b("rename-operation-wrong-name: Element to change has different name than operation's old name.",this)}_execute(){this.position.nodeAfter.name=this.newName}toJSON(){const e=super.toJSON();return e.position=this.position.toJSON(),e}static get className(){return"RenameOperation"}static fromJSON(e,t){return new Ao(as.fromJSON(e.position,t),e.oldName,e.newName,e.baseVersion)}}class Eo extends fo{constructor(e,t,n,i,r){super(r),this.root=e,this.key=t,this.oldValue=n,this.newValue=i}get type(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}clone(){return new Eo(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new Eo(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new ft.b("rootattribute-operation-not-a-root: The element to change is not a root element.",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new ft.b("rootattribute-operation-wrong-old-value: Changed node has different attribute value than operation's old attribute value.",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new ft.b("rootattribute-operation-attribute-exists: The attribute with given key already exists.",this,{root:this.root,key:this.key})}_execute(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}toJSON(){const e=super.toJSON();return e.root=this.root.toJSON(),e}static get className(){return"RootAttributeOperation"}static fromJSON(e,t){if(!t.getRoot(e.root))throw new ft.b("rootattribute-operation-fromjson-no-root: Cannot create RootAttributeOperation. Root with specified name does not exist.",this,{rootName:e.root});return new Eo(t.getRoot(e.root),e.key,e.oldValue,e.newValue,e.baseVersion)}}class Mo extends fo{constructor(e,t,n,i,r){super(r),this.sourcePosition=e.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=t,this.targetPosition=n.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=i.clone()}get type(){return"merge"}get deletionPosition(){return new as(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const e=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new ds(this.sourcePosition,e)}clone(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const e=this.targetPosition._getTransformedByMergeOperation(this),t=this.sourcePosition.path.slice(0,-1),n=new as(this.sourcePosition.root,t)._getTransformedByMergeOperation(this),i=new Io(e,this.howMany,this.graveyardPosition,this.baseVersion+1);return i.insertionPosition=n,i}_validate(){const e=this.sourcePosition.parent,t=this.targetPosition.parent;if(!e.parent)throw new ft.b("merge-operation-source-position-invalid: Merge source position is invali
1d.",this);if(!t.parent)throw new ft.b("merge-operation-target-position-invalid: Merge target position is invalid.",this);if(this.howMany!=e.maxOffset)throw new ft.b("merge-operation-how-many-invalid: Merge operation specifies wrong number of nodes to move.",this)}_execute(){const e=this.sourcePosition.parent;yo(ds._createIn(e),this.targetPosition),yo(ds._createOn(e),this.graveyardPosition)}toJSON(){const e=super.toJSON();return e.sourcePosition=e.sourcePosition.toJSON(),e.targetPosition=e.targetPosition.toJSON(),e.graveyardPosition=e.graveyardPosition.toJSON(),e}static get className(){return"MergeOperation"}static fromJSON(e,t){const n=as.fromJSON(e.sourcePosition,t),i=as.fromJSON(e.targetPosition,t),r=as.fromJSON(e.graveyardPosition,t);return new this(n,e.howMany,i,r,e.baseVersion)}}class Io extends fo{constructor(e,t,n,i){super(i),this.splitPosition=e.clone(),this.splitPosition.stickiness="toNext",this.howMany=t,this.insertionPosition=Io.getInsertionPosition(e),this.insertionPosition.stickiness="toNone",this.graveyardPosition=n?n.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const e=this.insertionPosition.path.slice();return e.push(0),new as(this.insertionPosition.root,e)}get movedRange(){const e=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new ds(this.splitPosition,e)}clone(){const e=new this.constructor(this.splitPosition,this.howMany,this.graveyardPosition,this.baseVersion);return e.insertionPosition=this.insertionPosition,e}getReversed(){const e=new as(this.splitPosition.root.document.graveyard,[0]);return new Mo(this.moveTargetPosition,this.howMany,this.splitPosition,e,this.baseVersion+1)}_validate(){const e=this.splitPosition.parent;if(!e||e.maxOffset<this.splitPosition.offset)throw new ft.b("split-operation-position-invalid: Split position is invalid.",this);if(!e.parent)throw new ft.b("split-operation-split-in-root: Cannot split root element.",this);if(this.howMany!=e.maxOffset-this.splitPosition.offset)throw new ft.b("split-operation-how-many-invalid: Split operation specifies wrong number of nodes to move.",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new ft.b("split-operation-graveyard-position-invalid: Graveyard position invali
1d.",this)}_execute(){const e=this.splitPosition.parent;if(this.graveyardPosition)yo(ds._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{const t=e._clone();mo(this.insertionPosition,t)}yo(new ds(as._createAt(e,this.splitPosition.offset),as._createAt(e,e.maxOffset)),this.moveTargetPosition)}toJSON(){const e=super.toJSON();return e.splitPosition=this.splitPosition.toJSON(),e.insertionPosition=this.insertionPosition.toJSON(),this.graveyardPosition&&(e.graveyardPosition=this.graveyardPosition.toJSON()),e}static get className(){return"SplitOperation"}static getInsertionPosition(e){const t=e.path.slice(0,-1);return t[t.length-1]++,new as(e.root,t)}static fromJSON(e,t){const n=as.fromJSON(e.splitPosition,t),i=as.fromJSON(e.insertionPosition,t),r=e.graveyardPosition?as.fromJSON(e.graveyardPosition,t):null,s=new this(n,e.howMany,r,e.baseVersion);return s.insertionPosition=i,s}}class Ro extends rs{constructor(e,t,n="main"){super(t),this._document=e,this.rootName=n}get document(){return this._document}is(e,t){return t?t===this.name&&("rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e):"rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e||"node"===e||"model:node"===e}toJSON(){return this.rootName}}class Lo{constructor(e,t){this.model=e,this.batch=t}createText(e,t){return new ts(e,t)}createElement(e,t){return new rs(e,t)}createDocumentFragment(){return new go}cloneElement(e,t=!0){return e._clone(t)}insert(e,t,n=0){if(this._assertWriterUsedCorrectly(),e instanceof ts&&""==e.data)return;const i=as._createAt(t,n);if(e.parent){if(zo(e.root,i.root))return void this.move(ds._createOn(e),i);if(e.root.document)throw new ft.b("model-writer-insert-forbidden-move: Cannot move a node from a document to a different tree. It is forbidden to move a node that was already in a document outside of it.",this);this.remove(e)}const r=new Oo(i,e,i.root.document?i.root.document.version:null);if(e instanceof ts&&(r.shouldReceiveAttributes=!0),this.batch.addOperation(r),this.model.applyOperation(r),e instanceof go)for(const[s,o]of e.markers){const e=as._createAt(o.root,0),t={range:new ds(o.start._getCombined(e,i),o.end._getCombined(e,i)),usingOperation:!0,affectsData:!0};this.model.markers.has(s)?this.updateMarker(s,t):this.addMarker(s,t)}}insertText(e,t,n,i){t instanceof go||t instanceof rs||t instanceof as?this.insert(this.createText(e),t,n):this.insert(this.createText(e,t),n,i)}insertElement(e,t,n,i){t instanceof go||t instanceof rs||t instanceof as?this.insert(this.createElement(e),t,n):this.insert(this.createElement(e,t),n,i)}append(e,t){this.insert(e,t,"end")}appendText(e,t,n){t instanceof go||t instanceof rs?this.insert(this.createText(e),t,"end"):this.insert(this.createText(e,t),n,"end")}appendElement(e,t,n){t instanceof go||t instanceof rs?this.insert(this.createElement(e),t,"end"):this.insert(this.createElement(e,t),n,"end")}setAttribute(e,t,n){if(this._assertWriterUsedCorrectly(),n instanceof ds){const i=n.getMinimalFlatRanges();for(const n of i)Do(this,e,t,n)}else jo(this,e,t,n)}setAttributes(e,t){for(const[n,i]of Nt(e))this.setAttribute(n,i,t)}removeAttribute(e,t){if(this._assertWriterUsedCorrectly(),t instanceof ds){const n=t.getMinimalFlatRanges();for(const t of n)Do(this,e,null,t)}else jo(this,e,null,t)}clearAttributes(e){this._assertWriterUsedCorrectly();const t=e=>{for(const t of e.getAttributeKeys())this.removeAttribute(t,e)};if(e instanceof ds)for(const n of e.getItems())t(n);else t(e)}move(e,t,n){if(this._assertWriterUsedCorrectly(),!(e instanceof ds))throw new ft.b("writer-move-invalid-range: Invalid range to move.",this);if(!e.isFlat)throw new ft.b("writer-move-range-not-flat: Range to move is not flat.",this);const i=as._createAt(t,n);if(i.isEqual(e.start))return;if(this._addOperationForAffectedMarkers("move",e),!zo(e.root,i.root))throw new ft.b("writer-move-different-document: Range is going to be moved between different documents.",this);const r=new Po(e.start,e.end.offset-e.start.offset,i,e.root.document?e.root.document.version:null);this.batch.addOperation(r),this.model.applyOperation(r)}remove(e){this._assertWriterUsedCorrectly();const t=(e instanceof ds?e:ds._createOn(e)).getMinimalFlatRanges().reverse();for(const n of t)this._addOperationForAffectedMarkers("move",n),Vo(n.start,n.end.offset-n.start.offset,this.batch,this.model)}merge(e){this._assertWriterUsedCorrectly();const t=e.nodeBefore,n=e.nodeAfter;if(this._addOperationForAffectedMarkers("merge",e),!(t instanceof rs))throw new ft.b("writer-merge-no-element-before: Node before merge position must be an element.",this);if(!(n instanceof rs))throw new ft.b("writer-merge-no-element-after: Node after merge position must be an element.",this);e.root.document?this._merge(e):this._mergeDetached(e)}createPositionFromPath(e,t,n){return this.model.createPositionFromPath(e,t,n)}createPositionAt(e,t){return this.model.createPositionAt(e,t)}createPositionAfter(e){return this.model.createPositionAfter(e)}createPositionBefore(e){return this.model.createPositionBefore(e)}createRange(e,t){return this.model.createRange(e,t)}createRangeIn(e){return this.model.createRangeIn(e)}createRangeOn(e){return this.model.createRangeOn(e)}createSelection(e,t,n){return this.model.createSelection(e,t,n)}_mergeDetached(e){const t=e.nodeBefore,n=e.nodeAfter;this.move(ds._createIn(n),as._createAt(t,"end")),this.remove(n)}_merge(e){const t=as._createAt(e.nodeBefore,"end"),n=as._createAt(e.nodeAfter,0),i=new as(e.root.document.graveyard,[0]),r=new Mo(n,e.nodeAfter.maxOffset,t,i,e.root.document.version);this.batch.addOperation(r),this.model.applyOperation(r)}rename(e,t){if(this._assertWriterUsedCorrectly(),!(e instanceof rs))throw new ft.b("writer-rename-not-element-instance: Trying to rename an object which is not an instance of Element.",this);const n=e.root.document?e.root.document.version:null,i=new Ao(as._createBefore(e),e.name,t,n);this.batch.addOperation(i),this.model.applyOperation(i)}split(e,t){this._assertWriterUsedCorrectly();let n,i,r=e.parent;if(!r.parent)throw new ft.b("writer-split-element-no-parent: Element with no parent can not be split.",this);if(t||(t=r.parent),!e.parent.getAncestors({includeSelf:!0}).includes(t))throw new ft.b("writer-split-invalid-limit-element: Limit element is not a position ancestor.",this);do{const t=new Io(e,r.maxOffset-e.offset,null,r.root.document?r.root.document.version:null);this.batch.addOperation(t),this.model.applyOperation(t),n||i||(n=r,i=e.parent.nextSibling),r=(e=this.createPositionAfter(e.parent)).parent}while(r!==t);return{position:e,range:new ds(as._createAt(n,"end"),as._createAt(i,0))}}wrap(e,t){if(this._assertWriterUsedCorrectly(),!e.isFlat)throw new ft.b("writer-wrap-range-not-flat: Range to wrap is not flat.",this);const n=t instanceof rs?t:new rs(t);if(n.childCount>0)throw new ft.b("writer-wrap-element-not-empty: Element to wrap with is not empty.",this);if(null!==n.parent)throw new ft.b("writer-wrap-element-attached: Element to wrap with is already attached to tree model.",this);this.insert(n,e.start);const i=new ds(e.start.getShiftedBy(1),e.end.getShiftedBy(1));this.move(i,as._createAt(n,0))}unwrap(e){if(this._assertWriterUsedCorrectly(),null===e.parent)throw new ft.b("writer-unwrap-element-no-parent: Trying to unwrap an element which has no parent.",this);this.move(ds._createIn(e),this.createPositionAfter(e)),this.remove(e)}
1addMarker(e,t){if(this._assertWriterUsedCorrectly(),!t||"boolean"!=typeof t.usingOperation)throw new ft.b("writer-addMarker-no-usingOperation: The options.usingOperation parameter is required when adding a new marker.",this);const n=t.usingOperation,i=t.range,r=void 0!==t.affectsData&&t.affectsData;if(this.model.markers.has(e))throw new ft.b("writer-addMarker-marker-exists: Marker with provided name already exists.",this);if(!i)throw new ft.b("writer-addMarker-no-range: Range parameter is required when adding a new marker.",this);return n?(No(this,e,null,i,r),this.model.markers.get(e)):this.model.markers._set(e,i,n,r)}updateMarker(e,t){this._assertWriterUsedCorrectly();const n="string"==typeof e?e:e.name,i=this.model.markers.get(n);if(!i)throw new ft.b("writer-updateMarker-marker-not-exists: Marker with provided name does not exists.",this);if(!t)return void this.model.markers._refresh(i);const r="boolean"==typeof t.usingOperation,s="boolean"==typeof t.affectsData,o=s?t.affectsData:i.affectsData;if(!r&&!t.range&&!s)throw new ft.b("writer-updateMarker-wrong-options: One of the options is required - provide range, usingOperations or affectsData.",this);const a=i.getRange(),c=t.range?t.range:a;r&&t.usingOperation!==i.managedUsingOperations?t.usingOperation?No(this,n,null,c,o):(No(this,n,a,null,o),this.model.markers._set(n,c,void 0,o)):i.managedUsingOperations?No(this,n,a,c,o):this.model.markers._set(n,c,void 0,o)}removeMarker(e){this._assertWriterUsedCorrectly();const t="string"==typeof e?e:e.name;if(!this.model.markers.has(t))throw new ft.b("writer-removeMarker-no-marker: Trying to remove marker which does not exist.",this);const n=this.model.markers.get(t);n.managedUsingOperations?No(this,t,n.getRange(),null,n.affectsData):this.model.markers._remove(t)}setSelection(e,t,n){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(e,t,n)}setSelectionFocus(e,t){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(e,t)}setSelectionAttribute(e,t){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._setSelectionAttribute(e,t);else for(const[n,i]of Nt(e))this._setSelectionAttribute(n,i)}removeSelectionAttribute(e){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._removeSelectionAttribute(e);else for(const t of e)this._removeSelectionAttribute(t)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(e){this.model.document.selection._restoreGravity(e)}_setSelectionAttribute(e,t){const n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){const i=Ts._getStoreAttributeKey(e);this.setAttribute(i,t,n.anchor.parent)}n._setAttribute(e,t)}_removeSelectionAttribute(e){const t=this.model.document.selection;if(t.isCollapsed&&t.anchor.parent.isEmpty){const n=Ts._getStoreAttributeKey(e);this.removeAttribute(n,t.anchor.parent)}t._removeAttribute(e)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new ft.b("writer-incorrect-use: Trying to use a writer outside the change() block.",this)}_addOperationForAffectedMarkers(e,t){for(const n of this.model.markers){if(!n.managedUsingOperations)continue;const i=n.getRange();let r=!1;if("move"===e)r=t.containsPosition(i.start)||t.start.isEqual(i.start)||t.containsPosition(i.end)||t.end.isEqual(i.end);else{const e=t.nodeAfter;r=i.start.parent==t.nodeBefore&&i.start.isAtEnd||i.end.parent==e&&0==i.end.offset||i.end.nodeAfter==e||i.start.nodeAfter==e}r&&this.updateMarker(n.name,{range:i})}}}function Do(e,t,n,i){const r=e.model,s=r.document;let o,a,c,l=i.start;for(const d of i.getWalker({shallow:!0}))c=d.item.getAttribute(t),o&&a!=c&&(a!=n&&u(),l=o),o=d.nextPosition,a=c;function u(){const i=new ds(l,o),c=new So(i,t,a,n,i.root.document?s.version:null);e.batch.addOperation(c),r.applyOperation(c)}o instanceof as&&o!=l&&a!=n&&u()}function jo(e,t,n,i){const r=e.model,s=r.document,o=i.getAttribute(t);let a,c;o!=n&&(i.root===i?c=new Eo(i,t,o,n,i.document?s.version:null):(a=new ds(as._createBefore(i),e.createPositionAfter(i)),c=new So(a,t,o,n,a.root.document?s.version:null)),e.batch.addOperation(c),r.applyOperation(c))}
1function No(e,t,n,i,r){const s=e.model,o=new xo(t,n,i,s.markers,r,s.document.version);e.batch.addOperation(o),s.applyOperation(o)}function Vo(e,t,n,i){let r;if(e.root.document){const n=i.document,s=new as(n.graveyard,[0]);r=new Po(e,t,s,n.version)}else r=new To(e,t);n.addOperation(r),i.applyOperation(r)}function zo(e,t){return e===t||e instanceof Ro&&t instanceof Ro}class Fo{constructor(e){this._markerCollection=e,this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size}refreshItem(e){if(this._isInInsertedElement(e.parent))return;this._markRemove(e.parent,e.startOffset,e.offsetSize),this._markInsert(e.parent,e.startOffset,e.offsetSize);const t=ds._createOn(e);for(const n of this._markerCollection.getMarkersIntersectingRange(t)){const e=n.getRange();this.bufferMarkerChange(n.name,e,e,n.affectsData)}this._cachedChanges=null}bufferOperation(e){switch(e.type){case"insert":if(this._isInInsertedElement(e.position.parent))return;this._markInsert(e.position.parent,e.position.offset,e.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const t of e.range.getItems({shallow:!0}))this._isInInsertedElement(t.parent)||this._markAttribute(t);break;case"remove":case"move":case"reinsert":{if(e.sourcePosition.isEqual(e.targetPosition)||e.sourcePosition.getShiftedBy(e.howMany).isEqual(e.targetPosition))return;const t=this._isInInsertedElement(e.sourcePosition.parent),n=this._isInInsertedElement(e.targetPosition.parent);t||this._markRemove(e.sourcePosition.parent,e.sourcePosition.offset,e.howMany),n||this._markInsert(e.targetPosition.parent,e.getMovedRangeStart().offset,e.howMany);break}case"rename":{if(this._isInInsertedElement(e.position.parent))return;this._markRemove(e.position.parent,e.position.offset,1),this._markInsert(e.position.parent,e.position.offset,1);const t=ds._createFromPositionAndShift(e.position,1);for(const e of this._markerCollection.getMarkersIntersectingRange(t)){const t=e.getRange();this.bufferMarkerChange(e.name,t,t,e.affectsData)}break}case"split":{const t=e.splitPosition.parent;this._isInInsertedElement(t)||this._markRemove(t,e.splitPosition.offset,e.howMany),this._isInInsertedElement(e.insertionPosition.parent)||this._markInsert(e.insertionPosition.parent,e.insertionPosition.offset,1),e.graveyardPosition&&this._markRemove(e.graveyardPosition.parent,e.graveyardPosition.offset,1);break}case"merge":{const t=e.sourcePosition.parent;this._isInInsertedElement(t.parent)||this._markRemove(t.parent,t.startOffset,1),this._markInsert(e.graveyardPosition.parent,e.graveyardPosition.offset,1);const n=e.targetPosition.parent;this._isInInsertedElement(n)||this._markInsert(n,e.targetPosition.offset,t.maxOffset);break}}this._cachedChanges=null}bufferMarkerChange(e,t,n,i){const r=this._changedMarkers.get(e);r?(r.newRange=n,r.affectsData=i,null==r.oldRange&&null==r.newRange&&this._changedMarkers.delete(e)):this._changedMarkers.set(e,{oldRange:t,newRange:n,affectsData:i})}getMarkersToRemove(){const e=[];for(const[t,n]of this._changedMarkers)null!=n.oldRange&&e.push({name:t,range:n.oldRange});return e}getMarkersToAdd(){const e=[];for(const[t,n]of this._changedMarkers)null!=n.newRange&&e.push({name:t,range:n.newRange});return e}getChangedMarkers(){return Array.from(this._changedMarkers).map(e=>({name:e[0],data:{oldRange:e[1].oldRange,newRange:e[1].newRange}}))}hasDataChanges(){for(const[,e]of this._changedMarkers)if(e.affectsData)return!0;return this._changesInElement.size>0}getChanges(e={includeChangesInGraveyard:!1}){if(this._cachedChanges)return e.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();const t=[];for(const n of this._changesInElement.keys()){const e=this._changesInElement.get(n).sort((e,t)=>e.offset===t.offset?e.type!=t.type?"remove"==e.type?-1:1:0:e.offset<t.offset?-1:1),i=this._elementSnapshots.get(n),r=Bo(n.getChildren()),s=qo(i.length,e);let o=0,a=0;for(const c of s)if("i"===c)t.push(this._getInsertDiff(n,o,r[o].name)),o++;else if("r"===c)t.push(this._getRemoveDiff(n,o,i[a].name)),a++;
1else if("a"===c){const e=r[o].attributes,s=i[a].attributes;let c;if("$text"==r[o].name)c=new ds(as._createAt(n,o),as._createAt(n,o+1));else{const e=n.offsetToIndex(o);c=new ds(as._createAt(n,o),as._createAt(n.getChild(e),0))}t.push(...this._getAttributesDiff(c,s,e)),o++,a++}else o++,a++}t.sort((e,t)=>e.position.root!=t.position.root?e.position.root.rootName<t.position.root.rootName?-1:1:e.position.isEqual(t.position)?e.changeCount-t.changeCount:e.position.isBefore(t.position)?-1:1);for(let n=1;n<t.length;n++){const e=t[n-1],i=t[n],r="remove"==e.type&&"remove"==i.type&&"$text"==e.name&&"$text"==i.name&&e.position.isEqual(i.position),s="attribute"==e.type&&"attribute"==i.type&&e.position.parent==i.position.parent&&e.range.isFlat&&i.range.isFlat&&e.position.offset+e.length==i.position.offset&&e.attributeKey==i.attributeKey&&e.attributeOldValue==i.attributeOldValue&&e.attributeNewValue==i.attributeNewValue;(r||"insert"==e.type&&"insert"==i.type&&"$text"==e.name&&"$text"==i.name&&e.position.parent==i.position.parent&&e.position.offset+e.length==i.position.offset||s)&&(t[n-1].length++,s&&(t[n-1].range.end=t[n-1].range.end.getShiftedBy(1)),t.splice(n,1),n--)}for(const n of t)delete n.changeCount,"attribute"==n.type&&(delete n.position,delete n.length);return this._changeCount=0,this._cachedChangesWithGraveyard=t.slice(),this._cachedChanges=t.slice().filter(Uo),e.includeChangesInGraveyard?this._cachedChangesWithGraveyard:this._cachedChanges}reset(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._cachedChanges=null}_markInsert(e,t,n){const i={type:"insert",offset:t,howMany:n,count:this._changeCount++};this._markChange(e,i)}_markRemove(e,t,n){const i={type:"remove",offset:t,howMany:n,count:this._changeCount++};this._markChange(e,i),this._removeAllNestedChanges(e,t,n)}_markAttribute(e){const t={type:"attribute",offset:e.startOffset,howMany:e.offsetSize,count:this._changeCount++};this._markChange(e.parent,t)}_markChange(e,t){this._makeSnapshot(e);const n=this._getChangesForElement(e);this._handleChange(t,n),n.push(t);for(let i=0;i<n.length;i++)n[i].howMany<1&&(n.splice(i,1),i--)}_getChangesForElement(e){let t;return this._changesInElement.has(e)?t=this._changesInElement.get(e):(t=[],this._changesInElement.set(e,t)),t}_makeSnapshot(e){this._elementSnapshots.has(e)||this._elementSnapshots.set(e,Bo(e.getChildren()))}_handleChange(e,t){e.nodesToHandle=e.howMany;for(const n of t){const i=e.offset+e.howMany,r=n.offset+n.howMany;if("insert"==e.type&&("insert"==n.type&&(e.offset<=n.offset?n.offset+=e.howMany:e.offset<r&&(n.howMany+=e.nodesToHandle,e.nodesToHandle=0)),"remove"==n.type&&e.offset<n.offset&&(n.offset+=e.howMany),"attribute"==n.type))if(e.offset<=n.offset)n.offset+=e.howMany;else if(e.offset<r){const r=n.howMany;n.howMany=e.offset-n.offset,t.unshift({type:"attribute",offset:i,howMany:r-n.howMany,count:this._changeCount++})}if("remove"==e.type){if("insert"==n.type)if(i<=n.offset)n.offset-=e.howMany;else if(i<=r)if(e.offset<n.offset){const t=i-n.offset;n.offset=e.offset,n.howMany-=t,e.nodesToHandle-=t}else n.howMany-=e.nodesToHandle,e.nodesToHandle=0;else if(e.offset<=n.offset)e.nodesToHandle-=n.howMany,n.howMany=0;else if(e.offset<r){const t=r-e.offset;n.howMany-=t,e.nodesToHandle-=t}if("remove"==n.type&&(i<=n.offset?n.offset-=e.howMany:e.offset<n.offset&&(e.nodesToHandle+=n.howMany,n.howMany=0)),"attribute"==n.type)if(i<=n.offset)n.offset-=e.howMany;else if(e.offset<n.offset){const t=i-n.offset;n.offset=e.offset,n.howMany-=t}else if(e.offset<r)if(i<=r){const i=n.howMany;n.howMany=e.offset-n.offset,t.unshift({type:"attribute",offset:e.offset,howMany:i-n.howMany-e.nodesToHandle,count:this._changeCount++})}else n.howMany-=r-e.offset}if("attribute"==e.type){if("insert"==n.type)if(e.offset<n.offset&&i>n.offset){if(i>r){const e={type:"attribute",offset:r,howMany:i-r,count:this._changeCount++};this._handleChange(e,t),t.push(e)}e.nodesToHandle=n.offset-e.offset,e.howMany=e.nodesToHandle}else e.offset>=n.offset&&e.offset<r&&(i>r?(e.nodesToHandle=i-r,e.offset=r):e.nodesToHandle=0);if("remove"==n.type&&e.offset<n.offset&&i>n.offset){const r={type:"attribute",offset:n.offset,howMany:i-n.offset,count:this._changeCount++};this._handleChange(r,t),t.push(r),e.nodesToHandle=n.offset-e.offset,e.howMany=e.nodesToHandle}"attribute"==n.type&&(e.offset>=n.offset&&i<=r?(e.nodesToHandle=0,e.howMany=0,e.offset=0):e.offset<=n.offset&&i>=r&&(n.howMany=0))}}e.howMany=e.nodesToHandle,delete e.nodesToHandle}_getInsertDiff(e,t,n){return{type:"insert",position:as._createAt(e,t),name:n,length:1,changeCount:this._changeCount++}}_getRemoveDiff(e,t,n){return{type:"remove",position:as._createAt(e,t),name:n,length:1,changeCount:this._changeCount++}}_getAttributesDiff(e,t,n){const i=[];n=new Map(n);for(const[r,s]of t){const t=n.has(r)?n.get(r):null;t!==s&&i.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:r,attributeOldValue:s,attributeNewValue:t,changeCount:this._changeCount++}),n.delete(r)}for(const[r,s]of n)i.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:r,attributeOldValue:null,attributeNewValue:s,changeCount:this._changeCount++});return i}_isInInsertedElement(e){const t=e.parent;if(!t)return!1;const n=this._changesInElement.get(t),i=e.startOffset;if(n)for(const r of n)if("insert"==r.type&&i>=r.offset&&i<r.offset+r.howMany)return!0;return this._isInInsertedElement(t)}
1_removeAllNestedChanges(e,t,n){const i=new ds(as._createAt(e,t),as._createAt(e,t+n));for(const r of i.getItems({shallow:!0}))r.is("element")&&(this._elementSnapshots.delete(r),this._changesInElement.delete(r),this._removeAllNestedChanges(r,0,r.maxOffset))}}function Bo(e){const t=[];for(const n of e)if(n.is("$text"))for(let e=0;e<n.data.length;e++)t.push({name:"$text",attributes:new Map(n.getAttributes())});else t.push({name:n.name,attributes:new Map(n.getAttributes())});return t}function qo(e,t){const n=[];let i=0,r=0;for(const s of t){if(s.offset>i){for(let e=0;e<s.offset-i;e++)n.push("e");r+=s.offset-i}if("insert"==s.type){for(let e=0;e<s.howMany;e++)n.push("i");i=s.offset+s.howMany}else if("remove"==s.type){for(let e=0;e<s.howMany;e++)n.push("r");i=s.offset,r+=s.howMany}else n.push(..."a".repeat(s.howMany).split("")),i=s.offset+s.howMany,r+=s.howMany}if(r<e)for(let s=0;s<e-r-i;s++)n.push("e");return n}function Uo(e){return!(e.position&&"$graveyard"==e.position.root.rootName||e.range&&"$graveyard"==e.range.root.rootName)}class Ho{constructor(){this._operations=[],this._undoPairs=new Map,this._undoneOperations=new Set}addOperation(e){this._operations.includes(e)||this._operations.push(e)}getOperations(e=0,t=Number.POSITIVE_INFINITY){return e<0?[]:this._operations.slice(e,t)}getOperation(e){return this._operations[e]}setOperationAsUndone(e,t){this._undoPairs.set(t,e),this._undoneOperations.add(e)}isUndoingOperation(e){return this._undoPairs.has(e)}isUndoneOperation(e){return this._undoneOperations.has(e)}getUndoneOperation(e){return this._undoPairs.get(e)}}function Wo(e,t){return!!(n=e.charAt(t-1))&&1==n.length&&/[\ud800-\udbff]/.test(n)&&function(e){return!!e&&1==e.length&&/[\udc00-\udfff]/.test(e)}(e.charAt(t));var n}function Go(e,t){return!!(n=e.charAt(t))&&1==n.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(n);var n}class Yo{constructor(e){this.model=e,this.version=0,this.history=new Ho(this),this.selection=new Ts(this),this.roots=new Pt({idProperty:"rootName"}),this.differ=new Fo(e.markers),this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root","$graveyard"),this.listenTo(e,"applyOperation",(e,t)=>{const n=t[0];if(n.isDocumentOperation&&n.baseVersion!==this.version)throw new ft.b("model-document-applyOperation-wrong-version: Only operations with matching versions can be applied.",this,{operation:n})},{priority:"highest"}),this.listenTo(e,"applyOperation",(e,t)=>{const n=t[0];n.isDocumentOperation&&this.differ.bufferOperation(n)},{priority:"high"}),this.listenTo(e,"applyOperation",(e,t)=>{const n=t[0];n.isDocumentOperation&&(this.version++,this.history.addOperation(n))},{priority:"low"}),this.listenTo(this.selection,"change",()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0}),this.listenTo(e.markers,"update",(e,t,n,i)=>{this.differ.bufferMarkerChange(t.name,n,i,t.affectsData),null===n&&t.on("change",(e,n)=>{this.differ.bufferMarkerChange(t.name,n,t.getRange(),t.affectsData)})})}get graveyard(){return this.getRoot("$graveyard")}createRoot(e="$root",t="main"){if(this.roots.get(t))throw new ft.b("model-document-createRoot-name-exists: Root with specified name already exists.",this,{name:t});const n=new Ro(this,e,t);return this.roots.add(n),n}destroy(){this.selection.destroy(),this.stopListening()}getRoot(e="main"){return this.roots.get(e)}getRootNames(){return Array.from(this.roots,e=>e.rootName).filter(e=>"$graveyard"!=e)}registerPostFixer(e){this._postFixers.add(e)}toJSON(){const e=Rt(this);return e.selection="[engine.model.DocumentSelection]",e.model="[engine.model.Model]",e}_handleChangeBlock(e){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(e),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",e.batch):this.fire("change",e.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){for(const e of this.roots)if(e!==this.graveyard)return e;return this.graveyard}_getDefaultRange(){const e=this._getDefaultRoot(),t=this.model,n=t.schema,i=t.createPositionFromPath(e,[0]);return n.getNearestSelectionRange(i)||t.createRange(i)}_validateSelectionRange(e){return $o(e.start)&&$o(e.end)}_callPostFixers(e){let t=!1;do{for(const n of this._postFixers)if(this.selection.refresh(),t=n(e),t)break}while(t)}}function $o(e){const t=e.textNode;if(t){const n=t.data,i=e.offset-t.startOffset;return!Wo(n,i)&&!Go(n,i)}return!0}Tt(Yo,bt);class Zo{constructor(){this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(e){return this._markers.has(e)}get(e){return this._markers.get(e)||null}_set(e,t,n=!1,i=!1){const r=e instanceof Qo?e.name:e;if(r.includes(","))throw new ft.b('markercollection-incorrect-marker-name: Marker name cannot contain "," character.',this);const s=this._markers.get(r);if(s){const e=s.getRange();let o=!1;return e.isEqual(t)||(s._attachLiveRange(ks.fromRange(t)),o=!0),n!=s.managedUsingOperations&&(s._managedUsingOperations=n,o=!0),"boolean"==typeof i&&i!=s.affectsData&&(s._affectsData=i,o=!0),o&&this.fire("update:"+r,s,e,t),s}const o=ks.fromRange(t),a=new Qo(r,o,n,i);return this._markers.set(r,a),this.fire("update:"+r,a,null,t),a}_remove(e){const t=e instanceof Qo?e.name:e,n=this._markers.get(t);return!!n&&(this._markers.delete(t),this.fire("update:"+t,n,n.getRange(),null),this._destroyMarker(n),!0)}_refresh(e){const t=e instanceof Qo?e.name:e,n=this._markers.get(t);if(!n)throw new ft.b("markercollection-refresh-marker-not-exists: Marker with provided name does not exists.",this);const i=n.getRange();this.fire("update:"+t,n,i,i,n.managedUsingOperations,n.affectsData)}*getMarkersAtPosition(e){for(const t of this)t.getRange().containsPosition(e)&&(yield t)}*getMarkersIntersectingRange(e){for(const t of this)null!==t.getRange().getIntersection(e)&&(yield t)}destroy(){for(const e of this._markers.values())this._destroyMarker(e);this._markers=null,this.stopListening()}*getMarkersGroup(e){for(const t of this._markers.values())t.name.startsWith(e+":")&&(yield t)}_destroyMarker(e){e.stopListening(),e._detachLiveRange()}}Tt(Zo,bt);class Qo{constructor(e,t,n,i){this.name=e,this._liveRange=this._attachLiveRange(t),this._managedUsingOperations=n,this._affectsData=i}get managedUsingOperations(){if(!this._liveRange)throw new ft.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new ft.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._affectsData}
1getStart(){if(!this._liveRange)throw new ft.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new ft.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new ft.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._liveRange.toRange()}is(e){return"marker"===e||"model:marker"===e}_attachLiveRange(e){return this._liveRange&&this._detachLiveRange(),e.delegate("change:range").to(this),e.delegate("change:content").to(this),this._liveRange=e,e}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}Tt(Qo,bt);class Xo extends fo{get type(){return"noop"}clone(){return new Xo(this.baseVersion)}getReversed(){return new Xo(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}const Ko={};Ko[So.className]=So,Ko[Oo.className]=Oo,Ko[xo.className]=xo,Ko[Po.className]=Po,Ko[Xo.className]=Xo,Ko[fo.className]=fo,Ko[Ao.className]=Ao,Ko[Eo.className]=Eo,Ko[Io.className]=Io,Ko[Mo.className]=Mo;class Jo extends as{constructor(e,t,n="toNone"){if(super(e,t,n),!this.root.is("rootElement"))throw new ft.b("model-liveposition-root-not-rootelement: LivePosition's root has to be an instance of RootElement.",e);ea.call(this)}detach(){this.stopListening()}is(e){return"livePosition"===e||"model:livePosition"===e||"position"==e||"model:position"===e}toPosition(){return new as(this.root,this.path.slice(),this.stickiness)}static fromPosition(e,t){return new this(e.root,e.path.slice(),t||e.stickiness)}}function ea(){this.listenTo(this.root.document.model,"applyOperation",(e,t)=>{const n=t[0];n.isDocumentOperation&&ta.call(this,n)},{priority:"low"})}function ta(e){const t=this.getTransformedByOperation(e);if(!this.isEqual(t)){const e=this.toPosition();this.path=t.path,this.root=t.root,this.fire("change",e)}}Tt(Jo,bt);class na{constructor(e,t,n){this.model=e,this.writer=t,this.position=n,this.canMergeWith=new Set([this.position.parent]),this.schema=e.schema,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null}handleNodes(e,t){e=Array.from(e);for(let n=0;n<e.length;n++)this._handleNode(e[n],{isFirst:0===n&&t.isFirst,isLast:n===e.length-1&&t.isLast});this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}getSelectionRange(){return this.nodeToSelect?ds._createOn(this.nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new ds(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(e,t){this.schema.isObject(e)?this._handleObject(e,t):this._checkAndSplitToAllowedPosition(e,t)?(this._insert(e),this._mergeSiblingsOf(e,t)):this._handleDisallowedNode(e,t)}_handleObject(e,t){this._checkAndSplitToAllowedPosition(e)?this._insert(e):this._tryAutoparagraphing(e,t)}_handleDisallowedNode(e,t){e.is("element")?this.handleNodes(e.getChildren(),t):this._tryAutoparagraphing(e,t)}_insert(e){if(!this.schema.checkChild(this.position,e))throw new ft.b("insertcontent-wrong-position: Given node cannot be inserted on the given position.",this,{node:e,position:this.position});const t=Jo.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this.writer.insert(e,this.position),this.position=t.toPosition(),t.detach(),this.nodeToSelect=this.schema.isObject(e)&&!this.schema.checkChild(this.position,"$text")?e:null,this._filterAttributesOf.push(e)}_setAffectedBoundaries(e){this._affectedStart||(this._affectedStart=Jo.fromPosition(e,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(e)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=Jo.fromPosition(e,"toNext"))}_mergeSiblingsOf(e,t){if(!(e instanceof rs))return;const n=this._canMergeLeft(e,t),i=this._canMergeRight(e,t),r=Jo._createBefore(e);r.stickiness="toNext";const s=Jo._createAfter(e);if(s.stickiness="toNext",n){const e=Jo.fromPosition(this.position);e.stickiness="toNext",this._affectedStart.isEqual(r)&&(this._affectedStart.detach(),this._affectedStart=Jo._createAt(r.nodeBefore,"end","toPrevious")),this.writer.merge(r),r.isEqual(this._affectedEnd)&&t.isLast&&(this._affectedEnd.detach(),this._affectedEnd=Jo._createAt(r.nodeBefore,"end","toNext")),this.position=e.toPosition(),e.detach()}if(i){if(!this.position.isEqual(s))throw new ft.b("insertcontent-invalid-insertion-position",this);this.position=as._createAt(s.nodeBefore,"end");const e=Jo.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(s)&&(this._affectedEnd.detach(),this._affectedEnd=Jo._createAt(s.nodeBefore,"end","toNext")),this.writer.merge(s),s.getShiftedBy(-1).isEqual(this._affectedStart)&&t.isFirst&&(this._affectedStart.detach(),this._affectedStart=Jo._createAt(s.nodeBefore,0,"toPrevious")),this.position=e.toPosition(),e.detach()}(n||i)&&this._filterAttributesOf.push(this.position.parent),r.detach(),s.detach()}_canMergeLeft(e,t){const n=e.previousSibling;return t.isFirst&&n instanceof rs&&this.canMergeWith.has(n)&&this.model.schema.checkMerge(n,e)}_canMergeRight(e,t){const n=e.nextSibling;return t.isLast&&n instanceof rs&&this.canMergeWith.has(n)&&this.model.schema.checkMerge(e,n)}_tryAutoparagraphing(e,t){const n=this.writer.createElement("paragraph");this._getAllowedIn(n,this.position.parent)&&this.schema.checkChild(n,e)&&(n._appendChild(e),this._handleNode(n,t))}_checkAndSplitToAllowedPosition(e){const t=this._getAllowedIn(e,this.position.parent);if(!t)return!1;for(;t!=this.position.parent;){if(this.schema.isLimit(this.position.parent))return!1;if(this.position.isAtStart){const e=this.position.parent;this.position=this.writer.createPositionBefore(e),e.isEmpty&&e.parent===t&&this.writer.remove(e)}
1else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const e=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=e,this.canMergeWith.add(this.position.nodeAfter)}}return!0}_getAllowedIn(e,t){return this.schema.checkChild(t,e)?t:t.parent?this._getAllowedIn(e,t.parent):null}}function ia(e,t,n){const i=t.parent,r=n.parent;return i!=r&&!e.isLimit(i)&&!e.isLimit(r)&&function(e,t,n){const i=new ds(e,t);for(const r of i.getWalker())if(n.isLimit(r.item))return!1;return!0}(t,n,e)}function ra(e,t,n){const i=e.createElement("paragraph");e.insert(i,t),sa(e,n,e.createPositionAt(i,0))}function sa(e,t,n){t instanceof Ts?e.setSelection(n):t.setTo(n)}function oa(e,t){if("text"==t.type)return"word"===e.unit?function(e,t){let n=e.position.textNode;if(n){let i=e.position.offset-n.startOffset;for(;!ca(n.data,i,t)&&!la(n,i,t);){e.next();const r=t?e.position.nodeAfter:e.position.nodeBefore;if(r&&r.is("$text")){const i=r.data.charAt(t?0:r.data.length-1);' ,.?!:;"-()'.includes(i)||(e.next(),n=e.position.textNode)}i=e.position.offset-n.startOffset}}return e.position}(e.walker,e.isForward):function(e,t){const n=e.position.textNode;if(n){const i=n.data;let r=e.position.offset-n.startOffset;for(;Wo(i,r)||"character"==t&&Go(i,r);)e.next(),r=e.position.offset-n.startOffset}return e.position}(e.walker,e.unit);if(t.type==(e.isForward?"elementStart":"elementEnd")){if(e.schema.isObject(t.item))return as._createAt(t.item,e.isForward?"after":"before");if(e.schema.checkChild(t.nextPosition,"$text"))return t.nextPosition}else{if(e.schema.isLimit(t.item))return void e.walker.skip(()=>!0);if(e.schema.checkChild(t.nextPosition,"$text"))return t.nextPosition}}function aa(e,t){const n=as._createAt(e.root,t?"end":0);return t?new ds(e,n):new ds(n,e)}function ca(e,t,n){return' ,.?!:;"-()'.includes(e.charAt(t+(n?0:-1)))}function la(e,t,n){return t===(n?e.endOffset:0)}function ua(e,t){const n=[];Array.from(e.getItems({direction:"backward"})).map(e=>t.createRangeOn(e)).filter(t=>(t.start.isAfter(e.start)||t.start.isEqual(e.start))&&(t.end.isBefore(e.end)||t.end.isEqual(e.end))).forEach(e=>{n.push(e.start.parent),t.remove(e)}),n.forEach(e=>{let n=e;for(;n.parent&&n.isEmpty;){const e=t.createRangeOn(n);n=n.parent,t.remove(e)}})}function da(e,t){return e.isCollapsed?function(e,t){const n=e.start,i=t.getNearestSelectionRange(n);if(!i)return null;if(!i.isCollapsed)return i;const r=i.start;return n.isEqual(r)?null:new ds(r)}(e,t):function(e,t){const n=e.start,i=e.end,r=t.checkChild(n,"$text"),s=t.checkChild(i,"$text"),o=t.getLimitElement(n),a=t.getLimitElement(i);if(o===a){if(r&&s)return null;if(function(e,t,n){const i=e.nodeAfter&&!n.isLimit(e.nodeAfter)||n.checkChild(e,"$text"),r=t.nodeBefore&&!n.isLimit(t.nodeBefore)||n.checkChild(t,"$text");return i||r}(n,i,t)){const e=n.nodeAfter&&t.isObject(n.nodeAfter)?null:t.getNearestSelectionRange(n,"forward"),r=i.nodeBefore&&t.isObject(i.nodeBefore)?null:t.getNearestSelectionRange(i,"backward");return new ds(e?e.start:n,r?r.start:i)}}const c=o&&!o.is("rootElement"),l=a&&!a.is("rootElement");if(c||l){const e=n.nodeAfter&&i.nodeBefore&&n.nodeAfter.parent===i.nodeBefore.parent,r=c&&(!e||!pa(n.nodeAfter,t)),s=l&&(!e||!pa(i.nodeBefore,t));let u=n,d=i;return r&&(u=as._createBefore(ha(o,t))),s&&(d=as._createAfter(ha(a,t))),new ds(u,d)}return null}(e,t)}function ha(e,t){let n=e,i=n;for(;t.isLimit(i)&&i.parent;)n=i,i=i.parent;return n}function pa(e,t){return e&&t.isObject(e)}class fa{constructor(){this.markers=new Zo,this.document=new Yo(this),this.schema=new $s,this._pendingChanges=[],this._currentWriter=null,["insertContent","deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach(e=>this.decorate(e)),this.on("applyOperation",(e,t)=>{t[0]._validate()},{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$block",{allowIn:"$root",isBlock:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",isLimit:!0}),this.schema.extend("$text",{allowIn:"$clipboardHolder"}),this.schema.register("$marker"),this.schema.addChildCheck((e,t)=>{if("$marker"===t.name)return!0}),function(e){e.document.registerPostFixer(t=>function(e,t){const n=t.document.selection,i=t.schema,r=[];let s=!1;for(const o of n.getRanges()){const e=da(o,i);e&&!e.isEqual(o)?(r.push(e),s=!0):r.push(o)}s&&e.setSelection(function(e){const t=[];t.push(e.shift());for(const n of e){const e=t.pop();if(n.isIntersecting(e)){const i=e.start.isAfter(n.start)?n.start:e.start,r=e.end.isAfter(n.end)?e.end:n.end,s=new ds(i,r);t.push(s)}else t.push(e),t.push(n)}return t}(r),{backward:n.isBackward})}(t,e))}(this)}
1change(e){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new po,callback:e}),this._runPendingChanges()[0]):e(this._currentWriter)}catch(e){ft.b.rethrowUnexpectedError(e,this)}}enqueueChange(e,t){try{"string"==typeof e?e=new po(e):"function"==typeof e&&(t=e,e=new po),this._pendingChanges.push({batch:e,callback:t}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(e){ft.b.rethrowUnexpectedError(e,this)}}applyOperation(e){e._execute()}insertContent(e,t,n){return function(e,t,n,i){return e.change(r=>{let s;s=n?n instanceof bs||n instanceof Ts?n:r.createSelection(n,i):e.document.selection,s.isCollapsed||e.deleteContent(s,{doNotAutoparagraph:!0});const o=new na(e,r,s.anchor);let a;a=t.is("documentFragment")?t.getChildren():[t],o.handleNodes(a,{isFirst:!0,isLast:!0});const c=o.getSelectionRange();c&&(s instanceof Ts?r.setSelection(c):s.setTo(c));const l=o.getAffectedRange()||e.createRange(s.anchor);return o.destroy(),l})}(this,e,t,n)}deleteContent(e,t){!function(e,t,n={}){if(t.isCollapsed)return;const i=t.getFirstRange();if("$graveyard"==i.root.rootName)return;const r=e.schema;e.change(e=>{if(!n.doNotResetEntireContent&&function(e,t){const n=e.getLimitElement(t);if(!t.containsEntireContent(n))return!1;const i=t.getFirstRange();return i.start.parent!=i.end.parent&&e.checkChild(n,"paragraph")}(r,t))return void function(e,t){const n=e.model.schema.getLimitElement(t);e.remove(e.createRangeIn(n)),ra(e,e.createPositionAt(n,0),t)}(e,t);const[s,o]=function(e){const t=e.root.document.model,n=e.start;let i=e.end;if(t.hasContent(e,{ignoreMarkers:!0})){const n=function(e){const t=e.parent,n=t.root.document.model.schema,i=t.getAncestors({parentFirst:!0,includeSelf:!0});for(const r of i){if(n.isLimit(r))return null;if(n.isBlock(r))return r}}(i);if(n&&i.isTouching(t.createPositionAt(n,0))){const n=t.createSelection(e);t.modifySelection(n,{direction:"backward"}),i=n.getLastPosition()}}return[Jo.fromPosition(n,"toPrevious"),Jo.fromPosition(i,"toNext")]}(i);i.start.isTouching(i.end)||e.remove(i),n.leaveUnmerged||(function(e,t,n){const i=e.model;if(!ia(e.model.schema,t,n))return;const[r,s]=function(e,t){const n=e.getAncestors(),i=t.getAncestors();let r=0;for(;n[r]&&n[r]==i[r];)r++;return[n[r],i[r]]}(t,n);!i.hasContent(r,{ignoreMarkers:!0})&&i.hasContent(s,{ignoreMarkers:!0})?function e(t,n,i,r){const s=n.parent,o=i.parent;if(s!=r&&o!=r){for(n=t.createPositionAfter(s),(i=t.createPositionBefore(o)).isEqual(n)||t.insert(s,i);n.parent.isEmpty;){const e=n.parent;n=t.createPositionBefore(e),t.remove(e)}i=t.createPositionBefore(o),function(e,t){const n=t.nodeBefore,i=t.nodeAfter;n.name!=i.name&&e.rename(n,i.name),e.clearAttributes(n),e.setAttributes(Object.fromEntries(i.getAttributes()),n),e.merge(t)}(t,i),ia(t.model.schema,n,i)&&e(t,n,i,r)}}(e,t,n,r.parent):function e(t,n,i,r){const s=n.parent,o=i.parent;if(s!=r&&o!=r){for(n=t.createPositionAfter(s),(i=t.createPositionBefore(o)).isEqual(n)||t.insert(o,n),t.merge(n);i.parent.isEmpty;){const e=i.parent;i=t.createPositionBefore(e),t.remove(e)}ia(t.model.schema,n,i)&&e(t,n,i,r)}}(e,t,n,r.parent)}(e,s,o),r.removeDisallowedAttributes(s.parent.getChildren(),e)),sa(e,t,s),!n.doNotAutoparagraph&&function(e,t){const n=e.checkChild(t,"$text"),i=e.checkChild(t,"paragraph");return!n&&i}(r,s)&&ra(e,s,t),s.detach(),o.detach()})}(this,e,t)}modifySelection(e,t){!function(e,t,n={}){const i=e.schema,r="backward"!=n.direction,s=n.unit?n.unit:"character",o=new ss({boundaries:aa(t.focus,r),singleCharacters:!0,direction:r?"forward":"backward"}),a={walker:o,schema:i,isForward:r,unit:s};let c;for(;c=o.next();){if(c.done)return;const n=oa(a,c.value);if(n)return void(t instanceof Ts?e.change(e=>{e.setSelectionFocus(n)}):t.setFocus(n))}}(this,e,t)}getSelectedContent(e){return function(e,t){return e.change(e=>{const n=e.createDocumentFragment(),i=t.getFirstRange();if(!i||i.isCollapsed)return n;const r=i.start.root,s=i.start.getCommonPath(i.end),o=r.getNodeByPath(s);let a;a=i.start.parent==i.end.parent?i:e.createRange(e.createPositionAt(o,i.start.path[s.length]),e.createPositionAt(o,i.end.path[s.length]+1));const c=a.end.offset-a.start.offset;for(const t of a.getItems({shallow:!0}))t.is("$textProxy")?e.appendText(t.data,t.getAttributes(),n):e.append(e.cloneElement(t,!0),n);if(a!=i){const t=i._getTransformedByMove(a.start,e.createPositionAt(n,0),c)[0],r=e.createRange(e.createPositionAt(n,0),t.start);ua(e.createRange(t.end,e.createPositionAt(n,"end")),e),ua(r,e)}return n})}(this,e)}
1hasContent(e,t={}){const n=e instanceof rs?ds._createIn(e):e;if(n.isCollapsed)return!1;const{ignoreWhitespaces:i=!1,ignoreMarkers:r=!1}=t;if(!r)for(const s of this.markers.getMarkersIntersectingRange(n))if(s.affectsData)return!0;for(const s of n.getItems())if(s.is("$textProxy")){if(!i)return!0;if(-1!==s.data.search(/\S/))return!0}else if(this.schema.isObject(s))return!0;return!1}createPositionFromPath(e,t,n){return new as(e,t,n)}createPositionAt(e,t){return as._createAt(e,t)}createPositionAfter(e){return as._createAfter(e)}createPositionBefore(e){return as._createBefore(e)}createRange(e,t){return new ds(e,t)}createRangeIn(e){return ds._createIn(e)}createRangeOn(e){return ds._createOn(e)}createSelection(e,t,n){return new bs(e,t,n)}createBatch(e){return new po(e)}createOperationFromJSON(e){return class{static fromJSON(e,t){return Ko[e.__className].fromJSON(e,t)}}.fromJSON(e,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const e=[];for(this.fire("_beforeChanges");this._pendingChanges.length;){this._currentWriter=new Lo(this,this._pendingChanges[0].batch);const t=this._pendingChanges[0].callback(this._currentWriter);e.push(t),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}return this.fire("_afterChanges"),e}}Tt(fa,An);class ga{constructor(){this._listener=Object.create(tr)}listenTo(e){this._listener.listenTo(e,"keydown",(e,t)=>{this._listener.fire("_keydown:"+si(t),t)})}set(e,t,n={}){const i=oi(e);this._listener.listenTo(this._listener,"_keydown:"+i,(e,n)=>{t(n,()=>{n.preventDefault(),n.stopPropagation(),e.stop()}),e.return=!0},{priority:n.priority})}press(e){return!!this._listener.fire("_keydown:"+si(e),e)}destroy(){this._listener.stopListening()}}class ma extends ga{constructor(e){super(),this.editor=e}set(e,t,n={}){if("string"==typeof t){const e=t;t=(t,n)=>{this.editor.execute(e),n()}}super.set(e,t,n)}}class ba{constructor(e={}){this._context=e.context||new Mt({language:e.language}),this._context._addEditor(this,!e.context);const t=Array.from(this.constructor.builtinPlugins||[]);this.config=new at(e,this.constructor.defaultConfig),this.config.define("plugins",t),this.config.define(this._context._getEditorConfig()),this.plugins=new Ot(this,t,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this.commands=new Ws,this.set("state","initializing"),this.once("ready",()=>this.state="ready",{priority:"high"}),this.once("destroy",()=>this.state="destroyed",{priority:"high"}),this.set("isReadOnly",!1),this.model=new fa;const n=new bn;this.data=new co(this.model,n),this.editing=new Hs(this.model,n),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new lo([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new ma(this),this.keystrokes.listenTo(this.editing.view.document)}initPlugins(){const e=this.config,t=e.get("plugins"),n=e.get("removePlugins")||[],i=e.get("extraPlugins")||[];return this.plugins.init(t.concat(i),n)}destroy(){let e=Promise.resolve();return"initializing"==this.state&&(e=new Promise(e=>this.once("ready",e))),e.then(()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()}).then(()=>this.plugins.destroy()).then(()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()}).then(()=>this._context._removeEditor(this))}execute(...e){try{return this.commands.execute(...e)}catch(e){ft.b.rethrowUnexpectedError(e,this)}}}Tt(ba,An);var ya={setData(e){this.data.set(e)},getData(e){return this.data.get(e)}},va={updateSourceElement(){if(!this.sourceElement)throw new ft.b("editor-missing-sourceelement: Cannot update the source element of a detached editor.",this);var e,t;e=this.sourceElement,t=this.data.get(),e instanceof HTMLTextAreaElement&&(e.value=t),e.innerHTML=t}};class _a{getHtml(e){const t=document.implementation.createHTMLDocument("").createElement("div");return t.appendChild(e),t.innerHTML}}class wa{constructor(e){this._domParser=new DOMParser,this._domConverter=new Qi(e,{blockFillerMode:"nbsp"}),this._htmlWriter=new _a}toData(e){const t=this._domConverter.viewToDom(e,document);return this._htmlWriter.getHtml(t)}
1toView(e){const t=this._toDom(e);return this._domConverter.domToView(t)}_toDom(e){const t=this._domParser.parseFromString(e,"text/html"),n=t.createDocumentFragment(),i=t.body.childNodes;for(;i.length>0;)n.appendChild(i[0]);return n}}class ka{constructor(e){this.editor=e,this._components=new Map}*names(){for(const e of this._components.values())yield e.originalName}add(e,t){if(this.has(e))throw new ft.b("componentfactory-item-exists: The item already exists in the component factory.",this,{name:e});this._components.set(Ca(e),{callback:t,originalName:e})}create(e){if(!this.has(e))throw new ft.b("componentfactory-item-missing: The required component is not registered in the factory.",this,{name:e});return this._components.get(Ca(e)).callback(this.editor.locale)}has(e){return this._components.has(Ca(e))}}function Ca(e){return String(e).toLowerCase()}class Sa{constructor(){this.set("isFocused",!1),this.set("focusedElement",null),this._elements=new Set,this._nextEventLoopTimeout=null}add(e){if(this._elements.has(e))throw new ft.b("focusTracker-add-element-already-exist",this);this.listenTo(e,"focus",()=>this._focus(e),{useCapture:!0}),this.listenTo(e,"blur",()=>this._blur(),{useCapture:!0}),this._elements.add(e)}remove(e){e===this.focusedElement&&this._blur(e),this._elements.has(e)&&(this.stopListening(e),this._elements.delete(e))}destroy(){this.stopListening()}_focus(e){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=e,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0)}}Tt(Sa,tr),Tt(Sa,An);class Ta{constructor(e){this.editor=e,this.componentFactory=new ka(e),this.focusTracker=new Sa,this._editableElementsMap=new Map,this.listenTo(e.editing.view.document,"layoutChanged",()=>this.update())}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy();for(const e of this._editableElementsMap.values())e.ckeditorInstance=null;this._editableElementsMap=new Map}setEditableElement(e,t){this._editableElementsMap.set(e,t),t.ckeditorInstance||(t.ckeditorInstance=this.editor)}getEditableElement(e="main"){return this._editableElementsMap.get(e)}getEditableElementsNames(){return this._editableElementsMap.keys()}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}}Tt(Ta,bt),n(13);const Pa=new WeakMap;function Oa(e){const{view:t,element:n,text:i,isDirectHost:r=!0}=e,s=t.document;Pa.has(s)||(Pa.set(s,new Map),s.registerPostFixer(e=>xa(s,e))),Pa.get(s).set(n,{text:i,isDirectHost:r}),t.change(e=>xa(s,e))}function xa(e,t){const n=Pa.get(e);let i=!1;for(const[r,s]of n)Aa(t,r,s)&&(i=!0);return i}function Aa(e,t,n){const{text:i,isDirectHost:r}=n,s=r?t:function(e){if(1===e.childCount){const t=e.getChild(0);if(t.is("element")&&!t.is("uiElement"))return t}return null}(t);let o=!1;return!!s&&(n.hostElement=s,s.getAttribute("data-placeholder")!==i&&(e.setAttribute("data-placeholder",i,s),o=!0),function(e){if(!e.isAttached())return!1;const t=!Array.from(e.getChildren()).some(e=>!e.is("uiElement")),n=e.document;if(!n.isFocused&&t)return!0;const i=n.selection.anchor;return!(!t||!i||i.parent===e)}(s)?function(e,t){return!t.hasClass("ck-placeholder")&&(e.addClass("ck-placeholder",t),!0)}(e,s)&&(o=!0):function(e,t){return!!t.hasClass("ck-placeholder")&&(e.removeClass("ck-placeholder",t),!0)}(e,s)&&(o=!0),o)}class Ea{constructor(){this._replacedElements=[]}replace(e,t){this._replacedElements.push({element:e,newElement:t}),e.style.display="none",t&&e.parentNode.insertBefore(t,e.nextSibling)}restore(){this._replacedElements.forEach(({element:e,newElement:t})=>{e.style.display="",t&&t.remove()}),this._replacedElements=[]}}class Ma extends Ta{constructor(e,t){var n;super(e),this.view=t,this._toolbarConfig=(n=e.config.get("toolbar"),Array.isArray(n)?{items:n}:n?Object.assign({items:[]},n):{items:[]}),this._elementReplacer=new Ea}
1get element(){return this.view.element}init(e){const t=this.view,n=this.editor.editing.view,i=t.editable,r=n.document.getRoot();i.name=r.rootName,t.render();const s=i.element;this.setEditableElement(i.name,s),this.focusTracker.add(s),t.editable.bind("isFocused").to(this.focusTracker),n.attachDomRoot(s),e&&this._elementReplacer.replace(e,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}destroy(){const e=this.view,t=this.editor.editing.view;this._elementReplacer.restore(),t.detachDomRoot(e.editable.name),e.destroy(),super.destroy()}_initToolbar(){const e=this.editor,t=this.view,n=e.editing.view;t.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),t.stickyPanel.limiterElement=t.element,this._toolbarConfig.viewportTopOffset&&(t.stickyPanel.viewportTopOffset=this._toolbarConfig.viewportTopOffset),t.toolbar.fillFromConfig(this._toolbarConfig.items,this.componentFactory),function({origin:e,originKeystrokeHandler:t,originFocusTracker:n,toolbar:i,beforeFocus:r,afterBlur:s}){n.add(i.element),t.set("Alt+F10",(e,t)=>{n.isFocused&&!i.focusTracker.isFocused&&(r&&r(),i.focus(),t())}),i.keystrokes.set("Esc",(t,n)=>{i.focusTracker.isFocused&&(e.focus(),s&&s(),n())})}({origin:n,originFocusTracker:this.focusTracker,originKeystrokeHandler:e.keystrokes,toolbar:t.toolbar})}_initPlaceholder(){const e=this.editor,t=e.editing.view,n=t.document.getRoot(),i=e.sourceElement,r=e.config.get("placeholder")||i&&"textarea"===i.tagName.toLowerCase()&&i.getAttribute("placeholder");r&&Oa({view:t,element:n,text:r,isDirectHost:!1})}}class Ia extends Pt{constructor(e=[]){super(e,{idProperty:"viewUid"}),this.on("add",(e,t,n)=>{this._renderViewIntoCollectionParent(t,n)}),this.on("remove",(e,t)=>{t.element&&this._parentElement&&t.element.remove()}),this._parentElement=null}destroy(){this.map(e=>e.destroy())}setParent(e){this._parentElement=e;for(const t of this)this._renderViewIntoCollectionParent(t)}delegate(...e){if(!e.length||!e.every(e=>"string"==typeof e))throw new ft.b("ui-viewcollection-delegate-wrong-events: All event names must be strings.",this);return{to:t=>{for(const n of this)for(const i of e)n.delegate(i).to(t);this.on("add",(n,i)=>{for(const r of e)i.delegate(r).to(t)}),this.on("remove",(n,i)=>{for(const r of e)i.stopDelegating(r,t)})}}}_renderViewIntoCollectionParent(e,t){e.isRendered||e.render(),e.element&&this._parentElement&&this._parentElement.insertBefore(e.element,this._parentElement.children[t])}}class Ra{constructor(e){Object.assign(this,Ua(qa(e))),this._isRendered=!1,this._revertData=null}render(){const e=this._renderNode({intoFragment:!0});return this._isRendered=!0,e}apply(e){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:e,isApplying:!0,revertData:this._revertData}),e}revert(e){if(!this._revertData)throw new ft.b("ui-template-revert-not-applied: Attempting to revert a template which has not been applied yet.",[this,e]);this._revertTemplateFromNode(e,this._revertData)}*getViews(){yield*function*e(t){if(t.children)for(const n of t.children)$a(n)?yield n:Za(n)&&(yield*e(n))}(this)}static bind(e,t){return{to:(n,i)=>new Da({eventNameOrFunction:n,attribute:n,observable:e,emitter:t,callback:i}),if:(n,i,r)=>new ja({observable:e,emitter:t,attribute:n,valueIfTrue:i,callback:r})}}static extend(e,t){if(e._isRendered)throw new ft.b("template-extend-render: Attempting to extend a template which has already been rendered.",[this,e]);!function e(t,n){if(n.attributes&&(t.attributes||(t.attributes={}),Ga(t.attributes,n.attributes)),n.eventListeners&&(t.eventListeners||(t.eventListeners={}),Ga(t.eventListeners,n.eventListeners)),n.text&&t.text.push(...n.text),n.children&&n.children.length){if(t.children.length!=n.children.length)throw new ft.b("ui-template-extend-children-mismatch: The number of children in extended definition does not match.",t);let i=0;for(const r of n.children)e(t.children[i++],r)}}(e,Ua(qa(t)))}_renderNode(e){let t;if(t=e.node?this.tag&&this.text:this.tag?this.text:!this.text,t)throw new ft.b('ui-template-wrong-syntax: Node definition must have either "tag" or "text" when rendering a new Node.',this);return this.text?this._renderText(e):this._renderElement(e)}_renderElement(e){let t=e.node;return t||(t=e.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(e),this._renderElementChildren(e),this._setUpListeners(e),t}_renderText(e){let t=e.node;return t?e.revertData.text=t.textContent:t=e.node=document.createTextNode(""),Na(this.text)?this._bindToObservable({schema:this.text,updater:za(t),data:e}):t.textContent=this.text.join(""),t}_renderAttributes(e){let t,n,i,r;if(!this.attributes)return;const s=e.node,o=e.revertData;for(t in this.attributes)if(i=s.getAttribute(t),n=this.attributes[t],o&&(o.attributes[t]=i),r=T(n[0])&&n[0].ns?n[0].ns:null,Na(n)){const a=r?n[0].value:n;o&&Xa(t)&&a.unshift(i),this._bindToObservable({schema:a,updater:Fa(s,t,r),data:e})}else"style"==t&&"string"!=typeof n[0]?this._renderStyleAttribute(n[0],e):(o&&i&&Xa(t)&&n.unshift(i),n=n.map(e=>e&&e.value||e).reduce((e,t)=>
1e.concat(t),[]).reduce(Wa,""),Ya(n)||s.setAttributeNS(r,t,n))}_renderStyleAttribute(e,t){const n=t.node;for(const i in e){const r=e[i];Na(r)?this._bindToObservable({schema:[r],updater:Ba(n,i),data:t}):n.style[i]=r}}_renderElementChildren(e){const t=e.node,n=e.intoFragment?document.createDocumentFragment():t,i=e.isApplying;let r=0;for(const s of this.children)if(Qa(s)){if(!i){s.setParent(t);for(const e of s)n.appendChild(e.element)}}else if($a(s))i||(s.isRendered||s.render(),n.appendChild(s.element));else if(Bi(s))n.appendChild(s);else if(i){const t={children:[],bindings:[],attributes:{}};e.revertData.children.push(t),s._renderNode({node:n.childNodes[r++],isApplying:!0,revertData:t})}else n.appendChild(s.render());e.intoFragment&&t.appendChild(n)}_setUpListeners(e){if(this.eventListeners)for(const t in this.eventListeners){const n=this.eventListeners[t].map(n=>{const[i,r]=t.split("@");return n.activateDomEventListener(i,r,e)});e.revertData&&e.revertData.bindings.push(n)}}_bindToObservable({schema:e,updater:t,data:n}){const i=n.revertData;Va(e,t,n);const r=e.filter(e=>!Ya(e)).filter(e=>e.observable).map(i=>i.activateAttributeListener(e,t,n));i&&i.bindings.push(r)}_revertTemplateFromNode(e,t){for(const n of t.bindings)for(const e of n)e();if(t.text)e.textContent=t.text;else{for(const n in t.attributes){const i=t.attributes[n];null===i?e.removeAttribute(n):e.setAttribute(n,i)}for(let n=0;n<t.children.length;++n)this._revertTemplateFromNode(e.childNodes[n],t.children[n])}}}Tt(Ra,bt);class La{constructor(e){Object.assign(this,e)}getValue(e){const t=this.observable[this.attribute];return this.callback?this.callback(t,e):t}activateAttributeListener(e,t,n){const i=()=>Va(e,t,n);return this.emitter.listenTo(this.observable,"change:"+this.attribute,i),()=>{this.emitter.stopListening(this.observable,"change:"+this.attribute,i)}}}class Da extends La{activateDomEventListener(e,t,n){const i=(e,n)=>{t&&!n.target.matches(t)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(n):this.observable.fire(this.eventNameOrFunction,n))};return this.emitter.listenTo(n.node,e,i),()=>{this.emitter.stopListening(n.node,e,i)}}}class ja extends La{getValue(e){return!Ya(super.getValue(e))&&(this.valueIfTrue||!0)}}function Na(e){return!!e&&(e.value&&(e=e.value),Array.isArray(e)?e.some(Na):e instanceof La)}function Va(e,t,{node:n}){let i=function(e,t){return e.map(e=>e instanceof La?e.getValue(t):e)}(e,n);i=1==e.length&&e[0]instanceof ja?i[0]:i.reduce(Wa,""),Ya(i)?t.remove():t.set(i)}function za(e){return{set(t){e.textContent=t},remove(){e.textContent=""}}}function Fa(e,t,n){return{set(i){e.setAttributeNS(n,t,i)},remove(){e.removeAttributeNS(n,t)}}}function Ba(e,t){return{set(n){e.style[t]=n},remove(){e.style[t]=null}}}function qa(e){return st(e,e=>{if(e&&(e instanceof La||Za(e)||$a(e)||Qa(e)))return e})}function Ua(e){if("string"==typeof e?e=function(e){return{text:[e]}}(e):e.text&&function(e){Array.isArray(e.text)||(e.text=[e.text])}(e),e.on&&(e.eventListeners=function(e){for(const t in e)Ha(e,t);return e}(e.on),delete e.on),!e.text){e.attributes&&function(e){for(const t in e)e[t].value&&(e[t].value=[].concat(e[t].value)),Ha(e,t)}(e.attributes);const t=[];if(e.children)if(Qa(e.children))t.push(e.children);else for(const n of e.children)Za(n)||$a(n)||Bi(n)?t.push(n):t.push(new Ra(n));e.children=t}return e}function Ha(e,t){Array.isArray(e[t])||(e[t]=[e[t]])}function Wa(e,t){return Ya(t)?e:Ya(e)?t:`${e} ${t}`}function Ga(e,t){for(const n in t)e[n]?e[n].push(...t[n]):e[n]=t[n]}function Ya(e){return!e&&0!==e}function $a(e){return e instanceof Ka}function Za(e){return e instanceof Ra}function Qa(e){return e instanceof Ia}function Xa(e){return"class"==e||"style"==e}n(15);class Ka{constructor(e){this.element=null,this.isRendered=!1,this.locale=e,this.t=e&&e.t,this._viewCollections=new Pt,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(t,n)=>{n.locale=e}),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Ra.bind(this,this)}createCollection(e){const t=new Ia(e);return this._viewCollections.add(t),t}registerChild(e){St(e)||(e=[e]);for(const t of e)this._unboundChildren.add(t)}deregisterChild(e){St(e)||(e=[e]);for(const t of e)this._unboundChildren.remove(t)}setTemplate(e){this.template=new Ra(e)}extendTemplate(e){Ra.extend(this.template,e)}
1render(){if(this.isRendered)throw new ft.b("ui-view-render-already-rendered: This View has already been rendered.",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map(e=>e.destroy()),this.template&&this.template._revertData&&this.template.revert(this.element)}}Tt(Ka,tr),Tt(Ka,An);var Ja=function(e){return"string"==typeof e||!te(e)&&f(e)&&"[object String]"==d(e)};class ec extends Ia{constructor(e,t=[]){super(t),this.locale=e}attachToDom(){this._bodyCollectionContainer=new Ra({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let e=document.querySelector(".ck-body-wrapper");e||(e=function(e,t,n={},i=[]){const r=n&&n.xmlns,s=r?e.createElementNS(r,t):e.createElement(t);for(const o in n)s.setAttribute(o,n[o]);!Ja(i)&&St(i)||(i=[i]);for(let o of i)Ja(o)&&(o=e.createTextNode(o)),s.appendChild(o);return s}(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(e)),e.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const e=document.querySelector(".ck-body-wrapper");e&&0==e.childElementCount&&e.remove()}}n(17);class tc extends Ka{constructor(e){super(e),this.body=new ec(e)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}n(19);
1class nc extends Ka{constructor(e){super(e),this.set("text"),this.set("for"),this.id="ck-editor__label_"+ht();const t=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:t.to("for")},children:[{text:t.to("text")}]})}}class ic extends tc{constructor(e){super(e),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:e.uiLanguageDirection,lang:e.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const e=this.t,t=new nc;return t.text=e("Rich Text Editor"),t.extendTemplate({attributes:{class:"ck-voice-label"}}),t}}class rc extends Ka{constructor(e,t,n){super(e),this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:e.contentLanguage,dir:e.contentLanguageDirection}}),this.name=null,this.set("isFocused",!1),this._editableElement=n,this._hasExternalElement=!!this._editableElement,this._editingView=t}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",()=>this._updateIsFocusedClasses()),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}_updateIsFocusedClasses(){const e=this._editingView;function t(t){e.change(n=>{const i=e.document.getRoot(t.name);n.addClass(t.isFocused?"ck-focused":"ck-blurred",i),n.removeClass(t.isFocused?"ck-blurred":"ck-focused",i)})}e.isRenderingInProgress?function n(i){e.once("change:isRenderingInProgress",(e,r,s)=>{s?n(i):t(i)})}(this):t(this)}}class sc extends rc{constructor(e,t,n){super(e,t,n),this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}})}render(){super.render();const e=this._editingView,t=this.t;e.change(n=>{const i=e.document.getRoot(this.name);n.setAttribute("aria-label",t("Rich Text Editor, %0",[this.name]),i)})}}function oc(e){return t=>t+e}n(21);const ac=oc("px");
1class cc extends Ka{constructor(e){super(e);const t=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheLimiter",!1),this.set("_hasViewportTopOffset",!1),this.content=this.createCollection(),this._contentPanelPlaceholder=new Ra({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:t.to("isSticky",e=>e?"block":"none"),height:t.to("isSticky",e=>e?ac(this._panelRect.height):null)}}}).render(),this._contentPanel=new Ra({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",t.if("isSticky","ck-sticky-panel__content_sticky"),t.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:t.to("isSticky",e=>e?ac(this._contentPanelPlaceholder.getBoundingClientRect().width):null),top:t.to("_hasViewportTopOffset",e=>e?ac(this.viewportTopOffset):null),bottom:t.to("_isStickyToTheLimiter",e=>e?ac(this.limiterBottomOffset):null),marginLeft:t.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this._contentPanel]})}render(){super.render(),this._checkIfShouldBeSticky(),this.listenTo(Gi.window,"scroll",()=>{this._checkIfShouldBeSticky()}),this.listenTo(this,"change:isActive",()=>{this._checkIfShouldBeSticky()})}_checkIfShouldBeSticky(){const e=this._panelRect=this._contentPanel.getBoundingClientRect();let t;this.limiterElement?(t=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&t.top<this.viewportTopOffset&&this._panelRect.height+this.limiterBottomOffset<t.height):this.isSticky=!1,this.isSticky?(this._isStickyToTheLimiter=t.bottom<e.height+this.limiterBottomOffset+this.viewportTopOffset,this._hasViewportTopOffset=!this._isStickyToTheLimiter&&!!this.viewportTopOffset,this._marginLeft=this._isStickyToTheLimiter?null:ac(-Gi.window.scrollX)):(this._isStickyToTheLimiter=!1,this._hasViewportTopOffset=!1,this._marginLeft=null)}}class lc{constructor(e){if(Object.assign(this,e),e.actions&&e.keystrokeHandler)for(const t in e.actions){let n=e.actions[t];"string"==typeof n&&(n=[n]);for(const i of n)e.keystrokeHandler.set(i,(e,n)=>{this[t](),n()})}}get first(){return this.focusables.find(uc)||null}get last(){return this.focusables.filter(uc).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let e=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((t,n)=>{const i=t.element===this.focusTracker.focusedElement;return i&&(e=n),i}),e)}focusFirst(){this._focus(this.first)}focusLast(){this._focus(this.last)}focusNext(){this._focus(this.next)}focusPrevious(){this._focus(this.previous)}_focus(e){e&&e.focus()}_getFocusableItem(e){const t=this.current,n=this.focusables.length;if(!n)return null;if(null===t)return this[1===e?"first":"last"];let i=(t+n+e)%n;do{const t=this.focusables.get(i);if(uc(t))return t;i=(i+n+e)%n}while(i!==t);return null}}function uc(e){return!(!e.focus||"none"==Gi.window.getComputedStyle(e.element).display)}class dc extends Ka{constructor(e){super(e),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class hc{constructor(e,t){hc._observerInstance||hc._createObserver(),this._element=e,this._callback=t,hc._addElementCallback(e,t),hc._observerInstance.observe(e)}destroy(){hc._deleteElementCallback(this._element,this._callback)}static _addElementCallback(e,t){hc._elementCallbacks||(hc._elementCallbacks=new Map);let n=hc._elementCallbacks.get(e);n||(n=new Set,hc._elementCallbacks.set(e,n)),n.add(t)}static _deleteElementCallback(e,t){const n=hc._getElementCallbacks(e);n&&(n.delete(t),n.size||(hc._elementCallbacks.delete(e),hc._observerInstance.unobserve(e))),hc._elementCallbacks&&!hc._elementCallbacks.size&&(hc._observerInstance=null,hc._elementCallbacks=null)}static _getElementCallbacks(e){return hc._elementCallbacks?hc._elementCallbacks.get(e):null}static _createObserver(){let e;e="function"==typeof Gi.window.ResizeObserver?Gi.window.ResizeObserver:pc,hc._observerInstance=new e(e=>{for(const t of e){if(!t.target.offsetParent)continue;const e=hc._getElementCallbacks(t.target);if(e)for(const n of e)n(t)}})}}hc._observerInstance=null,hc._elementCallbacks=null;class pc{constructor(e){this._callback=e,this._elements=new Set,this._previousRects=new Map,this._periodicCheckTimeout=null}observe(e){this._elements.add(e),this._checkElementRectsAndExecuteCallback(),1===this._elements.size&&this._startPeriodicCheck()}unobserve(e){this._elements.delete(e),this._previousRects.delete(e),this._elements.size||this._stopPeriodicCheck()}_startPeriodicCheck(){const e=()=>{this._checkElementRectsAndExecuteCallback(),this._periodicCheckTimeout=setTimeout(e,100)};this.listenTo(Gi.window,"resize",()=>{this._checkElementRectsAndExecuteCallback()}),this._periodicCheckTimeout=setTimeout(e,100)}_stopPeriodicCheck(){clearTimeout(this._periodicCheckTimeout),this.stopListening(),this._previousRects.clear()}_checkElementRectsAndExecuteCallback(){const e=[];for(const t of this._elements)this._hasRectChanged(t)&&e.push({target:t,contentRect:this._previousRects.get(t)});e.length&&this._callback(e)}_hasRectChanged(e){if(!e.ownerDocument.body.contains(e))return!1;const t=new Fr(e),n=this._previousRects.get(e),i=!n||!n.isEqual(t);return this._previousRects.set(e,t),i}}Tt(pc,tr);
1class fc extends Ka{constructor(e){super(e);const t=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",t.to("position",e=>"ck-dropdown__panel_"+e),t.if("isVisible","ck-dropdown__panel-visible")]},children:this.children,on:{selectstart:t.to(e=>e.preventDefault())}})}focus(){this.children.length&&this.children.first.focus()}focusLast(){if(this.children.length){const e=this.children.last;"function"==typeof e.focusLast?e.focusLast():e.focus()}}}function gc({element:e,target:t,positions:n,limiter:i,fitInViewport:r}){P(t)&&(t=t()),P(i)&&(i=i());const s=function(e){return e&&e.parentNode?e.offsetParent===Gi.document.body?null:e.offsetParent:null}(e),o=new Fr(e),a=new Fr(t);let c,l;if(i||r){const e=function(e,t){const{elementRect:n,viewportRect:i}=t,r=n.getArea(),s=function(e,{targetRect:t,elementRect:n,limiterRect:i,viewportRect:r}){const s=[],o=n.getArea();for(const a of e){const e=mc(a,t,n);if(!e)continue;const[c,l]=e;let u=0,d=0;if(i)if(r){const e=i.getIntersection(r);e&&(u=e.getIntersectionArea(l))}else u=i.getIntersectionArea(l);r&&(d=r.getIntersectionArea(l));const h={positionName:c,positionRect:l,limiterIntersectArea:u,viewportIntersectArea:d};if(u===o)return[h];s.push(h)}return s}(e,t);if(i){const e=bc(s.filter(({viewportIntersectArea:e})=>e===r),r);if(e)return e}return bc(s,r)}(n,{targetRect:a,elementRect:o,limiterRect:i&&new Fr(i).getVisible(),viewportRect:r&&new Fr(Gi.window)});[l,c]=e||mc(n[0],a,o)}else[l,c]=mc(n[0],a,o);let u=yc(c);return s&&(u=function({left:e,top:t},n){const i=yc(new Fr(n)),r=Vr(n);return e-=i.left,t-=i.top,e+=n.scrollLeft,t+=n.scrollTop,{left:e-=r.left,top:t-=r.top}}(u,s)),{left:u.left,top:u.top,name:l}}function mc(e,t,n){const i=e(t,n);if(!i)return null;const{left:r,top:s,name:o}=i;return[o,n.clone().moveTo(r,s)]}function bc(e,t){let n,i,r=0;for(const{positionName:s,positionRect:o,limiterIntersectArea:a,viewportIntersectArea:c}of e){if(a===t)return[s,o];const e=c**2+a**2;e>r&&(r=e,n=o,i=s)}return n?[i,n]:null}function yc({left:e,top:t}){const{scrollX:n,scrollY:i}=Gi.window;return{left:e+n,top:t+i}}n(23);class vc extends Ka{constructor(e,t,n){super(e);const i=this.bindTemplate;this.buttonView=t,this.panelView=n,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class"),this.set("id"),this.set("panelPosition","auto"),this.keystrokes=new ga,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",i.to("class"),i.if("isEnabled","ck-disabled",e=>!e)],id:i.to("id"),"aria-describedby":i.to("ariaDescribedById")},children:[t,n]}),t.extendTemplate({attributes:{class:["ck-dropdown__button"]}})}render(){super.render(),this.listenTo(this.buttonView,"open",()=>{this.isOpen=!this.isOpen}),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",()=>{this.isOpen&&(this.panelView.position="auto"===this.panelPosition?vc._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions}).name:this.panelPosition)}),this.keystrokes.listenTo(this.element);const e=(e,t)=>{this.isOpen&&(this.buttonView.focus(),this.isOpen=!1,t())};this.keystrokes.set("arrowdown",(e,t)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,t())}),this.keystrokes.set("arrowright",(e,t)=>{this.isOpen&&t()}),this.keystrokes.set("arrowleft",e),this.keystrokes.set("esc",e)}focus(){this.buttonView.focus()}get _panelPositions(){const{southEast:e,southWest:t,northEast:n,northWest:i}=vc.defaultPanelPositions;return"ltr"===this.locale.uiLanguageDirection?[e,t,n,i]:[t,e,i,n]}}vc.defaultPanelPositions={southEast:e=>({top:e.bottom,left:e.left,name:"se"}),southWest:(e,t)=>({top:e.bottom,left:e.left-t.width+e.width,name:"sw"}),northEast:(e,t)=>({top:e.top-t.height,left:e.left,name:"ne"}),northWest:(e,t)=>({top:e.bottom-t.height,left:e.left-t.width+e.width,name:"nw"})},vc._getOptimalPosition=gc,n(25);class _c extends Ka{constructor(){super();const e=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon"],viewBox:e.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",()=>{this._updateXMLContent(),this._colorFillPaths()}),this.on("change:fillColor",()=>{this._colorFillPaths()})}_updateXMLContent(){if(this.content){const e=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),t=e.getAttribute("viewBox");for(t&&(this.viewBox=t),this.element.innerHTML="";e.childNodes.length>0;)this.element.appendChild(e.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach(e
1=>{e.style.fill=this.fillColor})}}n(27);class wc extends Ka{constructor(e){super(e),this.set("text",""),this.set("position","s");const t=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip",t.to("position",e=>"ck-tooltip_"+e),t.if("text","ck-hidden",e=>!e.trim())]},children:[{tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:t.to("text")}]}]})}}n(29);class kc extends Ka{constructor(e){super(e);const t=this.bindTemplate,n=ht();this.set("class"),this.set("labelStyle"),this.set("icon"),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke"),this.set("label"),this.set("tabindex",-1),this.set("tooltip"),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.tooltipView=this._createTooltipView(),this.labelView=this._createLabelView(n),this.iconView=new _c,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this)),this.setTemplate({tag:"button",attributes:{class:["ck","ck-button",t.to("class"),t.if("isEnabled","ck-disabled",e=>!e),t.if("isVisible","ck-hidden",e=>!e),t.to("isOn",e=>e?"ck-on":"ck-off"),t.if("withText","ck-button_with-text"),t.if("withKeystroke","ck-button_with-keystroke")],type:t.to("type",e=>e||"button"),tabindex:t.to("tabindex"),"aria-labelledby":"ck-editor__aria-label_"+n,"aria-disabled":t.if("isEnabled",!0,e=>!e),"aria-pressed":t.to("isOn",e=>!!this.isToggleable&&String(e))},children:this.children,on:{mousedown:t.to(e=>{e.preventDefault()}),click:t.to(e=>{this.isEnabled?this.fire("execute"):e.preventDefault()})}})}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.tooltipView),this.children.add(this.labelView),this.withKeystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}_createTooltipView(){const e=new wc;return e.bind("text").to(this,"_tooltipString"),e.bind("position").to(this,"tooltipPosition"),e}_createLabelView(e){const t=new Ka;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:this.bindTemplate.to("labelStyle"),id:"ck-editor__aria-label_"+e},children:[{text:this.bindTemplate.to("label")}]}),t}_createKeystrokeView(){const e=new Ka;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",e=>ai(e))}]}),e}_getTooltipString(e,t,n){return e?"string"==typeof e?e:(n&&(n=ai(n)),e instanceof Function?e(t,n):`${t}${n?` (${n})`:""}`):""}}var Cc='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/></svg>';class Sc extends kc{constructor(e){super(e),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const e=new _c;return e.content=Cc,e.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),e}}n(31);class Tc extends Ka{constructor(){super(),this.items=this.createCollection(),this.focusTracker=new Sa,this.keystrokes=new ga,this._focusCycler=new lc({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"]},children:this.items})}render(){super.render();for(const e of this.items)this.focusTracker.add(e.element);this.items.on("add",(e,t)=>{this.focusTracker.add(t.element)}),this.items.on("remove",(e,t)=>{this.focusTracker.remove(t.element)}),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}
1class Pc extends Ka{constructor(e){super(e),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item"]},children:this.children})}focus(){this.children.first.focus()}}class Oc extends Ka{constructor(e){super(e),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}n(33);class xc extends kc{constructor(e){super(e),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const e=new Ka;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),e}}function Ac({emitter:e,activator:t,callback:n,contextElements:i}){e.listenTo(document,"mousedown",(e,{target:r})=>{if(t()){for(const e of i)if(e.contains(r))return;n()}})}function Ec(e,t=Sc){const n=new t(e),i=new fc(e),r=new vc(e,n,i);return n.bind("isEnabled").to(r),n instanceof Sc?n.bind("isOn").to(r,"isOpen"):n.arrowView.bind("isOn").to(r,"isOpen"),function(e){(function(e){e.on("render",()=>{Ac({emitter:e,activator:()=>e.isOpen,callback:()=>{e.isOpen=!1},contextElements:[e.element]})})})(e),function(e){e.on("execute",t=>{t.source instanceof xc||(e.isOpen=!1)})}(e),function(e){e.keystrokes.set("arrowdown",(t,n)=>{e.isOpen&&(e.panelView.focus(),n())}),e.keystrokes.set("arrowup",(t,n)=>{e.isOpen&&(e.panelView.focusLast(),n())})}(e)}(r),r}function Mc(e,t){const n=e.locale,i=e.listView=new Tc(n);i.items.bindTo(t).using(({type:e,model:t})=>{if("separator"===e)return new Oc(n);if("button"===e||"switchbutton"===e){const i=new Pc(n);let r;return r="button"===e?new kc(n):new xc(n),r.bind(...Object.keys(t)).to(t),r.delegate("execute").to(i),i.children.add(r),i}}),e.panelView.children.add(i),i.items.delegate("execute").to(e)}n(35),n(37),n(39);class Ic extends Ka{constructor(e,t){super(e);const n=this.bindTemplate,i=this.t;var r;this.options=t||{},this.set("ariaLabel",i("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new Sa,this.keystrokes=new ga,this.set("class"),this.set("isCompact",!1),this.itemsView=new Rc(e),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection(),this._focusCycler=new lc({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:["arrowleft","arrowup"],focusNext:["arrowright","arrowdown"]}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar",n.to("class"),n.if("isCompact","ck-toolbar_compact")],role:"toolbar","aria-label":n.to("ariaLabel"),style:{maxWidth:n.to("maxWidth")}},children:this.children,on:{mousedown:(r=this,r.bindTemplate.to(e=>{e.target===r.element&&e.preventDefault()}))}}),this._behavior=this.options.shouldGroupWhenFull?new Dc(this):new Lc(this)}render(){super.render();for(const e of this.items)this.focusTracker.add(e.element);this.items.on("add",(e,t)=>{this.focusTracker.add(t.element)}),this.items.on("remove",(e,t)=>{this.focusTracker.remove(t.element)}),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(e,t){this.items.addMany(e.map(e=>"|"==e?new dc:t.has(e)?t.create(e):void console.warn(Object(ft.a)("toolbarview-item-unavailable: The requested toolbar item is unavailable."),{name:e})).filter(e=>void 0!==e))}}class Rc extends Ka{constructor(e){super(e),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class Lc{constructor(e){const t=e.bindTemplate;e.set("isVertical",!1),e.itemsView.children.bindTo(e.items).using(e=>e),e.focusables.bindTo(e.items).using(e=>e),e.extendTemplate({attributes:{class:[t.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class Dc{constructor(e){this.viewChildren=e.children,this.viewFocusables=e.focusables,this.viewItemsView=e.itemsView,this.viewFocusTracker=e.focusTracker,this.viewLocale=e.locale,this.ungroupedItems=e.createCollection(),this.groupedItems=e.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,e.itemsView.children.bindTo(this.ungroupedItems).using(e=>e),this.ungroupedItems.on("add",this._updateFocusCycleableItems.bind(this)),this.ungroupedItems.on("remove",this._updateFocusCycleableItems.bind(this)),e.children.on("add",this._updateFocusCycleableItems.bind(this)),e.children.on("remove",this._updateFocusCycleableItems.bind(this)),e.items.on("change",(e,t)=>{const n=t.index;for(const i of t.removed)n>=this.ungroupedItems.length?this.groupedItems.remove(i):this.ungroupedItems.remove(i);for(let i=n;i<n+t.added.length;i++){const e=t.added[i-n];i>this.ungroupedItems.length?this.groupedItems.add(e,i-this.ungroupedItems.length):this.ungroupedItems.add(e,i)}this._updateGrouping()}),e.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(e){this.viewElement=e.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(e)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!this.viewElement.offsetParent)return void(this.shouldUpdateGroupingOnNextResize=!0);let e;for(;this._areItemsOverflowing;)this._groupLastItem(),e=!0;if(!e&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const e=this.viewElement,t=this.viewLocale.uiLanguageDirection,n=new Fr(e.lastChild),i=new Fr(e);
1if(!this.cachedPadding){const n=Gi.window.getComputedStyle(e);this.cachedPadding=Number.parseInt(n["ltr"===t?"paddingRight":"paddingLeft"])}return"ltr"===t?n.right>i.right-this.cachedPadding:n.left<i.left+this.cachedPadding}_enableGroupingOnResize(){let e;this.resizeObserver=new hc(this.viewElement,t=>{e&&e===t.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),e=t.contentRect.width)}),this._updateGrouping()}_enableGroupingOnMaxWidthChange(e){e.on("change:maxWidth",()=>{this._updateGrouping()})}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new dc),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const e=this.viewLocale,t=e.t,n=Ec(e);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition="ltr"===e.uiLanguageDirection?"sw":"se",function(e,t){const n=e.locale,i=n.t,r=e.toolbarView=new Ic(n);r.set("ariaLabel",i("Dropdown toolbar")),e.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),[].map(e=>r.items.add(e)),e.panelView.children.add(r),r.items.delegate("execute").to(e)}(n),n.buttonView.set({label:t("Show more items"),tooltip:!0,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="9.5" cy="4.5" r="1.5"/><circle cx="9.5" cy="10.5" r="1.5"/><circle cx="9.5" cy="16.5" r="1.5"/></svg>'}),n.toolbarView.items.bindTo(this.groupedItems).using(e=>e),n}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map(e=>{this.viewFocusables.add(e)}),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}n(41);class jc extends ic{constructor(e,t,n={}){super(e),this.stickyPanel=new cc(e),this.toolbar=new Ic(e,{shouldGroupWhenFull:n.shouldToolbarGroupWhenFull}),this.editable=new sc(e,t)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class Nc extends ba{constructor(e,t){super(t),ot(e)&&(this.sourceElement=e),this.data.processor=new wa(this.data.viewDocument),this.model.document.createRoot();const n=!this.config.get("toolbar.shouldNotGroupWhenFull"),i=new jc(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:n});this.ui=new Ma(this,i),function(e){if(!P(e.updateSourceElement))throw new ft.b("attachtoform-missing-elementapi-interface: Editor passed to attachToForm() must implement ElementApi.",e);const t=e.sourceElement;if(t&&"textarea"===t.tagName.toLowerCase()&&t.form){let n;const i=t.form,r=()=>e.updateSourceElement();P(i.submit)&&(n=i.submit,i.submit=()=>{r(),n.apply(i)}),i.addEventListener("submit",r),e.on("destroy",()=>{i.removeEventListener("submit",r),n&&(i.submit=n)})}}(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(e,t={}){return new Promise(n=>{const i=new this(e,t);n(i.initPlugins().then(()=>i.ui.init(ot(e)?e:null)).then(()=>{if(!ot(e)&&t.initialData)throw new ft.b("editor-create-initial-data: The config.initialData option cannot be used together with initial data passed in Editor.create().",null);const n=t.initialData||function(e){return ot(e)?(t=e)instanceof HTMLTextAreaElement?t.value:t.innerHTML:e;var t}(e);return i.data.init(n)}).then(()=>i.fire("ready")).then(()=>i))})}}Tt(Nc,ya),Tt(Nc,va);class Vc{constructor(e){this.editor=e,this.set("isEnabled",!0),this._disableStack=new Set}forceDisabled(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",zc,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",zc),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function zc(e){e.return=!1,e.stop()}Tt(Vc,An);class Fc{constructor(e){this.files=function(e){const t=e.files?Array.from(e.files):[],n=e.items?Array.from(e.items):[];return t.length?t:n.filter(e=>"file"===e.kind).map(e=>e.getAsFile())}(e),this._native=e}get types(){return this._native.types}getData(e){return this._native.getData(e)}setData(e,t){this._native.setData(e,t)}}class Bc extends _r{constructor(e){super(e);const t=this.document;function n(e,n){n.preventDefault();const i=n.dropRange?[n.dropRange]:Array.from(t.selection.getRanges()),r=new ut(t,"clipboardInput");t.fire(r,{dataTransfer:n.dataTransfer,targetRanges:i}),r.stop.called&&n.stopPropagation()}this.domEventType=["paste","copy","cut","drop","dragover"],this.listenTo(t,"paste",n,{priority:"low"}),this.listenTo(t,"drop",n,{priority:"low"})}onDomEvent(e){const t={dataTransfer:new Fc(e.clipboardData?e.clipboardData:e.dataTransfer)};"drop"==e.type&&(t.dropRange=function(e,t){const n=t.target.ownerDocument,i=t.clientX,r=t.clientY;let s;return n.caretRangeFromPoint&&n.caretRangeFromPoint(i,r)?s=n.caretRangeFromPoint(i,r):t.rangeParent&&(s=n.createRange(),s.setStart(t.rangeParent,t.rangeOffset),s.collapse(!0)),s?e.domConverter.domRangeToView(s):e.document.selection.getFirstRange()}(this.view,e)),this.fire(e.type,e,t)}}const qc=["figcaption","li"];class Uc extends Vc{static get pluginName(){return"Clipboard"}init(){const e=this.editor,t=e.model.document,n=e.editing.view,i=n.document;function r(n,r){const s=r.dataTransfer;r.preventDefault();const o=e.data.toView(e.model.getSelectedContent(t.selection));i.fire("clipboardOutput",{dataTransfer:s,content:o,method:n.name})}this._htmlDataProcessor=new wa(i),n.addObserver(Bc),this.listenTo(i,"clipboardInput",t=>{e.isReadOnly&&t.stop()},{priority:"highest"}),this.listenTo(i,"clipboardInput",(e,t)=>{const i=t.dataTransfer;let r="";var s;i.getData("text/html")?r=function(e){return e.replace(/<span(?: class="Apple-converted-s
1pace"|)>(\s+)<\/span>/g,(e,t)=>1==t.length?" ":t)}(i.getData("text/html")):i.getData("text/plain")&&((s=(s=i.getData("text/plain")).replace(/</g,"<").replace(/>/g,">").replace(/\n/g,"</p><p>").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g," ")).indexOf("</p><p>")>-1&&(s=`<p>${s}</p>`),r=s),r=this._htmlDataProcessor.toView(r);const o=new ut(this,"inputTransformation");this.fire(o,{content:r,dataTransfer:i}),o.stop.called&&e.stop(),n.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(e,t)=>{if(!t.content.isEmpty){const n=this.editor.model,i=this.editor.data.toModel(t.content,"$clipboardHolder");if(0==i.childCount)return;n.insertContent(i),e.stop()}},{priority:"low"}),this.listenTo(i,"copy",r,{priority:"low"}),this.listenTo(i,"cut",(t,n)=>{e.isReadOnly?n.preventDefault():r(t,n)},{priority:"low"}),this.listenTo(i,"clipboardOutput",(n,i)=>{i.content.isEmpty||(i.dataTransfer.setData("text/html",this._htmlDataProcessor.toData(i.content)),i.dataTransfer.setData("text/plain",function e(t){let n="";if(t.is("$text")||t.is("$textProxy"))n=t.data;else if(t.is("element","img")&&t.hasAttribute("alt"))n=t.getAttribute("alt");else{let i=null;for(const r of t.getChildren()){const t=e(r);i&&(i.is("containerElement")||r.is("containerElement"))&&(qc.includes(i.name)||qc.includes(r.name)?n+="\n":n+="\n\n"),n+=t,i=r}}return n}(i.content))),"cut"==i.method&&e.model.deleteContent(t.selection)},{priority:"low"})}}class Hc{constructor(e){this.editor=e,this.set("value",void 0),this.set("isEnabled",!1),this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",()=>{this.refresh()}),this.on("execute",e=>{this.isEnabled||e.stop()},{priority:"high"}),this.listenTo(e,"change:isReadOnly",(e,t,n)=>{n?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")})}refresh(){this.isEnabled=!0}forceDisabled(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",Wc,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",Wc),this.refresh())}execute(){}destroy(){this.stopListening()}}function Wc(e){e.return=!1,e.stop()}function*Gc(e,t){for(const n of t)n&&e.getAttributeProperties(n[0]).copyOnEnter&&(yield n)}Tt(Hc,An);class Yc extends Hc{execute(){const e=this.editor.model,t=e.document;e.change(n=>{!function(e,t,n,i){const r=n.isCollapsed,s=n.getFirstRange(),o=s.start.parent,a=s.end.parent;if(i.isLimit(o)||i.isLimit(a))r||o!=a||e.deleteContent(n);else if(r){const e=Gc(t.model.schema,n.getAttributes());$c(t,s.start),t.setSelectionAttribute(e)}else{const i=!(s.start.isAtStart&&s.end.isAtEnd),r=o==a;e.deleteContent(n,{leaveUnmerged:i}),i&&(r?$c(t,n.focus):t.setSelection(a,0))}}(this.editor.model,n,t.selection,e.schema),this.fire("afterExecute",{writer:n})})}}function $c(e,t){e.split(t),e.setSelection(t.parent.nextSibling,0)}class Zc extends rr{constructor(e){super(e);const t=this.document;t.on("keydown",(e,n)=>{if(this.isEnabled&&n.keyCode==ri.enter){let i;t.once("enter",e=>i=e,{priority:"highest"}),t.fire("enter",new vr(t,n.domEvent,{isSoft:n.shiftKey})),i&&i.stop.called&&e.stop()}})}observe(){}}class Qc extends Vc{static get pluginName(){return"Enter"}init(){const e=this.editor,t=e.editing.view,n=t.document;t.addObserver(Zc),e.commands.add("enter",new Yc(e)),this.listenTo(n,"enter",(n,i)=>{i.preventDefault(),i.isSoft||(e.execute("enter"),t.scrollToTheSelection())},{priority:"low"})}}class Xc extends Hc{execute(){const e=this.editor.model,t=e.document;e.change(n=>{!function(e,t,n){const i=n.isCollapsed,r=n.getFirstRange(),s=r.end.parent,o=r.
1start.parent==s;if(i){const i=Gc(e.schema,n.getAttributes());Kc(e,t,r.end),t.removeSelectionAttribute(n.getAttributeKeys()),t.setSelectionAttribute(i)}else{const i=!(r.start.isAtStart&&r.end.isAtEnd);e.deleteContent(n,{leaveUnmerged:i}),o?Kc(e,t,n.focus):i&&t.setSelection(s,0)}}(e,n,t.selection),this.fire("afterExecute",{writer:n})})}refresh(){const e=this.editor.model;this.isEnabled=function(e,t){if(t.rangeCount>1)return!1;const n=t.anchor;if(!n||!e.checkChild(n,"softBreak"))return!1;const i=t.getFirstRange(),r=i.start.parent,s=i.end.parent;return!Jc(r,e)&&!Jc(s,e)||r===s}(e.schema,e.document.selection)}}function Kc(e,t,n){const i=t.createElement("softBreak");e.insertContent(i,n),t.setSelection(i,"after")}function Jc(e,t){return!e.is("rootElement")&&(t.isLimit(e)||Jc(e.parent,t))}class el extends Vc{static get pluginName(){return"ShiftEnter"}init(){const e=this.editor,t=e.conversion,n=e.editing.view,i=n.document;e.model.schema.register("softBreak",{allowWhere:"$text",isInline:!0}),t.for("upcast").elementToElement({model:"softBreak",view:"br"}),t.for("downcast").elementToElement({model:"softBreak",view:(e,t)=>t.createEmptyElement("br")}),n.addObserver(Zc),e.commands.add("shiftEnter",new Xc(e)),this.listenTo(i,"enter",(t,i)=>{i.preventDefault(),i.isSoft&&(e.execute("shiftEnter"),n.scrollToTheSelection())},{priority:"low"})}}class tl extends Hc{execute(){const e=this.editor.model,t=e.document.selection;let n=e.schema.getLimitElement(t);if(t.containsEntireContent(n)||!nl(e.schema,n))do{if(n=n.parent,!n)return}while(!nl(e.schema,n));e.change(e=>{e.setSelection(n,"in")})}}function nl(e,t){return e.isLimit(t)&&(e.checkChild(t,"$text")||e.checkChild(t,"paragraph"))}const il=oi("Ctrl+A");class rl extends Vc{static get pluginName(){return"SelectAllEditing"}init(){const e=this.editor,t=e.editing.view.document;e.commands.add("selectAll",new tl(e)),this.listenTo(t,"keydown",(t,n)=>{si(n)===il&&(e.execute("selectAll"),n.preventDefault())})}}class sl extends Vc{static get pluginName(){return"SelectAllUI"}init(){const e=this.editor;e.ui.componentFactory.add("selectAll",t=>{const n=e.commands.get("selectAll"),i=new kc(t);return i.set({label:(0,t.t)("Select all"),icon:'<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><path d="M.75 15.5a.75.75 0 0 1 .75.75V18l.008.09A.5.5 0 0 0 2 18.5h1.75a.75.75 0 1 1 0 1.5H1.5l-.144-.007a1.5 1.5 0 0 1-1.35-1.349L0 18.5v-2.25a.75.75 0 0 1 .75-.75zm18.5 0a.75.75 0 0 1 .75.75v2.25l-.007.144a1.5 1.5 0 0 1-1.349 1.35L18.5 20h-2.25a.75.75 0 1 1 0-1.5H18a.5.5 0 0 0 .492-.41L18.5 18v-1.75a.75.75 0 0 1 .75-.75zm-10.45 3c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm.45-5.5a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 1 1 0-1.5h8.5zM1.3 11c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM1.3 7c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5h-2.5a.75.75 0 1 1 0-1.5h2.5zm-5 0a.75.75 0 1 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5h5.5zm-6.5-5a.75.75 0 0 1 0 1.5H2a.5.5 0 0 0-.492.41L1.5 2v1.75a.75.75 0 0 1-1.5 0V1.5l.007-.144A1.5 1.5 0 0 1 1.356.006L1.5 0h2.25zM18.5 0l.144.007a1.5 1.5 0 0 1 1.35 1.349L20 1.5v2.25a.75.75 0 1 1-1.5 0V2l-.008-.09A.5.5 0 0 0 18 1.5h-1.75a.75.75 0 1 1 0-1.5h2.25zM8.8 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6z"/></svg>',keystroke:"Ctrl+A",tooltip:!0}),i.bind("isOn","isEnabled").to(n,"value","isEnabled"),this.listenTo(i,"execute",()=>{e.execute("selectAll"),e.editing.view.focus()}),i})}}class ol extends Vc{static get requires(){return[rl,sl]}static get pluginName(){return"SelectAll"}}class al{constructor(e,t=20){this.model=e,this.size=0,this.limit=t,this.isLocked=!1,this._changeCallback=(e,t)=>{"transparent"!=t.type&&t!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch()),this._batch}input(e){this.size+=e,this.size>=this.limit&&this._reset(!0)}lock(){this.isLocked=!0}unlock(){this.isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("
1change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(e){this.isLocked&&!e||(this._batch=null,this.size=0)}}class cl extends Hc{constructor(e,t){super(e),this._buffer=new al(e.model,t),this._batches=new WeakSet}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(e={}){const t=this.editor.model,n=t.document,i=e.text||"",r=i.length,s=e.range?t.createSelection(e.range):n.selection,o=e.resultRange;t.enqueueChange(this._buffer.batch,e=>{this._buffer.lock(),this._batches.add(this._buffer.batch),t.deleteContent(s),i&&t.insertContent(e.createText(i,n.selection.getAttributes()),s),o?e.setSelection(o):s.is("documentSelection")||e.setSelection(s),this._buffer.unlock(),this._buffer.input(r)})}}const ll=[si("arrowUp"),si("arrowRight"),si("arrowDown"),si("arrowLeft"),9,16,17,18,19,20,27,33,34,35,36,45,91,93,144,145,173,174,175,176,177,178,179,255];for(let Fg=112;Fg<=135;Fg++)ll.push(Fg);function ul(e){return!!e.ctrlKey||ll.includes(e.keyCode)}function dl(e){if(e.newChildren.length-e.oldChildren.length!=1)return;const t=function(e,t){const n=[];let i,r=0;return e.forEach(e=>{"equal"==e?(s(),r++):"insert"==e?(o("insert")?i.values.push(t[r]):(s(),i={type:"insert",index:r,values:[t[r]]}),r++):o("delete")?i.howMany++:(s(),i={type:"delete",index:r,howMany:1})}),s(),n;function s(){i&&(n.push(i),i=null)}function o(e){return i&&i.type==e}}(Vi(e.oldChildren,e.newChildren,hl),e.newChildren);if(t.length>1)return;const n=t[0];return n.values[0]&&n.values[0].is("$text")?n:void 0}function hl(e,t){return e&&e.is("$text")&&t&&t.is("$text")?e.data===t.data:e===t}class pl{constructor(e){this.editor=e,this.editing=this.editor.editing}handle(e,t){if(function(e){if(0==e.length)return!1;for(const t of e)if("children"===t.type&&!dl(t))return!0;return!1}(e))this._handleContainerChildrenMutations(e,t);else for(const n of e)this._handleTextMutation(n,t),this._handleTextNodeInsertion(n)}_handleContainerChildrenMutations(e,t){const n=function(e){const t=e.map(e=>e.node).reduce((e,t)=>e.getCommonAncestor(t,{includeSelf:!0}));if(t)return t.getAncestors({includeSelf:!0,parentFirst:!0}).find(e=>e.is("containerElement")||e.is("rootElement"))}(e);if(!n)return;const i=this.editor.editing.view.domConverter.mapViewToDom(n),r=new Qi(this.editor.editing.view.document),s=this.editor.data.toModel(r.domToView(i)).getChild(0),o=this.editor.editing.mapper.toModelElement(n);if(!o)return;const a=Array.from(s.getChildren()),c=Array.from(o.getChildren()),l=a[a.length-1],u=c[c.length-1],d=l&&l.is("element","softBreak"),h=u&&!u.is("element","softBreak");d&&h&&a.pop();const p=this.editor.model.schema;if(!fl(a,p)||!fl(c,p))return;const f=a.map(e=>e.is("$text")?e.data:"@").join("").replace(/\u00A0/g," "),g=c.map(e=>e.is("$text")?e.data:"@").join("").replace(/\u00A0/g," ");if(g===f)return;const m=Vi(g,f),{firstChangeAt:b,insertions:y,deletions:v}=gl(m);let _=null;t&&(_=this.editing.mapper.toModelRange(t.getFirstRange()));const w=f.substr(b,y),k=this.editor.model.createRange(this.editor.model.createPositionAt(o,b),this.editor.model.createPositionAt(o,b+v));this.editor.execute("input",{text:w,range:k,resultRange:_})}_handleTextMutation(e,t){if("text"!=e.type)return;const n=e.newText.replace(/\u00A0/g," "),i=e.oldText.replace(/\u00A0/g," ");if(i===n)return;const r=Vi(i,n),{firstChangeAt:s,insertions:o,deletions:a}=gl(r);let c=null;t&&(c=this.editing.mapper.toModelRange(t.getFirstRange()));const l=this.editing.view.createPositionAt(e.node,s),u=this.editing.mapper.toModelPosition(l),d=this.editor.model.createRange(u,u.getShiftedBy(a)),h=n.substr(s,o);this.editor.execute("input",{text:h,range:d,resultRange:c})}_handleTextNodeInsertion(e){if("children"!=e.type)return;const t=dl(e),n=this.editing.view.createPositionAt(e.node,t.index),i=this.editing.mapper.toModelPosition(n);this.editor.execute("input",{text:t.values[0].data.replace(/\u00A0/g," "),range:this.editor.model.createRange(i)})}}function fl(e,t){return e.every(e=>t.isInline(e))}function gl(e){let t=null,n=null;for(let s=0;s<e.length;s++)"equal"!=e[s]&&(t=null===t?s:t,n=s);let i=0,r=0;for(let s=t;s<=n;s++)"insert"!=e[s]&&i++,"delete"!=e[s]&&r++;return{insertions:r,deletions:i,firstChangeAt:t}}class ml extends Vc{static get pluginName(){return"Input"}init(){const e=this.editor,t=new cl(e,e.config.get("typing.undoStep")||20);e.commands.add("input",t),function(e){let t=null;const n=e.model,i=e.editing.view,r=e.commands.get("input");function s(e){const s=n.document,a=i.document.isComposing,c=t&&t.isEqual(s.selection);t=null,r.isEnabled&&(ul(e)||s.selection.isCollapsed||a&&229===e.keyCode||!a&&229===e.keyCode&&c||o())}function o(){const e=r.buffer;e.lock();const t=e.batch;r._batches.add(t),n.enqueueChange(t,()=>{n.deleteContent(n.document.selection)}),e.unlock()}i.document.on(ti?"beforeinput":"keydown",(e,t)=>s(t),{priority:"lowest"}),i.document.on("compositionstart",function(){const e=n.document,t=1!==e.selection.rangeCount||e.selection.getFirstRange().isFlat;e.selection.isCollapsed||t||o()},{priority:"lowest"}),i.document.on("compositionend",()=>{t=n.createSelection(n.document.selection)},{priority:"lowest"})}(e),function(e){e.editing.view.document.on("mutations",(t,n,i)=>{new pl(e).handle(n,i)})}(e)}isInput(e){return this.editor.commands.get("input")._batches.has(e)}}class bl extends Hc{constructor(e,t){super(e),this.direction=t,this._buffer=new al(e.model,e.config.get("typing.undoStep"))}get buffer(){return this._buffer}execute(e={}){const t=this.editor.model,n=t.document;t.enqueueChange(this._buffer.batch,i=>{this._buffer.lock();const r=i.createSelection(e.selection||n.selection),s=r.isCollapsed;if(r.isCollapsed&&t.modifySelection(r,{direction:this.direction,unit:e.unit}),this._shouldEntireContentBeReplacedWithParagraph(e.sequence||1))return void this._replaceEntireContentWithParagraph(i);if(r.isCollapsed)return;let o=0;
1r.getFirstRange().getMinimalFlatRanges().forEach(e=>{o+=qn(e.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),t.deleteContent(r,{doNotResetEntireContent:s,direction:this.direction}),this._buffer.input(o),i.setSelection(r),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(e){if(e>1)return!1;const t=this.editor.model,n=t.document.selection,i=t.schema.getLimitElement(n);if(!n.isCollapsed||!n.containsEntireContent(i))return!1;if(!t.schema.checkChild(i,"paragraph"))return!1;const r=i.getChild(0);return!r||"paragraph"!==r.name}_replaceEntireContentWithParagraph(e){const t=this.editor.model,n=t.schema.getLimitElement(t.document.selection),i=e.createElement("paragraph");e.remove(e.createRangeIn(n)),e.insert(i,n),e.setSelection(i,0)}}class yl extends rr{constructor(e){super(e);const t=e.document;let n=0;function i(e,n,i){let r;t.once("delete",e=>r=e,{priority:Number.POSITIVE_INFINITY}),t.fire("delete",new vr(t,n,i)),r&&r.stop.called&&e.stop()}t.on("keyup",(e,t)=>{t.keyCode!=ri.delete&&t.keyCode!=ri.backspace||(n=0)}),t.on("keydown",(e,t)=>{const r={};if(t.keyCode==ri.delete)r.direction="forward",r.unit="character";else{if(t.keyCode!=ri.backspace)return;r.direction="backward",r.unit="codePoint"}r.unit=(Kn?t.altKey:t.ctrlKey)?"word":r.unit,r.sequence=++n,i(e,t.domEvent,r)}),ti&&t.on("beforeinput",(t,n)=>{if("deleteContentBackward"!=n.domEvent.inputType)return;const r={unit:"codepoint",direction:"backward",sequence:1},s=n.domTarget.ownerDocument.defaultView.getSelection();s.anchorNode==s.focusNode&&s.anchorOffset+1!=s.focusOffset&&(r.selectionToRemove=e.domConverter.domSelectionToView(s)),i(t,n.domEvent,r)})}observe(){}}class vl extends Vc{static get pluginName(){return"Delete"}init(){const e=this.editor,t=e.editing.view,n=t.document;if(t.addObserver(yl),e.commands.add("forwardDelete",new bl(e,"forward")),e.commands.add("delete",new bl(e,"backward")),this.listenTo(n,"delete",(n,i)=>{const r={unit:i.unit,sequence:i.sequence};if(i.selectionToRemove){const t=e.model.createSelection(),n=[];for(const r of i.selectionToRemove.getRanges())n.push(e.editing.mapper.toModelRange(r));t.setTo(n),r.selection=t}e.execute("forward"==i.direction?"forwardDelete":"delete",r),i.preventDefault(),t.scrollToTheSelection()}),ti){let e=null;this.listenTo(n,"delete",(t,n)=>{const i=n.domTarget.ownerDocument.defaultView.getSelection();e={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}},{priority:"lowest"}),this.listenTo(n,"keyup",(t,n)=>{if(e){const t=n.domTarget.ownerDocument.defaultView.getSelection();t.collapse(e.anchorNode,e.anchorOffset),t.extend(e.focusNode,e.focusOffset),e=null}})}}}class _l extends Vc{static get requires(){return[ml,vl]}static get pluginName(){return"Typing"}}const wl=new Map;function kl(e,t,n){let i=wl.get(e);i||(i=new Map,wl.set(e,i)),i.set(t,n)}function Cl(e){return[e]}function Sl(e,t,n={}){const i=function(e,t){const n=wl.get(e);return n&&n.has(t)?n.get(t):Cl}(e.constructor,t.constructor);try{return i(e=e.clone(),t,n)}catch(e){throw e}}function Tl(e,t,n){e=e.slice(),t=t.slice();const i=new Pl(n.document,n.useRelations,n.forceWeakRemove);i.setOriginalOperations(e),i.setOriginalOperations(t);const r=i.originalOperations;if(0==e.length||0==t.length)return{operationsA:e,operationsB:t,originalOperations:r};const s=new WeakMap;for(const c of e)s.set(c,0);const o={nextBaseVersionA:e[e.length-1].baseVersion+1,nextBaseVersionB:t[t.length-1].baseVersion+1,originalOperationsACount:e.length,originalOperationsBCount:t.length};let a=0;for(;a<e.length;){const n=e[a],r=s.get(n);if(r==t.length){a++;continue}const o=t[r],c=Sl(n,o,i.getContext(n,o,!0)),l=Sl(o,n,i.getContext(o,n,!1));i.updateRelation(n,o),i.setOriginalOperations(c,n),i.setOriginalOperations(l,o);for(const e of c)s.set(e,r+l.length);e.splice(a,1,...c),t.splice(r,1,...l)}if(n.padWithNoOps){const n=e.length-o.originalOperationsACount,i=t.length-o.originalOperationsBCount;xl(e,i-n),xl(t,n-i)}return Ol(e,o.nextBaseVersionB),Ol(t,o.nextBaseVersionA),{operationsA:e,operationsB:t,originalOperations:r}}class Pl{constructor(e,t,n=!1){this.originalOperations=new Map,this._history=e.history,this._useRelations=t,this._forceWeakRemove=!!n,this._relations=new Map}setOriginalOperations(e,t=null){const n=t?this.originalOperations.get(t):null;for(const i of e)this.originalOperations.set(i,n||i)}updateRelation(e,t){switch(e.constructor){case Po:switch(t.constructor){case Mo:e.targetPosition.isEqual(t.sourcePosition)||t.movedRange.containsPosition(e.targetPosition)?this._setRelation(e,t,"insertAtSource"):e.targetPosition.isEqual(t.deletionPosition)?this._setRelation(e,t,"insertBetween"):e.targetPosition.isAfter(t.sourcePosition)&&this._setRelation(e,t,"moveTargetAfter");break;case Po:e.targetPosition.isEqual(t.sourcePosition)||e.targetPosition.isBefore(t.sourcePosition)?this._setRelation(e,t,"insertBefore"):this._setRelation(e,t,"insertAfter")}break;case Io:switch(t.constructor){case Mo:e.splitPosition.isBefore(t.sourcePosition)&&this._setRelation(e,t,"splitBefore");break;case Po:(e.splitPosition.isEqual(t.sourcePosition)||e.splitPosition.isBefore(t.sourcePosition))&&this._setRelation(e,t,"splitBefore")}break;case Mo:switch(t.constructor){case Mo:e.targetPosition.isEqual(t.sourcePosition)||this._setRelation(e,t,"mergeTargetNotMoved"),e.sourcePosition.isEqual(t.targetPosition)&&this._setRelation(e,t,"mergeSourceNotMoved"),e.sourcePosition.isEqual(t.sourcePosition)&&this._setRelation(e,t,"mergeSameElement");break;case Io:e.sourcePosition.isEqual(t.splitPosition)&&this._setRelation(e,t,"splitAtSource")}break;case xo:{const n=e.newRange;if(!n)return;switch(t.constructor){case Po:{const i=ds._createFromPositionAndShift(t.sourcePosition,t.howMany),r=i.containsPosition(n.start)||i.start.isEqual(n.start),s=i.containsPosition(n.end)||i.end.isEqual(n.end);!r&&!s||i.containsRange(n)||this._setRelation(e,t,{side:r?"left":"right",path:r?n.start.path.slice():n.end.path.slice()});break}case Mo:{const i=n.start.isEqual(t.targetPosition),r=n.start.isEqual(t.deletionPosition),s=n.end.isEqual(t.deletionPosition),o=n.end.isEqual(t.sourcePosition);(i||r||s||o)&&this._setRelation(e,t,{wasInLeftElement:i,wasStartBeforeMergedElement:r,wasEndBeforeMergedElement:s,wasInRightElement:o});break}}break}}}getContext(e,t,n){return{aIsStrong:n,aWasUndone:this._wasUndone(e),bWasUndone:this._wasUndone(t),abRelation:this._useRelations?this._getRelation(e,t):null,baRelation:this._useRelations?this._getRelation(t,e):null,forceWeakRemove:this._forceWeakRemove}}_wasUndone(e){const t=this.originalOperations.get(e);return t.wasUndone||this._history.isUndoneOperation(t)}_getRelation(e,t){const n=this.originalOperations.get(t),i=this._history.getUndoneOperation(n);if(!i)return null;const r=this.originalOperations.get(e),s=this._relations.get(r);return s&&s.get(i)||null}_setRelation(e,t,n){const i=this.originalOperations.get(e),r=this.originalOperations.get(t);let s=this._relations.get(i);s||(s=new Map,this._relations.set(i,s)),s.set(r,n)}}function Ol(e,t){for(const n of e)n.baseVersion=t++}function xl(e,t){for(let n=0;n<t;n++)e.push(new Xo(0))}function Al(e,t,n){const i=e.nodes.getNode(0).getAttribute(t);if(i==n)return null;const r=new ds(e.position,e.position.getShiftedBy(e.howMany));return new So(r,t,i,n,0)}function El(e,t){return null===e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany)}function Ml(e,t){const n=[];for(let i=0;i<e.length;i++){const r=e[i],s=new Po(r.start,r.end.offset-r.start.offset,t,0);n.push(s);for(let t=i+1;t<e.length;t++)e[t]=e[t]._getTransformedByMove(s.sourcePosition,s.targetPosition,s.howMany)[0];t=t._getTransformedByMove(s.sourcePosition,s.targetPosition,s.howMany)}return n}kl(So,So,(e,t,n)=>{if(e.key===t.key&&e.range.start.hasSameParentAs(t.range.start)){const i=e.range.getDifference(t.range).map(t=>new So(t,e.key,e.oldValue,e.newValue,0)),r=e.range.getIntersection(t.range);return r&&n.aIsStrong&&i.push(new So(r,t.key,t.newValue,e.newValue,0)),0==i.length?[new Xo(0)]:i}return[e]}),kl(So,Oo,(e,t)=>{if(e.range.start.hasSameParentAs(t.position)&&e.range.containsPosition(t.position)){const n=e.range._getTransformedByInsertion(t.position,t.howMany,!t.shouldReceiveAttributes).map(t=>new So(t,e.key,e.oldValue,e.newValue,e.baseVersion));if(t.shouldReceiveAttributes){const i=Al(t,e.key,e.oldValue);i&&n.unshift(i)}return n}return e.range=e.range._getTransformedByInsertion(t.position,t.howMany,!1)[0],[e]}),kl(So,Mo,(e,t)=>{const n=[];e.range.start.hasSameParentAs(t.deletionPosition)&&(e.range.containsPosition(t.deletionPosition)||e.range.start.isEqual(t.deletionPosition))&&n.push(ds._createFromPositionAndShift(t.graveyardPosition,1));const i=e.range._getTransformedByMergeOperation(t);return i.isCollapsed||n.push(i),n.map(t=>new So(t,e.key,e.oldValue,e.newValue,e.baseVersion))}),kl(So,Po,(e,t)=>function(e,t){const n=ds._createFromPositionAndShift(t.sourcePosition,t.howMany);let i=null,r=[];n.containsRange(e,!0)?i=e:e.start.hasSameParentAs(n.start)?(r=e.getDifference(n),i=e.getIntersection(n)):r=[e];const s=[];for(let o of r){o=o._getTransformedByDeletion(t.sourcePosition,t.howMany);const e=t.getMovedRangeStart(),n=o.start.hasSameParentAs(e);o=o._getTransformedByInsertion(e,t.howMany,n),s.push(...o)}return i&&s.push(i._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany,!1)[0]),s}(e.range,t).map(t=>new So(t,e.key,e.oldValue,e.newValue,e.baseVersion))),kl(So,Io,(e,t)=>{if(e.range.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.range.end.offset++,[e];if(e.range.start.hasSameParentAs(t.splitPosition)&&e.range.containsPosition(t.splitPosition)){const n=e.clone();return n.range=new ds(t.moveTargetPosition.clone(),e.range.end._getCombined(t.splitPosition,t.moveTargetPosition)),e.range.end=t.splitPosition.clone(),e.range.end.stickiness="toPrevious",[e,n]}return e.range=e.range._getTransformedBySplitOperation(t),[e]}),kl(Oo,So,(e,t)=>{const n=[e];if(e.shouldReceiveAttributes&&e.position.hasSameParentAs(t.range.start)&&t.range.containsPosition(e.position)){const i=Al(e,t.ke
1y,t.newValue);i&&n.push(i)}return n}),kl(Oo,Oo,(e,t,n)=>(e.position.isEqual(t.position)&&n.aIsStrong||(e.position=e.position._getTransformedByInsertOperation(t)),[e])),kl(Oo,Po,(e,t)=>(e.position=e.position._getTransformedByMoveOperation(t),[e])),kl(Oo,Io,(e,t)=>(e.position=e.position._getTransformedBySplitOperation(t),[e])),kl(Oo,Mo,(e,t)=>(e.position=e.position._getTransformedByMergeOperation(t),[e])),kl(xo,Oo,(e,t)=>(e.oldRange&&(e.oldRange=e.oldRange._getTransformedByInsertOperation(t)[0]),e.newRange&&(e.newRange=e.newRange._getTransformedByInsertOperation(t)[0]),[e])),kl(xo,xo,(e,t,n)=>{if(e.name==t.name){if(!n.aIsStrong)return[new Xo(0)];e.oldRange=t.newRange?t.newRange.clone():null}return[e]}),kl(xo,Mo,(e,t)=>(e.oldRange&&(e.oldRange=e.oldRange._getTransformedByMergeOperation(t)),e.newRange&&(e.newRange=e.newRange._getTransformedByMergeOperation(t)),[e])),kl(xo,Po,(e,t,n)=>{if(e.oldRange&&(e.oldRange=ds._createFromRanges(e.oldRange._getTransformedByMoveOperation(t))),e.newRange){if(n.abRelation){const i=ds._createFromRanges(e.newRange._getTransformedByMoveOperation(t));if("left"==n.abRelation.side&&t.targetPosition.isEqual(e.newRange.start))return e.newRange.start.path=n.abRelation.path,e.newRange.end=i.end,[e];if("right"==n.abRelation.side&&t.targetPosition.isEqual(e.newRange.end))return e.newRange.start=i.start,e.newRange.end.path=n.abRelation.path,[e]}e.newRange=ds._createFromRanges(e.newRange._getTransformedByMoveOperation(t))}return[e]}),kl(xo,Io,(e,t,n)=>{if(e.oldRange&&(e.oldRange=e.oldRange._getTransformedBySplitOperation(t)),e.newRange){if(n.abRelation){const i=e.newRange._getTransformedBySplitOperation(t);return e.newRange.start.isEqual(t.splitPosition)&&n.abRelation.wasStartBeforeMergedElement?e.newRange.start=as._createAt(t.insertionPosition):e.newRange.start.isEqual(t.splitPosition)&&!n.abRelation.wasInLeftElement&&(e.newRange.start=as._createAt(t.moveTargetPosition)),e.newRange.end=e.newRange.end.isEqual(t.splitPosition)&&n.abRelation.wasInRightElement?as._createAt(t.moveTargetPosition):e.newRange.end.isEqual(t.splitPosition)&&n.abRelation.wasEndBeforeMergedElement?as._createAt(t.insertionPosition):i.end,[e]}e.newRange=e.newRange._getTransformedBySplitOperation(t)}return[e]}),kl(Mo,Oo,(e,t)=>
1(e.sourcePosition.hasSameParentAs(t.position)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByInsertOperation(t),e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t),[e])),kl(Mo,Mo,(e,t,n)=>{if(e.sourcePosition.isEqual(t.sourcePosition)&&e.targetPosition.isEqual(t.targetPosition)){if(n.bWasUndone){const n=t.graveyardPosition.path.slice();return n.push(0),e.sourcePosition=new as(t.graveyardPosition.root,n),e.howMany=0,[e]}return[new Xo(0)]}if(e.sourcePosition.isEqual(t.sourcePosition)&&!e.targetPosition.isEqual(t.targetPosition)&&!n.bWasUndone&&"splitAtSource"!=n.abRelation){const i="$graveyard"==e.targetPosition.root.rootName,r="$graveyard"==t.targetPosition.root.rootName;if(r&&!i||(!i||r)&&n.aIsStrong){const n=t.targetPosition._getTransformedByMergeOperation(t),i=e.targetPosition._getTransformedByMergeOperation(t);return[new Po(n,e.howMany,i,0)]}return[new Xo(0)]}return e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMergeOperation(t),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),e.graveyardPosition.isEqual(t.graveyardPosition)&&n.aIsStrong||(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]}),kl(Mo,Po,(e,t,n)=>{const i=ds._createFromPositionAndShift(t.sourcePosition,t.howMany);return"remove"==t.type&&!n.bWasUndone&&!n.forceWeakRemove&&e.deletionPosition.hasSameParentAs(t.sourcePosition)&&i.containsPosition(e.sourcePosition)?[new Xo(0)]:(e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition.hasSameParentAs(t.sourcePosition)&&(e.howMany-=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMoveOperation(t),e.targetPosition=e.targetPosition._getTransformedByMoveOperation(t),e.graveyardPosition.isEqual(t.targetPosition)||(e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)),[e])}),kl(Mo,Io,(e,t,n)=>{if(t.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByDeletion(t.graveyardPosition,1),e.deletionPosition.isEqual(t.graveyardPosition)&&(e.howMany=t.howMany)),e.targetPosition.isEqual(t.splitPosition)){const i=0!=t.howMany,r=t.graveyardPosition&&e.deletionPosition.isEqual(t.graveyardPosition);if(i||r||"mergeTargetNotMoved"==n.abRelation)return e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),[e]}if(e.sourcePosition.isEqual(t.splitPosition)){if("mergeSourceNotMoved"==n.abRelation)return e.howMany=0,e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e];if("mergeSameElement"==n.abRelation||e.sourcePosition.offset>0)return e.sourcePosition=t.moveTargetPosition.clone(),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]}return e.sourcePosition.hasSameParentAs(t.splitPosition)&&(e.howMany=t.splitPosition.offset),e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]}),kl(Po,Oo,(e,t)=>{const n=ds._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByInsertOperation(t,!1)[0];return e.sourcePosition=n.start,e.howMany=n.end.offset-n.start.offset,e.targetPosition.isEqual(t.position)||(e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t)),[e]}),kl(Po,Po,(e,t,n)=>{const i=ds._createFromPositionAndShift(e.sourcePosition,e.howMany),r=ds._createFromPositionAndShift(t.sourcePosition,t.howMany);let s,o=n.aIsStrong,a=!n.aIsStrong;if("insertBefore"==n.abRelation||"insertAfter"==n.baRelation?a=!0:"insertAfter"!=n.abRelation&&"insertBefore"!=n.baRelation||(a=!1),s=e.targetPosition.isEqual(t.targetPosition)&&a?e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany):e.targetPosition._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),El(e,t)&&El(t,e))return[t.getReversed()];if(i.containsPosition(t.targetPosition)&&i.containsRange(r,!0))return i.start=i.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),i.end=i.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Ml([i],s);if(r.containsPosition(e.targetPosition)&&r.containsRange(i,!0))return i.start=i.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),i.end=i.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),Ml([i],s);const c=It(e.sourcePosition.getParentPath(),t.sourcePosition.getParentPath());if("prefix"==c||"extension"==c)return i.start=i.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),i.end=i.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Ml([i],s);"remove"!=e.type||"remove"==t.type||n.aWasUndone||n.forceWeakRemove?"remove"==e.type||"remove"!=t.type||n.bWasUndone||n.forceWeakRemove||(o=!1):o=!0;const l=[],u=i.getDifference(r);for(const h of u){h.start=h.start._getTransformedByDeletion(t.sourcePosition,t.howMany),h.end=h.end._getTransformedByDeletion(t.sourcePosition,t.howMany);const e="same"==It(h.start.getParentPath(),t.getMovedRangeStart().getParentPath()),n=h._getTransformedByInsertion(t.getMovedRangeStart(),t.howMany,e);l.push(...n)}const d=i.getIntersection(r);return null!==d&&o&&(d.start=d.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),d.end=d.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),0===l.length?l.push(d):1==l.length?r.start.isBefore(i.start)||r.start.isEqual(i.start)?l.unshift(d):l.push(d):l.splice(1,0,d)),0===l.length?[new Xo(e.baseVersion)]:Ml(l,s)}),kl(Po,Io,(e,t,n)=>{let i=e.targetPosition.clone();e.targetPosition.isEqual(t.insertionPosition)&&t.graveyardPosition&&"moveTargetAfter"!=n.abRelation||(i=e.targetPosition._getTransformedBySplitOperation(t));const r=ds._createFromPositionAndShift(e.sourcePosition,e.howMany);if(r.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.howMany++,e.targetPosition=i,[e];if(r.start.hasSameParentAs(t.splitPosition)&&r.containsPosition(t.splitPosition)){let e=new ds(t.splitPosition,r.end);return e=e._getTransformedBySplitOperation(t),Ml([new ds(r.start,t.splitPosition),e],i)}e.targetPosition.isEqual(t.splitPosition)&&"insertAtSource"==n.abRelation&&(i=t.moveTargetPosition),e.targetPosition.isEqual(t.insertionPosition)&&"insertBetween"==n.abRelation&&(i=e.targetPosition);const s=[r._getTransformedBySplitOperation(t)];if(t.graveyardPosition){const i=r.start.isEqual(t.graveyardPosition)||r.containsPosition(t.graveyardPosition);e.howMany>1&&i&&!n.aWasUndone&&s.push(ds._createFromPositionAndShift(t.insertionPosition,1))}return Ml(s,i)}),kl(Po,Mo,(e,t,n)=>{const i=ds._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.deletionPosition.hasSameParentAs(e.sourcePosition)&&i.containsPosition(t.sourcePosition))if("remove"!=e.type||n.forceWeakRemove){if(1==e.howMany)return n.bWasUndone?(e.sourcePosition=t.graveyardPosition.clone(),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]):[new Xo(0)]}else if(!n.aWasUndone){const n=[];let i=t.graveyardPosition.clone(),r=t.targetPosition._getTransformedByMergeOperation(t);e.howMany>1&&(n.push(new Po(e.sourcePosition,e.howMany-1,e.targetPosition,0)),i=i._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1),r=r._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1));const s=t.deletionPosition._getCombined(e.sourcePosition,e.targetPosition),o=new Po(i,1,s,0
1),a=o.getMovedRangeStart().path.slice();a.push(0);const c=new as(o.targetPosition.root,a);r=r._getTransformedByMove(i,s,1);const l=new Po(r,t.howMany,c,0);return n.push(o),n.push(l),n}const r=ds._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByMergeOperation(t);return e.sourcePosition=r.start,e.howMany=r.end.offset-r.start.offset,e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]}),kl(Ao,Oo,(e,t)=>(e.position=e.position._getTransformedByInsertOperation(t),[e])),kl(Ao,Mo,(e,t)=>e.position.isEqual(t.deletionPosition)?(e.position=t.graveyardPosition.clone(),e.position.stickiness="toNext",[e]):(e.position=e.position._getTransformedByMergeOperation(t),[e])),kl(Ao,Po,(e,t)=>(e.position=e.position._getTransformedByMoveOperation(t),[e])),kl(Ao,Ao,(e,t,n)=>{if(e.position.isEqual(t.position)){if(!n.aIsStrong)return[new Xo(0)];e.oldName=t.newName}return[e]}),kl(Ao,Io,(e,t)=>{if("same"==It(e.position.path,t.splitPosition.getParentPath())&&!t.graveyardPosition){const t=new Ao(e.position.getShiftedBy(1),e.oldName,e.newName,0);return[e,t]}return e.position=e.position._getTransformedBySplitOperation(t),[e]}),kl(Eo,Eo,(e,t,n)=>{if(e.root===t.root&&e.key===t.key){if(!n.aIsStrong||e.newValue===t.newValue)return[new Xo(0)];e.oldValue=t.newValue}return[e]}),kl(Io,Oo,(e,t)=>(e.splitPosition.hasSameParentAs(t.position)&&e.splitPosition.offset<t.position.offset&&(e.howMany+=t.howMany),e.splitPosition=e.splitPosition._getTransformedByInsertOperation(t),e.insertionPosition=Io.getInsertionPosition(e.splitPosition),[e])),kl(Io,Mo,(e,t,n)=>{if(!e.graveyardPosition&&!n.bWasUndone&&e.splitPosition.hasSameParentAs(t.sourcePosition)){const n=t.graveyardPosition.path.slice();n.push(0);const i=new as(t.graveyardPosition.root,n),r=Io.getInsertionPosition(new as(t.graveyardPosition.root,n)),s=new Io(i,0,null,0);return s.insertionPosition=r,e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=Io.getInsertionPosition(e.splitPosition),e.graveyardPosition=s.insertionPosition.clone(),e.graveyardPosition.stickiness="toNext",[s,e]}return e.splitPosition.hasSameParentAs(t.deletionPosition)&&!e.splitPosition.isAfter(t.deletionPosition)&&e.howMany--,e.splitPosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=Io.getInsertionPosition(e.splitPosition),e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]}),kl(Io,Po,(e,t,n)=>{const i=ds._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.graveyardPosition){const r=i.start.isEqual(e.graveyardPosition)||i.containsPosition(e.graveyardPosition);if(!n.bWasUndone&&r){const n=e.splitPosition._getTransformedByMoveOperation(t),i=e.graveyardPosition._getTransformedByMoveOperation(t),r=i.path.slice();r.push(0);const s=new as(i.root,r);return[new Po(n,e.howMany,s,0)]}e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)}return e.splitPosition.hasSameParentAs(t.sourcePosition)&&i.containsPosition(e.splitPosition)?(e.howMany-=t.howMany-(e.splitPosition.offset-t.sourcePosition.offset),e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset<t.targetPosition.offset&&(e.howMany+=t.howMany),e.splitPosition=t.sourcePosition.clone(),e.
1insertionPosition=Io.getInsertionPosition(e.splitPosition),[e]):!e.splitPosition.isEqual(t.targetPosition)||"insertAtSource"!=n.baRelation&&"splitBefore"!=n.abRelation?(t.sourcePosition.isEqual(t.targetPosition)||(e.splitPosition.hasSameParentAs(t.sourcePosition)&&e.splitPosition.offset<=t.sourcePosition.offset&&(e.howMany-=t.howMany),e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset<t.targetPosition.offset&&(e.howMany+=t.howMany)),e.splitPosition.stickiness="toNone",e.splitPosition=e.splitPosition._getTransformedByMoveOperation(t),e.splitPosition.stickiness="toNext",e.insertionPosition=e.graveyardPosition?e.insertionPosition._getTransformedByMoveOperation(t):Io.getInsertionPosition(e.splitPosition),[e]):(e.howMany+=t.howMany,e.splitPosition=e.splitPosition._getTransformedByDeletion(t.sourcePosition,t.howMany),e.insertionPosition=Io.getInsertionPosition(e.splitPosition),[e])}),kl(Io,Io,(e,t,n)=>{if(e.splitPosition.isEqual(t.splitPosition)){if(!e.graveyardPosition&&!t.graveyardPosition)return[new Xo(0)];if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition))return[new Xo(0)];if("splitBefore"==n.abRelation)return e.howMany=0,e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t),[e]}if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition)){const i="$graveyard"==e.splitPosition.root.rootName,r="$graveyard"==t.splitPosition.root.rootName;if(r&&!i||(!i||r)&&n.aIsStrong){const n=[];return t.howMany&&n.push(new Po(t.moveTargetPosition,t.howMany,t.splitPosition,0)),e.howMany&&n.push(new Po(e.splitPosition,e.howMany,e.moveTargetPosition,0)),n}return[new Xo(0)]}if(e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t)),e.splitPosition.isEqual(t.insertionPosition)&&"splitBefore"==n.abRelation)return e.howMany++,[e];if(t.splitPosition.isEqual(e.insertionPosition)&&"splitBefore"==n.baRelation){const n=t.insertionPosition.path.slice();n.push(0);const i=new as(t.insertionPosition.root,n);return[e,new Po(e.insertionPosition,1,i,0)]}return e.splitPosition.hasSameParentAs(t.splitPosition)&&e.splitPosition.offset<t.splitPosition.offset&&(e.howMany-=t.howMany),e.splitPosition=e.splitPosition._getTransformedBySplitOperation(t),e.insertionPosition=Io.getInsertionPosition(e.splitPosition),[e]});class Il extends Hc{constructor(e){super(e),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this.listenTo(e.data,"set",()=>this.clearStack())}refresh(){this.isEnabled=this._stack.length>0}addBatch(e){const t=this.editor.model.document.selection,n={ranges:t.hasOwnRange?Array.from(t.getRanges()):[],isBackward:t.isBackward};this._stack.push({batch:e,selection:n}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(e,t,n){const i=this.editor.model,r=i.document,s=[],o=e.map(e=>e.getTransformedByOperations(n)),a=o.flat();for(const c of o){const e=c.filter(e=>!Ll(e,a));Rl(e);const t=e.find(e=>e.root!=r.graveyard);t&&s.push(t)}s.length&&i.change(e=>{e.setSelection(s,{backward:t})})}_undo(e,t){const n=this.editor.model,i=n.document;this._createdBatches.add(t);const r=e.operations.slice().filter(e=>e.isDocumentOperation);r.reverse();for(const s of r){const e=Array.from(i.history.getOperations(s.baseVersion+1)),r=Tl([s.getReversed()],e,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(const o of r)t.addOperation(o),n.applyOperation(o),i.history.setOperationAsUndone(s,o)}}}function Rl(e){e.sort((e,t)=>e.start.isBefore(t.start)?-1:1);for(let t=1;t<e.length;t++){const n=e[t-1].getJoined(e[t],!0);n&&(t--,e.splice(t,2,n))}}function Ll(e,t){return t.some(t=>t!==e&&t.containsRange(e,!0))}class Dl extends Il{execute(e=null){const t=e?this._stack.findIndex(t=>t.batch==e):this._stack.length-1,n=this._stack.splice(t,1)[0],i=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(i,()=>{this._undo(n.batch,i);const e=this.editor.model.document.history.getOperations(n.batch.baseVersion);this._restoreSelection(n.selection.ranges,n.selection.isBackward,e),this.fire("revert",n.batch,i)}),this.refresh()}}class jl extends Il{execute(){const e=this._stack.pop(),t=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(t,()=>{const n=this.editor.model.document.history.getOperations(e.batch.operations[e.batch.operations.length-1].baseVersion+1);this._restoreSelection(e.selection.ranges,e.selection.isBackward,n),this._und
1o(e.batch,t)}),this.refresh()}}class Nl extends Vc{static get pluginName(){return"UndoEditing"}constructor(e){super(e),this._batchRegistry=new WeakSet}init(){const e=this.editor;this._undoCommand=new Dl(e),this._redoCommand=new jl(e),e.commands.add("undo",this._undoCommand),e.commands.add("redo",this._redoCommand),this.listenTo(e.model,"applyOperation",(e,t)=>{const n=t[0];if(!n.isDocumentOperation)return;const i=n.batch,r=this._redoCommand._createdBatches.has(i),s=this._undoCommand._createdBatches.has(i);this._batchRegistry.has(i)||"transparent"==i.type&&!r&&!s||(r?this._undoCommand.addBatch(i):s||(this._undoCommand.addBatch(i),this._redoCommand.clearStack()),this._batchRegistry.add(i))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(e,t,n)=>{this._redoCommand.addBatch(n)}),e.keystrokes.set("CTRL+Z","undo"),e.keystrokes.set("CTRL+Y","redo"),e.keystrokes.set("CTRL+SHIFT+Z","redo")}}var Vl='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.042 9.367l2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>',zl='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M14.958 9.367l-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>';class Fl extends Vc{init(){const e=this.editor,t=e.locale,n=e.t,i="ltr"==t.uiLanguageDirection?Vl:zl,r="ltr"==t.uiLanguageDirection?zl:Vl;this._addButton("undo",n("Undo"),"CTRL+Z",i),this._addButton("redo",n("Redo"),"CTRL+Y",r)}_addButton(e,t,n,i){const r=this.editor;r.ui.componentFactory.add(e,s=>{const o=r.commands.get(e),a=new kc(s);return a.set({label:t,icon:i,keystroke:n,tooltip:!0}),a.bind("isEnabled").to(o,"isEnabled"),this.listenTo(a,"execute",()=>{r.execute(e),r.editing.view.focus()}),a})}}class Bl extends Vc{static get requires(){return[Nl,Fl]}static get pluginName(){return"Undo"}}class ql{constructor(e){this.context=e}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}Tt(ql,An);class Ul extends ql{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new Pt({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(e){if("string"!=typeof e)throw new ft.b("pendingactions-add-invalid-message: The message must be a string.",this);const t=Object.create(An);return t.set("message",e),this._actions.add(t),this.hasAny=!0,t}remove(e){this._actions.remove(e),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}class Hl{constructor(){const e=new window.FileReader;this._reader=e,this._data=void 0,this.set("loaded",0),e.onprogress=e=>{this.loaded=e.loaded}}get error(){return this._reader.error}get data(){return this._data}read(e){const t=this._reader;return this.total=e.size,new Promise((n,i)=>{t.onload=()=>{const e=t.result;this._data=e,n(e)},t.onerror=()=>{i("error")},t.onabort=()=>{i("aborted")},this._reader.readAsDataURL(e)})}abort(){this._reader.abort()}}Tt(Hl,An);class Wl extends Vc{static get pluginName(){return"FileRepository"}static get requires(){return[Ul]}init(){this.loaders=new Pt,this.loaders.on("add",()=>this._updatePendingAction()),this.loaders.on("remove",()=>this._updatePendingAction()),this._loadersMap=new Map,this._pendingAction=null,this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(e,t)=>t?e/t*100:0)}getLoader(e){return this._loadersMap.get(e)||null}createLoader(e){if(!this.createUploadAdapter)return console.warn(Object(ft.a)("filerepository-no-upload-adapter: Upload adapter is not defined.")),null;const t=new Gl(Promise.resolve(e),this.createUploadAdapter);return this.loaders.add(t),this._loadersMap.set(e,t),e instanceof Promise&&t.file.then(e=>{this._loadersMap.set(e,t)}).catch(()=>{}),t.on("change:uploaded",()=>{let e=0;for(const t of this.loaders)e+=t.uploaded;this.uploaded=e}),t.on("change:uploadTotal",()=>{let e=0;for(const t of this.loaders)t.uploadTotal&&(e+=t.uploadTotal);this.uploadTotal=e}),t}destroyLoader(e){const t=e instanceof Gl?e:this.getLoader(e);
1t._destroy(),this.loaders.remove(t),this._loadersMap.forEach((e,n)=>{e===t&&this._loadersMap.delete(n)})}_updatePendingAction(){const e=this.editor.plugins.get(Ul);if(this.loaders.length){if(!this._pendingAction){const t=this.editor.t,n=e=>`${t("Upload in progress")} ${parseInt(e)}%.`;this._pendingAction=e.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else e.remove(this._pendingAction),this._pendingAction=null}}Tt(Wl,An);class Gl{constructor(e,t){this.id=ht(),this._filePromiseWrapper=this._createFilePromiseWrapper(e),this._adapter=t(this),this._reader=new Hl,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(e,t)=>t?e/t*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(e=>this._filePromiseWrapper?e:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new ft.b("filerepository-read-wrong-status: You cannot call read if the status is different than idle.",this);return this.status="reading",this.file.then(e=>this._reader.read(e)).then(e=>{if("reading"!==this.status)throw this.status;return this.status="idle",e}).catch(e=>{if("aborted"===e)throw this.status="aborted","aborted";throw this.status="error",this._reader.error?this._reader.error:e})}upload(){if("idle"!=this.status)throw new ft.b("filerepository-upload-wrong-status: You cannot call upload if the status is different than idle.",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(e=>(this.uploadResponse=e,this.status="idle",e)).catch(e=>{if("aborted"===this.status)throw"aborted";throw this.status="error",e})}abort(){const e=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==e?this._reader.abort():"uploading"==e&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(()=>{}),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(e){const t={};return t.promise=new Promise((n,i)=>{t.rejecter=i,t.isFulfilled=!1,e.then(e=>{t.isFulfilled=!0,n(e)}).catch(e=>{t.isFulfilled=!0,i(e)})}),t}}Tt(Gl,An);class Yl extends Vc{static get requires(){return[Wl]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const e=this.editor.config.get("ckfinder.uploadUrl");e&&(this.editor.plugins.get(Wl).createUploadAdapter=t=>new $l(t,e,this.editor.t))}}class $l{constructor(e,t,n){this.loader=e,this.url=t,this.t=n}upload(){return this.loader.file.then(e=>new Promise((t,n)=>{this._initRequest(),this._initListeners(t,n,e),this._sendRequest(e)}))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const e=this.xhr=new XMLHttpRequest;e.open("POST",this.url,!0),e.responseType="json"}_initListeners(e,t,n){const i=this.xhr,r=this.loader,s=(0,this.t)("Cannot upload file:")+` ${n.name}.`;i.addEventListener("error",()=>t(s)),i.addEventListener("abort",()=>t()),i.addEventListener("load",()=>{const n=i.response;if(!n||!n.uploaded)return t(n&&n.error&&n.error.message?n.error.message:s);e({default:n.url})}),i.upload&&i.upload.addEventListener("progress",e=>{e.lengthComputable&&(r.uploadTotal=e.total,r.uploaded=e.loaded)})}_sendRequest(e){const t=new FormData;t.append("upload",e),t.append("ckCsrfToken",function(){let e=function(e){e=e.toLowerCase();const t=document.cookie.split(";");for(const n of t){const t=n.split("=");if(decodeURIComponent(t[0].trim().toLowerCase())===e)return decodeURIComponent(t[1])}return null}("ckCsrfToken");var t;return e&&40==e.length||(e=function(e){let t="";const n=new Uint8Array(40);window.crypto.getRandomValues(n);for(let i=0;i<n.length;i++){const e="abcdefghijklmnopqrstuvwxyz0123456789".charAt(n[i]%"abcdefghijklmnopqrstuvwxyz0123456789".length);t+=Math.random()>.5?e.toUpperCase():e}return t}(),t=e,document.cookie=encodeURIComponent("ckCsrfToken")+"="+encodeURIComponent(t)+";path=/"),e}()),this.xhr.send(t)}}function Zl(e){const t=e.next();return t.done?null:t.value}function Ql(e,t,n,i){let r,s=null;"function"==typeof i?r=i:(s=e.commands.get(i),r=()=>{e.execute(i)}),e.model.document.on("change:data",(i,o)=>
1{if(s&&!s.isEnabled||!t.isEnabled)return;const a=Zl(e.model.document.selection.getRanges());if(!a.isCollapsed)return;if("transparent"==o.type)return;const c=Array.from(e.model.document.differ.getChanges()),l=c[0];if(1!=c.length||"insert"!==l.type||"$text"!=l.name||1!=l.length)return;const u=l.position.parent;if(u.is("element","codeBlock"))return;if(s&&!0===s.value)return;const d=u.getChild(0),h=e.model.createRangeOn(d);if(!h.containsRange(a)&&!a.end.isEqual(h.end))return;const p=n.exec(d.data.substr(0,a.end.offset));p&&e.model.enqueueChange(e=>{const t=e.createPositionAt(u,0),n=e.createPositionAt(u,p[0].length),i=new ks(t,n);!1!==r({match:p})&&e.remove(i),i.detach()})})}function Xl(e,t,n,i){let r,s;n instanceof RegExp?r=n:s=n,s=s||(e=>{let t;const n=[],i=[];for(;null!==(t=r.exec(e))&&!(t&&t.length<4);){let{index:e,1:r,2:s,3:o}=t;e+=t[0].length-(r+s+o).length;const a=[e+r.length+s.length,e+r.length+s.length+o.length];n.push([e,e+r.length]),n.push(a),i.push([e+r.length,e+r.length+s.length])}return{remove:n,format:i}}),e.model.document.on("change:data",(n,r)=>{if("transparent"==r.type||!t.isEnabled)return;const o=e.model,a=o.document.selection;if(!a.isCollapsed)return;const c=Array.from(o.document.differ.getChanges()),l=c[0];if(1!=c.length||"insert"!==l.type||"$text"!=l.name||1!=l.length)return;const u=a.focus,d=u.parent,{text:h,range:p}=function(e,t){let n=e.start;return{text:Array.from(e.getItems()).reduce((e,i)=>!i.is("$text")&&!i.is("$textProxy")||i.getAttribute("code")?(n=t.createPositionAfter(i),""):e+i.data,""),range:t.createRange(n,e.end)}}(o.createRange(o.createPositionAt(d,0),u),o),f=s(h),g=Kl(p.start,f.format,o),m=Kl(p.start,f.remove,o);g.length&&m.length&&o.enqueueChange(e=>{if(!1!==i(e,g))for(const t of m.reverse())e.remove(t)})})}function Kl(e,t,n){return t.filter(e=>void 0!==e[0]&&void 0!==e[1]).map(t=>n.createRange(e.getShiftedBy(t[0]),e.getShiftedBy(t[1])))}function Jl(e,t){return(n,i)=>{if(!e.commands.get(t).isEnabled)return!1;const r=e.model.schema.getValidRanges(i,t);for(const e of r)n.setAttribute(t,!0,e);n.removeSelectionAttribute(t)}}class eu extends Hc{constructor(e,t){super(e),this.attributeKey=t}refresh(){const e=this.editor.model,t=e.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,this.attributeKey)}execute(e={}){const t=this.editor.model,n=t.document.selection,i=void 0===e.forceValue?!this.value:e.forceValue;t.change(e=>{if(n.isCollapsed)i?e.setSelectionAttribute(this.attributeKey,!0):e.removeSelectionAttribute(this.attributeKey);else{const r=t.schema.getValidRanges(n.getRanges(),this.attributeKey);for(const t of r)i?e.setAttribute(this.attributeKey,i,t):e.removeAttribute(this.attributeKey,t)}})}_getValueFromFirstAllowedNode(){const e=this.editor.model,t=e.schema,n=e.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);for(const i of n.getRanges())for(const e of i.getItems())if(t.checkAttribute(e,this.attributeKey))return e.hasAttribute(this.attributeKey);return!1}}class tu extends Vc{static get pluginName(){return"BoldEditing"}init(){const e=this.editor;e.model.schema.extend("$text",{allowAttributes:"bold"}),e.model.schema.setAttributeProperties("bold",{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:"bold",view:"strong",upcastAlso:["b",e=>{const t=e.getStyle("font-weight");return t?"bold"==t||Number(t)>=600?{name:!0,styles:["font-weight"]}:void 0:null}]}),e.commands.add("bold",new eu(e,"bold")),e.keystrokes.set("CTRL+B","bold")}}class nu extends Vc{init(){const e=this.editor,t=e.t;e.ui.componentFactory.add("bold",n=>{const i=e.commands.get("bold"),r=new kc(n);return r.set({label:t("Bold"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.187 17H5.773c-.637 0-1.092-.138-1.364-.415-.273-.277-.409-.718-.409-1.323V4.738c0-.617.14-1.062.419-1.332.279-.27.73-.406 1.354-.406h4.68c.69 0 1.288.041 1.793.124.506.083.96.242 1.36.478.341.197.644.447.906.75a3.262 3.262 0 0 1 .808 2.162c0 1.401-.722 2.426-2.167 3.075C15.05 10.175 16 11.315 16 13.01a3.756 3.756 0 0 1-2.296 3.504 6.1 6.1 0 0 1-1.517.377c-.571.073-1.238.11-2 .11zm-.217-6.217H7v4.087h3.069c1.977 0 2.965-.69 2.965-2.072 0-.707-.256-1.22-.768-1.537-.512-.319-1.277-.478-2.296-.478zM7 5.13v3.619h2.606c.729 0 1.292-.067 1.69-.2a1.
16 1.6 0 0 0 .91-.765c.165-.267.247-.566.247-.897 0-.707-.26-1.176-.778-1.409-.519-.232-1.31-.348-2.375-.348H7z"/></svg>',keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),r.bind("isOn","isEnabled").to(i,"value","isEnabled"),this.listenTo(r,"execute",()=>{e.execute("bold"),e.editing.view.focus()}),r})}}class iu extends Vc{static get pluginName(){return"ItalicEditing"}init(){const e=this.editor;e.model.schema.extend("$text",{allowAttributes:"italic"}),e.model.schema.setAttributeProperties("italic",{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:"italic",view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),e.commands.add("italic",new eu(e,"italic")),e.keystrokes.set("CTRL+I","italic")}}class ru extends Vc{init(){const e=this.editor,t=e.t;e.ui.componentFactory.add("italic",n=>{const i=e.commands.get("italic"),r=new kc(n);return r.set({label:t("Italic"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.586 14.633l.021.004c-.036.335.095.655.393.962.082.083.173.15.274.201h1.474a.6.6 0 1 1 0 1.2H5.304a.6.6 0 0 1 0-1.2h1.15c.474-.07.809-.182 1.005-.334.157-.122.291-.32.404-.597l2.416-9.55a1.053 1.053 0 0 0-.281-.823 1.12 1.12 0 0 0-.442-.296H8.15a.6.6 0 0 1 0-1.2h6.443a.6.6 0 1 1 0 1.2h-1.195c-.376.056-.65.155-.823.296-.215.175-.423.439-.623.79l-2.366 9.347z"/></svg>',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),r.bind("isOn","isEnabled").to(i,"value","isEnabled"),this.listenTo(r,"execute",()=>{e.execute("italic"),e.editing.view.focus()}),r})}}class su extends Hc{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(e={}){const t=this.editor.model,n=t.schema,i=Array.from(t.document.selection.getSelectedBlocks()),r=void 0===e.forceValue?!this.value:e.forceValue;t.change(e=>{if(r){const t=i.filter(e=>ou(e)||cu(n,e));this._applyQuote(e,t)}else this._removeQuote(e,i.filter(ou))})}_getValue(){const e=Zl(this.editor.model.document.selection.getSelectedBlocks());return!(!e||!ou(e))}_checkEnabled(){if(this.value)return!0;const e=this.editor.model.schema,t=Zl(this.editor.model.document.selection.getSelectedBlocks());return!!t&&cu(e,t)}_removeQuote(e,t){au(e,t).reverse().forEach(t=>{if(t.start.isAtStart&&t.end.isAtEnd)return void e.unwrap(t.start.parent);if(t.start.isAtStart){const n=e.createPositionBefore(t.start.parent);return void e.move(t,n)}t.end.isAtEnd||e.split(t.end);const n=e.createPositionAfter(t.end.parent);e.move(t,n)})}_applyQuote(e,t){const n=[];au(e,t).reverse().forEach(t=>{let i=ou(t.start);i||(i=e.createElement("blockQuote"),e.wrap(t,i)),n.push(i)}),n.reverse().reduce((t,n)=>t.nextSibling==n?(e.merge(e.createPositionAfter(t)),t):n)}}function ou(e){return"blockQuote"==e.parent.name?e.parent:null}function au(e,t){let n,i=0;const r=[];for(;i<t.length;){const s=t[i],o=t[i+1];n||(n=e.createPositionBefore(s)),o&&s.nextSibling==o||(r.push(e.createRange(n,e.createPositionAfter(s))),n=null),i++}return r}function cu(e,t){const n=e.checkChild(t.parent,"blockQuote"),i=e.checkChild(["$root","blockQuote"],t);return n&&i}class lu extends Vc{static get pluginName(){return"BlockQuoteEditing"}init(){const e=this.editor,t=e.model.schema;e.commands.add("blockQuote",new su(e)),t.register("blockQuote",{allowWhere:"$block",allowContentOf:"$root"}),t.addChildCheck((e,t)=>{if(e.endsWith("blockQuote")&&"blockQuote"==t.name)return!1}),e.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),e.model.document.registerPostFixer(n=>{const i=e.model.document.differ.getChanges();for(const e of i)if("insert"==e.type){const i=e.position.nodeAfter;if(!i)continue;if(i.is("element","blockQuote")&&i.isEmpty)return n.remove(i),!0;if(i.is("element","blockQuote")&&!t.checkChild(e.position,i))return n.unwrap(i),!0;if(i.is("element")){const e=n.createRangeIn(i);for(const i of e.getItems())if(i.is("element","blockQuote")&&!t.checkChild(n.createPositionBefore(i),i))return n.unwrap(i),!0}}else if("remove"==e.type){const t=e.position.parent;if(t.is("element","blockQuote")&&t.isEmpty)return n.remove(t),!0}return!1})}afterInit(){const e=this.editor.commands.get("blockQuote");this.listenTo(this.editor.editing.view.document,"enter",(t,n)=>{const i=this.editor.model.document,r=i.selection.getLastPosition().parent;i.selection.isCollapsed&&r.isEmpty&&e.value&&(this.editor.execute("blockQuote"),this.editor.editing.view.scrollToTheSelection(),n.preventDefault(),t.stop())})}}n(43);class uu extends Vc{init(){const e=this.editor,t=e.t;e.ui.componentFactory.add("blockQuote",n=>{const i=e.commands.get("blockQuote"),r=new kc(n);return r.set({label:t("Block quote"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 10.423a6.5 6.5 0 0 1 6.056-6.408l.038.67C6.448 5.423 5.354 7.663 5.22 10H9c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574zm8 0a6.5 6.5 0 0 1 6.056-6.408l.038.67c-2.646.739-3.74 2.979-3.873 5.315H17c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574z"/></svg>',tooltip:!0,isToggleable:!0}),r.bind("isOn","isEnabled").to(i,"value","isEnabled"),this.listenTo(r,"execute",()=>{e.execute("blockQuote"),e.editing.view.focus()}),r})}}class du extends Vc{static get pluginName(){return"CKFinderUI"}init(){const e=this.editor,t=e.t;e.ui.componentFactory.add("ckfinder",n=>{const i=e.commands.get("ckfinder"),r=new kc(n);return r.set({label:t("Insert image or file"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.627 16.5zm5.873-.196zm0-7.001V8h-13v8.5h4.341c.191.54.457 1.044.785 1.5H2a1.5 1.5 0 0 1-1.5-1.5v-13A1.5 1.5 0 0 1 2 2h4.5a1.5 1.5 0 0 1 1.06.44L9.122 4H16a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 19 8v2.531a6.027 6.027 0 0 0-1.5-1.228zM16 6.5v-1H8.5l-2-2H2v13h1V8a1.5 1.5 0 0 1 1.5-1.5H16z"/><path d="M14.5 19.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zM15 14v-2h-1v2h-2v1h2v2h1v-2h2v-1h-2z"/></svg>',tooltip:!0}),r.bind("isEnabled").to(i),r.on("execute",()=>{e.execute("ckfinder"),e.editing.view.focus()}),r})}}class hu extends rr{observe(e){this.listenTo(e,"load",(e,t)=>{"IMG"==t.target.tagName&&this._fireEvents(t)},{useCapture:!0})}_fireEvents(e){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",e))}}class pu{constructor(){this._stack=[]}add(e,t){const n=this._stack,i=n[0];this._insertDescriptor(e);const r=n[0];i===r||fu(i,r)||this.fire("change:top",{oldDescriptor:i,newDescriptor:r,writer:t})}remove(e,t){const n=this._stack,i=n[0];this._removeDescriptor(e);const r=n[0];i===r||fu(i,r)||this.fire("change:top",{oldDescriptor:i,newDescriptor:r,writer:t})}_insertDescriptor(e){const t=this._stack,n=t.findIndex(t=>t.id===e.id);if(fu(e,t[n]))return;n>-1&&t.splice(n,1);let i=0;for(;t[i]&&gu(t[i],e);)i++;t.splice(i,0,e)}_removeDescriptor(e){const t=this._stack,n=t.findIndex(t=>t.id===e);n>-1&&t.splice(n,1)}}function fu(e,t){return e&&t&&e.priority==t.priority&&mu(e.classes)==mu(t.classes)}function gu(e,t){return e.priority>t.priority||!(e.priority<t.priority)&&mu(e.classes)>mu(t.classes)}function mu(e){return Array.isArray(e)?e.sort().join(","):e}Tt(pu,bt),n(45);const bu=oc("px"),yu=Gi.document.body;
1class vu extends Ka{constructor(e){super(e);const t=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class"),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",t.to("position",e=>"ck-balloon-panel_"+e),t.if("isVisible","ck-balloon-panel_visible"),t.if("withArrow","ck-balloon-panel_with-arrow"),t.to("class")],style:{top:t.to("top",bu),left:t.to("left",bu)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(e){this.show();const t=vu.defaultPositions,n=Object.assign({},{element:this.element,positions:[t.southArrowNorth,t.southArrowNorthMiddleWest,t.southArrowNorthMiddleEast,t.southArrowNorthWest,t.southArrowNorthEast,t.northArrowSouth,t.northArrowSouthMiddleWest,t.northArrowSouthMiddleEast,t.northArrowSouthWest,t.northArrowSouthEast],limiter:yu,fitInViewport:!0},e),i=vu._getOptimalPosition(n),r=parseInt(i.left),s=parseInt(i.top);Object.assign(this,{top:s,left:r,position:i.name})}pin(e){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(e):this._stopPinning()},this._startPinning(e),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(e){this.attachTo(e);const t=_u(e.target),n=e.limiter?_u(e.limiter):yu;this.listenTo(Gi.document,"scroll",(i,r)=>{const s=r.target,o=t&&s.contains(t),a=n&&s.contains(n);!o&&!a&&t&&n||this.attachTo(e)},{useCapture:!0}),this.listenTo(Gi.window,"resize",()=>{this.attachTo(e)})}_stopPinning(){this.stopListening(Gi.document,"scroll"),this.stopListening(Gi.window,"resize")}}function _u(e){return ot(e)?e:Nr(e)?e.commonAncestorContainer:"function"==typeof e?_u(e()):null}function wu(e,t){return e.top-t.height-vu.arrowVerticalOffset}function ku(e){return e.bottom+vu.arrowVerticalOffset}function Cu(e,t,n){return e&&Tu(e)&&!n.isInline(t)}function Su(e){return e.getAttribute("widget-type-around")}function Tu(e){return!!e.is("element")&&!!e.getCustomProperty("widget")}function Pu(e,t,n={}){if(!e.is("containerElement"))throw new ft.b("widget-to-widget-wrong-element-type: The element passed to toWidget() must be a container element instance.",null,{element:e});return t.setAttribute("contenteditable","false",e),t.addClass("ck-widget",e),t.setCustomProperty("widget",!0,e),e.getFillerOffset=Iu,n.label&&function(e,t,n){n.setCustomProperty("widgetLabel",t,e)}(e,n.label,t),n.hasSelectionHandle&&function(e,t){const n=t.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(e){const t=this.toDomElement(e),n=new _c;return n.set("content",'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M4 0v1H1v3H0V.5A.5.5 0 0 1 .5 0H4zm8 0h3.5a.5.5 0 0 1 .5.5V4h-1V1h-3V0zM4 16H.5a.5.5 0 0 1-.5-.5V12h1v3h3v1zm8 0v-1h3v-3h1v3.5a.5.5 0 0 1-.5.5H12z"/><path fill-opacity=".256" d="M1 1h14v14H1z"/><g class="ck-icon__selected-indicator"><path d="M7 0h2v1H7V0zM0 7h1v2H0V7zm15 0h1v2h-1V7zm-8 8h2v1H7v-1z"/><path fill-opacity=".254" d="M1 1h14v14H1z"/></g></svg>'),n.render(),t.appendChild(n.element),t});t.insert(t.createPositionAt(e,0),n),t.addClass(["ck-widget_with-selection-handle"],e)}(e,t),Ou(e,t,(e,t,n)=>n.addClass(i(t.classes),e),(e,t,n)=>n.removeClass(i(t.classes),e)),e;function i(e){return Array.isArray(e)?e:[e]}}function Ou(e,t,n,i){const r=new pu;r.on("change:top",(t,r)=>{r.oldDescriptor&&i(e,r.oldDescriptor,r.writer),r.newDescriptor&&n(e,r.newDescriptor,r.writer)}),t.setCustomProperty("addHighlight",(e,t,n)=>r.add(t,n),e),t.setCustomProperty("removeHighlight",(e,t,n)=>r.remove(t,n),e)}function xu(e){const t=e.getCustomProperty("widgetLabel");return t?"function"==typeof t?t():t:""}function Au(e,t){return t.addClass(["ck-editor__editable","ck-editor__nested-editable"],e),t.setAttribute("contenteditable",e.isReadOnly?"false":"true",e),e.on("change:isReadOnly",(n,i,r)=>{t.setAttribute("contenteditable",r?"false":"true",e)}),e.on("change:isFocused",(n,i,r)=>
1{r?t.addClass("ck-editor__nested-editable_focused",e):t.removeClass("ck-editor__nested-editable_focused",e)}),e}function Eu(e,t){const n=e.getSelectedElement();if(n){const i=Su(e);if(i)return t.createPositionAt(n,i);if(t.schema.isBlock(n))return t.createPositionAfter(n)}const i=e.getSelectedBlocks().next().value;if(i){if(i.isEmpty)return t.createPositionAt(i,0);const n=t.createPositionAfter(i);return e.focus.isTouching(n)?n:t.createPositionBefore(i)}return e.focus}function Mu(e,t){const n=new Fr(Gi.window),i=n.getIntersection(e),r=t.height+vu.arrowVerticalOffset;if(e.top-r>n.top||e.bottom+r<n.bottom)return null;const s=i||e,o=s.left+s.width/2-t.width/2;return{top:Math.max(e.top,0)+vu.arrowVerticalOffset,left:o,name:"arrow_n"}}function Iu(){return null}function Ru(e){const t=e.getSelectedElement();return t&&function(e){return!!e.getCustomProperty("image")&&Tu(e)}(t)?t:null}function Lu(e){return!!e&&e.is("element","image")}function Du(e,t,n={}){const i=e.createElement("image",n),r=Eu(t.document.selection,t);t.insertContent(i,r),i.parent&&e.setSelection(i,"on")}function ju(e){const t=e.schema,n=e.document.selection;return function(e,t,n){const i=function(e,t){const n=Eu(e,t).parent;return n.isEmpty&&!n.is("element","$root")?n.parent:n}(e,n);return t.checkChild(i,"image")}(n,t,e)&&!function(e,t){const n=e.getSelectedElement();return n&&t.isObject(n)}(n,t)&&function(e){return[...e.focus.getAncestors()].every(e=>!e.is("element","image"))}(n)}function Nu(e){const t=[];for(const n of e.getChildren())t.push(n),n.is("element")&&t.push(...n.getChildren());return t.find(e=>e.is("element","img"))}function Vu(e){return n=>{n.on(`attribute:${e}:image`,t)};function t(e,t,n){if(!n.consumable.consume(t.item,e.name))return;const i=n.writer,r=Nu(n.mapper.toViewElement(t.item));i.setAttribute(t.attributeKey,t.attributeNewValue||"",r)}}vu.arrowHorizontalOffset=25,vu.arrowVerticalOffset=10,vu._getOptimalPosition=gc,vu.defaultPositions={northWestArrowSouthWest:(e,t)=>({top:wu(e,t),left:e.left-vu.arrowHorizontalOffset,name:"arrow_sw"}),northWestArrowSouthMiddleWest:(e,t)=>({top:wu(e,t),left:e.left-.25*t.width-vu.arrowHorizontalOffset,name:"arrow_smw"}),northWestArrowSouth:(e,t)=>({top:wu(e,t),left:e.left-t.width/2,name:"arrow_s"}),northWestArrowSouthMiddleEast:(e,t)=>({top:wu(e,t),left:e.left-.75*t.width+vu.arrowHorizontalOffset,name:"arrow_sme"}),northWestArrowSouthEast:(e,t)=>({top:wu(e,t),left:e.left-t.width+vu.arrowHorizontalOffset,name:"arrow_se"}),northArrowSouthWest:(e,t)=>({top:wu(e,t),left:e.left+e.width/2-vu.arrowHorizontalOffset,name:"arrow_sw"}),northArrowSouthMiddleWest:(e,t)=>({top:wu(e,t),left:e.left+e.width/2-.25*t.width-vu.arrowHorizontalOffset,name:"arrow_smw"}),northArrowSouth:(e,t)=>({top:wu(e,t),left:e.left+e.width/2-t.width/2,name:"arrow_s"}),northArrowSouthMiddleEast:(e,t)=>({top:wu(e,t),left:e.left+e.width/2-.75*t.width+vu.arrowHorizontalOffset,name:"arrow_sme"}),northArrowSouthEast:(e,t)=>({top:wu(e,t),left:e.left+e.width/2-t.width+vu.arrowHorizontalOffset,name:"arrow_se"}),northEastArrowSouthWest:(e,t)=>({top:wu(e,t),left:e.right-vu.arrowHorizontalOffset,name:"arrow_sw"}),northEastArrowSouthMiddleWest:(e,t)=>({top:wu(e,t),left:e.right-.25*t.width-vu.arrowHorizontalOffset,name:"arrow_smw"}),northEastArrowSouth:(e,t)=>({top:wu(e,t),left:e.right-t.width/2,name:"arrow_s"}),northEastArrowSouthMiddleEast:(e,t)=>({top:wu(e,t),left:e.right-.75*t.width+vu.arrowHorizontalOffset,name:"arrow_sme"}),northEastArrowSouthEast:(e,t)=>({top:wu(e,t),left:e.right-t.width+vu.arrowHorizontalOffset,name:"arrow_se"}),southWestArrowNorthWest:(e,t)=>({top:ku(e),left:e.left-vu.arrowHorizontalOffset,name:"arrow_nw"}),southWestArrowNorthMiddleWest:(e,t)=>({top:ku(e),left:e.left-.25*t.width-vu.arrowHorizontalOffset,name:"arrow_nmw"}),southWestArrowNorth:(e,t)=>({top:ku(e),left:e.left-t.width/2,name:"arrow_n"}),southWestArrowNorthMiddleEast:(e,t)=>({top:ku(e),left:e.left-.75*t.width+vu.arrowHorizontalOffset,name:"arrow_nme"}),southWestArrowNorthEast:(e,t)=>({top:ku(e),left:e.left-t.width+vu.arrowHorizontalOffset,name:"arrow_ne"}),southArrowNorthWest:(e,t)=>
1({top:ku(e),left:e.left+e.width/2-vu.arrowHorizontalOffset,name:"arrow_nw"}),southArrowNorthMiddleWest:(e,t)=>({top:ku(e),left:e.left+e.width/2-.25*t.width-vu.arrowHorizontalOffset,name:"arrow_nmw"}),southArrowNorth:(e,t)=>({top:ku(e),left:e.left+e.width/2-t.width/2,name:"arrow_n"}),southArrowNorthMiddleEast:(e,t)=>({top:ku(e),left:e.left+e.width/2-.75*t.width+vu.arrowHorizontalOffset,name:"arrow_nme"}),southArrowNorthEast:(e,t)=>({top:ku(e),left:e.left+e.width/2-t.width+vu.arrowHorizontalOffset,name:"arrow_ne"}),southEastArrowNorthWest:(e,t)=>({top:ku(e),left:e.right-vu.arrowHorizontalOffset,name:"arrow_nw"}),southEastArrowNorthMiddleWest:(e,t)=>({top:ku(e),left:e.right-.25*t.width-vu.arrowHorizontalOffset,name:"arrow_nmw"}),southEastArrowNorth:(e,t)=>({top:ku(e),left:e.right-t.width/2,name:"arrow_n"}),southEastArrowNorthMiddleEast:(e,t)=>({top:ku(e),left:e.right-.75*t.width+vu.arrowHorizontalOffset,name:"arrow_nme"}),southEastArrowNorthEast:(e,t)=>({top:ku(e),left:e.right-t.width+vu.arrowHorizontalOffset,name:"arrow_ne"})};class zu extends Hc{refresh(){this.isEnabled=ju(this.editor.model)}execute(e){const t=this.editor.model;t.change(n=>{const i=Array.isArray(e.source)?e.source:[e.source];for(const e of i)Du(n,t,{src:e})})}}class Fu extends Vc{static get pluginName(){return"ImageEditing"}init(){const e=this.editor,t=e.model.schema,n=e.t,i=e.conversion;e.editing.view.addObserver(hu),t.register("image",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["alt","src","srcset"]}),i.for("dataDowncast").elementToElement({model:"image",view:(e,t)=>Bu(t)}),i.for("editingDowncast").elementToElement({model:"image",view:(e,t)=>{return i=Bu(t),r=t,s=n("image widget"),r.setCustomProperty("image",!0,i),Pu(i,r,{label:function(){const e=Nu(i).getAttribute("alt");return e?`${e} ${s}`:s}});var i,r,s}}),i.for("downcast").add(Vu("src")).add(Vu("alt")).add(function(){return t=>{t.on("attribute:srcset:image",e)};function e(e,t,n){if(!n.consumable.consume(t.item,e.name))return;const i=n.writer,r=Nu(n.mapper.toViewElement(t.item));if(null===t.attributeNewValue){const e=t.attributeOldValue;e.data&&(i.removeAttribute("srcset",r),i.removeAttribute("sizes",r),e.width&&i.removeAttribute("width",r))}else{const e=t.attributeNewValue;e.data&&(i.setAttribute("srcset",e.data,r),i.setAttribute("sizes","100vw",r),e.width&&i.setAttribute("width",e.width,r))}}}()),i.for("upcast").elementToElement({view:{name:"img",attributes:{src:!0}},model:(e,t)=>t.createElement("image",{src:e.getAttribute("src")})}).attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:e=>{const t={data:e.getAttribute("srcset")};return e.hasAttribute("width")&&(t.width=e.getAttribute("width")),t}}}).add(function(){return t=>{t.on("element:figure",e)};function e(e,t,n){if(!n.consumable.test(t.viewItem,{name:!0,classes:"image"}))return;const i=Nu(t.viewItem);if(!i||!i.hasAttribute("src")||!n.consumable.test(i,{name:!0}))return;const r=n.convertItem(i,t.modelCursor),s=Zl(r.modelRange.getItems());s&&(n.convertChildren(t.viewItem,n.writer.createPositionAt(s,0)),t.modelRange=r.modelRange,t.modelCursor=r.modelCursor)}}()),e.commands.add("imageInsert",new zu(e))}}function Bu(e){const t=e.createEmptyElement("img"),n=e.createContainerElement("figure",{class:"image"});return e.insert(e.createPositionAt(n,0),t),n}class qu extends _r{constructor(e){super(e),this.domEventType="mousedown"}onDomEvent(e){this.fire(e.type,e)}}class Uu extends Vc{static get pluginName(){return"TwoStepCaretMovement"}constructor(e){super(e),this.attributes=new Set,this._overrideUid=null}init(){const e=this.editor,t=e.locale,n=e.model.document.selection;this.listenTo(e.editing.view.document,"keydown",(e,i)=>{if(!n.isCollapsed)return;if(i.shiftKey||i.altKey||i.ctrlKey)return;const r=i.keyCode==ri.arrowright,s=i.keyCode==ri.arrowleft;if(!r&&!s)return;const o=t.contentLanguageDirection;let a=!1;a="ltr"===o&&r||"rtl"===o&&s?this._handleForwardMovement(i):this._handleBackwardMovement(i),!0===a&&e.stop()},{priority:pt.get("high")+1}),this._isNextGravityRestorationSkipped=!1,this.listenTo(n,"change:range",(e,t)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!t.directChange&&Yu(n.getFirstPosition(),this.attributes)||this._restoreGravity())})}registerAttribute(e){this.attributes.add(e)}_handleForwardMovement(e){const t=this.attributes,n=this.editor.model.document.selection,i=n.getFirstPosition();return!this._isGravityOverridden&&(!i.isAtStart||!Hu(n,t))&&(Yu(i,t)?(Gu(e),this._overrideGravity(),!0):void 0)}_handleBackwardMovement(e){const t=this.attributes,n=this.editor.model,i=n.document.selection,r=i.getFirstPosition();return this._isGravityOverridden?(Gu(e),this._restoreGravity(),Wu(n,t,r),!0):r.isAtStart?!!Hu(i,t)&&(Gu(e),Wu(n,t,r),!0):function(e,t){return Yu(e.getShiftedBy(-1),t)}(r,t)?r.isAtEnd&&!Hu(i,t)&&Yu(r,t)?(Gu(e),Wu(n,t,r),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):void 0}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change(e=>e.overrideSelectionGravity())}_restoreGravity(){this.editor.model.change(e=>{e.restoreSelectionGravity(this._overrideUid),this._overrideUid=null})}}function Hu(e,t){for(const n of t)if(e.hasAttribute(n))return!0;return!1}function Wu(e,t,n){const i=n.nodeBefore;e.change(e=>{i?e.setSelectionAttribute(i.getAttributes()):e.removeSelectionAttribute(t)})}function Gu(e){e.preventDefault()}function Yu(e,t){const{nodeBefore:n,nodeAfter:i}=e;for(const r of t){const e=n?n.getAttribute(r):void 0;if((i?i.getAttribute(r):void 0)!==e)return!0}return!1}function $u(e,t,n,i){return i.createRange(Zu(e,t,n,!0,i),Zu(e,t,n,!1,i))}function Zu(e,t,n,i,r){let s=e.textNode||(i?e.nodeBefore:e.nodeAfter),o=null;for(;s&&s.getAttribute(t)==n;)o=s,s=i?s.previousSibling:s.nextSibling;return o?r.createPositionAt(o,i?"before":"after"):e}class Qu{constructor(){this._definitions=new Set}get length(){return this._definitions.size}
1add(e){Array.isArray(e)?e.forEach(e=>this._definitions.add(e)):this._definitions.add(e)}getDispatcher(){return e=>{e.on("attribute:linkHref",(e,t,n)=>{if(!n.consumable.test(t.item,"attribute:linkHref"))return;const i=n.writer,r=i.document.selection;for(const s of this._definitions){const e=i.createAttributeElement("a",s.attributes,{priority:5});i.setCustomProperty("link",!0,e),s.callback(t.attributeNewValue)?t.item.is("selection")?i.wrap(r.getFirstRange(),e):i.wrap(n.mapper.toViewRange(t.range),e):i.unwrap(n.mapper.toViewRange(t.range),e)}},{priority:"high"})}}getDispatcherForLinkedImage(){return e=>{e.on("attribute:linkHref:image",(e,t,n)=>{const i=n.mapper.toViewElement(t.item),r=Array.from(i.getChildren()).find(e=>"a"===e.name);for(const s of this._definitions){const e=Nt(s.attributes);if(s.callback(t.attributeNewValue))for(const[t,i]of e)"class"===t?n.writer.addClass(i,r):n.writer.setAttribute(t,i,r);else for(const[t,i]of e)"class"===t?n.writer.removeClass(i,r):n.writer.removeAttribute(t,r)}})}}}var Xu=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),Ku=function(e){return Xu.test(e)},Ju="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",ed="\\ud83c[\\udffb-\\udfff]",td="[^\\ud800-\\udfff]",nd="(?:\\ud83c[\\udde6-\\uddff]){2}",id="[\\ud800-\\udbff][\\udc00-\\udfff]",rd="(?:"+Ju+"|"+ed+")?",sd="[\\ufe0e\\ufe0f]?"+rd+"(?:\\u200d(?:"+[td,nd,id].join("|")+")[\\ufe0e\\ufe0f]?"+rd+")*",od="(?:"+[td+Ju+"?",Ju,nd,id,"[\\ud800-\\udfff]"].join("|")+")",ad=RegExp(ed+"(?="+ed+")|"+od+sd,"g"),cd=function(e){e=Xt(e);var t=Ku(e)?function(e){return Ku(e)?function(e){return e.match(ad)||[]}(e):function(e){return e.split("")}(e)}(e):void 0,n=t?t[0]:e.charAt(0),i=t?function(e,t,n){var i=e.length;return tn(e,1,n=void 0===n?i:n)}(t).join(""):e.slice(1);return n.toUpperCase()+i};const ld=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,ud=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;function dd(e,t){const n=t.createAttributeElement("a",{href:e},{priority:5});return t.setCustomProperty("link",!0,n),n}function hd(e){return function(e){return e.replace(ld,"").match(ud)}(e=String(e))?e:"#"}function pd(e,t){return!!e&&e.is("element","image")&&t.checkAttribute("image","linkHref")}class fd extends Hc{constructor(e){super(e),this.manualDecorators=new Pt,this.automaticDecorators=new Qu}restoreManualDecoratorStates(){for(const e of this.manualDecorators)e.value=this._getDecoratorStateFromModel(e.id)}refresh(){const e=this.editor.model,t=e.document,n=Zl(t.selection.getSelectedBlocks());pd(n,e.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttribute(n,"linkHref")):(this.value=t.selection.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,"linkHref"));for(const i of this.manualDecorators)i.value=this._getDecoratorStateFromModel(i.id)}execute(e,t={}){const n=this.editor.model,i=n.document.selection,r=[],s=[];for(const o in t)t[o]?r.push(o):s.push(o);n.change(t=>{if(i.isCollapsed){const o=i.getFirstPosition();if(i.hasAttribute("linkHref")){const a=$u(o,"linkHref",i.getAttribute("linkHref"),n);t.setAttribute("linkHref",e,a),r.forEach(e=>{t.setAttribute(e,!0,a)}),s.forEach(e=>{t.removeAttribute(e,a)}),t.setSelection(t.createPositionAfter(a.end.nodeBefore))}else if(""!==e){const s=Nt(i.getAttributes());s.set("linkHref",e),r.forEach(e=>{s.set(e,!0)});const a=t.createText(e,s);n.insertContent(a,o),t.setSelection(t.createPositionAfter(a))}["linkHref",...r,...s].forEach(e=>{t.removeSelectionAttribute(e)})}else{const o=n.schema.getValidRanges(i.getRanges(),"linkHref"),a=[];for(const e of i.getSelectedBlocks())n.schema.checkAttribute(e,"linkHref")&&a.push(t.createRangeOn(e));const c=a.slice();for(const e of o)this._isRangeToUpdate(e,a)&&c.push(e);for(const n of c)t.setAttribute("linkHref",e,n),r.forEach(e=>{t.setAttribute(e,!0,n)}),s.forEach(e=>{t.removeAttribute(e,n)})}})}_getDecoratorStateFromModel(e){const t=this.editor.model,n=t.document,i=Zl(n.selection.getSelectedBlocks());return pd(i,t.schema)?i.getAttribute(e):n.selection.getAttribute(e)}_isRangeToUpdate(e,t){for(const n of t)if(n.containsRange(e))return!1;return!0}}class gd extends Hc{refresh(){const e=this.editor.model,t=e.document,n=Zl(t.selection.getSelectedBlocks());this.isEnabled=pd(n,e.schema)?e.schema.checkAttribute(n,"linkHref"):e.schema.checkAttributeInSelection(t.selection,"linkHref")}execute(){const e=this.editor.model,t=e.document.selection,n=this.editor.commands.get("link");e.change(i=>{const r=t.isCollapsed?[$u(t.getFirstPosition(),"linkHref",t.getAttribute("linkHref"),e)]:t.getRanges();for(const e of r)if(i.removeAttribute("linkHref",e),n)for(const t of n.manualDecorators)i.removeAttribute(t.id,e)})}}class md{constructor({id:e,label:t,attributes:n,defaultValue:i}){this.id=e,this.set("value"),this.defaultValue=i,this.label=t,this.attributes=n}}Tt(md,An),n(47);const bd=/^(https?:)?\/\//;class yd extends Vc{static get pluginName(){return"LinkEditing"}static get requires(){return[Uu,ml,Uc]}constructor(e){super(e),e.config.define("link",{addTargetToExternalLinks:!1})}init(){const e=this.editor;e.model.schema.extend("$text",{allowAttributes:"linkHref"}),e.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:dd}),e.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(e,t)=>dd(hd(e),t)}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:e=>e.getAttribute("href")}}),e.commands.add("link",new fd(e)),e.commands.add("unlink",new gd(e));const t=function(e,t){const n={"Open in a new tab":e("Open in a new tab"),Downloadable:e("Downloadable")};
1return t.forEach(e=>(e.label&&n[e.label]&&(e.label=n[e.label]),e)),t}(e.t,function(e){const t=[];if(e)for(const[n,i]of Object.entries(e)){const e=Object.assign({},i,{id:"link"+cd(n)});t.push(e)}return t}(e.config.get("link.decorators")));this._enableAutomaticDecorators(t.filter(e=>"automatic"===e.mode)),this._enableManualDecorators(t.filter(e=>"manual"===e.mode)),e.plugins.get(Uu).registerAttribute("linkHref"),function(e,t,n,i){const r=e.editing.view,s=new Set;r.document.registerPostFixer(n=>{const r=e.model.document.selection;let o=!1;if(r.hasAttribute(t)){const a=$u(r.getFirstPosition(),t,r.getAttribute(t),e.model),c=e.editing.mapper.toViewRange(a);for(const e of c.getItems())e.is("element","a")&&!e.hasClass(i)&&(n.addClass(i,e),s.add(e),o=!0)}return o}),e.conversion.for("editingDowncast").add(e=>{function t(){r.change(e=>{for(const t of s.values())e.removeClass(i,t),s.delete(t)})}e.on("insert",t,{priority:"highest"}),e.on("remove",t,{priority:"highest"}),e.on("attribute",t,{priority:"highest"}),e.on("selection",t,{priority:"highest"})})}(e,"linkHref",0,"ck-link_selected"),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink()}_enableAutomaticDecorators(e){const t=this.editor,n=t.commands.get("link").automaticDecorators;t.config.get("link.addTargetToExternalLinks")&&n.add({id:"linkIsExternal",mode:"automatic",callback:e=>bd.test(e),attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(e),n.length&&t.conversion.for("downcast").add(n.getDispatcher())}_enableManualDecorators(e){if(!e.length)return;const t=this.editor,n=t.commands.get("link").manualDecorators;e.forEach(e=>{t.model.schema.extend("$text",{allowAttributes:e.id}),n.add(new md(e)),t.conversion.for("downcast").attributeToElement({model:e.id,view:(t,i)=>{if(t){const t=n.get(e.id).attributes,r=i.createAttributeElement("a",t,{priority:5});return i.setCustomProperty("link",!0,r),r}}}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:n.get(e.id).attributes},model:{key:e.id}})})}_enableInsertContentSelectionAttributesFixer(){const e=this.editor,t=e.model,n=t.document.selection,i=e.commands.get("link");this.listenTo(t,"insertContent",()=>{const e=n.anchor.nodeBefore,r=n.anchor.nodeAfter;n.hasAttribute("linkHref")&&e&&e.hasAttribute("linkHref")&&(r&&r.hasAttribute("linkHref")||t.change(e=>{vd(e,i.manualDecorators)}))},{priority:"low"})}_enableClickingAfterLink(){const e=this.editor,t=e.commands.get("link");e.editing.view.addObserver(qu);let n=!1;this.listenTo(e.editing.view.document,"mousedown",()=>{n=!0}),this.listenTo(e.editing.view.document,"selectionChange",()=>{if(!n)return;n=!1;const i=e.model.document.selection;if(!i.isCollapsed)return;if(!i.hasAttribute("linkHref"))return;const r=i.getFirstPosition(),s=$u(r,"linkHref",i.getAttribute("linkHref"),e.model);(r.isTouching(s.start)||r.isTouching(s.end))&&e.model.change(e=>{vd(e,t.manualDecorators)})})}_enableTypingOverLink(){const e=this.editor;let t,n;this.listenTo(e.editing.view.document,"delete",()=>{n=!0},{priority:"high"}),this.listenTo(e.model,"deleteContent",()=>{const i=e.model.document.selection;i.isCollapsed||(n?n=!1:_d(e)&&function(e){const t=e.document.selection,n=t.getFirstPosition(),i=t.getLastPosition(),r=n.nodeAfter;return!!r&&!!r.is("$text")&&!!r.hasAttribute("linkHref")&&(r===(i.textNode||i.nodeBefore)||$u(n,"linkHref",r.getAttribute("linkHref"),e).containsRange(e.createRange(n,i),!0))}(e.model)&&(t=i.getAttributes()))},{priority:"high"}),this.listenTo(e.model,"insertContent",(i,[r])=>{n=!1,_d(e)&&t&&(e.model.change(e=>{for(const[n,i]of t)e.setAttribute(n,i,r)}),t=null)},{priority:"high"})}_handleDeleteContentAfterLink(){const e=this.editor,t=e.model,n=t.document.selection,i=e.editing.view,r=e.commands.get("link");let s=!1,o=!1;this.listenTo(i.document,"delete",(e,t)=>{o=t.domEvent.keyCode===ri.backspace},{priority:"high"}),this.listenTo(t,"deleteContent",()=>{s=!1;const e=n.getFirstPosition(),i=n.getAttribute("linkHref");if(!i)return;const r=$u(e,"linkHref",i,t);s=r.containsPosition(e)||r.end.isEqual(e)},{priority:"high"}),this.listenTo(t,"deleteContent",()=>{o&&(o=!1,s||e.model.enqueueChange(e=>{vd(e,r.manualDecorators)}))},{priority:"low"})}}function vd(e,t){e.removeSelectionAttribute("linkHref");for(const n of t)e.removeSelectionAttribute(n.id)}function _d(e){return e.plugins.get("Input").isInput(e.model.change(e=>e.batch))}class wd extends ql{static get pluginName(){return"Notification"}init(){this.on("show:warning",(e,t)=>{window.alert(t.message)},{priority:"lowest"})}showSuccess(e,t={}){this._showNotification({message:e,type:"success",namespace:t.namespace,title:t.title})}showInfo(e,t={}){this._showNotification({message:e,type:"info",namespace:t.namespace,title:t.title})}showWarning(e,t={}){this._showNotification({message:e,type:"warning",namespace:t.namespace,title:t.title})}_showNotification(e){this.fire("show:"+e.type+(e.namespace?":"+e.namespace:""),{message:e.message,type:e.type,title:e.title||""})}}class kd extends Hc{constructor(e){super(e),this.stopListening(this.editor.model.document,"change"),this.listenTo(this.editor.model.document,"change",()=>this.refresh(),{priority:"low"})}refresh(){const e=this.editor.commands.get("imageInsert"),t=this.editor.commands.get("link");this.isEnabled=e.isEnabled||t.isEnabled}execute(){const e=this.editor,t=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=t&&"modal"!=t)throw new ft.b('ckfinder-unknown-openerMethod: The openerMethod config option must by "popup" or "modal".',e);const n=this.editor.config.get("ckfinder.options")||{};n.chooseFiles=!0;const i=n.onInit;n.language||(n.language=e.locale.uiLanguage),n.onInit=t=>{i&&i(t),t.on("files:choose",n=>{const i=n.data.files.toArray(),r=i.filter(e=>!e.isImage()),s=i.filter(e=>e.isImage());for(const t of r)e.execute("link",t.getUrl());const o=[];for(const e of s){const n=e.getUrl();o.push(n||t.request("file:getProxyUrl",{file:e}))}o.length&&Cd(e,o)}),t.on("file:choose:resizedImage",t=>{const n=t.data.resizedUrl;if(n)Cd(e,[n]);else{const t=e.plugins.get("Notification"),n=e.locale.t;t.showWarning(n("Could not obtain resized image URL."),{title:n("Selecting resized image failed"),namespace:"ckfinder"})}})},window.CKFinder[t](n)}}function Cd(e,t){if(e.commands.get("imageInsert").isEnabled)e.execute("imageInsert",{source:t});else{const t=e.plugins.get("Notification"),n=e.locale.t;t.showWarning(n("Could not insert image at the current position."),{title:n("Inserting image failed"),namespace:"ckfinder"})}}class Sd extends Vc{static get pluginName(){return"CKFinderEditing"}static get requires(){return[wd,Fu,yd]}init(){const e=this.editor;e.commands.add("ckfinder",new kd(e))}}const Td=/^data:(\S*?);base64,/;class Pd{constructor(e,t,n){if(!e)throw new ft.b("fileuploader-missing-file: File must be provided as the first argument",null);if(!t)throw new ft.b("fileuploader-missing-token: Token must be provided as the second argument.",null);if(!n)throw new ft.b("fileuploader-missing-api-address: Api address must be provided as the third argument.",null);this.file=function(e){if("string"!=typeof e)return!1;const t=e.match(Td);return!(!t||!t.length)}(e)?function(e,t=512){try{const n=e.match(Td)[1],i=atob(e.replace(Td,"")),r=[];for(let e=0;e<i.length;e+=t){const n=i.slice(e,e+t),s=new Array(n.length);for(let e=0;e<n.length;e++)s[e]=n.charCodeAt(e);r.push(new Uint8Array(s))}return new Blob(r,{type:n})}catch(e){throw new ft.b("fileuploader-decoding-image-data-error: Problem with decoding Base64 image data.",null)}}(e):e,this._token=t,this._apiAddress=n}onProgress(e){return this.on("progress",(t,n)=>e(n)),this}onError(e){return this.once("error",(t,n)=>e(n)),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){const e=new XMLHttpRequest;e.open("POST",this._apiAddress),e.setRequestHeader("Authorization",this._token.value),e.responseType="json",this.xhr=e}_attachXHRListeners(){const e=this,t=this.xhr;function n(t){return()=>e.fire("error",t)}t.addEventListener("error",n("Network Error")),t.addEventListener("abort",n("Abort")),t.upload&&t.upload.addEventListener("progress",e=>{e.lengthComputable&&this.fire("progress",{total:e.total,uploaded:e.loaded})}),t.addEventListener("load",()=>{const e=t.status,n=t.response;if(e<200||e>299)return this.fire("error",n.message||n.error)})}_sendRequest(){const e=new FormData,t=this.xhr;return e.append("file",this.file),new Promise((n,i)=>{t.addEventListener("load",()=>{const e=t.status,r=t.response;return e<200||e>299?i(r.message?new ft.b("fileuploader-uploading-data-failed: Uploading file failed.",this,{message:r.message}):r.error):n(r)}),t.addEventListener("error",()=>i(new Error("Network Error"))),t.addEventListener("abort",()=>i(new Error("Abort"))),t.send(e)})}}Tt(Pd,bt);const Od={refreshInterval:36e5,autoRefresh:!0};class xd{constructor(e,t=Od){if(!e)throw new ft.b("token-missing-token-url: A `tokenUrl` must be provided as the first constructor argument.",this);this.set("value",t.initValue),this._refresh="function"==typeof e?e:()=>
1{return t=e,new Promise((e,n)=>{const i=new XMLHttpRequest;i.open("GET",t),i.addEventListener("load",()=>{const t=i.status,r=i.response;return t<200||t>299?n(new ft.b("token-cannot-download-new-token: Cannot download new token from the provided url.",null)):e(r)}),i.addEventListener("error",()=>n(new Error("Network Error"))),i.addEventListener("abort",()=>n(new Error("Abort"))),i.send()});var t},this._options=Object.assign({},Od,t)}init(){return new Promise((e,t)=>{this._options.autoRefresh&&this._startRefreshing(),this.value?e(this):this.refreshToken().then(e).catch(t)})}refreshToken(){return this._refresh().then(e=>this.set("value",e)).then(()=>this)}destroy(){this._stopRefreshing()}_startRefreshing(){this._refreshInterval=setInterval(()=>this.refreshToken(),this._options.refreshInterval)}_stopRefreshing(){clearInterval(this._refreshInterval)}static create(e,t=Od){return new xd(e,t).init()}}Tt(xd,An);var Ad=xd;class Ed extends ql{static get pluginName(){return"CloudServices"}init(){const e=this.context.config.get("cloudServices")||{};for(const t in e)this[t]=e[t];if(this.tokenUrl)return this.token=new Ed.Token(this.tokenUrl),this.token.init();this.token=null}destroy(){super.destroy(),this.token&&this.token.destroy()}}Ed.Token=Ad;class Md extends Vc{static get requires(){return[Wl,Ed]}init(){const e=this.editor,t=e.plugins.get(Ed),n=t.token;n&&(this._uploadGateway=new Md._UploadGateway(n,t.uploadUrl),e.plugins.get(Wl).createUploadAdapter=e=>new Id(this._uploadGateway,e))}}class Id{constructor(e,t){this.uploadGateway=e,this.loader=t}upload(){return this.loader.file.then(e=>(this.fileUploader=this.uploadGateway.upload(e),this.fileUploader.on("progress",(e,t)=>{this.loader.uploadTotal=t.total,this.loader.uploaded=t.uploaded}),this.fileUploader.send()))}abort(){this.fileUploader.abort()}}Md._UploadGateway=class{constructor(e,t){if(!e)throw new ft.b("uploadgateway-missing-token: Token must be provided.",null);if(!t)throw new ft.b("uploadgateway-missing-api-address: Api address must be provided.",null);this._token=e,this._apiAddress=t}upload(e){return new Pd(e,this._token,this._apiAddress)}},n(49);const Rd=["before","after"],Ld=(new DOMParser).parseFromString('<svg viewBox="0 0 10 8" xmlns="http://www.w3.org/2000/svg"><polyline points="8.05541992 0.263427734 8.05541992 4.23461914 1.28417969 4.23461914" transform="translate(1,0)"></polyline><line x1="0" y1="4.21581031" x2="2" y2="2.17810059" transform="translate(1, 0)"></line><line x1="0" y1="6.21581031" x2="2" y2="4.17810059" transform="translate(2, 5.196955) scale(1, -1) translate(-1, -5.196955)"></line></svg>\n',"image/svg+xml").firstChild;class Dd extends Vc{static get pluginName(){return"WidgetTypeAround"}constructor(e){super(e),this._currentFakeCaretModelElement=null}init(){const e=this.editor,t=e.editing.view;this.on("change:isEnabled",(n,i,r)=>{t.change(e=>{for(const n of t.document.roots)r?e.removeClass("ck-widget__type-around_disabled",n):e.addClass("ck-widget__type-around_disabled",n)}),r||e.model.change(e=>{e.removeSelectionAttribute("widget-type-around")})}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration()}destroy(){this._currentFakeCaretModelElement=null}_insertParagraph(e,t){const n=this.editor,i=n.editing.view;n.execute("insertParagraph",{position:n.model.createPositionAt(e,t)}),i.focus(),i.scrollToTheSelection()}_listenToIfEnabled(e,t,n,i){this.listenTo(e,t,(...e)=>{this.isEnabled&&n(...e)},i)}_insertParagraphAccordingToFakeCaretPosition(){const e=this.editor.model.document.selection,t=Su(e);if(!t)return!1;const n=e.getSelectedElement();return this._insertParagraph(n,t),!0}_enableTypeAroundUIInjection(){const e=this.editor,t=e.model.schema,n=e.locale.t,i={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};e.editing.downcastDispatcher.on("insert",(e,n,r)=>{const s=r.mapper.toViewElement(n.item);Cu(s,n.item,t)&&function(e,t,n){const i=e.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(e){const n=this.toDomElement(e);return function(e,t){for(const n of Rd){const i=new Ra({tag:"div",attributes:{class:["ck","ck-widget__type-around__button","ck-widget__type-around__button_"+n],title:t[n]},children:[e.ownerDocument.importNode(Ld,!0)]});e.appendChild(i.render())}}(n,t),function(e){const t=new Ra({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});e.appendChild(t.render())}(n),n});e.insert(e.createPositionAt(n,"end"),i)}(r.writer,i,s)},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const e=this.editor,t=e.model,n=t.document.selection,i=t.schema;function r(e){return"ck-widget_type-around_show-fake-caret_"+e}this._listenToIfEnabled(e.editing.view.document,"keydown",(e,t)=>{ci(t.keyCode)&&this._handleArrowKeyPress(e,t)},{priority:pt.get("high")+10}),this._listenToIfEnabled(n,"change:range",(t,n)=>{n.directChange&&e.model.change(e=>{e.removeSelectionAttribute("widget-type-around")})}),this._listenToIfEnabled(t.document,"change:data",()=>{const t=n.getSelectedElement();t&&Cu(e.editing.mapper.toViewElement(t),t,i)||e.model.change(e=>{e.removeSelectionAttribute("widget-type-around")})}),this._listenToIfEnabled(e.editing.downcastDispatcher,"selection",(e,t,n)=>{const s=n.writer;if(this._currentFakeCaretModelElement){const e=n.mapper.toViewElement(this._currentFakeCaretModelElement);e&&(s.removeClass(Rd.map(r),e),this._currentFakeCaretModelElement=null)}const o=t.selection.getSelectedElement();if(!o)return;const a=n.mapper.toViewElement(o);if(!Cu(a,o,i))return;const c=Su(t.selection);c&&(s.addClass(r(c),a),this._currentFakeCaretModelElement=o)}),this._listenToIfEnabled(e.ui.focusTracker,"change:isFocused",(t,n,i)=>{i||e.model.change(e=>{e.removeSelectionAttribute("widget-type-around")})})}_handleArrowKeyPress(e,t){const n=this.editor,i=n.model,r=i.document.selection,s=i.schema,o=n.editing.view,a=ui(t.keyCode,n.locale.contentLanguageDirection),c=o.document.selection.getSelectedElement();let l;Cu(c,n.editing.mapper.toModelElement(c),s)?l=this._handleArrowKeyPressOnSelectedWidget(a):r.isCollapsed&&(l=this._handleArrowKeyPressWhenSelectionNextToAWidget(a)),l&&(t.preventDefault(),e.stop())}_handleArrowKeyPressOnSelectedWidget(e){const t=this.editor.model,n=Su(t.document.selection);return t.change(t=>n?n!==(e?"after":"before")&&(t.removeSelectionAttribute("widget-type-around"),!0):(t.setSelectionAttribute("widget-type-around",e?"after":"before"),!0))}_handleArrowKeyPressWhenSelectionNextToAWidget(e){const t=this.editor,n=t.model,i=n.schema,r=t.plugins.get("Widget"),s=r._getObjectElementNextToSelection(e);return!!Cu(t.editing.mapper.toViewElement(s),s,i)&&(n.change(t=>{r._setSelectionOverElement(s),t.setSelectionAttribute("widget-type-around",e?"before":"after")}),!0)}_enableInsertingParagraphsOnButtonClick(){const e=this.editor,t=e.editing.view;this._listenToIfEnabled(t.document,"mousedown",(n,i)=>{const r=i.domTarget.closest(".ck-widget__type-around__button");if(!r)return;const s=function(e){return e.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(r),o=function(e,t){const n=e.closest(".ck-widget");return t.mapDomToView(n)}(r,t.domConverter),a=e.editing.mapper.toModelElement(o);this._insertParagraph(a,s),i.preventDefault(),n.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const e=this.editor,t=e.editing.view;this._listenToIfEnabled(t.document,"enter",(n,i)=>{const r=t.document.selection.getSelectedElement(),s=e.editing.mapper.toModelElement(r),o=e.model.schema;let a;this._insertParagraphAccordingToFakeCaretPosition()?a=!0:Cu(r,s,o)&&(this._insertParagraph(s,i.isSoft?"before":"after"),a=!0),a&&(i.preventDefault(),n.stop())})}_enableInsertingParagraphsOnTypingKeystroke(){const e=[ri.enter,ri.delete,ri.backspace];this._listenToIfEnabled(this.editor.editing.view.document,"keydown",(t,n)=>{e.includes(n.keyCode)||ul(n)||this._insertParagraphAccordingToFakeCaretPosition()},{priority:pt.get("high")+1})}_enableDeleteIntegration(){const e=this.editor,t=e.model,n=t.schema;this._listenToIfEnabled(e.editing.view.document,"delete",(i,r)=>{const s=Su(t.document.selection);if(!s)return;const o=r.direction,a=t.document.selection.getSelectedElement(),c="forward"==o;if("before"===s===c)e.execute("delete",{selection:t.createSelection(a,"on")});else{const i=n.getNearestSelectionRange(t.createPositionAt(a,s),o);if(i)if(i.isCollapsed){const r=t.createSelection(i.start);if(t.modifySelection(r,{direction:o}),r.focus.isEqual(i.start)){const e=function(e,t){let n=t;for(const i of t.getAncestors({parentFirst:!0})){if(i.childCount>1||e.isLimit(i))break;n=i}return n}(n,i.start.parent);t.deleteContent(t.createSelection(e,"on"),{doNotAutoparagraph:!0})}else t.change(t=>{t.setSelection(i),e.execute(c?"forwardDelete":"delete")})}else t.change(t=>{t.setSelection(i),e.execute(c?"forwardDelete":"delete")})}r.preventDefault(),i.stop()},{priority:pt.get("high")+1})}_enableInsertContentIntegration(){const e=this.editor.model,t=e.document.selection;this._listenToIfEnabled(this.editor.model,"insertContent",(n,[i,r])=>
1{if(r&&!r.is("documentSelection"))return;const s=Su(t);return s?(n.stop(),e.change(n=>{const r=t.getSelectedElement(),o=e.createPositionAt(r,s),a=n.createSelection(o),c=e.insertContent(i,a);return n.setSelection(a),c})):void 0},{priority:"high"})}}n(51);class jd extends Vc{static get pluginName(){return"Widget"}static get requires(){return[Dd]}init(){const e=this.editor.editing.view,t=e.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",(e,t,n)=>{this._clearPreviouslySelectedWidgets(n.writer);const i=n.writer,r=i.document.selection,s=r.getSelectedElement();let o=null;for(const a of r.getRanges())for(const e of a){const t=e.item;Tu(t)&&!Nd(t,o)&&(i.addClass("ck-widget_selected",t),this._previouslySelected.add(t),o=t,t==s&&i.setSelection(r.getRanges(),{fake:!0,label:xu(s)}))}},{priority:"low"}),e.addObserver(qu),this.listenTo(t,"mousedown",(...e)=>this._onMousedown(...e)),this.listenTo(t,"keydown",(...e)=>{this._handleSelectionChangeOnArrowKeyPress(...e)},{priority:"high"}),this.listenTo(t,"keydown",(...e)=>{this._preventDefaultOnArrowKeyPress(...e)},{priority:pt.get("high")-20}),this.listenTo(t,"delete",(e,t)=>{this._handleDelete("forward"==t.direction)&&(t.preventDefault(),e.stop())},{priority:"high"})}_onMousedown(e,t){const n=this.editor,i=n.editing.view,r=i.document;let s=t.target;if(function(e){for(;e;){if(e.is("editableElement")&&!e.is("rootElement"))return!0;if(Tu(e))return!1;e=e.parent}return!1}(s)){if((ei||Jn)&&t.domEvent.detail>=3){const e=n.editing.mapper,i=s.is("attributeElement")?s.findAncestor(e=>!e.is("attributeElement")):s,r=e.toModelElement(i);t.preventDefault(),this.editor.model.change(e=>{e.setSelection(r,"in")})}return}if(!Tu(s)&&(s=s.findAncestor(Tu),!s))return;t.preventDefault(),r.isFocused||i.focus();const o=n.editing.mapper.toModelElement(s);this._setSelectionOverElement(o)}_handleSelectionChangeOnArrowKeyPress(e,t){const n=t.keyCode;if(!ci(n))return;const i=this.editor.model,r=i.schema,s=i.document.selection,o=s.getSelectedElement(),a=ui(n,this.editor.locale.contentLanguageDirection);if(o&&r.isObject(o)){const n=a?s.getLastPosition():s.getFirstPosition(),o=r.getNearestSelectionRange(n,a?"forward":"backward");return void(o&&(i.change(e=>{e.setSelection(o)}),t.preventDefault(),e.stop()))}if(!s.isCollapsed)return;const c=this._getObjectElementNextToSelection(a);c&&r.isObject(c)&&(this._setSelectionOverElement(c),t.preventDefault(),e.stop())}_preventDefaultOnArrowKeyPress(e,t){if(!ci(t.keyCode))return;const n=this.editor.model,i=n.schema,r=n.document.selection.getSelectedElement();r&&i.isObject(r)&&(t.preventDefault(),e.stop())}_handleDelete(e){if(this.editor.isReadOnly)return;const t=this.editor.model.document.selection;if(!t.isCollapsed)return;const n=this._getObjectElementNextToSelection(e);return n?(this.editor.model.change(e=>{let i=t.anchor.parent;for(;i.isEmpty;){const t=i;i=t.parent,e.remove(t)}this._setSelectionOverElement(n)}),!0):void 0}_setSelectionOverElement(e){this.editor.model.change(t=>{t.setSelection(t.createRangeOn(e))})}_getObjectElementNextToSelection(e){const t=this.editor.model,n=t.schema,i=t.createSelection(t.document.selection);t.modifySelection(i,{direction:e?"forward":"backward"});const r=e?i.focus.nodeBefore:i.focus.nodeAfter;return r&&n.isObject(r)?r:null}_clearPreviouslySelectedWidgets(e){for(const t of this._previouslySelected)e.removeClass("ck-widget_selected",t);this._previouslySelected.clear()}}function Nd(e,t){return!!t&&Array.from(e.getAncestors()).includes(t)}class Vd extends Hc{refresh(){const e=this.editor.model.document.selection.getSelectedElement();this.isEnabled=Lu(e),this.value=!(!Lu(e)||!e.hasAttribute("alt"))&&e.getAttribute("alt")}execute(e){const t=this.editor.model,n=t.document.selection.getSelectedElement();t.change(t=>{t.setAttribute("alt",e.newValue,n)})}}class zd extends Vc{static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new Vd(this.editor))}}n(53);class Fd extends Ka{constructor(e,t){super(e);const n="ck-labeled-field-view-"+ht(),i="ck-labeled-field-view-status-"+ht();this.fieldView=t(this,n,i),this.set("label"),this.set("isEnabled",!0),this.set("errorText",null),this.set("infoText",null),this.set("class"),this.labelView=this._createLabelView(n),this.statusView=this._createStatusView(i),this.bind("_statusText").to(this,"errorText",this,"infoText",(e,t)=>e||t);const r=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",r.to("class"),r.if("isEnabled","ck-disabled",e=>!e)]},children:[this.labelView,this.fieldView,this.statusView]})}_createLabelView(e){const t=new nc(this.locale);return t.for=e,t.bind("text").to(this,"label"),t}_createStatusView(e){const t=new Ka(this.locale),n=this.bindTemplate;return t.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",n.if("errorText","ck-labeled-field-view__status_error"),n.if("_statusText","ck-hidden",e=>!e)],id:e,role:n.if("errorText","alert")},children:[{text:n.to("_statusText")}]}),t}focus(){this.fieldView.focus()}}n(55);
1class Bd extends Ka{constructor(e){super(e),this.set("value"),this.set("id"),this.set("placeholder"),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById");const t=this.bindTemplate;this.setTemplate({tag:"input",attributes:{type:"text",class:["ck","ck-input","ck-input-text",t.if("hasError","ck-error")],id:t.to("id"),placeholder:t.to("placeholder"),readonly:t.to("isReadOnly"),"aria-invalid":t.if("hasError",!0),"aria-describedby":t.to("ariaDescribedById")},on:{input:t.to("input")}})}render(){super.render();const e=e=>{this.element.value=e||0===e?e:""};e(this.value),this.on("change:value",(t,n,i)=>{e(i)})}select(){this.element.select()}focus(){this.element.focus()}}function qd(e,t,n){const i=new Bd(e.locale);return i.set({id:t,ariaDescribedById:n}),i.bind("isReadOnly").to(e,"isEnabled",e=>!e),i.bind("hasError").to(e,"errorText",e=>!!e),i.on("input",()=>{e.errorText=null}),i}function Ud({view:e}){e.listenTo(e.element,"submit",(t,n)=>{n.preventDefault(),e.fire("submit")},{useCapture:!0})}var Hd='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.972 16.615a.997.997 0 0 1-.744-.292l-4.596-4.596a1 1 0 1 1 1.414-1.414l3.926 3.926 9.937-9.937a1 1 0 0 1 1.414 1.415L7.717 16.323a.997.997 0 0 1-.745.292z"/></svg>',Wd='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.591 10.177l4.243 4.242a1 1 0 0 1-1.415 1.415l-4.242-4.243-4.243 4.243a1 1 0 0 1-1.414-1.415l4.243-4.242L4.52 5.934A1 1 0 0 1 5.934 4.52l4.243 4.243 4.242-4.243a1 1 0 1 1 1.415 1.414l-4.243 4.243z"/></svg>';n(57);
1class Gd extends Ka{constructor(e){super(e);const t=this.locale.t;this.focusTracker=new Sa,this.keystrokes=new ga,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(t("Save"),Hd,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(t("Cancel"),Wd,"ck-button-cancel","cancel"),this._focusables=new Ia,this._focusCycler=new lc({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),this.keystrokes.listenTo(this.element),Ud({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)})}_createButton(e,t,n,i){const r=new kc(this.locale);return r.set({label:e,icon:t,tooltip:!0}),r.extendTemplate({attributes:{class:n}}),i&&r.delegate("execute").to(this,i),r}_createLabeledInputView(){const e=this.locale.t,t=new Fd(this.locale,qd);return t.label=e("Text alternative"),t.fieldView.placeholder=e("Text alternative"),t}}n(59),n(61);const Yd=oc("px");class $d extends Vc{static get pluginName(){return"ContextualBalloon"}constructor(e){super(e),this.positionLimiter=()=>{const e=this.editor.editing.view,t=e.document.selection.editableElement;return t?e.domConverter.mapViewToDom(t.root):null},this.set("visibleView",null),this.view=new vu(e.locale),e.ui.view.body.add(this.view),e.ui.focusTracker.add(this.view.element),this._viewToStack=new Map,this._idToStack=new Map,this.set("_numberOfStacks",0),this.set("_singleViewMode",!1),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}hasView(e){return Array.from(this._viewToStack.keys()).includes(e)}add(e){if(this.hasView(e.view))throw new ft.b("contextualballoon-add-view-exist: Cannot add configuration of the same view twice.",[this,e]);const t=e.stackId||"main";if(!this._idToStack.has(t))return this._idToStack.set(t,new Map([[e.view,e]])),this._viewToStack.set(e.view,this._idToStack.get(t)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!e.singleViewMode||this.showStack(t));const n=this._idToStack.get(t);e.singleViewMode&&this.showStack(t),n.set(e.view,e),this._viewToStack.set(e.view,n),n===this._visibleStack&&this._showView(e)}remove(e){if(!this.hasView(e))throw new ft.b("contextualballoon-remove-view-not-exist: Cannot remove the configuration of a non-existent view.",[this,e]);const t=this._viewToStack.get(e);this._singleViewMode&&this.visibleView===e&&(this._singleViewMode=!1),this.visibleView===e&&(1===t.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(t.values())[t.size-2])),1===t.size?(this._idToStack.delete(this._getStackId(t)),this._numberOfStacks=this._idToStack.size):t.delete(e),this._viewToStack.delete(e)}updatePosition(e){e&&(this._visibleStack.get(this.visibleView).position=e),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(e){this.visibleStack=e;const t=this._idToStack.get(e);if(!t)throw new ft.b("contextualballoon-showstack-stack-not-exist: Cannot show a stack that does not exist.",this);this._visibleStack!==t&&this._showView(Array.from(t.values()).pop())}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(e){return Array.from(this._idToStack.entries()).find(t=>t[1]===e)[0]}_showNextStack(){const e=Array.from(this._idToStack.values());let t=e.indexOf(this._visibleStack)+1;e[t]||(t=0),this.showStack(this._getStackId(e[t]))}_showPrevStack(){const e=Array.from(this._idToStack.values());let t=e.indexOf(this._visibleStack)-1;e[t]||(t=e.length-1),this.showStack(this._getStackId(e[t]))}_createRotatorView(){const e=new Zd(this.editor.locale),t=this.editor.locale.t;return this.view.content.add(e),e.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(e,t)=>!t&&e>1),e.on("change:isNavigationVisible",()=>this.updatePosition(),{priority:"low"}),e.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(e,n)=>{if(n<2)return"";const i=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return t("%0 of %1",[i,n])}),e.buttonNextView.on("execute",()=>{e.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()}),e.buttonPrevView.on("execute",()=>{e.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()}),e}_createFakePanelsView(){const e=new Qd(this.editor.locale,this.view);return e.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(e,t)=>!t&&e>=2?Math.min(e-1,2):0),e.listenTo(this.view,"change:top",()=>e.updatePosition()),e.listenTo(this.view,"change:left",()=>e.updatePosition()),this.editor.ui.view.body.add(e),e}_showView({view:e,balloonClassName:t="",withArrow:n=!0,singleViewMode:i=!1}){this.view.class=t,this.view.withArrow=n,this._rotatorView.showView(e),this.visibleView=e,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),i&&(this._singleViewMode=!0)}_getBalloonPosition(){let e=Array.from(this._visibleStack.values()).pop().position;return e&&!e.limiter&&(e=Object.assign({},e,{limiter:this.positionLimiter})),e}}
1class Zd extends Ka{constructor(e){super(e);const t=e.t,n=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new Sa,this.buttonPrevView=this._createButtonView(t("Previous"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.463 5.187a.888.888 0 1 1 1.254 1.255L9.16 10l3.557 3.557a.888.888 0 1 1-1.254 1.255L7.26 10.61a.888.888 0 0 1 .16-1.382l4.043-4.042z"/></svg>'),this.buttonNextView=this._createButtonView(t("Next"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.537 14.813a.888.888 0 1 1-1.254-1.255L10.84 10 7.283 6.442a.888.888 0 1 1 1.254-1.255L12.74 9.39a.888.888 0 0 1-.16 1.382l-4.043 4.042z"/></svg>'),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",n.to("isNavigationVisible",e=>e?"":"ck-hidden")]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:n.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}showView(e){this.hideView(),this.content.add(e)}hideView(){this.content.clear()}_createButtonView(e,t){const n=new kc(this.locale);return n.set({label:e,icon:t,tooltip:!0}),n}}class Qd extends Ka{constructor(e,t){super(e);const n=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=t,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",n.to("numberOfPanels",e=>e?"":"ck-hidden")],style:{top:n.to("top",Yd),left:n.to("left",Yd),width:n.to("width",Yd),height:n.to("height",Yd)}},children:this.content}),this.on("change:numberOfPanels",(e,t,n,i)=>{n>i?this._addPanels(n-i):this._removePanels(i-n),this.updatePosition()})}_addPanels(e){for(;e--;){const e=new Ka;e.setTemplate({tag:"div"}),this.content.add(e),this.registerChild(e)}}_removePanels(e){for(;e--;){const e=this.content.last;this.content.remove(e),this.deregisterChild(e),e.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:e,left:t}=this._balloonPanelView,{width:n,height:i}=new Fr(this._balloonPanelView.element);Object.assign(this,{top:e,left:t,width:n,height:i})}}}function Xd(e){const t=e.editing.view,n=vu.defaultPositions;return{target:t.domConverter.viewToDom(t.document.selection.getSelectedElement()),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast]}}class Kd extends Vc{static get requires(){return[$d]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton(),this._createForm()}destroy(){super.destroy(),this._form.destroy()}_createButton(){const e=this.editor,t=e.t;e.ui.componentFactory.add("imageTextAlternative",n=>{const i=e.commands.get("imageTextAlternative"),r=new kc(n);return r.set({label:t("Change image text alternative"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.085 6.22L2.943 4.078a.75.75 0 1 1 1.06-1.06l2.592 2.59A11.094 11.094 0 0 1 10 5.068c4.738 0 8.578 3.101 8.578 5.083 0 1.197-1.401 2.803-3.555 3.887l1.714 1.713a.75.75 0 0 1-.09 1.138.488.488 0 0 1-.15.084.75.75 0 0 1-.821-.16L6.17 7.304c-.258.11-.51.233-.757.365l6.239 6.24-.006.005.78.78c-.388.094-.78.166-1.174.215l-1.11-1.11h.011L4.55 8.197a7.2 7.2 0 0 0-.665.514l-.112.098 4.897 4.897-.005.006 1.276 1.276a10.164 10.164 0 0 1-1.477-.117l-.479-.479-.009.009-4.863-4.863-.022.031a2.563 2.563 0 0 0-.124.2c-.043.077-.08.158-.108.241a.534.534 0 0 0-.028.133.29.29 0 0 0 .008.072.927.927 0 0 0 .082.226c.067.133.145.26.234.379l3.242 3.365.025.01.59.623c-3.265-.918-5.59-3.155-5.59-4.668 0-1.194 1.448-2.838 3.663-3.93zm7.07.531a4.632 4.632 0 0 1 1.108 5.992l.345.344.046-.018a9.313 9.313 0 0 0 2-1.112c.256-.187.5-.392.727-.613.137-.134.27-.277.392-.431.072-.091.141-.185.203-.286.057-.093.107-.19.148-.292a.72.72 0 0 0 .036-.12.29.29 0 0 0 .008-.072.492.492 0 0 0-.028-.133.999.999 0 0 0-.036-.096 2.165 2.165 0 0 0-.071-.145 2.917 2.917 0 0 0-.125-.2 3.592 3.592 0 0 0-.263-.335 5.444 5.444 0 0 0-.53-.523 7.955 7.955 0 0 0-1.054-.768 9.766 9.766 0 0 0-1.879-.891c-.337-.118-.68-.219-1.027-.301zm-2.85.21l-.069.002a.508.508 0 0 0-.254.097.496.496 0 0 0-.104.679.498.498 0 0 0 .326.199l.045.005c.091.003.181.003.272.012a2.45 2.45 0 0 1 2.017 1.513c.024.061.043.125.069.185a.494.494 0 0 0 .45.287h.008a.496.496 0 0 0 .35-.158.482.482
10 0 0 .13-.335.638.638 0 0 0-.048-.219 3.379 3.379 0 0 0-.36-.723 3.438 3.438 0 0 0-2.791-1.543l-.028-.001h-.013z"/></svg>',tooltip:!0}),r.bind("isEnabled").to(i,"isEnabled"),this.listenTo(r,"execute",()=>{this._showForm()}),r})}_createForm(){const e=this.editor,t=e.editing.view.document;this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new Gd(e.locale),this._form.render(),this.listenTo(this._form,"submit",()=>{e.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)}),this.listenTo(this._form,"cancel",()=>{this._hideForm(!0)}),this._form.keystrokes.set("Esc",(e,t)=>{this._hideForm(!0),t()}),this.listenTo(e.ui,"update",()=>{Ru(t.selection)?this._isVisible&&function(e){const t=e.plugins.get("ContextualBalloon");if(Ru(e.editing.view.document.selection)){const n=Xd(e);t.updatePosition(n)}}(e):this._hideForm(!0)}),Ac({emitter:this._form,activator:()=>this._isVisible,contextElements:[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;const e=this.editor,t=e.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._isInBalloon||this._balloon.add({view:this._form,position:Xd(e)}),n.fieldView.value=n.fieldView.element.value=t.value||"",this._form.labeledInput.fieldView.select()}_hideForm(e){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),e&&this.editor.editing.view.focus())}get _isVisible(){return this._balloon.visibleView===this._form}get _isInBalloon(){return this._balloon.hasView(this._form)}}class Jd extends Vc{static get requires(){return[zd,Kd]}static get pluginName(){return"ImageTextAlternative"}}n(63);class eh extends Vc{static get requires(){return[Fu,jd,Jd]}static get pluginName(){return"Image"}}class th extends Ka{constructor(e){super(e),this.buttonView=new kc(e),this._fileInputView=new nh(e),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[this.buttonView,this._fileInputView]}),this.buttonView.on("execute",()=>{this._fileInputView.open()})}focus(){this.buttonView.focus()}}class nh extends Ka{constructor(e){super(e),this.set("acceptedType"),this.set("allowMultipleFiles",!1);const t=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:t.to("acceptedType"),multiple:t.to("allowMultipleFiles")},on:{change:t.to(()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""})}})}open(){this.element.click()}}function ih(e){const t=e.map(e=>e.replace("+","\\+"));return new RegExp(`^image\\/(${t.join("|")})$`)}class rh extends Vc{init(){const e=this.editor,t=e.t;e.ui.componentFactory.add("imageUpload",n=>{const i=new th(n),r=e.commands.get("imageUpload"),s=e.config.get("image.upload.types"),o=ih(s);return i.set({acceptedType:s.map(e=>"image/"+e).join(","),allowMultipleFiles:!0}),i.buttonView.set({label:t("Insert image"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.91 10.54c.26-.23.64-.21.88.03l3.36 3.14 2.23-2.06a.64.64 0 0 1 .87 0l2.52 2.97V4.5H3.2v10.12l3.71-4.08zm10.27-7.51c.6 0 1.09.47 1.09 1.05v11.84c0 .59-.49 1.06-1.09 1.06H2.79c-.6 0-1.09-.47-1.09-1.06V4.08c0-.58.49-1.05 1.1-1.05h14.38zm-5.22 5.56a1.96 1.96 0 1 1 3.4-1.96 1.96 1.96 0 0 1-3.4 1.96z"/></svg>',tooltip:!0}),i.buttonView.bind("isEnabled").to(r),i.on("done",(t,n)=>{const i=Array.from(n).filter(e=>o.test(e.type));i.length&&e.execute("imageUpload",{file:i})}),i})}}n(65),n(67),n(69);class sh extends Vc{constructor(e){super(e),this.placeholder="data:image/svg+xml;utf8,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 250"><rect rx="4"/></svg>')}init(){this.editor.editing.downcastDispatcher.on("attribute:uploadStatus:image",(...e)=>this.uploadStatusChange(...e))}
1uploadStatusChange(e,t,n){const i=this.editor,r=t.item,s=r.getAttribute("uploadId");if(!n.consumable.consume(t.item,e.name))return;const o=i.plugins.get(Wl),a=s?t.attributeNewValue:null,c=this.placeholder,l=i.editing.mapper.toViewElement(r),u=n.writer;if("reading"==a)return oh(l,u),void ah(c,l,u);if("uploading"==a){const e=o.loaders.get(s);return oh(l,u),void(e?(ch(l,u),function(e,t,n,i){const r=function(e){const t=e.createUIElement("div",{class:"ck-progress-bar"});return e.setCustomProperty("progressBar",!0,t),t}(t);t.insert(t.createPositionAt(e,"end"),r),n.on("change:uploadedPercent",(e,t,n)=>{i.change(e=>{e.setStyle("width",n+"%",r)})})}(l,u,e,i.editing.view),function(e,t,n){if(n.data){const i=Nu(e);t.setAttribute("src",n.data,i)}}(l,u,e)):ah(c,l,u))}"complete"==a&&o.loaders.get(s)&&function(e,t,n){const i=t.createUIElement("div",{class:"ck-image-upload-complete-icon"});t.insert(t.createPositionAt(e,"end"),i),setTimeout(()=>{n.change(e=>e.remove(e.createRangeOn(i)))},3e3)}(l,u,i.editing.view),function(e,t){uh(e,t,"progressBar")}(l,u),ch(l,u),function(e,t){t.removeClass("ck-appear",e)}(l,u)}}function oh(e,t){e.hasClass("ck-appear")||t.addClass("ck-appear",e)}function ah(e,t,n){t.hasClass("ck-image-upload-placeholder")||n.addClass("ck-image-upload-placeholder",t);const i=Nu(t);i.getAttribute("src")!==e&&n.setAttribute("src",e,i),lh(t,"placeholder")||n.insert(n.createPositionAfter(i),function(e){const t=e.createUIElement("div",{class:"ck-upload-placeholder-loader"});return e.setCustomProperty("placeholder",!0,t),t}(n))}function ch(e,t){e.hasClass("ck-image-upload-placeholder")&&t.removeClass("ck-image-upload-placeholder",e),uh(e,t,"placeholder")}function lh(e,t){for(const n of e.getChildren())if(n.getCustomProperty(t))return n}function uh(e,t,n){const i=lh(e,n);i&&t.remove(t.createRangeOn(i))}class dh{constructor(e){this.document=e}createDocumentFragment(e){return new mi(this.document,e)}createElement(e,t,n){return new _n(this.document,e,t,n)}createText(e){return new Dt(this.document,e)}clone(e,t=!1){return e._clone(t)}appendChild(e,t){return t._appendChild(e)}insertChild(e,t,n){return n._insertChild(e,t)}removeChildren(e,t,n){return n._removeChildren(e,t)}remove(e){const t=e.parent;return t?this.removeChildren(t.getChildIndex(e),1,t):[]}replace(e,t){const n=e.parent;if(n){const i=n.getChildIndex(e);return this.removeChildren(i,1,n),this.insertChild(i,t,n),!0}return!1}unwrapElement(e){const t=e.parent;if(t){const n=t.getChildIndex(e);this.remove(e),this.insertChild(n,e.getChildren(),t)}}rename(e,t){const n=new _n(this.document,e,t.getAttributes(),t.getChildren());return this.replace(t,n)?n:null}setAttribute(e,t,n){n._setAttribute(e,t)}removeAttribute(e,t){t._removeAttribute(e)}addClass(e,t){t._addClass(e)}removeClass(e,t){t._removeClass(e)}setStyle(e,t,n){y(e)&&void 0===n&&(n=t),n._setStyle(e,t)}removeStyle(e,t){t._removeStyle(e)}setCustomProperty(e,t,n){n._setCustomProperty(e,t)}removeCustomProperty(e,t){return t._removeCustomProperty(e)}createPositionAt(e,t){return zn._createAt(e,t)}createPositionAfter(e){return zn._createAfter(e)}createPositionBefore(e){return zn._createBefore(e)}createRange(e,t){return new Fn(e,t)}createRangeOn(e){return Fn._createOn(e)}createRangeIn(e){return Fn._createIn(e)}createSelection(e,t,n){return new Un(e,t,n)}}class hh extends Hc{refresh(){this.isEnabled=ju(this.editor.model)}execute(e){const t=this.editor,n=t.model,i=t.plugins.get(Wl);n.change(t=>{const r=Array.isArray(e.file)?e.file:[e.file];for(const e of r)ph(t,n,i,e)})}}function ph(e,t,n,i){const r=n.createLoader(i);r&&Du(e,t,{uploadId:r.id})}class fh extends Vc{static get requires(){return[Wl,wd,Uc]}static get pluginName(){return"ImageUploadEditing"}constructor(e){super(e),e.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}})}init(){const e=this.editor,t=e.model.document,n=e.model.schema,i=e.conversion,r=e.plugins.get(Wl),s=ih(e.config.get("image.upload.types"));n.extend("image",{allowAttributes:["uploadId","uploadStatus"]}),e.commands.add("imageUpload",new hh(e)),i.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(e.editing.view.document,"clipboardInput",(t,n)=>{if(i=n.dataTransfer,Array.from(i.types).includes("text/html")&&""!==i.getData("text/html"))return;var i;const r=Array.from(n.dataTransfer.files).filter(e=>!!e&&s.test(e.type)),o=n.targetRanges.map(t=>e.editing.mapper.toModelRange(t));e.model.change(n=>{n.setSelection(o),r.length&&(t.stop(),e.model.enqueueChange("default",()=>{e.execute("imageUpload",{file:r})}))})}),this.listenTo(e.plugins.get(Uc),"inputTransformation",(t,n)=>{const i=Array.from(e.editing.view.createRangeIn(n.content)).filter(e=>{return!(!(t=e.item).is("element","img")||!t.getAttribute("src"))&&(t.getAttribute("src").match(/^data:image\/\w+;base64,/g)||t.getAttribute("src").match(/^blob:/g))&&!e.item.getAttribute("uploadProcessed");var t}).map(e=>
1{return{promise:(t=e.item,new Promise((e,n)=>{const i=t.getAttribute("src");fetch(i).then(e=>e.blob()).then(t=>{const n=function(e,t){return e.type?e.type:t.match(/data:(image\/\w+);base64/)?t.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}(t,i),r=n.replace("image/",""),s=new File([t],"image."+r,{type:n});e(s)}).catch(n)})),imageElement:e.item};var t});if(!i.length)return;const s=new dh(e.editing.view.document);for(const e of i){s.setAttribute("uploadProcessed",!0,e.imageElement);const t=r.createLoader(e.promise);t&&(s.setAttribute("src","",e.imageElement),s.setAttribute("uploadId",t.id,e.imageElement))}}),e.editing.view.document.on("dragover",(e,t)=>{t.preventDefault()}),t.on("change",()=>{const n=t.differ.getChanges({includeChangesInGraveyard:!0});for(const t of n)if("insert"==t.type&&"$text"!=t.name){const n=t.position.nodeAfter,i="$graveyard"==t.position.root.rootName;for(const t of gh(e,n)){const e=t.getAttribute("uploadId");if(!e)continue;const n=r.loaders.get(e);n&&(i?n.abort():"idle"==n.status&&this._readAndUpload(n,t))}}})}_readAndUpload(e,t){const n=this.editor,i=n.model,r=n.locale.t,s=n.plugins.get(Wl),o=n.plugins.get(wd);return i.enqueueChange("transparent",e=>{e.setAttribute("uploadStatus","reading",t)}),e.read().then(()=>{const r=e.upload();if(ei){const e=Nu(n.editing.mapper.toViewElement(t));n.editing.view.once("render",()=>{if(!e.parent)return;const t=n.editing.view.domConverter.mapViewToDom(e.parent);if(!t)return;const i=t.style.display;t.style.display="none",t._ckHack=t.offsetHeight,t.style.display=i})}return i.enqueueChange("transparent",e=>{e.setAttribute("uploadStatus","uploading",t)}),r}).then(e=>{i.enqueueChange("transparent",n=>{n.setAttributes({uploadStatus:"complete",src:e.default},t),this._parseAndSetSrcsetAttributeOnImage(e,t,n)}),a()}).catch(n=>{if("error"!==e.status&&"aborted"!==e.status)throw n;"error"==e.status&&n&&o.showWarning(n,{title:r("Upload failed"),namespace:"upload"}),a(),i.enqueueChange("transparent",e=>{e.remove(t)})});function a(){i.enqueueChange("transparent",e=>{e.removeAttribute("uploadId",t),e.removeAttribute("uploadStatus",t)}),s.destroyLoader(e)}}_parseAndSetSrcsetAttributeOnImage(e,t,n){let i=0;const r=Object.keys(e).filter(e=>{const t=parseInt(e,10);if(!isNaN(t))return i=Math.max(i,t),!0}).map(t=>`${e[t]} ${t}w`).join(", ");""!=r&&n.setAttribute("srcset",{data:r,width:i},t)}}function gh(e,t){return Array.from(e.model.createRangeOn(t)).filter(e=>e.item.is("element","image")).map(e=>e.item)}class mh extends Vc{static get pluginName(){return"ImageUpload"}static get requires(){return[fh,rh,sh]}}class bh extends Hc{refresh(){const e=this.editor.model,t=Zl(e.document.selection.getSelectedBlocks());this.value=!!t&&t.is("element","paragraph"),this.isEnabled=!!t&&yh(t,e.schema)}execute(e={}){const t=this.editor.model,n=t.document;t.change(i=>{const r=(e.selection||n.selection).getSelectedBlocks();for(const e of r)!e.is("element","paragraph")&&yh(e,t.schema)&&i.rename(e,"paragraph")})}}function yh(e,t){return t.checkChild(e.parent,"paragraph")&&!t.isObject(e)}class vh extends Hc{execute(e){const t=this.editor.model;let n=e.position;t.change(e=>{const i=e.createElement("paragraph");if(!t.schema.checkChild(n.parent,i)){const r=t.schema.findAllowedParent(n,i);if(!r)return;n=e.split(n,r).position}t.insertContent(i,n),e.setSelection(i,"in")})}}class _h extends Vc{static get pluginName(){return"Paragraph"}init(){const e=this.editor,t=e.model,n=e.data;e.commands.add("paragraph",new bh(e)),e.commands.add("insertParagraph",new vh(e)),t.schema.register("paragraph",{inheritAllFrom:"$block"}),e.conversion.elementToElement({model:"paragraph",view:"p"}),e.conversion.for("upcast").elementToElement({model:(e,t)=>_h.paragraphLikeElements.has(e.name)?e.isEmpty?null:t.createElement("paragraph"):null,converterPriority:"low"}),n.upcastDispatcher.on("element",(e,t,n)=>{n.consumable.test(t.viewItem,{name:t.viewItem.name})&&kh(t.viewItem,t.modelCursor,n.schema)&&Object.assign(t,wh(t.viewItem,t.modelCursor,n))},{priority:"low"}),n.upcastDispatcher.on("text",(e,t,n)=>{t.modelRange||kh(t.viewItem,t.modelCursor,n.schema)&&Object.assign(t,wh(t.viewItem,t.modelCursor,n))},{priority:"lowest"}),t.document.registerPostFixer(e=>this._autoparagraphEmptyRoots(e)),e.data.on("ready",()=>{t.enqueueChange("transparent",e=>this._autoparagraphEmptyRoots(e))},{priority:"lowest"})}_autoparagraphEmptyRoots(e){const t=this.editor.model;for(const n of t.document.getRootNames()){const i=t.document.getRoot(n);if(i.isEmpty&&"$graveyard"!=i.rootName&&t.schema.checkChild(i,"paragraph"))return e.insertElement("paragraph",i),!0}}}
1function wh(e,t,n){const i=n.writer.createElement("paragraph");return n.writer.insert(i,t),n.convertItem(e,n.writer.createPositionAt(i,0))}function kh(e,t,n){const i=n.createContext(t);return!!n.checkChild(i,"paragraph")&&!!n.checkChild(i.push("paragraph"),e)}_h.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td"]);class Ch extends Hc{constructor(e,t){super(e),this.modelElements=t}refresh(){const e=Zl(this.editor.model.document.selection.getSelectedBlocks());this.value=!!e&&this.modelElements.includes(e.name)&&e.name,this.isEnabled=!!e&&this.modelElements.some(t=>Sh(e,t,this.editor.model.schema))}execute(e){const t=this.editor.model,n=t.document,i=e.value;t.change(e=>{const r=Array.from(n.selection.getSelectedBlocks()).filter(e=>Sh(e,i,t.schema));for(const t of r)t.is("element",i)||e.rename(t,i)})}}function Sh(e,t,n){return n.checkChild(e.parent,t)&&!n.isObject(e)}class Th extends Vc{static get pluginName(){return"HeadingEditing"}constructor(e){super(e),e.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[_h]}init(){const e=this.editor,t=e.config.get("heading.options"),n=[];for(const i of t)"paragraph"!==i.model&&(e.model.schema.register(i.model,{inheritAllFrom:"$block"}),e.conversion.elementToElement(i),n.push(i.model));this._addDefaultH1Conversion(e),e.commands.add("heading",new Ch(e,n))}afterInit(){const e=this.editor,t=e.commands.get("enter"),n=e.config.get("heading.options");t&&this.listenTo(t,"afterExecute",(t,i)=>{const r=e.model.document.selection.getFirstPosition().parent;n.some(e=>r.is("element",e.model))&&!r.is("element","paragraph")&&0===r.childCount&&i.writer.rename(r,"paragraph")})}_addDefaultH1Conversion(e){e.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:pt.get("low")+1})}}class Ph{constructor(e,t){t&&Sn(this,t),e&&this.set(e)}}Tt(Ph,An),n(11);class Oh extends Vc{init(){const e=this.editor,t=e.t,n=function(e){const t=e.t,n={Paragraph:t("Paragraph"),"Heading 1":t("Heading 1"),"Heading 2":t("Heading 2"),"Heading 3":t("Heading 3"),"Heading 4":t("Heading 4"),"Heading 5":t("Heading 5"),"Heading 6":t("Heading 6")};return e.config.get("heading.options").map(e=>{const t=n[e.title];return t&&t!=e.title&&(e.title=t),e})}(e),i=t("Choose heading"),r=t("Heading");e.ui.componentFactory.add("heading",t=>{const s={},o=new Pt,a=e.commands.get("heading"),c=e.commands.get("paragraph"),l=[a];for(const e of n){const t={type:"button",model:new Ph({label:e.title,class:e.class,withText:!0})};"paragraph"===e.model?(t.model.bind("isOn").to(c,"value"),t.model.set("commandName","paragraph"),l.push(c)):(t.model.bind("isOn").to(a,"value",t=>t===e.model),t.model.set({commandName:"heading",commandValue:e.model})),o.add(t),s[e.model]=e.title}const u=Ec(t);return Mc(u,o),u.buttonView.set({isOn:!1,withText:!0,tooltip:r}),u.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),u.bind("isEnabled").toMany(l,"isEnabled",(...e)=>e.some(e=>e)),u.buttonView.bind("label").to(a,"value",c,"value",(e,t)=>{const n=e||t&&"paragraph";return s[n]?s[n]:i}),this.listenTo(u,"execute",t=>{e.execute(t.source.commandName,t.source.commandValue?{value:t.source.commandValue}:void 0),e.editing.view.focus()}),u})}}function xh(e){for(const t of e.getChildren())if(t&&t.is("element","caption"))return t;return null}function Ah(e){const t=e.parent;return"figcaption"==e.name&&t&&"figure"==t.name&&t.hasClass("image")?{name:!0}:null}class Eh extends Vc{static get pluginName(){return"ImageCaptionEditing"}init(){const e=this.editor,t=e.editing.view,n=e.data,i=e.editing,r=e.t;e.model.schema.register("caption",{allowIn:"image",allowContentOf:"$block",isLimit:!0}),e.model.document.registerPostFixer(e=>this._insertMissingModelCaptionElement(e)),e.conversion.for("upcast").elementToElement({view:Ah,model:"caption"}),n.downcastDispatcher.on("insert:caption",Mh(e=>e.createContainerElement("figcaption"),!1));const s=function(e,t){return n=>{const i=n.createEditableElement("figcaption");return n.setCustomProperty("imageCaption",!0,i),Oa({view:e,element:i,text:t}),Au(i,n)}}(t,r("Enter image caption"));i.downcastDispatcher.on("insert:caption",Mh(s)),i.downcastDispatcher.on("insert",this._fixCaptionVisibility(e=>e.item),{priority:"high"}),i.downcastDispatcher.on("remove",this._fixCaptionVisibility(e=>e.position.parent),{priority:"high"}),t.document.registerPostFixer(e=>this._updateCaptionVisibility(e))}_updateCaptionVisibility(e){const t=this.editor.editing.mapper,n=this._lastSelectedCaption;let i;const r=this.editor.model.document.selection,s=r.getSelectedElement();if(s&&s.is("element","image")){const e=xh(s);i=t.toViewElement(e)}const o=Ih(r.getFirstPosition().parent);if(o&&(i=t.toViewElement(o)),i)return n?(n===i||(Rh(n,e),this._lastSelectedCaption=i),Lh(i,e)):(this._lastSelectedCaption=i,Lh(i,e));if(n){const t=Rh(n,e);return this._lastSelectedCaption=null,t}return!1}_fixCaptionVisibility(e){return(t,n,i)=>{const r=Ih(e(n)),s=i.writer;if(r){const e=this.editor.editing.mapper.toViewElement(r);e&&(r.childCount?s.removeClass("ck-hidden",e):s.addClass("ck-hidden",e))}}}_insertMissingModelCaptionElement(e){const t=this.editor.model,n=t.document.differ.getChanges(),i=[];for(const r of n)if("insert"==r.type&&"$text"!=r.name){const e=r.position.nodeAfter;if(e.is("element","image")&&!xh(e)&&i.push(e),!e.is("element","image")&&e.childCount)for(const n of t.createRangeIn(e).getItems())n.is("element","image")&&!xh(n)&&i.push(n)}for(const r of i)e.appendElement("caption",r);return!!i.length}}function Mh(e,t=!0){return(n,i,r)=>{const s=i.item;if((s.childCount||t)&&Lu(s.parent)){if(!r.consumable.consume(i.item,"insert"))return;const t=r.mapper.toViewElement(i.range.start.parent),n=e(r.writer);s.childCount||r.writer.addClass("ck-hidden",n),function(e,t,n,i){const r=i.writer.createPositionAt(n,"end");i.writer.insert(r,e),i.mapper.bindElements(t,e)}(n,i.item,t,r)}}}function Ih(e){const t=e.getAncestors({includeSelf:!0}).find(e=>"caption"==e.name);return t&&t.parent&&"image"==t.parent.name?t:null}function Rh(e,t){return!e.childCount&&!e.hasClass("ck-hidden")&&(t.addClass("ck-hidden",e),!0)}function Lh(e,t){return!!e.hasClass("ck-hidden")&&(t.removeClass("ck-hidden",e),!0)}n(72);class Dh extends Hc{constructor(e,t){super(e),this.defaultStyle=!1,this.styles=t.reduce((e,t)=>
1(e[t.name]=t,t.isDefault&&(this.defaultStyle=t.name),e),{})}refresh(){const e=this.editor.model.document.selection.getSelectedElement();if(this.isEnabled=Lu(e),e)if(e.hasAttribute("imageStyle")){const t=e.getAttribute("imageStyle");this.value=!!this.styles[t]&&t}else this.value=this.defaultStyle;else this.value=!1}execute(e){const t=e.value,n=this.editor.model,i=n.document.selection.getSelectedElement();n.change(e=>{this.styles[t].isDefault?e.removeAttribute("imageStyle",i):e.setAttribute("imageStyle",t,i)})}}function jh(e,t){for(const n of t)if(n.name===e)return n}var Nh='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm2.5 3V12h11V7.5h-11zM4.061 6H15.94c.586 0 1.061.407 1.061.91v5.68c0 .503-.475.91-1.061.91H4.06c-.585 0-1.06-.407-1.06-.91V6.91C3 6.406 3.475 6 4.061 6zM2 16.5V15h16v1.5z"/></svg>',Vh='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path d="M18 4.5V3H2v1.5h16zm0 3V6h-5.674v1.5H18zm0 3V9h-5.674v1.5H18zm0 3V12h-5.674v1.5H18zm-8.5-6V12h-6V7.5h6zm.818-1.5H2.682C2.305 6 2 6.407 2 6.91v5.68c0 .503.305.91.682.91h7.636c.377 0 .682-.407.682-.91V6.91c0-.503-.305-.91-.682-.91zM18 16.5V15H2v1.5h16z"/></svg>',zh='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm4.5 3V12h7V7.5h-7zM5.758 6h8.484c.419 0 .758.407.758.91v5.681c0 .502-.34.909-.758.909H5.758c-.419 0-.758-.407-.758-.91V6.91c0-.503.34-.91.758-.91zM2 16.5V15h16v1.5z"/></svg>',Fh='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm0 3V6h5.674v1.5zm0 3V9h5.674v1.5zm0 3V12h5.674v1.5zm8.5-6V12h6V7.5h-6zM9.682 6h7.636c.377 0 .682.407.682.91v5.68c0 .503-.305.91-.682.91H9.682c-.377 0-.682-.407-.682-.91V6.91c0-.503.305-.91.682-.91zM2 16.5V15h16v1.5z"/></svg>';const Bh={full:{name:"full",title:"Full size image",icon:Nh,isDefault:!0},side:{name:"side",title:"Side image",icon:Fh,className:"image-style-side"},alignLeft:{name:"alignLeft",title:"Left aligned image",icon:Vh,className:"image-style-align-left"},alignCenter:{name:"alignCenter",title:"Centered image",icon:zh,className:"image-style-align-center"},alignRight:{name:"alignRight",title:"Right aligned image",icon:Fh,className:"image-style-align-right"}},qh={full:Nh,left:Vh,right:Fh,center:zh};function Uh(e=[]){return e.map(Hh)}function Hh(e){if("string"==typeof e){const t=e;Bh[t]?e=Object.assign({},Bh[t]):(console.warn(Object(ft.a)("image-style-not-found: There is no such image style of given name."),{name:t}),e={name:t})}else if(Bh[e.name]){const t=Bh[e.name],n=Object.assign({},e);for(const i in t)Object.prototype.hasOwnProperty.call(e,i)||(n[i]=t[i]);e=n}return"string"==typeof e.icon&&qh[e.icon]&&(e.icon=qh[e.icon]),e}class Wh extends Vc{static get pluginName(){return"ImageStyleEditing"}init(){const e=this.editor,t=e.model.schema,n=e.data,i=e.editing;e.config.define("image.styles",["full","side"]);const r=Uh(e.config.get("image.styles"));t.extend("image",{allowAttributes:"imageStyle"});const s=function(e){return(t,n,i)=>{if(!i.consumable.consume(n.item,t.name))return;const r=jh(n.attributeNewValue,e),s=jh(n.attributeOldValue,e),o=i.mapper.toViewElement(n.item),a=i.writer;s&&a.removeClass(s.className,o),r&&a.addClass(r.className,o)}}(r);i.downcastDispatcher.on("attribute:imageStyle:image",s),n.downcastDispatcher.on("attribute:imageStyle:image",s),n.upcastDispatcher.on("element:figure",function(e){const t=e.filter(e=>!e.isDefault);return(e,n,i)=>{if(!n.modelRange)return;const r=n.viewItem,s=Zl(n.modelRange.getItems());if(i.schema.checkAttribute(s,"imageStyle"))for(const o of t)i.consumable.consume(r,{classes:o.className})&&i.writer.setAttribute("imageStyle",o.name,s)}}(r),{priority:"low"}),e.commands.add("imageStyle",new Dh(e,r))}}n(74);class Gh extends Vc{static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const e=this.editor.t;return{"Full size image":e("Full size image"),"Side image":e("Side image"),"Left aligned image":e("Left aligned image"),"Centered image":e("Centered image"),"Right aligned image":e("Right aligned image")}}init(){const e=function(e,t){for(const n of e)t[n.title]&&(n.title=t[n.title]);return e}(Uh(this.editor.config.get("image.styles")),this.localizedDefaultStylesTitles);for(const t of e)this._createButton(t)}_createButton(e){const t=this.editor;t.ui.componentFactory.add("imageStyle:"+e.name,n=>{const i=t.commands.get("imageStyle"),r=new kc(n);return r.set({label:e.title,icon:e.icon,tooltip:!0,isToggleable:!0}),r.bind("isEnabled").to(i,"isEnabled"),r.bind("isOn").to(i,"value",t=>t===e.name),this.listenTo(r,"execute",()=>{t.execute("imageStyle",{value:e.name}),t.editing.view.focus()}),r})}}class Yh extends Vc{static get requires(){return[$d]}static get pluginName(){return"WidgetToolbarRepository"}init(){const e=this.editor;if(e.plugins.has("BalloonToolbar")){const t=e.plugins.get("BalloonToolbar");this.listenTo(t,"show",t=>{(function(e){const t=e.getSelectedElement();return!(!t||!Tu(t))})(e.editing.view.document.selection)&&t.stop()},{priority:"high"})}this._toolbarDefinitions=new Map,this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",()=>{this._updateToolbarsVisibility()}),this.listenTo(e.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(e.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){super.destroy();for(const e of this._toolbarDefinitions.values())e.view.destroy()}register(e,{ariaLabel:t,items:n,getRelatedElement:i,balloonClassName:r="ck-toolbar-container"}){if(!n.length)return void console.warn(Object(ft.a)("widget-toolbar-no-items: Trying to register a toolbar without items."),{toolbarId:e});const s=this.editor,o=s.t,a=new Ic(s.locale);if(a.ariaLabel=t||o("Widget toolbar"),this._toolbarDefinitions.has(e))throw new ft.b("widget-toolbar-duplicated: Toolbar with the given id was already added.",this,{toolbarId:e});a.fillFromConfig(n,s.ui.componentFactory),this._toolbarDefinitions.set(e,{view:a,getRelatedElement:i,balloonClassName:r})}_updateToolbarsVisibility(){let e=0,t=null,n=null;for(const i of this._toolbarDefinitions.values()){const r=i.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&r)if(this.editor.ui.focusTracker.isFocused){const s=r.getAncestors().length;s>e&&(e=s,t=r,n=i)}else this._isToolbarVisible(i)&&this._hideToolbar(i);else this._isToolbarInBalloon(i)&&this._hideToolbar(i)}n&&this._showToolbar(n,t)}_hideToolbar(e){this._balloon.remove(e.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(e,t){this._isToolbarVisible(e)?$h(this.editor,t):this._isToolbarInBalloon(e)||(this._balloon.add({view:e.view,position:Zh(this.editor,t),balloonClassName:e.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const e of this._toolbarDefinitions.values())if(this._isToolbarVisible(e)){const t=e.getRelatedElement(this.editor.editing.view.document.selection);$h(this.editor,t)}}))}_isToolbarVisible(e){return this._balloon.visibleView===e.view}_isToolbarInBalloon(e){return this._balloon.hasView(e.view)}}function $h(e,t){const n=e.plugins.get("ContextualBalloon"),i=Zh(e,t);n.updatePosition(i)}function Zh(e,t){const n=vu.defaultPositions;return{target:e.editing.view.domConverter.mapViewToDom(t),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast,Mu]}}class Qh extends Hc{constructor(e){super(e),this._childCommands=[]}refresh(){}execute(...e){return this._getFirstEnabledCommand().execute(e)}registerChildCommand(e){this._childCommands.push(e),e.on("change:isEnabled",()=>this._checkEnabled()),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){return this._childCommands.find(e=>e.isEnabled)}}class Xh extends Vc{static get pluginName(){return"IndentEditing"}init(){const e=this.editor;
1e.commands.add("indent",new Qh(e)),e.commands.add("outdent",new Qh(e))}}var Kh='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zM1.632 6.95L5.02 9.358a.4.4 0 0 1-.013.661l-3.39 2.207A.4.4 0 0 1 1 11.892V7.275a.4.4 0 0 1 .632-.326z"/></svg>',Jh='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zm1.618-9.55L.98 9.358a.4.4 0 0 0 .013.661l3.39 2.207A.4.4 0 0 0 5 11.892V7.275a.4.4 0 0 0-.632-.326z"/></svg>';class ep extends Vc{static get pluginName(){return"IndentUI"}init(){const e=this.editor,t=e.locale,n=e.t,i="ltr"==t.uiLanguageDirection?Kh:Jh,r="ltr"==t.uiLanguageDirection?Jh:Kh;this._defineButton("indent",n("Increase indent"),i),this._defineButton("outdent",n("Decrease indent"),r)}_defineButton(e,t,n){const i=this.editor;i.ui.componentFactory.add(e,r=>{const s=i.commands.get(e),o=new kc(r);return o.set({label:t,icon:n,tooltip:!0}),o.bind("isOn","isEnabled").to(s,"value","isEnabled"),this.listenTo(o,"execute",()=>{i.execute(e),i.editing.view.focus()}),o})}}class tp extends _r{constructor(e){super(e),this.domEventType="click"}onDomEvent(e){this.fire(e.type,e)}}n(76);class np extends Ka{constructor(e,t,n){super(e);const i=e.t;this.focusTracker=new Sa,this.keystrokes=new ga,this.urlInputView=this._createUrlInput(n),this.saveButtonView=this._createButton(i("Save"),Hd,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(i("Cancel"),Wd,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(t),this.children=this._createFormChildren(t.manualDecorators),this._focusables=new Ia,this._focusCycler=new lc({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const r=["ck","ck-link-form"];t.manualDecorators.length&&r.push("ck-link-form_layout-vertical"),this.setTemplate({tag:"form",attributes:{class:r,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce((e,t)=>(e[t.name]=t.isOn,e),{})}render(){super.render(),Ud({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}_createUrlInput(e="https://"){const t=this.locale.t,n=new Fd(this.locale,qd);return n.label=t("Link URL"),n.fieldView.placeholder=e+"example.com",n}_createButton(e,t,n,i){const r=new kc(this.locale);return r.set({label:e,icon:t,tooltip:!0}),r.extendTemplate({attributes:{class:n}}),i&&r.delegate("execute").to(this,i),r}_createManualDecoratorSwitches(e){const t=this.createCollection();for(const n of e.manualDecorators){const i=new xc(this.locale);i.set({name:n.id,label:n.label,withText:!0}),i.bind("isOn").toMany([n,e],"value",(e,t)=>void 0===t&&void 0===e?n.defaultValue:e),i.on("execute",()=>{n.set("value",!i.isOn)}),t.add(i)}return t}_createFormChildren(e){const t=this.createCollection();if(t.add(this.urlInputView),e.length){const e=new Ka;e.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map(e=>({tag:"li",children:[e],attributes:{class:["ck","ck-list__item"]}})),attributes:{class:["ck","ck-reset","ck-list"]}}),t.add(e)}return t.add(this.saveButtonView),t.add(this.cancelButtonView),t}}n(78);class ip extends Ka{constructor(e){super(e);const t=e.t;this.focusTracker=new Sa,this.keystrokes=new ga,this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(t("Unlink"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.077 15l.991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184zm4.919 10.562l-1.414 1.414a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.061-1.06l1.414 1.414 1.414-1.415a.75.75 0 0 1 1.061 1.061l-1.414 1.414 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414z"/></svg>',"unlink"),this.editButtonView=this._createButton(t("Edit link"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7.3 17.37l-.061.088a1.518 1.518 0 0 1-.934.535l-4.178.663-.806-4.153a1.495 1.495 0 0 1 .187-1.058l.056-.086L8.77 2.639c.958-1.351 2.803-1.076 4.296-.03 1.497 1.047 2.387 2.693 1.433 4.055L7.3 17.37zM9.14 4.728l-5.545 8.346 3.277 2.294 5.544-8.346L9.14 4.728zM6.07 16.512l-3.276-2.295.53 2.73 2.746-.435zM9.994 3.506L13.271 5.8c.316-.452-.16-1.333-1.065-1.966-.905-.634-1.895-.78-2.212-.328zM8 18.5L9.375 17H19v1.5H8z"/></svg>',"edit"),this.set("href"),this._focusables=new Ia,this._focusCycler=new lc({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render(),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEac
1h(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}_createButton(e,t,n){const i=new kc(this.locale);return i.set({label:e,icon:t,tooltip:!0}),i.delegate("execute").to(this,n),i}_createPreviewButton(){const e=new kc(this.locale),t=this.bindTemplate,n=this.t;return e.set({withText:!0,tooltip:n("Open link in new tab")}),e.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:t.to("href",e=>e&&hd(e)),target:"_blank",rel:"noopener noreferrer"}}),e.bind("label").to(this,"href",e=>e||n("This link has no URL")),e.bind("isEnabled").to(this,"href",e=>!!e),e.template.tag="a",e.template.eventListeners={},e}}const rp=/^((\w+:(\/{2,})?)|(\W))/i,sp=/[\w-]+@[\w-]+\.+[\w-]+/i;class op extends Vc{static get requires(){return[$d]}static get pluginName(){return"LinkUI"}init(){const e=this.editor;e.editing.view.addObserver(tp),this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._balloon=e.plugins.get($d),this._createToolbarLinkButton(),this._enableUserBalloonInteractions(),e.conversion.for("editingDowncast").markerToHighlight({model:"link-ui",view:{classes:["ck-fake-link-selection"]}}),e.conversion.for("editingDowncast").markerToElement({model:"link-ui",view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}destroy(){super.destroy(),this.formView.destroy()}_createActionsView(){const e=this.editor,t=new ip(e.locale),n=e.commands.get("link"),i=e.commands.get("unlink");return t.bind("href").to(n,"value"),t.editButtonView.bind("isEnabled").to(n),t.unlinkButtonView.bind("isEnabled").to(i),this.listenTo(t,"edit",()=>{this._addFormView()}),this.listenTo(t,"unlink",()=>{e.execute("unlink"),this._hideUI()}),t.keystrokes.set("Esc",(e,t)=>{this._hideUI(),t()}),t.keystrokes.set("Ctrl+K",(e,t)=>{this._addFormView(),t()}),t}_createFormView(){const e=this.editor,t=e.commands.get("link"),n=e.config.get("link.defaultProtocol"),i=new np(e.locale,t,n);return i.urlInputView.fieldView.bind("value").to(t,"value"),i.urlInputView.bind("isReadOnly").to(t,"isEnabled",e=>!e),i.saveButtonView.bind("isEnabled").to(t),this.listenTo(i,"submit",()=>{const{value:t}=i.urlInputView.fieldView.element,r=!!n&&!rp.test(t),s=sp.test(t);e.execute("link",t&&r?(s?"mailto:":n)+t:t,i.getDecoratorSwitchesState()),this._closeFormView()}),this.listenTo(i,"cancel",()=>{this._closeFormView()}),i.keystrokes.set("Esc",(e,t)=>{this._closeFormView(),t()}),i}_createToolbarLinkButton(){const e=this.editor,t=e.commands.get("link"),n=e.t;e.keystrokes.set("Ctrl+K",(e,t)=>{t(),this._showUI(!0)}),e.ui.componentFactory.add("link",e=>{const i=new kc(e);return i.isEnabled=!0,i.label=n("Link"),i.icon='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.077 15l.991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184z"/></svg>',i.keystroke="Ctrl+K",i.tooltip=!0,i.isToggleable=!0,i.bind("isEnabled").to(t,"isEnabled"),i.bind("isOn").to(t,"value",e=>!!e),this.listenTo(i,"execute",()=>this._showUI(!0)),i})}_enableUserBalloonInteractions(){this.listenTo(this.editor.editing.view.document,"click",()=>{this._getSelectedLinkElement()&&this._showUI()}),this.editor.keystrokes.set("Tab",(e,t)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),t())},{priority:"high"}),this.editor.keystrokes.set("Esc",(e,t)=>{this._isUIVisible&&(this._hideUI(),t())}),Ac({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this._isFormInPanel)return;const e=this.editor.commands.get("link");this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.urlInputView.fieldView.element.value=e.value||""}_closeFormView(){const e=this.editor.commands.get("link");e.restoreManualDecoratorStates(),void 0!==e.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(e=!1){this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),e&&this._balloon.showStack("main")):(this._addActionsView(),e&&this._balloon.showStack("main"),this._addFormView(),this._showFakeVisualSelection()),this._startUpd
1atingUI()}_hideUI(){if(!this._isUIInPanel)return;const e=this.editor;this.stopListening(e.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),e.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const e=this.editor,t=e.editing.view.document;let n=this._getSelectedLinkElement(),i=s();const r=()=>{const e=this._getSelectedLinkElement(),t=s();n&&!e||!n&&t!==i?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),n=e,i=t};function s(){return t.selection.focus.getAncestors().reverse().find(e=>e.is("element"))}this.listenTo(e.ui,"update",r),this.listenTo(this._balloon,"change:visibleView",r)}get _isFormInPanel(){return this._balloon.hasView(this.formView)}get _areActionsInPanel(){return this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){return this._balloon.visibleView==this.formView||this._areActionsVisible}_getBalloonPositionData(){const e=this.editor.editing.view,t=e.document,n=this._getSelectedLinkElement();return{target:n?e.domConverter.mapViewToDom(n):e.domConverter.viewRangeToDom(t.selection.getFirstRange())}}_getSelectedLinkElement(){const e=this.editor.editing.view,t=e.document.selection;if(t.isCollapsed)return ap(t.getFirstPosition());{const n=t.getFirstRange().getTrimmed(),i=ap(n.start),r=ap(n.end);return i&&i==r&&e.createRangeIn(i).getTrimmed().isEqual(n)?i:null}}_showFakeVisualSelection(){const e=this.editor.model;e.change(t=>{e.markers.has("link-ui")?t.updateMarker("link-ui",{range:e.document.selection.getFirstRange()}):t.addMarker("link-ui",{usingOperation:!1,affectsData:!1,range:e.document.selection.getFirstRange()})})}_hideFakeVisualSelection(){const e=this.editor.model;e.markers.has("link-ui")&&e.change(e=>{e.removeMarker("link-ui")})}}function ap(e){return e.getAncestors().find(e=>{return(t=e).is("attributeElement")&&!!t.getCustomProperty("link");var t})}class cp extends Hc{constructor(e,t){super(e),this.type=t}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(){const e=this.editor.model,t=Array.from(e.document.selection.getSelectedBlocks()).filter(t=>up(t,e.schema)),n=!0===this.value;e.change(e=>{if(n){let n=t[t.length-1].nextSibling,i=Number.POSITIVE_INFINITY,r=[];for(;n&&"listItem"==n.name&&0!==n.getAttribute("listIndent");){const e=n.getAttribute("listIndent");e<i&&(i=e),r.push({element:n,listIndent:e-i}),n=n.nextSibling}r=r.reverse();for(const t of r)e.setAttribute("listIndent",t.listIndent,t.element)}if(!n){let e=Number.POSITIVE_INFINITY;for(const n of t)n.is("element","listItem")&&n.getAttribute("listIndent")<e&&(e=n.getAttribute("listIndent"));e=0===e?1:e,lp(t,!0,e),lp(t,!1,e)}for(const i of t.reverse())n&&"listItem"==i.name?e.rename(i,"paragraph"):n||"listItem"==i.name?n||"listItem"!=i.name||i.getAttribute("listType")==this.type||e.setAttribute("listType",this.type,i):(e.setAttributes({listType:this.type,listIndent:0},i),e.rename(i,"listItem"))})}_getValue(){const e=Zl(this.editor.model.document.selection.getSelectedBlocks());return!!e&&e.is("element","listItem")&&e.getAttribute("listType")==this.type}_checkEnabled(){if(this.value)return!0;const e=this.editor.model.schema,t=Zl(this.editor.model.document.selection.getSelectedBlocks());return!!t&&up(t,e)}}function lp(e,t,n){const i=t?e[0]:e[e.length-1];if(i.is("element","listItem")){let r=i[t?"previousSibling":"nextSibling"],s=i.getAttribute("listIndent");for(;r&&r.is("element","listItem")&&r.getAttribute("listIndent")>=n;)s>r.getAttribute("listIndent")&&(s=r.getAttribute("listIndent")),r.getAttribute("listIndent")==s&&e[t?"unshift":"push"](r),r=r[t?"previousSibling":"nextSibling"]}}function up(e,t){return t.checkChild(e.parent,"listItem")&&!t.isObject(e)}class dp extends Hc{constructor(e,t){super(e),this._indentBy="forward"==t?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const e=this.editor.model;let t=Array.from(e.document.selection.getSelectedBlocks());e.change(e=>{const n=t[t.length-1];let i=n.nextSibling;for(;i&&"listItem"==i.name&&i.getAttribute("listIndent")>n.getAttribute("listIndent");)t.push(i),i=i.nextSibling;this._indentBy<0&&(t=t.reverse());for(const r of t){const t=r.getAttribute("listIndent")+this._indentBy;t<0?e.rename(r,"paragraph"):e.setAttribute("listIndent",t,r)}})}_checkEnabled(){const e=Zl(this.editor.model.document.selection.getSelectedBlocks());if(!e||!e.is("element","listItem"))return!1;if(this._indentBy>0){const t=e.getAttribute("listIndent"),n=e.getAttribute("listType");let i=e.previousSibling;for(;i&&i.is("element","listItem")&&i.getAttribute("listIndent")>=t;){if(i.getAttribute("listIndent")==t)return i.getAttribute("listType")==n;i=i.previousSibling}return!1}return!0}}function hp(e,t,n,i){const r=t.parent,s=n.mapper,o=n.writer;let a=s.toViewPosition(i.createPositionBefore(e));const c=gp(e.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:e.getAttribute("listIndent")}),l=e.previousSibling;if(c&&c.getAttribute("listIndent")==e.getAttribute("listIndent")){const e=s.toViewElement(c);a=o.breakContainer(o.createPositionAfter(e))}else if(l&&"listItem"==l.name){a=s.toViewPosition(i.createPositionAt(l,"end"));const e=s.findMappedViewAncestor(a),t=function(e){for(const t of e.getChildren())if("ul"==t.name||"ol"==t.name)return t;return null}(e);a=t?o.createPositionBefore(t):o.createPositionAt(e,"end")}else a=s.toViewPosition(i.createPositionBefore(e));if(a=fp(a),o.insert(a,r),l&&"listItem"==l.name){const e=s.toViewElement(l),n=o.createRange(o.createPositionAt(e,0),a).getWalker({ignoreElementEnd:!0});for(const i of n)if(i.item.is("element","li")){const e=o.breakContainer(o.createPositionBefore(i.item)),r=i.item.parent,s=o.createPositionAt(t,"end");pp(o,s.nodeBefore,s.nodeAfter),o.move(o.createRangeOn(r),s),n.position=e}}else{const n=r.nextSibling;if(n&&(n.is("element","ul")||n.is("element","ol"))){let i=null;for(const t of n.getChildren()){const n=s.toModelElement(t);if(!(n&&n.getAttribute("listIndent")>e.getAttribute("listIndent")))break;i=t}i&&(o.breakContainer(o.createPositionAfter(i)),o.move(o.createRangeOn(i.parent),o.createPositionAt(t,"end")))}}pp(o,r,r.nextSibling),pp(o,r.previousSibling,r)}function pp(e,t,n){return!t||!n||"ul"!=t.name&&"ol"!=t.name||t.name!=n.name||t.getAttribute("class")!==n.getAttribute("class")?null:e.mergeContainers(e.createPositionAfter(t))}function fp(e){return e.getLastMatchingPosition(e=>e.item.is("uiElement"))}function gp(e,t){const n=!!t.sameIndent,i=!!t.smallerIndent,r=t.listIndent;let s=e;for(;s&&"listItem"==s.name;){const e=s.getAttribute("listIndent");if(n&&r==e||i&&r>e)return s;s=s.previousSibling}return null}function mp(e,t,n,i){e.ui.componentFactory.add(t,r=>{const s=e.commands.get(t),o=new kc(r);return o.set({label:n,icon:i,tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(s,"value","isEnabled"),o.on("execute",()=>{e.execute(t),e.editing.view.focus()}),o})}function bp(){const e=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||e?0:Cn.call(this)}function yp(e){return(t,n,i)=>{const r=i.consumable;if(!r.test(n.item,"insert")||!r.test(n.item,"attribute:listType")||!r.test(n.item,"attribute:listIndent"))return;r.consume(n.item,"insert"),r.consume(n.item,"attribute:listType"),r.consume(n.item,"attribute:listIndent");const s=n.item;hp(s,function(e,t){const n=t.mapper,i=t.writer,r="numbered"==e.getAttribute("listType")?"ol":"ul",s=function(e){const t=e.createContainerElement("li");return t.getFillerOffset=bp,t}
1(i),o=i.createContainerElement(r,null);return i.insert(i.createPositionAt(o,0),s),n.bindElements(e,s),s}(s,i),i,e)}}function vp(e,t,n){if(!n.consumable.consume(t.item,"attribute:listType"))return;const i=n.mapper.toViewElement(t.item),r=n.writer;r.breakContainer(r.createPositionBefore(i)),r.breakContainer(r.createPositionAfter(i)),r.rename("numbered"==t.attributeNewValue?"ol":"ul",i.parent)}function _p(e,t,n){const i=n.mapper.toViewElement(t.item).parent,r=n.writer;pp(r,i,i.nextSibling),pp(r,i.previousSibling,i);for(const s of t.item.getChildren())n.consumable.consume(s,"insert")}function wp(e,t,n){if("listItem"!=t.item.name){let e=n.mapper.toViewPosition(t.range.start);const i=n.writer,r=[];for(;("ul"==e.parent.name||"ol"==e.parent.name)&&(e=i.breakContainer(e),"li"==e.parent.name);){const t=e,n=i.createPositionAt(e.parent,"end");if(!t.isEqual(n)){const e=i.remove(i.createRange(t,n));r.push(e)}e=i.createPositionAfter(e.parent)}if(r.length>0){for(let t=0;t<r.length;t++){const n=e.nodeBefore;if(e=i.insert(e,r[t]).end,t>0){const t=pp(i,n,n.nextSibling);t&&t.parent==n&&e.offset--}}pp(i,e.nodeBefore,e.nodeAfter)}}}function kp(e,t,n){const i=n.mapper.toViewPosition(t.position);pp(n.writer,i.nodeBefore,i.nodeAfter)}function Cp(e,t,n){if(n.consumable.consume(t.viewItem,{name:!0})){const e=n.writer,i=e.createElement("listItem"),r=function(e){let t=0,n=e.parent;for(;n;){if(n.is("element","li"))t++;else{const e=n.previousSibling;e&&e.is("element","li")&&t++}n=n.parent}return t}(t.viewItem);e.setAttribute("listIndent",r,i),e.setAttribute("listType",t.viewItem.parent&&"ol"==t.viewItem.parent.name?"numbered":"bulleted",i);const s=n.splitToAllowedParent(i,t.modelCursor);if(!s)return;e.insert(i,s.position);const o=function(e,t,n){const{writer:i,schema:r}=n;let s=i.createPositionAfter(e);for(const o of t)if("ul"==o.name||"ol"==o.name)s=n.convertItem(o,s).modelCursor;else{const t=n.convertItem(o,i.createPositionAt(e,"end")),a=t.modelRange.start.nodeAfter;a&&a.is("element")&&!r.checkChild(e,a.name)&&(e=t.modelCursor.parent.is("element","listItem")?t.modelCursor.parent:xp(t.modelCursor),s=i.createPositionAfter(e))}return s}(i,t.viewItem.getChildren(),n);t.modelRange=e.createRange(t.modelCursor,o),t.modelCursor=s.cursorParent?e.createPositionAt(s.cursorParent,0):t.modelRange.end}}function Sp(e,t,n){if(n.consumable.test(t.viewItem,{name:!0})){const e=Array.from(t.viewItem.getChildren());for(const t of e)!t.is("element","li")&&!Ep(t)&&t._remove()}}function Tp(e,t,n){if(n.consumable.test(t.viewItem,{name:!0})){if(0===t.viewItem.childCount)return;const e=[...t.viewItem.getChildren()];let n=!1,i=!0;for(const t of e)n&&!Ep(t)&&t._remove(),t.is("$text")?(i&&(t._data=t.data.replace(/^\s+/,"")),t.nextSibling&&!Ep(t.nextSibling)||(t._data=t.data.replace(/\s+$/,""))):Ep(t)&&(n=!0),i=!1}}function Pp(e){return(t,n)=>{if(n.isPhantom)return;const i=n.modelPosition.nodeBefore;if(i&&i.is("element","listItem")){const t=n.mapper.toViewElement(i),r=t.getAncestors().find(Ep),s=e.createPositionAt(t,0).getWalker();for(const e of s){if("elementStart"==e.type&&e.item.is("element","li")){n.viewPosition=e.previousPosition;break}if("elementEnd"==e.type&&e.item==r){n.viewPosition=e.nextPosition;break}}}}}function Op(e,[t,n]){let i,r=t.is("documentFragment")?t.getChild(0):t;if(i=n?this.createSelection(n):this.document.selection,r&&r.is("element","listItem")){const e=i.getFirstPosition();let t=null;if(e.parent.is("element","listItem")?t=e.parent:e.nodeBefore&&e.nodeBefore.is("element","listItem")&&(t=e.nodeBefore),t){const e=t.getAttribute("listIndent");if(e>0)for(;r&&r.is("element","listItem");)r._setAttribute("listIndent",r.getAttribute("listIndent")+e),r=r.nextSibling}}}function xp(e){const t=new ss({startPosition:e});let n;do{n=t.next()}while(!n.value.item.is("element","listItem"));return n.value.item}function Ap(e,t,n,i,r,s){const o=gp(t.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:e,foo:"b"}),a=r.mapper,c=r.writer,l=o?o.getAttribute("listIndent"):null;let u;if(o)if(l==e){const e=a.toViewElement(o).parent;u=c.createPositionAfter(e)}else{const e=s.createPositionAt(o,"end");u=a.toViewPosition(e)}else u=n;u=fp(u);for(const d of[...i.getChildren()])Ep(d)&&(u=c.move(c.createRangeOn(d),u).end,pp(c,d,d.nextSibling),pp(c,d.previousSibling,d))}function Ep(e){return e.is("element","ol")||e.is("element","ul")}class Mp extends Vc{static get pluginName(){return"ListEditing"}static get requires(){return[_h]}init(){const e=this.editor;
1e.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const t=e.data,n=e.editing;var i;e.model.document.registerPostFixer(t=>function(e,t){const n=e.document.differ.getChanges(),i=new Map;let r=!1;for(const c of n)if("insert"==c.type&&"listItem"==c.name)s(c.position);else if("insert"==c.type&&"listItem"!=c.name){if("$text"!=c.name){const n=c.position.nodeAfter;n.hasAttribute("listIndent")&&(t.removeAttribute("listIndent",n),r=!0),n.hasAttribute("listType")&&(t.removeAttribute("listType",n),r=!0);for(const t of Array.from(e.createRangeIn(n)).filter(e=>e.item.is("element","listItem")))s(t.previousPosition)}s(c.position.getShiftedBy(c.length))}else"remove"==c.type&&"listItem"==c.name?s(c.position):("attribute"==c.type&&"listIndent"==c.attributeKey||"attribute"==c.type&&"listType"==c.attributeKey)&&s(c.range.start);for(const c of i.values())o(c),a(c);return r;function s(e){const t=e.nodeBefore;if(t&&t.is("element","listItem")){let e=t;if(i.has(e))return;for(let t=e.previousSibling;t&&t.is("element","listItem");t=e.previousSibling)if(e=t,i.has(e))return;i.set(t,e)}else{const t=e.nodeAfter;t&&t.is("element","listItem")&&i.set(t,t)}}function o(e){let n=0,i=null;for(;e&&e.is("element","listItem");){const s=e.getAttribute("listIndent");if(s>n){let o;null===i?(i=s-n,o=n):(i>s&&(i=s),o=s-i),t.setAttribute("listIndent",o,e),r=!0}else i=null,n=e.getAttribute("listIndent")+1;e=e.nextSibling}}function a(e){let n=[],i=null;for(;e&&e.is("element","listItem");){const s=e.getAttribute("listIndent");if(i&&i.getAttribute("listIndent")>s&&(n=n.slice(0,s+1)),0!=s)if(n[s]){const i=n[s];e.getAttribute("listType")!=i&&(t.setAttribute("listType",i,e),r=!0)}else n[s]=e.getAttribute("listType");i=e,e=e.nextSibling}}}(e.model,t)),n.mapper.registerViewToModelLength("li",Ip),t.mapper.registerViewToModelLength("li",Ip),n.mapper.on("modelToViewPosition",Pp(n.view)),n.mapper.on("viewToModelPosition",(i=e.model,(e,t)=>{const n=t.viewPosition,r=n.parent,s=t.mapper;if("ul"==r.name||"ol"==r.name){if(n.isAtEnd){const e=s.toModelElement(n.nodeBefore),r=s.getModelLength(n.nodeBefore);t.modelPosition=i.createPositionBefore(e).getShiftedBy(r)}else{const e=s.toModelElement(n.nodeAfter);t.modelPosition=i.createPositionBefore(e)}e.stop()}else if("li"==r.name&&n.nodeBefore&&("ul"==n.nodeBefore.name||"ol"==n.nodeBefore.name)){const o=s.toModelElement(r);let a=1,c=n.nodeBefore;for(;c&&Ep(c);)a+=s.getModelLength(c),c=c.previousSibling;t.modelPosition=i.createPositionBefore(o).getShiftedBy(a),e.stop()}})),t.mapper.on("modelToViewPosition",Pp(n.view)),e.conversion.for("editingDowncast").add(t=>{t.on("insert",wp,{priority:"high"}),t.on("insert:listItem",yp(e.model)),t.on("attribute:listType:listItem",vp,{priority:"high"}),t.on("attribute:listType:listItem",_p,{priority:"low"}),t.on("attribute:listIndent:listItem",function(e){return(t,n,i)=>{if(!i.consumable.consume(n.item,"attribute:listIndent"))return;const r=i.mapper.toViewElement(n.item),s=i.writer;s.breakContainer(s.createPositionBefore(r)),s.breakContainer(s.createPositionAfter(r));const o=r.parent,a=o.previousSibling,c=s.createRangeOn(o);s.remove(c),a&&a.nextSibling&&pp(s,a,a.nextSibling),Ap(n.attributeOldValue+1,n.range.start,c.start,r,i,e),hp(n.item,r,i,e);for(const e of n.item.getChildren())i.consumable.consume(e,"insert")}}(e.model)),t.on("remove:listItem",function(e){return(t,n,i)=>{const r=i.mapper.toViewPosition(n.position).getLastMatchingPosition(e=>!e.item.is("element","li")).nodeAfter,s=i.writer;s.breakContainer(s.createPositionBefore(r)),s.breakContainer(s.createPositionAfter(r));const o=r.parent,a=o.previousSibling,c=s.createRangeOn(o),l=s.remove(c);a&&a.nextSibling&&pp(s,a,a.nextSibling),Ap(i.mapper.toModelElement(r).getAttribute("listIndent")+1,n.position,c.start,r,i,e);for(const e of s.createRangeIn(l).getItems())i.mapper.unbindViewElement(e);t.stop()}}(e.model)),t.on("remove",kp,{priority:"low"})}),e.conversion.for("dataDowncast").add(t=>{t.on("insert",wp,{priority:"high"}),t.on("insert:listItem",yp(e.model))}),e.conversion.for("upcast").add(e=>{e.on("element:ul",Sp,{priority:"high"}),e.on("element:ol",Sp,{priority:"high"}),e.on("element:li",Tp,{priority:"high"}),e.on("element:li",Cp)}),e.model.on("insertContent",Op,{priority:"high"}),e.commands.add("numberedList",new cp(e,"numbered")),e.commands.add("bulletedList",new cp(e,"bulleted")),e.commands.add("indentList",new dp(e,"forward")),e.commands.add("outde
1ntList",new dp(e,"backward"));const r=n.view.document;this.listenTo(r,"enter",(e,t)=>{const n=this.editor.model.document,i=n.selection.getLastPosition().parent;n.selection.isCollapsed&&"listItem"==i.name&&i.isEmpty&&(this.editor.execute("outdentList"),t.preventDefault(),e.stop())}),this.listenTo(r,"delete",(e,t)=>{if("backward"!==t.direction)return;const n=this.editor.model.document.selection;if(!n.isCollapsed)return;const i=n.getFirstPosition();if(!i.isAtStart)return;const r=i.parent;"listItem"===r.name&&(r.previousSibling&&"listItem"===r.previousSibling.name||(this.editor.execute("outdentList"),t.preventDefault(),e.stop()))},{priority:"high"});const s=e=>(t,n)=>{this.editor.commands.get(e).isEnabled&&(this.editor.execute(e),n())};e.keystrokes.set("Tab",s("indentList")),e.keystrokes.set("Shift+Tab",s("outdentList"))}afterInit(){const e=this.editor.commands,t=e.get("indent"),n=e.get("outdent");t&&t.registerChildCommand(e.get("indentList")),n&&n.registerChildCommand(e.get("outdentList"))}}function Ip(e){let t=1;for(const n of e.getChildren())if("ul"==n.name||"ol"==n.name)for(const e of n.getChildren())t+=Ip(e);return t}class Rp extends Vc{init(){const e=this.editor.t;mp(this.editor,"numberedList",e("Numbered List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM3.5 3v5H2V3.7H1v-1h2.5V3zM.343 17.857l2.59-3.257H2.92a.6.6 0 1 0-1.04 0H.302a2 2 0 1 1 3.995 0h-.001c-.048.405-.16.734-.333.988-.175.254-.59.692-1.244 1.312H4.3v1h-4l.043-.043zM7 14.75a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>'),mp(this.editor,"bulletedList",e("Bulleted List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0C1 4.784 1.777 4 2.75 4c.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75C1.784 7.5 1 6.723 1 5.75zm6 9c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0c0-.966.777-1.75 1.75-1.75.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75-.966 0-1.75-.777-1.75-1.75z"/></svg>')}}function Lp(e,t){return e=>{e.on("attribute:url:media",n)};function n(n,i,r){if(!r.consumable.consume(i.item,n.name))return;const s=i.attributeNewValue,o=r.writer,a=r.mapper.toViewElement(i.item),c=[...a.getChildren()].find(e=>e.getCustomProperty("media-content"));o.remove(c);const l=e.getMediaViewElement(o,s,t);o.insert(o.createPositionAt(a,0),l)}}function Dp(e,t,n,i){const r=e.createContainerElement("figure",{class:"media"});return e.insert(e.createPositionAt(r,0),t.getMediaViewElement(e,n,i)),r}function jp(e){const t=e.getSelectedElement();return t&&t.is("element","media")?t:null}function Np(e,t,n){e.change(i=>{const r=i.createElement("media",{url:t});e.insertContent(r,n),i.setSelection(r,"on")})}class Vp extends Hc{refresh(){const e=this.editor.model,t=e.document.selection,n=e.schema,i=t.getFirstPosition(),r=jp(t);let s=i.parent;s!=s.root&&(s=s.parent),this.value=r?r.getAttribute("url"):null,this.isEnabled=n.checkChild(s,"media")}execute(e){const t=this.editor.model,n=t.document.selection,i=jp(n);if(i)t.change(t=>{t.setAttribute("url",e,i)});else{const i=Eu(n,t);Np(t,e,i)}}}class zp{constructor(e,t){const n=t.providers,i=t.extraProviders||[],r=new Set(t.removeProviders),s=n.concat(i).filter(e=>{const t=e.name;return t?!r.has(t):(console.warn(Object(ft.a)("media-embed-no-provider-name: The configured media provider has no name and cannot be used."),{provider:e}),!1)});this.locale=e,this.providerDefinitions=s}hasMedia(e){return!!this._getMedia(e)}getMediaViewElement(e,t,n){return this._getMedia(t).getViewElement(e,n)}_getMedia(e){if(!e)return new Fp(this.locale);e=e.trim();for(const t of this.providerDefinitions){const n=t.html;let i=t.url;Array.isArray(i)||(i=[i]);for(const t of i){const i=this._getUrlMatches(e,t);if(i)return new Fp(this.locale,e,i,n)}}return null}_getUrlMatches(e,t){let n=e.match(t);if(n)return n;let i=e.replace(/^https?:\/\//,"");return n=i.match(t),n||(i=i.replace(/^www\./,""),n=i.match(t),n||null)}}class Fp{constructor(e,t,n,i){this.url=this._getValidUrl(t),this._t=e.t,this._match=n,this._previewRenderer=i}getViewElement(e,t){const n={};let i;if(t.renderForEditingView||t.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(n["data-oembed-url"]=this.url),t.renderForEditingView&&(n.class="ck-media__wrapper");const r=this._getPreviewHtml(t);i=e.createRawElement("div",n,function(e){e.innerHTML=r})}else this.url&&(n.url=this.url),i=e.createEmptyElement("oembed",n);return e.setCustomProperty("media-content",!0,i),i}_getPreviewHtml(e){return this._previewRenderer?this._previewRenderer(this._match):this.url&&e.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const e=new wc,t=new _c;return e.text=this._t("Open media in new tab"),t.content='<svg viewBox="0 0 64 42" xmlns="http://www.w3.org/2000/svg"><path d="M47.426 17V3.713L63.102 0v19.389h-.001l.001.272c0 1.595-2.032 3.43-4.538 4.098-2.506.668-4.538-.083-4.538-1.678 0-1.594 2.032-3.43 4.538-4.098.914-.244 2.032-.565 2.888-.603V4.516L49.076 7.447v9.556A1.014 1.014 0 0 0 49 17h-1.574zM29.5 17h-8.343a7.073 7.073 0 1 0-4.657 4.06v3.781H3.3a2.803 2.803 0 0 1-2.8-2.804V8.63a2.803 2.803 0 0 1 2.8-2.805h4.082L8.58 2.768A1.994 1.994 0 0 1 10.435 1.5h8.985c.773 0 1.477.448 1.805 1.149l1.488 3.177H26.7c1.546 0 2.8 1.256 2.8 2.805V17zm-11.
1637 0H17.5a1 1 0 0 0-1 1v.05A4.244 4.244 0 1 1 17.863 17zm29.684 2c.97 0 .953-.048.953.889v20.743c0 .953.016.905-.953.905H19.453c-.97 0-.953.048-.953-.905V19.89c0-.937-.016-.889.97-.889h28.077zm-4.701 19.338V22.183H24.154v16.155h18.692zM20.6 21.375v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616V37.53H20.6zm24.233-16.155v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615V37.53h-1.615zM29.485 25.283a.4.4 0 0 1 .593-.35l9.05 4.977a.4.4 0 0 1 0 .701l-9.05 4.978a.4.4 0 0 1-.593-.35v-9.956z"/></svg>',t.viewBox="0 0 64 42",new Ra({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[t]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]},e]}]}).render().outerHTML}_getValidUrl(e){return e?e.match(/^https?/)?e:"https://"+e:null}}n(80);class Bp extends Vc{static get pluginName(){return"MediaEmbedEditing"}constructor(e){super(e),e.config.define("mediaEmbed",{providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:e=>`<div style="position: relative; padding-bottom: 100%; height: 0; "><iframe src="https://www.dailymotion.com/embed/video/${e[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" width="480" height="270" allowfullscreen allow="autoplay"></iframe></div>`},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:e=>`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 126%;"><iframe src="https://open.spotify.com/embed/${e[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe></div>`},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)/,/^youtube\.com\/embed\/([\w-]+)/,/^youtu\.be\/([\w-]+)/],html:e=>`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://www.youtube.com/embed/${e[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>`},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:e=>`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://player.vimeo.com/video/${e[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>`},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:/^google\.com\/maps/},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new zp(e.locale,e.config.get("mediaEmbed"))}init(){const e=this.editor,t=e.model.schema,n=e.t,i=e.conversion,r=e.config.get("mediaEmbed.previewsInData"),s=this.registry;e.commands.add("mediaEmbed",new Vp(e)),t.register("media",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["url"]}),i.for("dataDowncast").elementToElement({model:"media",view:(e,t)=>{const n=e.getAttribute("url");return Dp(t,s,n,{renderMediaPreview:n&&r})}}),i.for("dataDowncast").add(Lp(s,{renderMediaPreview:r})),i.for("editingDowncast").elementToElement({model:"media",view:(e,t)=>{const i=e.getAttribute("url");return r=Dp(t,s,i,{renderForEditingView:!0}),o=t,a=n("media widget"),o.setCustomProperty("media",!0,r),Pu(r,o,{label:a});var r,o,a}}),i.for("editingDowncast").add(Lp(s,{renderForEditingView:!0})),i.for("upcast").elementToElement({view:{name:"oembed",attributes:{url:!0}},model:(e,t)=>
1{const n=e.getAttribute("url");if(s.hasMedia(n))return t.createElement("media",{url:n})}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(e,t)=>{const n=e.getAttribute("data-oembed-url");if(s.hasMedia(n))return t.createElement("media",{url:n})}})}}const qp=/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'()*+,;=]+$/;class Up extends Vc{static get requires(){return[Uc,Bl]}static get pluginName(){return"AutoMediaEmbed"}constructor(e){super(e),this._timeoutId=null,this._positionToInsert=null}init(){const e=this.editor,t=e.model.document;this.listenTo(e.plugins.get(Uc),"inputTransformation",()=>{const e=t.selection.getFirstRange(),n=Jo.fromPosition(e.start);n.stickiness="toPrevious";const i=Jo.fromPosition(e.end);i.stickiness="toNext",t.once("change:data",()=>{this._embedMediaBetweenPositions(n,i),n.detach(),i.detach()},{priority:"high"})}),e.commands.get("undo").on("execute",()=>{this._timeoutId&&(Gi.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedMediaBetweenPositions(e,t){const n=this.editor,i=n.plugins.get(Bp).registry,r=new ks(e,t),s=r.getWalker({ignoreElementEnd:!0});let o="";for(const a of s)a.item.is("$textProxy")&&(o+=a.item.data);o=o.trim(),o.match(qp)&&i.hasMedia(o)&&n.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=Jo.fromPosition(e),this._timeoutId=Gi.window.setTimeout(()=>{n.model.change(e=>{let t;this._timeoutId=null,e.remove(r),r.detach(),"$graveyard"!==this._positionToInsert.root.rootName&&(t=this._positionToInsert),Np(n.model,o,t),this._positionToInsert.detach(),this._positionToInsert=null})},100)):r.detach()}}n(82);class Hp extends Ka{constructor(e,t){super(t);const n=t.t;this.focusTracker=new Sa,this.keystrokes=new ga,this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),Hd,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(n("Cancel"),Wd,"ck-button-cancel","cancel"),this._focusables=new Ia,this._focusCycler=new lc({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=e,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),Ud({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element);const e=e=>e.stopPropagation();this.keystrokes.set("arrowright",e),this.keystrokes.set("arrowleft",e),this.keystrokes.set("arrowup",e),this.keystrokes.set("arrowdown",e),this.listenTo(this.urlInputView.element,"selectstart",(e,t)=>{t.stopPropagation()},{priority:"high"})}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(e){this.urlInputView.fieldView.element.value=e.trim()}isValid(){this.resetFormStatus();for(const e of this._validators){const t=e(this);if(t)return this.urlInputView.errorText=t,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const e=this.locale.t,t=new Fd(this.locale,qd),n=t.fieldView;return this._urlInputViewInfoDefault=e("Paste the media URL in the input."),this._urlInputViewInfoTip=e("Tip: Paste the URL into the content to embed faster."),t.label=e("Media URL"),t.infoText=this._urlInputViewInfoDefault,n.placeholder="https://example.com",n.on("input",()=>{t.infoText=n.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault}),t}_createButton(e,t,n,i){const r=new kc(this.locale);return r.set({label:e,icon:t,tooltip:!0}),r.extendTemplate({attributes:{class:n}}),i&&r.delegate("execute").to(this,i),r}}class Wp extends Vc{static get requires(){return[Bp]}static get pluginName(){return"MediaEmbedUI"}init(){const e=this.editor,t=e.commands.get("mediaEmbed"),n=e.plugins.get(Bp).registry;e.ui.componentFactory.add("mediaEmbed",i=>{const r=Ec(i),s=new Hp(function(e,t){return[t=>{if(!t.url.length)return e("The URL must not be empty.")},n=>{if(!t.hasMedia(n.url))return e("This media URL is not supported.")}]}(e.t,n),e.locale);
1return this._setUpDropdown(r,s,t,e),this._setUpForm(r,s,t),r})}_setUpDropdown(e,t,n){const i=this.editor,r=i.t,s=e.buttonView;function o(){i.editing.view.focus(),e.isOpen=!1}e.bind("isEnabled").to(n),e.panelView.children.add(t),s.set({label:r("Insert media"),icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M18.68 3.03c.6 0 .59-.03.59.55v12.84c0 .59.01.56-.59.56H1.29c-.6 0-.59.03-.59-.56V3.58c0-.58-.01-.55.6-.55h17.38zM15.77 15V5H4.2v10h11.57zM2 4v1h1V4H2zm0 2v1h1V6H2zm0 2v1h1V8H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zM17 4v1h1V4h-1zm0 2v1h1V6h-1zm0 2v1h1V8h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zM7.5 7.177a.4.4 0 0 1 .593-.351l5.133 2.824a.4.4 0 0 1 0 .7l-5.133 2.824a.4.4 0 0 1-.593-.35V7.176v.001z"/></svg>',tooltip:!0}),s.on("open",()=>{t.url=n.value||"",t.urlInputView.fieldView.select(),t.focus()},{priority:"low"}),e.on("submit",()=>{t.isValid()&&(i.execute("mediaEmbed",t.url),o())}),e.on("change:isOpen",()=>t.resetFormStatus()),e.on("cancel",()=>o())}_setUpForm(e,t,n){t.delegate("submit","cancel").to(e),t.urlInputView.bind("value").to(n,"value"),t.urlInputView.bind("isReadOnly").to(n,"isEnabled",e=>!e),t.saveButtonView.bind("isEnabled").to(n)}}function Gp(e,t,n){const i=t.parent,r=n.createElement(e.type),s=i.getChildIndex(t)+1;return n.insertChild(s,r,i),r}function Yp(e){const t={},n=e.getStyle("mso-list");if(n){const e=n.match(/(^|\s+)l(\d+)/i),i=n.match(/\s*lfo(\d+)/i),r=n.match(/\s*level(\d+)/i);e&&i&&r&&(t.id=e[2],t.order=i[1],t.indent=r[1])}return t}n(84);const $p=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class Zp{constructor(e){this.document=e}isActive(e){return $p.test(e)}execute(e){const t=new dh(this.document);!function(e,t){for(const n of e.getChildren())if(n.is("element","b")&&"normal"===n.getStyle("font-weight")){const i=e.getChildIndex(n);t.remove(n),t.insertChild(i,n.getChildren(),e)}}(e.content,t),function(e,t){for(const n of t.createRangeIn(e)){const e=n.item;if(e.is("element","li")){const n=e.getChild(0);n.is("element","p")&&t.unwrapElement(n)}}}(e.content,t)}}function Qp(e){return e.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(e,t)=>1===t.length?" ":Array(t.length+1).join("\xa0 ").substr(0,t.length))}const Xp=/<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/i,Kp=/xmlns:o="urn:schemas-microsoft-com/i;class Jp{constructor(e){this.document=e}isActive(e){return Xp.test(e)||Kp.test(e)}execute(e){const{body:t,stylesString:n}=function(e,t){const n=new DOMParser,i=function(e){return Qp(Qp(e)).replace(/(<span\s+style=['"]mso-spacerun:yes['"]>[\s]*?)[\r\n]+(\s*<\/span>)/g,"$1$2").replace(/<span\s+style=['"]mso-spacerun:yes['"]><\/span>/g,"").replace(/ <\//g,"\xa0</").replace(/ <o:p><\/o:p>/g,"\xa0<o:p></o:p>").replace(/<o:p>( |\u00A0)<\/o:p>/g,"").replace(/>(\s*[\r\n]\s*)</g,"><")}(function(e){const t=e.match(/<\/body>(.*?)(<\/html>|$)/);return t&&t[1]&&(e=e.slice(0,t.index)+e.slice(t.index).replace(t[1],"")),e}(e=e.replace(/<!--\[if gte vml 1]>/g,""))),r=n.parseFromString(i,"text/html");!function(e){e.querySelectorAll("span[style*=spacerun]").forEach(e=>{const t=e.innerText.length||0;e.innerHTML=Array(t+1).join("\xa0 ").substr(0,t)})}(r);const s=r.body.innerHTML,o=function(e,t){const n=new Wn(t),i=new Qi(n,{blockFillerMode:"nbsp"}),r=e.createDocumentFragment(),s=e.body.childNodes;for(;s.length>0;)r.appendChild(s[0]);return i.domToView(r)}(r,t),a=function(e){const t=[],n=[],i=Array.from(e.getElementsByTagName("style"));for(const r of i)r.sheet&&r.sheet.cssRules&&r.sheet.cssRules.length&&(t.push(r.sheet),n.push(r.innerHTML));return{styles:t,stylesString:n.join(" ")}}(r);return{body:o,bodyString:s,styles:a.styles,stylesString:a.stylesString}}(e.dataTransfer.getData("text/html"),this.document.stylesProcessor);(function(e,t){if(!e.childCount)return;const n=new dh(e.document),i=function(e,t){const n=t.createRangeIn(e),i=new Vt({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),r=[];for(const s of n)if("elementStart"===s.type&&i.match(s.item)){const e=Yp(s.item);r.push({element:s.item,id:e.id,order:e.order,indent:e.indent})}return r}(e,n);if(!i.length)return;let r=null,s=1;
1i.forEach((e,o)=>{const a=function(e,t){if(!e)return!0;if(e.id!==t.id)return!0;const n=t.element.previousSibling;return!n||!((i=n).is("element","ol")||i.is("element","ul"));var i}(i[o-1],e),c=(u=e,(l=a?null:i[o-1])?u.indent-l.indent:u.indent-1);var l,u;if(a&&(r=null,s=1),!r||0!==c){const i=function(e,t){const n=/mso-level-number-format:([^;]*);/gi,i=new RegExp(`@list l${e.id}:level${e.indent}\\s*({[^}]*)`,"gi").exec(t);let r="decimal";if(i&&i[1]){const e=n.exec(i[1]);e&&e[1]&&(r=e[1].trim())}return{type:"bullet"!==r&&"image"!==r?"ol":"ul",style:r}}(e,t);if(r)if(e.indent>s){const e=r.getChild(r.childCount-1),t=e.getChild(e.childCount-1);r=Gp(i,t,n),s+=1}else e.indent<s&&(r=function(e,t){const n=e.getAncestors({parentFirst:!0});let i=null,r=0;for(const s of n)if("ul"!==s.name&&"ol"!==s.name||r++,r===t){i=s;break}return i}(r,s-e.indent),s=parseInt(e.indent));else r=Gp(i,e.element,n);e.indent<=s&&(r.is("element",i.type)||(r=n.rename(i.type,r)))}const d=function(e,t){return function(e,t){const n=new Vt({name:"span",styles:{"mso-list":"Ignore"}}),i=t.createRangeIn(e);for(const r of i)"elementStart"===r.type&&n.match(r.item)&&t.remove(r.item)}(e,t),t.rename("li",e)}(e.element,n);n.appendChild(d,r)})})(t,n),function(e,t){if(!e.childCount)return;const n=new dh;!function(e,t,n){const i=n.createRangeIn(t),r=new Vt({name:"img"}),s=[];for(const o of i)if(r.match(o.item)){const t=o.item,n=t.getAttribute("v:shapes")?t.getAttribute("v:shapes").split(" "):[];n.length&&n.every(t=>e.indexOf(t)>-1)?s.push(t):t.getAttribute("src")||s.push(t)}for(const o of s)n.remove(o)}(function(e,t){const n=t.createRangeIn(e),i=new Vt({name:/v:(.+)/}),r=[];for(const s of n){const e=s.item,t=e.previousSibling&&e.previousSibling.name||null;i.match(e)&&e.getAttribute("o:gfxdata")&&"v:shapetype"!==t&&r.push(s.item.getAttribute("id"))}return r}(e,n),e,n),function(e,t){const n=t.createRangeIn(e),i=new Vt({name:/v:(.+)/}),r=[];for(const s of n)i.match(s.item)&&r.push(s.item);for(const s of r)t.remove(s)}(e,n);const i=function(e,t){const n=t.createRangeIn(e),i=new Vt({name:"img"}),r=[];for(const s of n)i.match(s.item)&&s.item.getAttribute("src").startsWith("file://")&&r.push(s.item);return r}(e,n);i.length&&function(e,t,n){if(e.length===t.length)for(let r=0;r<e.length;r++){const s=`data:${t[r].type};base64,${i=t[r].hex,btoa(i.match(/\w{2}/g).map(e=>String.fromCharCode(parseInt(e,16))).join(""))}`;n.setAttribute("src",s,e[r])}var i}(i,function(e){if(!e)return[];const t=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,n=new RegExp("(?:("+t.source+"))([\\da-fA-F\\s]+)\\}","g"),i=e.match(n),r=[];if(i)for(const s of i){let e=!1;s.includes("\\pngblip")?e="image/png":s.includes("\\jpegblip")&&(e="image/jpeg"),e&&r.push({hex:s.replace(t,"").replace(/[^\da-fA-F]/g,""),type:e})}return r}(t),n)}(t,e.dataTransfer.getData("text/rtf")),e.content=t}}function ef(e,t,n,i,r=1){t>r?i.setAttribute(e,t,n):i.removeAttribute(e,n)}function tf(e,t,n={}){const i=e.createElement("tableCell",n);return e.insertElement("paragraph",i),e.insert(i,t),i}function nf(e,t){const n=parseInt(t.parent.parent.getAttribute("headingColumns")||0),{column:i}=e.getCellLocation(t);return!!n&&i<n}function rf(e){return t=>{t.on("element:"+e,(e,t,n)=>{const i=t.viewItem;if(!n.consumable.test(i,{name:!0}))return;const r=n.writer.createElement("tableCell"),s=n.splitToAllowedParent(r,t.modelCursor);if(!s)return;n.writer.insert(r,s.position),n.consumable.consume(i,{name:!0});const o=n.writer.createPositionAt(r,0);n.convertChildren(i,o),r.childCount||n.writer.insertElement("paragraph",o),t.modelRange=n.writer.createRange(n.writer.createPositionBefore(r),n.writer.createPositionAfter(r)),t.modelCursor=t.modelRange.end})}}function sf(e){let t=0,n=0;const i=Array.from(e.getChildren()).filter(e=>"th"===e.name||"td"===e.name);for(;n<i.length&&"th"===i[n].name;)t+=parseInt(i[n].getAttribute("colspan")||1),n++;return t}class of{constructor(e,t={}){this._table=e,this._startRow=void 0!==t.row?t.row:t.startRow||0,this._endRow=void 0!==t.row?t.row:t.endRow,this._startColumn=void 0!==t.column?t.column:t.startColumn||0,this._endColumn=void 0!==t.column?t.column:t.endColumn,this._includeAllSlots=!!t.includeAllSlots,this._skipRows=new Set,this._row=0,this._column=0,this._cellIndex=0,this._spannedCells=new Map,this._nextCellAtColumn=-1}[Symbol.iterator](){return this}next(){const e=this._table.getChild(this._row);if(!e||this._isOverEndRow())return{done:!0};if(this._isOverEndColumn())return this._advanceToNextRow();let t=null;const n=this._getSpanned();if(n)this._includeAllSlots&&!this._shouldSkipSlot()&&(t=this._formatOutValue(n.cell,n.row,n.column));else{const n=e.getChild(this._cellIndex);if(!n)return this._advanceToNextRow();const i=parseInt(n.getAttribute("colspan")||1),r=parseInt(n.getAttribute("rowspan")||1);(i>1||r>1)&&this._recordSpans(n,r,i),this._shouldSkipSlot()||(t=this._formatOutValue(n)),this._nextCellAtColumn=this._column+i}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,t||this.next()}
1skipRow(e){this._skipRows.add(e)}_advanceToNextRow(){return this._row++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return void 0!==this._endRow&&this._row>this._endRow}_isOverEndColumn(){return void 0!==this._endColumn&&this._column>this._endColumn}_formatOutValue(e,t=this._row,n=this._column){return{done:!1,value:new af(this,e,t,n)}}_shouldSkipSlot(){return this._skipRows.has(this._row)||this._row<this._startRow||this._column<this._startColumn||void 0!==this._endColumn&&this._column>this._endColumn}_getSpanned(){const e=this._spannedCells.get(this._row);return e&&e.get(this._column)||null}_recordSpans(e,t,n){const i={cell:e,row:this._row,column:this._column};for(let r=this._row;r<this._row+t;r++)for(let e=this._column;e<this._column+n;e++)r==this._row&&e==this._column||this._markSpannedCell(r,e,i)}_markSpannedCell(e,t,n){this._spannedCells.has(e)||this._spannedCells.set(e,new Map),this._spannedCells.get(e).set(t,n)}}class af{constructor(e,t,n,i){this.cell=t,this.row=e._row,this.column=e._column,this.cellAnchorRow=n,this.cellAnchorColumn=i,this._cellIndex=e._cellIndex,this._table=e._table}get isAnchor(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}get cellWidth(){return parseInt(this.cell.getAttribute("colspan")||1)}get cellHeight(){return parseInt(this.cell.getAttribute("rowspan")||1)}getPositionBefore(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}}function cf(e={}){return t=>t.on("insert:table",(t,n,i)=>{const r=n.item;if(!i.consumable.consume(r,"insert"))return;i.consumable.consume(r,"attribute:headingRows:table"),i.consumable.consume(r,"attribute:headingColumns:table");const s=e&&e.asWidget,o=i.writer.createContainerElement("figure",{class:"table"}),a=i.writer.createContainerElement("table");let c;var l,u;i.writer.insert(i.writer.createPositionAt(o,0),a),s&&((u=i.writer).setCustomProperty("table",!0,l=o),c=Pu(l,u,{hasSelectionHandle:!0}));const d=new of(r),h={headingRows:r.getAttribute("headingRows")||0,headingColumns:r.getAttribute("headingColumns")||0},p=new Map;for(const g of d){const{row:t,cell:n}=g,s=r.getChild(t),o=p.get(t)||df(a,s,t,h,i);p.set(t,o),i.consumable.consume(n,"insert"),uf(g,h,i.writer.createPositionAt(o,"end"),i,e)}for(const e of r.getChildren()){const t=e.index;p.has(t)||p.set(t,df(a,e,t,h,i))}const f=i.mapper.toViewPosition(n.range.start);i.mapper.bindElements(r,s?c:o),i.writer.insert(f,s?c:o)})}function lf(e,t,n){const{cell:i}=e,r=hf(e,t),s=n.mapper.toViewElement(i);s&&s.name!==r&&function(e,t,n){const i=n.writer,r=n.mapper.toViewElement(e),s=Au(i.createEditableElement(t,r.getAttributes()),i);Ou(s,i,(e,t,n)=>n.addClass(gf(t.classes),e),(e,t,n)=>n.removeClass(gf(t.classes),e)),i.insert(i.createPositionAfter(r),s),i.move(i.createRangeIn(r),i.createPositionAt(s,0)),i.remove(i.createRangeOn(r)),n.mapper.unbindViewElement(r),n.mapper.bindElements(e,s)}(i,r,n)}function uf(e,t,n,i,r){const s=r&&r.asWidget,o=hf(e,t),a=s?Au(i.writer.createEditableElement(o),i.writer):i.writer.createContainerElement(o);s&&Ou(a,i.writer,(e,t,n)=>n.addClass(gf(t.classes),e),(e,t,n)=>n.removeClass(gf(t.classes),e));const c=e.cell,l=c.getChild(0),u=1===c.childCount&&"paragraph"===l.name;if(i.writer.insert(n,a),u&&![...l.getAttributeKeys()].length){const e=c.getChild(0),t=i.writer.createPositionAt(a,"end");if(i.consumable.consume(e,"insert"),s){const n=i.writer.createContainerElement("span",{style:"display:inline-block"});i.mapper.bindElements(e,n),i.writer.insert(t,n),i.mapper.bindElements(c,a)}else i.mapper.bindElements(c,a),i.mapper.bindElements(e,a)}else i.mapper.bindElements(c,a)}function df(e,t,n,i,r){r.consumable.consume(t,"insert");const s=t.isEmpty?r.writer.createEmptyElement("tr"):r.writer.createContainerElement("tr");r.mapper.bindElements(t,s);const o=i.headingRows,a=function(e,t,n){return pf(e,t)||function(e,t,n){const i=n.writer.createContainerElement(e),r=n.writer.createPositionAt(t,"tbody"==e?"end":0);return n.writer.insert(r,i),i}(e,t,n)}(function(e,t){return e<t.headingRows?"thead":"tbody"}(n,i),e,r),c=r.writer.createPositionAt(a,o>0&&n>=o?n-o:n);return r.writer.insert(c,s),s}function hf(e,t){const{row:n,column:i}=e,{headingColumns:r,headingRows:s}=t;return s&&s>n||r&&r>i?"th":"td"}function pf(e,t){for(const n of t.getChildren())if(n.name==e)return n}function ff(e,t,n){const i=pf(e,t);i&&0===i.childCount&&n.writer.remove(n.writer.createRangeOn(i))}function gf(e){return Array.isArray(e)?e:[e]}class mf extends Hc{refresh(){const e=this.editor.model,t=e.schema,n=function(e){const t=e.parent;return t===t.root?t:t.parent}(e.document.selection.getFirstPosition());this.isEnabled=t.checkChild(n,"table")}execute(e={}){const t=this.editor.model,n=t.document.selection,i=this.editor.plugins.get("TableUtils"),r=Eu(n,t);t.change(n=>
1{const s=i.createTable(n,e);t.insertContent(s,r),n.setSelection(n.createPositionAt(s.getNodeByPath([0,0,0]),0))})}}function bf(e){const t=[];for(const n of Cf(e.getRanges())){const e=n.getContainedElement();e&&e.is("element","tableCell")&&t.push(e)}return t}function yf(e){const t=[];for(const n of e.getRanges()){const e=n.start.findAncestor("tableCell");e&&t.push(e)}return t}function vf(e){const t=bf(e);return t.length?t:yf(e)}function _f(e){return Sf(e.map(e=>e.parent.index))}function wf(e){const t=e[0].findAncestor("table");return Sf([...new of(t)].filter(t=>e.includes(t.cell)).map(e=>e.column))}function kf(e,t){if(e.length<2||!function(e){const t=e[0].findAncestor("table");if(!Pf(_f(e),parseInt(t.getAttribute("headingRows")||0)))return!1;const n=parseInt(t.getAttribute("headingColumns")||0);return Pf(wf(e),n)}(e))return!1;const n=new Set,i=new Set;let r=0;for(const s of e){const{row:e,column:o}=t.getCellLocation(s),a=parseInt(s.getAttribute("rowspan")||1),c=parseInt(s.getAttribute("colspan")||1);n.add(e),i.add(o),a>1&&n.add(e+a-1),c>1&&i.add(o+c-1),r+=a*c}return function(e,t){const n=Array.from(e.values()),i=Array.from(t.values());return(Math.max(...n)-Math.min(...n)+1)*(Math.max(...i)-Math.min(...i)+1)}(n,i)==r}function Cf(e){return Array.from(e).sort(Tf)}function Sf(e){const t=e.sort((e,t)=>e-t);return{first:t[0],last:t[t.length-1]}}function Tf(e,t){return e.start.isBefore(t.start)?-1:1}function Pf({first:e,last:t},n){return e<n==t<n}class Of extends Hc{constructor(e,t={}){super(e),this.order=t.order||"below"}refresh(){const e=this.editor.model.document.selection.getFirstPosition().findAncestor("table");this.isEnabled=!!e}execute(){const e=this.editor,t=e.model.document.selection,n=e.plugins.get("TableUtils"),i="above"===this.order,r=vf(t),s=_f(r),o=i?s.first:s.last,a=r[0].findAnce
1stor("table");n.insertRows(a,{at:i?o:o+1,copyStructureFromAbove:!i})}}class xf extends Hc{constructor(e,t={}){super(e),this.order=t.order||"right"}refresh(){const e=this.editor.model.document.selection.getFirstPosition().findAncestor("table");this.isEnabled=!!e}execute(){const e=this.editor,t=e.model.document.selection,n=e.plugins.get("TableUtils"),i="left"===this.order,r=vf(t),s=wf(r),o=i?s.first:s.last,a=r[0].findAncestor("table");n.insertColumns(a,{columns:1,at:i?o:o+1})}}class Af extends Hc{constructor(e,t={}){super(e),this.direction=t.direction||"horizontally"}refresh(){const e=vf(this.editor.model.document.selection);this.isEnabled=1===e.length}execute(){const e=vf(this.editor.model.document.selection)[0],t="horizontally"===this.direction,n=this.editor.plugins.get("TableUtils");t?n.splitCellHorizontally(e,2):n.splitCellVertically(e,2)}}function Ef(e,t,n){const{startRow:i,startColumn:r,endRow:s,endColumn:o}=t,a=n.createElement("table"),c=s-i+1;for(let u=0;u<c;u++)n.insertElement("tableRow",a,"end");const l=[...new of(e,{startRow:i,endRow:s,startColumn:r,endColumn:o,includeAllSlots:!0})];for(const{row:u,column:d,cell:h,isAnchor:p,cellAnchorRow:f,cellAnchorColumn:g}of l){const e=a.getChild(u-i);if(p){const t=n.cloneElement(h);n.append(t,e),Df(t,u,d,s,o,n)}else(f<i||g<r)&&tf(n,n.createPositionAt(e,"end"))}return function(e,t,n,i,r){const s=parseInt(t.getAttribute("headingRows")||0);s>0&&ef("headingRows",s-n,e,r,0);const o=parseInt(t.getAttribute("headingColumns")||0);o>0&&ef("headingColumns",o-i,e,r,0)}(a,e,i,r,n),a}function Mf(e,t,n=0){const i=[],r=new of(e,{startRow:n,endRow:t-1});for(const s of r){const{row:e,cellHeight:n}=s;e<t&&t<=e+n-1&&i.push(s)}return i}function If(e,t,n){const i=e.parent,r=i.parent,s=i.index,o=t-s,a={},c=parseInt(e.getAttribute("rowspan"))-o;c>1&&(a.rowspan=c);const l=parseInt(e.getAttribute("colspan")||1);l>1&&(a.colspan=l);const u=s+o,d=[...new of(r,{startRow:s,endRow:u,includeAllSlots:!0})];let h,p=null;for(const f of d){const{row:t,column:i,cell:r}=f;r===e&&void 0===h&&(h=i),void 0!==h&&h===i&&t===u&&(p=tf(n,f.getPositionBefore(),a))}return ef("rowspan",o,e,n),p}function Rf(e,t){const n=[],i=new of(e);for(const r of i){const{column:e,cellWidth:i}=r;e<t&&t<=e+i-1&&n.push(r)}return n}function Lf(e,t,n,i){const r=n-t,s={},o=parseInt(e.getAttribute("colspan"))-r;o>1&&(s.colspan=o);const a=parseInt(e.getAttribute("rowspan")||1);a>1&&(s.rowspan=a);const c=tf(i,i.createPositionAfter(e),s);return ef("colspan",r,e,i),c}function Df(e,t,n,i,r,s){const o=parseInt(e.getAttribute("colspan")||1),a=parseInt(e.getAttribute("rowspan")||1);n+o-1>r&&ef("colspan",r-n+1,e,s,1),t+a-1>i&&ef("rowspan",i-t+1,e,s,1)}function jf(e,t){const n=t.getColumns(e),i=new Array(n).fill(0);for(const{column:s}of new of(e))i[s]++;const r=i.reduce((e,t,n)=>t?e:[...e,n],[]);return r.length>0&&(t.removeColumns(e,{at:r[r.length-1]}),!0)}function Nf(e,t){const n=[];for(let i=0;i<e.childCount;i++)e.getChild(i).isEmpty&&n.push(i);return n.length>0&&(t.removeRows(e,{at:n[n.length-1]}),!0)}function Vf(e,t){jf(e,t)||Nf(e,t)}function zf(e,t){const n=Array.from(new of(e,{startColumn:t.firstColumn,endColumn:t.lastColumn,row:t.lastRow}));return n.every(({cellHeight:e})=>1===e)?t.lastRow:t.lastRow+(n[0].cellHeight-1)}function Ff(e,t){const n=Array.from(new of(e,{startRow:t.firstRow,endRow:t.lastRow,column:t.lastColumn}));return n.every(({cellWidth:e})=>1===e)?t.lastColumn:t.lastColumn+(n[0].cellWidth-1)}class Bf extends Hc{constructor(e,t){super(e),this.direction=t.direction,this.isHorizontal="right"==this.direction||"left"==this.direction}refresh(){const e=this._getMergeableCell();this.value=e,this.isEnabled=!!e}execute(){const e=this.editor.model,t=yf(e.document.selection)[0],n=this.value,i=this.direction;e.change(e=>{const r="right"==i||"down"==i,s=r?t:n,o=r?n:t,a=o.parent;!function(e,t,n){qf(e)||(qf(t)&&n.remove(n.createRangeIn(t)),n.move(n.createRangeIn(e),n.createPositionAt(t,"end"))),n.remove(e)}(o,s,e);const c=this.isHorizontal?"colspan":"rowspan",l=parseInt(t.getAttribute(c)||1),u=parseInt(n.getAttribute(c)||1);e.setAttribute(c,l+u,s),e.setSelection(e.createRangeIn(s));const d=this.editor.plugins.get("TableUtils");
1Vf(a.findAncestor("table"),d)})}_getMergeableCell(){const e=yf(this.editor.model.document.selection)[0];if(!e)return;const t=this.editor.plugins.get("TableUtils"),n=this.isHorizontal?function(e,t,n){const i="right"==t?e.nextSibling:e.previousSibling,r=(e.parent.parent.getAttribute("headingColumns")||0)>0;if(!i)return;const s="right"==t?e:i,o="right"==t?i:e,{column:a}=n.getCellLocation(s),{column:c}=n.getCellLocation(o),l=parseInt(s.getAttribute("colspan")||1),u=nf(n,s),d=nf(n,o);return r&&u!=d?void 0:a+l===c?i:void 0}(e,this.direction,t):function(e,t){const n=e.parent,i=n.parent,r=i.getChildIndex(n);if("down"==t&&r===i.childCount-1||"up"==t&&0===r)return;const s=parseInt(e.getAttribute("rowspan")||1),o=i.getAttribute("headingRows")||0;if(o&&("down"==t&&r+s===o||"up"==t&&r===o))return;const a=parseInt(e.getAttribute("rowspan")||1),c="down"==t?r+a:r,l=[...new of(i,{endRow:c})],u=l.find(t=>t.cell===e).column,d=l.find(({row:e,cellHeight:n,column:i})=>i===u&&("down"==t?e===c:c===e+n));return d&&d.cell}(e,this.direction);if(!n)return;const i=this.isHorizontal?"rowspan":"colspan",r=parseInt(e.getAttribute(i)||1);return parseInt(n.getAttribute(i)||1)===r?n:void 0}}function qf(e){return 1==e.childCount&&e.getChild(0).is("element","paragraph")&&e.getChild(0).isEmpty}class Uf extends Hc{refresh(){const e=vf(this.editor.model.document.selection),t=e[0];if(t){const n=t.findAncestor("table"),i=this.editor.plugins.get("TableUtils").getRows(n)-1,r=_f(e);this.isEnabled=!(0===r.first&&r.last===i)}else this.isEnabled=!1}execute(){const e=this.editor.model,t=vf(e.document.selection),n=_f(t),i=t[0],r=i.findAncestor("table"),s=this.editor.plugins.get("TableUtils").getCellLocation(i).column;e.change(e=>{const t=n.last-n.first+1;this.editor.plugins.get("TableUtils").removeRows(r,{at:n.first,rows:t});const i=function(e,t,n){const i=e.getChild(t)||e.getChild(e.childCount-1);let r=i.getChild(0),s=0;for(const o of i.getChildren()){if(s>n)return r;r=o,s+=parseInt(o.getAttribute("colspan")||1)}return r}(r,n.first,s);e.setSelection(e.createPositionAt(i,0))})}}class Hf extends Hc{refresh(){const e=vf(this.editor.model.document.selection),t=e[0];if(t){const n=t.findAncestor("table"),i=this.editor.plugins.get("TableUtils").getColumns(n),{first:r,last:s}=wf(e);this.isEnabled=s-r<i-1}else this.isEnabled=!1}execute(){const[e,t]=function(e){const t=vf(e),n=t[0],i=t.pop(),r=[n,i];return n.isBefore(i)?r:r.reverse()}(this.editor.model.document.selection),n=e.parent.parent,i=[...new of(n)],r={first:i.find(t=>t.cell===e).column,last:i.find(e=>e.cell===t).column},s=function(e,t,n,i){return parseInt(n.getAttribute("colspan")||1)>1?n:t.previousSibling||n.nextSibling?n.nextSibling||t.previousSibling:i.first?e.reverse().find(({column:e})=>e<i.first).cell:e.reverse().find(({column:e})=>e>i.last).cell}(i,e,t,r);this.editor.model.change(e=>{const t=r.last-r.first+1;this.editor.plugins.get("TableUtils").removeColumns(n,{at:r.first,columns:t}),e.setSelection(e.createPositionAt(s,0))})}}class Wf extends Hc{refresh(){const e=vf(this.editor.model.document.selection),t=e.length>0;this.isEnabled=t,this.value=t&&e.every(e=>this._isInHeading(e,e.parent.parent))}execute(e={}){if(e.forceValue===this.value)return;const t=this.editor.model,n=vf(t.document.selection),i=n[0].findAncestor("table"),{first:r,last:s}=_f(n),o=this.value?r:s+1,a=i.getAttribute("headingRows")||0;t.change(e=>{if(o){const t=Mf(i,o,o>a?a:0);for(const{cell:n}of t)If(n,o,e)}ef("headingRows",o,i,e,0)})}_isInHeading(e,t){const n=parseInt(t.getAttribute("headingRows")||0);return!!n&&e.parent.index<n}}class Gf extends Hc{refresh(){const e=vf(this.editor.model.document.selection),t=this.editor.plugins.get("TableUtils"),n=e.length>0;this.isEnabled=n,this.value=n&&e.every(e=>nf(t,e))}execute(e={}){if(e.forceValue===this.value)return;const t=this.editor.model,n=vf(t.document.selection),i=n[0].findAncestor("table"),{first:r,last:s}=wf(n),o=this.value?r:s+1;t.change(e=>{if(o){const t=Rf(i,o);for(const{cell:n,column:i}of t)Lf(n,i,o,e)}ef("headingColumns",o,i,e,0)})}}class Yf extends Vc{static get pluginName(){return"TableUtils"}getCellLocation(e){const t=e.parent,n=t.parent,i=n.getChildIndex(t),r=new of(n,{row:i});for(const{cell:s,row:o,column:a}of r)if(s===e)return{row:o,column:a}}createTable(e,t){const n=e.createElement("table");return $f(e,n,0,parseInt(t.rows)||2,parseInt(t.columns)||2),t.headingRows&&ef("headingRows",t.headingRows,n,e,0),t.headingColumns&&ef("headingColumns",t.headingColumns,n,e,0),n}insertRows(e,t={}){const n=this.editor.model,i=t.at||0,r=t.rows||1,s=void 0!==t.copyStructureFromAbove,o=t.copyStructureFromAbove?i-1:i,a=this.getRows(e),c=this.getColumns(e);n.change(t=>{const n=e.getAttribute("headingRows")||0;if(n>i&&ef("headingRows",n+r,e,t,0),!s&&(0===i||i===a))return void $f(t,e,i,r,c);const l=s?Math.max(i,o):i,u=new of(e,{endRow:l}),d=new Array(c).fill(1);for(const{row:e,column:a,cellHeight:c,cellWidth:h,cell:p}of u){const n=e+c-1,l=e<=o&&o<=n;e<i&&i<=n?(t.setAttribute("rowspan",c+r,p),d[a]=-h):s&&l&&(d[a]=h)}for(let s=0;s<r;s++){const n=t.createElement("tableRow");t.insert(n,e,i);for(let e=0;e<d.length;e++){const i=d[e],r=t.createPositionAt(n,"end");i>0&&tf(t,r,i>1?{colspan:i}:null),e+=Math.abs(i)-1}}})}insertColumns(e,t={}){const n=t.at||0,i=t.columns||1;this.editor.model.change(t=>{const r=e.getAttribute("headingColumns");n<r&&t.setAttribute("headingColumns",r+i,e);const s=this.getColumns(e);if(0===n||s===n){for(const r of e.getChildren())Zf(i,t,t.createPositionAt(r,n?"end":0));return}const o=new of(e,{column:n,includeAllSlots:!0});for(const e of o){const{row:r,cell:s,cellAnchorColumn:a,cellAnchorRow:c,cellWidth:l,cellHeight:u}=e;if(a<n){t.setAttribute("colspan",l+i,s);const e=c+u-1;for(let t=r;t<=e;t++)o.skipRow(t)}else Zf(i,t,e.getPositionBefore())}})}removeRows(e,t){const n=t.at,i=n+(t.rows||1)-1;this.editor.model.change(t=>{const{cellsToMove:r,cellsToTrim:s}=function(e,t,n){const i=new Map,r=[];for(const{row:s,column:o,cellHeight:a,cell:c}of new of(e,{endRow:n})){const e=s+a-1;if(s>=t&&s<=n&&e>n&&i.set(o,{cell:c,rowspan:a-(n-s+1)}),s<t&&e>=t){let i;i=e>=n?n-t+1:e-t+1,r.push({cell:c,rowspan:a-i})}}return{cellsToMove:i,cellsToTrim:r}}(e,n,i);r.size&&function(e,t,n,i){const r=[...new of(e,{includeAllSlots:!0,row:t})],s=e.getChild(t);let o;for(const{column:a,cell:c,isAnchor:l}of r)if(n.has(a)){const{cell:e,rowspan:t}
1=n.get(a),r=o?i.createPositionAfter(o):i.createPositionAt(s,0);i.move(i.createRangeOn(e),r),ef("rowspan",t,e,i),o=e}else l&&(o=c)}(e,i+1,r,t);for(let o=i;o>=n;o--)t.remove(e.getChild(o));for(const{rowspan:e,cell:n}of s)ef("rowspan",e,n,t);!function(e,t,n,i){const r=e.getAttribute("headingRows")||0;t<r&&ef("headingRows",n<r?r-(n-t+1):t,e,i,0)}(e,n,i,t),jf(e,this)||Nf(e,this)})}removeColumns(e,t){const n=t.at,i=t.at+(t.columns||1)-1;this.editor.model.change(t=>{!function(e,t,n){const i=e.getAttribute("headingColumns")||0;if(i&&t.first<i){const r=Math.min(i-1,t.last)-t.first+1;n.setAttribute("headingColumns",i-r,e)}}(e,{first:n,last:i},t);for(let r=i;r>=n;r--)for(const{cell:n,column:i,cellWidth:s}of[...new of(e)])i<=r&&s>1&&i+s>r?ef("colspan",s-1,n,t):i===r&&t.remove(n);Nf(e,this)||jf(e,this)})}splitCellVertically(e,t=2){const n=this.editor.model,i=e.parent.parent,r=parseInt(e.getAttribute("rowspan")||1),s=parseInt(e.getAttribute("colspan")||1);n.change(n=>{if(s>1){const{newCellsSpan:i,updatedSpan:o}=Qf(s,t);ef("colspan",o,e,n);const a={};i>1&&(a.colspan=i),r>1&&(a.rowspan=r),Zf(s>t?t-1:s-1,n,n.createPositionAfter(e),a)}if(s<t){const o=t-s,a=[...new of(i)],{column:c}=a.find(({cell:t})=>t===e),l=a.filter(({cell:t,cellWidth:n,column:i})=>t!==e&&i===c||i<c&&i+n>c);for(const{cell:e,cellWidth:t}of l)n.setAttribute("colspan",t+o,e);const u={};r>1&&(u.rowspan=r),Zf(o,n,n.createPositionAfter(e),u);const d=i.getAttribute("headingColumns")||0;d>c&&ef("headingColumns",d+o,i,n)}})}splitCellHorizontally(e,t=2){const n=this.editor.model,i=e.parent,r=i.parent,s=r.getChildIndex(i),o=parseInt(e.getAttribute("rowspan")||1),a=parseInt(e.getAttribute("colspan")||1);n.change(n=>{if(o>1){const i=[...new of(r,{startRow:s,endRow:s+o-1,includeAllSlots:!0})],{newCellsSpan:c,updatedSpan:l}=Qf(o,t);ef("rowspan",l,e,n);const{column:u}=i.find(({cell:t})=>t===e),d={};c>1&&(d.rowspan=c),a>1&&(d.colspan=a);for(const e of i){const{column:t,row:i}=e;i>=s+l&&t===u&&(i+s+l)%c==0&&Zf(1,n,e.getPositionBefore(),d)}}if(o<t){const i=t-o,c=[...new of(r,{startRow:0,endRow:s})];for(const{cell:t,cellHeight:r,row:o}of c)t!==e&&o+r>s&&n.setAttribute("rowspan",r+i,t);const l={};a>1&&(l.colspan=a),$f(n,r,s+1,i,1,l);const u=r.getAttribute("headingRows")||0;u>s&&ef("headingRows",u+i,r,n)}})}getColumns(e){return[...e.getChild(0).getChildren()].reduce((e,t)=>e+parseInt(t.getAttribute("colspan")||1),0)}getRows(e){return e.childCount}}function $f(e,t,n,i,r,s={}){for(let o=0;o<i;o++){const i=e.createElement("tableRow");e.insert(i,t,n),Zf(r,e,e.createPositionAt(i,"end"),s)}}function Zf(e,t,n,i={}){for(let r=0;r<e;r++)tf(t,n,i)}function Qf(e,t){if(e<t)return{newCellsSpan:1,updatedSpan:1};const n=Math.floor(e/t);return{newCellsSpan:n,updatedSpan:e-n*t+n}}class Xf extends Hc{refresh(){const e=bf(this.editor.model.document.selection);this.isEnabled=kf(e,this.editor.plugins.get(Yf))}execute(){const e=this.editor.model,t=this.editor.plugins.get(Yf);e.change(n=>{const i=bf(e.document.selection),r=i.shift(),{mergeWidth:s,mergeHeight:o}=function(e,t,n){let i=0,r=0;for(const a of t){const{row:e,column:t}=n.getCellLocation(a);i=eg(a,t,i,"colspan"),r=eg(a,e,r,"rowspan")}const{row:s,column:o}=n.getCellLocation(e);return{mergeWidth:i-o,mergeHeight:r-s}}(r,i,t);ef("colspan",s,r,n),ef("rowspan",o,r,n);for(const e of i)Kf(e,r,n);Vf(r.findAncestor("table"),t),n.setSelection(r,"in")})}}function Kf(e,t,n){Jf(e)||(Jf(t)&&n.remove(n.createRangeIn(t)),n.move(n.createRangeIn(e),n.createPositionAt(t,"end"))),n.remove(e)}function Jf(e){return 1==e.childCount&&e.getChild(0).is("element","paragraph")&&e.getChild(0).isEmpty}function eg(e,t,n,i){const r=parseInt(e.getAttribute(i)||1);return Math.max(n,t+r)}class tg extends Hc{refresh(){const e=vf(this.editor.model.document.selection);this.isEnabled=e.length>0}execute(){const e=this.editor.model,t=vf(e.document.selection),n=_f(t),i=t[0].findAnce
1stor("table"),r=[];for(let s=n.first;s<=n.last;s++)for(const t of i.getChild(s).getChildren())r.push(e.createRangeOn(t));e.change(e=>{e.setSelection(r)})}}class ng extends Hc{refresh(){const e=vf(this.editor.model.document.selection);this.isEnabled=e.length>0}execute(){const e=this.editor.model,t=vf(e.document.selection),n=t[0],i=t.pop(),r=n.findAncestor("table"),s=this.editor.plugins.get("TableUtils"),o=s.getCellLocation(n),a=s.getCellLocation(i),c=Math.min(o.column,a.column),l=Math.max(o.column,a.column),u=[];for(const d of new of(r,{startColumn:c,endColumn:l}))u.push(e.createRangeOn(d.cell));e.change(e=>{e.setSelection(u)})}}function ig(e,t){let n=!1;const i=function(e){const t=parseInt(e.getAttribute("headingRows")||0),n=e.childCount,i=[];for(const{row:r,cell:s,cellHeight:o}of new of(e)){if(o<2)continue;const e=r<t?t:n;r+o>e&&i.push({cell:s,rowspan:e-r})}return i}(e);if(i.length){n=!0;for(const e of i)ef("rowspan",e.rowspan,e.cell,t,1)}return n}function rg(e,t){let n=!1;const i=function(e){const t=new Array(e.childCount).fill(0);for(const{row:n}of new of(e,{includeAllSlots:!0}))t[n]++;return t}(e),r=[];for(const[o,a]of i.entries())a||r.push(o);if(r.length){n=!0;for(const n of r.reverse())t.remove(e.getChild(n)),i.splice(n,1)}const s=i[0];if(!i.every(e=>e===s)){const r=i.reduce((e,t)=>t>e?t:e,0);for(const[s,o]of i.entries()){const i=r-o;if(i){for(let n=0;n<i;n++)tf(t,t.createPositionAt(e.getChild(s),"end"));n=!0}}}return n}function sg(e){const t=e.attributeKey;return"attribute"===e.type&&("headingRows"===t||"colspan"===t||"rowspan"===t)}function og(e,t){let n=!1;for(const i of e.getChildren())n=ag(i,t)||n;return n}function ag(e,t){let n=!1;for(const i of e.getChildren())n=cg(i,t)||n;return n}function cg(e,t){if(0==e.childCount)return t.insertElement("paragraph",e),!0;const n=Array.from(e.getChildren()).filter(e=>e.is("$text"));for(const i of n)t.wrap(t.createRangeOn(i),"paragraph");return!!n.length}function lg(e){return!(!e.position||!e.position.parent.is("element","tableCell"))&&("insert"==e.type&&"$text"==e.name||"remove"==e.type)}function ug(e,t,n){if(!Array.from(e.getChildren()).some(e=>e.is("element","paragraph")))return!1;if("attribute"==t){const t=Array.from(e.getChild(0).getAttributeKeys()).length;return 1===e.childCount&&t<2}return e.childCount<=("insert"==t?n+1:1)}n(86);class dg extends Vc{static get pluginName(){return"TableEditing"}init(){const e=this.editor,t=e.model,n=t.schema,i=e.conversion;n.register("table",{allowWhere:"$block",allowAttributes:["headingRows","headingColumns"],isLimit:!0,isObject:!0,isBlock:!0}),n.register("tableRow",{allowIn:"table",isLimit:!0}),n.register("tableCell",{allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isObject:!0}),n.extend("$block",{allowIn:"tableCell"}),n.addChildCheck((e,t)=>{if("table"==t.name&&Array.from(e.getNames()).includes("table"))return!1}),i.for("upcast").add(e=>{e.on("element:table",(e,t,n)=>{const i=t.viewItem;if(!n.consumable.test(i,{name:!0}))return;const{rows:r,headingRows:s,headingColumns:o}=function(e){const t={headingRows:0,headingColumns:0},n=[],i=[];let r;for(const s of Array.from(e.getChildren()))if("tbody"===s.name||"thead"===s.name||"tfoot"===s.name){"thead"!==s.name||r||(r=s);const e=Array.from(s.getChildren()).filter(e=>e.is("element","tr"));for(const s of e)if("thead"===s.parent.name&&s.parent===r)t.headingRows++,n.push(s);else{i.push(s);const e=sf(s);e>t.headingColumns&&(t.headingColumns=e)}}return t.rows=[...n,...i],t}(i),a={};o&&(a.headingColumns=o),s&&(a.headingRows=s);const c=n.writer.createElement("table",a),l=n.splitToAllowedParent(c,t.modelCursor);if(l){if(n.writer.insert(c,l.position),n.consumable.consume(i,{name:!0}),r.forEach(e=>n.convertItem(e,n.writer.createPositionAt(c,"end"))),c.isEmpty){const e=n.writer.createElement("tableRow");n.writer.insert(e,n.writer.createPositionAt(c,"end")),tf(n.writer,n.writer.createPositionAt(e,"end"))}t.modelRange=n.writer.createRange(n.writer.createPositionBefore(c),n.writer.createPositionAfter(c)),t.modelCursor=l.cursorParent?n.writer.createPositionAt(l.cursorParent,0):t.modelRange.end}})}),i.for("editingDowncast").add(cf({asWidget:!0})),i.for("dataDowncast").add(cf()),i.for("upcast").elementToElement({model:"tableRow",view:"tr"}),i.for("upcast").add(e=>{e.on("element:tr",(e,t)=>{t.viewItem.isEmpty&&0==t.modelCursor.index&&e.stop()},{priority:"high"})}),i.for("editingDowncast").add(e=>e.on("insert:tableRow",(e,t,n)=>{const i=t.item;if(!n.consumable.consume(i,"insert"))return;const r=i.parent,s=function(e){for(const t of e.getChildren())if("table"===t.name)return t}(n.mapper.toViewElement(r)),o=r.getChildIndex(i),a=new of(r,{row:o}),c={headingRows:r.getAttribute("headingRows")||0,headingColumns:r.getAttribute("headingColumns")||0},l=new Map;for(const u of a){const e=l.get(o)||df(s,i,o,c,n);
1l.set(o,e),n.consumable.consume(u.cell,"insert"),uf(u,c,n.writer.createPositionAt(e,"end"),n,{asWidget:!0})}})),i.for("editingDowncast").add(e=>e.on("remove:tableRow",(e,t,n)=>{e.stop();const i=n.writer,r=n.mapper,s=r.toViewPosition(t.position).getLastMatchingPosition(e=>!e.item.is("element","tr")).nodeAfter,o=s.parent.parent,a=i.createRangeOn(s),c=i.remove(a);for(const l of i.createRangeIn(c).getItems())r.unbindViewElement(l);ff("thead",o,n),ff("tbody",o,n)},{priority:"higher"})),i.for("upcast").add(rf("td")),i.for("upcast").add(rf("th")),i.for("editingDowncast").add(e=>e.on("insert:tableCell",(e,t,n)=>{const i=t.item;if(!n.consumable.consume(i,"insert"))return;const r=i.parent,s=r.parent,o=s.getChildIndex(r),a=new of(s,{row:o}),c={headingRows:s.getAttribute("headingRows")||0,headingColumns:s.getAttribute("headingColumns")||0};for(const l of a)if(l.cell===i){const e=n.mapper.toViewElement(r);return void uf(l,c,n.writer.createPositionAt(e,r.getChildIndex(i)),n,{asWidget:!0})}})),i.attributeToAttribute({model:"colspan",view:"colspan"}),i.attributeToAttribute({model:"rowspan",view:"rowspan"}),i.for("editingDowncast").add(e=>e.on("attribute:headingColumns:table",(e,t,n)=>{const i=t.item;if(!n.consumable.consume(t.item,e.name))return;const r={headingRows:i.getAttribute("headingRows")||0,headingColumns:i.getAttribute("headingColumns")||0},s=t.attributeOldValue,o=t.attributeNewValue,a=(s>o?s:o)-1;for(const c of new of(i,{endColumn:a}))lf(c,r,n)})),e.commands.add("insertTable",new mf(e)),e.commands.add("insertTableRowAbove",new Of(e,{order:"above"})),e.commands.add("insertTableRowBelow",new Of(e,{order:"below"})),e.commands.add("insertTableColumnLeft",new xf(e,{order:"left"})),e.commands.add("insertTableColumnRight",new xf(e,{order:"right"})),e.commands.add("removeTableRow",new Uf(e)),e.commands.add("removeTableColumn",new Hf(e)),e.commands.add("splitTableCellVertically",new Af(e,{direction:"vertically"})),e.commands.add("splitTableCellHorizontally",new Af(e,{direction:"horizontally"})),e.commands.add("mergeTableCells",new Xf(e)),e.commands.add("mergeTableCellRight",new Bf(e,{direction:"right"})),e.commands.add("mergeTableCellLeft",new Bf(e,{direction:"left"})),e.commands.add("mergeTableCellDown",new Bf(e,{direction:"down"})),e.commands.add("mergeTableCellUp",new Bf(e,{direction:"up"})),e.commands.add("setTableColumnHeader",new Gf(e)),e.commands.add("setTableRowHeader",new Wf(e)),e.commands.add("selectTableRow",new tg(e)),e.commands.add("selectTableColumn",new ng(e)),function(e){e.document.registerPostFixer(()=>function(e){const t=e.document.differ,n=new Set;for(const i of t.getChanges()){if("attribute"!=i.type)continue;const e=i.range.start.nodeAfter;e&&e.is("element","table")&&"headingRows"==i.attributeKey&&n.add(e)}if(n.size){for(const e of n.values())t.refreshItem(e);return!0}return!1}(e))}(t),function(e){e.document.registerPostFixer(t=>function(e,t){const n=t.document.differ.getChanges();let i=!1;const r=new Set;for(const s of n){let t;"table"==s.name&&"insert"==s.type&&(t=s.position.nodeAfter),"tableRow"!=s.name&&"tableCell"!=s.name||(t=s.position.findAncestor("table")),sg(s)&&(t=s.range.start.findAncestor("table")),t&&!r.has(t)&&(i=ig(t,e)||i,i=rg(t,e)||i,r.add(t))}return i}(t,e))}(t),function(e){e.document.registerPostFixer(()=>function(e){const t=e.document.differ,n=new Set;let i=0;for(const r of t.getChanges()){const e="insert"==r.type||"remove"==r.type?r.position.parent:r.range.start.parent;e.is("element","tableCell")&&("insert"==r.type&&i++,ug(e,r.type,i)&&n.add(e))}if(n.size){for(const e of n.values())t.refreshItem(e);return!0}return!1}(e))}(t),function(e){e.document.registerPostFixer(t=>function(e,t){const n=t.document.differ.getChanges();let i=!1;for(const r of n)"insert"==r.type&&"table"==r.name&&(i=og(r.position.nodeAfter,e)||i),"insert"==r.type&&"tableRow"==r.name&&(i=ag(r.position.nodeAfter,e)||i),"insert"==r.type&&"tableCell"==r.name&&(i=cg(r.position.nodeAfter,e)||i),lg(r)&&(i=cg(r.position.parent,e)||i);return i}(t,e))}(t)}static get requires(){return[Yf]}}n(88);class hg extends Ka{constructor(e){super(e);const t=this.bindTemplate;this.set("icon"),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke"),this.set("label"),this.set("tabindex",-1),this.set("tooltip"),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(),this.arrowView=this._createArrowView(),this.keystrokes=new ga,this.focusTracker=new Sa,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",t.if("isVisible","ck-hidden",e=>!e),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",(e,t)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),t())}),this.keystrokes.set("arrowleft",(e,t)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),t())})}focus(){this.actionView.focus()}_createActionView(){const e=new kc;return e.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),e.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),e.delegate("execute").to(this),e}_createArrowView(){const e=new kc,t=e.bindTemplate;return e.icon=Cc,e.extendTemplate({attributes:{class:"ck-splitbutton__arrow","aria-haspopup":!0,"aria-expanded":t.to("isOn",e=>String(e))}}),e.bind("isEnabled").to(this),e.delegate("execute").to(this,"open"),e}}n(90);
1class pg extends Ka{constructor(e){super(e);const t=this.bindTemplate;this.items=this._createGridCollection(),this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",(e,t)=>`${t} \xd7 ${e}`),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"[email protected]":t.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck-insert-table-dropdown__label"]},children:[{text:t.to("label")}]}],on:{mousedown:t.to(e=>{e.preventDefault()}),click:t.to(()=>{this.fire("execute")})}}),this.on("boxover",(e,t)=>{const{row:n,column:i}=t.target.dataset;this.set({rows:parseInt(n),columns:parseInt(i)})}),this.on("change:columns",()=>{this._highlightGridBoxes()}),this.on("change:rows",()=>{this._highlightGridBoxes()})}focus(){}focusLast(){}_highlightGridBoxes(){const e=this.rows,t=this.columns;this.items.map((n,i)=>{const r=Math.floor(i/10)<e&&i%10<t;n.set("isOn",r)})}_createGridCollection(){const e=[];for(let t=0;t<100;t++){const n=Math.floor(t/10);e.push(new fg(this.locale,n+1,t%10+1))}return this.createCollection(e)}}class fg extends Ka{constructor(e,t,n){super(e);const i=this.bindTemplate;this.set("isOn",!1),this.setTemplate({tag:"div",attributes:{class:["ck-insert-table-dropdown-grid-box",i.if("isOn","ck-on")],"data-row":t,"data-column":n}})}}class gg extends Vc{init(){const e=this.editor,t=this.editor.t,n="ltr"===e.locale.contentLanguageDirection;e.ui.componentFactory.add("insertTable",n=>{const i=e.commands.get("insertTable"),r=Ec(n);let s;return r.bind("isEnabled").to(i),r.buttonView.set({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 6v3h4V6H3zm0 4v3h4v-3H3zm0 4v3h4v-3H3zm5 3h4v-3H8v3zm5 0h4v-3h-4v3zm4-4v-3h-4v3h4zm0-4V6h-4v3h4zm1.5 8a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 17V4c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13zM12 13v-3H8v3h4zm0-4V6H8v3h4z"/></svg>',label:t("Insert table"),tooltip:!0}),r.on("change:isOpen",()=>{s||(s=new pg(n),r.panelView.children.add(s),s.delegate("execute").to(r),r.buttonView.on("open",()=>{s.rows=0,s.columns=0}),r.on("execute",()=>{e.execute("insertTable",{rows:s.rows,columns:s.columns}),e.editing.view.focus()}))}),r}),e.ui.componentFactory.add("tableColumn",e=>{const i=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:t("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:n?"insertTableColumnLeft":"insertTableColumnRight",label:t("Insert column left")}},{type:"button",model:{commandName:n?"insertTableColumnRight":"insertTableColumnLeft",label:t("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:t("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:t("Select column")}}];return this._prepareDropdown(t("Column"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M18 7v1H2V7h16zm0 5v1H2v-1h16z" opacity=".6"/><path d="M14 1v18a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1zm-2 1H8v4h4V2zm0 6H8v4h4V8zm0 6H8v4h4v-4z"/></svg>',i,e)}),e.ui.componentFactory.add("tableRow",e=>{const n=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:t("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:t("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:t("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:t("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:t("Select row")}}];return this._prepareDropdown(t("Row"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v16h-1V2z" opacity=".6"/><path d="M1 6h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1 2v4h4V8H2zm6 0v4h4V8H8zm6 0v4h4V8h-4z"/></svg>',n,e)}),e.ui.componentFactory.add("mergeTableCells",e=>{const i=[{type:"button",model:{commandName:"mergeTableCellUp",label:t("Merge cell up")}},{type:"button",model:{commandName:n?"mergeTableCellRight":"mergeTableCellLeft",label:t("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:t("Merge cell down")}},{type:"button",model:{commandName:n?"mergeTableCellLeft":"mergeTableCellRight",label:t("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:t("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:t("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(t("Merge cells"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v7h-1V2zm6 5v1H2V7h16zM8 12v1H2v-1h6z" opacity=".6"/><path d="M7 7h12a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm1 2v9h10V9H8z"/></svg>',i,e)})}_prepareDropdown(e,t,n,i){const r=this.editor,s=Ec(i),o=this._fillDropdownWithListOptions(s,n);return s.buttonView.set({label:e,icon:t,tooltip:!0}),s.bind("isEnabled").toMany(o,"isEnabled",(...e)=>e.some(e=>e)),this.listenTo(s,"execute",e=>{r.execute(e.source.commandName),r.editing.view.focus()}),s}_prepareMergeSplitButtonDropdown(e,t,n,i){const r=this.editor,s=Ec(i,hg);return this._fillDropdownWithListOptions(s,n),s.buttonView.set({label:e,icon:t,tooltip:!0,isEnabled:!0}),this.listenTo(s.buttonView,"execute",()=>{r.execute("mergeTableCells"),r.editing.view.focus()}),this.listenTo(s,"execute",e=>{r.execute(e.source.commandName),r.editing.view.focus()}),s}_fillDropdownWithListOptions(e,t){const n=this.editor,i=[],r=new Pt;for(const s of t)mg(s,n,i,r);return Mc(e,r),i}}function mg(e,t,n,i){const r=e.model=new Ph(e.model),{commandName:s,bindIsOn:o}=e.model;if("button"===e.type||"switchbutton"===e.type){const e=t.commands.get(s);n.push(e),r.set({commandName:s}),r.bind("isEnabled").to(e),o&&r.bind("isOn").to(e,"value")}r.set({withText:!0}),i.add(e)}n(92);class bg extends Vc{static get pluginName(){return"TableSelection"}static get requires(){return[Yf]}init(){this.listenTo(this.editor.model,"deleteContent",(e,t)=>this._handleDeleteContent(e,t),{priority:"high"}
1),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const e=bf(this.editor.model.document.selection);return 0==e.length?null:e}getSelectionAsFragment(){const e=this.getSelectedTableCells();return e?this.editor.model.change(t=>{const n=t.createDocumentFragment(),i=this.editor.plugins.get("TableUtils"),{first:r,last:s}=wf(e),{first:o,last:a}=_f(e),c=e[0].findAncestor("table");let l=a,u=s;if(kf(e,i)){const e={firstColumn:r,lastColumn:s,firstRow:o,lastRow:a};l=zf(c,e),u=Ff(c,e)}const d=Ef(c,{startRow:o,startColumn:r,endRow:l,endColumn:u},t);return t.insert(d,n,0),n}):null}setCellSelection(e,t){const n=this._getCellsToSelect(e,t);this.editor.model.change(e=>{e.setSelection(n.cells.map(t=>e.createRangeOn(t)),{backward:n.backward})})}getFocusCell(){const e=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return e&&e.is("element","tableCell")?e:null}getAnchorCell(){const e=Zl(this.editor.model.document.selection.getRanges()).getContainedElement();return e&&e.is("element","tableCell")?e:null}_defineSelectionConverter(){const e=this.editor,t=new Set;e.conversion.for("editingDowncast").add(e=>e.on("selection",(e,n,i)=>{const r=i.writer;!function(e){for(const n of t)e.removeClass("ck-editor__editable_selected",n);t.clear()}(r);const s=this.getSelectedTableCells();if(!s)return;for(const a of s){const e=i.mapper.toViewElement(a);r.addClass("ck-editor__editable_selected",e),t.add(e)}const o=i.mapper.toViewElement(s[s.length-1]);r.setSelection(o,0)},{priority:"lowest"}))}_enablePluginDisabling(){const e=this.editor;this.on("change:isEnabled",()=>{if(!this.isEnabled){const t=this.getSelectedTableCells();if(!t)return;e.model.change(n=>{const i=n.createPositionAt(t[0],0),r=e.model.schema.getNearestSelectionRange(i);n.setSelection(r)})}})}_handleDeleteContent(e,t){const[n,i]=t,r=this.editor.model,s=!i||"backward"==i.direction,o=bf(n);o.length&&(e.stop(),r.change(e=>{const t=o[s?o.length-1:0];r.change(e=>{for(const t of o)r.deleteContent(e.createSelection(t,"in"))});const i=r.schema.getNearestSelectionRange(e.createPositionAt(t,0));n.is("documentSelection")?e.setSelection(i):n.setTo(i)}))}_getCellsToSelect(e,t){const n=this.editor.plugins.get("TableUtils"),i=n.getCellLocation(e),r=n.getCellLocation(t),s=Math.min(i.row,r.row),o=Math.max(i.row,r.row),a=Math.min(i.column,r.column),c=Math.max(i.column,r.column),l=new Array(o-s+1).fill(null).map(()=>[]),u={startRow:s,endRow:o,startColumn:a,endColumn:c};for(const{row:p,cell:f}of new of(e.findAncestor("table"),u))l[p-s].push(f);const d=r.row<i.row,h=r.column<i.column;return d&&l.reverse(),h&&l.forEach(e=>e.reverse()),{cells:l.flat(),backward:d||h}}}class yg extends Vc{static get pluginName(){return"TableClipboard"}static get requires(){return[bg,Yf]}init(){const e=this.editor,t=e.editing.view.document;this.listenTo(t,"copy",(e,t)=>this._onCopyCut(e,t)),this.listenTo(t,"cut",(e,t)=>this._onCopyCut(e,t)),this.listenTo(e.model,"insertContent",(e,t)=>this._onInsertContent(e,...t),{priority:"high"})}_onCopyCut(e,t){const n=this.editor.plugins.get(bg);if(!n.getSelectedTableCells())return;if("cut"==e.name&&this.editor.isReadOnly)return;t.preventDefault(),e.stop();const i=this.editor.editing.view.document,r=this.editor.data.toView(n.getSelectionAsFragment());i.fire("clipboardOutput",{dataTransfer:t.dataTransfer,content:r,method:e.name})}_onInsertContent(e,t,n){if(n&&!n.is("documentSelection"))return;const i=this.editor.model,r=this.editor.plugins.get(Yf);let s=function(e,t){if(!e.is("documentFragment")&&!e.is("element"))return null;if(e.is("element","table"))return e;if(1==e.childCount&&e.getChild(0).is("element","table"))return e.getChild(0);const n=t.createRangeIn(e);for(const i of n.getItems())if(i.is("element","table")){const e=t.createRange(n.start,t.createPositionBefore(i));if(t.hasContent(e,{ignoreWhitespaces:!0}))return null;const r=t.createRange(t.createPositionAfter(i),n.end);return t.hasContent(r,{ignoreWhitespaces:!0})?null:i}return null}(t,i);if(!s)return;const o=vf(i.document.selection);o.length?(e.stop(),i.change(e=>{const t={width:r.getColumns(s),height:r.getRows(s)}
1,n=function(e,t,n,i){const r=e[0].findAncestor("table"),s=wf(e),o=_f(e),a={firstColumn:s.first,lastColumn:s.last,firstRow:o.first,lastRow:o.last},c=1===e.length;return c&&(a.lastRow+=t.height-1,a.lastColumn+=t.width-1,function(e,t,n,i){const r=i.getColumns(e),s=i.getRows(e);n>r&&i.insertColumns(e,{at:r,columns:n-r}),t>s&&i.insertRows(e,{at:s,rows:t-s})}(r,a.lastRow+1,a.lastColumn+1,i)),c||!kf(e,i)?function(e,t,n){const{firstRow:i,lastRow:r,firstColumn:s,lastColumn:o}=t,a={first:i,last:r},c={first:s,last:o};_g(e,s,a,n),_g(e,o+1,a,n),vg(e,i,c,n),vg(e,r+1,c,n,i)}(r,a,n):(a.lastRow=zf(r,a),a.lastColumn=Ff(r,a)),a}(o,t,e,r),i=n.lastColumn-n.firstColumn+1,a={startRow:0,startColumn:0,endRow:Math.min(n.lastRow-n.firstRow+1,t.height)-1,endColumn:Math.min(i,t.width)-1};s=Ef(s,a,e);const c=o[0].findAncestor("table"),l=function(e,t,n,i,r){const{width:s,height:o}=t,a=function(e,t,n){const i=new Array(n).fill(null).map(()=>new Array(t).fill(null));for(const{column:r,row:s,cell:o}of new of(e))i[s][r]=o;return i}(e,s,o),c=[...new of(n,{startRow:i.firstRow,endRow:i.lastRow,startColumn:i.firstColumn,endColumn:i.lastColumn,includeAllSlots:!0})],l=[];let u;for(const f of c){const{row:e,column:t,cell:n,isAnchor:c}=f;t===i.firstColumn&&(u=f.getPositionBefore()),c&&r.remove(n);const d=a[(e-i.firstRow)%o][(t-i.firstColumn)%s];if(!d)continue;const h=r.cloneElement(d);Df(h,e,t,i.lastRow,i.lastColumn,r),r.insert(h,u),l.push(h),u=r.createPositionAfter(h)}const d=parseInt(n.getAttribute("headingRows")||0),h=parseInt(n.getAttribute("headingColumns")||0),p=i.firstColumn<h&&h<=i.lastColumn;if(i.firstRow<d&&d<=i.lastRow){const e=vg(n,d,{first:i.firstColumn,last:i.lastColumn},r,i.firstRow);l.push(...e)}if(p){const e=_g(n,h,{first:i.firstRow,last:i.lastRow},r);l.push(...e)}return l}(s,t,c,n,e);if(this.editor.plugins.get("TableSelection").isEnabled){const t=Cf(l.map(t=>e.createRangeOn(t)));e.setSelection(t)}else e.setSelection(l[0],0)})):Vf(s,r)}}function vg(e,t,n,i,r=0){if(!(t<1))return Mf(e,t,r).filter(({column:e,cellWidth:t})=>wg(e,t,n)).map(({cell:e})=>If(e,t,i))}function _g(e,t,n,i){if(!(t<1))return Rf(e,t).filter(({row:e,cellHeight:t})=>wg(e,t,n)).map(({cell:e,column:n})=>Lf(e,n,t,i))}function wg(e,t,n){const i=e+t-1,{first:r,last:s}=n;return e>=r&&e<=s||e<r&&i>=r}class kg extends Vc{static get pluginName(){return"TableKeyboard"}static get requires(){return[bg]}init(){const e=this.editor.editing.view.document;this.editor.keystrokes.set("Tab",(...e)=>this._handleTabOnSelectedTable(...e),{priority:"low"}),this.editor.keystrokes.set("Tab",this._getTabHandler(!0),{priority:"low"}),this.editor.keystrokes.set("Shift+Tab",this._getTabHandler(!1),{priority:"low"}),this.listenTo(e,"keydown",(...e)=>this._onKeydown(...e),{priority:pt.get("high")-10})}_handleTabOnSelectedTable(e,t){const n=this.editor,i=n.model.document.selection;if(!i.isCollapsed&&1===i.rangeCount&&i.getFirstRange().isFlat){const e=i.getSelectedElement();if(!e||!e.is("element","table"))return;t(),n.model.change(t=>{t.setSelection(t.createRangeIn(e.getChild(0).getChild(0)))})}}_getTabHandler(e){const t=this.editor;return(n,i)=>{const r=yf(t.model.document.selection)[0];if(!r)return;i();const s=r.parent,o=s.parent,a=o.getChildIndex(s),c=s.getChildIndex(r),l=0===c;if(!e&&l&&0===a)return;const u=c===s.childCount-1;if(e&&a===o.childCount-1&&u&&(t.execute("insertTableRowBelow"),a===o.childCount-1))return;let d;if(e&&u){const e=o.getChild(a+1);d=e.getChild(0)}else if(!e&&l){const e=o.getChild(a-1);d=e.getChild(e.childCount-1)}else d=s.getChild(c+(e?1:-1));t.model.change(e=>{e.setSelection(e.createRangeIn(d))})}}_onKeydown(e,t){const n=this.editor,i=t.keyCode;if(!ci(i))return;const r=li(i,n.locale.contentLanguageDirection);this._handleArrowKeys(r,t.shiftKey)&&(t.preventDefault(),t.stopPropagation(),e.stop())}_handleArrowKeys(e,t){const n=this.editor.model,i=n.document.selection,r=["right","down"].includes(e),s=bf(i);if(s.length){let n;return n=t?this.editor.plugins.get("TableSelection").getFocusCell():r?s[s.length-1]:s[0],this._navigateFromCellInDirection(n,e,t),!0}const o=i.focus.findAncestor("tableCell");if(!o)return!1;const a=n.createRangeIn(o);if(this._isSelectionAtCellEdge(i,r))return this._navigateFromCellInDirection(o,e,t),!0;const c=this._findTextRangeFromSelection(a,i,r);return c?!["left","right"].includes(e)&&(this._isSingleLineRange(c,r)?(n.change(e=>{const s=r?a.end:a.start;if(t){const t=n.createSelection(i.anchor);t.setFocus(s),e.setSelection(t)}else e.setSelection(s)}),!0):void 0):(this._navigateFromCellInDirection(o,e,t),!0)}_isSelectionAtCellEdge(e,t){const n=this.editor.model,i=this.editor.model.schema,r=t?e.getLastPosition():e.getFirstPosition();if(!i.getLimitElement(r).is("element","tableCell"))return!1;const s=n.createSelection(r);return n.modifySelection(s,{direction:t?"forward":"backward"}),r.isEqual(s.focus)}_findTextRangeFromSelection(e,t,n){const i=this.editor.model;if(n){const n=t.getLastPosition(),r=this._getNearestVisibleTextPosition(e,"backward");
1return r&&n.isBefore(r)?i.createRange(n,r):null}{const n=t.getFirstPosition(),r=this._getNearestVisibleTextPosition(e,"forward");return r&&n.isAfter(r)?i.createRange(r,n):null}}_getNearestVisibleTextPosition(e,t){const n=this.editor.model.schema,i=this.editor.editing.mapper;for(const{nextPosition:r,item:s}of e.getWalker({direction:t}))if(n.checkChild(r,"$text")){const e=i.toViewElement(s);if(e&&!e.hasClass("ck-hidden"))return r}}_isSingleLineRange(e,t){const n=this.editor.model,i=this.editor.editing,r=i.view.domConverter;if(t){const t=n.createSelection(e.start);n.modifySelection(t),t.focus.isAtEnd||e.start.isEqual(t.focus)||(e=n.createRange(t.focus,e.end))}const s=i.mapper.toViewRange(e),o=r.viewRangeToDom(s),a=Fr.getDomRangeRects(o);let c;for(const l of a)if(void 0!==c){if(Math.round(l.top)>=c)return!1;c=Math.max(c,Math.round(l.bottom))}else c=Math.round(l.bottom);return!0}_navigateFromCellInDirection(e,t,n=!1){const i=this.editor.model,r=e.findAncestor("table"),s=[...new of(r,{includeAllSlots:!0})],{row:o,column:a}=s[s.length-1],c=s.find(({cell:t})=>t==e);let{row:l,column:u}=c;switch(t){case"left":u--;break;case"up":l--;break;case"right":u+=c.cellWidth;break;case"down":l+=c.cellHeight}if(l<0||l>o||u<0&&l<=0||u>a&&l>=o)return void i.change(e=>{e.setSelection(e.createRangeOn(r))});u<0?(u=n?0:a,l--):u>a&&(u=n?a:0,l++);const d=s.find(e=>e.row==l&&e.column==u).cell,h=["right","down"].includes(t),p=this.editor.plugins.get("TableSelection");if(n&&p.isEnabled){const t=p.getAnchorCell()||e;p.setCellSelection(t,d)}else{const e=i.createPositionAt(d,h?0:"end");i.change(t=>{t.setSelection(e)})}}}class Cg extends _r{constructor(e){super(e),this.domEventType=["mousemove","mouseup","mouseleave"]}onDomEvent(e){this.fire(e.type,e)}}class Sg extends Vc{static get pluginName(){return"TableMouse"}static get requires(){return[bg]}init(){this.editor.editing.view.addObserver(Cg),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const e=this.editor;let t=!1;const n=e.plugins.get(bg);this.listenTo(e.editing.view.document,"mousedown",(i,r)=>{if(!this.isEnabled||!n.isEnabled)return;if(!r.domEvent.shiftKey)return;const s=n.getAnchorCell()||yf(e.model.document.selection)[0];if(!s)return;const o=this._getModelTableCellFromDomEvent(r);o&&Tg(s,o)&&(t=!0,n.setCellSelection(s,o),r.preventDefault())}),this.listenTo(e.editing.view.document,"mouseup",()=>{t=!1}),this.listenTo(e.editing.view.document,"selectionChange",e=>{t&&e.stop()},{priority:"highest"})}_enableMouseDragSelection(){const e=this.editor;let t,n,i=!1,r=!1;const s=e.plugins.get(bg);this.listenTo(e.editing.view.document,"mousedown",(e,n)=>{this.isEnabled&&s.isEnabled&&(n.domEvent.shiftKey||n.domEvent.ctrlKey||n.domEvent.altKey||(t=this._getModelTableCellFromDomEvent(n)))}),this.listenTo(e.editing.view.document,"mousemove",(e,o)=>{if(!o.domEvent.buttons)return;if(!t)return;const a=this._getModelTableCellFromDomEvent(o);a&&Tg(t,a)&&(n=a,i||n==t||(i=!0)),i&&(r=!0,s.setCellSelection(t,n),o.preventDefault())}),this.listenTo(e.editing.view.document,"mouseup",()=>{i=!1,r=!1,t=null,n=null}),this.listenTo(e.editing.view.document,"selectionChange",e=>{r&&e.stop()},{priority:"highest"})}_getModelTableCellFromDomEvent(e){const t=this.editor.editing.view.createPositionAt(e.target,0);return this.editor.editing.mapper.toModelPosition(t).parent.findAncestor("tableCell",{includeSelf:!0})}}function Tg(e,t){return e.parent.parent==t.parent.parent}function Pg(e){const t=e.getSelectedElement();return t&&xg(t)?t:null}function Og(e){const t=function(e,t){let n=t.parent;for(;n;){if("table"===n.name)return n;n=n.parent}}(0,e.getFirstPosition());return t&&xg(t.parent)?t.parent:null}function xg(e){return!!e.getCustomProperty("table")&&Tu(e)}n(94);class Ag{constructor(e,t){this.model=e,this.testCallback=t,this.hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",()=>{this.isEnabled?this._startListening():(this.stopListening(e.document.selection),this.stopListening(e.document))}),this._startListening()}_startListening(){const e=this.model.document;this.listenTo(e.selection,"change:range",(t,{directChange:n})=>{n&&(e.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this.hasMatch=!1))}),this.listenTo(e,"change:data",(e,t)=>{"transparent"!=t.type&&this._evaluateTextBeforeSelection("data",{batch:t})})}_evaluateTextBeforeSelection(e,t={}){const n=this.model,i=n.document.selection,r=n.createRange(n.createPositionAt(i.focus.parent,0),i.focus),{text:s,range:o}=function(e,t){let n=e.start;return{text:Array.from(e.getItems()).reduce((e,i)=>i.is("$text")||i.is("$textProxy")?e+i.data:(n=t.createPositionAfter(i),""),""),range:t.createRange(n,e.end)}}(r,n),a=this.testCallback(s);if(!a&&this.hasMatch&&this.fire("unmatched"),this.hasMatch=!!a,a){const n=Object.assign(t,{text:s,range:o});
1"object"==typeof a&&Object.assign(n,a),this.fire("matched:"+e,n)}}}Tt(Ag,An);var Eg=/[\\^$.*+?()[\]{}|]/g,Mg=RegExp(Eg.source);const Ig={copyright:{from:"(c)",to:"\xa9"},registeredTrademark:{from:"(r)",to:"\xae"},trademark:{from:"(tm)",to:"\u2122"},oneHalf:{from:"1/2",to:"\xbd"},oneThird:{from:"1/3",to:"\u2153"},twoThirds:{from:"2/3",to:"\u2154"},oneForth:{from:"1/4",to:"\xbc"},threeQuarters:{from:"3/4",to:"\xbe"},lessThanOrEqual:{from:"<=",to:"\u2264"},greaterThanOrEqual:{from:">=",to:"\u2265"},notEqual:{from:"!=",to:"\u2260"},arrowLeft:{from:"<-",to:"\u2190"},arrowRight:{from:"->",to:"\u2192"},horizontalEllipsis:{from:"...",to:"\u2026"},enDash:{from:/(^| )(--)( )$/,to:[null,"\u2013",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"\u2014",null]},quotesPrimary:{from:Vg('"'),to:[null,"\u201c",null,"\u201d"]},quotesSecondary:{from:Vg("'"),to:[null,"\u2018",null,"\u2019"]},quotesPrimaryEnGb:{from:Vg("'"),to:[null,"\u2018",null,"\u2019"]},quotesSecondaryEnGb:{from:Vg('"'),to:[null,"\u201c",null,"\u201d"]},quotesPrimaryPl:{from:Vg('"'),to:[null,"\u201e",null,"\u201d"]},quotesSecondaryPl:{from:Vg("'"),to:[null,"\u201a",null,"\u2019"]}},Rg={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},Lg=["symbols","mathematical","typography","quotes"];function Dg(e){return"string"==typeof e?new RegExp(`(${function(e){return(e=Xt(e))&&Mg.test(e)?e.replace(Eg,"\\$&"):e}(e)})$`):e}function jg(e){return"string"==typeof e?()=>[e]:e instanceof Array?()=>e:e}function Ng(e){return(e.textNode?e.textNode:e.nodeAfter).getAttributes()}function Vg(e){return new RegExp(`(^|\\s)(${e})([^${e}]*)(${e})$`)}class zg extends Nc{}zg.builtinPlugins=[class extends Vc{static get requires(){return[Uc,Qc,ol,el,_l,Bl]}static get pluginName(){return"Essentials"}},Yl,class extends Vc{static get pluginName(){return"Autoformat"}afterInit(){this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats()}_addListAutoformats(){const e=this.editor.commands;e.get("bulletedList")&&Ql(this.editor,this,/^[*-]\s$/,"bulletedList"),e.get("numberedList")&&Ql(this.editor,this,/^1[.|)]\s$/,"numberedList")}_addBasicStylesAutoformats(){const e=this.editor.commands;if(e.get("bold")){const e=Jl(this.editor,"bold");Xl(this.editor,this,/(\*\*)([^*]+)(\*\*)$/g,e),Xl(this.editor,this,/(__)([^_]+)(__)$/g,e)}if(e.get("italic")){const e=Jl(this.editor,"italic");Xl(this.editor,this,/(?:^|[^*])(\*)([^*_]+)(\*)$/g,e),Xl(this.editor,this,/(?:^|[^_])(_)([^_]+)(_)$/g,e)}if(e.get("code")){const e=Jl(this.editor,"code");Xl(this.editor,this,/(`)([^`]+)(`)$/g,e)}if(e.get("strikethrough")){const e=Jl(this.editor,"strikethrough");Xl(this.editor,this,/(~~)([^~]+)(~~)$/g,e)}}_addHeadingAutoformats(){const e=this.editor.commands.get("heading");e&&e.modelElements.filter(e=>e.match(/^heading[1-6]$/)).forEach(t=>{const n=new RegExp(`^(#{${t[7]}})\\s$`);Ql(this.editor,this,n,()=>{if(!e.isEnabled||e.value===t)return!1;this.editor.execute("heading",{value:t})})})}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&Ql(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){this.editor.commands.get("codeBlock")&&Ql(this.editor,this,/^```$/,"codeBlock")}},class extends Vc{static get requires(){return[tu,nu]}static get pluginName(){return"Bold"}},class extends Vc{static get requires(){return[iu,ru]}static get pluginName(){return"Italic"}},class extends Vc{static get requires(){return[lu,uu]}static get pluginName(){return"BlockQuote"}},class extends Vc{static get pluginName(){return"CKFinder"}static get requires(){return[Sd,du,Yl]}},class extends Vc{static get requires(){return[Md,eh,mh]}static get pluginName(){return"EasyImage"}},class extends Vc{static get requires(){return[Th,Oh]}static get pluginName(){return"Heading"}},eh,class extends Vc{static get requires(){return[Eh]}static get pluginName(){return"ImageCaption"}},class extends Vc{static get requires(){return[Wh,Gh]}static get pluginName(){return"ImageStyle"}}
1,class extends Vc{static get requires(){return[Yh]}static get pluginName(){return"ImageToolbar"}afterInit(){const e=this.editor,t=e.t;e.plugins.get(Yh).register("image",{ariaLabel:t("Image toolbar"),items:e.config.get("image.toolbar")||[],getRelatedElement:Ru})}},mh,class extends Vc{static get pluginName(){return"Indent"}static get requires(){return[Xh,ep]}},class extends Vc{static get requires(){return[yd,op]}static get pluginName(){return"Link"}},class extends Vc{static get requires(){return[Mp,Rp]}static get pluginName(){return"List"}},class extends Vc{static get requires(){return[Bp,Wp,Up,jd]}static get pluginName(){return"MediaEmbed"}},_h,class extends Vc{static get pluginName(){return"PasteFromOffice"}static get requires(){return[Uc]}init(){const e=this.editor,t=e.editing.view.document,n=[];n.push(new Jp(t)),n.push(new Zp(t)),e.plugins.get("Clipboard").on("inputTransformation",(e,t)=>{if(t.isTransformedWithPasteFromOffice)return;const i=t.dataTransfer.getData("text/html"),r=n.find(e=>e.isActive(i));r&&(r.execute(t),t.isTransformedWithPasteFromOffice=!0)},{priority:"high"})}},class extends Vc{static get requires(){return[dg,gg,bg,Sg,kg,yg,jd]}static get pluginName(){return"Table"}},class extends Vc{static get requires(){return[Yh]}static get pluginName(){return"TableToolbar"}afterInit(){const e=this.editor,t=e.t,n=e.plugins.get(Yh),i=e.config.get("table.contentToolbar"),r=e.config.get("table.tableToolbar");i&&n.register("tableContent",{ariaLabel:t("Table toolbar"),items:i,getRelatedElement:Og}),r&&n.register("table",{ariaLabel:t("Table toolbar"),items:r,getRelatedElement:Pg})}},class extends Vc{static get pluginName(){return"TextTransformation"}constructor(e){super(e),e.config.define("typing",{transformations:{include:Lg}})}init(){const e=this.editor.model.document.selection;e.on("change:range",()=>{this.isEnabled=!e.anchor.parent.is("element","codeBlock")}),this._enableTransformationWatchers()}_enableTransformationWatchers(){const e=this.editor,t=e.model,n=e.plugins.get("Input"),i=function(e){const t=e.remove||[],n=e=>!t.includes(e);return function(e){const t=new Set;for(const n of e)if(Rg[n])for(const e of Rg[n])t.add(e);else t.add(n);return Array.from(t)}(e.include.concat(e.extra||[]).filter(n)).filter(n).map(e=>Ig[e]||e).map(e=>({from:Dg(e.from),to:jg(e.to)}))}(e.config.get("typing.transformations")),r=new Ag(e.model,e=>{for(const t of i)if(t.from.test(e))return{normalizedTransformation:t}});r.on("matched:data",(e,i)=>{if(!n.isInput(i.batch))return;const{from:r,to:s}=i.normalizedTransformation,o=r.exec(i.text),a=s(o.slice(1)),c=i.range;let l=o.index;t.enqueueChange(e=>{for(let n=1;n<o.length;n++){const i=o[n],r=a[n-1];if(null==r){l+=i.length;continue}const s=c.start.getShiftedBy(l),u=t.createRange(s,s.getShiftedBy(i.length)),d=Ng(s);t.insertContent(e.createText(r,d),u),l+=r.length}})}),r.bind("isEnabled").to(this)}}],zg.defaultConfig={toolbar:{items:["heading","|","bold","italic","link","bulletedList","numberedList","|","indent","outdent","|","imageUpload","blockQuote","insertTable","mediaEmbed","undo","redo"]},image:{toolbar:["imageStyle:full","imageStyle:side","|","imageTextAlternative"]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]},language:"en"}}]).default},"+zCx":function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiCenter"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiCenter",plural:"SimiCenters",path:"SimiCenters",idName:"id",properties:{instituteId:{name:"instituteId",type:"any"},ownerId:{name:"ownerId",type:"any"},name:{name:"name",type:"string"},type:{name:"type",type:"string"},dipartimento_assistenziale:{name:"dipartimento_assistenziale",type:"string"},dipartimento_universitario:{name:"dipartimento_universitario",type:"string"},num_dirigenti_medici_ospedalieri:{name:"num_dirigenti_medici_ospedalieri",type:"number"},num_dirigenti_medici_universitari:{name:"num_dirigenti_medici_universitari",type:"number"},num_infermieri:{name:"num_infermieri",type:"number"}
1,num_operatori_sanitari:{name:"num_operatori_sanitari",type:"number"},scuola_di_specializzazione:{name:"scuola_di_specializzazione",type:"Array<any>"},partecipazione_turni_PS:{name:"partecipazione_turni_PS",type:"boolean"},ricoveri_da_PS:{name:"ricoveri_da_PS",type:"boolean"},pdta_aziendali:{name:"pdta_aziendali",type:"Array<any>"},pdta_regionali:{name:"pdta_regionali",type:"Array<any>"},centri_riferimento:{name:"centri_riferimento",type:"Array<any>"},centri_malattie_rare:{name:"centri_malattie_rare",type:"Array<any>"},patologie_laboratorio:{name:"patologie_laboratorio",type:"Array<any>"},ambulatori_strumentali:{name:"ambulatori_strumentali",type:"Array<any>"},ecografia:{name:"ecografia",type:"Array<any>"},num_posti_letto_ordinari:{name:"num_posti_letto_ordinari",type:"number"},num_posti_letto_day_hospital:{name:"num_posti_letto_day_hospital",type:"number"},num_posti_letto_lungodegenza:{name:"num_posti_letto_lungodegenza",type:"number"},num_ricoveri_annui:{name:"num_ricoveri_annui",type:"number"},tasso_occupazione_posti_letto:{name:"tasso_occupazione_posti_letto",type:"number"},peso_medio_drg:{name:"peso_medio_drg",type:"number"},drg_processati:{name:"drg_processati",type:"Array<any>"},prescrizione_farmaci:{name:"prescrizione_farmaci",type:"Array<any>"},strutture_con_letti_dedicati:{name:"strutture_con_letti_dedicati",type:"Array<any>"},ambulatori_dedicati:{name:"ambulatori_dedicati",type:"Array<any>"},num_letti_annui_subintensiva:{name:"num_letti_annui_subintensiva",type:"number"},ambulatori:{name:"ambulatori",type:"Array<any>"},linee_di_ricerca:{name:"linee_di_ricerca",type:"Array<any>"},ricerca_clinica:{name:"ricerca_clinica",type:"Array<any>"},personale_dedicato_alla_ricerca:{name:"personale_dedicato_alla_ricerca",type:"Array<any>"},laboratorio_di_ricerca:{name:"laboratorio_di_ricerca",type:"Array<any>"},diagnostica_laboratorio_riconosciuta:{name:"diagnostica_laboratorio_riconosciuta",type:"Array<any>"},facilities:{name:"facilities",type:"Array<any>"},day_service:{name:"day_service",type:"boolean"},url:{name:"url",type:"string"},pazienti_covid:{name:"pazienti_covid",type:"number"},pazienti_covid_tot:{name:"pazienti_covid_tot",type:"number"},covid_cpap:{name:"covid_cpap",type:"number"},contacts:{name:"contacts",type:"Array<any>"},dati_assistenziali:{name:"dati_assistenziali",type:"Array<any>"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{institute:{name:"institute",type:"SimiInstitute",model:"SimiInstitute",relationType:"belongsTo",keyFrom:"instituteId",keyTo:"id"},mappings:{name:"mappings",type:"SimiInstituteMapping[]",model:"SimiInstituteMapping",relationType:"hasMany",keyFrom:"id",keyTo:"centerId"},owner:{name:"owner",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"ownerId",keyTo:"id"}}}}}},"//0v":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");t.Observable=i.Observable},"/EUI":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getTarget(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Notifications/:id/target",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Notifications/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Notifications/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}setread(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Notifications/:id/read";return this.request("POST",n,{id:e},{},{},null,t)}getModelName(){return"Notification"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},"/Fee":function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}
1static getModelName(){return"CourseExamSubmission"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"CourseExamSubmission",plural:"CourseExamSubmissions",path:"CourseExamSubmissions",idName:"id",properties:{eventId:{name:"eventId",type:"any"},subscriptionId:{name:"subscriptionId",type:"any"},userId:{name:"userId",type:"any"},examId:{name:"examId",type:"any"},attempt:{name:"attempt",type:"number"},status:{name:"status",type:"string",default:"active"},questions:{name:"questions",type:"Array<any>"},start_time:{name:"start_time",type:"Date"},end_time:{name:"end_time",type:"Date"},submitted:{name:"submitted",type:"Date"},answers:{name:"answers",type:"Array<any>"},score:{name:"score",type:"any"},result:{name:"result",type:"string"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{event:{name:"event",type:"Course",model:"Course",relationType:"belongsTo",keyFrom:"eventId",keyTo:"id"},subscription:{name:"subscription",type:"CourseSubscription",model:"CourseSubscription",relationType:"belongsTo",keyFrom:"subscriptionId",keyTo:"id"},exam:{name:"exam",type:"SimiEventExam",model:"SimiEventExam",relationType:"belongsTo",keyFrom:"examId",keyTo:"id"},user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},"/Gct":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getCongress(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressAccesses/:id/congress",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getProfile(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressAccesses/:id/profile",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}findByIdSubmissions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressAccesses/:id/submissions/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdSubmissions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressAccesses/:id/submissions/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdSubmissions(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressAccesses/:id/submissions/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}getSubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressAccesses/:id/submissions",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createSubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressAccesses/:id/submissions";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteSubmissions(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressAccesses/:id/submissions";return this.request("DELETE",n,{id:e},{},{},null,t)}countSubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressAccesses/:id/submissions/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressAccesses/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}accept(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressAccesses/:id/accept";return this.request("PUT",n,{id:e},{},{},null,t)}cancel(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressAccesses/:id/cancel";return this.request("PUT",n,{id:e},{},{},null,t)}createManySubmissions(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressAccesses/:id/submissions";return this.request("POST",i,{id:e},{},{data:t},null,n)}getModelName(){return"CongressAccess"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},"/Tr7":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("jIYg");function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function s(e){Object(i.a)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===r(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.
11 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},"/bh2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.takeWhile=i.takeWhile},"/d8p":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("7o/Q"),r=n("EY2u");function s(e=-1){return t=>0===e?Object(r.b)():t.lift(new o(e<0?-1:e-1,t))}class o{constructor(e,t){this.count=e,this.source=t}call(e,t){return t.subscribe(new a(e,this.count,this.source))}}class a extends i.a{constructor(e,t,n){super(e),this.count=t,this.source=n}complete(){if(!this.isStopped){const{source:e,count:t}=this;if(0===t)return super.complete();t>-1&&(this.count=t-1),e.subscribe(this._unsubscribeAndRecycle())}}}},"/h9T":function(e,t,n){"use strict";function i(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,"a",function(){return i})},"/uUt":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(e,t){return n=>n.lift(new s(e,t))}class s{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new o(e,this.compare,this.keySelector))}}class o extends i.a{constructor(e,t,n){super(e),this.keySelector=n,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:n}=this;t=n?n(e):e}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:e}=this;n=e(this.key,t)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=t,this.destination.next(e))}}},0:function(e,t,n){e.exports=n("zUnb")},"02LL":function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiUserCalendar"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiUserCalendar",plural:"SimiUserCalendars",path:"SimiUserCalendars",idName:"id",properties:{userId:{name:"userId",type:"any"},eventId:{name:"eventId",type:"any"},eventType:{name:"eventType",type:"string"},date_start:{name:"date_start",type:"Date"},date_end:{name:"date_end",type:"Date"},notes:{name:"notes",type:"string"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{event:{name:"event",type:"any",model:"",relationType:"belongsTo",keyFrom:"eventId",keyTo:"id"},user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},"02tb":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}findByIdAccesses(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/accesses/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdAccesses(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/accesses/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdAccesses(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/accesses/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}findByIdCompilers(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/compilers/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdCompilers(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/compilers/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdCompilers(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/compilers/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}linkCompilers(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/compilers/rel/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}unlinkCompilers(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/compilers/rel/:f
1k";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}existsCompilers(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/compilers/rel/:fk";return this.request("HEAD",i,{id:e,fk:t},{},{},null,n)}findByIdSubmissions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/submissions/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdSubmissions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/submissions/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdSubmissions(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/submissions/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}findByIdWriters(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/writers/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdWriters(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/writers/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdWriters(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/writers/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}linkWriters(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/writers/rel/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}unlinkWriters(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/writers/rel/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}existsWriters(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/writers/rel/:fk";return this.request("HEAD",i,{id:e,fk:t},{},{},null,n)}findByIdWriterMappings(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/writerMappings/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdWriterMappings(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/writerMappings/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdWriterMappings(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/writerMappings/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}findByIdRequests(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/requests/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdRequests(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/requests/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdRequests(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/requests/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}getAccesses(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/accesses",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createAccesses(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/accesses";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteAccesses(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/accesses";return this.request("DELETE",n,{id:e},{},{},null,t)}countAccesses(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/accesses/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getCompilers(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/compilers",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createCompilers(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/compilers";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteCompilers(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/compilers";return this.request("DELETE",n,{id:e},{},{},null,t)}countCompilers(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/compilers/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getSubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/submissions",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createSubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/submissions";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteSubmissions(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/submissions";return this.request("DELETE",n,{id:e},{},{},null,t)}countSubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/submissions/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getWriters(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/writers",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createWriters(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/writers";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteWriters(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/writers";return this.request("DELETE",n,{id:e},{},{},null,t)}countWriters(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/writers/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getWriterMappings(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/writerMappings",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createWriterMappings(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/writerMappings";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteWriterMappings(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/writerMappings";return this.request("DELETE",n,{id:e},{},{},null,t)}countWriterMappings(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/writerMappings/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getRequests(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/requests",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createRequests(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/requests";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteRequests(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/requests";return this.request("DELETE",n,{id:e},{},{},null,t)}countRequests(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/requests/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}inviteAdmin(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/inviteAdmin",i={};return null!=e&&(i.email=e),this.request("POST",n,{},i,{},null,t)}inviteWriter(e,t,n,i={},r){let s=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/inviteWriter",a={id:e},c={};return null!=t&&(c.email=t),null!=n&&(c.writerData=n),null!=i&&(c.permissions=i),this.request("POST",s,a,c,{},null,r)}inviteCompiler(e,t,n,i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/inviteCompiler",s={id:e},a={};return null!=t&&(a.email=t),null!=n&&(a.accessData=n),this.request("POST",r,s,a,{},null,i)}getGlobalStats(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/getGlobalStats",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}getStats(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/getStats",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}downloadSubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/downloadSubmissions",r={id:e},s={};return null!=t&&(s.query=t),this.request("GET",i,r,s,{},null,n)}uploadSchema(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/uploadSchema";return this.request("POST",n,{id:e},{},{},null,t)}uploadLogo(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/uploadLogo";return this.request("POST",n,{id:e},{},{},null,t)}requestAccess(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/requestAccess";return this.request("POST",n,{id:e},{},{},null,t)}getAdminDashboard(e){let t=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/dashboard";return this.request("GET",t,{},{},{},null,e)}getPublicHome(e){let t=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/publicHome";return this.request("GET",t,{},{},{},null,e)}
1getDetails(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/details",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}getByIdDetails(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/details",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}getByIdFull(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/full",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}confirmRequests(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/requests/:fk/confirm";return this.request("PUT",i,{id:e,fk:t},{},{},null,n)}hideRequests(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/requests/:fk/hide";return this.request("PUT",i,{id:e,fk:t},{},{},null,n)}createManyAccesses(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/accesses";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyCompilers(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/compilers";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManySubmissions(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/submissions";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyWriters(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/writers";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyWriterMappings(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/writerMappings";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyRequests(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Surveys/:id/requests";return this.request("POST",i,{id:e},{},{data:t},null,n)}getModelName(){return"Survey"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},"0CxO":function(e,t,n){var i=n("7zRj"),r=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function s(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function o(e){function t(e,t,n,i){return 3600*(0|e)+60*(0|t)+(0|n)+(0|i)/1e3}var n=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function a(){this.values=r(null)}function c(e,t,n,i){var r=i?e.split(i):[e];for(var s in r)if("string"==typeof r[s]){var o=r[s].split(n);2===o.length&&t(o[0].trim(),o[1].trim())}}function l(e,t,n){var i=e;function r(){var t=o(e);if(null===t)throw new s(s.Errors.BadTimeStamp,"Malformed timestamp: "+i);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function l(){e=e.replace(/^\s+/,"")}if(l(),t.startTime=r(),l(),"--\x3e"!==e.substr(0,3))throw new s(s.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);e=e.substr(3),l(),t.endTime=r(),l(),function(e,t){var i=new a;c(e,function(e,t){switch(e){case"region":for(var r=n.length-1;r>=0;r--)if(n[r].id===t){i.set(e,n[r].region);break}break;case"vertical":i.alt(e,t,["rl","lr"]);break;case"line":var s=t.split(","),o=s[0];i.integer(e,o),i.percent(e,o)&&i.set("snapToLines",!1),i.alt(e,o,["auto"]),2===s.length&&i.alt("lineAlign",s[1],["start","center","end"]);break;case"position":s=t.split(","),i.percent(e,s[0]),2===s.length&&i.alt("positionAlign",s[1],["start","center","end"]);break;case"size":i.percent(e,t);break;case"align":i.alt(e,t,["start","center","end","left","right"])}},/:/,/\s/),t.region=i.get("region",null),t.vertical=i.get("vertical","");try{t.line=i.get("line","auto")}catch(r){}t.lineAlign=i.get("lineAlign","start"),t.snapToLines=i.get("snapToLines",!0),t.size=i.get("size",100);try{t.align=i.get("align","center")}catch(r){t.align=i.get("align","middle")}try{t.position=i.get("position","auto")}catch(r){t.position=i.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=i.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(e,t)}(s.prototype=r(Error.prototype)).constructor=s,s.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},a.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var i=0;i<n.length;++i)if(t===n[i]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var u=i.createElement&&i.createElement("textarea"),d={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},h={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},p={v:"title",lang:"lang"},f={rt:"ruby"};function g(e,t){function n(){if(!t)return null;var e,n=t.match(/^([^<]*)(<[^>
1]*>?)?/);return t=t.substr((e=n[1]?n[1]:n[2]).length),e}function i(e,t){return!f[t.localName]||f[t.localName]===e.localName}function r(t,n){var i=d[t];if(!i)return null;var r=e.document.createElement(i),s=p[t];return s&&n&&(r[s]=n.trim()),r}for(var s,a,c=e.document.createElement("div"),l=c,g=[];null!==(s=n());)if("<"!==s[0])l.appendChild(e.document.createTextNode((u.innerHTML=s,a=u.textContent,u.textContent="",a)));else{if("/"===s[1]){g.length&&g[g.length-1]===s.substr(2).replace(">","")&&(g.pop(),l=l.parentNode);continue}var m,b=o(s.substr(1,s.length-2));if(b){m=e.document.createProcessingInstruction("timestamp",b),l.appendChild(m);continue}var y=s.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y)continue;if(!(m=r(y[1],y[3])))continue;if(!i(l,m))continue;if(y[2]){var v=y[2].split(".");v.forEach(function(e){var t=/^bg_/.test(e),n=t?e.slice(3):e;h.hasOwnProperty(n)&&(m.style[t?"background-color":"color"]=h[n])}),m.className=v.join(" ")}g.push(y[1]),l.appendChild(m),l=m}return c}var m=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function b(e){for(var t=0;t<m.length;t++){var n=m[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function y(e){var t=[],n="";if(!e||!e.childNodes)return"ltr";function i(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function r(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var s=n.match(/^.*(\n|\r)/);return s?(e.length=0,s[0]):n}return"ruby"===t.tagName?r(e):t.childNodes?(i(e,t),r(e)):void 0}for(i(t,e);n=r(t);)for(var s=0;s<n.length;s++)if(b(n.charCodeAt(s)))return"rtl";return"ltr"}function v(){}function _(e,t,n){v.call(this),this.cue=t,this.cueDiv=g(e,t.text);var i={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(i,this.cueDiv),this.div=e.document.createElement("div"),i={direction:y(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(i),this.div.appendChild(this.cueDiv);var r=0;switch(t.positionAlign){case"start":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":r=t.position-t.size}this.applyStyles(""===t.vertical?{left:this.formatStyle(r,"%"),width:this.formatStyle(t.size,"%")}:{top:this.formatStyle(r,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")}
vendor: 5,609 bytes, line 1
1)}}function w(e){var t,n,i,r;if(e.div){n=e.div.offsetHeight,i=e.div.offsetWidth,r=e.div.offsetTop;var s=(s=e.div.childNodes)&&(s=s[0])&&s.getClientRects&&s.getClientRects();e=e.div.getBoundingClientRect(),t=s?Math.max(s[0]&&s[0].height||0,e.height/s.length):0}this.left=e.left,this.right=e.right,this.top=e.top||r,this.height=e.height||n,this.bottom=e.bottom||r+(e.height||n),this.width=e.width||i,this.lineHeight=void 0!==t?t:e.lineHeight}function k(e,t,n,i){var r=new w(t),s=t.cue,o=function(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,i=0,r=0;r<n.length&&n[r]!==t;r++)"showing"===n[r].mode&&i++;return-1*++i}(s),a=[];if(s.snapToLines){var c;switch(s.vertical){case"":a=["+y","-y"],c="height";break;case"rl":a=["+x","-x"],c="width";break;case"lr":a=["-x","+x"],c="width"}var l=r.lineHeight,u=l*Math.round(o),d=n[c]+l,h=a[0];Math.abs(u)>d&&(u=u<0?-1:1,u*=Math.ceil(d/l)*l),o<0&&(u+=""===s.vertical?n.height:n.width,a=a.reverse()),r.move(h,u)}else{var p=r.lineHeight/n.height*100;switch(s.lineAlign){case"center":o-=p/2;break;case"end":o-=p}switch(s.vertical){case"":t.applyStyles({top:t.formatStyle(o,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(o,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(o,"%")})}a=["+y","-x","+x","-y"],r=new w(t)}var f=function(e,t){for(var r,s=new w(e),o=1,a=0;a<t.length;a++){for(;e.overlapsOppositeAxis(n,t[a])||e.within(n)&&e.overlapsAny(i);)e.move(t[a]);if(e.within(n))return e;var c=e.intersectPercentage(n);o>c&&(r=new w(e),o=c),e=new w(s)}return r||s}(r,a);t.move(f.toCSSCompatValues(n))}function C(){}v.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},v.prototype.formatStyle=function(e,t){return 0===e?0:e+t},(_.prototype=r(v.prototype)).constructor=_,w.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},w.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},w.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},w.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},w.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},w.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},w.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},w.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,i=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||i,height:e.height||t,bottom:e.bottom||i+(e.height||t),width:e.width||n}},C.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},C.convertCueToDOMTree=function(e,t){return e&&t?g(e,t):null},C.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var i=e.document.createElement("div");if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.margin="1.5%",n.appendChild(i),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){var r=[],s=w.getSimpleBoxPosition(i),o={font:Math.round(.05*s.height*100)/100+"px sans-serif"};!function(){for(var n,a,c=0;c<t.length;c++)n=new _(e,a=t[c],o),i.appendChild(n.div),k(0,n,s,r),a.displayState=n.div,r.push(w.getSimpleBoxPosition(n))}()}else for(var a=0;a<t.length;a++)i.appendChild(t[a].displayState)},(C.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]}).prototype={reportOrThrowError:function(e){if(!(e instanceof s))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t,n=this;function i(){for(var e=n.buffer,t=0;t<e.length&&"\r"!==e[t]&&"\n"!==e[t];)++t;var i=e.substr(0,t);return"\r"===e[t]&&++t,"\n"===e[t]&&++t,n.buffer=e.substr(t),i}e&&(n.buffer+=n.decoder.decode(e,{stream:!0}));try{var r;if("INITIAL"===n.state){if(!/\r\n|\n/.test(n.buffer))return this;var u=(r=i()).match(/^WEBVTT([ \t].*)?$/);if(!u||!u[0])throw new s(s.Errors.BadSignature);n.state="HEADER"}for(var d=!1;n.buffer;){if(!/\r\n|\n/.test(n.buffer))return this;switch(d?d=!1:r=i(),n.state){case"HEADER":/:/.test(r)?(t=r).match(/X-TIMESTAMP-MAP/)?c(t,function(e,t){"X-TIMESTAMP-MAP"===e&&function(e){var t=new a;c(e,function(e,n){switch(e){case"MPEGT":t.integer(e+"S",n);break;case"LOCA":t.set(e+"L",o(n))}},/[^\d]:/,/,/),n.ontimestampmap&&n.ontimestampmap({MPEGTS:t.get("MPEGTS"),LOCAL:t.get("LOCAL")})}(t)},/=/):c(t,function(e,t){"Region"===e&&function(e){var t=new a;
1if(c(e,function(e,n){switch(e){case"id":t.set(e,n);break;case"width":t.percent(e,n);break;case"lines":t.integer(e,n);break;case"regionanchor":case"viewportanchor":var i=n.split(",");if(2!==i.length)break;var r=new a;if(r.percent("x",i[0]),r.percent("y",i[1]),!r.has("x")||!r.has("y"))break;t.set(e+"X",r.get("x")),t.set(e+"Y",r.get("y"));break;case"scroll":t.alt(e,n,["up"])}},/=/,/\s/),t.has("id")){var i=new(n.vttjs.VTTRegion||n.window.VTTRegion);i.width=t.get("width",100),i.lines=t.get("lines",3),i.regionAnchorX=t.get("regionanchorX",0),i.regionAnchorY=t.get("regionanchorY",100),i.viewportAnchorX=t.get("viewportanchorX",0),i.viewportAnchorY=t.get("viewportanchorY",100),i.scroll=t.get("scroll",""),n.onregion&&n.onregion(i),n.regionList.push({id:t.get("id"),region:i})}}(t)},/:/):r||(n.state="ID");continue;case"NOTE":r||(n.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){n.state="NOTE";break}if(!r)continue;n.cue=new(n.vttjs.VTTCue||n.window.VTTCue)(0,0,"");try{n.cue.align="center"}catch(p){n.cue.align="middle"}if(n.state="CUE",-1===r.indexOf("--\x3e")){n.cue.id=r;continue}case"CUE":try{l(r,n.cue,n.regionList)}catch(p){n.reportOrThrowError(p),n.cue=null,n.state="BADCUE";continue}n.state="CUETEXT";continue;case"CUETEXT":var h=-1!==r.indexOf("--\x3e");if(!r||h&&(d=!0)){n.oncue&&n.oncue(n.cue),n.cue=null,n.state="ID";continue}n.cue.text&&(n.cue.text+="\n"),n.cue.text+=r.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":r||(n.state="ID");continue}}}catch(p){n.reportOrThrowError(p),"CUETEXT"===n.state&&n.cue&&n.oncue&&n.oncue(n.cue),n.cue=null,n.state="INITIAL"===n.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),(this.cue||"HEADER"===this.state)&&(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new s(s.Errors.BadSignature)}catch(e){this.reportOrThrowError(e)}return this.onflush&&this.onflush(),this}},e.exports=C},"0EUg":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("bHdf");function r(){return Object(i.a)(1)}},"0FX9":function(e,t,n){const i=n("Z92M"),r=n("qmMu"),s=n("QUaw"),o=n("QAZZ");function a(e,t,n,s,o){const a=[].slice.call(arguments,1),c=a.length,l="function"==typeof a[c-1];if(!l&&!i())throw new Error("Callback required as last argument");if(!l){if(c<1)throw new Error("Too few arguments provided");return 1===c?(n=t,t=s=void 0):2!==c||t.getContext||(s=n,n=t,t=void 0),new Promise(function(i,o){try{const o=r.create(n,s);i(e(o,t,s))}catch(a){o(a)}})}if(c<2)throw new Error("Too few arguments provided");2===c?(o=n,n=t,t=s=void 0):3===c&&(t.getContext&&void 0===o?(o=s,s=void 0):(o=s,s=n,n=t,t=void 0));try{const i=r.create(n,s);o(null,e(i,t,s))}catch(u){o(u)}}t.create=r.create,t.toCanvas=a.bind(null,s.render),t.toDataURL=a.bind(null,s.renderToDataURL),t.toString=a.bind(null,function(e,t,n){return o.render(e,n)})},"0Jqp":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAdminEvents/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAdminEvents/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}getModelName(){return"SimiAdminEvent"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},"0Pi8":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("GyhO"),r=n("LRne");function s(...e){return t=>Object(i.a)(t,Object(r.a)(...e))}},"0Tbm":function(e,t,n){var i,r,s,o,a;i=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,s=/(?:\/|^)\.(?=\/)/g,o=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,e.exports=a={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),!(t=t.trim())){if(!n.alwaysNormalize)return e;var i=a.parseURL(e);if(!i)throw new Error("Error trying to parse base URL.");return i.path=a.normalizePath(i.path),a.buildURLFromParts(i)}var s=a.parseURL(t);if(!s)throw new Error("Error trying to parse relative URL.");
1if(s.scheme)return n.alwaysNormalize?(s.path=a.normalizePath(s.path),a.buildURLFromParts(s)):t;var o=a.parseURL(e);if(!o)throw new Error("Error trying to parse base URL.");if(!o.netLoc&&o.path&&"/"!==o.path[0]){var c=r.exec(o.path);o.netLoc=c[1],o.path=c[2]}o.netLoc&&!o.path&&(o.path="/");var l={scheme:o.scheme,netLoc:s.netLoc,path:null,params:s.params,query:s.query,fragment:s.fragment};if(!s.netLoc&&(l.netLoc=o.netLoc,"/"!==s.path[0]))if(s.path){var u=o.path,d=u.substring(0,u.lastIndexOf("/")+1)+s.path;l.path=a.normalizePath(d)}else l.path=o.path,s.params||(l.params=o.params,s.query||(l.query=o.query));return null===l.path&&(l.path=n.alwaysNormalize?a.normalizePath(s.path):s.path),a.buildURLFromParts(l)},parseURL:function(e){var t=i.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(s,"");e.length!==(e=e.replace(o,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}}},1:function(e,t){},"14B+":function(e,t){!function(e){const t=e.it=e.it||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 di %1","Block quote":"Blocco citazione",Bold:"Grassetto","Bulleted List":"Elenco puntato",Cancel:"Annulla","Cannot upload file:":"Impossibile caricare il file:","Centered image":"Immagine centrata","Change image text alternative":"Cambia testo alternativo dell'immagine","Choose heading":"Seleziona intestazione",Column:"Colonna","Could not insert image at the current position.":"Non \xe8 stato possibile inserire l'immagine nella posizione corrente.","Could not obtain resized image URL.":"Non \xe8 stato possibile ottenere l'URL dell'immagine ridimensionata.","Decrease indent":"Riduci rientro","Delete column":"Elimina colonna","Delete row":"Elimina riga",Downloadable:"Scaricabile","Dropdown toolbar":"Barra degli strumenti del menu a discesa","Edit link":"Modifica collegamento","Editor toolbar":"Barra degli strumenti dell'editor","Enter image caption":"inserire didascalia dell'immagine","Full size image":"Immagine a dimensione intera","Header column":"Intestazione colonna","Header row":"Riga d'intestazione",Heading:"Intestazione","Heading 1":"Intestazione 1","Heading 2":"Intestazione 2","Heading 3":"Intestazione 3","Heading 4":"Intestazione 4","Heading 5":"Intestazione 5","Heading 6":"Intestazione 6","Image toolbar":"Barra degli strumenti dell'immagine","image widget":"Widget immagine","Increase indent":"Aumenta rientro","Insert column left":"Inserisci colonna a sinistra","Insert column right":"Inserisci colonna a destra","Insert image":"Inserisci immagine","Insert image or file":"Inserisci immagine o file","Insert media":"Inserisci media","Insert paragraph after block":"Inserisci paragrafo dopo blocco","Insert paragraph before block":"Inserisci paragrafo prima di blocco","Insert row above":"Inserisci riga sopra","Insert row below":"Inserisci riga sotto","Insert table":"Inserisci tabella","Inserting image failed":"L'inserimento dell'immagine \xe8 fallito",Italic:"Corsivo","Left aligned image":"Immagine allineata a sinistra",Link:"Collegamento","Link URL":"URL del collegamento","Media URL":"URL media","media widget":"widget media","Merge cell down":"Unisci cella sotto","Merge cell left":"Unisci cella a sinistra","Merge cell right":"Unisci cella a destra","Merge cell up":"Unisci cella sopra","Merge cells":"Unisci celle",Next:"Avanti","Numbered List":"Elenco numerato","Open in a new tab":"Apri in una nuova scheda","Open link in new tab":"Apri collegamento in nuova scheda",Paragraph:"Paragrafo","Paste the media URL in the input.":"Incolla l'URL del file multimediale nell'input.",Previous:"Indietro",Redo:"Ripristina","Rich Text Editor":"Editor di testo formattato","Rich Text Editor, %0":"Editor di testo formattato, %0","Right aligned image":"Immagine allineata a destra",Row:"Riga",Save:"Salva","Select all":"Seleziona tutto","Select column":"Seleziona colonna","Select row":"Seleziona riga","Selecting resized image failed":"La selezione dell'immagine ridimensionata \xe8 fallita","Show more items":"Mostra pi\xf9 elementi","Side image":"Immagine laterale","Split cell horizontally":"Dividi cella orizzontalmente","Split cell vertically":"Dividi cella verticalmente","Table toolbar":"Barra degli strumenti della tabella","Text alternative":"Testo alternativo","The URL must not be empty.":"L'URL non pu\xf2 essere vuoto.","This link has no URL":"Questo collegamento non ha un URL","This media URL is not supported.":"Questo URL di file multimediali non \xe8 supportato.","Tip: Paste the URL into the content to embed faster.":"Consiglio: incolla l'URL nel contenuto per un'incorporazione pi\xf9 veloce.",Undo:"Annulla",Unlink:"Elimina collegamento","Upload failed":"Caricamento fallito","Upload in progress":"Caricamento in corso","Widget toolbar":"Barra degli strumenti del widget"}),t.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}))},"1G5W":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("zx2A");function r(e){return t=>t.lift(new s(e))}class s{constructor(e){this.notifier=e}call(e,t){const n=new o(e),r=Object(i.c)(this.notifier,new i.a(n));return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n}}class o extends i.b{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},"1Hcg":function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiSurvey"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiSurvey",plural:"SimiSurveys",path:"SimiSurveys",i
1dName:"id",properties:{name:{name:"name",type:"string"},version:{name:"version",type:"number"},title:{name:"title",type:"string"},description:{name:"description",type:"string"},questions:{name:"questions",type:"Array<any>"},access:{name:"access",type:"number"},category:{name:"category",type:"string"},sezione_regionale:{name:"sezione_regionale",type:"string"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{}}}}},"1IWC":function(e,t,n){var i,r,s;!function(o){if("object"==typeof e.exports){var a=o(0,t);void 0!==a&&(e.exports=a)}else r=[n,t],void 0===(s="function"==typeof(i=o)?i.apply(t,r):i)||(e.exports=s)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["it",[["m.","p."],["AM","PM"],n],n,[["D","L","M","M","G","V","S"],["dom","lun","mar","mer","gio","ven","sab"],["domenica","luned\xec","marted\xec","mercoled\xec","gioved\xec","venerd\xec","sabato"],["dom","lun","mar","mer","gio","ven","sab"]],n,[["G","F","M","A","M","G","L","A","S","O","N","D"],["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]],n,[["aC","dC"],["a.C.","d.C."],["avanti Cristo","dopo Cristo"]],1,[6,0],["dd/MM/yy","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",n,"{1} {0}",n],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","euro",{BRL:[n,"R$"],BYN:[n,"Br"],EGP:[n,"\xa3E"],HKD:[n,"$"],JPY:[n,"\xa5"],KRW:[n,"\u20a9"],MXN:[n,"$"],NOK:[n,"NKr"],THB:["\u0e3f"],TWD:[n,"NT$"],USD:[n,"$"]},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}]})},"1M8x":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("Xk39");i.Observable.prototype.catch=r._catch,i.Observable.prototype._catch=r._catch},"1Qjk":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getCongress(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressEvents/:id/congress",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getSubmission(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressEvents/:id/submission",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressEvents/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}addToCalendar(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressEvents/:id/user-calendar";return this.request("POST",n,{id:e},{},{},null,t)}removeFromCalendar(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressEvents/:id/user-calendar";return this.request("DELETE",n,{id:e},{},{},null,t)}getModelName(){return"CongressEvent"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},"1Zip":function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"CourseLogbookEntry"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"CourseLogbookEntry",plural:"CourseLogbookEntries",path:"CourseLogbookEntries",idName:"id",properties:{eventId:{name:"eventId",type:"any"},subscriptionId:{name:"subscriptionId",type:"any"},userId:{name:"userId",type:"any"},logbookId:{name:"logbookId",type:"any"},status:{name:"status",type:"string",default:"pending"},result:{name:"result",type:"string"},submitted:{name:"submitted",type:"Date"},customId:{name:"customId",type:"string"},date:{name:"date",type:"Date"},age:{name:"age",type:"number"},motivation:{name:"motivation",type:"string"},skills:{name:"skills",type:"Array<any>"},description:{name:"description",type:"string"},report:{name:"report",type:"string"}
1,attachments:{name:"attachments",type:"Array<any>"},review:{name:"review",type:"string"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{event:{name:"event",type:"Course",model:"Course",relationType:"belongsTo",keyFrom:"eventId",keyTo:"id"},subscription:{name:"subscription",type:"CourseLogbookSubscription",model:"CourseLogbookSubscription",relationType:"belongsTo",keyFrom:"subscriptionId",keyTo:"id"},logbook:{name:"logbook",type:"CourseLogbook",model:"CourseLogbook",relationType:"belongsTo",keyFrom:"logbookId",keyTo:"id"},user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},"1kSV":function(e,t,n){"use strict";n.d(t,"a",function(){return zt}),n.d(t,"b",function(){return Qe}),n.d(t,"c",function(){return mt}),n.d(t,"d",function(){return He}),n.d(t,"e",function(){return Mt}),n.d(t,"f",function(){return xt}),n.d(t,"g",function(){return Et}),n.d(t,"h",function(){return wt}),n.d(t,"i",function(){return Ht}),n.d(t,"j",function(){return _n}),n.d(t,"k",function(){return rn}),n.d(t,"l",function(){return un}),n.d(t,"m",function(){return mn});var i=n("fXoL"),r=n("ofXK"),s=n("HDdC"),o=n("EY2u"),a=n("LRne"),c=n("XNiG"),l=n("xgIS"),u=n("PqYM"),d=n("Nv8m"),h=(n("2Vo4"),n("itXk"),n("5yfJ"),n("1uah")),p=n("VRyK"),f=n("0Pi8"),g=n("1G5W"),m=n("pLZG"),b=n("IzEk"),y=n("lJxs"),v=(n("JX91"),n("/uUt"),n("eIep")),_=n("vkgz"),w=n("zp1y"),k=n("3E0/"),C=n("5+tZ"),S=(n("zP0r"),n("w1tV")),T=n("3Pt+");const P=["*"],O=["defaultDayTemplate"],x=["content"];function A(e,t){if(1&e&&i.Ub(0,"div",7),2&e){const e=t.currentMonth,n=t.selected,r=t.disabled,s=t.focused;i.tc("date",t.date)("currentMonth",e)("selected",n)("disabled",r)("focused",s)}}function E(e,t){if(1&e&&(i.Zb(0,"div",12),i.Qc(1),i.Yb()),2&e){const e=i.nc().$implicit,t=i.nc(2);i.Gb(1),i.Sc(" ",t.i18n.getMonthLabel(e.firstDate)," ")}}function M(e,t){if(1&e&&(i.Zb(0,"div",9),i.Oc(1,E,2,1,"div",10),i.Ub(2,"ngb-datepicker-month",11),i.Yb()),2&e){const e=t.$implicit,n=i.nc(2);i.Gb(1),i.tc("ngIf","none"===n.navigation||n.displayMonths>1&&"select"===n.navigation),i.Gb(1),i.tc("month",e.firstDate)}}function I(e,t){if(1&e&&i.Oc(0,M,3,2,"div",8),2&e){const e=i.nc();i.tc("ngForOf",e.model.months)}}function R(e,t){if(1&e){const e=i.ac();i.Zb(0,"ngb-datepicker-navigation",13),i.jc("navigate",function(t){return i.Hc(e),i.nc().onNavigateEvent(t)})("select",function(t){return i.Hc(e),i.nc().onNavigateDateSelect(t)}),i.Yb()}if(2&e){const e=i.nc();i.tc("date",e.model.firstDate)("months",e.model.months)("disabled",e.model.disabled)("showSelect","select"===e.model.navigation)("prevDisabled",e.model.prevDisabled)("nextDisabled",e.model.nextDisabled)("selectBoxes",e.model.selectBoxes)}}function L(e,t){}function D(e,t){}function j(e,t){if(1&e&&(i.Zb(0,"div",5),i.Qc(1),i.Yb()),2&e){const e=i.nc(2);i.Gb(1),i.Rc(e.i18n.getWeekLabel())}}function N(e,t){if(1&e&&(i.Zb(0,"div",6),i.Qc(1),i.Yb()),2&e){const e=t.$implicit;i.Gb(1),i.Rc(e)}}function V(e,t){if(1&e&&(i.Zb(0,"div",2),i.Oc(1,j,2,1,"div",3),i.Oc(2,N,2,1,"div",4),i.Yb()),2&e){const e=i.nc();i.Gb(1),i.tc("ngIf",e.datepicker.showWeekNumbers),i.Gb(1),i.tc("ngForOf",e.viewModel.weekdays)}}function z(e,t){if(1&e&&(i.Zb(0,"div",11),i.Qc(1),i.Yb()),2&e){const e=i.nc(2).$implicit,t=i.nc();i.Gb(1),i.Rc(t.i18n.getWeekNumerals(e.number))}}function F(e,t){}function B(e,t){if(1&e&&i.Oc(0,F,0,0,"ng-template",14),2&e){const e=i.nc().$implicit,t=i.nc(3);i.tc("ngTemplateOutlet",t.datepicker.dayTemplate)("ngTemplateOutletContext",e.context)}}function q(e,t){if(1&e){const e=i.ac();i.Zb(0,"div",12),i.jc("click",function(n){i.Hc(e);const r=t.$implicit;return i.nc(3).doSelect(r),n.preventDefault()}),i.Oc(1,B,1,2,"ng-template",13),i.Yb()}if(2&e){const e=t.$implicit;i.Lb("disabled",e.context.disabled)("hidden",e.hidden)("ngb-dp-today",e.context.today),i.tc("tabindex",e.tabindex),i.Hb("aria-label",e.ariaLabel),i.Gb(1),i.tc("ngIf",!e.hidden)}}function U(e,t){if(1&e&&(i.Zb(0,"div",8),i.Oc(1,z,2,1,"div",9),i.Oc(2,q,2,9,"div",10),i.Yb()),2&e){const e=i.nc().$implicit,t=i.nc();i.Gb(1),i.tc("ngIf",t.datepicker.showWeekNumbers),i.Gb(1),i.tc("ngForOf",e.days)}}function H(e,t){1&e&&i.Oc(0,U,3,2,"div",7),2&e&&i.tc("ngIf",!t.$implicit.collapsed)}function W(e,t){if(1&e){const e=i.ac();i.Zb(0,"ngb-datepicker-navigation-select",7),i.jc("select",function(t){return i.Hc(e),i.nc().select.emit(t)}),i.Yb()}if(2&e){const e=i.nc();i.tc("date",e.date)("disabled",e.disabled)("months",e.selectBoxes.months)("years",e.selectBoxes.years)}}function G(e,t){1&e&&i.Ub(0,"div",0)}function Y(e,t){1&e&&i.Ub(0,"div",0)}function $(e,t){if(1&e&&(i.Oc(0,G,1,0,"div",9),i.Zb(1,"div",10),i.Qc(2),i.Yb(),i.Oc(3,Y,1,0,"div",9)),2&e){const e=t.$implicit,n=t.index,r=i.nc(2);i.tc("ngIf",n>0),i.Gb(2),i.Sc(" ",r.i18n.getMonthLabel(e.firstDate)," "),i.Gb(1),i.tc("ngIf",n!==r.months.length-1)}}function Z(e,t){if(1&e&&i.Oc(0,$,4,3,"ng-template",8),2&e){const e=i.nc();i.tc("ngForOf",e.months)}}
1const Q=["ngbDatepickerDayView",""],X=["month"],K=["year"];function J(e,t){if(1&e&&(i.Zb(0,"option",5),i.Qc(1),i.Yb()),2&e){const e=t.$implicit,n=i.nc();i.tc("value",e),i.Hb("aria-label",n.i18n.getMonthFullName(e,null==n.date?null:n.date.year)),i.Gb(1),i.Rc(n.i18n.getMonthShortName(e,null==n.date?null:n.date.year))}}function ee(e,t){if(1&e&&(i.Zb(0,"option",5),i.Qc(1),i.Yb()),2&e){const e=t.$implicit,n=i.nc();i.tc("value",e),i.Gb(1),i.Rc(n.i18n.getYearNumerals(e))}}const te=["dialog"];function ne(e,t){if(1&e){const e=i.ac();i.Zb(0,"button",11),i.jc("click",function(){i.Hc(e);const t=i.nc();return t.changeHour(t.hourStep)}),i.Ub(1,"span",12),i.Zb(2,"span",13),i.dc(3,14),i.Yb(),i.Yb()}if(2&e){const e=i.nc();i.Lb("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),i.tc("disabled",e.disabled)}}function ie(e,t){if(1&e){const e=i.ac();i.Zb(0,"button",11),i.jc("click",function(){i.Hc(e);const t=i.nc();return t.changeHour(-t.hourStep)}),i.Ub(1,"span",15),i.Zb(2,"span",13),i.dc(3,16),i.Yb(),i.Yb()}if(2&e){const e=i.nc();i.Lb("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),i.tc("disabled",e.disabled)}}function re(e,t){if(1&e){const e=i.ac();i.Zb(0,"button",11),i.jc("click",function(){i.Hc(e);const t=i.nc();return t.changeMinute(t.minuteStep)}),i.Ub(1,"span",12),i.Zb(2,"span",13),i.dc(3,17),i.Yb(),i.Yb()}if(2&e){const e=i.nc();i.Lb("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),i.tc("disabled",e.disabled)}}function se(e,t){if(1&e){const e=i.ac();i.Zb(0,"button",11),i.jc("click",function(){i.Hc(e);const t=i.nc();return t.changeMinute(-t.minuteStep)}),i.Ub(1,"span",15),i.Zb(2,"span",13),i.dc(3,18),i.Yb(),i.Yb()}if(2&e){const e=i.nc();i.Lb("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),i.tc("disabled",e.disabled)}}function oe(e,t){1&e&&(i.Zb(0,"div",5),i.Qc(1,":"),i.Yb())}function ae(e,t){if(1&e){const e=i.ac();i.Zb(0,"button",11),i.jc("click",function(){i.Hc(e);const t=i.nc(2);return t.changeSecond(t.secondStep)}),i.Ub(1,"span",12),i.Zb(2,"span",13),i.dc(3,21),i.Yb(),i.Yb()}if(2&e){const e=i.nc(2);i.Lb("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),i.tc("disabled",e.disabled)}}function ce(e,t){if(1&e){const e=i.ac();i.Zb(0,"button",11),i.jc("click",function(){i.Hc(e);const t=i.nc(2);return t.changeSecond(-t.secondStep)}),i.Ub(1,"span",15),i.Zb(2,"span",13),i.dc(3,22),i.Yb(),i.Yb()}if(2&e){const e=i.nc(2);i.Lb("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),i.tc("disabled",e.disabled)}}function le(e,t){if(1&e){const e=i.ac();i.Zb(0,"div",19),i.Oc(1,ae,4,7,"button",3),i.Zb(2,"input",20),i.jc("change",function(t){return i.Hc(e),i.nc().updateSecond(t.target.value)})("blur",function(){return i.Hc(e),i.nc().handleBlur()})("input",function(t){return i.Hc(e),i.nc().formatInput(t.target)})("keydown.ArrowUp",function(t){i.Hc(e);const n=i.nc();return n.changeSecond(n.secondStep),t.preventDefault()})("keydown.ArrowDown",function(t){i.Hc(e);const n=i.nc();return n.changeSecond(-n.secondStep),t.preventDefault()}),i.Yb(),i.Oc(3,ce,4,7,"button",3),i.Yb()}if(2&e){const e=i.nc();i.Gb(1),i.tc("ngIf",e.spinners),i.Gb(1),i.Lb("form-control-sm",e.isSmallSize)("form-control-lg",e.isLargeSize),i.tc("value",e.formatMinSec(null==e.model?null:e.model.second))("readOnly",e.readonlyInputs)("disabled",e.disabled),i.Gb(1),i.tc("ngIf",e.spinners)}}function ue(e,t){1&e&&i.Ub(0,"div",5)}function de(e,t){if(1&e&&(i.Xb(0),i.dc(1,27),i.Wb()),2&e){const e=i.nc(2);i.Gb(1),i.fc(e.i18n.getAfternoonPeriod()),i.ec(1)}}function he(e,t){if(1&e&&i.dc(0,28),2&e){const e=i.nc(2);i.fc(e.i18n.getMorningPeriod()),i.ec(0)}}function pe(e,t){if(1&e){const e=i.ac();i.Zb(0,"div",23),i.Zb(1,"button",24),i.jc("click",function(){return i.Hc(e),i.nc().toggleMeridian()}),i.Oc(2,de,2,1,"ng-container",25),i.Oc(3,he,1,1,"ng-template",null,26,i.Pc),i.Yb(),i.Yb()}if(2&e){const e=i.Fc(4),t=i.nc();i.Gb(1),i.Lb("btn-sm",t.isSmallSize)("btn-lg",t.isLargeSize)("disabled",t.disabled),i.tc("disabled",t.disabled),i.Gb(1),i.tc("ngIf",t.model&&t.model.hour>=12)("ngIfElse",e)}}function fe(e){return parseInt(`${e}`,10)}function ge(e){return"string"==typeof e}function me(e){return!isNaN(fe(e))}function be(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function ye(e){return null!=e}function ve(e){return me(e)?`0${e}`.slice(-2):""}function _e(e,t){return e&&e.className&&e.className.split&&e.className.split(/\s+/).indexOf(t)>=0}function we(e){return(e||document.body).getBoundingClientRect()}"undefined"==typeof Element||Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(e){let t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null});const ke={animation:!0,transitionTimerDelayMs:5};let Ce=(()=>{class e{constructor(){this.animation=ke.animation}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Pb)({factory:function(){return new e},token:e,providedIn:"root"}),e})();const Se=()=>{},{transitionTimerDelayMs:Te}=ke,Pe=new Map,Oe=(e,t,n,i)=>{let r=i.context||{};const h=Pe.get(t);if(h)switch(i.runningTransition){case"continue":return o.a;case"stop":e.run(()=>h.transition$.complete()),r=Object.assign(h.context,r),Pe.delete(t)}const p=n(t,i.animation,r)||Se;if(!i.animation||"none"===window.getComputedStyle(t).transitionProperty)return e.run(()=>p()),Object(a.a)(void 0).pipe(function(e){return t=>new s.a(n=>t.subscribe(t=>e.run(()=>n.next(t)),t=>e.run(()=>n.error(t)),()=>e.run(()=>n.complete())))}(e));const b=new c.a,y=new c.a,v=b.pipe(Object(f.a)(!0));Pe.set(t,{transition$:b,complete:()=>{y.next(),y.complete()},context:r});const _=function(e){const{transitionDelay:t,transitionDuration:n}=window.getComputedStyle(e);return 1e3*(parseFloat(t)+parseFloat(n))}(t);return e.runOutsideAngular(()=>{const n=Object(l.a)(t,"transitionend").pipe(Object(g.a)(v),Object(m.a)(({target:e})=>e===t)),i=Object(u.a)(_+Te).pipe(Object(g.a)(v));Object(d.a)(i,n,y).pipe(Object(g.a)(v)).subscribe(()=>{Pe.delete(t),e.run(()=>{p(),b.next(),b.complete()})})}),b.asObservable()};let xe=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[r.c]]}),e})(),Ae=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[r.c]]}),e})(),Ee=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({}),e})(),Me=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[r.c]]}),e})(),Ie=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({}),e})();class Re{constructor(e,t,n){this.year=be(e)?e:null,this.month=be(t)?t:null,this.day=be(n)?n:null}static from(e){return e instanceof Re?e:e?new Re(e.year,e.month,e.day):null}equals(e){return null!=e&&this.year===e.year&&this.month===e.month&&this.day===e.day}before(e){return!!e&&(this.year===e.year?this.month===e.month?this.day!==e.day&&this.day<e.day:this.month<e.month:this.year<e.year)}after(e){return!!e&&(this.year===e.year?this.month===e.month?this.day!==e.day&&this.day>e.day:this.month>e.month:this.year>e.year)}}function Le(e){return new Re(e.getFullYear(),e.getMonth()+1,e.getDate())}function De(e){const t=new Date(e.year,e.month-1,e.day,12);return isNaN(t.getTime())||t.setFullYear(e.year),t}function je(){return new Ve}let Ne=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Pb)({factory:je,token:e,providedIn:"root"}),e})(),Ve=(()=>{class e extends Ne{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(e,t="d",n=1){let i=De(e),r=!0,s=i.getMonth();switch(t){case"y":i.setFullYear(i.getFullYear()+n);break;case"m":s+=n,i.setMonth(s),s%=12,s<0&&(s+=12);break;case"d":i.setDate(i.getDate()+n),r=!1;break;default:return e}return r&&i.getMonth()!==s&&i.setDate(0),Le(i)}getPrev(e,t="d",n=1){return this.getNext(e,t,-n)}getWeekday(e){let t=De(e).getDay();return 0===t?7:t}getWeekNumber(e,t){7===t&&(t=0);const n=De(e[(11-t)%7]);n.setDate(n.getDate()+4-(n.getDay()||7));const i=n.getTime();return n.setMonth(0),n.setDate(1),Math.floor(Math.round((i-n.getTime())/864e5)/7)+1}getToday(){return Le(new Date)}isValid(e){if(!(e&&be(e.year)&&be(e.month)&&be(e.day)))return!1;if(0===e.year)return!1;const t=De(e);return!isNaN(t.getTime())&&t.getFullYear()===e.year&&t.getMonth()+1===e.month&&t.getDate()===e.day}}return e.\u0275fac=function(t){return ze(t||e)},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();const ze=i.bc(Ve);function Fe(e,t){return!function(e,t){return!e&&!t||!!e&&!!t&&e.equals(t)}(e,t)}function Be(e,t){return!(!e&&!t||e&&t&&e.year===t.year&&e.month===t.month)}function qe(e,t,n){return e&&t&&e.before(t)?t:e&&n&&e.after(n)?n:e||null}function Ue(e,t){const{minDate:n,maxDate:i,disabled:r,markDisabled:s}=t;return!(null==e||r||s&&s(e,{year:e.year,month:e.month})||n&&e.before(n)||i&&e.after(i))}let He=(()=>{class e{getWeekdayLabel(e,t){return this.getWeekdayShortName(e)}getMonthLabel(e){return`${this.getMonthFullName(e.month,e.year)} ${this.getYearNumerals(e.year)}`}getDayNumerals(e){return`${e.day}`}
1getWeekNumerals(e){return`${e}`}getYearNumerals(e){return`${e}`}getWeekLabel(){return""}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Pb)({factory:function(){return e=Object(i.gc)(i.x),new We(e);var e},token:e,providedIn:"root"}),e})(),We=(()=>{class e extends He{constructor(e){super(),this._locale=e,this._monthsShort=Object(r.C)(e,r.f.Standalone,r.w.Abbreviated),this._monthsFull=Object(r.C)(e,r.f.Standalone,r.w.Wide)}getWeekdayShortName(e){return this.getWeekdayLabel(e,r.w.Short)}getWeekdayLabel(e,t){const n=Object(r.z)(this._locale,r.f.Standalone,void 0===t?r.w.Short:t);return n.map((e,t)=>n[(t+1)%7])[e-1]||""}getMonthShortName(e){return this._monthsShort[e-1]||""}getMonthFullName(e){return this._monthsFull[e-1]||""}getDayAriaLabel(e){const t=new Date(e.year,e.month-1,e.day);return Object(r.y)(t,"fullDate",this._locale)}}return e.\u0275fac=function(t){return new(t||e)(i.gc(i.x))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),Ge=(()=>{class e{constructor(e,t){this._calendar=e,this._i18n=t,this._VALIDATORS={dayTemplateData:e=>{if(this._state.dayTemplateData!==e)return{dayTemplateData:e}},displayMonths:e=>{if(be(e=fe(e))&&e>0&&this._state.displayMonths!==e)return{displayMonths:e}},disabled:e=>{if(this._state.disabled!==e)return{disabled:e}},firstDayOfWeek:e=>{if(be(e=fe(e))&&e>=0&&this._state.firstDayOfWeek!==e)return{firstDayOfWeek:e}},focusVisible:e=>{if(this._state.focusVisible!==e&&!this._state.disabled)return{focusVisible:e}},markDisabled:e=>{if(this._state.markDisabled!==e)return{markDisabled:e}},maxDate:e=>{const t=this.toValidDate(e,null);if(Fe(this._state.maxDate,t))return{maxDate:t}},minDate:e=>{const t=this.toValidDate(e,null);if(Fe(this._state.minDate,t))return{minDate:t}},navigation:e=>{if(this._state.navigation!==e)return{navigation:e}},outsideDays:e=>{if(this._state.outsideDays!==e)return{outsideDays:e}},weekdays:e=>{const t=!0===e||!1===e?r.w.Short:e,n=!0!==e&&!1!==e||e;if(this._state.weekdayWidth!==t||this._state.weekdaysVisible!==n)return{weekdayWidth:t,weekdaysVisible:n}}},this._model$=new c.a,this._dateSelect$=new c.a,this._state={dayTemplateData:null,markDisabled:null,maxDate:null,minDate:null,disabled:!1,displayMonths:1,firstDate:null,firstDayOfWeek:1,lastDate:null,focusDate:null,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectedDate:null,selectBoxes:{years:[],months:[]},weekdayWidth:r.w.Short,weekdaysVisible:!0}}get model$(){return this._model$.pipe(Object(m.a)(e=>e.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe(Object(m.a)(e=>null!==e))}set(e){let t=Object.keys(e).map(t=>this._VALIDATORS[t](e[t])).reduce((e,t)=>Object.assign(Object.assign({},e),t),{});Object.keys(t).length>0&&this._nextState(t)}focus(e){const t=this.toValidDate(e,null);null!=t&&!this._state.disabled&&Fe(this._state.focusDate,t)&&this._nextState({focusDate:e})}focusSelect(){Ue(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(e){const t=this.toValidDate(e,this._calendar.getToday());null==t||this._state.disabled||this._state.firstDate&&!Be(this._state.firstDate,t)||this._nextState({firstDate:t})}select(e,t={}){const n=this.toValidDate(e,null);null==n||this._state.disabled||(Fe(this._state.selectedDate,n)&&this._nextState({selectedDate:n}),t.emitEvent&&Ue(n,this._state)&&this._dateSelect$.next(n))}toValidDate(e,t){const n=Re.from(e);return void 0===t&&(t=this._calendar.getToday()),this._calendar.isValid(n)?n:t}getMonth(e){for(let t of this._state.months)if(e.month===t.number&&e.year===t.year)return t;throw new Error(`month ${e.month} of year ${e.year} not found`)}_nextState(e){const t=this._updateState(e);this._patchContexts(t),this._state=t,this._model$.next(this._state)}_patchContexts(e){const{months:t,displayMonths:n,selectedDate:i,focusDate:r,focusVisible:s,disabled:o,outsideDays:a}=e;e.months.forEach(e=>{e.weeks.forEach(c=>{c.days.forEach(c=>{r&&(c.context.focused=r.equals(c.date)&&s),c.tabindex=!o&&r&&c.date.equals(r)&&r.month===e.number?0:-1,!0===o&&(c.context.disabled=!0),void 0!==i&&(c.context.selected=null!==i&&i.equals(c.date)),e.number!==c.date.month&&(c.hidden="hidden"===a||"collapsed"===a||n>1&&c.date.after(t[0].firstDate)&&c.date.before(t[n-1].lastDate))})})})}_updateState(e){const t=Object.assign({},this._state,e);let n=t.firstDate;if(("minDate"in e||"maxDate"in e)&&(function(e,t){if(t&&e&&t.before(e))throw new Error(`'maxDate' ${t} should be greater than 'minDate' ${e}`)}
1(t.minDate,t.maxDate),t.focusDate=qe(t.focusDate,t.minDate,t.maxDate),t.firstDate=qe(t.firstDate,t.minDate,t.maxDate),n=t.focusDate),"disabled"in e&&(t.focusVisible=!1),"selectedDate"in e&&0===this._state.months.length&&(n=t.selectedDate),"focusVisible"in e)return t;if("focusDate"in e&&(t.focusDate=qe(t.focusDate,t.minDate,t.maxDate),n=t.focusDate,0!==t.months.length&&t.focusDate&&!t.focusDate.before(t.firstDate)&&!t.focusDate.after(t.lastDate)))return t;if("firstDate"in e&&(t.firstDate=qe(t.firstDate,t.minDate,t.maxDate),n=t.firstDate),n){const i=function(e,t,n,i,r){const{displayMonths:s,months:o}=n,a=o.splice(0,o.length);return Array.from({length:s},(n,i)=>{const s=Object.assign(e.getNext(t,"m",i),{day:1});if(o[i]=null,!r){const e=a.findIndex(e=>e.firstDate.equals(s));-1!==e&&(o[i]=a.splice(e,1)[0])}return s}).forEach((t,r)=>{null===o[r]&&(o[r]=function(e,t,n,i,r={}){const{dayTemplateData:s,minDate:o,maxDate:a,firstDayOfWeek:c,markDisabled:l,outsideDays:u,weekdayWidth:d,weekdaysVisible:h}=n,p=e.getToday();r.firstDate=null,r.lastDate=null,r.number=t.month,r.year=t.year,r.weeks=r.weeks||[],r.weekdays=r.weekdays||[],t=function(e,t,n){const i=e.getDaysPerWeek(),r=new Re(t.year,t.month,1),s=e.getWeekday(r)%i;return e.getPrev(r,"d",(i+s-n)%i)}(e,t,c),h||(r.weekdays.length=0);for(let f=0;f<e.getWeeksPerMonth();f++){let n=r.weeks[f];n||(n=r.weeks[f]={number:0,days:[],collapsed:!0});const g=n.days;for(let c=0;c<e.getDaysPerWeek();c++){0===f&&h&&(r.weekdays[c]=i.getWeekdayLabel(e.getWeekday(t),d));const n=new Re(t.year,t.month,t.day),u=e.getNext(n),m=i.getDayAriaLabel(n);let b=!!(o&&n.before(o)||a&&n.after(a));!b&&l&&(b=l(n,{month:r.number,year:r.year}));let y=n.equals(p),v=s?s(n,{month:r.number,year:r.year}):void 0;null===r.firstDate&&n.month===r.number&&(r.firstDate=n),n.month===r.number&&u.month!==r.number&&(r.lastDate=n);let _=g[c];_||(_=g[c]={}),_.date=n,_.context=Object.assign(_.context||{},{$implicit:n,date:n,data:v,currentMonth:r.number,currentYear:r.year,disabled:b,focused:!1,selected:!1,today:y}),_.tabindex=-1,_.ariaLabel=m,_.hidden=!1,t=u}n.number=e.getWeekNumber(g.map(e=>e.date),c),n.collapsed="collapsed"===u&&g[0].date.month!==r.number&&g[g.length-1].date.month!==r.number}return r}(e,t,n,i,a.shift()||{}))}),o}(this._calendar,n,t,this._i18n,"dayTemplateData"in e||"firstDayOfWeek"in e||"markDisabled"in e||"minDate"in e||"maxDate"in e||"disabled"in e||"outsideDays"in e||"weekdaysVisible"in e);t.months=i,t.firstDate=i[0].firstDate,t.lastDate=i[i.length-1].lastDate,"selectedDate"in e&&!Ue(t.selectedDate,t)&&(t.selectedDate=null),"firstDate"in e&&(!t.focusDate||t.focusDate.before(t.firstDate)||t.focusDate.after(t.lastDate))&&(t.focusDate=n);const r=!this._state.firstDate||this._state.firstDate.year!==t.firstDate.year,s=!this._state.firstDate||this._state.firstDate.month!==t.firstDate.month;"select"===t.navigation?(("minDate"in e||"maxDate"in e||0===t.selectBoxes.years.length||r)&&(t.selectBoxes.years=function(e,t,n){if(!e)return[];const i=t?Math.max(t.year,e.year-500):e.year-10,r=(n?Math.min(n.year,e.year+500):e.year+10)-i+1,s=Array(r);for(let o=0;o<r;o++)s[o]=i+o;return s}(t.firstDate,t.minDate,t.maxDate)),("minDate"in e||"maxDate"in e||0===t.selectBoxes.months.length||r)&&(t.selectBoxes.months=function(e,t,n,i){if(!t)return[];let r=e.getMonths(t.year);if(n&&t.year===n.year){const e=r.findIndex(e=>e===n.month);r=r.slice(e)}if(i&&t.year===i.year){const e=r.findIndex(e=>e===i.month);r=r.slice(0,e+1)}return r}(this._calendar,t.firstDate,t.minDate,t.maxDate))):t.selectBoxes={years:[],months:[]},"arrows"!==t.navigation&&"select"!==t.navigation||!(s||r||"minDate"in e||"maxDate"in e||"disabled"in e)||(t.prevDisabled=t.disabled||function(e,t,n){const i=Object.assign(e.getPrev(t,"m"),{day:1});return null!=n&&(i.year===n.year&&i.month<n.month||i.year<n.year&&1===n.month)}(this._calendar,t.firstDate,t.minDate),t.nextDisabled=t.disabled||function(e,t,n){const i=Object.assign(e.getNext(t,"m"),{day:1});return null!=n&&i.after(n)}(this._calendar,t.lastDate,t.maxDate))}return t}}return e.\u0275fac=function(t){return new(t||e)(i.gc(Ne),i.gc(He))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();var Ye=function(e){return e[e.PREV=0]="PREV",e[e.NEXT=1]="NEXT",e}({});let $e=(()=>{class e{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekdays=!0,this.showWeekNumbers=!1,this.weekdays=r.w.Short}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Pb)({factory:function(){return new e},token:e,providedIn:"root"}),e})();function Ze(){return new Xe}let Qe=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Pb)({factory:Ze,token:e,providedIn:"root"}),e})(),Xe=(()=>{class e extends Qe{fromModel(e){return e&&be(e.year)&&be(e.month)&&be(e.day)?{year:e.year,month:e.month,day:e.day}:null}toModel(e){return e&&be(e.year)&&be(e.month)&&be(e.day)?{year:e.year,month:e.month,day:e.day}:null}}return e.\u0275fac=function(t){return Ke(t||e)},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();const Ke=i.bc(Xe);let Je=(()=>{class e{constructor(e){this.templateRef=e}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.Q))},e.\u0275dir=i.Ob({type:e,selectors:[["ng-template","ngbDatepickerContent",""]]}),e})(),et=(()=>{class e{constructor(e,t,n,r,s,o,a,l){this._service=e,this._calendar=t,this.i18n=n,this._elementRef=o,this._ngbDateAdapter=a,this._ngZone=l,this._controlValue=null,this._destroyed$=new c.a,this._publicState={},this.navigate=new i.o,this.dateSelect=new i.o,this.onChange=e=>{},this.onTouched=()=>{},["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showWeekdays","showWeekNumbers","startDate","weekdays"].forEach(e
1=>this[e]=r[e]),e.dateSelect$.pipe(Object(g.a)(this._destroyed$)).subscribe(e=>{this.dateSelect.emit(e)}),e.model$.pipe(Object(g.a)(this._destroyed$)).subscribe(e=>{const t=e.firstDate,n=this.model?this.model.firstDate:null;this._publicState={maxDate:e.maxDate,minDate:e.minDate,firstDate:e.firstDate,lastDate:e.lastDate,focusedDate:e.focusDate,months:e.months.map(e=>e.firstDate)};let i=!1;if(!t.equals(n)&&(this.navigate.emit({current:n?{year:n.year,month:n.month}:null,next:{year:t.year,month:t.month},preventDefault:()=>i=!0}),i&&null!==n))return void this._service.open(n);const r=e.selectedDate,o=e.focusDate,a=this.model?this.model.focusDate:null;this.model=e,Fe(r,this._controlValue)&&(this._controlValue=r,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(r))),Fe(o,a)&&a&&e.focusVisible&&this.focus(),s.markForCheck()})}set showWeekdays(e){this.weekdays=e,this._showWeekdays=e}get showWeekdays(){return this._showWeekdays}get state(){return this._publicState}get calendar(){return this._calendar}focusDate(e){this._service.focus(Re.from(e))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe(Object(b.a)(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');e&&e.focus()})}navigateTo(e){this._service.open(Re.from(e?e.day?e:Object.assign(Object.assign({},e),{day:1}):null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const e=Object(l.a)(this._contentEl.nativeElement,"focusin"),t=Object(l.a)(this._contentEl.nativeElement,"focusout"),{nativeElement:n}=this._elementRef;Object(p.a)(e,t).pipe(Object(m.a)(({target:e,relatedTarget:t})=>!(_e(e,"ngb-dp-day")&&_e(t,"ngb-dp-day")&&n.contains(e)&&n.contains(t))),Object(g.a)(this._destroyed$)).subscribe(({type:e})=>this._ngZone.run(()=>this._service.set({focusVisible:"focusin"===e})))})}ngOnDestroy(){this._destroyed$.next()}ngOnInit(){if(void 0===this.model){const e={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].forEach(t=>e[t]=this[t]),this._service.set(e),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate)}ngOnChanges(e){const t={};if(e.showWeekdays&&(t.weekdays=this.weekdays),["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].filter(t=>t in e).forEach(e=>t[e]=this[e]),this._service.set(t),"startDate"in e){const{currentValue:t,previousValue:n}=e.startDate;Be(n,t)&&this.navigateTo(this.startDate)}}onDateSelect(e){this._service.focus(e),this._service.select(e,{emitEvent:!0})}onNavigateDateSelect(e){this._service.open(e)}onNavigateEvent(e){switch(e){case Ye.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case Ye.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._service.set({disabled:e})}writeValue(e){this._controlValue=Re.from(this._ngbDateAdapter.fromModel(e)),this._service.select(this._controlValue)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(Ge),i.Tb(Ne),i.Tb(He),i.Tb($e),i.Tb(i.h),i.Tb(i.l),i.Tb(Qe),i.Tb(i.C))},e.\u0275cmp=i.Nb({type:e,selectors:[["ngb-datepicker"]],contentQueries:function(e,t,n){if(1&e&&i.Mb(n,Je,3),2&e){let e;i.Ec(e=i.kc())&&(t.contentTemplate=e.first)}},viewQuery:function(e,t){if(1&e&&(i.Vc(O,3),i.Vc(x,3)),2&e){let e;i.Ec(e=i.kc())&&(t._defaultDayTemplate=e.first),i.Ec(e=i.kc())&&(t._contentEl=e.first)}},inputs:{showWeekdays:"showWeekdays",weekdays:"weekdays",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekNumbers:"showWeekNumbers",startDate:"startDate"},outputs:{navigate:"navigate",dateSelect:"dateSelect"},exportAs:["ngbDatepicker"],features:[i.Fb([{provide:T.m,useExisting:Object(i.Y)(()=>e),multi:!0},Ge]),i.Eb],decls:10,vars:5,consts:[["defaultDayTemplate",""],["defaultContentTemplate",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select",4,"ngIf"],[1,"ngb-dp-content"],["content",""],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],["class","ngb-dp-month",4,"ngFor","ngForOf"],[1,"ngb-dp-month"],["class","ngb-dp-month-name",4,"ngIf"],[3,"month"],[1,"ngb-dp-month-name"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select"]],template:function(e,t){if(1&e&&(i.Oc(0,A,1,5,"ng-template",null,0,i.Pc),i.Oc(2,I,1,1,"ng-template",null,1,i.Pc),i.Zb(4,"div",2),i.Oc(5,R,1,7,"ngb-datepicker-navigation",3),i.Yb(),i.Zb(6,"div",4,5),i.Oc(8,L,0,0,"ng-template",6),i.Yb(),i.Oc(9,D,0,0,"ng-template",6)),2&e){const e=i.Fc(3);i.Gb(5),i.tc("ngIf","none"!==t.navigation),i.Gb(1),i.Lb("ngb-dp-months",!t.contentTemplate),i.Gb(2),i.tc("ngTemplateOutlet",(null==t.contentTemplate?null:t.contentTemplate.templateRef)||e),i.Gb(1),i.tc("ngTemplateOutlet",t.footerTemplate)}},directives:function(){return[r.n,r.s,kt,r.m,it,rt]},styles:["ngb-datepicker{border:1px solid #dfdfdf;border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}
1.ngb-dp-body{z-index:1050}.ngb-dp-header{background-color:#f8f9fa;background-color:var(--light);border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem}.ngb-dp-months{display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{background-color:#f8f9fa;background-color:var(--light);font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}"],encapsulation:2,changeDetection:0}),e})();var tt=function(e){return e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowUp=38]="ArrowUp",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowDown=40]="ArrowDown",e}({});let nt=(()=>{class e{processKey(e,t){const{state:n,calendar:i}=t;switch(e.which){case tt.PageUp:t.focusDate(i.getPrev(n.focusedDate,e.shiftKey?"y":"m",1));break;case tt.PageDown:t.focusDate(i.getNext(n.focusedDate,e.shiftKey?"y":"m",1));break;case tt.End:t.focusDate(e.shiftKey?n.maxDate:n.lastDate);break;case tt.Home:t.focusDate(e.shiftKey?n.minDate:n.firstDate);break;case tt.ArrowLeft:t.focusDate(i.getPrev(n.focusedDate,"d",1));break;case tt.ArrowUp:t.focusDate(i.getPrev(n.focusedDate,"d",i.getDaysPerWeek()));break;case tt.ArrowRight:t.focusDate(i.getNext(n.focusedDate,"d",1));break;case tt.ArrowDown:t.focusDate(i.getNext(n.focusedDate,"d",i.getDaysPerWeek()));break;case tt.Enter:case tt.Space:t.focusSelect();break;default:return}e.preventDefault(),e.stopPropagation()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Pb)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),it=(()=>{class e{constructor(e,t,n,i){this.i18n=e,this.datepicker=t,this._keyboardService=n,this._service=i}set month(e){this.viewModel=this._service.getMonth(e)}onKeyDown(e){this._keyboardService.processKey(e,this.datepicker)}doSelect(e){e.context.disabled||e.hidden||this.datepicker.onDateSelect(e.date)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(He),i.Tb(et),i.Tb(nt),i.Tb(Ge))},e.\u0275cmp=i.Nb({type:e,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(e,t){1&e&&i.jc("keydown",function(e){return t.onKeyDown(e)})},inputs:{month:"month"},decls:2,vars:2,consts:[["class","ngb-dp-week ngb-dp-weekdays","role","row",4,"ngIf"],["ngFor","",3,"ngForOf"],["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],["class","ngb-dp-weekday ngb-dp-showweek small",4,"ngIf"],["class","ngb-dp-weekday small","role","columnheader",4,"ngFor","ngForOf"],[1,"ngb-dp-weekday","ngb-dp-showweek","small"],["role","columnheader",1,"ngb-dp-weekday","small"],["class","ngb-dp-week","role","row",4,"ngIf"],["role","row",1,"ngb-dp-week"],["class","ngb-dp-week-number small text-muted",4,"ngIf"],["class","ngb-dp-day","role","gridcell",3,"disabled","tabindex","hidden","ngb-dp-today","click",4,"ngFor","ngForOf"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"tabindex","click"],[3,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,t){1&e&&(i.Oc(0,V,3,2,"div",0),i.Oc(1,H,1,1,"ng-template",1)),2&e&&(i.tc("ngIf",t.viewModel.weekdays.length>0),i.Gb(1),i.tc("ngForOf",t.viewModel.weeks))},directives:[r.n,r.m,r.s],styles:['ngb-datepicker-month{display:block}.ngb-dp-week-number,.ngb-dp-weekday{font-style:italic;line-height:2rem;text-align:center}.ngb-dp-weekday{color:#5bc0de;color:var(--info)}.ngb-dp-week{border-radius:.25rem;display:flex}.ngb-dp-weekdays{background-color:#f8f9fa;background-color:var(--light);border-bottom:1px solid rgba(0,0,0,.125);border-radius:0}.ngb-dp-day,.ngb-dp-week-number,.ngb-dp-weekday{height:2rem;width:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex="0"]{z-index:1}'],encapsulation:2}),e})(),rt=(()=>{class e{constructor(e){this.i18n=e,this.navigation=Ye,this.months=[],this.navigate=new i.o,this.select=new i.o}
1onClickPrev(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(He))},e.\u0275cmp=i.Nb({type:e,selectors:[["ngb-datepicker-navigation"]],inputs:{months:"months",date:"date",disabled:"disabled",showSelect:"showSelect",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",selectBoxes:"selectBoxes"},outputs:{navigate:"navigate",select:"select"},decls:8,vars:4,consts:function(){let e,t,n,i;return e=$localize`:@@ngb.datepicker.previous-monthâc3b08b07b5ab98e7cdcf18df39355690ab7d3884â8586908745456864217:Previous month`,t=$localize`:@@ngb.datepicker.previous-monthâc3b08b07b5ab98e7cdcf18df39355690ab7d3884â8586908745456864217:Previous month`,n=$localize`:@@ngb.datepicker.next-monthâ4bd046985cfe13040d5ef0cd881edce0968a111aâ3628374603023447227:Next month`,i=$localize`:@@ngb.datepicker.next-monthâ4bd046985cfe13040d5ef0cd881edce0968a111aâ3628374603023447227:Next month`,[[1,"ngb-dp-arrow"],["type","button","aria-label",e,"title",t,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-chevron"],["class","ngb-dp-navigation-select",3,"date","disabled","months","years","select",4,"ngIf"],[4,"ngIf"],[1,"ngb-dp-arrow","right"],["type","button","aria-label",n,"title",i,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years","select"],["ngFor","",3,"ngForOf"],["class","ngb-dp-arrow",4,"ngIf"],[1,"ngb-dp-month-name"]]},template:function(e,t){1&e&&(i.Zb(0,"div",0),i.Zb(1,"button",1),i.jc("click",function(e){return t.onClickPrev(e)}),i.Ub(2,"span",2),i.Yb(),i.Yb(),i.Oc(3,W,1,4,"ngb-datepicker-navigation-select",3),i.Oc(4,Z,1,1,void 0,4),i.Zb(5,"div",5),i.Zb(6,"button",6),i.jc("click",function(e){return t.onClickNext(e)}),i.Ub(7,"span",2),i.Yb(),i.Yb()),2&e&&(i.Gb(1),i.tc("disabled",t.prevDisabled),i.Gb(2),i.tc("ngIf",t.showSelect),i.Gb(1),i.tc("ngIf",!t.showSelect),i.Gb(2),i.tc("disabled",t.nextDisabled))},directives:function(){return[r.n,Ct,r.m]},styles:["ngb-datepicker-navigation{align-items:center;display:flex}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;height:.75em;margin-left:.25em;margin-right:.15em;transform:rotate(-135deg);width:.75em}.ngb-dp-arrow{display:flex;flex:1 1 auto;height:2rem;margin:0;padding-left:0;padding-right:0;width:2rem}.ngb-dp-arrow.right{justify-content:flex-end}.ngb-dp-arrow.right .ngb-dp-navigation-chevron{margin-left:.15em;margin-right:.25em;transform:rotate(45deg)}.ngb-dp-arrow-btn{background-color:transparent;border:none;margin:0 .5rem;padding:0 .25rem;z-index:1}.ngb-dp-arrow-btn:focus{outline-style:auto;outline-width:1px}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:flex;flex:1 1 9rem}"],encapsulation:2,changeDetection:0}),e})();const st=(e,t)=>!!t&&t.some(t=>t.contains(e)),ot=(e,t)=>!t||null!=function(e,t){return t?void 0===e.closest?null:e.closest(t):null}(e,t),at="undefined"!=typeof navigator&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function ct(e,t,n,i,r,s,o,a){var c;n&&e.runOutsideAngular((c=()=>{const c=Object(l.a)(t,"keydown").pipe(Object(g.a)(r),Object(m.a)(e=>e.which===tt.Escape),Object(_.a)(e=>e.preventDefault())),u=Object(l.a)(t,"mousedown").pipe(Object(y.a)(e=>{const t=e.target;return 2!==e.button&&!st(t,o)&&("inside"===n?st(t,s)&&ot(t,a):"outside"===n?!st(t,s):ot(t,a)||!st(t,s))}),Object(g.a)(r)),h=Object(l.a)(t,"mouseup").pipe(Object(w.a)(u),Object(m.a)(([e,t])=>t),Object(k.a)(0),Object(g.a)(r));Object(d.a)([c.pipe(Object(y.a)(e=>0)),h.pipe(Object(y.a)(e=>1))]).subscribe(t=>e.run(()=>i(t)))},at?()=>setTimeout(()=>c(),100):c))}const lt=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not
1([tabindex="-1"])'].join(", ");function ut(e){const t=Array.from(e.querySelectorAll(lt)).filter(e=>-1!==e.tabIndex);return[t[0],t[t.length-1]]}const dt=(e,t,n,i=!1)=>{e.runOutsideAngular(()=>{const e=Object(l.a)(t,"focusin").pipe(Object(g.a)(n),Object(y.a)(e=>e.target));Object(l.a)(t,"keydown").pipe(Object(g.a)(n),Object(m.a)(e=>e.which===tt.Tab),Object(w.a)(e)).subscribe(([e,n])=>{const[i,r]=ut(t);n!==i&&n!==t||!e.shiftKey||(r.focus(),e.preventDefault()),n!==r||e.shiftKey||(i.focus(),e.preventDefault())}),i&&Object(l.a)(t,"click").pipe(Object(g.a)(n),Object(w.a)(e),Object(y.a)(e=>e[1])).subscribe(e=>e.focus())})},ht=/\s+/,pt=new class{getAllStyles(e){return window.getComputedStyle(e)}getStyle(e,t){return this.getAllStyles(e)[t]}isStaticPositioned(e){return"static"===(this.getStyle(e,"position")||"static")}offsetParent(e){let t=e.offsetParent||document.documentElement;for(;t&&t!==document.documentElement&&this.isStaticPositioned(t);)t=t.offsetParent;return t||document.documentElement}position(e,t=!0){let n,i={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(e,"position"))n=e.getBoundingClientRect(),n={top:n.top,bottom:n.bottom,left:n.left,right:n.right,height:n.height,width:n.width};else{const t=this.offsetParent(e);n=this.offset(e,!1),t!==document.documentElement&&(i=this.offset(t,!1)),i.top+=t.clientTop,i.left+=t.clientLeft}return n.top-=i.top,n.bottom-=i.top,n.left-=i.left,n.right-=i.left,t&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n}offset(e,t=!0){const n=e.getBoundingClientRect(),i=window.pageYOffset-document.documentElement.clientTop,r=window.pageXOffset-document.documentElement.clientLeft;let s={height:n.height||e.offsetHeight,width:n.width||e.offsetWidth,top:n.top+i,bottom:n.bottom+i,left:n.left+r,right:n.right+r};return t&&(s.height=Math.round(s.height),s.width=Math.round(s.width),s.top=Math.round(s.top),s.bottom=Math.round(s.bottom),s.left=Math.round(s.left),s.right=Math.round(s.right)),s}positionElements(e,t,n,i){const[r="top",s="center"]=n.split("-"),o=i?this.offset(e,!1):this.position(e,!1),a=this.getAllStyles(t),c=parseFloat(a.marginTop),l=parseFloat(a.marginBottom),u=parseFloat(a.marginLeft),d=parseFloat(a.marginRight);let h=0,p=0;switch(r){case"top":h=o.top-(t.offsetHeight+c+l);break;case"bottom":h=o.top+o.height;break;case"left":p=o.left-(t.offsetWidth+u+d);break;case"right":p=o.left+o.width}switch(s){case"top":h=o.top;break;case"bottom":h=o.top+o.height-t.offsetHeight;break;case"left":p=o.left;break;case"right":p=o.left+o.width-t.offsetWidth;break;case"center":"top"===r||"bottom"===r?p=o.left+o.width/2-t.offsetWidth/2:h=o.top+o.height/2-t.offsetHeight/2}t.style.transform=`translate(${Math.round(p)}px, ${Math.round(h)}px)`;const f=t.getBoundingClientRect(),g=document.documentElement,m=window.innerHeight||g.clientHeight,b=window.innerWidth||g.clientWidth;return f.left>=0&&f.top>=0&&f.right<=b&&f.bottom<=m}};function ft(e,t,n,i,r){let s=Array.isArray(n)?n:n.split(ht);const o=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],a=t.classList,c=e=>{const[t,n]=e.split("-"),i=[];return r&&(i.push(`${r}-${t}`),n&&i.push(`${r}-${t}-${n}`),i.forEach(e=>{a.add(e)})),i};r&&o.forEach(e=>{a.remove(`${r}-${e}`)});let l=s.findIndex(e=>"auto"===e);l>=0&&o.forEach(function(e){null==s.find(t=>-1!==t.search("^"+e))&&s.splice(l++,1,e)});const u=t.style;u.position="absolute",u.top="0",u.left="0",u["will-change"]="transform";let d=null,h=!1;for(d of s){let n=c(d);if(pt.positionElements(e,t,d,i)){h=!0;break}r&&n.forEach(e=>{a.remove(e)})}return h||(d=s[0],c(d),pt.positionElements(e,t,d,i)),d}function gt(){return new bt}let mt=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Pb)({factory:gt,token:e,providedIn:"root"}),e})(),bt=(()=>{class e extends mt{parse(e){if(null!=e){const t=e.trim().split("-");if(1===t.length&&me(t[0]))return{year:fe(t[0]),month:null,day:null};if(2===t.length&&me(t[0])&&me(t[1]))return{year:fe(t[0]),month:fe(t[1]),day:null};if(3===t.length&&me(t[0])&&me(t[1])&&me(t[2]))return{year:fe(t[0]),month:fe(t[1]),day:fe(t[2])}}return null}format(e){return e?`${e.year}-${me(e.month)?ve(e.month):""}-${me(e.day)?ve(e.day):""}`:""}}return e.\u0275fac=function(t){return yt(t||e)},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();const yt=i.bc(bt);let vt=(()=>{class e extends $e{constructor(){super(...arguments),this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"],this.restoreFocus=!0}}return e.\u0275fac=function(t){return _t(t||e)},e.\u0275prov=Object(i.Pb)({factory:function(){return new e},token:e,providedIn:"root"}),e})();const _t=i.bc(vt);let wt=(()=>{class e{constructor(e,t,n,r,s,o,a,c,l,u,d){this._parserFormatter=e,this._elRef=t,this._vcRef=n,this._renderer=r,this._cfr=s,this._ngZone=o,this._calendar=a,this._dateAdapter=c,this._document=l,this._changeDetector=u,this._cRef=null,this._disabled=!1,this._elWithFocus=null,this._model=null,this.dateSelect=new i.o,this.navigate=new i.o,this.closed=new i.o,this._onChange=e=>{},this._onTouched=()=>{}
1,this._validatorChange=()=>{},["autoClose","container","positionTarget","placement"].forEach(e=>this[e]=d[e]),this._zoneSubscription=o.onStable.subscribe(()=>this._updatePopupPosition())}set showWeekdays(e){this.weekdays=e,this._showWeekdays=e}get showWeekdays(){return this._showWeekdays}get disabled(){return this._disabled}set disabled(e){this._disabled=""===e||e&&"false"!==e,this.isOpen()&&this._cRef.instance.setDisabledState(this._disabled)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}registerOnValidatorChange(e){this._validatorChange=e}setDisabledState(e){this.disabled=e}validate(e){const{value:t}=e;if(null!=t){const e=this._fromDateStruct(this._dateAdapter.fromModel(t));if(!e)return{ngbDate:{invalid:t}};if(this.minDate&&e.before(Re.from(this.minDate)))return{ngbDate:{minDate:{minDate:this.minDate,actual:t}}};if(this.maxDate&&e.after(Re.from(this.maxDate)))return{ngbDate:{maxDate:{maxDate:this.maxDate,actual:t}}}}return null}writeValue(e){this._model=this._fromDateStruct(this._dateAdapter.fromModel(e)),this._writeModelValue(this._model)}manualDateChange(e,t=!1){const n=e!==this._inputValue;n&&(this._inputValue=e,this._model=this._fromDateStruct(this._parserFormatter.parse(e))),!n&&t||this._onChange(this._model?this._dateAdapter.toModel(this._model):""===e?null:e),t&&this._model&&this._writeModelValue(this._model)}isOpen(){return!!this._cRef}open(){if(!this.isOpen()){const e=this._cfr.resolveComponentFactory(et);this._cRef=this._vcRef.createComponent(e),this._applyPopupStyling(this._cRef.location.nativeElement),this._applyDatepickerInputs(this._cRef.instance),this._subscribeForDatepickerOutputs(this._cRef.instance),this._cRef.instance.ngOnInit(),this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)),this._cRef.instance.registerOnChange(e=>{this.writeValue(e),this._onChange(e),this._onTouched()}),this._cRef.changeDetectorRef.detectChanges(),this._cRef.instance.setDisabledState(this.disabled),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._cRef.location.nativeElement),this._elWithFocus=this._document.activeElement,dt(this._ngZone,this._cRef.location.nativeElement,this.closed,!0),this._cRef.instance.focus(),ct(this._ngZone,this._document,this.autoClose,()=>this.close(),this.closed,[],[this._elRef.nativeElement,this._cRef.location.nativeElement])}}close(){if(this.isOpen()){this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView)),this._cRef=null,this.closed.emit(),this._changeDetector.markForCheck();let e=this._elWithFocus;ge(this.restoreFocus)?e=this._document.querySelector(this.restoreFocus):void 0!==this.restoreFocus&&(e=this.restoreFocus),e&&e.focus?e.focus():this._document.body.focus()}}toggle(){this.isOpen()?this.close():this.open()}navigateTo(e){this.isOpen()&&this._cRef.instance.navigateTo(e)}onBlur(){this._onTouched()}onFocus(){this._elWithFocus=this._elRef.nativeElement}ngOnChanges(e){if((e.minDate||e.maxDate)&&(this._validatorChange(),this.isOpen()&&(e.minDate&&(this._cRef.instance.minDate=this.minDate),e.maxDate&&(this._cRef.instance.maxDate=this.maxDate),this._cRef.instance.ngOnChanges(e))),e.datepickerClass){const{currentValue:t,previousValue:n}=e.datepickerClass;this._applyPopupClass(t,n)}}ngOnDestroy(){this.close(),this._zoneSubscription.unsubscribe()}_applyDatepickerInputs(e){["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showNavigation","showWeekNumbers","weekdays"].forEach(t=>{void 0!==this[t]&&(e[t]=this[t])}),e.startDate=this.startDate||this._model}_applyPopupClass(e,t){var n;const i=null===(n=this._cRef)||void 0===n?void 0:n.location.nativeElement;i&&(e&&this._renderer.addClass(i,e),t&&this._renderer.removeClass(i,t))}_applyPopupStyling(e){this._renderer.addClass(e,"dropdown-menu"),this._renderer.addClass(e,"show"),"body"===this.container&&this._renderer.addClass(e,"ngb-dp-body"),this._applyPopupClass(this.datepickerClass)}_subscribeForDatepickerOutputs(e){e.navigate.subscribe(e=>this.navigate.emit(e)),e.dateSelect.subscribe(e=>{this.dateSelect.emit(e),!0!==this.autoClose&&"inside"!==this.autoClose||this.close()})}_writeModelValue(e){const t=this._parserFormatter.format(e);this._inputValue=t,this._renderer.setProperty(this._elRef.nativeElement,"value",t),this.isOpen()&&(this._cRef.instance.writeValue(this._dateAdapter.toModel(e)),this._onTouched())}_fromDateStruct(e){const t=e?new Re(e.year,e.month,e.day):null;return this._calendar.isValid(t)?t:null}_updatePopupPosition(){if(!this._cRef)return;let e;if(e=ge(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget instanceof HTMLElement?this.positionTarget:this._elRef.nativeElement,this.positionTarget&&!e)throw new Error("ngbDatepicker could not find element declared in [positionTarget] to position against.");ft(e,this._cRef.location.nativeElement,this.placement,"body"===this.container)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(mt),i.Tb(i.l),i.Tb(i.U),i.Tb(i.H),i.Tb(i.j),i.Tb(i.C),i.Tb(Ne),i.Tb(Qe),i.Tb(r.d),i.Tb(i.h),i.Tb(vt))},e.\u0275dir=i.Ob({type:e,selectors:[["input","ngbDatepicker",""]],hostVars:1,hostBindings:function(e,t){1&e&&i.jc("input",function(e){return t.manualDateChange(e.target.value)})("change",function(e){return t.manualDateChange(e.target.value,!0)})("focus",function(){return t.onFocus()})("blur",function(){return t.onBlur()}),2&e&&i.cc("disabled",t.disabled)},inputs:{showWeekdays:"showWeekdays",weekdays:"weekdays",disabled:"disabled",autoClose:"autoClose",datepickerClass:"datepickerClass",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",minDate:"minDate",maxDate:"maxDate",navigation:"navigation",outsideDays:"outsideDays",placement:"placement",restoreFocus:"restoreFocus",showWeekNumbers:"showWeekNumbers",startDate:"startDate",container:"container",positionTarget:"positionTarget"},outputs:{dateSelect:"dateSelect",navigate:"navigate",closed:"closed"},exportAs:["ngbDatepicker"],features:[i.Fb([{provide:T.m,useExisting:Object(i.Y)(()=>e),multi:!0},{provide:T.l,useExisting:Object(i.Y)(()=>e),multi:!0},{provide:$e,useExisting:vt}]),i.Eb]}),e})(),kt=(()=>{class e{constructor(e){this.i18n=e}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(He))},e.\u0275cmp=i.Nb({type:e,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(e,t){2&e&&i.Lb("bg-primary",t.selected)("text-white",t.selected)("text-muted",t.isMuted())("outside",t.isMuted())("active",t.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},attrs:Q,decls:1,vars:1,template:function(e,t){1&e&&i.Qc(0),2&e&&i.Rc(t.i18n.getDayNumerals(t.date))},styles:["[ngbDatepickerDayView]{background:transparent;border-radius:.25rem;height:2rem;line-height:2rem;text-align:center;width:2rem}[ngbDatepickerDayView].outside{opacity:.5}"],encapsulation:2,changeDetection:0}),e})(),Ct=(()=>{class e{constructor(e,t){this.i18n=e,this._renderer=t,this.select=new i.o,this._month=-1,this._year=-1}changeMonth(e){this.select.emit(new Re(this.date.year,fe(e),1))}changeYear(e){this.select.emit(new Re(fe(e),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this._renderer.setProperty(this.monthSelect.nativeElement,"value",this._month)),this.date.year!==this._year&&(this._year=this.date.year,this._renderer.setProperty(this.yearSelect.nativeElement,"value",this._year)))}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(He),i.Tb(i.H))},e.\u0275cmp=i.Nb({type:e,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(e,t){if(1&e&&(i.Vc(X,3,i.l),i.Vc(K,3,i.l)),2&e){let e;i.Ec(e=i.kc())&&(t.monthSelect=e.first),i.Ec(e=i.kc())&&(t.yearSelect=e.first)}},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},decls:6,vars:4,consts:function(){let e,t,n,i;return e=$localize`:@@ngb.datepicker.select-monthâ1dbc84807f35518112f62e5775d1daebd3d8462bâ2253869508135064750:Select month`,t=$localize`:@@ngb.datepicker.select-monthâ1dbc84807f35518112f62e5775d1daebd3d8462bâ2253869508135064750:Select month`,n=$localize`:@@ngb.datepicker.select-yearâ8ceb09d002bf0c5d1cac171dfbffe1805d2b3962â8852264961585484321:Select year`,i=$localize`:@@ngb.datepicker.select-yearâ8ceb09d002bf0c5d1cac171dfbffe1805d2b3962â8852264961585484321:Select year`,[["aria-label",e,"title",t,1,"custom-select",3,"disabled","change"],["month",""],[3,"value",4,"ngFor","ngForOf"],["aria-label",n,"title",i,1,"custom-select",3,"disabled","change"],["year",""],[3,"value"]]}
1,template:function(e,t){1&e&&(i.Zb(0,"select",0,1),i.jc("change",function(e){return t.changeMonth(e.target.value)}),i.Oc(2,J,2,3,"option",2),i.Yb(),i.Zb(3,"select",3,4),i.jc("change",function(e){return t.changeYear(e.target.value)}),i.Oc(5,ee,2,2,"option",2),i.Yb()),2&e&&(i.tc("disabled",t.disabled),i.Gb(2),i.tc("ngForOf",t.months),i.Gb(1),i.tc("disabled",t.disabled),i.Gb(2),i.tc("ngForOf",t.years))},directives:[r.m,T.s,T.A],styles:["ngb-datepicker-navigation-select>.custom-select{flex:1 1 auto;font-size:.875rem;height:1.85rem;padding:0 .5rem}ngb-datepicker-navigation-select>.custom-select:focus{z-index:1}ngb-datepicker-navigation-select>.custom-select::-ms-value{background-color:transparent!important}"],encapsulation:2,changeDetection:0}),e})();new Date(1882,10,12),new Date(2174,10,25);let St=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[r.c,T.i]]}),e})(),Tt=(()=>{class e{constructor(){this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"]}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Pb)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Pt=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["",8,"navbar"]]}),e})(),Ot=(()=>{class e{constructor(e){this.elementRef=e,this._disabled=!1}set disabled(e){this._disabled=""===e||!0===e}get disabled(){return this._disabled}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l))},e.\u0275dir=i.Ob({type:e,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:2,hostBindings:function(e,t){2&e&&i.Lb("disabled",t.disabled)},inputs:{disabled:"disabled"}}),e})(),xt=(()=>{class e{constructor(e,t){this.dropdown=e,this.placement="bottom",this.isOpen=!1,this.nativeElement=t.nativeElement}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(Object(i.Y)(()=>Mt)),i.Tb(i.l))},e.\u0275dir=i.Ob({type:e,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(e,t,n){if(1&e&&i.Mb(n,Ot,0),2&e){let e;i.Ec(e=i.kc())&&(t.menuItems=e)}},hostVars:5,hostBindings:function(e,t){1&e&&i.jc("keydown.ArrowUp",function(e){return t.dropdown.onKeyDown(e)})("keydown.ArrowDown",function(e){return t.dropdown.onKeyDown(e)})("keydown.Home",function(e){return t.dropdown.onKeyDown(e)})("keydown.End",function(e){return t.dropdown.onKeyDown(e)})("keydown.Enter",function(e){return t.dropdown.onKeyDown(e)})("keydown.Space",function(e){return t.dropdown.onKeyDown(e)})("keydown.Tab",function(e){return t.dropdown.onKeyDown(e)})("keydown.Shift.Tab",function(e){return t.dropdown.onKeyDown(e)}),2&e&&(i.Hb("x-placement",t.placement),i.Lb("dropdown-menu",!0)("show",t.dropdown.isOpen()))}}),e})(),At=(()=>{class e{constructor(e,t){this.dropdown=e,this.nativeElement=t.nativeElement}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(Object(i.Y)(()=>Mt)),i.Tb(i.l))},e.\u0275dir=i.Ob({type:e,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,t){2&e&&i.Hb("aria-expanded",t.dropdown.isOpen())}}),e})(),Et=(()=>{class e extends At{constructor(e,t){super(e,t)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(Object(i.Y)(()=>Mt)),i.Tb(i.l))},e.\u0275dir=i.Ob({type:e,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,t){1&e&&i.jc("click",function(){return t.dropdown.toggle()})("keydown.ArrowUp",function(e){return t.dropdown.onKeyDown(e)})("keydown.ArrowDown",function(e){return t.dropdown.onKeyDown(e)})("keydown.Home",function(e){return t.dropdown.onKeyDown(e)})("keydown.End",function(e){return t.dropdown.onKeyDown(e)})("keydown.Tab",function(e){return t.dropdown.onKeyDown(e)})("keydown.Shift.Tab",function(e){return t.dropdown.onKeyDown(e)}),2&e&&i.Hb("aria-expanded",t.dropdown.isOpen())},features:[i.Fb([{provide:At,useExisting:Object(i.Y)(()=>e)}]),i.Db]}),e})(),Mt=(()=>{class e{constructor(e,t,n,r,s,o,a){this._changeDetector=e,this._document=n,this._ngZone=r,this._elementRef=s,this._renderer=o,this._closed$=new c.a,this._bodyContainer=null,this._open=!1,this.openChange=new i.o,this.placement=t.placement,this.container=t.container,this.autoClose=t.autoClose,this.display=a?"static":"dynamic",this._zoneSubscription=r.onStable.subscribe(()=>{this._positionMenu()})}ngAfterContentInit(){this._ngZone.onStable.pipe(Object(b.a)(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(e){if(e.container&&this._open&&this._applyContainer(this.container),e.placement&&!e.placement.isFirstChange&&this._applyPlacementClasses(),e.dropdownClass){const{currentValue:t,previousValue:n}=e.dropdownClass;this._applyCustomDropdownClass(t,n)}}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&this._anchor.nativeElement.focus())}_setCloseHandlers(){ct(this._ngZone,this._document,this.autoClose,e=>{this.close(),0===e&&this._anchor.nativeElement.focus()},this._closed$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._closed$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this._resetContainer(),this._closed$.next(),this._zoneSubscription.unsubscribe()}onKeyDown(e){const t=e.which,n=this._getMenuElements();let i=-1,r=null;const s=this._isEventFromToggle(e);
1if(!s&&n.length&&n.forEach((t,n)=>{t.contains(e.target)&&(r=t),t===this._document.activeElement&&(i=n)}),t!==tt.Space&&t!==tt.Enter){if(t!==tt.Tab){if(s||r){if(this.open(),n.length){switch(t){case tt.ArrowDown:i=Math.min(i+1,n.length-1);break;case tt.ArrowUp:if(this._isDropup()&&-1===i){i=n.length-1;break}i=Math.max(i-1,0);break;case tt.Home:i=0;break;case tt.End:i=n.length-1}n[i].focus()}e.preventDefault()}}else if(e.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===e.target)return void("body"!==this.container||e.shiftKey?e.shiftKey&&this.close():(this._renderer.setAttribute(this._menu.nativeElement,"tabindex","0"),this._menu.nativeElement.focus(),this._renderer.removeAttribute(this._menu.nativeElement,"tabindex")));if("body"===this.container){const t=this._menu.nativeElement.querySelectorAll(lt);e.shiftKey&&e.target===t[0]?(this._anchor.nativeElement.focus(),e.preventDefault()):e.shiftKey||e.target!==t[t.length-1]||(this._anchor.nativeElement.focus(),this.close())}else Object(l.a)(e.target,"focusout").pipe(Object(b.a)(1)).subscribe(({relatedTarget:e})=>{this._elementRef.nativeElement.contains(e)||this.close()})}}else!r||!0!==this.autoClose&&"inside"!==this.autoClose||Object(l.a)(r,"click").pipe(Object(b.a)(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(e){return this._anchor.nativeElement.contains(e.target)}_getMenuElements(){const e=this._menu;return null==e?[]:e.menuItems.filter(e=>!e.disabled).map(e=>e.elementRef.nativeElement)}_positionMenu(){const e=this._menu;this.isOpen()&&e&&this._applyPlacementClasses("dynamic"===this.display?ft(this._anchor.nativeElement,this._bodyContainer||this._menu.nativeElement,this.placement,"body"===this.container):this._getFirstPlacement(this.placement))}_getFirstPlacement(e){return Array.isArray(e)?e[0]:e.split(" ")[0]}_resetContainer(){const e=this._renderer;if(this._menu){const t=this._menu.nativeElement;e.appendChild(this._elementRef.nativeElement,t),e.removeStyle(t,"position"),e.removeStyle(t,"transform")}this._bodyContainer&&(e.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(e=null){if(this._resetContainer(),"body"===e){const e=this._renderer,t=this._menu.nativeElement,n=this._bodyContainer=this._bodyContainer||e.createElement("div");e.setStyle(n,"position","absolute"),e.setStyle(t,"position","static"),e.setStyle(n,"z-index","1050"),e.appendChild(n,t),e.appendChild(this._document.body,n)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(e,t){const n="body"===this.container?this._bodyContainer:this._elementRef.nativeElement;n&&(t&&this._renderer.removeClass(n,t),e&&this._renderer.addClass(n,e))}_applyPlacementClasses(e){const t=this._menu;if(t){e||(e=this._getFirstPlacement(this.placement));const n=this._renderer,i=this._elementRef.nativeElement;n.removeClass(i,"dropup"),n.removeClass(i,"dropdown"),t.placement="static"===this.display?null:e;const r=-1!==e.search("^top")?"dropup":"dropdown";n.addClass(i,r);const s=this._bodyContainer;s&&(n.removeClass(s,"dropup"),n.removeClass(s,"dropdown"),n.addClass(s,r))}}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.h),i.Tb(Tt),i.Tb(r.d),i.Tb(i.C),i.Tb(i.l),i.Tb(i.H),i.Tb(Pt,8))},e.\u0275dir=i.Ob({type:e,selectors:[["","ngbDropdown",""]],contentQueries:function(e,t,n){if(1&e&&(i.Mb(n,xt,1),i.Mb(n,At,1)),2&e){let e;i.Ec(e=i.kc())&&(t._menu=e.first),i.Ec(e=i.kc())&&(t._anchor=e.first)}},hostVars:2,hostBindings:function(e,t){2&e&&i.Lb("show",t.isOpen())},inputs:{_open:["open","_open"],placement:"placement",container:"container",autoClose:"autoClose",display:"display",dropdownClass:"dropdownClass"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],features:[i.Eb]}),e})(),It=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({}),e})(),Rt=(()=>{class e{constructor(e){this._ngbConfig=e,this.backdrop=!0,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return e.\u0275fac=function(t){return new(t||e)(i.gc(Ce))},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.gc)(Ce))},token:e,providedIn:"root"}),e})();class Lt{constructor(e,t,n){this.nodes=e,this.viewRef=t,this.componentRef=n}}class Dt{constructor(e,t,n,i,r,s,o){this._type=e,this._injector=t,this._viewContainerRef
1=n,this._renderer=i,this._ngZone=r,this._componentFactoryResolver=s,this._applicationRef=o,this._windowRef=null,this._contentRef=null}open(e,t,n=!1){this._windowRef||(this._contentRef=this._getContentRef(e,t),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),this._viewContainerRef.length,this._injector,this._contentRef.nodes));const{nativeElement:i}=this._windowRef.location,r=this._ngZone.onStable.pipe(Object(b.a)(1),Object(C.b)(()=>Oe(this._ngZone,i,({classList:e})=>e.add("show"),{animation:n,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:r}}close(e=!1){return this._windowRef?Oe(this._ngZone,this._windowRef.location.nativeElement,({classList:e})=>e.remove("show"),{animation:e,runningTransition:"stop"}).pipe(Object(_.a)(()=>{var e;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),(null===(e=this._contentRef)||void 0===e?void 0:e.viewRef)&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):Object(a.a)(void 0)}_getContentRef(e,t){if(e){if(e instanceof i.Q){const n=e.createEmbeddedView(t);return this._applicationRef.attachView(n),new Lt([n.rootNodes],n)}return new Lt([[this._renderer.createText(`${e}`)]])}return new Lt([])}}const jt=()=>{};let Nt=(()=>{class e{constructor(e){this._document=e}compensate(){const e=this._getWidth();return this._isPresent(e)?this._adjustBody(e):jt}_adjustBody(e){const t=this._document.body,n=t.style.paddingRight,i=parseFloat(window.getComputedStyle(t)["padding-right"]);return t.style["padding-right"]=`${i+e}px`,()=>t.style["padding-right"]=n}_isPresent(e){const t=this._document.body.getBoundingClientRect();return window.innerWidth-(t.left+t.right)>=e-.1*e}_getWidth(){const e=this._document.createElement("div");e.className="modal-scrollbar-measure";const t=this._document.body;t.appendChild(e);const n=e.getBoundingClientRect().width-e.clientWidth;return t.removeChild(e),n}}return e.\u0275fac=function(t){return new(t||e)(i.gc(r.d))},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.gc)(r.d))},token:e,providedIn:"root"}),e})(),Vt=(()=>{class e{constructor(e,t){this._el=e,this._zone=t}ngOnInit(){this._zone.onStable.asObservable().pipe(Object(b.a)(1)).subscribe(()=>{Oe(this._zone,this._el.nativeElement,(e,t)=>{t&&we(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return Oe(this._zone,this._el.nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.C))},e.\u0275cmp=i.Nb({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(e,t){2&e&&(i.Ib("modal-backdrop"+(t.backdropClass?" "+t.backdropClass:"")),i.Lb("show",!t.animation)("fade",t.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,t){},encapsulation:2}),e})();class zt{close(e){}dismiss(e){}}class Ft{constructor(e,t,n,i){this._windowCmptRef=e,this._contentRef=t,this._backdropCmptRef=n,this._beforeDismiss=i,this._closed=new c.a,this._dismissed=new c.a,this._hidden=new c.a,e.instance.dismissEvent.subscribe(e=>{this.dismiss(e)}),this.result=new Promise((e,t)=>{this._resolve=e,this._reject=t}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(Object(g.a)(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(Object(g.a)(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(e){this._windowCmptRef&&(this._closed.next(e),this._resolve(e),this._removeModalElements())}_dismiss(e){this._dismissed.next(e),this._reject(e),this._removeModalElements()}dismiss(e){if(this._windowCmptRef)if(this._beforeDismiss){const t=this._beforeDismiss();t&&t.then?t.then(t=>{!1!==t&&this._dismiss(e)},()=>{}):!1!==t&&this._dismiss(e)}else this._dismiss(e)}_removeModalElements(){const e=this._windowCmptRef.instance.hide(),t=this._backdropCmptRef?this._backdropCmptRef.instance.hide():Object(a.a)(void 0);e.subscribe(()=>{const{nativeElement:e}=this._windowCmptRef.location;e.parentNode.removeChild(e),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),t.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:e}=this._backdropCmptRef.location;e.parentNode.removeChild(e),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Object(h.b)(e,t).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var Bt=function(e){return e[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",e}({});let qt=(()=>{class e{constructor(e,t,n){this._document=e,this._elRef=t,this._zone=n,this._closed$=new c.a,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new i.o,this.shown=new c.a,this.hidden=new c.a}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(Object(b.a)(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,t={animation:this.animation,runningTransition:"stop"},n=Oe(this._zone,e,()=>e.classList.remove("show"),t),i=Oe(this._zone,this._dialogEl.nativeElement,()=>{},t),r=Object(h.b)(n,i);return r.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),r}_show(){const e={animation:this.animation,runningTransition:"continue"},t=Oe(this._zone,this._elRef.nativeElement,(e,t)=>{t&&we(e),e.classList.add("show")},e),n=Oe(this._zone,this._dialogEl.nativeElement,()=>{},e);Object(h.b)(t,n).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{Object(l.a)(e,"keydown").pipe(Object(g.a)(this._closed$),Object(m.a)(e=>e.which===tt.Escape)).subscribe(e=>{this.keyboard?requestAnimationFrame(()=>{e.defaultPrevented||this._zone.run(()=>this.dismiss(Bt.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let t=!1;Object(l.a)(this._dialogEl.nativeElement,"mousedown").pipe(Object(g.a)(this._closed$),Object(_.a)(()=>t=!1),Object(v.a)(()=>Object(l.a)(e,"mouseup").pipe(Object(g.a)(this._closed$),Object(b.a)(1))),Object(m.a)(({target:t})=>e===t)).subscribe(()=>{t=!0}),Object(l.a)(e,"click").pipe(Object(g.a)(this._closed$)).subscribe(({target:n})=>{e===n&&("static"===this.backdrop?this._bumpBackdrop():!0!==this.backdrop||t||this._zone.run(()=>this.dismiss(Bt.BACKDROP_CLICK))),t=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const t=e.querySelector("[ngbAutofocus]"),n=ut(e)[0];(t||n||e).focus()}}_restoreFocus(){const e=this._document.body,t=this._elWithFocus;let n;n=t&&t.focus&&e.contains(t)?t:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>n.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&Oe(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(r.d),i.Tb(i.l),i.Tb(i.C))},e.\u0275cmp=i.Nb({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(e,t){if(1&e&&i.Vc(te,3),2&e){let e;i.Ec(e=i.kc())&&(t._dialogEl=e.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,t){2&e&&(i.Hb("aria-modal",!0)("aria-labelledby",t.ariaLabelledBy)("aria-describedby",t.ariaDescribedBy),i.Ib("modal d-block"+(t.windowClass?" "+t.windowClass:"")),i.Lb("fade",t.animation))},inputs:{backdrop:"backdrop",keyboard:"keyboard",animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:P,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,t){1&e&&(i.sc(),i.Zb(0,"div",0,1),i.Zb(2,"div",2),i.rc(3),i.Yb(),i.Yb()),2&e&&i.Ib("modal-dialog"+(t.size?" modal-"+t.size:"")+(t.centered?" modal-dialog-centered":"")+(t.scrollable?" modal-dialog-scrollable":"")+(t.modalDialogClass?" "+t.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}"],encapsulation:2}),e})(),Ut=(()=>{class e{constructor(e,t,n,r,s,o){this._applicationRef=e,this._injector=t,this._document=n,this._scrollBar=r,this._rendererFactory=s,this._ngZone=o,this._activeWindowCmptHasChanged=new c.a,this._ariaHiddenValues=new Map,this._backdropAttributes=["animation","backdropClass"],this._modalRef
1s=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new i.o,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const e=this._windowCmpts[this._windowCmpts.length-1];dt(this._ngZone,e.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(e.location.nativeElement)}})}open(e,t,n,i){const r=i.container instanceof HTMLElement?i.container:ye(i.container)?this._document.querySelector(i.container):this._document.body,s=this._rendererFactory.createRenderer(null,null),o=this._scrollBar.compensate(),a=()=>{this._modalRefs.length||(s.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!r)throw new Error(`The specified modal container "${i.container||"body"}" was not found in the DOM.`);const c=new zt,l=this._getContentRef(e,i.injector||t,n,c,i);let u=!1!==i.backdrop?this._attachBackdrop(e,r):void 0,d=this._attachWindowComponent(e,r,l),h=new Ft(d,l,u,i.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(d),h.result.then(o,o),h.result.then(a,a),c.close=e=>{h.close(e)},c.dismiss=e=>{h.dismiss(e)},this._applyWindowOptions(d.instance,i),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),u&&u.instance&&(this._applyBackdropOptions(u.instance,i),u.changeDetectorRef.detectChanges()),d.changeDetectorRef.detectChanges(),h}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(t=>t.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e,t){let n=e.resolveComponentFactory(Vt).create(this._injector);return this._applicationRef.attachView(n.hostView),t.appendChild(n.location.nativeElement),n}_attachWindowComponent(e,t,n){let i=e.resolveComponentFactory(qt).create(this._injector,n.nodes);return this._applicationRef.attachView(i.hostView),t.appendChild(i.location.nativeElement),i}_applyWindowOptions(e,t){this._windowAttributes.forEach(n=>{ye(t[n])&&(e[n]=t[n])})}_applyBackdropOptions(e,t){this._backdropAttributes.forEach(n=>{ye(t[n])&&(e[n]=t[n])})}_getContentRef(e,t,n,r,s){return n?n instanceof i.Q?this._createFromTemplateRef(n,r):ge(n)?this._createFromString(n):this._createFromComponent(e,t,n,r,s):new Lt([])}_createFromTemplateRef(e,t){const n=e.createEmbeddedView({$implicit:t,close(e){t.close(e)},dismiss(e){t.dismiss(e)}});return this._applicationRef.attachView(n),new Lt([n.rootNodes],n)}_createFromString(e){const t=this._document.createTextNode(`${e}`);return new Lt([[t]])}_createFromComponent(e,t,n,r,s){const o=e.resolveComponentFactory(n),a=i.u.create({providers:[{provide:zt,useValue:r}],parent:t}),c=o.create(a),l=c.location.nativeElement;return s.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(c.hostView),new Lt([[l]],c.hostView,c)}_setAriaHidden(e){const t=e.parentElement;t&&e!==this._document.body&&(Array.from(t.children).forEach(t=>{t!==e&&"SCRIPT"!==t.nodeName&&(this._ariaHiddenValues.set(t,t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))}),this._setAriaHidden(t))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,t)=>{e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const t=()=>{const t=this._modalRefs.indexOf(e);t>-1&&(this._modalRefs.splice(t,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(t,t)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const t=this._windowCmpts.indexOf(e);t>-1&&(this._windowCmpts.splice(t,1),this._activeWindowCmptHasChanged.next())})}}return e.\u0275fac=function(t){return new(t||e)(i.gc(i.g),i.gc(i.u),i.gc(r.d),i.gc(Nt),i.gc(i.I),i.gc(i.C))},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.gc)(i.g),Object(i.gc)(i.q),Object(i.gc)(r.d),Object(i.gc)(Nt),Object(i.gc)(i.I),Object(i.gc)(i.C))},token:e,providedIn:"root"}),e})(),Ht=(()=>
1{class e{constructor(e,t,n,i){this._moduleCFR=e,this._injector=t,this._modalStack=n,this._config=i}open(e,t={}){const n=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),t);return this._modalStack.open(this._moduleCFR,this._injector,e,n)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return e.\u0275fac=function(t){return new(t||e)(i.gc(i.j),i.gc(i.u),i.gc(Ut),i.gc(Rt))},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.gc)(i.j),Object(i.gc)(i.q),Object(i.gc)(Ut),Object(i.gc)(Rt))},token:e,providedIn:"root"}),e})(),Wt=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({providers:[Ht]}),e})(),Gt=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[r.c]]}),e})(),Yt=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[r.c]]}),e})();class $t{constructor(e,t){this.open=e,this.close=t,t||(this.close=e)}isManual(){return"manual"===this.open||"manual"===this.close}}const Zt={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},Qt=e=>e>0?Object(k.a)(e):e=>e;let Xt=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[r.c]]}),e})(),Kt=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[r.c]]}),e})(),Jt=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[r.c]]}),e})();class en{constructor(e,t,n){this.hour=fe(e),this.minute=fe(t),this.second=fe(n)}changeHour(e=1){this.updateHour((isNaN(this.hour)?0:this.hour)+e)}updateHour(e){this.hour=me(e)?(e<0?24+e:e)%24:NaN}changeMinute(e=1){this.updateMinute((isNaN(this.minute)?0:this.minute)+e)}updateMinute(e){me(e)?(this.minute=e%60<0?60+e%60:e%60,this.changeHour(Math.floor(e/60))):this.minute=NaN}changeSecond(e=1){this.updateSecond((isNaN(this.second)?0:this.second)+e)}updateSecond(e){me(e)?(this.second=e<0?60+e%60:e%60,this.changeMinute(Math.floor(e/60))):this.second=NaN}isValid(e=!0){return me(this.hour)&&me(this.minute)&&(!e||me(this.second))}toString(){return`${this.hour||0}:${this.minute||0}:${this.second||0}`}}let tn=(()=>{class e{constructor(){this.meridian=!1,this.spinners=!0,this.seconds=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.disabled=!1,this.readonlyInputs=!1,this.size="medium"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Pb)({factory:function(){return new e},token:e,providedIn:"root"}),e})();function nn(){return new sn}let rn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Pb)({factory:nn,token:e,providedIn:"root"}),e})(),sn=(()=>{class e extends rn{fromModel(e){return e&&be(e.hour)&&be(e.minute)?{hour:e.hour,minute:e.minute,second:be(e.second)?e.second:null}:null}toModel(e){return e&&be(e.hour)&&be(e.minute)?{hour:e.hour,minute:e.minute,second:be(e.second)?e.second:null}:null}}return e.\u0275fac=function(t){return on(t||e)},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();const on=i.bc(sn);let an=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Pb)({factory:function(){return e=Object(i.gc)(i.x),new cn(e);var e},token:e,providedIn:"root"}),e})(),cn=(()=>{class e extends an{constructor(e){super(),this._periods=Object(r.A)(e,r.f.Standalone,r.w.Narrow)}getMorningPeriod(){return this._periods[0]}getAfternoonPeriod(){return this._periods[1]}}return e.\u0275fac=function(t){return new(t||e)(i.gc(i.x))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();const ln=/[^0-9]/g;let un=(()=>{class e{constructor(e,t,n,i){this._config=e,this._ngbTimeAdapter=t,this._cd=n,this.i18n=i,this.onChange=e=>{},this.onTouched=()=>{},this.meridian=e.meridian,this.spinners=e.spinners,this.seconds=e.seconds,this.hourStep=e.hourStep,this.minuteStep=e.minuteStep,this.secondStep=e.secondStep,this.disabled=e.disabled,this.readonlyInput
1s=e.readonlyInputs,this.size=e.size}set hourStep(e){this._hourStep=be(e)?e:this._config.hourStep}get hourStep(){return this._hourStep}set minuteStep(e){this._minuteStep=be(e)?e:this._config.minuteStep}get minuteStep(){return this._minuteStep}set secondStep(e){this._secondStep=be(e)?e:this._config.secondStep}get secondStep(){return this._secondStep}writeValue(e){const t=this._ngbTimeAdapter.fromModel(e);this.model=t?new en(t.hour,t.minute,t.second):new en,this.seconds||t&&me(t.second)||(this.model.second=0),this._cd.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}changeHour(e){this.model.changeHour(e),this.propagateModelChange()}changeMinute(e){this.model.changeMinute(e),this.propagateModelChange()}changeSecond(e){this.model.changeSecond(e),this.propagateModelChange()}updateHour(e){const t=this.model.hour>=12,n=fe(e);this.model.updateHour(this.meridian&&(t&&n<12||!t&&12===n)?n+12:n),this.propagateModelChange()}updateMinute(e){this.model.updateMinute(fe(e)),this.propagateModelChange()}updateSecond(e){this.model.updateSecond(fe(e)),this.propagateModelChange()}toggleMeridian(){this.meridian&&this.changeHour(12)}formatInput(e){e.value=e.value.replace(ln,"")}formatHour(e){return me(e)?ve(this.meridian?e%12==0?12:e%12:e%24):ve(NaN)}formatMinSec(e){return ve(me(e)?e:NaN)}handleBlur(){this.onTouched()}get isSmallSize(){return"small"===this.size}get isLargeSize(){return"large"===this.size}ngOnChanges(e){e.seconds&&!this.seconds&&this.model&&!me(this.model.second)&&(this.model.second=0,this.propagateModelChange(!1))}propagateModelChange(e=!0){e&&this.onTouched(),this.model.isValid(this.seconds)?this.onChange(this._ngbTimeAdapter.toModel({hour:this.model.hour,minute:this.model.minute,second:this.model.second})):this.onChange(this._ngbTimeAdapter.toModel(null))}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(tn),i.Tb(rn),i.Tb(i.h),i.Tb(an))},e.\u0275cmp=i.Nb({type:e,selectors:[["ngb-timepicker"]],inputs:{meridian:"meridian",spinners:"spinners",seconds:"seconds",hourStep:"hourStep",minuteStep:"minuteStep",secondStep:"secondStep",readonlyInputs:"readonlyInputs",size:"size"},features:[i.Fb([{provide:T.m,useExisting:Object(i.Y)(()=>e),multi:!0}]),i.Eb],decls:16,vars:25,consts:function(){let e,t,n,i,r,s,o,a,c,l,u,d,h,p;return e=$localize`:@@ngb.timepicker.HHâce676ab1d6d98f85c836381cf100a4a91ef95a1fâ4043638465245303811:HH`,t=$localize`:@@ngb.timepicker.hoursâ3bbce5fef7e1151da052a4e529453edb340e3912â8070396816726827304:Hours`,n=$localize`:@@ngb.timepicker.MMâ72c8edf6a50068a05bde70991e36b1e881f4ca54â1647282246509919852:MM`,i=$localize`:@@ngb.timepicker.minutesâ41e62daa962947c0d23ded0981975d1bddf0bf38â5531237363767747080:Minutes`,r=$localize`:@@ngb.timepicker.increment-hoursâcb74bc1d625a6c1742f0d7d47306cf495780c218â5939278348542933629:Increment hours`,s=$localize`:@@ngb.timepicker.decrement-hoursâ147c7a19429da7d999e247d22e33fee370b1691bâ3651829882940481818:Decrement hours`,o=$localize`:@@ngb.timepicker.increment-minutesâf5a4a3bc05e053f6732475d0e74875ec01c3a348â180147720391025024:Increment minutes`,a=$localize`:@@ngb.timepicker.decrement-minutesâc1a6899e529c096da5b660385d4e77fe1f7ad271â7447789825403243588:Decrement minutes`,c=$localize`:@@ngb.timepicker.SSâebe38d36a40a2383c5fefa9b4608ffbda08bd4a3â3628127143071124194:SS`,l=$localize`:@@ngb.timepicker.secondsâ4f2ed9e71a7c981db3e50ae2fedb28aff2ec4e6câ8874012390997067175:Seconds`,u=$localize`:@@ngb.timepicker.increment-secondsâ912322ecee7d659d04dcf494a70e22e49d334b26â5364772110539092174:Increment seconds`,d=$localize`:@@ngb.timepicker.decrement-secondsâ5db47ac104294243a70eb9124fbea9d0004ddf69â753633511487974857:Decrement seconds`,h=$localize`:@@ngb.timepicker.PMâ8d6e691e10306c1b34c6b26805151aaea320ef7fâ3564199131264287502:${"\ufffd0\ufffd"}:INTERPOLATION:`,p=$localize`:@@ngb.timepicker.AMâ69a1f176a93998876952adac57c3bc3863b6105eâ4592818992509942761:${"\ufffd0\ufffd"}:INTERPOLATION:`,[[3,"disabled"],[1,"ngb-tp"],[1,"ngb-tp-input-container","ngb-tp-hour"],["tabindex","-1","type","button","class","btn btn-link",3,"btn-sm","btn-lg","disabled","click",4,"ngIf"],["type","text","maxlength","2","inputmode","numeric","placeholder",e,"aria-label",t,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","blur","input","keydown.ArrowUp","keydown.ArrowDown"],[1,"ngb-tp-spacer"],[1,"ngb-tp-input-container","ngb-tp-minute"],["type","text","maxlength","2","inputmode","numeric","placeholder",n,"aria-label",i,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","blur","input","keydown.ArrowUp","keydown.ArrowDown"],["class","ngb-tp-spacer",4,"ngIf"],["class","ngb-tp-input-container ngb-tp-second",4,"ngIf"],["class","ngb-tp-meridian",4,"ngIf"],["tabindex","-1","type","button",1,"btn","btn-link",3,"disabled","click"],[1,"chevron","
1ngb-tp-chevron"],[1,"sr-only"],r,[1,"chevron","ngb-tp-chevron","bottom"],s,o,a,[1,"ngb-tp-input-container","ngb-tp-second"],["type","text","maxlength","2","inputmode","numeric","placeholder",c,"aria-label",l,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","blur","input","keydown.ArrowUp","keydown.ArrowDown"],u,d,[1,"ngb-tp-meridian"],["type","button",1,"btn","btn-outline-primary",3,"disabled","click"],[4,"ngIf","ngIfElse"],["am",""],h,p]},template:function(e,t){1&e&&(i.Zb(0,"fieldset",0),i.Zb(1,"div",1),i.Zb(2,"div",2),i.Oc(3,ne,4,7,"button",3),i.Zb(4,"input",4),i.jc("change",function(e){return t.updateHour(e.target.value)})("blur",function(){return t.handleBlur()})("input",function(e){return t.formatInput(e.target)})("keydown.ArrowUp",function(e){return t.changeHour(t.hourStep),e.preventDefault()})("keydown.ArrowDown",function(e){return t.changeHour(-t.hourStep),e.preventDefault()}),i.Yb(),i.Oc(5,ie,4,7,"button",3),i.Yb(),i.Zb(6,"div",5),i.Qc(7,":"),i.Yb(),i.Zb(8,"div",6),i.Oc(9,re,4,7,"button",3),i.Zb(10,"input",7),i.jc("change",function(e){return t.updateMinute(e.target.value)})("blur",function(){return t.handleBlur()})("input",function(e){return t.formatInput(e.target)})("keydown.ArrowUp",function(e){return t.changeMinute(t.minuteStep),e.preventDefault()})("keydown.ArrowDown",function(e){return t.changeMinute(-t.minuteStep),e.preventDefault()}),i.Yb(),i.Oc(11,se,4,7,"button",3),i.Yb(),i.Oc(12,oe,2,0,"div",8),i.Oc(13,le,4,9,"div",9),i.Oc(14,ue,1,0,"div",8),i.Oc(15,pe,5,9,"div",10),i.Yb(),i.Yb()),2&e&&(i.Lb("disabled",t.disabled),i.tc("disabled",t.disabled),i.Gb(3),i.tc("ngIf",t.spinners),i.Gb(1),i.Lb("form-control-sm",t.isSmallSize)("form-control-lg",t.isLargeSize),i.tc("value",t.formatHour(null==t.model?null:t.model.hour))("readOnly",t.readonlyInputs)("disabled",t.disabled),i.Gb(1),i.tc("ngIf",t.spinners),i.Gb(4),i.tc("ngIf",t.spinners),i.Gb(1),i.Lb("form-control-sm",t.isSmallSize)("form-control-lg",t.isLargeSize),i.tc("value",t.formatMinSec(null==t.model?null:t.model.minute))("readOnly",t.readonlyInputs)("disabled",t.disabled),i.Gb(1),i.tc("ngIf",t.spinners),i.Gb(1),i.tc("ngIf",t.seconds),i.Gb(1),i.tc("ngIf",t.seconds),i.Gb(1),i.tc("ngIf",t.meridian),i.Gb(1),i.tc("ngIf",t.meridian))},directives:[r.n],styles:['ngb-timepicker{font-size:1rem}.ngb-tp{align-items:center;display:flex}.ngb-tp-input-container{width:4em}.ngb-tp-chevron:before{border-style:solid;border-width:.29em .29em 0 0;content:"";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{top:-.3em;transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-meridian,.ngb-tp-minute,.ngb-tp-second{align-items:center;display:flex;flex-direction:column;justify-content:space-around}.ngb-tp-spacer{text-align:center;width:1em}'],encapsulation:2}),e})(),dn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[r.c]]}),e})(),hn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[r.c]]}),e})(),pn=(()=>{class e{constructor(e){this._ngbConfig=e,this.autoClose=!0,this.placement="auto",this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return e.\u0275fac=function(t){return new(t||e)(i.gc(Ce))},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.gc)(Ce))},token:e,providedIn:"root"}),e})(),fn=0,gn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(e,t){2&e&&(i.cc("id",t.id),i.Ib("tooltip"+(t.tooltipClass?" "+t.tooltipClass:"")),i.Lb("fade",t.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:P,decls:3,vars:0,consts:[[1,"arrow"],[1,"tooltip-inner"]],template:function(e,t){1&e&&(i.sc(),i.Ub(0,"div",0),i.Zb(1,"div",1),i.rc(2),i.Yb())},styles:["ngb-tooltip-window{pointer-events:none}ngb-tooltip-window .tooltip-inner{pointer-events:auto}ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{bottom:.4rem;top:auto}"],encapsulation:2,changeDetection:0}),e})(),mn=(()=>{class e{constructor(e,t,n,r,s,o,a,c,l,u){this._elementRef=e,this._renderer=t,this._ngZone=a,this._document=c,this._changeDetector=l,this.shown=new i.o,this.hidden=new i.o,this._ngbTooltipWindowId="ngb-tooltip-"+fn++,this._windowRef=null,this.animation=o.animation,this.autoClose=o.autoClose,this.placement=o.placement,this.triggers=o.triggers,this.container=o.container,this.disableTooltip=o.disableTooltip,this.tooltipClass=o.tooltipClass,this.openDelay=o.openDelay,this.closeDelay=o.closeDelay,this._popupService=new Dt(gn,n,s,t,this._ngZone,r,u),this._zoneSubscription=a.onStable.subscribe(()=>{this._windowRef&&ft(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container,"bs-tooltip")})}set ngbTooltip(e){this._ngbTooltip=e,!e&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(e){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:t,transition$:n}=this._popupService.open(this._ngbTooltip,e,this.animation);this._windowRef=t,this._windowRef.instance.animation=this.animation,this._windowRef.instance.tooltipClass=this.tooltipClass,this._windowRef.instance.id=this._ngbTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),ct(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),n.subscribe(()=>this.shown.emit())}}close(){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(this.animation).subscribe(()=>{this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function(e,t,n,i,r,o,a=0,c=0){const l=function(e,t=Zt){const n=(e||"").trim();if(0===n.length)return[];const i=n.split(/\s+/).map(e=>e.split(":")).map(e=>{let n=t[e[0]]||e;return new $t(n[0],n[1])}),r=i.filter(e=>e.isManual());if(r.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===r.length&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i}(n);if(1===l.length&&l[0].isManual())return()=>{};const u=function(e,t,n,i){return new s.a(r=>{const s=[],o=()=>r.next(!0),a=()=>r.next(!1),c=()=>r.next(!i());
1return n.forEach(n=>{n.open===n.close?s.push(e.listen(t,n.open,c)):s.push(e.listen(t,n.open,o),e.listen(t,n.close,a))}),()=>{s.forEach(e=>e())}})}(e,t,l,i).pipe(function(e,t,n){return i=>{let r=null;const s=i.pipe(Object(y.a)(e=>({open:e})),Object(m.a)(e=>{const t=n();return t===e.open||r&&r.open!==t?(r&&r.open!==e.open&&(r=null),!1):(r=e,!0)}),Object(S.a)()),o=s.pipe(Object(m.a)(e=>e.open),Qt(e)),a=s.pipe(Object(m.a)(e=>!e.open),Qt(t));return Object(p.a)(o,a).pipe(Object(m.a)(e=>e===r&&(r=null,e.open!==n())),Object(y.a)(e=>e.open))}}(a,c,i)).subscribe(e=>e?r():o());return()=>u.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:e}){e&&this.isOpen()&&(this._windowRef.instance.tooltipClass=e.currentValue)}ngOnDestroy(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.H),i.Tb(i.u),i.Tb(i.j),i.Tb(i.U),i.Tb(pn),i.Tb(i.C),i.Tb(r.d),i.Tb(i.h),i.Tb(i.g))},e.\u0275dir=i.Ob({type:e,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",triggers:"triggers",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[i.Eb]}),e})(),bn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({}),e})();new i.t("live announcer delay",{providedIn:"root",factory:function(){return 100}});let yn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[r.c]]}),e})();const vn=[xe,Ae,Ee,Me,Ie,St,It,Wt,Gt,Yt,Xt,Kt,Jt,dn,hn,bn,yn];let _n=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[vn,xe,Ae,Ee,Me,Ie,St,It,Wt,Gt,Yt,Xt,Kt,Jt,dn,hn,bn,yn]}),e})()},"1sBl":function(e,t,n){const i=n("e/Dd").getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];const t=Math.floor(e/7)+2,n=i(e),r=145===n?26:2*Math.ceil((n-13)/(2*t-2)),s=[n-7];for(let i=1;i<t-1;i++)s[i]=s[i-1]-r;return s.push(6),s.reverse()},t.getPositions=function(e){const n=[],i=t.getRowColCoords(e),r=i.length;for(let t=0;t<r;t++)for(let e=0;e<r;e++)0===t&&0===e||0===t&&e===r-1||t===r-1&&0===e||n.push([i[t],i[e]]);return n}},"1uah":function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return l});var i=n("yCtX"),r=n("DH7j"),s=n("7o/Q"),o=n("Lhse"),a=n("zx2A");function c(...e){const t=e[e.length-1];return"function"==typeof t&&e.pop(),Object(i.a)(e,void 0).lift(new l(t))}class l{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new u(e,this.resultSelector))}}class u extends s.a{constructor(e,t,n=Object.create(null)){super(e),this.resultSelector=t,this.iterators=[],this.active=0,this.resultSelector="function"==typeof t?t:void 0}_next(e){const t=this.iterators;Object(r.a)(e)?t.push(new h(e)):t.push("function"==typeof e[o.a]?new d(e[o.a]()):new p(this.destination,this,e))}_complete(){const e=this.iterators,t=e.length;if(this.unsubscribe(),0!==t){this.active=t;for(let n=0;n<t;n++){let t=e[n];t.stillUnsubscribed?this.destination.add(t.subscribe()):this.active--}}else this.destination.complete()}notifyInactive(){this.active--,0===this.active&&this.destination.complete()}checkIterators(){const e=this.iterators,t=e.length,n=this.destination;for(let s=0;s<t;s++){let t=e[s];if("function"==typeof t.hasValue&&!t.hasValue())return}let i=!1;const r=[];for(let s=0;s<t;s++){let t=e[s],o=t.next();if(t.hasCompleted()&&(i=!0),o.done)return void n.complete();r.push(o.value)}this.resultSelector?this._tryresultSelector(r):n.next(r),i&&n.complete()}_tryresultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}class d{constructor(e){this.iterator=e,this.nextResult=e.next()}hasValue(){return!0}
1next(){const e=this.nextResult;return this.nextResult=this.iterator.next(),e}hasCompleted(){const e=this.nextResult;return Boolean(e&&e.done)}}class h{constructor(e){this.array=e,this.index=0,this.length=0,this.length=e.length}[o.a](){return this}next(e){const t=this.index++;return t<this.length?{value:this.array[t],done:!1}:{value:null,done:!0}}hasValue(){return this.array.length>this.index}hasCompleted(){return this.array.length===this.index}}class p extends a.b{constructor(e,t,n){super(e),this.parent=t,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[o.a](){return this}next(){const e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(e){this.buffer.push(e),this.parent.checkIterators()}subscribe(){return Object(a.c)(this.observable,new a.a(this))}}},"1vjI":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("/Tr7"),r=n("jIYg"),s=n("/h9T"),o=n("vq9N");function a(e,t){var n,a,c,l,u,d,h,p;Object(r.a)(1,arguments);var f=Object(o.a)(),g=Object(s.a)(null!==(n=null!==(a=null!==(c=null!==(l=null==t?void 0:t.weekStartsOn)&&void 0!==l?l:null==t||null===(u=t.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==c?c:f.weekStartsOn)&&void 0!==a?a:null===(h=f.locale)||void 0===h||null===(p=h.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==n?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Object(i.a)(e),b=m.getUTCDay(),y=(b<g?7:0)+b-g;return m.setUTCDate(m.getUTCDate()-y),m.setUTCHours(0,0,0,0),m}},2:function(e,t){},"297U":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getEvent(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiUserCalendars/:id/event",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiUserCalendars/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiUserCalendars/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}getModelName(){return"SimiUserCalendar"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},"2FL7":function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SurveySubmission"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SurveySubmission",plural:"SurveySubmissions",path:"SurveySubmissions",idName:"id",properties:{publicId:{name:"publicId",type:"string"},customId:{name:"customId",type:"string",default:""},compilerId:{name:"compilerId",type:"any"},accessId:{name:"accessId",type:"any"},surveyId:{name:"surveyId",type:"any"},valid:{name:"valid",type:"boolean",default:!1},answers:{name:"answers",type:"Array<any>",default:[]},answers_count:{name:"answers_count",type:"number",default:0},institute:{name:"institute",type:"string"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{compiler:{name:"compiler",type:"SurveyCompiler",model:"SurveyCompiler",relationType:"belongsTo",keyFrom:"compilerId",keyTo:"id"},access:{name:"access",type:"SurveyAccess",model:"SurveyAccess",relationType:"belongsTo",keyFrom:"accessId",keyTo:"id"},survey:{name:"survey",type:"Survey",model:"Survey",relationType:"belongsTo",keyFrom:"surveyId",keyTo:"id"}}}}}},"2QA8":function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("XNiG"),r=n("9ppp");class s extends i.a{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.a;return this._value}next(e){super.next(this._value=e)}}},"2fFW":function(e,t,n){"use strict";n.d(t,"a",function(){return r});let i=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior b
1y code at: \n"+e.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=e},get useDeprecatedSynchronousErrorHandling(){return i}}},3:function(e,t){},"3/ER":function(e,t,n){"use strict";(function(e){var i=n("Ju5/"),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=r&&"object"==typeof e&&e&&!e.nodeType&&e,o=s&&s.exports===r?i.a.Buffer:void 0,a=o?o.allocUnsafe:void 0;t.a=function(e,t){if(t)return e.slice();var n=e.length,i=a?a(n):new e.constructor(n);return e.copy(i),i}}).call(this,n("3UD+")(e))},"3E0/":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("D0XW"),r=n("mlxB"),s=n("7o/Q"),o=n("WMd4");function a(e,t=i.a){const n=Object(r.a)(e)?+e-t.now():Math.abs(e);return e=>e.lift(new c(n,t))}class c{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new l(e,this.delay,this.scheduler))}}class l extends s.a{constructor(e,t,n){super(e),this.delay=t,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,n=t.queue,i=e.scheduler,r=e.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){const t=Math.max(0,n[0].time-i.now());this.schedule(e,t)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(l.dis
1patch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,n=new u(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(o.a.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(o.a.createComplete()),this.unsubscribe()}}class u{constructor(e,t){this.time=e,this.notification=t}}},"3JDX":function(e,t,n){e.exports=function(e){function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return i.colors[Math.abs(t)%i.colors.length]}function i(e){let n;function o(...e){if(!o.enabled)return;const t=o,r=Number(new Date);t.diff=r-(n||r),t.prev=n,t.curr=r,n=r,e[0]=i.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,r)=>{if("%%"===n)return n;s++;const o=i.formatters[r];return"function"==typeof o&&(n=o.call(t,e[s]),e.splice(s,1),s--),n}),i.formatArgs.call(t,e),(t.log||i.log).apply(t,e)}return o.namespace=e,o.enabled=i.enabled(e),o.useColors=i.useColors(),o.color=t(e),o.destroy=r,o.extend=s,"function"==typeof i.init&&i.init(o),i.instances.push(o),o}function r(){const e=i.instances.indexOf(this);return-1!==e&&(i.instances.splice(e,1),!0)}function s(e,t){const n=i(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return i.debug=i,i.default=i,i.coerce=function(e){return e instanceof Error?e.stack||e.message:e},i.disable=function(){const e=[...i.names.map(o),...i.skips.map(o).map(e=>"-"+e)].join(",");return i.enable(""),e},i.enable=function(e){let t;i.save(e),i.names=[],i.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length;for(t=0;t<r;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?i.skips.push(new RegExp("^"+e.substr(1)+"$")):i.names.push(new RegExp("^"+e+"$")));for(t=0;t<i.instances.length;t++){const e=i.instances[t];e.enabled=i.enabled(e.namespace)}},i.enabled=function(e){if("*"===e[e.length-1])return!0;let t,n;for(t=0,n=i.skips.length;t<n;t++)if(i.skips[t].test(e))return!1;for(t=0,n=i.names.length;t<n;t++)if(i.names[t].test(e))return!0;return!1},i.humanize=n("k2N2"),Object.keys(e).forEach(t=>{i[t]=e[t]}),i.instances=[],i.names=[],i.skips=[],i.formatters={},i.selectColor=t,i.enable(i.load()),i}},"3N8a":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("quSY");class r extends i.a{constructor(e,t){super()}schedule(e,t=0){return this}}class s extends r{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n,i=!1;try{this.work(e)}catch(r){i=!0,n=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),n}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}},"3Pt+":function(e,t,n){"use strict";n.d(t,"a",function(){return d}),n.d(t,"b",function(){return f}),n.d(t,"c",function(){return $e}),n.d(t,"d",function(){return le}),n.d(t,"e",function(){return Se}),n.d(t,"f",function(){return xe}),n.d(t,"g",function(){return ue}),n.d(t,"h",function(){return Pe}),n.d(t,"i",function(){return Ge}),n.d(t,"j",function(){return qe}),n.d(t,"k",function(){return Fe}),n.d(t,"l",function(){return b}),n.d(t,"m",function(){return l}),n.d(t,"n",function(){return B}),n.d(t,"o",function(){return U}),n.d(t,"p",function(){return H}),n.d(t,"q",function(){return fe}),n.d(t,"r",function(){return be}),n.d(t,"s",function(){return Ie}),n.d(t,"t",function(){return _e}),n.d(t,"u",function(){return He}),n.d(t,"v",function(){return Ye}),n.d(t,"w",function(){return Ve}),n.d(t,"x",function(){return Me}),n.d(t,"y",function(){return _}),n.d(t,"z",function(){return ye}),n.d(t,"A",function(){return je});var i=n("fXoL"),r=n("ofXK"),s=n("Cfvw"),o=n("cp0P"),a=n("lJxs");class c{}const l=new i.t("NgValueAccessor"),u={provide:l,useExisting:Object(i.Y)(()=>d),multi:!0};let d=(()=>{class e extends c{constructor(e,t){super(),this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.H),i.Tb(i.l))},e.\u0275dir=i.Ob({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&i.jc("change",function(e){return t.onChange(e.target.checked)})("blur",function(){return t.onTouched()})},features:[i.Fb([u]),i.Db]}),e})();const h={provide:l,useExisting:Object(i.Y)(()=>f),multi:!0},p=new i.t("CompositionEventMode");let f=(()=>{class e{constructor(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=e=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=Object(r.J)()?Object(r.J)().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.H),i.Tb(i.l),i.Tb(p,8))},e.\u0275dir=i.Ob({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&i.jc("input",function(e){return t._handleInput(e.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(e){return t._compositionEnd(e.target.value)})},features:[i.Fb([h])]}),e})();function g(e){return null==e||0===e.length}function m(e){return null!=e&&"number"==typeof e.length}const b=new i.t("NgValidators"),y=new i.t("NgAsyncValidators"),v=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class _{static min(e){return function(e){return t=>{if(g(t.value)||g(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}(e)}static max(e){return function(e){return t=>{if(g(t.value)||g(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}(e)}static required(e){return w(e)}static requiredTrue(e){return function(e){return!0===e.value?null:{required:!0}}(e)}static email(e){return function(e){return g(e.value)||v.test(e.value)?null:{email:!0}}(e)}static minLength(e){return k(e)}static maxLength(e){return C(e)}static pattern(e){return S(e)}static nullValidator(e){return null}static compose(e){return M(e)}static composeAsync(e){return R(e)}}function w(e){return g(e.value)?{required:!0}:null}function k(e){return t=>g(t.value)||!m(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}function C(e){return t=>m(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}function S(e){if(!e)return T;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>
1{if(g(e.value))return null;const i=e.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}function T(e){return null}function P(e){return null!=e}function O(e){const t=Object(i.xb)(e)?Object(s.a)(e):e;return Object(i.wb)(t),t}function x(e){let t={};return e.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function A(e,t){return t.map(t=>t(e))}function E(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}function M(e){if(!e)return null;const t=e.filter(P);return 0==t.length?null:function(e){return x(A(e,t))}}function I(e){return null!=e?M(E(e)):null}function R(e){if(!e)return null;const t=e.filter(P);return 0==t.length?null:function(e){const n=A(e,t).map(O);return Object(o.a)(n).pipe(Object(a.a)(x))}}function L(e){return null!=e?R(E(e)):null}function D(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function j(e){return e._rawValidators}function N(e){return e._rawAsyncValidators}let V=(()=>{class e{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=I(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=L(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e}),e})(),z=(()=>{class e extends V{get formDirective(){return null}get path(){return null}}return e.\u0275fac=function(t){return F(t||e)},e.\u0275dir=i.Ob({type:e,features:[i.Db]}),e})();const F=i.bc(z);class B extends V{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class q{constructor(e){this._cd=e}is(e){var t,n;return!!(null===(n=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===n?void 0:n[e])}}let U=(()=>{class e extends q{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(B,2))},e.\u0275dir=i.Ob({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.Lb("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[i.Db]}),e})(),H=(()=>{class e extends q{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(z,10))},e.\u0275dir=i.Ob({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.Lb("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[i.Db]}),e})();function W(e,t){return[...t.path,e]}function G(e,t){Z(e,t,!0),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&X(e,t)})}(e,t),function(e,t){const n=(e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&X(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){const n=e=>{t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function Y(e,t,n=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),Q(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}
1function $(e,t){e.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Z(e,t,n){const i=j(e);null!==t.validator?e.setValidators(D(i,t.validator)):"function"==typeof i&&e.setValidators([i]);const r=N(e);if(null!==t.asyncValidator?e.setAsyncValidators(D(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]),n){const n=()=>e.updateValueAndValidity();$(t._rawValidators,n),$(t._rawAsyncValidators,n)}}function Q(e,t,n){let i=!1;if(null!==e){if(null!==t.validator){const n=j(e);if(Array.isArray(n)&&n.length>0){const r=n.filter(e=>e!==t.validator);r.length!==n.length&&(i=!0,e.setValidators(r))}}if(null!==t.asyncValidator){const n=N(e);if(Array.isArray(n)&&n.length>0){const r=n.filter(e=>e!==t.asyncValidator);r.length!==n.length&&(i=!0,e.setAsyncValidators(r))}}}if(n){const e=()=>{};$(t._rawValidators,e),$(t._rawAsyncValidators,e)}return i}function X(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function K(e,t){Z(e,t,!1)}function J(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function ee(e,t){e._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function te(e,t){if(!t)return null;let n,i,r;return Array.isArray(t),t.forEach(e=>{e.constructor===f?n=e:Object.getPrototypeOf(e.constructor)===c?i=e:r=e}),r||i||n||null}function ne(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function ie(e){return(ae(e)?e.validators:e)||null}function re(e){return Array.isArray(e)?I(e):e||null}function se(e,t){return(ae(t)?t.asyncValidators:e)||null}function oe(e){return Array.isArray(e)?L(e):e||null}function ae(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class ce{constructor(e,t){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=re(this._rawValidators),this._composedAsyncValidatorFn=oe(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=re(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=oe(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}
vendor: 11,885 bytes, line 1
1markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const t=O(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;let i=e;return t.forEach(e=>{i=i instanceof ue?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof de&&i.at(e)||null}),i}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new i.o,this.statusChanges=new i.o}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){ae(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class le extends ce{constructor(e=null,t,n){super(ie(t),se(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){ne(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){ne(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class ue extends ce{constructor(e,t,n){super(ie(t),se(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof le?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const n=this.controls[t];n&&e(n,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const n=this.controls[t];if(this.contains(t)&&e(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,i)=>{n=t(n,e,i)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class de extends ce{constructor(e,t,n){super(ie(t),se(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof le?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const he={provide:z,useExisting:Object(i.Y)(()=>fe)},pe=(()=>Promise.resolve(null))();let fe=(()=>{class e extends z{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.o,this.form=new ue({},I(e),L(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){pe.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),G(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}
1removeControl(e){pe.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),ne(this._directives,e)})}addFormGroup(e){pe.then(()=>{const t=this._findContainer(e.path),n=new ue({});K(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){pe.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){pe.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,ee(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(b,10),i.Tb(y,10))},e.\u0275dir=i.Ob({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&i.jc("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Fb([he]),i.Db]}),e})();const ge={provide:B,useExisting:Object(i.Y)(()=>be)},me=(()=>Promise.resolve(null))();let be=(()=>{class e extends B{constructor(e,t,n,r){super(),this.control=new le,this._registered=!1,this.update=new i.o,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=te(0,r)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),J(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?W(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){G(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){me.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;me.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(z,9),i.Tb(b,10),i.Tb(y,10),i.Tb(l,10))},e.\u0275dir=i.Ob({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i.Fb([ge]),i.Db,i.Eb]}),e})(),ye=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})();const ve={provide:l,useExisting:Object(i.Y)(()=>_e),multi:!0};let _e=(()=>{class e extends c{constructor(e,t){super(),this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.H),i.Tb(i.l))},e.\u0275dir=i.Ob({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&i.jc("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[i.Fb([ve]),i.Db]}),e})(),we=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({}),e})();const ke=new i.t("NgModelWithFormControlWarning"),Ce={provide:B,useExisting:Object(i.Y)(()=>Se)};let Se=(()=>{class e extends B{constructor(e,t,n,r){super(),this._ngModelWarningConfig=r,this.update=new i.o,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=te(0,n)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&Y(t,this,!1),G(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}J(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}
1ngOnDestroy(){this.form&&Y(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(b,10),i.Tb(y,10),i.Tb(l,10),i.Tb(ke,8))},e.\u0275dir=i.Ob({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i.Fb([Ce]),i.Db,i.Eb]}),e._ngModelWarningSentOnce=!1,e})();const Te={provide:z,useExisting:Object(i.Y)(()=>Pe)};let Pe=(()=>{class e extends z{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.o,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Q(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return G(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}
1removeControl(e){Y(e.control||null,e,!1),ne(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,ee(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,n=this.form.get(e.path);t!==n&&(Y(t||null,e),n instanceof le&&(G(n,e),e.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);K(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);if(t){const n=function(e,t){return Q(e,t,!1)}(t,e);n&&t.updateValueAndValidity({emitEvent:!1})}}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Z(this.form,this,!1),this._oldForm&&Q(this._oldForm,this,!1)}_checkFormPresent(){}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(b,10),i.Tb(y,10))},e.\u0275dir=i.Ob({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.jc("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Fb([Te]),i.Db,i.Eb]}),e})();const Oe={provide:B,useExisting:Object(i.Y)(()=>xe)};let xe=(()=>{class e extends B{constructor(e,t,n,r,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new i.o,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=te(0,r)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),J(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return W(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(z,13),i.Tb(b,10),i.Tb(y,10),i.Tb(l,10),i.Tb(ke,8))},e.\u0275dir=i.Ob({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i.Fb([Oe]),i.Db,i.Eb]}),e._ngModelWarningSentOnce=!1,e})();const Ae={provide:l,useExisting:Object(i.Y)(()=>Me),multi:!0};function Ee(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let Me=(()=>{class e extends c{constructor(e,t){super(),this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=Ee(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(e){this.onChange=t=>{this.value=this._getOptionValue(t),e(this.value)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.H),i.Tb(i.l))},e.\u0275dir=i.Ob({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&i.jc("change",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.Fb([Ae]),i.Db]}),e})(),Ie=(()=>{class e{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(Ee(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id
1),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.H),i.Tb(Me,9))},e.\u0275dir=i.Ob({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const Re={provide:l,useExisting:Object(i.Y)(()=>De),multi:!0};function Le(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let De=(()=>{class e extends c{constructor(e,t){super(),this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=(e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)}}else t=(e,t)=>{e._setSelected(!1)};this._optionMap.forEach(t)}registerOnChange(e){this.onChange=t=>{const n=[];if(void 0!==t.selectedOptions){const e=t.selectedOptions;for(let t=0;t<e.length;t++){const i=e.item(t),r=this._getOptionValue(i.value);n.push(r)}}else{const e=t.options;for(let t=0;t<e.length;t++){const i=e.item(t);if(i.selected){const e=this._getOptionValue(i.value);n.push(e)}}}this.value=n,e(n)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(e){const t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t)._value,e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.H),i.Tb(i.l))},e.\u0275dir=i.Ob({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&i.jc("change",function(e){return t.onChange(e.target)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.Fb([Re]),i.Db]}),e})(),je=(()=>{class e{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(Le(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(Le(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.H),i.Tb(De,9))},e.\u0275dir=i.Ob({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const Ne={provide:b,useExisting:Object(i.Y)(()=>Ve),multi:!0};let Ve=(()=>{class e{constructor(){this._required=!1}get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&"false"!=`${e}`,this._onChange&&this._onChange()}validate(e){return this.required?w(e):null}registerOnValidatorChange(e){this._onChange=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&i.Hb("required",t.required?"":null)},inputs:{required:"required"},features:[i.Fb([Ne])]}),e})();const ze={provide:b,useExisting:Object(i.Y)(()=>Fe),multi:!0};let Fe=(()=>{class e{constructor(){this._validator=T}ngOnChanges(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}
1validate(e){return null==this.minlength?null:this._validator(e)}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=k("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&i.Hb("minlength",t.minlength?t.minlength:null)},inputs:{minlength:"minlength"},features:[i.Fb([ze]),i.Eb]}),e})();const Be={provide:b,useExisting:Object(i.Y)(()=>qe),multi:!0};let qe=(()=>{class e{constructor(){this._validator=T}ngOnChanges(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return null!=this.maxlength?this._validator(e):null}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=C("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&i.Hb("maxlength",t.maxlength?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[i.Fb([Be]),i.Eb]}),e})();const Ue={provide:b,useExisting:Object(i.Y)(()=>He),multi:!0};let He=(()=>{class e{constructor(){this._validator=T}ngOnChanges(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=S(this.pattern)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&i.Hb("pattern",t.pattern?t.pattern:null)},inputs:{pattern:"pattern"},features:[i.Fb([Ue]),i.Eb]}),e})(),We=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[we]]}),e})(),Ge=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[We]}),e})(),Ye=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:ke,useValue:t.warnOnNgModelWithFormControl}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[We]}),e})(),$e=(()=>{class e{group(e,t=null){const n=this._reduceControls(e);let i,r=null,s=null;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(r=null!=t.validators?t.validators:null,s=null!=t.asyncValidators?t.asyncValidators:null,i=null!=t.updateOn?t.updateOn:void 0):(r=null!=t.validator?t.validator:null,s=null!=t.asyncValidator?t.asyncValidator:null)),new ue(n,{asyncValidators:s,updateOn:i,validators:r})}control(e,t,n){return new le(e,t,n)}array(e,t,n){const i=e.map(e=>this._createControl(e));return new de(i,t,n)}_reduceControls(e){const t={};return Object.keys(e).forEach(n=>{t[n]=this._createControl(e[n])}),t}_createControl(e){return e instanceof le||e instanceof ue||e instanceof de?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Pb)({factory:function(){return new e},token:e,providedIn:Ye}),e})()},"3UD+":function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},"3UWI":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("D0XW"),r=n("tnsW"),s=n("PqYM");function o(e,t=i.a){return Object(r.a)(()=>Object(s.a)(e,t))}},"3X7Y":function(e,t,n){const i=n("u/Db");function r(e){this.mode=i.NUMERIC,this.data=e.toString()}r.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){let t,n,i;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),i=parseInt(n,10),e.put(i,10);const r=this.data.length-t;r>0&&(n=this.data.substr(t),i=parseInt(n,10),e.put(i,3*r+1))},e.exports=r},"3tV1":function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"CongressExamSubmission"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"CongressExamSubmission",plural:"CongressExamSubmissions",path:"CongressExamSubmissions",idName:"id",properties:{eventId:{name:"eventId",type:"any"},subscriptionId:{name:"subscriptionId",type:"any"},userId:{name:"userId",type:"any"},examId:{name:"examId",type:"any"},attempt:{name:"attempt",type:"number"},status:{name:"status",type:"string",default:"active"},questions:{name:"questions",type:"Array<any>"},start_time:{name:"start_time",type:"Date"},end_time:{name:"end_time",type:"Date"},submitted:{name:"submitted",type:"Date"},answers:{name:"answers",type:"Array<any>"},score:{name:"score",type:"any"},result:{name:"result",type:"string"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{event:{name:"event",type:"Congress",model:"Congress",relationType:"belongsTo",keyFrom:"eventId",keyTo:"id"},subscription:{name:"subscription",type:"CongressSubscription",model:"CongressSubscription",relationType:"belongsTo",keyFrom:"subscriptionId",keyTo:"id"},exam:{name:"exam",type:"SimiEventExam",model:"SimiEventExam",relationType:"belongsTo",keyFrom:"examId",keyTo:"id"},user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},"3zPy":function(e,t){function n(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return o[e];var n,s=String(e);return(n=i[s.toLowerCase()])?n:(n=r[s.toLowerCase()])||(1===s.length?s.charCo
1deAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"==typeof e){var n=e.which||e.keyCode||e.charCode;if(null==n)return!1;if("string"==typeof t){var s;if(s=i[t.toLowerCase()])return s===n;if(s=r[t.toLowerCase()])return s===n}else if("number"==typeof t)return t===n;return!1}};var i=(t=e.exports=n).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=t.aliases={windows:91,"\u21e7":16,"\u2325":18,"\u2303":17,"\u2318":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(s=97;s<123;s++)i[String.fromCharCode(s)]=s-32;for(var s=48;s<58;s++)i[s-48]=s;for(s=1;s<13;s++)i["f"+s]=s+111;for(s=0;s<10;s++)i["numpad "+s]=s+96;var o=t.names=t.title={};for(s in i)o[i[s]]=s;for(var a in r)i[a]=r[a]},4:function(e,t){},"4/HM":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}findByIdAccesses(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressProfiles/:id/accesses/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}findByIdSubmissions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressProfiles/:id/submissions/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}findByIdReviews(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressProfiles/:id/reviews/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}findByIdAssignments(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressProfiles/:id/assignments/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}findByIdSubscriptions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressProfiles/:id/subscriptions/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressProfiles/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getAccesses(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressProfiles/:id/accesses",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}countAccesses(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressProfiles/:id/accesses/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getSubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressProfiles/:id/submissions",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}countSubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressProfiles/:id/submissions/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getReviews(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressProfiles/:id/reviews",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}countReviews(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressProfiles/:id/reviews/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getAssignments(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressProfiles/:id/assignments",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}countAssignments(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressProfiles/:id/assignments/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getSubscriptions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressProfiles/:id/subscriptions",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}countSubscriptions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressProfiles/:id/subscriptions/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressProfiles/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}me(e){let t=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressProfiles/me";return this.request("GET",t,{},{},{},null,e)}getByIdDashboard(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressProfiles/:id/dashboard",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}getModelName(){return"CongressProfile"}}
vendor: 5,118 bytes, line 1
1return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},"4A3s":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(){return function(e){return e.lift(new s)}}class s{call(e,t){return t.subscribe(new o(e))}}class o extends i.a{_next(e){}}},"4ANG":function(e,t,n){var i=n("iadd").NAMESPACE,r=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,s=new RegExp("[\\-\\.0-9"+r.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),o=new RegExp("^"+r.source+s.source+"*(?::"+r.source+s.source+"*)?$");function a(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,a)}function c(){}function l(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function u(e,t,n,r,s,o){function a(e,t,i){n.attributeNames.hasOwnProperty(e)&&o.fatalError("Attribute "+e+" redefined"),n.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,s),i)}for(var c,l=++t,u=0;;){var d=e.charAt(l);switch(d){case"=":if(1===u)c=e.slice(t,l),u=3;else{if(2!==u)throw new Error("attribute equal must after attrName");u=3}break;case"'":case'"':if(3===u||1===u){if(1===u&&(o.warning('attribute value must after "="'),c=e.slice(t,l)),!((l=e.indexOf(d,t=l+1))>0))throw new Error("attribute value no end '"+d+"' match");a(c,h=e.slice(t,l),t-1),u=5}else{if(4!=u)throw new Error('attribute value must after "="');a(c,h=e.slice(t,l),t),o.warning('attribute "'+c+'" missed start quot('+d+")!!"),t=l+1,u=5}break;case"/":switch(u){case 0:n.setTagName(e.slice(t,l));case 5:case 6:case 7:u=7,n.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==u&&n.setTagName(e.slice(t,l)),l;case">":switch(u){case 0:n.setTagName(e.slice(t,l));case 5:case 6:case 7:break;case 4:case 1:"/"===(h=e.slice(t,l)).slice(-1)&&(n.closed=!0,h=h.slice(0,-1));case 2:2===u&&(h=c),4==u?(o.warning('attribute "'+h+'" missed quot(")!'),a(c,h,t)):(i.isHTML(r[""])&&h.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+h+'" missed value!! "'+h+'" instead!!'),a(h,h,t));break;case 3:throw new Error("attribute value missed!!")}return l;case"\x80":d=" ";default:if(d<=" ")switch(u){case 0:n.setTagName(e.slice(t,l)),u=6;break;case 1:c=e.slice(t,l),u=2;break;case 4:var h=e.slice(t,l);o.warning('attribute "'+h+'" missed quot(")!!'),a(c,h,t);case 5:u=6}else switch(u){case 2:i.isHTML(r[""])&&c.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+c+'" missed value!! "'+c+'" instead2!!'),a(c,c,t),t=l,u=1;break;case 5:o.warning('attribute space is required"'+c+'"!!');case 6:u=1,t=l;break;case 3:u=4,t=l;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}l++}}function d(e,t,n){for(var r=e.tagName,s=null,o=e.length;o--;){var a=e[o],c=a.qName,l=a.value;if((p=c.indexOf(":"))>0)var u=a.prefix=c.slice(0,p),d=c.slice(p+1),h="xmlns"===u&&d;else d=c,u=null,h="xmlns"===c&&"";a.localName=d,!1!==h&&(null==s&&(s={},f(n,n={})),n[h]=s[h]=l,a.uri=i.XMLNS,t.startPrefixMapping(h,l))}for(o=e.length;o--;)(u=(a=e[o]).prefix)&&("xml"===u&&(a.uri=i.XML),"xmlns"!==u&&(a.uri=n[u||""]));var p;(p=r.indexOf(":"))>0?(u=e.prefix=r.slice(0,p),d=e.localName=r.slice(p+1)):(u=null,d=e.localName=r);var g=e.uri=n[u||""];if(t.startElement(g,d,r,e),!e.closed)return e.currentNSMap=n,e.localNSMap=s,!0;if(t.endElement(g,d,r),s)for(u in s)Object.prototype.hasOwnProperty.call(s,u)&&t.endPrefixMapping(u)}function h(e,t,n,i,r){if(/^(?:script|textarea)$/i.test(n)){var s=e.indexOf("</"+n+">",t),o=e.substring(t+1,s);if(/[&<]/.test(o))return/^script$/i.test(n)?(r.characters(o,0,o.length),s):(o=o.replace(/&#?\w+;/g,i),r.characters(o,0,o.length),s)}return t+1}function p(e,t,n,i){var r=i[n];return null==r&&((r=e.lastIndexOf("</"+n+">"))<t&&(r=e.lastIndexOf("</"+n)),i[n]=r),r<t}function f(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function g(e,t,n,i){if("-"===e.charAt(t+2))return"-"===e.charAt(t+3)?(r=e.indexOf("--\x3e",t+4))>t?(n.comment(e,t+4,r-t-4),r+3):(i.error("Unclosed comment"),-1):-1;if("CDATA["==e.substr(t+3,6)){var r=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,r-t-9),n.endCDATA(),r+3}var s=function(e,t){var n,i=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(r.lastIndex=t,r.exec(e);n=r.exec(e);)if(i.push(n),n[1])return i}(e,t),o=s.length;if(o>1&&/!doctype/i.test(s[0][0])){var a=s[1][0],c=!1,l=!1;o>3&&(/^public$/i.test(s[2][0])?(c=s[3][0],l=o>4&&s[4][0]):/^system$/i.test(s[2][0])&&(l=s[3][0]));var u=s[o-1];return n.startDTD(a,c,l),n.endDTD(),u.index+u[0].length}return-1}function m(e,t,n){var i=e.indexOf("?>",t);if(i){var r=e.substring(t,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return r?(n.processingInstruction(r[1],r[2]),i+2):-1}return-1}function b(){this.attributeNames={}}(a.prototype=new Error).name=a.name,c.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),f(t,t={}
1),function(e,t,n,r,s){function o(e){var t,i=e.slice(1,-1);return Object.hasOwnProperty.call(n,i)?n[i]:"#"===i.charAt(0)?(t=parseInt(i.substr(1).replace("x","0x")))>65535?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):String.fromCharCode(t):(s.error("entity not found:"+e),e)}function c(t){if(t>S){var n=e.substring(S,t).replace(/&#?\w+;/g,o);w&&f(S),r.characters(n,0,t-S),S=t}}function f(t,n){for(;t>=v&&(n=_.exec(e));)v=(y=n.index)+n[0].length,w.lineNumber++;w.columnNumber=t-y+1}for(var y=0,v=0,_=/.*(?:\r\n?|\n)|.*$/g,w=r.locator,k=[{currentNSMap:t}],C={},S=0;;){try{var T=e.indexOf("<",S);if(T<0){if(!e.substr(S).match(/^\s*$/)){var P=r.doc,O=P.createTextNode(e.substr(S));P.appendChild(O),r.currentElement=O}return}switch(T>S&&c(T),e.charAt(T+1)){case"/":var x=e.indexOf(">",T+3),A=e.substring(T+2,x).replace(/[ \t\n\r]+$/g,""),E=k.pop();x<0?(A=e.substring(T+2).replace(/[\s<].*/,""),s.error("end tag name: "+A+" is not complete:"+E.tagName),x=T+1+A.length):A.match(/\s</)&&(A=A.replace(/[\s<].*/,""),s.error("end tag name: "+A+" maybe not complete"),x=T+1+A.length);var M=E.localNSMap,I=E.tagName==A;if(I||E.tagName&&E.tagName.toLowerCase()==A.toLowerCase()){if(r.endElement(E.uri,E.localName,A),M)for(var R in M)Object.prototype.hasOwnProperty.call(M,R)&&r.endPrefixMapping(R);I||s.fatalError("end tag name: "+A+" is not match the current start tagName:"+E.tagName)}else k.push(E);x++;break;case"?":w&&f(T),x=m(e,T,r);break;case"!":w&&f(T),x=g(e,T,r,s);break;default:w&&f(T);var L=new b,D=k[k.length-1].currentNSMap,j=(x=u(e,T,L,D,o,s),L.length);if(!L.closed&&p(e,x,L.tagName,C)&&(L.closed=!0,n.nbsp||s.warning("unclosed xml attribute")),w&&j){for(var N=l(w,{}),V=0;V<j;V++){var z=L[V];f(z.offset),z.locator=l(w,{})}r.locator=N,d(L,r,D)&&k.push(L),r.locator=w}else d(L,r,D)&&k.push(L);i.isHTML(L.uri)&&!L.closed?x=h(e,x,L.tagName,o,r):x++}}catch(F){if(F instanceof a)throw F;s.error("element parse error: "+F),x=-1}x>S?S=x:c(Math.max(T,S)+1)}}(e,t,n,r,this.errorHandler),r.endDocument()}},b.prototype={setTagName:function(e){if(!o.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!o.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=c,t.ParseError=a},"4FZV":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getAssociate(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPaymentFees/:id/associate",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}findByIdTransactions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPaymentFees/:id/transactions/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdTransactions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPaymentFees/:id/transactions/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdTransactions(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPaymentFees/:id/transactions/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPaymentFees/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getTransactions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPaymentFees/:id/transactions",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createTransactions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPaymentFees/:id/transactions";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteTransactions(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPaymentFees/:id/transactions";return this.request("DELETE",n,{id:e},{},{},null,t)}countTransactions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPaymentFees/:id/transactions/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPaymentFees/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}getCompleted(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPaymentFees/completed",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countCompleted(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPaymentFees/completed/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}getByIdCompleted(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPaymentFees/:id/completed",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}getExpired(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPaymentFees/expired",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}getByIdExpired(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPaymentFees/:id/expired",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createManyTransactions(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPaymentFees/:id/transactions";return this.request("POST",i,{id:e},{},{data:t},null,n)}getModelName(){return"SimiPaymentFee"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},"4I5i":function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=(()=>{function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})()},"4Uw3":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getTarget(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPodcasts/:id/target",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPodcasts/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}uploadresource(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPodcasts/:id/upload/resource";return this.request("POST",n,{id:e},{},{},null,t)}setRemoteResource(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPodcasts/:id/resource/set",r={id:e},s={};return null!=t&&(s.url=t),this.request("POST",i,r,s,{},null,n)}downloadresource(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPodcasts/:id/resource/:filename";return this.request("GET",i,{id:e,filename:t},{},{},null,n)}progress(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPodcasts/:id/progress",r={id:e},s={};return null!=t&&(s.progress=t),this.request("POST",i,r,s,{},null,n)}explore(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPodcasts/explore",i={};return null!=e&&(i.query=e),this.request("GET",n,{},i,{},null,t)}getModelName(){return"SimiPodcast"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},"4c1C":function(e,t,n){},"4ciW":function(e,t,n){var i=n("iadd"),r=i.find,s=i.NAMESPACE;function o(e){return""!==e}function a(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function c(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(o):[]}(e);return Object.keys(t.reduce(a,{}))}function l(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function u(e,t){var n=e.prototype;if(!(n instanceof t)){function i(){}i.prototype=t.prototype,l(n,i=new i),e.prototype=n=i}n.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),n.constructor=e)}var d={},h=d.ELEMENT_NODE=1,p=d.ATTRIBUTE_NODE=2,f=d.TEXT_NODE=3,g=d.CDATA_SECTION_NODE=4,m=d.ENTITY_REFERENCE_NODE=5,b=d.ENTITY_NODE=6,y=d.PROCESSING_INSTRUCTION_NODE=7,v=d.COMMENT_NODE=8,_=d.DOCUMENT_NODE=9,w=d.DOCUMENT_TYPE_NODE=10,k=d.DOCUMENT_FRAGMENT_NODE=11,C=d.NOTATION_NODE=12,S={},T={},P=(S.INDEX_SIZE_ERR=(T[1]="Index size error",1),S.DOMSTRING_SIZE_ERR=(T[2]="DOMString size error",2),S.HIERARCHY_REQUEST_ERR=(T[3]="Hierarchy request error",3)),O=(S.WRONG_DOCUMENT_ERR=(T[4]="Wrong document",4),S.INVALID_CHARACTER_ERR=(T[5]="Invalid character",5),S.NO_DATA_ALLOWED_ER
vendor: 2,381 bytes, line 1
1R=(T[6]="No data allowed",6),S.NO_MODIFICATION_ALLOWED_ERR=(T[7]="No modification allowed",7),S.NOT_FOUND_ERR=(T[8]="Not found",8)),x=(S.NOT_SUPPORTED_ERR=(T[9]="Not supported",9),S.INUSE_ATTRIBUTE_ERR=(T[10]="Attribute in use",10));function A(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,T[e]),this.message=T[e],Error.captureStackTrace&&Error.captureStackTrace(this,A);return n.code=e,t&&(this.message=this.message+": "+t),n}function E(){}function M(e,t){this._node=e,this._refresh=t,I(this)}function I(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var n=e._refresh(e._node);ye(e,"length",n.length),l(n,e),e._inc=t}}function R(){}function L(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function D(e,t,n,i){if(i?t[L(t,i)]=n:t[t.length++]=n,e){n.ownerElement=e;var r=e.ownerDocument;r&&(i&&q(r,e,i),function(e,t,n){e&&e._inc++,n.namespaceURI===s.XMLNS&&(t._nsMap[n.prefix?n.localName:""]=n.value)}(r,e,n))}}function j(e,t,n){var i=L(t,n);if(!(i>=0))throw new A(O,new Error(e.tagName+"@"+n));for(var r=t.length-1;i<r;)t[i]=t[++i];if(t.length=r,e){var s=e.ownerDocument;s&&(q(s,e,n),n.ownerElement=null)}}function N(){}function V(){}function z(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function F(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(F(e,t))return!0}while(e=e.nextSibling)}function B(){this.ownerDocument=this}function q(e,t,n,i){e&&e._inc++,n.namespaceURI===s.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function U(e,t,n){if(e&&e._inc){e._inc++;var i=t.childNodes;if(n)i[i.length++]=n;else{for(var r=t.firstChild,s=0;r;)i[s++]=r,r=r.nextSibling;i.length=s,delete i[i.length]}}}function H(e,t){var n=t.previousSibling,i=t.nextSibling;return n?n.nextSibling=i:e.firstChild=i,i?i.previousSibling=n:e.lastChild=n,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,U(e.ownerDocument,e),t}function W(e){return e&&e.nodeType===V.DOCUMENT_TYPE_NODE}function G(e){return e&&e.nodeType===V.ELEMENT_NODE}function Y(e){return e&&e.nodeType===V.TEXT_NODE}function $(e,t){var n=e.childNodes||[];if(r(n,G)||W(t))return!1;var i=r(n,W);return!(t&&i&&n.indexOf(i)>n.indexOf(t))}function Z(e,t){var n=e.childNodes||[];if(r(n,function(e){return G(e)&&e!==t}))return!1;var i=r(n,W);return!(t&&i&&n.indexOf(i)>n.indexOf(t))}function Q(e,t,n){var i=e.childNodes||[],s=t.childNodes||[];
vendor: 4,316 bytes, line 1
1if(t.nodeType===V.DOCUMENT_FRAGMENT_NODE){var o=s.filter(G);if(o.length>1||r(s,Y))throw new A(P,"More than one element or text in fragment");if(1===o.length&&!$(e,n))throw new A(P,"Element in fragment can not be inserted before doctype")}if(G(t)&&!$(e,n))throw new A(P,"Only one element can be added and only after doctype");if(W(t)){if(r(i,W))throw new A(P,"Only one doctype is allowed");var a=r(i,G);if(n&&i.indexOf(a)<i.indexOf(n))throw new A(P,"Doctype can only be inserted before an element");if(!n&&a)throw new A(P,"Doctype can not be appended since element is present")}}function X(e,t,n){var i=e.childNodes||[],s=t.childNodes||[];if(t.nodeType===V.DOCUMENT_FRAGMENT_NODE){var o=s.filter(G);if(o.length>1||r(s,Y))throw new A(P,"More than one element or text in fragment");if(1===o.length&&!Z(e,n))throw new A(P,"Element in fragment can not be inserted before doctype")}if(G(t)&&!Z(e,n))throw new A(P,"Only one element can be added and only after doctype");if(W(t)){if(r(i,function(e){return W(e)&&e!==n}))throw new A(P,"Only one doctype is allowed");var a=r(i,G);if(n&&i.indexOf(a)<i.indexOf(n))throw new A(P,"Doctype can only be inserted before an element")}}function K(e,t,n,i){(function(e,t,n){if(!function(e){return e&&(e.nodeType===V.DOCUMENT_NODE||e.nodeType===V.DOCUMENT_FRAGMENT_NODE||e.nodeType===V.ELEMENT_NODE)}(e))throw new A(P,"Unexpected parent node type "+e.nodeType);if(n&&n.parentNode!==e)throw new A(O,"child not in parent");if(!function(e){return e&&(G(e)||Y(e)||W(e)||e.nodeType===V.DOCUMENT_FRAGMENT_NODE||e.nodeType===V.COMMENT_NODE||e.nodeType===V.PROCESSING_INSTRUCTION_NODE)}(t)||W(t)&&e.nodeType!==V.DOCUMENT_NODE)throw new A(P,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)})(e,t,n),e.nodeType===V.DOCUMENT_NODE&&(i||Q)(e,t,n);var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===k){var s=t.firstChild;if(null==s)return t;var o=t.lastChild}else s=o=t;var a=n?n.previousSibling:e.lastChild;s.previousSibling=a,o.nextSibling=n,a?a.nextSibling=s:e.firstChild=s,null==n?e.lastChild=o:n.previousSibling=o;do{s.parentNode=e}while(s!==o&&(s=s.nextSibling));return U(e.ownerDocument||e,e),t.nodeType==k&&(t.firstChild=t.lastChild=null),t}function J(){this._nsMap={}}function ee(){}function te(){}function ne(){}function ie(){}function re(){}function se(){}function oe(){}function ae(){}function ce(){}function le(){}function ue(){}function de(){}function he(e,t){var n=[],i=9==this.nodeType&&this.documentElement||this,r=i.prefix,s=i.namespaceURI;if(s&&null==r&&null==(r=i.lookupPrefix(s)))var o=[{namespace:s,prefix:null}];return ge(this,n,e,t,o),n.join("")}function pe(e,t,n){var i=e.prefix||"",r=e.namespaceURI;if(!r)return!1;if("xml"===i&&r===s.XML||r===s.XMLNS)return!1;for(var o=n.length;o--;){var a=n[o];if(a.prefix===i)return a.namespace!==r}return!0}function fe(e,t,n){e.push(" ",t,'="',n.replace(/[<>&"\t\n\r]/g,z),'"')}function ge(e,t,n,i,r){if(r||(r=[]),i){if(!(e=i(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case h:var o=e.attributes,a=o.length,c=e.firstChild,l=e.tagName,u=l;if(!(n=s.isHTML(e.namespaceURI)||n)&&!e.prefix&&e.namespaceURI){for(var d,b=0;b<o.length;b++)if("xmlns"===o.item(b).name){d=o.item(b).value;break}if(!d)for(var C=r.length-1;C>=0;C--)if(""===(S=r[C]).prefix&&S.namespace===e.namespaceURI){d=S.namespace;break}if(d!==e.namespaceURI)for(C=r.length-1;C>=0;C--){var S;if((S=r[C]).namespace===e.namespaceURI){S.prefix&&(u=S.prefix+":"+l);break}}}t.push("<",u);for(var T=0;T<a;T++)"xmlns"==(P=o.item(T)).prefix?r.push({prefix:P.localName,namespace:P.value}):"xmlns"==P.nodeName&&r.push({prefix:"",namespace:P.value});for(T=0;T<a;T++){var P,O,x;pe(P=o.item(T),0,r)&&(fe(t,(O=P.prefix||"")?"xmlns:"+O:"xmlns",x=P.namespaceURI),r.push({prefix:O,namespace:x})),ge(P,t,n,i,r)}if(l===u&&pe(e,0,r)&&(fe(t,(O=e.prefix||"")?"xmlns:"+O:"xmlns",x=e.namespaceURI),r.push({prefix:O,namespace:x})),c||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(l)){if(t.push(">"),n&&/^script$/i.test(l))for(;c;)c.data?t.push(c.data):ge(c,t,n,i,r.slice()),c=c.nextSibling;else for(;c;)ge(c,t,n,i,r.slice()),c=c.nextSibling;t.push("</",u,">")}else t.push("/>");return;case _:case k:for(c=e.firstChild;c;)ge(c,t,n,i,r.slice()),c=c.nextSibling;return;case p:return fe(t,e.name,e.value);case f:return t.push(e.data.replace(/[<&>]/g,z));
vendor: 10,628 bytes, line 1
1case g:return t.push("<![CDATA[",e.data,"]]>");case v:return t.push("\x3c!--",e.data,"--\x3e");case w:var A=e.publicId,E=e.systemId;if(t.push("<!DOCTYPE ",e.name),A)t.push(" PUBLIC ",A),E&&"."!=E&&t.push(" ",E),t.push(">");else if(E&&"."!=E)t.push(" SYSTEM ",E,">");else{var M=e.internalSubset;M&&t.push(" [",M,"]"),t.push(">")}return;case y:return t.push("<?",e.target," ",e.data,"?>");case m:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function me(e,t,n){var i;switch(t.nodeType){case h:(i=t.cloneNode(!1)).ownerDocument=e;case k:break;case p:n=!0}if(i||(i=t.cloneNode(!1)),i.ownerDocument=e,i.parentNode=null,n)for(var r=t.firstChild;r;)i.appendChild(me(e,r,n)),r=r.nextSibling;return i}function be(e,t,n){var i=new t.constructor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var s=t[r];"object"!=typeof s&&s!=i[r]&&(i[r]=s)}switch(t.childNodes&&(i.childNodes=new E),i.ownerDocument=e,i.nodeType){case h:var o=t.attributes,a=i.attributes=new R,c=o.length;a._ownerElement=i;for(var l=0;l<c;l++)i.setAttributeNode(be(e,o.item(l),!0));break;case p:n=!0}if(n)for(var u=t.firstChild;u;)i.appendChild(be(e,u,n)),u=u.nextSibling;return i}function ye(e,t,n){e[t]=n}S.INVALID_STATE_ERR=(T[11]="Invalid state",11),S.SYNTAX_ERR=(T[12]="Syntax error",12),S.INVALID_MODIFICATION_ERR=(T[13]="Invalid modification",13),S.NAMESPACE_ERR=(T[14]="Invalid namespace",14),S.INVALID_ACCESS_ERR=(T[15]="Invalid access",15),A.prototype=Error.prototype,l(S,A),E.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],i=0;i<this.length;i++)ge(this[i],n,e,t);return n.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},M.prototype.item=function(e){return I(this),this[e]},u(M,E),R.prototype={length:0,item:E.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new A(x);var n=this.getNamedItem(e.nodeName);return D(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new A(x);return t=this.getNamedItemNS(e.namespaceURI,e.localName),D(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return j(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return j(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var i=this[n];if(i.localName==t&&i.namespaceURI==e)return i}return null}},N.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var i=new B;if(i.implementation=this,i.childNodes=new E,i.doctype=n||null,n&&i.appendChild(n),t){var r=i.createElementNS(e,t);i.appendChild(r)}return i},createDocumentType:function(e,t,n){var i=new se;return i.name=e,i.nodeName=e,i.publicId=t||"",i.systemId=n||"",i}},V.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return K(this,e,t)},replaceChild:function(e,t){K(this,e,t,X),t&&this.removeChild(t)},removeChild:function(e){return H(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return be(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==f&&e.nodeType==f?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&n[i]===e)return i;t=t.nodeType==p?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,e))return n[e];t=t.nodeType==p?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},l(d,V),l(d,V.prototype),B.prototype={nodeName:"#document",nodeType:_,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==k){for(var n=e.firstChild;n;){var i=n.nextSibling;this.insertBefore(n,t),n=i}return e}return K(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===h&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),H(this,e)},replaceChild:function(e,t){K(this,e,t,X),e.ownerDocument=this,t&&this.removeChild(t),G(e)&&(this.documentElement=e)},importNode:function(e,t){return me(this,e,t)},getElementById:function(e){var t=null;return F(this.documentElement,function(n){if(n.nodeType==h&&n.getAttribute("id")==e)return t=n,!0}),t},getElementsByClassName:function(e){var t=c(e);return new M(this,function(n){var i=[];return t.length>0&&F(n.documentElement,function(r){if(r!==n&&r.nodeType===h){var s=r.getAttribute("class");if(s){var o=e===s;if(!o){var a=c(s);o=t.every((l=a,function(e){return l&&-1!==l.indexOf(e)}))}o&&i.push(r)}}var l}),i})},createElement:function(e){var t=new J;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new E,(t.attributes=new R)._ownerElement=t,t},createDocumentFragment:function(){var e=new le;return e.ownerDocument=this,e.childNodes=new E,e},createTextNode:function(e){var t=new ne;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new ie;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new re;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new ue;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new ee;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new ce;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new J,i=t.split(":"),r=n.attributes=new R;return n.childNodes=new E,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,r._ownerElement=n,n},createAttributeNS:function(e,t){var n=new ee,i=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,n}},u(B,V),B.prototype.getElementsByTagName=(J.prototype={nodeType:h,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===k?this.insertBefore(e,null):function(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,U(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var i=this.ownerDocument.createAttributeNS(e,t);i.value=i.nodeValue=""+n,this.setAttributeNode(i)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new M(this,function(t){var n=[];return F(t,function(i){i===t||i.nodeType!=h||"*"!==e&&i.tagName!=e||n.push(i)}),n})},getElementsByTagNameNS:function(e,t){return new M(this,function(n){var i=[];return F(n,function(r){r===n||r.nodeType!==h||"*"!==e&&r.namespaceURI!==e||"*"!==t&&r.localName!=t||i.push(r)}),i})}}).getElementsByTagName,B.prototype.getElementsByTagNameNS=J.prototype.getElementsByTagNameNS,u(J,V),ee.prototype.nodeType=p,u(ee,V),te.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){this.nodeValue=this.data=e=this.data+e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(T[P])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){var i=this.data.substring(0,e),r=this.data.substring(e+t);this.nodeValue=this.data=n=i+n+r,this.length=n.length}},u(te,V),ne.prototype={nodeName:"#text",nodeType:f,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var i=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}},u(ne,te),ie.prototype={nodeName:"#comment",nodeType:v},u(ie,te),re.prototype={nodeName:"#cdata-section",nodeType:g},u(re,te),se.prototype.nodeType=w,u(se,V),oe.prototype.nodeType=C,u(oe,V),ae.prototype.nodeType=b,u(ae,V),ce.prototype.nodeType=m,u(ce,V),le.prototype.nodeName="#document-fragment",le.prototype.nodeType=k,u(le,V),ue.prototype.nodeType=y,u(ue,V),de.prototype.serializeToString=function(e,t,n){return he.call(e,t,n)},V.prototype.toString=he;try{if(Object.defineProperty){function ve(e){switch(e.nodeType){case h:case k:var t=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&t.push(ve(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(M.prototype,"length",{get:function(){return I(this),this.$$length}}),Object.defineProperty(V.prototype,"textContent",{get:function(){return ve(this)},set:function(e){switch(this.nodeType){case h:case k:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),ye=function(e,t,n){e["$$"+t]=n}}}catch(_e){}t.DocumentType=se,t.DOMException=A,t.DOMImplementation=N,t.Element=J,t.Node=V,t.NodeList=E,t.XMLSerializer
1=de},5:function(e,t){},"5+tZ":function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return l});var i=n("lJxs"),r=n("Cfvw"),s=n("zx2A");function o(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?s=>s.pipe(o((n,s)=>Object(r.a)(e(n,s)).pipe(Object(i.a)((e,i)=>t(n,e,s,i))),n)):("number"==typeof t&&(n=t),t=>t.lift(new a(e,n)))}class a{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new c(e,this.project,this.concurrent))}}class c extends s.b{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(t)}_innerSub(e){const t=new s.a(this),n=this.destination;n.add(t);const i=Object(s.c)(e,t);i!==t&&n.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}const l=o},"5E0y":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}findByIdCandidates(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiElections/:id/candidates/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdCandidates(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiElections/:id/candidates/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdCandidates(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiElections/:id/candidates/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}getCandidates(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiElections/:id/candidates",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createCandidates(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiElections/:id/candidates";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteCandidates(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiElections/:id/candidates";return this.request("DELETE",n,{id:e},{},{},null,t)}countCandidates(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiElections/:id/candidates/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiElections/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}setstatus(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiElections/:id/status",r={id:e},s={};return null!=t&&(s.value=t),this.request("POST",i,r,s,{},null,n)}canCandidate(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiElections/:id/canCandidate";return this.request("GET",n,{id:e},{},{},null,t)}canVote(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiElections/:id/canVote";return this.request("GET",n,{id:e},{},{},null,t)}candidate(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiElections/:id/candidate",r={id:e},s={};return null!=t&&(s.candidate=t),this.request("POST",i,r,s,{},null,n)}vote(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiElections/:id/vote",r={id:e},s={};return null!=t&&(s.votes=t),this.request("POST",i,r,s,{},null,n)}getUserInfo(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiElections/:id/user-info";return this.request("GET",n,{id:e},{},{},null,t)}generateResults(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiElections/:id/generate-results";return this.request("POST",n,{id:e},{},{},null,t)}getVotersCount(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiElections/:id/count-voters",r={id:e},s={};return null!=t&&(s.query=t),this.request("GET",i,r,s,{},null,n)}registerToVote(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiElections/:id/register",r={id:e},s={};return null!=t&&(s.userId=t),this.request("POST",i,r,s,{},null,n)}isRegisteredToVote(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiElections/:id/registered",r={id:e},s={};return null!=t&&(s.userId=t),this.request("GET",i,r,s,{},null,n)}createManyCandidates(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiElections/:id/candidates";return this.request("POST",i,{id:e},{},{data:t},null,n)}getModelName(){return"SimiElection"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},"5MUS":function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("2Vo4"),r=n("LRne"),s=n("GJmQ"),o=n("aceb"),a=n("fXoL");let c=(()=>{class e{constructor(e){this.layouts=[{name:"One Column",icon:"nb-layout-default",id:"one-column",selected:!0},{name:"Two Column",icon:"nb-layout-two-column",id:"two-column"},{name:"Center Column",icon:"nb-layout-centre",id:"center-column"}],this.sidebars=[{name:"Sidebar at layout start",icon:"nb-layout-sidebar-left",id:"start",selected:!0},{name:"Sidebar at layout end",icon:"nb-layout-sidebar-right",id:"end"}],this.layoutState$=new i.a(this.layouts[0]),this.sidebarState$=new i.a(this.sidebars[0]),this.alive=!0,e.onDirectionChange().pipe(Object(s.a)(()=>this.alive)).subscribe(e=>this.updateSidebarIcons(e)),this.updateSidebarIcons(e.getDirection())}ngOnDestroy(){this.alive=!1}updateSidebarIcons(e){const[t,n]=this.sidebars;t.icon=e===o.Q.LTR?"nb-layout-sidebar-left":"nb-layout-sidebar-right",n.icon="nb-layout-sidebar-right"}setLayoutState(e){this.layoutState$.next(e)}getLayoutStates(){return Object(r.a)(this.layouts)}onLayoutState(){return this.layoutState$.asObservable()}setSidebarState(e){this.sidebarState$.next(e)}getSidebarStates(){return Object(r.a)(this.sidebars)}onSidebarState(){return this.sidebarState$.asObservable()}}return e.\u0275fac=function(t){return new(t||e)(a.gc(o.R))},e.\u0275prov=a.Pb({token:e,factory:e.\u0275fac}),e})()},"5V3d":function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){this.id=null,this.ttl=null,this.scopes=null,this.created=null,this.userId=null,this.user=null,this.rememberMe=null,Object.assign(this,e)}}},"5m5N":function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"CongressSurveySubmission"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"CongressSurveySubmission",plural:"CongressSurveySubmissions",path:"CongressSurveySubmissions",idName:"id",properties:{eventId:{name:"eventId",type:"any"},subscriptionId:{name:"subscriptionId",type:"any"},userId:{name:"userId",type:"any"},surveyId:{name:"surveyId",type:"any"},name:{name:"name",type:"string"},status:{name:"status",type:"string",default:"pending"},answers:{name:"answers",type:"Array<any>"},submitted:{name:"submitted",type:"Date"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{event:{name:"event",type:"Congress",model:"Congress",relationType:"belongsTo",keyFrom:"eventId",keyTo:"id"},subscription:{name:"subscription",type:"CongressSubscription",model:"CongressSubscription",relationType:"belongsTo",keyFrom:"subscriptionId",keyTo:"id"},survey:{name:"survey",type:"SimiEventSurvey",model:"SimiEventSurvey",relationType:"belongsTo",keyFrom:"surveyId",keyTo:"id"},user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},"5yfJ":function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return o}
1);var i=n("HDdC"),r=n("KqfI");const s=new i.a(r.a);function o(){return s}},"6MUB":function(e,t,n){"use strict";var i=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,r){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(r){var s=encodeURIComponent(i(r))+n;return Array.isArray(e[r])?e[r].map(function(e){return s+encodeURIComponent(i(e))}).join(t):s+encodeURIComponent(i(e[r]))}).join(t):r?encodeURIComponent(i(r))+n+encodeURIComponent(i(e)):""}},"6fYL":function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiPodcastProgress"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiPodcastProgress",plural:"SimiPodcastProgresses",path:"SimiPodcastProgresses",idName:"id",properties:{podcastId:{name:"podcastId",type:"any"},userId:{name:"userId",type:"any"},progress:{name:"progress",type:"number"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{podcast:{name:"podcast",type:"SimiPodcast",model:"SimiPodcast",relationType:"belongsTo",keyFrom:"podcastId",keyTo:"id"},user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},"6feL":function(e,t,n){"use strict";n.d(t,"a",function(){return d});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=(n("5V3d"),n("wET7")),l=n("lJxs"),u=n("fXoL");let d=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}findByIdAccessTokens(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/accessTokens/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdAccessTokens(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/accessTokens/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdAccessTokens(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/accessTokens/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}findByIdRoles(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/roles/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdRoles(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/roles/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdRoles(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/roles/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}linkRoles(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/roles/rel/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}unlinkRoles(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/roles/rel/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}existsRoles(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/roles/rel/:fk";return this.request("HEAD",i,{id:e,fk:t},{},{},null,n)}findByIdDevices(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/devices/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdDevices(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/devices/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdDevices(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/devices/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}getSurveyWriter(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/surveyWriter",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}createSurveyWriter(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/surveyWriter";return this.request("POST",i,{id:e},{},{data:t},null,n)}updateSurveyWriter(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/surveyWriter";return this.request("PUT",i,{id:e},{},{data:t},null,n)}destroySurveyWriter(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/surveyWriter";return this.request("DELETE",n,{id:e},{},{},null,t)}getSurveyCompiler(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/surveyCompiler",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}createSurveyCompiler(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/surveyCompiler";return this.request("POST",i,{id:e},{},{data:t},null,n)}updateSurveyCompiler(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/surveyCompiler";return this.request("PUT",i,{id:e},{},{data:t},null,n)}destroySurveyCompiler(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/surveyCompiler";return this.request("DELETE",n,{id:e},{},{},null,t)}getAdmission(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/admission",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}createAdmission(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/admission";return this.request("POST",i,{id:e},{},{data:t},null,n)}updateAdmission(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/admission";return this.request("PUT",i,{id:e},{},{data:t},null,n)}destroyAdmission(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/admission";return this.request("DELETE",n,{id:e},{},{},null,t)}getAssociate(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/associate",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}createAssociate(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/associate";return this.request("POST",i,{id:e},{},{data:t},null,n)}updateAssociate(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/associate";return this.request("PUT",i,{id:e},{},{data:t},null,n)}destroyAssociate(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/associate";return this.request("DELETE",n,{id:e},{},{},null,t)}getCongressProfile(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/congressProfile",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}createCongressProfile(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/congressProfile";return this.request("POST",i,{id:e},{},{data:t},null,n)}updateCongressProfile(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/congressProfile";return this.request("PUT",i,{id:e},{},{data:t},null,n)}destroyCongressProfile(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/congressProfile";return this.request("DELETE",n,{id:e},{},{},null,t)}
1findByIdInstitutes(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/institutes/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}existsInstitutes(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/institutes/rel/:fk";return this.request("HEAD",i,{id:e,fk:t},{},{},null,n)}findByIdInstituteMappings(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/instituteMappings/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdInstituteMappings(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/instituteMappings/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdInstituteMappings(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/instituteMappings/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}findByIdCongressSubscriptions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/congressSubscriptions/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}findByIdCourseSubscriptions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/courseSubscriptions/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}getAccessTokens(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/accessTokens",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createAccessTokens(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/accessTokens";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteAccessTokens(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/accessTokens";return this.request("DELETE",n,{id:e},{},{},null,t)}countAccessTokens(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/accessTokens/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getRoles(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/roles",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createRoles(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/roles";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteRoles(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/roles";return this.request("DELETE",n,{id:e},{},{},null,t)}countRoles(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/roles/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getDevices(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/devices",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createDevices(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/devices";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteDevices(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/devices";return this.request("DELETE",n,{id:e},{},{},null,t)}countDevices(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/devices/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getInstitutes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/institutes",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}countInstitutes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/institutes/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getInstituteMappings(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/instituteMappings",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createInstituteMappings(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/instituteMappings";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteInstituteMappings(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/instituteMappings";return this.request("DELETE",n,{id:e},{},{},null,t)}countInstituteMappings(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/instituteMappings/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getCongressSubscriptions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/congressSubscriptions",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}countCongressSubscriptions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/congressSubscriptions/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getCourseSubscriptions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/courseSubscriptions",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}countCourseSubscriptions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/courseSubscriptions/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}destroyAll(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users",i={};return null!=e&&(i.where=e),this.request("DELETE",n,{},i,{},null,t)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}login(e,t=!0,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/login";return this.request("POST",i,{},{},{credentials:e}
1,null,n).pipe(Object(l.a)(e=>(e.ttl=parseInt(e.ttl),e.rememberMe=t,this.auth.setToken(e),e)))}logout(e){let t=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/logout",n={};return n.access_token=this.auth.getAccessTokenId(),this.auth.clear(),this.request("POST",t,{},n,{},null,e)}confirm(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/confirm",s={};return null!=e&&(s.uid=e),null!=t&&(s.token=t),null!=n&&(s.redirect=n),this.request("GET",r,{},s,{},null,i)}resetPassword(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/reset";return this.request("POST",n,{},{},{resetOptions:e},null,t)}changePassword(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/change-password";return this.request("POST",i,{},{},{data:{oldPassword:e,newPassword:t}},null,n)}setPassword(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/reset-password";return this.request("POST",n,{},{},{data:{newPassword:e}},null,t)}me(e){let t=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/me";return this.request("GET",t,{},{},{},null,e)}sendInvite(e,t,n,i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/sendInvite",s={id:e},a={};return null!=t&&(a.email=t),null!=n&&(a.message=n),this.request("POST",r,s,a,{},null,i)}addRole(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/addRole",r={};return null!=e&&(r.userId=e),null!=t&&(r.roleKey=t),this.request("POST",i,{},r,{},null,n)}removeRole(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/removeRole",r={};return null!=e&&(r.userId=e),null!=t&&(r.roleKey=t),this.request("DELETE",i,{},r,{},null,n)}verify(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/verify",i={};return null!=e&&(i.email=e),this.request("POST",n,{},i,{},null,t)}setUserPassword(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/set-user-password",r={};return null!=e&&(r.userId=e),null!=t&&(r.newPassword=t),this.request("POST",i,{},r,{},null,n)}setVerified(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/setVerified",i={};return null!=e&&(i.userId=e),this.request("POST",n,{},i,{},null,t)}getVerified(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/verified",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countVerified(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/verified/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}sendBulkEmail(e={},t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/sendBulkEmail",r={};return null!=e&&(r.email=e),null!=t&&(r.filter=t),this.request("POST",i,{},r,{},null,n)}refresh(e){let t=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/refresh";return this.request("POST",t,{},{},{},null,e)}replaceInstituteMappings(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/instituteMappings/replace";return this.request("POST",i,{id:e},{},{data:t},null,n)}getByIdProfiles(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/profiles",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}printLabel(e={},t={},n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/printLabel",s={};return null!=e&&(s.where=e),null!=t&&(s.opts=t),this.request("GET",r,{},s,{},null,i)}mergeEntities(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/merge",r={};return null!=e&&(r.targetId=e),null!=t&&(r.srcId=t),this.request("POST",i,{},r,{},null,n)}mergeInfo(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/merge/info",i={};return null!=e&&(i.userId=e),this.request("GET",n,{},i,{},null,t)}registerAssociate(e={},t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/registerAssociate",r={};return null!=e&&(r.userData=e),null!=t&&(r.associateData=t),this.request("POST",i,{},r,{},null,n)}existsAssociate(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/associate/exists";return this.request("GET",n,{id:e},{},{},null,t)}uploadpicture(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/upload/picture";return this.request("POST",n,{id:e},{},{},null,t)}uploadcv(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/upload/cv";return this.request("POST",n,{id:e},{},{},null,t)}getEventRoles(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/event-roles";return this.request("GET",i,{id:e},{},{},null,n)}getNotifications(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/notifications",r={id:e},s={};return null!=t&&(s.query=t),this.request("GET",i,r,s,{},null,n)}countNotificationsUnread(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/notifications/unread";return this.request("GET",n,{id:e},{},{},null,t)}sendNotifications(e={},t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/notifications",r={};return null!=e&&(r.userIds=e),null!=t&&(r.notification=t),this.request("POST",i,{},r,{},null,n)}getPaymentIntents(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/paymentIntents",r={id:e},s={};return null!=t&&(s.query=t),this.request("GET",i,r,s,{},null,n)}getDeleted(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/deleted",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countDeleted(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/deleted/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}getByIdDeleted(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/deleted/:id",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}forceDelete(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/force",i={};return null!=e&&(i.where=e),this.request("DELETE",n,{},i,{},null,t)}deleteDeleted(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/deleted",i={};return null!=e&&(i.where=e),this.request("DELETE",n,{},i,{},null,t)}destroyByIdDeleted(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/deleted/:id";return this.request("DELETE",n,{id:e},{},{},null,t)}restoreDeleted(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/deleted/restore",i={};return null!=e&&(i.where=e),this.request("PATCH",n,{},i,{},null,t)}restoreByIdDeleted(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/deleted/restore/:id";return this.request("PATCH",n,{id:e},{},{},null,t)}createManySurveyWriter(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/surveyWriter";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManySurveyCompiler(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/surveyCompiler";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyAdmission(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/admission";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyAssociate(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/associate";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyCongressProfile(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/congressProfile";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyAccessTokens(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/accessTokens";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyRoles(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/roles";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyDevices(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/devices";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyInstituteMappings(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id/instituteMappings";return this.request("POST",i,{id:e},{},{data:t},null,n)}getCurrent(e={}
1){let t=o.a.getPath()+"/"+o.a.getApiVersion()+"/Users/:id",n=this.auth.getCurrentUserId();null==n&&(n="__anonymous__");let i={id:n},r={};return e&&(r.filter=e),this.request("GET",t,i,r,{})}getCachedCurrent(){return this.auth.getCurrentUserData()}getCurrentToken(){return this.auth.getToken()}isAuthenticated(){return!(""===this.getCurrentId()||null==this.getCurrentId()||"null"==this.getCurrentId())}getCurrentId(){return this.auth.getCurrentUserId()}getModelName(){return"SimiUser"}}return e.\u0275fac=function(t){return new(t||e)(u.gc(i.b),u.gc(r.a),u.gc(a.a),u.gc(c.a,8))},e.\u0275prov=u.Pb({token:e,factory:e.\u0275fac}),e})()},"6it1":function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiPayment"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiPayment",plural:"SimiPayments",path:"SimiPayments",idName:"id",properties:{userId:{name:"userId",type:"any"},associateId:{name:"associateId",type:"any"},year:{name:"year",type:"number"},amount:{name:"amount",type:"number"},executed_date:{name:"executed_date",type:"Date"},details:{name:"details",type:"string"},sezione_regionale:{name:"sezione_regionale",type:"string"},status:{name:"status",type:"string",default:"pending"},receipt:{name:"receipt",type:"any"},processed_date:{name:"processed_date",type:"Date"},partial_amount:{name:"partial_amount",type:"number"},intentId:{name:"intentId",type:"string"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{associate:{name:"associate",type:"SimiAssociate",model:"SimiAssociate",relationType:"belongsTo",keyFrom:"associateId",keyTo:"id"},transactions:{name:"transactions",type:"SimiPaymentTransaction[]",model:"SimiPaymentTransaction",relationType:"hasMany",keyFrom:"id",keyTo:"paymentId"},user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},"6xty":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getCongress(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressReviews/:id/congress",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getProfile(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressReviews/:id/profile",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getSubmission(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressReviews/:id/submission",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getAssignment(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressReviews/:id/assignment",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressReviews/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}confirm(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressReviews/:id/confirm";return this.request("PUT",n,{id:e},{},{},null,t)}getPending(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressReviews/pending",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countPending(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressReviews/pending/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}getConfirmed(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressReviews/confirmed",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countConfirmed(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressReviews/confirmed/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}getModelName(){return"CongressReview"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},"7+OI":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("HDdC");function r(e){return!!e&&(e instanceof i.a||"function"==typeof e.lift&&"function"==typeof e.subscribe)}},"73JB":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getPodcast(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPodcastProgresses/:id/podcast",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPodcastProgresses/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPodcastProgresses/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}getModelName(){return"SimiPodcastProgress"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},"7HRe":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("HDdC"),r=n("quSY"),s=n("kJWO"),o=n("jZKg"),a=n("Lhse"),c=n("c2HN"),l=n("I55L");function u(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[s.a]}(e))return function(e,t){return new i.a(n=>{const i=new r.a;return i.add(t.schedule(()=>{const r=e[s.a]();i.add(r.subscribe({next(e){i.add(t.schedule(()=>n.next(e)))},error(e){i.add(t.schedule(()=>n.error(e)))},complete(){i.add(t.schedule(()=>n.complete()))}}))})),i})}(e,t);if(Object(c.a)(e))return function(e,t){return new i.a(n=>{const i=new r.a;return i.add(t.schedule(()=>e.then(e=>{i.add(t.schedule(()=>{n.next(e),i.add(t.schedule(()=>n.complete()))}))},e=>{i.add(t.schedule(()=>n.error(e)))}))),i})}(e,t);if(Object(l.a)(e))return Object(o.a)(e,t);if(function(e){return e&&"function"==typeof e[a.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new i.a(n=>{const i=new r.a;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(t.schedule(()=>{s=e[a.a](),i.add(t.schedule(function(){if(n.closed)return;let e,t;try{const n=s.next();e=n.value,t=n.done}catch(i){return void n.error(i)}t?n.complete():(n.next(e),this.schedule())}))})),i})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}},"7Hc7":function(e,t,n){"use strict";n.d(t,"b",function(){return h}),n.d(t,"a",function(){return p});let i=1;const r=(()=>Promise.resolve())(),s={};
1function o(e){return e in s&&(delete s[e],!0)}const a={setImmediate(e){const t=i++;return s[t]=!0,r.then(()=>o(t)&&e()),t},clearImmediate(e){o(e)}};var c=n("3N8a");class l extends c.a{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=a.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(a.clearImmediate(t),e.scheduled=void 0)}}var u=n("IjjT");class d extends u.a{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,i=-1,r=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++i<r&&(e=t.shift()));if(this.active=!1,n){for(;++i<r&&(e=t.shift());)e.unsubscribe();throw n}}}const h=new d(l),p=h},"7MCs":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getEvent(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressExamSubmissions/:id/event",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getSubscription(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressExamSubmissions/:id/subscription",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getExam(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressExamSubmissions/:id/exam",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressExamSubmissions/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressExamSubmissions/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}answer(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressExamSubmissions/:id/answer",r={id:e},s={};return null!=t&&(s.answer=t),this.request("POST",i,r,s,{},null,n)}submit(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressExamSubmissions/:id/submit";return this.request("POST",n,{id:e},{},{},null,t)}getModelName(){return"CongressExamSubmission"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},"7W2i":function(e,t,n){var i=n("SksO");e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},"7XEM":function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiEventSurvey"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiEventSurvey",plural:"SimiEventSurveys",path:"SimiEventSurveys",idName:"id",properties:{name:{name:"name",type:"string"},version:{name:"version",type:"string"},title:{name:"title",type:"string"},description:{name:"description",type:"string"},questions:{name:"questions",type:"Array<any>"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{}}}}},"7o/Q":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("n6bG"),r=n("gRHU"),s=n("quSY"),o=n("2QA8"),a=n("2fFW"),c=n("NJ4a");class l extends s.a{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=r.a;break;case 1:if(!e){this.destination=r.a;break}if("object"==typeof e){e instanceof l?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,e,t,n)}}[o.a](){return this}static create(e,t,n){const i=new l(e,t,n);return i.syncErrorThrowable=!1,i}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class u extends l{constructor(e,t,n,s){let o;super(),this._parentSubscriber=e;let a=this;Object(i.a)(t)?o=t:t&&(o=t.next,n=t.error,s=t.complete,t!==r.a&&(a=Object.create(t),Object(i.a)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;a.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=a.a;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(c.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(c.a)(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);a.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(c.a)(n)}}__tryOrSetError(e,t,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return a.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(Object(c.a)(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}},"7zRj":function(e,t,n){var i,r="undefined"!=typeof global?global:"undefined"!=typeof window?window:{},s=n(5);"undefined"!=typeof document?i=document:(i=r["__GLOBAL_DOCUMENT_CACHE@4"])||(i=r["__GLOBAL_DOCUMENT_CACHE@4"]=s),e.exports=i},"80r4":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("Zfcy"),r=n("fXoL");let s=(()=>{class e{log(...e){i.a.debuggable()&&console.log.apply(console,e)}info(...e){i.a.debuggable()&&console.info.apply(console,e)}error(...e){i.a.debuggable()&&console.error.apply(console,e)}count(e){i.a.debuggable()&&console.count(e)}group(e){i.a.debuggable()&&console.count(e)}groupEnd(){i.a.debuggable()&&console.groupEnd()}profile(e){i.a.debuggable()&&console.count(e)}profileEnd(){i.a.debuggable()&&console.profileEnd()}time(e){i.a.debuggable()&&console.time(e)}timeEnd(e){i.a.debuggable()&&console.timeEnd(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})()},"8MBb":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}
1findByIdSponsors(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/sponsors/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}linkSponsors(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/sponsors/rel/:fk";return this.request("PUT",i,{id:e,fk:t},{},{},null,n)}unlinkSponsors(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/sponsors/rel/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}existsSponsors(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/sponsors/rel/:fk";return this.request("HEAD",i,{id:e,fk:t},{},{},null,n)}getSettings(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/settings",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}createSettings(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/settings";return this.request("POST",i,{id:e},{},{data:t},null,n)}updateSettings(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/settings";return this.request("PUT",i,{id:e},{},{data:t},null,n)}destroySettings(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/settings";return this.request("DELETE",n,{id:e},{},{},null,t)}findByIdLinks(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/links/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdLinks(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/links/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdLinks(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/links/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}getExam(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/exam",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getQuality_survey(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/quality_survey",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getEcm_survey(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/ecm_survey",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}findByIdRoles(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/roles/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdRoles(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/roles/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdRoles(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/roles/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}findByIdThreads(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/threads/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdThreads(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/threads/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdThreads(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/threads/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}getSponsors(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/sponsors",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}countSponsors(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/sponsors/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getLinks(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/links",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createLinks(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/links";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteLinks(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/links";return this.request("DELETE",n,{id:e},{},{},null,t)}countLinks(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/links/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getRoles(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/roles",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createRoles(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/roles";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteRoles(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/roles";return this.request("DELETE",n,{id:e},{},{},null,t)}countRoles(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/roles/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getThreads(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/threads",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createThreads(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/threads";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteThreads(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/threads";return this.request("DELETE",n,{id:e},{},{},null,t)}countThreads(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/threads/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}addToCalendar(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/user-calendar";return this.request("POST",n,{id:e},{},{},null,t)}removeFromCalendar(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/user-calendar";return this.request("DELETE",n,{id:e},{},{},null,t)}acceptSubscriptions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/subscriptions/:fk/accept";return this.request("POST",i,{id:e,fk:t},{},{},null,n)}cancelSubscriptions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/subscriptions/:fk/cancel";return this.request("POST",i,{id:e,fk:t},{},{},null,n)}blockSubscriptions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/subscriptions/:fk/block";return this.request("POST",i,{id:e,fk:t},{},{},null,n)}invite(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/invite",r={id:e},s={};return null!=t&&(s.email=t),this.request("POST",i,r,s,{},null,n)}refreshData(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/refresh";return this.request("POST",n,{id:e},{},{},null,t)}uploadpicture(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/upload/picture";return this.request("POST",n,{id:e},{},{},null,t)}getActive(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/active",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countActive(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/active/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}linkedEventsLinks(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/links/linkedEvents",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}downloadReport(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/report";return this.request("GET",n,{id:e},{},{},null,t)}downloadParticipants(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/participants";return this.request("GET",n,{id:e},{},{},null,t)}getStats(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/getStats",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}generateCertificatesPassed(e,t={},n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/certificates/passed",s={id:e},a={};return null!=t&&(a.query=t),null!=n&&(a.settings=n),this.request("POST",r,s,a,{},null,i)}generateCertificatesLogbook(e,t={},n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/certificates/logbook",s={id:e},a={};return null!=t&&(a.query=t),null!=n&&(a.settings=n),this.request("POST",r,s,a,{},null,i)}generateCertificatesParticipation(e,t={},n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/certificates/participation",s={id:e},a={};return null!=t&&(a.query=t),null!=n&&(a.settings=n),this.request("POST",r,s,a,{},null,i)}deleteCertificates(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/certificates",r={id:e},s={};return null!=t&&(s.query=t),this.request("DELETE",i,r,s,{},null,n)}verify_progresses(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/progress/verify",r={id:e},s={};return null!=t&&(s.query=t),this.request("POST",i,r,s,{},null,n)}uploadprogram(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/upload/program";return this.request("POST",n,{id:e},{},{},null,t)}uploadheader(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/upload/header";return this.request("POST",n,{id:e},{},{},null,t)}generateSurveyReport(e,t={},n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/survey-report/:name",s={id:e,name:t},a={};return null!=n&&(a.info=n),this.request("POST",r,s,a,{},null,i)}createManySettings(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/sett
1ings";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyLinks(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/links";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyRoles(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/roles";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyThreads(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEvents/:id/threads";return this.request("POST",i,{id:e},{},{data:t},null,n)}getModelName(){return"SimiEvent"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},"8Qeq":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof i.a?n:null}return!0}},"8zjW":function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiInstitute"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiInstitute",plural:"SimiInstitutes",path:"SimiInstitutes",idName:"id",properties:{type:{name:"type",type:"string"},name:{name:"name",type:"string"},description:{name:"description",type:"string"},address:{name:"address",type:"any"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{}}}}},"90wG":function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SurveyRequest"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SurveyRequest",plural:"SurveyRequests",path:"SurveyRequests",idName:"id",properties:{compilerId:{name:"compilerId",type:"any"},surveyId:{name:"surveyId",type:"any"},status:{name:"status",type:"number",default:0},type:{name:"type",type:"string"},data:{name:"data",type:"any"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{compiler:{name:"compiler",type:"SurveyCompiler",model:"SurveyCompiler",relationType:"belongsTo",keyFrom:"compilerId",keyTo:"id"},survey:{name:"survey",type:"Survey",model:"Survey",relationType:"belongsTo",keyFrom:"surveyId",keyTo:"id"}}}}}},"964D":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n("cf52")},"9ppp":function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})()},"9vru":function(e,t,n){"use strict";n.d(t,"a",function(){return w}),n.d(t,"b",function(){return S}),n.d(t,"c",function(){return O}),n.d(t,"d",function(){return E}),n.d(t,"e",function(){return P});var i=n("fXoL"),r=n("R0Ic"),s=n("HDdC"),o=n("XNiG"),a=n("w1tV"),c=n("ofXK"),l=n("jhN1");const u=function(e,t){return[e,t]};function d(e,t){if(1&e){const e=i.ac();i.Zb(0,"div",2),i.jc("click",function(){i.Hc(e);const n=t.$implicit;return i.nc().click(n)})("clickEvent",function(t){return i.Hc(e),i.nc().childClick(t)})("removeToastEvent",function(t){return i.Hc(e),i.nc().removeToast(t)}),i.Yb()}if(2&e){const e=t.$implicit,n=i.nc();i.tc("toast",e)("toasterconfig",n.toasterconfig)("@toastState",n.toasterconfig.animation)("titleClass",n.toasterconfig.titleClass)("messageClass",n.toasterconfig.messageClass)("ngClass",i.zc(6,u,n.toasterconfig.iconClasses[e.type],n.toasterconfig.typeClasses[e.type]))}}const h=function(e){return[e]},p=["componentBody"],f=["toastComp",""];function g(e,t){1&e&&i.Ub(0,"div",null,7)}function m(e,t){if(1&e&&(i.Ub(0,"div",8),i.oc(1,"trustHtml")),2&e){const e=i.nc();i.tc("innerHTML",i.pc(1,1,e.toast.body),i.Ic)}}function b(e,t){if(1&e&&(i.Zb(0,"div"),i.Qc(1),i.Yb()),2&e){const e=i.nc();i.Gb(1),i.Rc(e.toast.body)}}function y(e,t){if(1&e){const e=i.ac();i.Zb(0,"button",9),i.jc("click",function(t){i.Hc(e);const n=i.nc();return n.click(t,n.toast)}),i.oc(1,"trustHtml"),i.Yb()}if(2&e){const e=i.nc();i.tc("innerHTML",i.pc(1,1,e.toast.closeHtml),i.Ic)}}function v(e,t){if(1&e&&(i.Zb(0,"div"),i.Ub(1,"div",10),i.Yb()),2&e){const e=i.nc();i.Gb(1),i.Mc("width",e.progressBarWidth+"%")}}const _=[Object(r.k)("toastState",[Object(r.h)("flyRight, flyLeft, slideDown, slideDown, slideUp, slideUp, fade",Object(r.i)({opacity:1,transform:"translate(0,0)"})),Object(r.j)("void => flyRight",[Object(r.i)({opacity:0,transform:"translateX(100%)",height:0}),Object(r.e)("0.15s ease-in",Object(r.i)({opacity:1,height:"*"})),Object(r.e)("0.25s 15ms ease-in")]),Object(r.j)("flyRight => void",[Object(r.e)("0.25s ease-out",Object(r.i)({opacity:0,transform:"translateX(100%)"})),Object(r.e)("0.15s ease-out",Object(r.i)({height:0}))]),Object(r.j)("void => flyLeft",[Object(r.i)({opacity:0,transform:"translateX(-100%)",height:0}),Object(r.e)("0.15s ease-in",Object(r.i)({opacity:1,height:"*"})),Object(r.e)("0.25s 15ms ease-in")]),Object(r.j)("flyLeft => void",[Object(r.e)("0.25s 10ms ease-out",Object(r.i)({opacity:0,transform:"translateX(-100%)"})),Object(r.e)("0.15s ease-out",Object(r.i)({height:0}))]),Object(r.j)("void => slideDown",[Object(r.i)({opacity:0,transform:"translateY(-500%)",height:0}),Object(r.f)([Object(r.e)("0.2s ease-in",Object(r.i)({height:"*"})),Object(r.e)("0.4s ease-in",Object(r.i)({transform:"translate(0,0)"})),Object(r.e)("0.3s 0.1s ease-in",Object(r.i)({opacity:1}))])]),Object(r.j)("slideDown => void",Object(r.f)([Object(r.e)("0.3s ease-out",Object(r.i)({opacity:0}
1)),Object(r.e)("0.4s ease-out",Object(r.i)({transform:"translateY(-500%)"})),Object(r.e)("0.2s 0.2s ease-out",Object(r.i)({height:0}))])),Object(r.j)("void => slideUp",[Object(r.i)({opacity:0,transform:"translateY(1000%)",height:0}),Object(r.f)([Object(r.e)("0.2s ease-in",Object(r.i)({height:"*"})),Object(r.e)("0.5s ease-in",Object(r.i)({transform:"translate(0,0)"})),Object(r.e)("0.3s 0.1s ease-in",Object(r.i)({opacity:1}))])]),Object(r.j)("slideUp => void",Object(r.f)([Object(r.e)("0.3s ease-out",Object(r.i)({opacity:0})),Object(r.e)("0.5s ease-out",Object(r.i)({transform:"translateY(1000%)"})),Object(r.e)("0.3s 0.15s ease-out",Object(r.i)({height:0}))])),Object(r.j)("void => fade",[Object(r.i)({opacity:0,height:0}),Object(r.e)("0.20s ease-in",Object(r.i)({height:"*"})),Object(r.e)("0.15s ease-in",Object(r.i)({opacity:1}))]),Object(r.j)("fade => void",[Object(r.f)([Object(r.e)("0.0s ease-out",Object(r.i)({"background-position":"-99999px"})),Object(r.e)("0.15s ease-out",Object(r.i)({opacity:0,"background-image":""})),Object(r.e)("0.3s 20ms ease-out",Object(r.i)({height:0}))])])])];var w=function(e){return e[e.Default=0]="Default",e[e.TrustedHtml=1]="TrustedHtml",e[e.Component=2]="Component",e}({});const k={error:"toast-error",info:"toast-info",wait:"toast-wait",success:"toast-success",warning:"toast-warning"},C={error:"icon-error",info:"icon-info",wait:"icon-wait",success:"icon-success",warning:"icon-warning"};let S=(()=>{class e{constructor(e){this.limit=(e=e||{}).limit||null,this.tapToDismiss=null==e.tapToDismiss||e.tapToDismiss,this.showCloseButton=null!=e.showCloseButton&&e.showCloseButton,this.closeHtml=e.closeHtml||"<span>×</span>",this.newestOnTop=null==e.newestOnTop||e.newestOnTop,this.timeout=null!=e.timeout?e.timeout:5e3,this.typeClasses=e.typeClasses||k,this.iconClasses=e.iconClasses||C,this.bodyOutputType=e.bodyOutputType||w.Default,this.bodyTemplate=e.bodyTemplate||"toasterBodyTmpl.html",this.defaultToastType=e.defaultToastType||"info",this.positionClass=e.positionClass||"toast-top-right",this.titleClass=e.titleClass||"toast-title",this.messageClass=e.messageClass||"toast-message",this.animation=e.animation||"",this.preventDuplicates=null!=e.preventDuplicates&&e.preventDuplicates,this.mouseoverTimerStop=null!=e.mouseoverTimerStop&&e.mouseoverTimerStop,this.toastContainerId=null!=e.toastContainerId?e.toastContainerId:null}}return e.\u0275fac=function(t){return new(t||e)(i.gc(void 0))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();class T{static newGuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}}let P=(()=>{class e{constructor(){this.addToast=new s.a(e=>this._addToast=e).pipe(Object(a.a)()),this.clearToasts=new s.a(e=>this._clearToasts=e).pipe(Object(a.a)()),this._removeToastSubject=new o.a,this.removeToast=this._removeToastSubject.pipe(Object(a.a)())}pop(e,t,n){const i="string"==typeof e?{type:e,title:t,body:n}:e;if(i.toastId||(i.toastId=T.newGuid()),!this._addToast)throw new Error("No Toaster Containers have been initialized to receive toasts.");return this._addToast.next(i),i}popAsync(e,t,n){return setTimeout(()=>{this.pop(e,t,n)},0),this.addToast}clear(e,t){this._clearToasts.next({toastId:e,toastContainerId:t})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Pb)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),O=(()=>{class e{constructor(e){this.toasts=[],this.toasterService=e}ngOnInit(){this.registerSubscribers(),this.isNullOrUndefined(this.toasterconfig)&&(this.toasterconfig=new S)}click(e,t){e.onClickCallback&&e.onClickCallback(e),((this.isNullOrUndefined(e.tapToDismiss)?this.toasterconfig.tapToDismiss:e.tapToDismiss)||e.showCloseButton&&t)&&this.removeToast(e)}childClick(e){this.click(e.value.toast,e.value.isCloseButton)}removeToast(e){const t=this.toasts.indexOf(e);if(t<0)return;const n=this.toastIdOrDefault(e);this.toasts.splice(t,1),e.onHideCallback&&e.onHideCallback(e),this.toasterService._removeToastSubject.next({toastId:n,toastContainerId:e.toastContainerId})}registerSubscribers(){this.addToastSubscriber=this.toasterService.addToast.subscribe(e=>{this.addToast(e)}),this.clearToastsSubscriber=this.toasterService.clearToasts.subscribe(e=>{this.clearToasts(e)})}addToast(e){if(!e.toastContainerId||!this.toasterconfig.toastContainerId||e.toastContainerId===this.toasterconfig.toastContainerId){if(e.type&&this.toasterconfig.typeClasses[e.type]&&this.toasterconfig.iconClasses[e.type]||(e.type=this.toasterconfig.defaultToastType),this.toasterconfig.preventDuplicates&&this.toasts.length>0){if(e.toastId&&this.toasts.some(t=>t.toastId===e.toastId))return;if(this.toasts.some(t=>t.body===e.body))return}this.isNullOrUndefined(e.showCloseButton)&&("object"==typeof this.toasterconfig.showCloseButton?e.showCloseButton=this.toasterconfig.showCloseButton[e.type]:"boolean"==typeof this.toasterconfig.showCloseButton&&(e.showCloseButton=this.toasterconfig.showCloseButton)),e.showCloseButton&&(e.closeHtml=e.closeHtml||this.toasterconfig.closeHtml),e.bodyOutputType=e.bodyOutputType||this.toasterconfig.bodyOutputType,this.toasterconfig.newestOnTop?(this.toasts.unshift(e),this.isLimitExceeded()&&this.toasts.pop()):(this.toasts.push(e),this.isLimitExceeded()&&this.toasts.shift()),e.onShowCallback&&e.onShowCallback(e)}}isLimitExceeded(){return this.toasterconfig.limit&&this.toasts.length>this.toasterconfig.limit}removeAllToasts(){for(let e=this.toasts.length-1;e>=0;e--)this.removeToast(this.toasts[e])}clearToasts(e){const t=e.toastId,n=e.toastContainerId;(this.isNullOrUndefined(n)||n===this.toasterconfig.toastContainerId)&&this.clearToastsAction(t)}clearToastsAction(e){e?this.removeToast(this.toasts.filter(t=>t.toastId===e)[0]):this.removeAllToasts()}toastIdOrDefault(e){return e.toastId||""}isNullOrUndefined(e){return null==e}ngOnDestroy(){this.addToastSubscriber&&this.addToastSubscriber.unsubscribe(),this.clearToastsSubscriber&&this.clearToastsSubscriber.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(P))},e.\u0275cmp=i.Nb({type:e,selectors:[["toaster-container"]],inputs:{toasterconfig:"toasterconfig"},decls:2,vars:4,consts:[[1,"toast-container",3,"ngClass"],["toastComp","","class","toast",3,"toast","toasterconfig","titleClass","messageClass","ngClass","click","clickEvent","removeToastEvent",4,"ngFor","ngForOf"],["toastComp","",1,"toast",3,"toast","toasterconfig","titleClass","messageClass","ngClass","click","clickEvent","removeToastEvent"]],template:function(e,t){1&e&&(i.Zb(0,"div",0),i.Oc(1,d,1,9,"div",1),i.Yb()),2&e&&(i.tc("ngClass",i.yc(2,h,t.toasterconfig.positionClass)),i.Gb(1),i.tc("ngForOf",t.toasts))},directives:function(){return[c.l,c.m,x]},encapsulation:2,data:{animation:_}}),e})(),x=(()=>
1{class e{constructor(e,t,n,r,s){this.componentFactoryResolver=e,this.changeDetectorRef=t,this.ngZone=n,this.element=r,this.renderer2=s,this.progressBarWidth=-1,this.bodyOutputType=w,this.clickEvent=new i.o,this.removeToastEvent=new i.o,this.timeoutId=null,this.timeout=0,this.progressBarIntervalId=null}ngOnInit(){this.toast.progressBar&&(this.toast.progressBarDirection=this.toast.progressBarDirection||"decreasing");let e="number"==typeof this.toast.timeout?this.toast.timeout:this.toasterconfig.timeout;"object"==typeof e&&(e=e[this.toast.type]),this.timeout=e}ngAfterViewInit(){if(this.toast.bodyOutputType===this.bodyOutputType.Component){const e=this.componentFactoryResolver.resolveComponentFactory(this.toast.body);this.componentBody.createComponent(e,void 0,this.componentBody.injector).instance.toast=this.toast,this.changeDetectorRef.detectChanges()}this.toasterconfig.mouseoverTimerStop&&(this.removeMouseOverListener=this.renderer2.listen(this.element.nativeElement,"mouseenter",()=>this.stopTimer())),this.configureTimer()}click(e,t){e.stopPropagation(),this.clickEvent.emit({value:{toast:t,isCloseButton:!0}})}stopTimer(){this.progressBarWidth=0,this.clearTimers()}restartTimer(){this.toasterconfig.mouseoverTimerStop?this.timeoutId||this.configureTimer():this.timeout&&!this.timeoutId&&this.removeToast()}ngOnDestroy(){this.removeMouseOverListener&&this.removeMouseOverListener(),this.clearTimers()}configureTimer(){!this.timeout||this.timeout<1||(this.toast.progressBar&&(this.removeToastTick=(new Date).getTime()+this.timeout,this.progressBarWidth=-1),this.ngZone.runOutsideAngular(()=>{this.timeoutId=window.setTimeout(()=>{this.ngZone.run(()=>{this.changeDetectorRef.markForCheck(),this.removeToast()})},this.timeout),this.toast.progressBar&&(this.progressBarIntervalId=window.setInterval(()=>{this.ngZone.run(()=>{this.updateProgressBar()})},10))}))}updateProgressBar(){0!==this.progressBarWidth&&100!==this.progressBarWidth&&(this.progressBarWidth=(this.removeToastTick-(new Date).getTime())/this.timeout*100,"increasing"===this.toast.progressBarDirection&&(this.progressBarWidth=100-this.progressBarWidth),this.progressBarWidth<0&&(this.progressBarWidth=0),this.progressBarWidth>100&&(this.progressBarWidth=100))}clearTimers(){this.timeoutId&&window.clearTimeout(this.timeoutId),this.progressBarIntervalId&&window.clearInterval(this.progressBarIntervalId),this.timeoutId=null,this.progressBarIntervalId=null}removeToast(){this.removeToastEvent.emit(this.toast)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.j),i.Tb(i.h),i.Tb(i.C),i.Tb(i.l),i.Tb(i.H))},e.\u0275cmp=i.Nb({type:e,selectors:[["","toastComp",""]],viewQuery:function(e,t){if(1&e&&i.Vc(p,1,i.U),2&e){let e;i.Ec(e=i.kc())&&(t.componentBody=e.first)}},hostBindings:function(e,t){1&e&&i.jc("mouseleave",function(){return t.restartTimer()})},inputs:{toasterconfig:"toasterconfig",toast:"toast",titleClass:"titleClass",messageClass:"messageClass"},outputs:{clickEvent:"clickEvent",removeToastEvent:"removeToastEvent"},attrs:f,decls:9,vars:9,consts:[[1,"toast-content"],[3,"ngClass"],[3,"ngClass","ngSwitch"],[4,"ngSwitchCase"],[3,"innerHTML",4,"ngSwitchCase"],["class","toast-close-button",3,"innerHTML","click",4,"ngIf"],[4,"ngIf"],["componentBody",""],[3,"innerHTML"],[1,"toast-close-button",3,"innerHTML","click"],[1,"toast-progress-bar"]],template:function(e,t){1&e&&(i.Zb(0,"div",0),i.Zb(1,"div",1),i.Qc(2),i.Yb(),i.Zb(3,"div",2),i.Oc(4,g,2,0,"div",3),i.Oc(5,m,2,3,"div",4),i.Oc(6,b,2,1,"div",3),i.Yb(),i.Yb(),i.Oc(7,y,2,3,"button",5),i.Oc(8,v,2,2,"div",6)),2&e&&(i.Gb(1),i.tc("ngClass",t.titleClass),i.Gb(1),i.Rc(t.toast.title),i.Gb(1),i.tc("ngClass",t.messageClass)("ngSwitch",t.toast.bodyOutputType),i.Gb(1),i.tc("ngSwitchCase",t.bodyOutputType.Component),i.Gb(1),i.tc("ngSwitchCase",t.bodyOutputType.TrustedHtml),i.Gb(1),i.tc("ngSwitchCase",t.bodyOutputType.Default),i.Gb(1),i.tc("ngIf",t.toast.showCloseButton),i.Gb(1),i.tc("ngIf",t.toast.progressBar))},directives:function(){return[c.l,c.p,c.q,c.n]},pipes:function(){return[A]},encapsulation:2}),e})(),A=(()=>{class e{constructor(e){this.sanitizer=e}transform(e){return this.sanitizer.bypassSecurityTrustHtml(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(l.b))},e.\u0275pipe=i.Sb({name:"trustHtml",type:e,pure:!0}),e})(),E=(()=>{class e{static forRoot(){return{ngModule:e,providers:[P,O]}}static forChild(){return{ngModule:e,providers:[O]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[c.c]]}),e})()},"9w3a":function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SurveyWriterMapping"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SurveyWriterMapping",plural:"SurveyWriterMappings",path:"SurveyWriterMappings",idName:"id",properties:{surveyId:{name:"surveyId",type:"any"},writerId:{name:"writerId",type:"any"},permissions:{name:"permissions",type:"Array<any>",default:[]},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{survey:{name:"survey",type:"Survey",model:"Survey",relationType:"belongsTo",keyFrom:"surveyId",keyTo:"id"},writer:{name:"writer",type:"SurveyWriter",model:"SurveyWriter",relationType:"belongsTo",keyFrom:"writerId",keyTo:"id"}}}}}},"9xGf":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getEvent(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventRoles/:id/event",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventRoles/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventRoles/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}getModelName(){return"SimiEventRole"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},AZa5:function(e,t,n){const i=n("u/Db");function r(e){this.mode=i.BYTE,this.data="string"==typeof e?(new TextEncoder).encode(e):new Uint8Array(e)}r.getBitsLength=function(e){return 8*e},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=r},AytR:function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i={production:!0}
1},AzWD:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"CongressSubscription"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"CongressSubscription",plural:"CongressSubscriptions",path:"CongressSubscriptions",idName:"id",properties:{eventId:{name:"eventId",type:"any"},userId:{name:"userId",type:"any"},status:{name:"status",type:"string",default:"pending"},request_doc:{name:"request_doc",type:"any"},request_notes:{name:"request_notes",type:"string"},details:{name:"details",type:"any"},submitted_date:{name:"submitted_date",type:"Date"},accepted_date:{name:"accepted_date",type:"Date"},ecm:{name:"ecm",type:"any"},attended:{name:"attended",type:"number"},result:{name:"result",type:"string",default:"null"},data_acquisizione:{name:"data_acquisizione",type:"Date"},certificate:{name:"certificate",type:"any"},participation:{name:"participation",type:"any"},surveys:{name:"surveys",type:"any"},materials:{name:"materials",type:"Array<any>"},reset_attempt:{name:"reset_attempt",type:"number"},role:{name:"role",type:"number"},attendances:{name:"attendances",type:"Array<any>"},logbook_result:{name:"logbook_result",type:"string"},logbook_certificate:{name:"logbook_certificate",type:"any"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{event:{name:"event",type:"Congress",model:"Congress",relationType:"belongsTo",keyFrom:"eventId",keyTo:"id"},payments:{name:"payments",type:"SimiEventPayment[]",model:"SimiEventPayment",relationType:"hasMany",keyFrom:"id",keyTo:"subscriptionId"},recordings:{name:"recordings",type:"CongressRecording[]",model:"CongressRecording",relationType:"hasMany",keyFrom:"id",keyTo:"subscriptionId"},surveySubmissions:{name:"surveySubmissions",type:"CongressSurveySubmission[]",model:"CongressSurveySubmission",relationType:"hasMany",keyFrom:"id",keyTo:"subscriptionId"},examSubmissions:{name:"examSubmissions",type:"CongressExamSubmission[]",model:"CongressExamSubmission",relationType:"hasMany",keyFrom:"id",keyTo:"subscriptionId"},user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},BCVQ:function(e,t){let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const i="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+")(?:.|[\r\n]))+";t.KANJI=new RegExp(n,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(i,"g"),t.NUMERIC=new RegExp("[0-9]+","g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const r=new RegExp("^"+n+"$"),s=new RegExp("^[0-9]+$"),o=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return r.test(e)},t.testNumeric=function(e){return s.test(e)},t.testAlphanumeric=function(e){return o.test(e)}},BFxc:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("7o/Q"),r=n("4I5i"),s=n("EY2u");function o(e){return function(t){return 0===e?Object(s.b)():t.lift(new a(e))}}class a{constructor(e){if(this.total=e,this.total<0)throw new r.a}call(e,t){return t.subscribe(new c(e,this.total))}}class c extends i.a{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,i=this.count++;t.length<n?t.push(e):t[i%n]=e}_complete(){const e=this.destination;let t=this.count;if(t>0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let r=0;r<n;r++){const r=t++%n;e.next(i[r])}}e.complete()}}},BilO:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");i.Observable.of=i.of},BoUZ:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("tyNb"),r=n("pLZG"),s=n("fXoL"),o=n("ofXK");let a=(()=>{class e{constructor(e,t){this.location=e,this.router=t,this.enabled=!1}trackPageViews(){this.enabled&&this.router.events.pipe(Object(r.a)(e=>e instanceof i.b)).subscribe(()=>{ga("send",{hitType:"pageview",page:this.location.path()})})}trackEvent(e){this.enabled&&ga("send","event",e)}}return e.\u0275fac=function(t){return new(t||e)(s.gc(o.j),s.gc(i.c))},e.\u0275prov=s.Pb({token:e,factory:e.\u0275fac}),e})()},BwjC:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}
1findByIdPayments(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiYears/:id/payments/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdPayments(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiYears/:id/payments/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdPayments(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiYears/:id/payments/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}getPayments(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiYears/:id/payments",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createPayments(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiYears/:id/payments";return this.request("POST",i,{id:e},{},{data:t},null,n)}deletePayments(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiYears/:id/payments";return this.request("DELETE",n,{id:e},{},{},null,t)}countPayments(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiYears/:id/payments/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiYears/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}getBase(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiYears/base",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}current(e){let t=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiYears/current";return this.request("GET",t,{},{},{},null,e)}start(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiYears/:id/start";return this.request("POST",n,{id:e},{},{},null,t)}addBaseFee(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiYears/:id/baseFee",r={id:e},s={};return null!=t&&(s.query=t),this.request("POST",i,r,s,{},null,n)}addAdditionalFee(e,t={},n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiYears/:id/additionalFee",s={id:e},a={};return null!=t&&(a.query=t),null!=n&&(a.fee=n),this.request("POST",r,s,a,{},null,i)}generalData(e){let t=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiYears/generalData";return this.request("GET",t,{},{},{},null,e)}printPaymentsReceipt(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiYears/:id/printReceipts",r={id:e},s={};return null!=t&&(s.query=t),this.request("GET",i,r,s,{},null,n)}registerPayments(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiYears/:id/registerPayments",r={id:e},s={};return null!=t&&(s.query=t),this.request("POST",i,r,s,{},null,n)}resetRegisteredPayments(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiYears/:id/registerPayments/reset",r={id:e},s={};return null!=t&&(s.from_receipt_id=t),this.request("POST",i,r,s,{},null,n)}computeQuotes(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiYears/:id/computeQuotes";return this.request("GET",n,{id:e},{},{},null,t)}stats(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiYears/stats",i={};return null!=e&&(i.query=e),this.request("GET",n,{},i,{},null,t)}createManyPayments(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiYears/:id/payments";return this.request("POST",i,{id:e},{},{data:t},null,n)}getModelName(){return"SimiYear"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},CN4m:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getEvent(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventPayments/:id/event",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventPayments/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventPayments/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}getModelName(){return"SimiEventPayment"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},Cfvw:function(e,t,n){"use strict";n.d(t,"a",function(){return o}
1);var i=n("HDdC"),r=n("SeVD"),s=n("7HRe");function o(e,t){return t?Object(s.a)(e,t):e instanceof i.a?e:new i.a(Object(r.a)(e))}},CkpO:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getInstitute(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiCenters/:id/institute",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}findByIdMappings(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiCenters/:id/mappings/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdMappings(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiCenters/:id/mappings/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdMappings(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiCenters/:id/mappings/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}getOwner(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiCenters/:id/owner",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getMappings(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiCenters/:id/mappings",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createMappings(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiCenters/:id/mappings";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteMappings(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiCenters/:id/mappings";return this.request("DELETE",n,{id:e},{},{},null,t)}countMappings(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiCenters/:id/mappings/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiCenters/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}createManyMappings(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiCenters/:id/mappings";return this.request("POST",i,{id:e},{},{data:t},null,n)}getModelName(){return"SimiCenter"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},CxY0:function(e,t,n){"use strict";var i=n("rWzI"),r=n("Nehr");function s(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=v,t.resolve=function(e,t){return v(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?v(e,!1,!0).resolveObject(t):t},t.format=function(e){return r.isString(e)&&(e=v(e)),e instanceof s?e.format():s.prototype.format.call(e)},t.Url=s;var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),d=["%","/","?",";","#"].concat(u),h=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n("r8II");function v(e,t,n){if(e&&r.isObject(e)&&e instanceof s)return e;var i=new s;return i.parse(e,t,n),i}s.prototype.parse=function(e,t,n){if(!r.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var s=e.indexOf("?"),a=-1!==s&&s<e.indexOf("#")?"?":"#",l=e.split(a);l[0]=l[0].replace(/\\/g,"/");var v=e=l.join(a);if(v=v.trim(),!n&&1===e.split("#").length){var _=c.exec(v);if(_)return this.path=v,this.href=v,this.pathname=_[1],_[2]?(this.search=_[2],this.query=t?y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=o.exec(v);if(w){var k=(w=w[0]).toLowerCase();this.protocol=k,v=v.substr(w.length)}if(n||w||v.match(/^\/\/[^@\/]+@[^@\/]+/)){var C="//"===v.substr(0,2);!C||w&&m[w]||(v=v.substr(2),this.slashes=!0)}if(!m[w]&&(C||w&&!b[w])){for(var S,T,P=-1,O=0;O<h.length;O++)-1!==(x=v.indexOf(h[O]))&&(-1===P||x<P)&&(P=x);for(-1!==(T=-1===P?v.lastIndexOf("@"):v.lastIndexOf("@",P))&&(S=v.slice(0,T),v=v.slice(T+1),this.auth=decodeURIComponent(S)),P=-1,O=0;O<d.length;O++){var x;-1!==(x=v.indexOf(d[O]))&&(-1===P||x<P)&&(P=x)}-1===P&&(P=v.length),this.host=v.slice(0,P),v=v.slice(P),this.parseHost(),this.hostname=this.hostname||"";var A="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!A)for(var E=this.hostname.split(/\./),M=(O=0,E.length);O<M;O++){var I=E[O];if(I&&!I.match(p)){for(var R="",L=0,D=I.length;L<D;
1L++)I.charCodeAt(L)>127?R+="x":R+=I[L];if(!R.match(p)){var j=E.slice(0,O),N=E.slice(O+1),V=I.match(f);V&&(j.push(V[1]),N.unshift(V[2])),N.length&&(v="/"+N.join(".")+v),this.hostname=j.join(".");break}}}this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),A||(this.hostname=i.toASCII(this.hostname)),this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==v[0]&&(v="/"+v))}if(!g[k])for(O=0,M=u.length;O<M;O++){var z=u[O];if(-1!==v.indexOf(z)){var F=encodeURIComponent(z);F===z&&(F=escape(z)),v=v.split(z).join(F)}}var B=v.indexOf("#");-1!==B&&(this.hash=v.substr(B),v=v.slice(0,B));var q=v.indexOf("?");return-1!==q?(this.search=v.substr(q),this.query=v.substr(q+1),t&&(this.query=y.parse(this.query)),v=v.slice(0,q)):t&&(this.search="",this.query={}),v&&(this.pathname=v),b[k]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(this.path=(this.pathname||"")+(this.search||"")),this.href=this.format(),this},s.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",i=this.hash||"",s=!1,o="";this.host?s=e+this.host:this.hostname&&(s=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(s+=":"+this.port)),this.query&&r.isObject(this.query)&&Object.keys(this.query).length&&(o=y.stringify(this.query));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||b[t])&&!1!==s?(s="//"+(s||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):s||(s=""),i&&"#"!==i.charAt(0)&&(i="#"+i),a&&"?"!==a.charAt(0)&&(a="?"+a),t+s+(n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(a=a.replace("#","%23"))+i},s.prototype.resolve=function(e){return this.resolveObject(v(e,!1,!0)).format()},s.prototype.resolveObject=function(e){if(r.isString(e)){var t=new s;t.parse(e,!1,!0),e=t}for(var n=new s,i=Object.keys(this),o=0;o<i.length;o++){var a=i[o];n[a]=this[a]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),l=0;l<c.length;l++){var u=c[l];"protocol"!==u&&(n[u]=e[u])}return b[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!b[e.protocol]){for(var d=Object.keys(e),h=0;h<d.length;h++){var p=d[h];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||m[e.protocol])n.pathname=e.pathname;else{for(var f=(e.pathname||"").split("/");f.length&&!(e.host=f.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==f[0]&&f.unshift(""),f.length<2&&f.unshift(""),n.pathname=f.join("/")}return n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,(n.pathname||n.search)&&(n.path=(n.pathname||"")+(n.search||"")),n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var g=n.pathname&&"/"===n.pathname.charAt(0),y=e.host||e.pathname&&"/"===e.pathname.charAt(0),v=y||g||n.host&&e.pathname,_=v,w=n.pathname&&n.pathname.split("/")||[],k=(f=e.pathname&&e.pathname.split("/")||[],n.protocol&&!b[n.protocol]);if(k&&(n.hostname="",n.port=null,n.host&&(""===w[0]?w[0]=n.host:w.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===f[0]?f[0]=e.host:f.unshift(e.host)),e.host=null),v=v&&(""===f[0]||""===w[0])),y)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,w=f;else if(f.length)w||(w=[]),w.pop(),w=w.concat(f),n.search=e.search,n.query=e.query;else if(!r.isNullOrUndefined(e.search))return k&&(n.hostname=n.host=w.shift(),(O=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=O.shift(),n.host=n.hostname=O.shift())),n.search=e.search,n.query=e.query,r.isNull(n.pathname)&&r.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!w.length)return n.pathname=null,n.path=n.search?"/"+n.search:null,n.href=n.format(),n;for(var C=w.slice(-1)[0],S=(n.host||e.host||w.length>1)&&("."===C||".."===C)||""===C,T=0,P=w.length;P>=0;P--)"."===(C=w[P])?w.splice(P,1):".."===C?(w.splice(P,1),T++):T&&(w.splice(P,1),T--);if(!v&&!_)for(;T--;T)w.unshift("..");!v||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),S&&"/"!==w.join("/").substr(-1)&&w.push("");var O,x=""===w[0]||w[0]&&"/"===w[0].charAt(0);return k&&(n.hostname=n.host=x?"":w.length?w.shift():"",(O=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=O.shift(),n.host=n.hostname=O.shift())),(v=v||n.host&&w.length)&&!x&&w.unshift(""),w.length?n.pathname=w.join("/"):(n.pathname=null,n.path=null),r.isNull(n.pathname)&&r.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},s.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},"D/fu":function(e,t,n){"use strict";n.d(t,"q",function(){return Be}),n.d(t,"x",function(){return Ne.a}),n.d(t,"o",function(){return Ve.a}),n.d(t,"A",function(){return ze.B}),n.d(t,"r",function(){return ze.q}),n.d(t,"u",function(){return ze.u}),n.d(t,"z",function(){return ze.A}),n.d(t,"v",function(){return ze.w}),n.d(t,"w",function(){return ze.x}),n.d(t,"t",function(){return ze.s}),n.d(t,"s",function(){return ze.r}),n.d(t,"b",function(){return ze.b}),n.d(t,"e",function(){return ze.g}),n.d(t,"a",function(){return ze.a}),n.d(t,"i",function(){return ze.k}),n.d(t,"g",function(){return ze.i}),n.d(t,"h",function(){return ze.j}),n.d(t,"d",function(){return ze.f}),n.d(t,"c",function(){return ze.c}),n.d(t,"j",function(){return ze.l}),n.d(t,"f",function(){return ze.h}),n.d(t,"k",function(){return ze.m}),n.d(t,"l",function(){return ze.n}),n.d(t,"m",function(){return ze.o}),n.d(t,"y",function(){return ze.z}),n.d(t,"p",function(){return Fe.a}),n.d(t,"n",function(){return a.a});var i=n("wET7"),r=n("XdDp"),s=n("80r4"),o=n("Zvzv"),a=n("pGcS"),c=n("tk/3"),l=n("ofXK"),u=n("fXoL");let d=(()=>{class e{constructor(){this.cookies={}}get(e){if(!this.cookies[e]){let t=window.document.cookie.split("; ").filter(t=>t.split("=")[0]===e).pop();if(!t)return null;this.cookies[e]=this.parse(t.split("=").slice(1).join("="))}return this.cookies[e]}set(e,t,n){this.cookies[e]=t;let i=`${e}=${encodeURI(t)}; path=/${n?`; expires=${n.toUTCString()}`:""}`;window.document.cookie=i}remove(e){document.cookie=e+"=; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT;",delete this.cookies[e]}parse(e){try{return JSON.parse(decodeURI(e))}catch(t){return e}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=u.Pb({token:e,factory:e.\u0275fac}),e})(),h=(()=>{class e{get(e){let t=localStorage.getItem(e);return this.parse(t)}set(e,t,n){localStorage.setItem(e,"object"==typeof t?JSON.stringify(t):t)}remove(e){localStorage[e]?localStorage.removeItem(e):console.log("Trying to remove unexisting key: ",e)}parse(e){try{return JSON.parse(e)}catch(t){return e}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=u.Pb({token:e,factory:e.\u0275fac}),e})();var p=n("HiID"),f=n("aQkB"),g=n("ZAa1"),m=n("S9ev"),b=n("mwqi"),y=n("CkpO"),v=n("297U"),_=n("Tay8"),w=n("YJJE"),k=n("x2L9"),C=n("Yqxh"),S=n("/EUI"),T=n("IIog"),P=n("gwhv"),O=n("gR38"),x=n("q6L4"),A=n("E+C+"),E=n("KPoR"),M=n("5E0y"),I=n("rpR/"),R=n("qy9N"),L=n("4Uw3"),D=n("73JB"),j=n("jjGg"),N=n("aJv/"),V=n("QUy1"),z=n("h2bF"),F=n("BwjC"),B=n("ZkRv"),q=n("4FZV"),U=n("Gtye"),H=n("tiT6"),W=n("0Jqp"),G=n("02tb"),Y=n("Ko1m"),$=n("Tswa"),Z=n("dmrq"),Q=n("XULj"),X=n("WOIe"),K=n("iNuQ"),J=n("aE8l"),ee=n("tcjf"),te=n("8MBb"),ne=n("wtl+"),ie=n("CN4m"),re=n("Z2ef"),se=n("NYyb"),oe=n("9xGf"),ae=n("NAvl"),ce=n("+5j6"),le=n("Npty"),ue=n("4/HM"),de=n("/Gct"),he=n("fD28"),pe=n("6xty"),fe=n("p3SZ"),ge=n("SMod"),me=n("NQ+2"),be=n("1Qjk"),ye=n("rpDa"),ve=n("yvWd"),_e=n("ESDr"),we=n("7MCs"),ke=n("V5ut"),Ce=n("VhLf"),Se=n("QagM"),Te=n("Ojyw"),Pe=n("r9BH"),Oe=n("tVOf"),xe=n("oscR"),Ae=n("zPie"),Ee=n("wm+Y"),Me=n("sujq"),Ie=n("iqoP"),Re=n("K4mn"),Le=n("xRy2"),De=n("oh6q"),je=n("6feL"),Ne=(n("MVeA"),n("IHbA"),n("tEF2"),n("8zjW"),n("XVbR"),n("+zCx"),n("02LL"),n("Ye2+"),n("YwnE"),n("Rhp1"),n("lK6t"),n("vYFQ"),n("yrWc"),n("Fb9H"),n("Ubnm"),n("wwwC"),n("dPoE"),n("ipaP"),n("T2BX"),n("+tEU"),n("pFv7"),n("eNo3"),n("6fYL"),n("1Hcg"),n("SPA5"),n("IvGc"),n("cLov"),n("jHrq"),n("6it1"),n("oaRb"),n("sk6X"),n("RIvq"),n("wdnR"),n("ahnh"),n("PsMQ"),n("aoL+"),n("2FL7"),n("eMMX"),n("9w3a"),n("dN2r"),n("90wG"),n("x6sH"),n("uST9"),n("cV6W"),n("F4l4"),n("PjgR"),n("7XEM"),n("TOXt"),n("YUvt"),n("QV3V"),n("Xuvu"),n("MK3I"),n("zHbR"),n("pwNt"),n("uca9"),n("sSfP"),n("xS+Q"),n("blbF"),n("Pd6T"),n("AzWD"),n("z20w"),n("5m5N"),n("3tV1"),n("Kr+R"),n("NCX1"),n("kEdI"),n("s8/3"),n("eniD"),n("j/Xo"),n("/Fee"),n("DTmZ"),n("rNOo"),n("1Zip"),n("lZs6"),n("tDC8"),n("JmXh"),n("L/9K"),n("budB")),Ve=(n("5V3d"),n("F/Ng")),ze=n("WqWh"),Fe=n("Zfcy");let Be=(()=>{class e{static forRoot(t={provide:a.a,useClass:d}){return{ngModule:e,providers:[r.a,s.a,o.a,p.a,f.a,g.a,m.a,b.a,y.a,v.a,_.a,w.a,k.a,C.a,S.a,T.a,P.a,O.a,x.a,A.a,E.a,M.a,I.a,R.a,L.a,D.a,j.a,N.a,V.a,z.a,F.a,B.a,q.a,U.a,H.a,W.a,G.a,Y.a,$.a,Z.a,Q.a,X.a,K.a,J.a,ee.a,te.a,ne.a,ie.a,re.a,se.a,oe.a,ae.a,ce.a,le.a,ue.a,de.a,he.a,pe.a,fe.a,ge.a,me.a,be.a,ye.a,ve.a,_e.a,we.a,ke.a,Ce.a,Se.a,Te.a,Pe.a,Oe.a,xe.a,Ae.a,Ee.a,Me.a,Ie.a,Re.a,Le.a,De.a,je.a,t,{provide:a.b,useClass:h}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=u.Rb({type:e}),e.\u0275inj=u.Qb({providers:[i.a],imports:[[l.c,c.c]]}),e})()},D0XW:function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return s});var i=n("3N8a");const r=new(n("IjjT").a)(i.a),s=r},DH7j:function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))()},DKVz:function(e,t,n){"use strict";n.d(t,"a",function(){return f}),n.d(t,"b",function(){return g});var i=n("fXoL"),r=n("mrSG"),s=n("LRne"),o=n("EY2u"),a=n("XNiG"),c=n("D0XW"),l=n("HDdC"),u=n("gcYM"),d=n("eIep");class h{constructor(e){this.changes=e}static of(e){return new h(e)}notEmpty(e){if(this.changes[e]){const t=this.changes[e].currentValue;if(null!=t)return Object(s.a)(t)}return o.a}has(e){if(this.changes[e]){const t=this.changes[e].currentValue;return Object(s.a)(t)}return o.a}notFirst(e){if(this.changes[e]&&!this.changes[e].isFirstChange()){const t=this.changes[e].currentValue;return Object(s.a)(t)}return o.a}notFirstAndEmpty(e){if(this.changes[e]&&!this.changes[e].isFirstChange()){const t=this.changes[e].currentValue;if(null!=t)return Object(s.a)(t)}return o.a}}const p=new i.t("NGX_ECHARTS_CONFIG");let f=(()=>{class e{constructor(e,t,n){this.el=t,this.ngZone=n,this.autoResize=!0,this.loadingType="default",this.chartInit=new i.o,this.optionsError=ne
1w i.o,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartPieSelectChanged=this.createLazyEvent("pieselectchanged"),this.chartPieSelected=this.createLazyEvent("pieselected"),this.chartPieUnselected=this.createLazyEvent("pieunselected"),this.chartMapSelectChanged=this.createLazyEvent("mapselectchanged"),this.chartMapSelected=this.createLazyEvent("mapselected"),this.chartMapUnselected=this.createLazyEvent("mapunselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartFocusNodeAdjacency=this.createLazyEvent("focusnodeadjacency"),this.chartUnfocusNodeAdjacency=this.createLazyEvent("unfocusnodeadjacency"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.resize$=new a.a,this.echarts=e.echarts}ngOnChanges(e){const t=h.of(e);t.notFirstAndEmpty("options").subscribe(e=>this.onOptionsChange(e)),t.notFirstAndEmpty("merge").subscribe(e=>this.setOption(e)),t.has("loading").subscribe(e=>this.toggleLoading(!!e)),t.notFirst("theme").subscribe(()=>this.refreshChart())}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(Object(u.a)(100,c.b,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(()=>{this.animationFrameID=window.requestAnimationFrame(()=>this.resize$.next())})),this.resizeOb.observe(this.el.nativeElement))}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(e){this.chart&&(e?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading())}setOption(e,t){if(this.chart)try{this.chart.setOption(e,t)}catch(n){console.error(n),this.optionsError.emit(n)}}refreshChart(){return Object(r.a)(this,void 0,void 0,function*(){this.dispose(),yield this.initChart()})}createChart(){const e=this.el.nativeElement;if(window&&window.getComputedStyle){const t=window.getComputedStyle(e,null).getPropertyValue("height");t&&"0px"!==t||e.style.height&&"0px"!==e.style.height||(e.style.height="400px")}return this.ngZone.runOutsideAngular(()=>("function"==typeof this.echarts?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:t})=>t(e,this.theme,this.initOpts)))}initChart(){return Object(r.a)(this,void 0,void 0,function*(){yield this.onOptionsChange(this.options),this.merge&&this.chart&&this.setOption(this.merge)})}onOptionsChange(e){return Object(r.a)(this,void 0,void 0,function*(){e&&(this.chart||(this.chart=yield this.createChart(),this.chartInit.emit(this.chart)),this.setOption(this.options,!0))})}createLazyEvent(e){return this.chartInit.pipe(Object(d.a)(t=>new l.a(n=>(t.on(e,e=>this.ngZone.run(()=>n.next(e))),()=>{this.chart&&(this.chart.isDisposed()||t.off(e))}))))}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(p),i.Tb(i.l),i.Tb(i.C))},e.\u0275dir=i.Ob({type:e,selectors:[["echarts"],["","echarts",""]],inputs:{autoResize:"autoResize",loadingType:"loadingType",options:"options",theme:"theme",loading:"loading",initOpts:"initOpts",merge:"merge",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartPieSelectChanged:"chartPieSelectChanged",chartPieSelected:"chartPieSelected",chartPieUnselected:"chartPieUnselected",chartMapSelectChanged:"chartMapSelectChanged",chartMapSelected:"chartMapSelected",chartMapUnselected:"chartMapUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartFocusNodeAdjacency:"chartFocusNodeAdjacency",chartUnfocusNodeAdjacency:"chartUnfocusNodeAdjacency",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],features:[i.Eb]}),e})(),g=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[{provide:p,useValue:t}]}}static forChild(){return{ngModule:e}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[]]}),e})()},DTmZ:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"CourseLogbook"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"CourseLogbook",plural:"CourseLogbooks",path:"CourseLogbooks",idName:"id",properties:{eventId:{name:"eventId",type:"any"},status:{name:"status",type:"string",default:"pending"},tutors:{name:"tutors",type:"Array<any>"},locations:{name:"locations",type:"Array<any>"},skills:{name:"skills",type:"Array<any>"},duration:{name:"duration",type:"number"},min_entries:{name:"min_entries",type:"number"},date_start:{name:"date_start",type:"Date"},date_end:{name:"date_end",type:"Date"},min_skills:{name:"min_skills",type:"number"},skills_required:{name:"skills_required",type:"Array<any>"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{event:{name:"event",type:"Course",model:"Course",relationType:"belongsTo",keyFrom:"eventId",keyTo:"id"},subscriptions:{name:"subscriptions",type:"CourseLogbookSubscription[]",model:"CourseLogbookSubscription",relationType:"hasMany",keyFrom:"id",keyTo:"logbookId"},entries:{name:"entries",type:"CourseLogbookEntry[]",model:"CourseLogbookEntry",relationType:"hasMany",keyFrom:"id",keyTo:"logbookId"}}}}}},"E+C+":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("XdDp"),a=n("wET7"),c=n("fXoL");let l=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getModelName(){return"Auth"}}return e.\u0275fac=function(t){return new(t||e)(c.gc(i.b),c.gc(r.a),c.gc(o.a),c.gc(a.a,8))},e.\u0275prov=c.Pb({token:e,factory:e.\u0275fac}),e})()},E9fl:function(e,t,n){"use strict";n.d(t,"a",function(){return d});var i=n("5MUS"),r=(n("964D"),n("yYKy"),n("l7P3")),s=n("UOn2"),o=n("fXoL"),a=n("aceb"),c=n("KWzY");const l=[[["nb-menu"]],[["router-outlet"]]],u=["nb-menu","router-outlet"];let d=(()=>{class e{constructor(e,t,n,i,o,a){this.stateService=e,this.menuService=t,this.themeService=n,this.bpService=i,this.sidebarService=o,this.store=a,this.sidebarEnd=!1,this.expanded=!1,this.wasExpanded=!1,this.layout={},this.sidebar={},a.pipe(Object(r.j)(s.b)).subscribe(e=>{this.currentUser=e}),this.layoutState$=this.stateService.onLayoutState().subscribe(e=>this.layout=e),this.sidebarState$=this.stateService.onSidebarState().subscribe(e=>{this.sidebar=e});const c=this.bpService.getByName("is");this.menuClick$=this.menuService.onItemSelect().withLatestFrom(this.themeService.onMediaQueryChange()).delay(20).subscribe(([e,[t,n]])=>{n.width<=c.width&&this.sidebarService.collapse("menu-sidebar")})}toggleSidebar(){return this.sidebarService.toggle(!0,"menu-sidebar"),!1}ngOnDestroy(){this.layoutState$.unsubscribe(),this.sidebarState$.unsubscribe(),this.menuClick$.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(o.Tb(i.a),o.Tb(a.bb),o.Tb(a.Db),o.Tb(a.Y),o.Tb(a.qb),o.Tb(r.b))},e.\u0275cmp=o.Nb({type:e,selectors:[["ngx-admin-layout"]],ngContentSelectors:u,decls:8,vars:2,consts:[["windowMode","",3,"center"],["fixed",""],["tag","menu-sidebar","responsive","",1,"menu-sidebar",3,"right"],[1,"main-content"]],template:function(e,t){1&e&&(o.sc(l),o.Zb(0,"nb-layout",0),o.Zb(1,"nb-layout-header",1),o.Ub(2,"ngx-header"),o.Yb(),o.Zb(3,"nb-sidebar",2),o.Ub(4,"nb-sidebar-header"),o.rc(5),o.Yb(),o.Zb(6,"nb-layout-column",3),o.rc(7,1),o.Yb(),o.Yb()),2&e&&(o.tc("center","center-column"===t.layout.id),o.Gb(3),o.tc("right","right"===t.sidebar.id))},directives:[a.P,a.T,c.a,a.nb,a.ob,a.O],styles:[".nb-theme-default [_nghost-%COMP%] nb-layout-column.small[_ngcontent-%COMP%]{-webkit-box-flex:0.15!important;-ms-flex:0.15!important;flex:0.15!important}.nb-theme-default [_nghost-%COMP%] nb-sidebar.menu-sidebar[_ngcontent-%COMP%] nb-sidebar-header{padding-bottom:.5rem;text-align:center}.nb-theme-default [_nghost-%COMP%] nb-sidebar.menu-sidebar[_ngcontent-%COMP%] .menu-title{-webkit-box-flex:0;-ms-flex:0 auto;flex:0 auto}.nb-theme-default [_nghost-%COMP%] nb-sidebar.menu-sidebar[_ngcontent-%COMP%] .main-btn[_ngcontent-%COMP%]{padding:.75rem 2.5rem;margin-top:-2rem;font-weight:700;-webkit-transition:padding .3s cubic-bezier(.18,.89,.32,1.48);transition:padding .3s cubic-bezier(.18,.89,.32,1.48)}.nb-theme-default [_nghost-%COMP%] nb-sidebar.menu-sidebar[_ngcontent-%COMP%] .main-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:2rem;text-shadow:0 1px 1px rgba(0,0,0,.2)}.nb-theme-default [_nghost-%COMP%] nb-sidebar.menu-sidebar[_ngcontent-%COMP%] .main-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding-left:.25rem}.nb-theme-default [_nghost-%COMP%] nb-sidebar.menu-sidebar[_ngcontent-%COMP%] .main-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .nb-theme-default [_nghost-%COMP%] nb-sidebar.menu-sidebar[_ngcontent-%COMP%] .main-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{vertical-align:middle}.nb-theme-default [_nghost-%COMP%] nb-sidebar.menu-sidebar.compacted[_ngcontent-%COMP%] nb-sidebar-header{padding-left:0;padding-right:0}.nb-theme-default [_nghost-%COMP%] nb-sidebar.menu-sidebar.compacted[_ngcontent-%COMP%] .main-btn[_ngcontent-%COMP%]{width:46px;height:44px;padding:.375rem;border-radius:5px;-webkit-transition:none;transition:none}.nb-theme-default [_nghost-%COMP%] nb-sidebar.menu-sidebar.compacted[_ngcontent-%COMP%] .main-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:none}@media (max-width:399.98px){.nb-theme-default [_nghost-%COMP%] .main-content[_ngcontent-%COMP%]{padding:.75rem!important}}@media (max-width:767.98px){.nb-theme-default [_nghost-%COMP%] nb-sidebar.menu-sidebar[_ngcontent-%COMP%]{margin-top:0}.nb-theme-default [_nghost-%COMP%] nb-sidebar.menu-sidebar[_ngcontent-%COMP%] .main-container{border-top-right-radius:0}.nb-theme-default [_nghost-%COMP%] nb-sidebar.menu-sidebar[_ngcontent-%COMP%] .main-container .scrollable{padding-top:0}.nb-theme-default [_nghost-%COMP%] .main-btn[_ngcontent-%COMP%]{display:none}}.padding[_ngcontent-%COMP%]{padding:0}"]}),e})()},ELBg:function(e,t,n){"use strict";var i={single_source_shortest_paths:function(e,t,n){var r={},s={};s[t]=0;var o,a,c,l,u,d,h=i.PriorityQueue.make();for(h.push(t,0);!h.empty();)for(c in l=(o=h.pop()).cost,u=e[a=o.value]||{})u.hasOwnProperty(c)&&(d=l+u[c],(void 0===s[c]||s[c]>d)&&(s[c]=d,h.push(c,d),r[c]=a));if(void 0!==n&&void 0===s[n]){var p=["Could not find a path from ",t," to ",n,"."].join("");throw new Error(p)}return r},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],i=t;i;)n.push(i),i=e[i];return n.reverse(),n},find_path:function(e,t,n){var r=i.single_source_shortest_paths(e,t,n);return i.extract_shortest_path_from_predecessor_list(r,n)},PriorityQueue:{make:function(e){var t,n=i.PriorityQueue,r={};for(t in e=e||{},n)n.hasOwnProperty(t)&&(r[t]=n[t]);return r.queue=[],r.sorter=e.sorter||n.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){this.queue.push({value:e,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=i},EQ5u:function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return c});var i=n("XNiG"),r=n("HDdC"),s=(n("7o/Q"),n("quSY")),o=n("x+ZX");class a extends r.a{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}
1_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new s.a,e.add(this.source.subscribe(new l(this.getSubject(),this))),e.closed&&(this._connection=null,e=s.a.EMPTY)),e}refCount(){return Object(o.a)()(this)}}const c=(()=>{const e=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class l extends i.b{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}},ESDr:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getEvent(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSurveySubmissions/:id/event",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getSubscription(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSurveySubmissions/:id/subscription",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getSurvey(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSurveySubmissions/:id/survey",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSurveySubmissions/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSurveySubmissions/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}answer(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSurveySubmissions/:id/answer",r={id:e},s={};return null!=t&&(s.answers=t),this.request("POST",i,r,s,{},null,n)}submit(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSurveySubmissions/:id/submit";return this.request("POST",n,{id:e},{},{},null,t)}getModelName(){return"CongressSurveySubmission"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},EY2u:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return s});var i=n("HDdC");const r=new i.a(e=>e.complete());function s(e){return e?function(e){return new i.a(t=>e.schedule(()=>t.complete()))}(e):r}},EaRH:function(e,t,n){},"F/Ng":function(e,t,n){"use strict";var i=n("XdDp");n.d(t,"a",function(){return i.a}),n("wET7"),n("zktE")},F4l4:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiEventPayment"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiEventPayment",plural:"SimiEventPayments",path:"SimiEventPayments",idName:"id",properties:{eventId:{name:"eventId",type:"any"},userId:{name:"userId",type:"any"},subscriptionId:{name:"subscriptionId",type:"any"},status:{name:"status",type:"string",default:"pending"},intentId:{name:"intentId",type:"string"},amount:{name:"amount",type:"number"},executed_date:{name:"executed_date",type:"Date"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{event:{name:"event",type:"SimiEvent",model:"SimiEvent",relationType:"belongsTo",keyFrom:"eventId",keyTo:"id"},user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},"F97/":function(e,t,n){"use strict";function i(e,t){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=e,n.thisArg=t,n}n.d(t,"a",function(){return i})},F9a2:function(e,t,n){"use strict";n.d(t,"a",function(){return ul});var i=n("fXoL"),r=n("vgmO"),s=n.n(r),o=n("7zRj"),a=n.n(o),c=n("pVnL"),l=n.n(c),u=n("3zPy"),d=n.n(u),h=n("PJYZ"),p=n.n(h),f=n("VbXa"),g=n.n(f),m=n("jBAH"),b=n.n(m),y=n("NgPB"),v=n.n(y),_=n("K4wu"),w=n.n(_),k=n("sXyB"),C=n.n(k),S=n("7W2i"),T=n.n(S),P=n("0Tbm"),O=n.n(P),x=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=s.a.location&&s.a.location.href||"");var n="function"==typeof s.a.URL,i=/^\/\//.test(e),r=!s.a.location&&!/\/\//i.test(e);
1if(n?e=new s.a.URL(e,s.a.location||"http://example.com"):/\/\//i.test(e)||(e=O.a.buildAbsoluteURL(s.a.location&&s.a.location.href||"",e)),n){var o=new URL(t,e);return r?o.href.slice("http://example.com".length):i?o.href.slice(o.protocol.length):o.href}return O.a.buildAbsoluteURL(e,t)},A=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,i=0;i<n;++i)t[i].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),s=t.length,o=0;o<s;++o)t[o].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}();function E(e){for(var t,n=(t=e,s.a.atob?s.a.atob(t):Buffer.from(t,"base64").toString("binary")),i=new Uint8Array(n.length),r=0;r<n.length;r++)i[r]=n.charCodeAt(r);return i}var M,I,R=function(e){function t(){var t;return(t=e.call(this)||this).buffer="",t}return g()(t,e),t.prototype.push=function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},t}(A),L=String.fromCharCode(9),D=function(e){var t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),n={};return t[1]&&(n.length=parseInt(t[1],10)),t[2]&&(n.offset=parseInt(t[2],10)),n},j=function(e){for(var t,n=e.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),i={},r=n.length;r--;)""!==n[r]&&((t=/([^=]*)=(.*)/.exec(n[r]).slice(1))[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),i[t[0]]=t[1]);return i},N=function(e){function t(){var t;return(t=e.call(this)||this).customParsers=[],t.tagMappers=[],t}g()(t,e);var n=t.prototype;return n.push=function(e){var t,n,i=this;0!==(e=e.trim()).length&&("#"===e[0]?this.tagMappers.reduce(function(t,n){var i=n(e);return i===e?t:t.concat([i])},[e]).forEach(function(e){for(var r=0;r<i.customParsers.length;r++)if(i.customParsers[r].call(i,e))return;if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e))i.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(e))return n={type:"tag",tagType:"inf"},t[1]&&(n.duration=parseFloat(t[1])),t[2]&&(n.title=t[2]),void i.trigger("data",n);if(t=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"targetduration"},t[1]&&(n.duration=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"version"},t[1]&&(n.version=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return n={type:"tag",tagType:"media-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return n={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(e))return n={type:"tag",tagType:"playlist-type"},t[1]&&(n.playlistType=t[1]),void i.trigger("data",n);if(t=/^#EXT-X-BYTERANGE:?(.*)?$/.exec(e))return n=l()(D(t[1]),{type:"tag",tagType:"byterange"}),void i.trigger("data",n);if(t=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(e))return n={type:"tag",tagType:"allow-cache"},t[1]&&(n.allowed=!/NO/.test(t[1])),void i.trigger("data",n);if(t=/^#EXT-X-MAP:?(.*)$/.exec(e)){if(n={type:"tag",tagType:"map"},t[1]){var s=j(t[1]);s.URI&&(n.uri=s.URI),s.BYTERANGE&&(n.byterange=D(s.BYTERANGE))}i.trigger("data",n)}else if(t=/^#EXT-X-STREAM-INF:?(.*)$/.exec(e)){if(n={type:"tag",tagType:"stream-inf"},t[1]){if(n.attributes=j(t[1]),n.attributes.RESOLUTION){var o=n.attributes.RESOLUTION.split("x"),a={};o[0]&&(a.width=parseInt(o[0],10)),o[1]&&(a.height=parseInt(o[1],10)),n.attributes.RESOLUTION=a}n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["FRAME-RATE"]&&(n.attributes["FRAME-RATE"]=parseFloat(n.attributes["FRAME-RATE"])),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))}i.trigger("data",n)}else{if(t=/^#EXT-X-MEDIA:?(.*)$/.exec(e))return n={type:"tag",tagType:"media"},t[1]&&(n.attributes=j(t[1])),void i.trigger("data",n);if(t=/^#EXT-X-ENDLIST/.exec(e))i.trigger("data",{type:"tag",tagType:"endlist"});else if(t=/^#EXT-X-DISCONTINUITY/.exec(e))i.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(t=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(e))return n={type:"tag",tagType:"program-date-time"}
1,t[1]&&(n.dateTimeString=t[1],n.dateTimeObject=new Date(t[1])),void i.trigger("data",n);if(t=/^#EXT-X-KEY:?(.*)$/.exec(e))return n={type:"tag",tagType:"key"},t[1]&&(n.attributes=j(t[1]),n.attributes.IV&&("0x"===n.attributes.IV.substring(0,2).toLowerCase()&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=n.attributes.IV.match(/.{8}/g),n.attributes.IV[0]=parseInt(n.attributes.IV[0],16),n.attributes.IV[1]=parseInt(n.attributes.IV[1],16),n.attributes.IV[2]=parseInt(n.attributes.IV[2],16),n.attributes.IV[3]=parseInt(n.attributes.IV[3],16),n.attributes.IV=new Uint32Array(n.attributes.IV))),void i.trigger("data",n);if(t=/^#EXT-X-START:?(.*)$/.exec(e))return n={type:"tag",tagType:"start"},t[1]&&(n.attributes=j(t[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),void i.trigger("data",n);if(t=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(e))return(n={type:"tag",tagType:"cue-out-cont"}).data=t[1]?t[1]:"",void i.trigger("data",n);if(t=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(e))return(n={type:"tag",tagType:"cue-out"}).data=t[1]?t[1]:"",void i.trigger("data",n);if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e))return(n={type:"tag",tagType:"cue-in"}).data=t[1]?t[1]:"",void i.trigger("data",n);if((t=/^#EXT-X-SKIP:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"skip"}).attributes=j(t[1]),n.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(n.attributes["SKIPPED-SEGMENTS"]=parseInt(n.attributes["SKIPPED-SEGMENTS"],10)),n.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(n.attributes["RECENTLY-REMOVED-DATERANGES"]=n.attributes["RECENTLY-REMOVED-DATERANGES"].split(L)),void i.trigger("data",n);if((t=/^#EXT-X-PART:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"part"}).attributes=j(t[1]),["DURATION"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),["INDEPENDENT","GAP"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))}),n.attributes.hasOwnProperty("BYTERANGE")&&(n.attributes.byterange=D(n.attributes.BYTERANGE)),void i.trigger("data",n);if((t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"server-control"}).attributes=j(t[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))}),void i.trigger("data",n);if((t=/^#EXT-X-PART-INF:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"part-inf"}).attributes=j(t[1]),["PART-TARGET"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),void i.trigger("data",n);if((t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"preload-hint"}).attributes=j(t[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(e){if(n.attributes.hasOwnProperty(e)){n.attributes[e]=parseInt(n.attributes[e],10);var t="BYTERANGE-LENGTH"===e?"length":"offset";n.attributes.byterange=n.attributes.byterange||{},n.attributes.byterange[t]=n.attributes[e],delete n.attributes[e]}}),void i.trigger("data",n);if((t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"rendition-report"}).attributes=j(t[1]),["LAST-MSN","LAST-PART"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseInt(n.attributes[e],10))}),void i.trigger("data",n);i.trigger("data",{type:"tag",data:e.slice(4)})}}}else i.trigger("data",{type:"comment",text:e.slice(1)})}):this.trigger("data",{type:"uri",uri:e}))},n.addParser=function(e){var t=this,n=e.expression,i=e.customType,r=e.dataParser,s=e.segment;"function"!=typeof r&&(r=function(e){return e}),this.customParsers.push(function(e){if(n.exec(e))return t.trigger("data",{type:"custom",data:r(e),customType:i,segment:s}),!0})},n.addTagMapper=function(e){var t=e.expression,n=e.map;this.tagMappers.push(function(e){return t.test(e)?n(e):e})},t}(A),V=function(e){var t={};return Object.keys(e).forEach(function(n){var i;t[(i=n,i.toLowerCase().replace(/-(\w)/g,function(e){return e[1].toUpperCase()}))]=e[n]}),t},z=function(e){var t=e.serverControl,n=e.targetDuration,i=e.partTargetDuration;if(t){var r="#EXT-X-SERVER-CONTROL",s="holdBack",o="partHoldBack",a=n&&3*n,c=i&&2*i;n&&!t.hasOwnProperty(s)&&(t[s]=a,this.trigger("info",{message:r+" defaulting HOLD-BACK to targetDuration * 3 ("+a+")."})),a&&t[s]<a&&(this.trigger("warn",{message:r+" clamping HOLD-BACK ("+t[s]+") to targetDuration * 3 ("+a+")"}),t[s]=a),i&&!t.hasOwnProperty(o)&&(t[o]=3*i,this.trigger("info",{message:r+" defaulting PART-HOLD-BACK to partTargetDuration * 3 ("+t[o]+")."})),i&&t[o]<c&&(this.trigger("warn",{message:r+" clamping PART-HOLD-BACK ("+t[o]+") to partTargetDuration * 2 ("+c+")."}),t[o]=c)}},F=function(e){function t(){var t;(t=e.call(this)||this).lineStream=new R,t.parseStream=new N,t.lineStream.pipe(t.parseStream);var n,i,r=p()(t),s=[],o={},a=!1,c=function(){},u={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},d=0;t.manifest={allowCache:!0,discontinuityStarts:[],segments:[]};var h=0,f=0;return t.on("end",function(){o.uri||!o.parts&&!o.preloadHints||(!o.map&&n&&(o.map=n),!o.key&&i&&(o.key=i),o.timeline||"number"!=typeof d||(o.timeline=d),t.manifest.preloadSegment=o)}),t.parseStream.on("data",function(e){var t,p;({tag:function(){({version:function(){e.version&&(this.manifest.version=e.version)},"allow-cache":function(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var t={};"length"in e&&(o.byterange=t,t.length=e.length,"offset"in e||(e.offset=h)),"offset"in e&&(o.byterange=t,t.offset=e.offset),h=t.offset+t.length},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),e.duration>0&&(o.duration=e.duration),0===e.duration&&(o.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=s},key:function(){if(e.attributes)if("NONE"!==e.attributes.METHOD)if(e.attributes.URI){if("com.apple.streamingkeydelivery"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:e.attributes});if("com.microsoft.playready"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:e.attributes.URI});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===e.attributes.KEYFORMAT)return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:E(e.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}));e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),i={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},void 0!==e.attributes.IV&&(i.iv=e.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else i=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence":function(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,d=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type":function(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map:function(){n={}
1,e.uri&&(n.uri=e.uri),e.byterange&&(n.byterange=e.byterange),i&&(n.key=i)},"stream-inf":function(){this.manifest.playlists=s,this.manifest.mediaGroups=this.manifest.mediaGroups||u,e.attributes?(o.attributes||(o.attributes={}),l()(o.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||u,e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME){var n=this.manifest.mediaGroups[e.attributes.TYPE];n[e.attributes["GROUP-ID"]]=n[e.attributes["GROUP-ID"]]||{},t=n[e.attributes["GROUP-ID"]],(p={default:/yes/i.test(e.attributes.DEFAULT)}).autoselect=!!p.default||/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(p.language=e.attributes.LANGUAGE),e.attributes.URI&&(p.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(p.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(p.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(p.forced=/yes/i.test(e.attributes.FORCED)),t[e.attributes.NAME]=p}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){d+=1,o.discontinuity=!0,this.manifest.discontinuityStarts.push(s.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),o.dateTimeString=e.dateTimeString,o.dateTimeObject=e.dateTimeObject},targetduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):(this.manifest.targetDuration=e.duration,z.call(this,this.manifest))},start:function(){e.attributes&&!isNaN(e.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){o.cueOut=e.data},"cue-out-cont":function(){o.cueOutCont=e.data},"cue-in":function(){o.cueIn=e.data},skip:function(){this.manifest.skip=V(e.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part:function(){var t=this;a=!0;var n=this.manifest.segments.length,i=V(e.attributes);o.parts=o.parts||[],o.parts.push(i),i.byterange&&(i.byterange.hasOwnProperty("offset")||(i.byterange.offset=f),f=i.byterange.offset+i.byterange.length),this.warnOnMissingAttributes_("#EXT-X-PART #"+(o.parts.length-1)+" for segment #"+n,e.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach(function(e,n){e.hasOwnProperty("lastPart")||t.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+n+" lacks required attribute(s): LAST-PART"})})},"server-control":function(){var t=this.manifest.serverControl=V(e.attributes);t.hasOwnProperty("canBlockReload")||(t.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),z.call(this,this.manifest),t.canSkipDateranges&&!t.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var t=this.manifest.segments.length,n=V(e.attributes),i=n.type&&"PART"===n.type;o.preloadHints=o.preloadHints||[],o.preloadHints.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=i?f:0,i&&(f=n.byterange.offset+n.byterange.length)));var r=o.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+r+" for segment #"+t,e.attributes,["TYPE","URI"]),n.type)for(var s=0;s<o.preloadHints.length-1;s++){var a=o.preloadHints[s];a.type&&a.type===n.type&&this.trigger("warn",{message:"#EXT-X-PRELOAD-HINT #"+r+" for segment #"+t+" has the same TYPE "+n.type+" as preload hint #"+s})}},"rendition-report":function(){var t=V(e.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(t);var n=this.manifest.renditionReports.length-1,i=["LAST-MSN","URI"];a&&i.push("LAST-PART"),this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #"+n,e.attributes,i)},"part-inf":function(){this.manifest.partInf=V(e.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",e.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),z.call(this,this.manifest)}}[e.tagType]||c).call(r)}
vendor: 4,573 bytes, line 1
1,uri:function(){o.uri=e.uri,s.push(o),this.manifest.targetDuration&&!("duration"in o)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),o.duration=this.manifest.targetDuration),i&&(o.key=i),o.timeline=d,n&&(o.map=n),f=0,o={}},comment:function(){},custom:function(){e.segment?(o.custom=o.custom||{},o.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(r)}),t}g()(t,e);var n=t.prototype;return n.warnOnMissingAttributes_=function(e,t,n){var i=[];n.forEach(function(e){t.hasOwnProperty(e)||i.push(e)}),i.length&&this.trigger("warn",{message:e+" lacks required attribute(s): "+i.join(", ")})},n.push=function(e){this.lineStream.push(e)},n.end=function(){this.lineStream.push("\n"),this.trigger("end")},n.addParser=function(e){this.parseStream.addParser(e)},n.addTagMapper=function(e){this.parseStream.addTagMapper(e)},t}(A),B={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},q=["video","audio","text"],U=["Video","Audio","Text"],H=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,function(e,t,n){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(n).toString(16)).slice(-2)}):e},W=function(e){void 0===e&&(e="");var t=e.split(","),n=[];return t.forEach(function(e){var t;e=e.trim(),q.forEach(function(i){var r=B[i].exec(e.toLowerCase());if(r&&!(r.length<=1)){t=i;var s=e.substring(0,r[1].length),o=e.replace(s,"");n.push({type:s,details:o,mediaType:i})}}),t||n.push({type:e,details:"",mediaType:"unknown"})}),n},G=function(e){return void 0===e&&(e=""),B.audio.test(e.trim().toLowerCase())},Y=function(e){if(e&&"string"==typeof e){var t,n=e.toLowerCase().split(",").map(function(e){return H(e.trim())}),i="video";1===n.length&&G(n[0])?i="audio":1===n.length&&(void 0===(t=n[0])&&(t=""),B.text.test(t.trim().toLowerCase()))&&(i="application");var r="mp4";return n.every(function(e){return B.mp4.test(e)})?r="mp4":n.every(function(e){return B.webm.test(e)})?r="webm":n.every(function(e){return B.ogg.test(e)})&&(r="ogg"),i+"/"+r+';codecs="'+e+'"'}},$=function(e){return void 0===e&&(e=""),s.a.MediaSource&&s.a.MediaSource.isTypeSupported&&s.a.MediaSource.isTypeSupported(Y(e))||!1},Z=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every(function(e){e=e.trim();for(var t=0;t<U.length;t++)if(B["muxer"+U[t]].test(e))return!0;return!1})},Q=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,X=/^application\/dash\+xml/i,K=function(e){return Q.test(e)?"hls":X.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null},J=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},ee=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||J(e)||e instanceof ArrayBuffer||(e="number"!=typeof e||"number"==typeof e&&e!=e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},te=s.a.BigInt||Number,ne=[te("0x1"),te("0x100"),te("0x10000"),te("0x1000000"),te("0x100000000"),te("0x10000000000"),te("0x1000000000000"),te("0x100000000000000"),te("0x10000000000000000")],ie=(M=new Uint16Array([65484]),new Uint8Array(M.buffer,M.byteOffset,M.byteLength),function(e,t){var n=void 0===t?{}:t,i=n.signed,r=void 0!==i&&i,s=n.le,o=void 0!==s&&s;e=ee(e);var a=o?"reduce":"reduceRight",c=(e[a]?e[a]:Array.prototype[a]).call(e,function(t,n,i){var r=o?i:Math.abs(i+1-e.length);return t+te(n)*ne[r]},te(0));if(r){var l=ne[e.length]/te(2)-te(1);(c=te(c))>l&&(c-=l,c-=l,c-=te(2))}return Number(c)}),re=function(e,t){if("string"!=typeof e&&e&&"function"==typeof e.toString&&(e=e.toString()),"string"!=typeof e)return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var n=new Uint8Array(e.length),i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return n},se=function(e,t,n){var i=void 0===n?{}:n,r=i.offset,s=void 0===r?0:r,o=i.mask,a=void 0===o?[]:o;return e=ee(e),(t=ee(t)).length&&e.length-s>=t.length&&(t.every?t.every:Array.prototype.every).call(t,function(t,n){return t===(a[n]?a[n]&e[s+n]:e[s+n])})},oe=n("IQtQ"),ae=function(e){return!!e&&"object"==typeof e},ce=function e(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.reduce(function(t,n){return"object"!=typeof n||Object.keys(n).forEac
1h(function(i){t[i]=Array.isArray(t[i])&&Array.isArray(n[i])?t[i].concat(n[i]):ae(t[i])&&ae(n[i])?e(t[i],n[i]):n[i]}),t},{})},le=function(e){return Object.keys(e).map(function(t){return e[t]})},ue=function(e){return e.reduce(function(e,t){return e.concat(t)},[])},de=function(e){if(!e.length)return[];for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t},he=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1},pe=function(e){var t=e.baseUrl,n=e.source,i=void 0===n?"":n,r=e.range,o=void 0===r?"":r,a=e.indexRange,c=void 0===a?"":a,l={uri:i,resolvedUri:x((void 0===t?"":t)||"",i)};if(o||c){var u,d=(o||c).split("-"),h=s.a.BigInt?s.a.BigInt(d[0]):parseInt(d[0],10),p=s.a.BigInt?s.a.BigInt(d[1]):parseInt(d[1],10);h<Number.MAX_SAFE_INTEGER&&"bigint"==typeof h&&(h=Number(h)),p<Number.MAX_SAFE_INTEGER&&"bigint"==typeof p&&(p=Number(p)),"bigint"==typeof(u="bigint"==typeof p||"bigint"==typeof h?s.a.BigInt(p)-s.a.BigInt(h)+s.a.BigInt(1):p-h+1)&&u<Number.MAX_SAFE_INTEGER&&(u=Number(u)),l.byterange={length:u,offset:h}}return l},fe=function(e){return e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e},ge={static:function(e){var t=e.duration,n=e.timescale,i=void 0===n?1:n,r=e.sourceDuration,s=e.periodDuration,o=fe(e.endNumber),a=t/i;return"number"==typeof o?{start:0,end:o}:"number"==typeof s?{start:0,end:s/a}:{start:0,end:r/a}},dynamic:function(e){var t=e.NOW,n=e.clientOffset,i=e.availabilityStartTime,r=e.timescale,s=void 0===r?1:r,o=e.duration,a=e.periodStart,c=void 0===a?0:a,l=e.minimumUpdatePeriod,u=void 0===l?0:l,d=e.timeShiftBufferDepth,h=void 0===d?1/0:d,p=fe(e.endNumber),f=(t+n)/1e3,g=i+c,m=Math.ceil((f+u-g)*s/o),b=Math.floor((f-g-h)*s/o),y=Math.floor((f-g)*s/o);return{start:Math.max(0,b),end:"number"==typeof p?p:Math.min(m,y)}}},me=function(e){var t=e.type,n=e.duration,i=e.timescale,r=void 0===i?1:i,s=e.periodDuration,o=e.sourceDuration,a=ge[t](e),c=function(e,t){for(var n=[],i=e;i<t;i++)n.push(i);return n}(a.start,a.end).map(function(e){return function(t){var n=e.duration,i=e.timescale,r=e.startNumber;return{number:(void 0===r?1:r)+t,duration:n/(void 0===i?1:i),timeline:e.periodStart,time:t*n}}}(e));if("static"===t){var l=c.length-1;c[l].duration=("number"==typeof s?s:o)-n/r*l}return c},be=function(e){var t=e.baseUrl,n=e.initialization,i=void 0===n?{}:n,r=e.sourceDuration,s=e.indexRange,o=void 0===s?"":s,a=e.periodStart,c=e.presentationTime,l=e.number,u=void 0===l?0:l,d=e.duration;if(!t)throw new Error("NO_BASE_URL");var h=pe({baseUrl:t,source:i.sourceURL,range:i.range}),p=pe({baseUrl:t,source:t,indexRange:o});if(p.map=h,d){var f=me(e);f.length&&(p.duration=f[0].duration,p.timeline=f[0].timeline)}else r&&(p.duration=r,p.timeline=a);return p.presentationTime=c||a,p.number=u,[p]},ye=function(e,t,n){var i,r=e.sidx.map?e.sidx.map:null,o=e.sidx.duration,a=e.timeline||0,c=e.sidx.byterange,l=c.offset+c.length,u=t.timescale,d=t.references.filter(function(e){return 1!==e.referenceType}),h=[],p=e.endList?"static":"dynamic",f=e.sidx.timeline,g=f,m=e.mediaSequence||0;i="bigint"==typeof t.firstOffset?s.a.BigInt(l)+t.firstOffset:l+t.firstOffset;for(var b=0;b<d.length;b++){var y,v=t.references[b],_=v.referencedSize,w=v.subsegmentDuration;y="bigint"==typeof i?i+s.a.BigInt(_)-s.a.BigInt(1):i+_-1;var k=be({baseUrl:n,timescale:u,timeline:a,periodStart:f,presentationTime:g,number:m,duration:w,sourceDuration:o,indexRange:i+"-"+y,type:p})[0];r&&(k.map=r),h.push(k),i+="bigint"==typeof i?s.a.BigInt(_):_,g+=w/u,m++}return e.segments=h,e},ve=["AUDIO","SUBTITLES"],_e=function(e){return(t=e,n=function(e){return e.timeline},le(t.reduce(function(e,t){return t.forEach(function(t){e[n(t)]=t}),e},{}))).sort(function(e,t){return e.timeline>t.timeline?1:-1});var t,n},we=function(e){var t,n,i=[];return t=e,n=function(e,t,n,r){i=i.concat(e.playlists||[])},ve.forEach(function(e){for(var i in t.mediaGroups[e])for(var r in t.mediaGroups[e][i])n(t.mediaGroups[e][i][r])}),i},ke=function(e){var t=e.playlist;t.mediaSequence=e.mediaSequence,t.segments.forEach(function(e,n){e.number=t.mediaSequence+n})},Ce=function(e){return e&&e.uri+"-"+(n="bigint"==typeof(t=e.byterange).offset||"bigint"==typeof t.length?s.a.BigInt(t.offset)+s.a.BigInt(t.length)-s.a.BigInt(1):t.offset+t.length-1,t.offset+"-"+n);var t,n},Se=function(e){return le(e.reduce(function(e,t){var n,i=t.attributes.id+(t.attributes.lang||"");return e[i]?(t.segments&&(t.segments[0]&&(t.segments[0].discontinuity=!0),(n=e[i].segments).push.apply(n,t.segments)),t.attributes.contentProtection&&(e[i].attributes.contentProtection=t.attributes.contentProtection)):(e[i]=t,e[i].attributes.timelineStarts=[]),e[i].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e},{})).map(function(e){return e.discontinuityStarts=(e.segments||[]).reduce(function(e,t,n){return t.discontinuity&&e.push(n),e},[]),e})},Te=function(e,t){var n=Ce(e.sidx),i=n&&t[n]&&t[n].sidx;return i&&ye(e,i,e.sidx.resolvedUri),e},Pe=function(e,t){if(void 0===t&&(t={}),!Object.keys(t).length)return e;for(var n in e)e[n]=Te(e[n],t);return e},Oe=function(e){var t,n=e.attributes,i=e.segments,r=e.sidx,s=e.discontinuityStarts,o={attributes:(t={NAME:n.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:n.width,height:n.height},CODECS:n.codecs,BANDWIDTH:n.bandwidth},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:"",targetDuration:n.duration,discontinuityStarts:s,timelineStarts:n.timelineStarts,segments:i};return n.frameRate&&(o.attributes["FRAME-RATE"]=n.frameRate),n.contentProtection&&(o.contentProtection=n.contentProtection),r&&(o.sidx=r),o},xe=function(e){var t=e.attributes;return"video/mp4"===t.mimeType||"video/webm"===t.mimeType||"video"===t.contentType},Ae=function(e){var t=e.attributes;return"audio/mp4"===t.mimeType||"audio/webm"===t.mimeType||"audio"===t.contentType},Ee=function(e){var t=e.attributes;return"text/vtt"===t.mimeType||"text"===t.contentType},Me=function(e){return e?Object.keys(e).reduce(function(t,n){return t.concat(e[n].playlists)},[]):[]},Ie=function(e,t,n){var i=e.timescale,r=e.periodStart,s=e.minimumUpdatePeriod;return Math.ceil((((e.NOW+e.clientOffset)/1e3+(void 0===s?0:s)-(e.availabilityStartTime+(void 0===r?0:r)))*(void 0===i?1:i)-t)/n)},Re=function(e,t){for(var n=e.type,i=e.minimumUpdatePeriod,r=void 0===i?0:i,s=e.media,o=void 0===s?"":s,a=e.sourceDuration,c=e.timescale,l=void 0===c?1:c,u=e.startNumber,d=void 0===u?1:u,h=e.periodStart,p=[],f=-1,g=0;g<t.length;g++){var m=t[g],b=m.d,y=m.r||0,v=m.t||0;f<0&&(f=v),v&&v>f&&(f=v);var _=void 0;if(y<0){var w=g+1;_=w===t.length?"dynamic"===n&&r>0&&o.indexOf("$Number$")>0?Ie(e,f,b):(a*l-f)/b:(t[w].t-f)/b}else _=y+1;for(var k=d+p.length+_,C=d+p.length;C<k;)p.push({number:C,duration:b/l,time:f,timeline:h}),f+=b,C++}return p},Le=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,De=function(e,t){return e.replace(Le,function(e){return function(t,n,i,r){if("$$"===t)return"$";if(void 0===e[n])return t;var s=""+e[n];return"RepresentationID"===n?s:(r=i?parseInt(r,10):1,s.length>=r?s:""+new Array(r-s.length+1).join("0")+s)}}(t))},je=function(e,t){var n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},i=e.initialization,r=void 0===i?{sourceURL:"",range:""}:i,s=pe({baseUrl:e.baseUrl,source:De(r.sourceURL,n),range:r.range}),o=function(e,t){return e.duration||t?e.duration?me(e):Re(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}]}(e,t);return o.map(function(t){n.Number=t.number,n.Time=t.time;var i=De(e.media||"",n),r=e.periodStart+(t.time-(e.presentationTimeOffset||0))/(e.timescale||1);return{uri:i,timeline:t.timeline,duration:t.duration,resolvedUri:x(e.baseUrl||"",i),map:s,number:t.number,presentationTime:r}})},Ne=function(e,t){var n=e.duration,i=e.segmentUrls,r=void 0===i?[]:i,s=e.periodStart;if(!n&&!t||n&&t)throw new Error("SEGMENT_TIME_UNSPECIFIED");var o,a=r.map(function(t){return function(e,t){var n=e.baseUrl,i=e.initialization,r=void 0===i?{}:i,s=pe({baseUrl:n,source:r.sourceURL,range:r.range}),o=pe({baseUrl:n,source:t.media,range:t.mediaRange});return o.map=s,o}(e,t)});return n&&(o=me(e)),t&&(o=Re(e,t)),o.map(function(t,n){if(a[n]){var i=a[n],r=e.timescale||1,o=e.presentationTimeOffset||0;return i.timeline=t.timeline,i.duration=t.duration,i.number=t.number,i.presentationTime=s+(t.time-o)/r,i}}).filter(function(e){return e})},Ve=function(e){var t,n,i=e.attributes,r=e.segmentInfo;r.template?(n=je,t=ce(i,r.template)):r.base?(n=be,t=ce(i,r.base)):r.list&&(n=Ne,t=ce(i,r.list));var s={attributes:i};if(!n)return s;var o=n(t,r.segmentTimeline);if(t.duration){var a=t.timescale;t.duration=t.duration/(void 0===a?1:a)}else t.duration=o.length?o.reduce(function(e,t){return Math.max(e,Math.ceil(t.duration))},0):0;return s.attributes=t,s.segments=o,r.base&&t.indexRange&&(s.sidx=o[0],s.segments=[]),s},ze=function(e,t){return de(e.childNodes).filter(function(e){return e.tagName===t})},Fe=function(e){return e.textContent.trim()},Be=function(e){var t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;var n=t.slice(1),i=n[1],r=n[2],s=n[3],o=n[4],a=n[5];
1return 31536e3*parseFloat(n[0]||0)+2592e3*parseFloat(i||0)+86400*parseFloat(r||0)+3600*parseFloat(s||0)+60*parseFloat(o||0)+parseFloat(a||0)},qe={mediaPresentationDuration:function(e){return Be(e)},availabilityStartTime:function(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t=e)&&(t+="Z"),Date.parse(t)/1e3;var t},minimumUpdatePeriod:function(e){return Be(e)},suggestedPresentationDelay:function(e){return Be(e)},type:function(e){return e},timeShiftBufferDepth:function(e){return Be(e)},start:function(e){return Be(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},frameRate:function(e){return function(e){return parseFloat(e.split("/").reduce(function(e,t){return e/t}))}(e)},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},presentationTimeOffset:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?Be(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},Ue=function(e){return e&&e.attributes?de(e.attributes).reduce(function(e,t){return e[t.name]=(qe[t.name]||qe.DEFAULT)(t.value),e},{}):{}},He={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},We=function(e,t){return t.length?ue(e.map(function(e){return t.map(function(t){return x(e,Fe(t))})})):e},Ge=function(e){var t=ze(e,"SegmentTemplate")[0],n=ze(e,"SegmentList")[0],i=n&&ze(n,"SegmentURL").map(function(e){return ce({tag:"SegmentURL"},Ue(e))}),r=ze(e,"SegmentBase")[0],s=n||t,o=s&&ze(s,"SegmentTimeline")[0],a=n||r||t,c=a&&ze(a,"Initialization")[0],l=t&&Ue(t);l&&c?l.initialization=c&&Ue(c):l&&l.initialization&&(l.initialization={sourceURL:l.initialization});var u={template:l,segmentTimeline:o&&ze(o,"S").map(function(e){return Ue(e)}),list:n&&ce(Ue(n),{segmentUrls:i,initialization:Ue(c)}),base:r&&ce(Ue(r),{initialization:Ue(c)})};return Object.keys(u).forEach(function(e){u[e]||delete u[e]}),u},Ye=function(e,t){return function(n,i){var r=We(t,ze(n.node,"BaseURL")),s=ce(e,{periodStart:n.attributes.start});"number"==typeof n.attributes.duration&&(s.periodDuration=n.attributes.duration);var o=ze(n.node,"AdaptationSet"),a=Ge(n.node);return ue(o.map(function(e,t,n){return function(i){var r,s=Ue(i),o=We(t,ze(i,"BaseURL")),a=ze(i,"Role")[0],c={role:Ue(a)},l=ce(e,s,c),u=ze(i,"Accessibility")[0],d="urn:scte:dash:cc:cea-608:2015"===(r=Ue(u)).schemeIdUri?("string"!=typeof r.value?[]:r.value.split(";")).map(function(e){var t,n;if(n=e,/^CC\d=/.test(e)){var i=e.split("=");t=i[0],n=i[1]}else/^CC\d$/.test(e)&&(t=e);return{channel:t,language:n}}):"urn:scte:dash:cc:cea-708:2015"===r.schemeIdUri?("string"!=typeof r.value?[]:r.value.split(";")).map(function(e){var t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){var n=e.split("="),i=n[1],r=void 0===i?"":i;t.channel=n[0],t.language=e,r.split(",").forEach(function(e){var n=e.split(":"),i=n[0],r=n[1];"lang"===i?t.language=r:"er"===i?t.easyReader=Number(r):"war"===i?t.aspectRatio=Number(r):"3D"===i&&(t["3D"]=Number(r))})}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t}):void 0;d&&(l=ce(l,{captionServices:d}));var h=ze(i,"Label")[0];if(h&&h.childNodes.length){var p=h.childNodes[0].nodeValue.trim();l=ce(l,{label:p})}var f=ze(i,"ContentProtection").reduce(function(e,t){var n=Ue(t);n.schemeIdUri&&(n.schemeIdUri=n.schemeIdUri.toLowerCase());var i=He[n.schemeIdUri];if(i){e[i]={attributes:n};var r=ze(t,"cenc:pssh")[0];if(r){var s=Fe(r);e[i].pssh=s&&E(s)}}return e},{});Object.keys(f).length&&(l=ce(l,{contentProtection:f}));var g=Ge(i),m=ze(i,"Representation"),b=ce(n,g);return ue(m.map(function(e,t,n){return function(i){var r=ze(i,"BaseURL"),s=We(t,r),o=ce(e,Ue(i)),a=Ge(i);return s.map(function(e){return{segmentInfo:ce(n,a),attributes:ce(o,{baseUrl:e})}})}}(l,o,b)))}}(s,r,a)))}},$e=function(e){if(""===e)throw new Error("DASH_EMPTY_MANIFEST");var t,n,i=new oe.DOMParser;try{n=(t=i.parseFromString(e,"application/xml"))&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(r){}if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw new Error("DASH_INVALID_XML");return n},Ze=n("gcCN"),Qe=n.n(Ze),Xe=ee([73,68,51]),Ke=function e(t,n){return void 0===n&&(n=0),(t=ee(t)).length-n<10||!se(t,Xe,{offset:n})?n:(n+=function(e,t){void 0===t&&(t=0);var n=(e=ee(e))[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&e[t+5])>>4?n+20:n+10}(t,n),e(t,n))}
vendor: 4,147 bytes, line 1
1,Je=(new Uint8Array([79,112,117,115,72,101,97,100]),function(e){return"string"==typeof e?re(e):e}),et=function(e){e=ee(e);for(var t=[],n=0;e.length>n;){var i=e[n],r=0,s=0,o=e[++s];for(s++;128&o;)r=(127&o)<<7,o=e[s],s++;r+=127&o;for(var a=0;a<I.length;a++){var c=I[a];if(i===c.id){t.push((0,c.parser)(e.subarray(s,s+r)));break}}n+=r+s}return t};I=[{id:3,parser:function(e){var t={tag:3,id:e[0]<<8|e[1],flags:e[2],size:3,dependsOnEsId:0,ocrEsId:0,descriptors:[],url:""};if(128&t.flags&&(t.dependsOnEsId=e[t.size]<<8|e[t.size+1],t.size+=2),64&t.flags){var n=e[t.size];t.url=function(e){if(!e)return"";e=Array.prototype.slice.call(e);var t=String.fromCharCode.apply(null,ee(e));try{return decodeURIComponent(escape(t))}catch(n){}return t}(e.subarray(t.size+1,t.size+1+n)),t.size+=n}return 32&t.flags&&(t.ocrEsId=e[t.size]<<8|e[t.size+1],t.size+=2),t.descriptors=et(e.subarray(t.size))||[],t}},{id:4,parser:function(e){return{tag:4,oti:e[0],streamType:e[1],bufferSize:e[2]<<16|e[3]<<8|e[4],maxBitrate:e[5]<<24|e[6]<<16|e[7]<<8|e[8],avgBitrate:e[9]<<24|e[10]<<16|e[11]<<8|e[12],descriptors:et(e.subarray(13))}}},{id:5,parser:function(e){return{tag:5,bytes:e}}},{id:6,parser:function(e){return{tag:6,bytes:e}}}];var tt=function e(t,n,i){void 0===i&&(i=!1),n=function(e){return Array.isArray(e)?e.map(function(e){return Je(e)}):[Je(e)]}(n),t=ee(t);var r=[];if(!n.length)return r;for(var s=0;s<t.length;){var o=(t[s]<<24|t[s+1]<<16|t[s+2]<<8|t[s+3])>>>0,a=t.subarray(s+4,s+8);if(0===o)break;var c=s+o;if(c>t.length){if(i)break;c=t.length}var l=t.subarray(s+8,c);se(a,n[0])&&(1===n.length?r.push(l):r.push.apply(r,e(l,n.slice(1),i))),s=c}return r},nt={EBML:ee([26,69,223,163]),DocType:ee([66,130]),Segment:ee([24,83,128,103]),SegmentInfo:ee([21,73,169,102]),Tracks:ee([22,84,174,107]),Track:ee([174]),TrackNumber:ee([215]),DefaultDuration:ee([35,227,131]),TrackEntry:ee([174]),TrackType:ee([131]),FlagDefault:ee([136]),CodecID:ee([134]),CodecPrivate:ee([99,162]),VideoTrack:ee([224]),AudioTrack:ee([225]),Cluster:ee([31,67,182,117]),Timestamp:ee([231]),TimestampScale:ee([42,215,177]),BlockGroup:ee([160]),BlockDuration:ee([155]),Block:ee([161]),SimpleBlock:ee([163])},it=[128,64,32,16,8,4,2,1],rt=function(e,t,n,i){void 0===n&&(n=!0),void 0===i&&(i=!1);var r=function(e){for(var t=1,n=0;n<it.length&&!(e&it[n]);n++)t++;return t}(e[t]),s=e.subarray(t,t+r);return n&&((s=Array.prototype.slice.call(e,t,t+r))[0]^=it[r-1]),{length:r,value:ie(s,{signed:i}),bytes:s}},st=function e(t){return"string"==typeof t?t.match(/.{1,2}/g).map(function(t){return e(t)}):"number"==typeof t?function(e,t){var n={}.le,i=void 0!==n&&n;("bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!=e)&&(e=0),e=te(e);for(var r=Math.ceil(e.toString(2).length/8),s=new Uint8Array(new ArrayBuffer(r)),o=0;o<r;o++){var a=i?o:Math.abs(o+1-s.length);s[a]=Number(e/ne[o]&te(255)),e<0&&(s[a]=Math.abs(~s[a]),s[a]-=0===o?1:2)}return s}(t):t},ot=function e(t,n,i){if(i>=n.length)return n.length;var r=rt(n,i,!1);if(se(t.bytes,r.bytes))return i;var s=rt(n,i+r.length);return e(t,n,i+s.length+s.value+r.length)},at=function e(t,n){n=function(e){return Array.isArray(e)?e.map(function(e){return st(e)}):[st(e)]}(n),t=ee(t);var i=[];if(!n.length)return i;for(var r=0;r<t.length;){var s=rt(t,r,!1),o=rt(t,r+s.length),a=r+s.length+o.length;127===o.value&&(o.value=ot(s,t,a),o.value!==t.length&&(o.value-=a));var c=t.subarray(a,a+o.value>t.length?t.length:a+o.value);se(n[0],s.bytes)&&(1===n.length?i.push(c):i=i.concat(e(c,n.slice(1)))),r+=s.length+o.length+c.length}return i},ct=ee([0,0,0,1]),lt=ee([0,0,1]),ut=ee([0,0,3]),dt=function(e){for(var t=[],n=1;n<e.length-2;)se(e.subarray(n,n+3),ut)&&(t.push(n+2),n++),n++;if(0===t.length)return e;var i=e.length-t.length,r=new Uint8Array(i),s=0;for(n=0;n<i;s++,n++)s===t[0]&&(s++,t.shift()),r[n]=e[s];return r},ht=function(e,t,n,i){void 0===i&&(i=1/0),e=ee(e),n=[].concat(n);for(var r,s=0,o=0;s<e.length&&(o<i||r);){var a=void 0;if(se(e.subarray(s),ct)?a=4:se(e.subarray(s),lt)&&(a=3),a){if(o++,r)return dt(e.subarray(r,s));var c=void 0;"h264"===t?c=31&e[s+a]:"h265"===t&&(c=e[s+a]>>1&63),-1!==n.indexOf(c)&&(r=s+a),s+=a+("h264"===t?1:2)}else s++}
1return e.subarray(0,0)},pt={webm:ee([119,101,98,109]),matroska:ee([109,97,116,114,111,115,107,97]),flac:ee([102,76,97,67]),ogg:ee([79,103,103,83]),ac3:ee([11,119]),riff:ee([82,73,70,70]),avi:ee([65,86,73]),wav:ee([87,65,86,69]),"3gp":ee([102,116,121,112,51,103]),mp4:ee([102,116,121,112]),fmp4:ee([115,116,121,112]),mov:ee([102,116,121,112,113,116]),moov:ee([109,111,111,118]),moof:ee([109,111,111,102])},ft={aac:function(e){var t=Ke(e);return se(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=Ke(e);return se(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=at(e,[nt.EBML,nt.DocType])[0];return se(t,pt.webm)},mkv:function(e){var t=at(e,[nt.EBML,nt.DocType])[0];return se(t,pt.matroska)},mp4:function(e){return!ft["3gp"](e)&&!ft.mov(e)&&(!(!se(e,pt.mp4,{offset:4})&&!se(e,pt.fmp4,{offset:4}))||!(!se(e,pt.moof,{offset:4})&&!se(e,pt.moov,{offset:4}))||void 0)},mov:function(e){return se(e,pt.mov,{offset:4})},"3gp":function(e){return se(e,pt["3gp"],{offset:4})},ac3:function(e){var t=Ke(e);return se(e,pt.ac3,{offset:t})},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];for(var t=0;t+188<e.length&&t<188;){if(71===e[t]&&71===e[t+188])return!0;t+=1}return!1},flac:function(e){var t=Ke(e);return se(e,pt.flac,{offset:t})},ogg:function(e){return se(e,pt.ogg)},avi:function(e){return se(e,pt.riff)&&se(e,pt.avi,{offset:8})},wav:function(e){return se(e,pt.riff)&&se(e,pt.wav,{offset:8})},h264:function(e){return function(e,t,n){return ht(e,"h264",7,3)}(e).length},h265:function(e){return function(e,t,n){return ht(e,"h265",[32,33],3)}(e).length}},gt=Object.keys(ft).filter(function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e}).concat(["ts","h264","h265"]);gt.forEach(function(e){var t=ft[e];ft[e]=function(e){return t(ee(e))}});for(var mt,bt=ft,yt=function(e){e=ee(e);for(var t=0;t<gt.length;t++){var n=gt[t];if(bt[n](e))return n}return""},vt=n("NsZL"),_t={},wt=function(e,t){return _t[e]=_t[e]||[],t&&(_t[e]=_t[e].concat(t)),_t[e]},kt=function(e,t){var n=wt(e).indexOf(t);return!(n<=-1||(_t[e]=_t[e].slice(),_t[e].splice(n,1),0))},Ct={prefixed:!0},St=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],Tt=St[0],Pt=0;Pt<St.length;Pt++)if(St[Pt][1]in a.a){mt=St[Pt];break}if(mt){for(var Ot=0;Ot<mt.length;Ot++)Ct[Tt[Ot]]=mt[Ot];Ct.prefixed=mt[0]!==Tt[0]}var xt=[],At=function e(t){var n,i="info",r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n("log",i,t)};return n=function(e,t){return function(n,i,r){var o=t.levels[i],a=new RegExp("^("+o+")$");if("log"!==n&&r.unshift(n.toUpperCase()+":"),r.unshift(e+":"),xt){xt.push([].concat(r));var c=xt.length-1e3;xt.splice(0,c>0?c:0)}if(s.a.console){var l=s.a.console[n];l||"debug"!==n||(l=s.a.console.info||s.a.console.log),l&&o&&a.test(n)&&l[Array.isArray(r)?"apply":"call"](s.a.console,r)}}}(t,r),r.createLogger=function(n){return e(t+": "+n)},r.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:i},r.level=function(e){if("string"==typeof e){if(!r.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');i=e}return i},(r.history=function(){return xt?[].concat(xt):[]}).filter=function(e){return(xt||[]).filter(function(t){return new RegExp(".*"+e+".*").test(t[0])})},r.history.clear=function(){xt&&(xt.length=0)},r.history.disable=function(){null!==xt&&(xt.length=0,xt=null)},r.history.enable=function(){null===xt&&(xt=[])},r.error=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n("error",i,t)},r.warn=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n("warn",i,t)},r.debug=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n("debug",i,t)},r}("VIDEOJS"),Et=At.createLogger,Mt=Object.prototype.toString,It=function(e){return Dt(e)?Object.keys(e):[]};function Rt(e,t){It(e).forEach(function(n){return t(e[n],n)})}function Lt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Object.assign?l.a.apply(void 0,[e].concat(n)):(n.forEach(function(t){t&&Rt(t,function(t,n){e[n]=t})}),e)}function Dt(e){return!!e&&"object"==typeof e}function jt(e){return Dt(e)&&"[object Object]"===Mt.call(e)&&e.constructor===Object}function Nt(e,t){if(!e||!t)return"";if("function"==typeof s.a.getComputedStyle){var n;try{n=s.a.getComputedStyle(e)}catch(i){return""}return n?n.getPropertyValue(t)||n[t]:""}return""}var Vt,zt,Ft,Bt=s.a.navigator&&s.a.navigator.userAgent||"",qt=/AppleWeb
1Kit\/([\d.]+)/i.exec(Bt),Ut=qt?parseFloat(qt.pop()):null,Ht=/iPod/i.test(Bt),Wt=(Vt=Bt.match(/OS (\d+)_/i))&&Vt[1]?Vt[1]:null,Gt=/Android/i.test(Bt),Yt=function(){var e=Bt.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),$t=Gt&&Yt<5&&Ut<537,Zt=/Firefox/i.test(Bt),Qt=/Edg/i.test(Bt),Xt=!Qt&&(/Chrome/i.test(Bt)||/CriOS/i.test(Bt)),Kt=function(){var e=Bt.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),Jt=(!(Ft=(zt=/MSIE\s(\d+)\.\d/.exec(Bt))&&parseFloat(zt[1]))&&/Trident\/7.0/i.test(Bt)&&/rv:11.0/.test(Bt)&&(Ft=11),Ft),en=/Safari/i.test(Bt)&&!Xt&&!Gt&&!Qt,tn=/Windows/i.test(Bt),nn=Boolean(dn()&&("ontouchstart"in s.a||s.a.navigator.maxTouchPoints||s.a.DocumentTouch&&s.a.document instanceof s.a.DocumentTouch)),rn=/iPad/i.test(Bt)||en&&nn&&!/iPhone/i.test(Bt),sn=/iPhone/i.test(Bt)&&!rn,on=sn||rn||Ht,an=(en||on)&&!Xt,cn=Object.freeze({__proto__:null,IS_IPOD:Ht,IOS_VERSION:Wt,IS_ANDROID:Gt,ANDROID_VERSION:Yt,IS_NATIVE_ANDROID:$t,IS_FIREFOX:Zt,IS_EDGE:Qt,IS_CHROME:Xt,CHROME_VERSION:Kt,IE_VERSION:Jt,IS_SAFARI:en,IS_WINDOWS:tn,TOUCH_ENABLED:nn,IS_IPAD:rn,IS_IPHONE:sn,IS_IOS:on,IS_ANY_SAFARI:an});function ln(e){return"string"==typeof e&&Boolean(e.trim())}function un(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function dn(){return a.a===s.a.document}function hn(e){return Dt(e)&&1===e.nodeType}function pn(){try{return s.a.parent!==s.a.self}catch(e){return!0}}function fn(e){return function(t,n){if(!ln(t))return a.a[e](null);ln(n)&&(n=a.a.querySelector(n));var i=hn(n)?n:a.a;return i[e]&&i[e](t)}}function gn(e,t,n,i){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={});var r=a.a.createElement(e);return Object.getOwnPropertyNames(t).forEach(function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(At.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+n+"."),r.setAttribute(e,n)):"textContent"===e?mn(r,n):r[e]===n&&"tabIndex"!==e||(r[e]=n)}),Object.getOwnPropertyNames(n).forEach(function(e){r.setAttribute(e,n[e])}),i&&Dn(r,i),r}function mn(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function bn(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function yn(e,t){return un(t),e.classList?e.classList.contains(t):(n=t,new RegExp("(^|\\s)"+n+"($|\\s)")).test(e.className);var n}function vn(e,t){return e.classList?e.classList.add(t):yn(e,t)||(e.className=(e.className+" "+t).trim()),e}function _n(e,t){return e?(e.classList?e.classList.remove(t):(un(t),e.className=e.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),e):(At.warn("removeClass was called with an element that doesn't exist"),null)}function wn(e,t,n){var i=yn(e,t);if("function"==typeof n&&(n=n(e,t)),"boolean"!=typeof n&&(n=!i),n!==i)return n?vn(e,t):_n(e,t),e}function kn(e,t){Object.getOwnPropertyNames(t).forEach(function(n){var i=t[n];null==i||!1===i?e.removeAttribute(n):e.setAttribute(n,!0===i?"":i)})}function Cn(e){var t={};if(e&&e.attributes&&e.attributes.length>0)for(var n=e.attributes,i=n.length-1;i>=0;i--){var r=n[i].name,s=n[i].value;
1"boolean"!=typeof e[r]&&-1===",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+r+",")||(s=null!==s),t[r]=s}return t}function Sn(e,t){return e.getAttribute(t)}function Tn(e,t,n){e.setAttribute(t,n)}function Pn(e,t){e.removeAttribute(t)}function On(){a.a.body.focus(),a.a.onselectstart=function(){return!1}}function xn(){a.a.onselectstart=function(){return!0}}function An(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach(function(e){void 0!==t[e]&&(n[e]=t[e])}),n.height||(n.height=parseFloat(Nt(e,"height"))),n.width||(n.width=parseFloat(Nt(e,"width"))),n}}function En(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};for(var t=e.offsetWidth,n=e.offsetHeight,i=0,r=0;e.offsetParent&&e!==a.a[Ct.fullscreenElement];)i+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:i,top:r,width:t,height:n}}function Mn(e,t){var n={x:0,y:0};if(on)for(var i=e;i&&"html"!==i.nodeName.toLowerCase();){var r=Nt(i,"transform");
1if(/^matrix/.test(r)){var s=r.slice(7,-1).split(/,\s/).map(Number);n.x+=s[4],n.y+=s[5]}else if(/^matrix3d/.test(r)){var o=r.slice(9,-1).split(/,\s/).map(Number);n.x+=o[12],n.y+=o[13]}i=i.parentNode}var a={},c=En(t.target),l=En(e),u=l.width,d=t.offsetY-(l.top-c.top),h=t.offsetX-(l.left-c.left);return t.changedTouches&&(h=t.changedTouches[0].pageX-l.left,d=t.changedTouches[0].pageY+l.top,on&&(h-=n.x,d-=n.y)),a.y=1-Math.max(0,Math.min(1,d/l.height)),a.x=Math.max(0,Math.min(1,h/u)),a}function In(e){return Dt(e)&&3===e.nodeType}function Rn(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function Ln(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(function(e){return"function"==typeof e&&(e=e()),hn(e)||In(e)?e:"string"==typeof e&&/\S/.test(e)?a.a.createTextNode(e):void 0}).filter(function(e){return e})}function Dn(e,t){return Ln(t).forEach(function(t){return e.appendChild(t)}),e}function jn(e,t){return Dn(Rn(e),t)}function Nn(e){return void 0===e.button&&void 0===e.buttons||0===e.button&&void 0===e.buttons||"mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons}var Vn,zn=fn("querySelector"),Fn=fn("querySelectorAll"),Bn=Object.freeze({__proto__:null,isReal:dn,isEl:hn,isInFrame:pn,createEl:gn,textContent:mn,prependTo:bn,hasClass:yn,addClass:vn,removeClass:_n,toggleClass:wn,setAttributes:kn,getAttributes:Cn,getAttribute:Sn,setAttribute:Tn,removeAttribute:Pn,blockTextSelection:On,unblockTextSelection:xn,getBoundingClientRect:An,findPosition:En,getPointerPosition:Mn,isTextNode:In,emptyEl:Rn,normalizeContent:Ln,appendContent:Dn,insertContent:jn,isSingleLeftClick:Nn,$:zn,$$:Fn}),qn=!1,Un=function(){if(!1!==Vn.options.autoSetup){var e=Array.prototype.slice.call(a.a.getElementsByTagName("video")),t=Array.prototype.slice.call(a.a.getElementsByTagName("audio")),n=Array.prototype.slice.call(a.a.getElementsByTagName("video-js")),i=e.concat(t,n);if(i&&i.length>0)for(var r=0,s=i.length;r<s;r++){var o=i[r];if(!o||!o.getAttribute){Hn(1);break}void 0===o.player&&null!==o.getAttribute("data-setup")&&Vn(o)}else qn||Hn(1)}};function Hn(e,t){dn()&&(t&&(Vn=t),s.a.setTimeout(Un,e))}function Wn(){qn=!0,s.a.removeEventListener("load",Wn)}dn()&&("complete"===a.a.readyState?Wn():s.a.addEventListener("load",Wn));var Gn,Yn=function(e){var t=a.a.createElement("style");return t.className=e,t},$n=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},Zn=3;function Qn(){return Zn++}s.a.WeakMap||(Gn=function(){function e(){this.vdata="vdata"+Math.floor(s.a.performance&&s.a.performance.now()||Date.now()),this.data={}}var t=e.prototype;return t.set=function(e,t){var n=e[this.vdata]||Qn();return e[this.vdata]||(e[this.vdata]=n),this.data[n]=t,this},t.get=function(e){var t=e[this.vdata];if(t)return this.data[t];At("We have no data for this element",e)},t.has=function(e){return e[this.vdata]in this.data},t.delete=function(e){var t=e[this.vdata];t&&(delete this.data[t],delete e[this.vdata])},e}());var Xn,Kn=s.a.WeakMap?new WeakMap:new Gn;function Jn(e,t){if(Kn.has(e)){var n=Kn.get(e);0===n.handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&Kn.delete(e)}}function ei(e,t,n,i){n.forEach(function(n){e(t,n,i)})}function ti(e){if(e.fixed_)return e;function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){var i=e||s.a.event;for(var r in e={},i)"layerX"!==r&&"layerY"!==r&&"keyLocation"!==r&&"webkitMovementX"!==r&&"webkitMovementY"!==r&&"path"!==r&&("returnValue"===r&&i.preventDefault||(e[r]=i[r]));if(e.target||(e.target=e.srcElement||a.a),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){i.preventDefault&&i.preventDefault(),e.returnValue=!1,i.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),e.cancelBubble=!0,i.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!=e.clientX){var o=a.a.documentElement,c=a.a.body;e.pageX=e.clientX+(o&&o.scrollLeft||c&&c.scrollLeft||0)-(o&&o.clientLeft||c&&c.clientLeft||0),e.pageY=e.clientY+(o&&o.scrollTop||c&&c.scrollTop||0)-(o&&o.clientTop||c&&c.clientTop||0)}e.which=e.charCode||e.keyCode,null!=e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e}var ni=["touchstart","touchmove"];function ii(e,t,n){if(Array.isArray(t))return ei(ii,e,t,n);Kn.has(e)||Kn.set(e,{});var i=Kn.get(e);if(i.handlers||(i.handlers={}),i.handlers[t]||(i.handlers[t]=[]),n.guid||(n.guid=Qn()),i.handlers[t].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(t,n){if(!i.disabled){t=ti(t);var r=i.handlers[t.type];if(r)for(var s=r.slice(0),o=0,a=s.length;o<a&&!t.isImmediatePropagationStopped();o++)try{s[o].call(e,t,n)}catch(c){At.error(c)}}}),1===i.handlers[t].length)if(e.addEventListener){var r=!1;(function(){if("boolean"!=typeof Xn){Xn=!1;try{var e=Object.defineProperty({},"passive",{get:function(){Xn=!0}});s.a.addEventListener("test",null,e),s.a.removeEventListener("test",null,e)}catch(t){}}return Xn})()&&ni.indexOf(t)>-1&&(r={passive:!0}),e.addEventListener(t,i.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,i.dispatcher)}function ri(e,t,n){if(Kn.has(e)){var i=Kn.get(e);if(i.handlers){if(Array.isArray(t))return ei(ri,e,t,n);var r=function(e,t){i.handlers[t]=[],Jn(e,t)};if(void 0!==t){var s=i.handlers[t];if(s)if(n){if(n.guid)for(var o=0;o<s.length;o++)s[o].guid===n.guid&&s.splice(o--,1);Jn(e,t)}else r(e,t)}else for(var a in i.handlers)Object.prototype.hasOwnProperty.call(i.handlers||{},a)&&r(e,a)}}}function si(e,t,n){var i=Kn.has(e)?Kn.get(e):{},r=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=ti(t),i.dispatcher&&i.dispatcher.call(e,t,n),r&&!t.isPropagationStopped()&&!0===t.bubbles)si.call(null,r,t,n);else if(!r&&!t.defaultPrevented&&t.target&&t.target[t.type]){Kn.has(t.target)||Kn.set(t.target,{});var s=Kn.get(t.target);t.target[t.type]&&(s.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),s.disabled=!1)}return!t.defaultPrevented}function oi(e,t,n){if(Array.isArray(t))return ei(oi,e,t,n);var i=function i(){ri(e,t,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||Qn(),ii(e,t,i)}function ai(e,t,n){var i=function i(){ri(e,t,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||Qn(),ii(e,t,i)}var ci,li=Object.freeze({__proto__:null,fixEvent:ti,on:ii,off:ri,trigger:si,one:oi,any:ai}),ui=function(e,t,n){t.guid||(t.guid=Qn());var i=t.bind(e);return i.guid=n?n+"_"+t.guid:t.guid,i},di=function(e,t){var n=s.a.performance.now();return function(){var i=s.a.performance.now();i-n>=t&&(e.apply(void 0,arguments),n=i)}},hi=function(){};hi.prototype.allowedEvents_={},hi.prototype.addEventListener=hi.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},ii(this,e,t),this.addEventListener=n},hi.prototype.removeEventListener=hi.prototype.off=function(e,t){ri(this,e,t)},hi.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},oi(this,e,t),this.addEventListener=n},hi.prototype.any=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},ai(this,e,t),this.addEventListener=n},hi.prototype.dispatchEvent=hi.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=ti(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),si(this,e)},hi.prototype.queueTrigger=function(e){var t=this;ci||(ci=new Map);var n=e.type||e,i=ci.get(this);i||(i=new Map,ci.set(this,i));var r=i.get(n);i.delete(n),s.a.clearTimeout(r);var o=s.a.setTimeout(function(){i.delete(n),0===i.size&&(i=null,ci.delete(t)),t.trigger(e)},0);i.set(n,o)};var pi=function(e){return"function"==typeof e.name?e.name():"string"==typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e},fi=function(e){return e instanceof hi||!!e.eventBusEl_&&["on","one","off","trigger"].every(function(t){return"function"==typeof e[t]})},gi=function(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},mi=function(e,t,n){if(!e||!e.nodeName&&!fi(e))throw new Error("Invalid target for "+pi(t)+"#"+n+"; must be a DOM node or evented object.")},bi=function(e,t,n){if(!gi(e))throw new Error("Invalid event type for "+pi(t)+"#"+n+"; must be a non-empty string or array.")},yi=function(e,t,n){if("function"!=typeof e)throw new Error("Invalid listener for "+pi(t)+"#"+n+"; must be a function.")},vi=function(e,t,n){var i,r,s,o=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return o?(i=e.eventBusEl_,t.length>=3&&t.shift(),r=t[0],s=t[1]):(i=t[0],r=t[1],s=t[2]),mi(i,e,n),bi(r,e,n),yi(s,e,n),{isTargetingSelf:o,target:i,type:r,listener:s=ui(e,s)}},_i=function(e,t,n,i){mi(e,e,t),e.nodeName?li[t](e,n,i):e[t](n,i)},wi={on:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=vi(this,n,"on"),s=r.isTargetingSelf,o=r.target,a=r.type,c=r.listener;if(_i(o,"on",a,c),!s){var l=function(){return e.off(o,a,c)};l.guid=c.guid;var u=function(){return e.off("dispose",l)};u.guid=c.guid,_i(this,"on","dispose",l),_i(o,"on","dispose",u)}},one:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=vi(this,n,"one"),s=r.isTargetingSelf,o=r.target,a=r.type,c=r.listener;if(s)_i(o,"one",a,c);else{var l=function t(){e.off(o,a,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];c.apply(null,i)};l.guid=c.guid,_i(o,"one",a,l)}},any:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=vi(this,n,"any"),s=r.isTargetingSelf,o=r.target,a=r.type,c=r.listener;if(s)_i(o,"any",a,c);else{var l=function t(){e.off(o,a,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];c.apply(null,i)};l.guid=c.guid,_i(o,"any",a,l)}},off:function(e,t,n){if(!e||gi(e))ri(this.eventBusEl_,e,t);else{var i=e,r=t;mi(i,this,"off"),bi(r,this,"off"),yi(n,this,"off"),n=ui(this,n),this.off("dispose",n),i.nodeName?(ri(i,r,n),ri(i,"dispose",n)):fi(i)&&(i.off(r,n),i.off("dispose",n))}},trigger:function(e,t){if(mi(this.eventBusEl_,this,"trigger"),!gi(e&&"string"!=typeof e?e.type:e)){var n="Invalid event type for "+pi(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.";if(!e)throw new Error(n);(this.log||At).error(n)}return si(this.eventBusEl_,e,t)}};function ki(e,t){void 0===t&&(t={});var n=t.eventBusKey;if(n){if(!e[n].nodeName)throw new Error('The eventBusKey "'+n+'" does not refer to an element.');e.eventBusEl_=e[n]}else e.eventBusEl_=gn("span",{className:"vjs-event-bus"});return Lt(e,wi),e.eventedCallbacks&&e.eventedCallbacks.forEach(function(e){e()}),e.on("dispose",function(){e.off(),[e,e.el_,e.eventBusEl_].forEach(function(e){e&&Kn.has(e)&&Kn.delete(e)}),s.a.setTimeout(function(){e.eventBusEl_=null},0)}),e}var Ci={state:{},setState:function(e){var t,n=this;return"function"==typeof e&&(e=e()),Rt(e,function(e,i){n.state[i]!==e&&((t=t||{})[i]={from:n.state[i],to:e}),n.state[i]=e}),t&&fi(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function Si(e,t){return Lt(e,Ci),e.state=Lt({},e.state,t),"function"==typeof e.handleStateChanged&&fi(e)&&e.on("statechanged",e.handleStateChanged),e}var Ti=function(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toLowerCase()})},Pi=function(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toUpperCase()})};function Oi(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];
1return n.forEach(function(t){t&&Rt(t,function(t,n){jt(t)?(jt(e[n])||(e[n]={}),e[n]=Oi(e[n],t)):e[n]=t})}),e}var xi=s.a.Map?s.a.Map:function(){function e(){this.map_={}}var t=e.prototype;return t.has=function(e){return e in this.map_},t.delete=function(e){var t=this.has(e);return delete this.map_[e],t},t.set=function(e,t){return this.map_[e]=t,this},t.forEach=function(e,t){for(var n in this.map_)e.call(t,this.map_[n],n,this)},e}(),Ai=s.a.Set?s.a.Set:function(){function e(){this.set_={}}var t=e.prototype;return t.has=function(e){return e in this.set_},t.delete=function(e){var t=this.has(e);return delete this.set_[e],t},t.add=function(e){return this.set_[e]=1,this},t.forEach=function(e,t){for(var n in this.set_)e.call(t,n,n,this)},e}(),Ei=function(){function e(e,t,n){var i=this;if(this.player_=!e&&this.play?e=this:e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=Oi({},this.options_),t=this.options_=Oi(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){var r=e&&e.id&&e.id()||"no_player";this.id_=r+"_component_"+Qn()}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),t.className&&this.el_&&t.className.split(" ").forEach(function(e){return i.addClass(e)}),!1!==t.evented&&(ki(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),Si(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Ai,this.setIntervalIds_=new Ai,this.rafIds_=new Ai,this.namedRafs_=new xi,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(n),!1!==t.reportTouchActivity&&this.enableTouchActivity()}var t=e.prototype;return t.dispose=function(e){if(void 0===e&&(e={}),!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}},t.isDisposed=function(){return Boolean(this.isDisposed_)},t.player=function(){return this.player_},t.options=function(e){return e?(this.options_=Oi(this.options_,e),this.options_):this.options_},t.el=function(){return this.el_},t.createEl=function(e,t,n){return gn(e,t,n)},t.localize=function(e,t,n){void 0===n&&(n=e);var i=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),s=r&&r[i],o=i&&i.split("-")[0],a=r&&r[o],c=n;return s&&s[e]?c=s[e]:a&&a[e]&&(c=a[e]),t&&(c=c.replace(/\{(\d+)\}/g,function(e,n){var i=t[n-1],r=i;return void 0===i&&(r=e),r})),c},t.handleLanguagechange=function(){},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(e){return this.childIndex_[e]},t.getChild=function(e){if(e)return this.childNameIndex_[e]},t.getDescendant=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=t.reduce(function(e,t){return e.concat(t)},[]);for(var i=this,r=0;r<t.length;r++)if(!(i=i.getChild(t[r]))||!i.getChild)return;return i},t.addChild=function(t,n,i){var r,s;if(void 0===n&&(n={}),void 0===i&&(i=this.children_.length),"string"==typeof t){s=Pi(t);var o=n.componentClass||s;n.name=s;var a=e.getComponent(o);if(!a)throw new Error("Component "+o+" does not exist");if("function"!=typeof a)return null;r=new a(this.player_||this,n)}else r=t;if(r.parentComponent_&&r.parentComponent_.removeChild(r),this.children_.splice(i,0,r),r.parentComponent_=this,"function"==typeof r.id&&(this.childIndex_[r.id()]=r),(s=s||r.name&&Pi(r.name()))&&(this.childNameIndex_[s]=r,this.childNameIndex_[Ti(s)]=r),"function"==typeof r.el&&r.el()){var c=null;this.children_[i+1]&&(this.children_[i+1].el_?c=this.children_[i+1].el_:hn(this.children_[i+1])&&(c=this.children_[i+1])),this.contentEl().insertBefore(r.el(),c)}return r},t.removeChild=function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[Pi(e.name())]=null,this.childNameIndex_[Ti(e.name())]=null;var i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},t.initChildren=function(){var t=this,n=this.options_.children;if(n){var i,r=this.options_,s=e.getComponent("Tech");(i=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter(function(e){return!i.some(function(t){return"string"==typeof t?e===t:e===t.name})})).map(function(e){var i,r;return"string"==typeof e?r=n[i=e]||t.options_[i]||{}:(i=e.name,r=e),{name:i,opts:r}}).filter(function(t){var n=e.getComponent(t.opts.componentClass||Pi(t.name));return n&&!s.isTech(n)}
1).forEach(function(e){var n=e.name,i=e.opts;if(void 0!==r[n]&&(i=r[n]),!1!==i){!0===i&&(i={}),i.playerOptions=t.options_.playerOptions;var s=t.addChild(n,i);s&&(t[n]=s)}})}},t.buildCSSClass=function(){return""},t.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},t.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)},t.$=function(e,t){return zn(e,t||this.contentEl())},t.$$=function(e,t){return Fn(e,t||this.contentEl())},t.hasClass=function(e){return yn(this.el_,e)},t.addClass=function(e){vn(this.el_,e)},t.removeClass=function(e){_n(this.el_,e)},t.toggleClass=function(e,t){wn(this.el_,e,t)},t.show=function(){this.removeClass("vjs-hidden")},t.hide=function(){this.addClass("vjs-hidden")},t.lockShowing=function(){this.addClass("vjs-lock-showing")},t.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.getAttribute=function(e){return Sn(this.el_,e)},t.setAttribute=function(e,t){Tn(this.el_,e,t)},t.removeAttribute=function(e){Pn(this.el_,e)},t.width=function(e,t){return this.dimension("width",e,t)},t.height=function(e,t){return this.dimension("height",e,t)},t.dimensions=function(e,t){this.width(e,!0),this.height(t)},t.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t==t||(t=0),this.el_.style[e]=-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?t:"auto"===t?"":t+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var i=this.el_.style[e],r=i.indexOf("px");return-1!==r?parseInt(i.slice(0,r),10):parseInt(this.el_["offset"+Pi(e)],10)},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=Nt(this.el_,e),0===(t=parseFloat(t))||isNaN(t)){var n="offset"+Pi(e);t=this.el_[n]}return t},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.handleKeyDown=function(e){this.player_&&(d.a.isEventKey(e,"Tab")||e.stopPropagation(),this.player_.handleKeyDown(e))},t.handleKeyPress=function(e){this.handleKeyDown(e)},t.emitTapEvents=function(){var e,t=0,n=null;this.on("touchstart",function(i){1===i.touches.length&&(n={pageX:i.touches[0].pageX,pageY:i.touches[0].pageY},t=s.a.performance.now(),e=!0)}),this.on("touchmove",function(t){if(t.touches.length>1)e=!1;else if(n){var i=t.touches[0].pageX-n.pageX,r=t.touches[0].pageY-n.pageY;Math.sqrt(i*i+r*r)>10&&(e=!1)}});var i=function(){e=!1};this.on("touchleave",i),this.on("touchcancel",i),this.on("touchend",function(i){n=null,!0===e&&s.a.performance.now()-t<200&&(i.preventDefault(),this.trigger("tap"))})},t.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e,t=ui(this.player(),this.player().reportUserActivity);this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var n=function(n){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},t.setTimeout=function(e,t){var n,i=this;return e=ui(this,e),this.clearTimersOnDispose_(),n=s.a.setTimeout(function(){i.setTimeoutIds_.has(n)&&i.setTimeoutIds_.delete(n),e()},t),this.setTimeoutIds_.add(n),n},t.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),s.a.clearTimeout(e)),e},t.setInterval=function(e,t){e=ui(this,e),this.clearTimersOnDispose_();var n=s.a.setInterval(e,t);return this.setIntervalIds_.add(n),n},t.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),s.a.clearInterval(e)),e},t.requestAnimationFrame=function(e){var t,n=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=ui(this,e),t=s.a.requestAnimationFrame(function(){n.rafIds_.has(t)&&n.rafIds_.delete(t),e()}),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},t.requestNamedAnimationFrame=function(e,t){var n=this;if(!this.namedRafs_.has(e)){this.clearTimersOnDispose_(),t=ui(this,t);var i=this.requestAnimationFrame(function(){t(),n.namedRafs_.has(e)&&n.namedRafs_.delete(e)});return this.namedRafs_.set(e,i),e}},t.cancelNamedAnimationFrame=function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))},t.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_.delete(e),s.a.cancelAnimationFrame(e)),e):this.clearTimeout(e)},t.clearTimersOnDispose_=function(){var e=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEac
1h(function(t){var n=t[1];e[t[0]].forEach(function(t,i){return e[n](i)})}),e.clearingTimersOnDispose_=!1}))},e.registerComponent=function(t,n){if("string"!=typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var i=e.getComponent("Tech"),r=i&&i.isTech(n),s=e===n||e.prototype.isPrototypeOf(n.prototype);if(r||!s)throw new Error('Illegal component, "'+t+'"; '+(r?"techs must be registered using Tech.registerTech()":"must be a Component subclass")+".");t=Pi(t),e.components_||(e.components_={});var o=e.getComponent("Player");if("Player"===t&&o&&o.players){var a=o.players,c=Object.keys(a);if(a&&c.length>0&&c.map(function(e){return a[e]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,e.components_[Ti(t)]=n,n},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();function Mi(e,t,n,i){return function(e,t,n){if("number"!=typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}(e,i,n.length-1),n[i][t]}function Ii(e){var t;return t=void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:Mi.bind(null,"start",0,e),end:Mi.bind(null,"end",1,e)},s.a.Symbol&&s.a.Symbol.iterator&&(t[s.a.Symbol.iterator]=function(){return(e||[]).values()}),t}function Ri(e,t){return Array.isArray(e)?Ii(e):void 0===e||void 0===t?Ii():Ii([[e,t]])}function Li(e,t){var n,i,r=0;if(!t)return 0;e&&e.length||(e=Ri(0,0));for(var s=0;s<e.length;s++)n=e.start(s),(i=e.end(s))>t&&(i=t),r+=i-n;return r/t}function Di(e){if(e instanceof Di)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:Dt(e)&&("number"==typeof e.code&&(this.code=e.code),Lt(this,e)),this.message||(this.message=Di.defaultMessages[this.code]||"")}Ei.prototype.supportsRaf_="function"==typeof s.a.requestAnimationFrame&&"function"==typeof s.a.cancelAnimationFrame,Ei.registerComponent("Component",Ei),Di.prototype.code=0,Di.prototype.message="",Di.prototype.status=null,Di.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Di.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var ji=0;ji<Di.errorTypes.length;ji++)Di[Di.errorTypes[ji]]=ji,Di.prototype[Di.errorTypes[ji]]=ji;function Ni(e){return null!=e&&"function"==typeof e.then}function Vi(e){Ni(e)&&e.then(null,function(e){})}var zi=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,n,i){return e[n]&&(t[n]=e[n]),t},{cues:e.cues&&Array.prototype.map.call(e.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})},Fi=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).handleKeyDown_=function(e){return i.handleKeyDown(e)},i.close_=function(e){return i.close(e)},i.opened_=i.hasBeenOpened_=i.hasBeenFilled_=!1,i.closeable(!i.options_.uncloseable),i.content(i.options_.content),i.contentEl_=gn("div",{className:"vjs-modal-dialog-content"},{role:"document"}),i.descEl_=gn("p",{className:"vjs-modal-dialog-description vjs-control-text",id:i.el().getAttribute("aria-describedby")}),mn(i.descEl_,i.description()),i.el_.appendChild(i.descEl_),i.el_.appendChild(i.contentEl_),i}g()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},n.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-modal-dialog vjs-hidden "+e.prototype.buildCSSClass.call(this)},n.label=function(){return this.localize(this.options_.label||"Modal Window")},n.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},n.open=function(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpe
vendor: 7,088 bytes, line 1
1n&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},n.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_},n.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},n.closeable=function(e){if("boolean"==typeof e){var t=this.closeable_=!!e,n=this.getChild("closeButton");if(t&&!n){var i=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=i,this.on(n,"close",this.close_)}!t&&n&&(this.off(n,"close",this.close_),this.removeChild(n),n.dispose())}return this.closeable_},n.fill=function(){this.fillWith(this.content())},n.fillWith=function(e){var t=this.contentEl(),n=t.parentNode,i=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),jn(t,e),this.trigger("modalfill"),i?n.insertBefore(t,i):n.appendChild(t);var r=this.getChild("closeButton");r&&n.appendChild(r.el_)},n.empty=function(){this.trigger("beforemodalempty"),Rn(this.contentEl()),this.trigger("modalempty")},n.content=function(e){return void 0!==e&&(this.content_=e),this.content_},n.conditionalFocus_=function(){var e=a.a.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())},n.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},n.handleKeyDown=function(e){if(e.stopPropagation(),d.a.isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();if(d.a.isEventKey(e,"Tab")){for(var t,n=this.focusableEls_(),i=this.el_.querySelector(":focus"),r=0;r<n.length;r++)if(i===n[r]){t=r;break}a.a.activeElement===this.el_&&(t=0),e.shiftKey&&0===t?(n[n.length-1].focus(),e.preventDefault()):e.shiftKey||t!==n.length-1||(n[0].focus(),e.preventDefault())}},n.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,function(e){return(e instanceof s.a.HTMLAnchorElement||e instanceof s.a.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof s.a.HTMLInputElement||e instanceof s.a.HTMLSelectElement||e instanceof s.a.HTMLTextAreaElement||e instanceof s.a.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof s.a.HTMLIFrameElement||e instanceof s.a.HTMLObjectElement||e instanceof s.a.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")})},t}(Ei);Fi.prototype.options_={pauseOnOpen:!0,temporary:!0},Ei.registerComponent("ModalDialog",Fi);var Bi=function(e){function t(t){var n;void 0===t&&(t=[]),(n=e.call(this)||this).tracks_=[],Object.defineProperty(p()(n),"length",{get:function(){return this.tracks_.length}});for(var i=0;i<t.length;i++)n.addTrack(t[i]);return n}g()(t,e);var n=t.prototype;return n.addTrack=function(e){var t=this,n=this.tracks_.length;""+n in this||Object.defineProperty(this,n,{get:function(){return this.tracks_[n]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=function(){t.trigger({track:e,type:"labelchange",target:t})},fi(e)&&e.addEventListener("labelchange",e.labelchange_)},n.removeTrack=function(e){for(var t,n=0,i=this.length;n<i;n++)if(this[n]===e){(t=this[n]).off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})},n.getTrackById=function(e){for(var t=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===e){t=r;break}}return t},t}(hi);for(var qi in Bi.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},Bi.prototype.allowedEvents_)Bi.prototype["on"+qi]=null;var Ui=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].enabled=!1)},Hi=function(e){function t(t){var n;void 0===t&&(t=[]);for(var i=t.length-1;i>=0;i--)if(t[i].enabled){Ui(t,t[i]);break}return(n=e.call(this,t)||this).changing_=!1,n}g()(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.enabled&&Ui(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.enabledChange_=function(){n.changing_||(n.changing_=!0,Ui(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("enabledchange",t.enabledChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)},t}(Bi),Wi=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].selected=!1)},Gi=function(e){function t(t){var n;void 0===t&&(t=[]);for(var i=t.length-1;i>=0;i--)if(t[i].selected){Wi(t,t[i]);break}return(n=e.call(this,t)||this).changing_=!1,Object.defineProperty(p()(n),"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),n}g()(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.selected&&Wi(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.selectedChange_=function(){n.changing_||(n.changing_=!0,Wi(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("selectedchange",t.selectedChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.selectedChange_&&(t.removeEventListener("selectedchange",t.selectedChange_),t.selectedChange_=null)},t}(Bi),Yi=function(e){function t(){return e.apply(this,arguments)||this}g()(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;e.prototype.addTrack.call(this,t),this.queueChange_||(this.queueChange_=function(){return n.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return n.trigger("selectedlanguagechange")}),t.addEventListener("modechange",this.queueChange_),-1===["metadata","chapters"].indexOf(t.kind)&&t.addEventListener("modechange",this.triggerSelectedlanguagechange_)},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&(this.queueChange_&&t.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&t.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},t}(Bi),$i=function(){function e(e){void 0===e&&(e=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var t=0,n=e.length;t<n;t++)this.addTrackElement_(e[t])}var t=e.prototype;return t.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}
1),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},t.getTrackElementByTrack_=function(e){for(var t,n=0,i=this.trackElements_.length;n<i;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t},t.removeTrackElement_=function(e){for(var t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"==typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"==typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}},e}(),Zi=function(){function e(t){e.prototype.setCues_.call(this,t),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var t=e.prototype;return t.setCues_=function(e){var t=this.length||0,n=0,i=e.length;this.cues_=e,this.length_=e.length;var r=function(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})};if(t<i)for(n=t;n<i;n++)r.call(this,n)},t.getCueById=function(e){for(var t=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===e){t=r;break}}return t},e}(),Qi={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Xi={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Ki={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Ji={disabled:"disabled",hidden:"hidden",showing:"showing"},er=function(e){function t(t){var n;void 0===t&&(t={}),n=e.call(this)||this;var i={id:t.id||"vjs_track_"+Qn(),kind:t.kind||"",language:t.language||""},r=t.label||"",s=function(e){Object.defineProperty(p()(n),e,{get:function(){return i[e]},set:function(){}})};for(var o in i)s(o);return Object.defineProperty(p()(n),"label",{get:function(){return r},set:function(e){e!==r&&(r=e,this.trigger("labelchange"))}}),n}return g()(t,e),t}(hi),tr=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],n=a.a.createElement("a");n.href=e;for(var i={},r=0;r<t.length;r++)i[t[r]]=n[t[r]];return"http:"===i.protocol&&(i.host=i.host.replace(/:80$/,"")),"https:"===i.protocol&&(i.host=i.host.replace(/:443$/,"")),i.protocol||(i.protocol=s.a.location.protocol),i.host||(i.host=s.a.location.host),i},nr=function(e){if(!e.match(/^https?:\/\//)){var t=a.a.createElement("a");t.href=e,e=t.href}return e},ir=function(e){if("string"==typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(t)return t.pop().toLowerCase()}return""},rr=function(e,t){void 0===t&&(t=s.a.location);var n=tr(e);return(":"===n.protocol?t.protocol:n.protocol)+n.host!==t.protocol+t.host},sr=Object.freeze({__proto__:null,parseUrl:tr,getAbsoluteURL:nr,getFileExtension:ir,isCrossOrigin:rr}),or=function(e,t){var n=new s.a.WebVTT.Parser(s.a,s.a.vttjs,s.a.WebVTT.StringDecoder()),i=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){i.push(e)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),i.length>0&&(s.a.console&&s.a.console.groupCollapsed&&s.a.console.groupCollapsed("Text Track parsing errors for "+t.src),i.forEach(function(e){return At.error(e)}),s.a.console&&s.a.console.groupEnd&&s.a.console.groupEnd()),n.flush()},ar=function(e,t){var n={uri:e},i=rr(e);i&&(n.cors=i);var r="use-credentials"===t.tech_.crossOrigin();r&&(n.withCredentials=r),v()(n,ui(this,function(e,n,i){if(e)return At.error(e,n);t.loaded_=!0,"function"!=typeof s.a.WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],function(e){if("vttjserror"!==e.type)return or(i,t);At.error("vttjs failed to load, stopping trying to process "+t.src)}):or(i,t)}))},cr=function(e){function t(t){var n;if(void 0===t&&(t={}),!t.tech)throw new Error("A tech was not provided.");var i=Oi(t,{kind:Ki[t.kind]||"subtitles",language:t.language||t.srclang||""}),r=Ji[i.mode]||"disabled",s=i.default;"metadata"!==i.kind&&"chapters"!==i.kind||(r="hidden"),(n=e.call(this,i)||this).tech_=i.tech,n.cues_=[],n.activeCues_=[],n.preload_=!1!==n.tech_.preloadTextTracks;var o=new Zi(n.cues_),a=new Zi(n.activeCues_),c=!1;return n.timeupdateHandler=ui(p()(n),function(e){void 0===e&&(e={}),this.tech_.isDisposed()||(this.tech_.isReady_?(this.activeCues=this.activeCues,c&&(this.trigger("cuechange"),c=!1),"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))):"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)))}),n.tech_.one("dispose",function(){n.stopTracking()}),"disabled"!==r&&n.startTracking(),Object.defineProperties(p()(n),{default:{get:function(){return s},set:function(){}},mode:{get:function(){return r},set:function(e){Ji[e]&&r!==e&&(r=e,this.preload_||"disabled"===r||0!==this.cues.length||ar(this.src,this),this.stopTracking(),"disabled"!==r&&this.startTracking(),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?o:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return a;for(var e=this.tech_.currentTime(),t=[],n=0,i=this.cues.length;n<i;n++){var r=this.cues[n];(r.startTime<=e&&r.endTime>=e||r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e)&&t.push(r)}if(c=!1,t.length!==this.activeCues_.length)c=!0;else for(var s=0;s<t.length;s++)-1===this.activeCues_.indexOf(t[s])&&(c=!0);return this.activeCues_=t,a.setCues_(this.activeCues_),a},set:function(){}}}),i.src?(n.src=i.src,n.preload_||(n.loaded_=!0),(n.preload_||"subtitles"!==i.kind&&"captions"!==i.kind)&&ar(n.src,p()(n))):n.loaded_=!0,n}g()(t,e);var n=t.prototype;return n.startTracking=function(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)},n.stopTracking=function(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)},n.addCue=function(e){var t=e;if(s.a.vttjs&&!(e instanceof s.a.vttjs.VTTCue)){for(var n in t=new s.a.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}for(var i=this.tech_.textTracks(),r=0;r<i.length;r++)i[r]!==this&&i[r].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},n.removeCue=function(e){for(var t=this.cues_.length;t--;){var n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}},t}(er);cr.prototype.allowedEvents_={cuechange:"cuechange"};var lr=function(e){function t(t){var n;void 0===t&&(t={});var i=Oi(t,{kind:Xi[t.kind]||""});n=e.call(this,i)||this;var r=!1;return Object.defineProperty(p()(n),"enabled",{get:function(){return r},set:function(e){"boolean"==typeof e&&e!==r&&(r=e,this.trigger("enabledchange"))}}),i.enabled&&(n.enabled=i.enabled),n.loaded_=!0,n}return g()(t,e),t}(er),ur=function(e){function t(t){var n;void 0===t&&(t={});var i=Oi(t,{kind:Qi[t.kind]||""});n=e.call(this,i)||this;var r=!1;return Object.defineProperty(p()(n),"selected",{get:function(){return r},set:function(e){"boolean"==typeof e&&e!==r&&(r=e,this.trigger("selectedchange"))}}),i.selected&&(n.selected=i.selected),n}return g()(t,e),t}(er),dr=function(e){function t(t){var n,i;void 0===t&&(t={}),n=e.call(this)||this;var r=new cr(t);return n.kind=r.kind,n.src=r.src,n.srclang=r.language,n.label=r.label,n.default=r.default,Object.defineProperties(p()(n),{readyState:{get:function(){return i}},track:{get:function(){return r}}}),i=0,r.addEventListener("loadeddata",function(){i=2,n.trigger({type:"load",target:p()(n)})}),n}return g()(t,e),t}(hi);dr.prototype.allowedEvents_={load:"load"},dr.NONE=0,dr.LOADING=1,dr.LOADED=2,dr.ERROR=3;
vendor: 3,927 bytes, line 1
1var hr={audio:{ListClass:Hi,TrackClass:lr,capitalName:"Audio"},video:{ListClass:Gi,TrackClass:ur,capitalName:"Video"},text:{ListClass:Yi,TrackClass:cr,capitalName:"Text"}};Object.keys(hr).forEach(function(e){hr[e].getterName=e+"Tracks",hr[e].privateName=e+"Tracks_"});var pr={remoteText:{ListClass:Yi,TrackClass:cr,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:$i,TrackClass:dr,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},fr=l()({},hr,pr);pr.names=Object.keys(pr),hr.names=Object.keys(hr),fr.names=[].concat(pr.names).concat(hr.names);var gr=function(e){function t(t,n){var i;return void 0===t&&(t={}),void 0===n&&(n=function(){}),t.reportTouchActivity=!1,(i=e.call(this,null,t,n)||this).onDurationChange_=function(e){return i.onDurationChange(e)},i.trackProgress_=function(e){return i.trackProgress(e)},i.trackCurrentTime_=function(e){return i.trackCurrentTime(e)},i.stopTrackingCurrentTime_=function(e){return i.stopTrackingCurrentTime(e)},i.disposeSourceHandler_=function(e){return i.disposeSourceHandler(e)},i.queuedHanders_=new Set,i.hasStarted_=!1,i.on("playing",function(){this.hasStarted_=!0}),i.on("loadstart",function(){this.hasStarted_=!1}),fr.names.forEach(function(e){var n=fr[e];t&&t[n.getterName]&&(i[n.privateName]=t[n.getterName])}),i.featuresProgressEvents||i.manualProgressOn(),i.featuresTimeupdateEvents||i.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(e){!1===t["native"+e+"Tracks"]&&(i["featuresNative"+e+"Tracks"]=!1)}),!1===t.nativeCaptions||!1===t.nativeTextTracks?i.featuresNativeTextTracks=!1:!0!==t.nativeCaptions&&!0!==t.nativeTextTracks||(i.featuresNativeTextTracks=!0),i.featuresNativeTextTracks||i.emulateTextTracks(),i.preloadTextTracks=!1!==t.preloadTextTracks,i.autoRemoteTextTracks_=new fr.text.ListClass,i.initTrackListeners(),t.nativeControlsForTouch||i.emitTapEvents(),i.constructor&&(i.name_=i.constructor.name||"Unknown Tech"),i}g()(t,e);var n=t.prototype;return n.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",function(){return t.setTimeout(function(){return t.triggerSourceset(e)},1)}),this.trigger({src:e,type:"sourceset"})},n.manualProgressOn=function(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)},n.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)},n.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(ui(this,function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()}),500)},n.onDurationChange=function(e){this.duration_=this.duration()},n.buffered=function(){return Ri(0,0)},n.bufferedPercent=function(){return Li(this.buffered(),this.duration_)},n.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},n.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)},n.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)},n.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},n.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.dispose=function(){this.clearTracks(hr.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},n.clearTracks=function(e){var t=this;
1(e=[].concat(e)).forEach(function(e){for(var n=t[e+"Tracks"]()||[],i=n.length;i--;){var r=n[i];"text"===e&&t.removeRemoteTextTrack(r),n.removeTrack(r)}})},n.cleanupAutoTextTracks=function(){for(var e=this.autoRemoteTextTracks_||[],t=e.length;t--;)this.removeRemoteTextTrack(e[t])},n.reset=function(){},n.crossOrigin=function(){},n.setCrossOrigin=function(){},n.error=function(e){return void 0!==e&&(this.error_=new Di(e),this.trigger("error")),this.error_},n.played=function(){return this.hasStarted_?Ri(0,0):Ri()},n.play=function(){},n.setScrubbing=function(){},n.scrubbing=function(){},n.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.initTrackListeners=function(){var e=this;hr.names.forEach(function(t){var n=function(){e.trigger(t+"trackchange")},i=e[hr[t].getterName]();i.addEventListener("removetrack",n),i.addEventListener("addtrack",n),e.on("dispose",function(){i.removeEventListener("removetrack",n),i.removeEventListener("addtrack",n)})})},n.addWebVttScript_=function(){var e=this;if(!s.a.WebVTT)if(a.a.body.contains(this.el())){if(!this.options_["vtt.js"]&&jt(w.a)&&Object.keys(w.a).length>0)return void this.trigger("vttjsloaded");var t=a.a.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",function(){t.onload=null,t.onerror=null}),s.a.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},n.emulateTextTracks=function(){var e=this,t=this.textTracks(),n=this.remoteTextTracks(),i=function(e){return t.addTrack(e.track)},r=function(e){return t.removeTrack(e.track)};n.on("addtrack",i),n.on("removetrack",r),this.addWebVttScript_();var s=function(){return e.trigger("texttrackchange")},o=function(){s();for(var e=0;e<t.length;e++){var n=t[e];n.removeEventListener("cuechange",s),"showing"===n.mode&&n.addEventListener("cuechange",s)}};o(),t.addEventListener("change",o),t.addEventListener("addtrack",o),t.addEventListener("removetrack",o),this.on("dispose",function(){n.off("addtrack",i),n.off("removetrack",r),t.removeEventListener("change",o),t.removeEventListener("addtrack",o),t.removeEventListener("removetrack",o);for(var e=0;e<t.length;e++)t[e].removeEventListener("cuechange",s)})},n.addTextTrack=function(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return function(e,t,n,i,r){void 0===r&&(r={});var s=e.textTracks();r.kind=t,n&&(r.label=n),i&&(r.language=i),r.tech=e;var o=new fr.text.TrackClass(r);return s.addTrack(o),o}(this,e,t,n)},n.createRemoteTextTrack=function(e){var t=Oi(e,{tech:this});return new pr.remoteTextEl.TrackClass(t)},n.addRemoteTextTrack=function(e,t){var n=this;void 0===e&&(e={});var i=this.createRemoteTextTrack(e);return!0!==t&&!1!==t&&(At.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),t=!0),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),!0!==t&&this.ready(function(){return n.autoRemoteTextTracks_.addTrack(i.track)}),i},n.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},n.getVideoPlaybackQuality=function(){return{}},n.requestPictureInPicture=function(){var e=this.options_.Promise||s.a.Promise;if(e)return e.reject()},n.disablePictureInPicture=function(){return!0},n.setDisablePictureInPicture=function(){},n.requestVideoFrameCallback=function(e){var t=this,n=Qn();return!this.isReady_||this.paused()?(this.queuedHanders_.add(n),this.one("playing",function(){t.queuedHanders_.has(n)&&(t.queuedH
1anders_.delete(n),e())})):this.requestNamedAnimationFrame(n,e),n},n.cancelVideoFrameCallback=function(e){this.queuedHanders_.has(e)?this.queuedHanders_.delete(e):this.cancelNamedAnimationFrame(e)},n.setPoster=function(){},n.playsinline=function(){},n.setPlaysinline=function(){},n.overrideNativeAudioTracks=function(){},n.overrideNativeVideoTracks=function(){},n.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,n){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=Pi(e),t.techs_[e]=n,t.techs_[Ti(e)]=n,"Tech"!==e&&t.defaultTechOrder_.push(e),n},t.getTech=function(e){if(e)return t.techs_&&t.techs_[e]?t.techs_[e]:(e=Pi(e),s.a&&s.a.videojs&&s.a.videojs[e]?(At.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),s.a.videojs[e]):void 0)},t}(Ei);fr.names.forEach(function(e){var t=fr[e];gr.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),gr.prototype.featuresVolumeControl=!0,gr.prototype.featuresMuteControl=!0,gr.prototype.featuresFullscreenResize=!1,gr.prototype.featuresPlaybackRate=!1,gr.prototype.featuresProgressEvents=!1,gr.prototype.featuresSourceset=!1,gr.prototype.featuresTimeupdateEvents=!1,gr.prototype.featuresNativeTextTracks=!1,gr.prototype.featuresVideoFrameCallback=!1,gr.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var i=e.sourceHandlers;
vendor: 4,544 bytes, line 1
1i||(i=e.sourceHandlers=[]),void 0===n&&(n=i.length),i.splice(n,0,t)},e.canPlayType=function(t){for(var n,i=e.sourceHandlers||[],r=0;r<i.length;r++)if(n=i[r].canPlayType(t))return n;return""},e.selectSourceHandler=function(t,n){for(var i=e.sourceHandlers||[],r=0;r<i.length;r++)if(i[r].canHandleSource(t,n))return i[r];return null},e.canPlaySource=function(t,n){var i=e.selectSourceHandler(t,n);return i?i.canHandleSource(t,n):""},["seekable","seeking","duration"].forEach(function(e){var t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(t){var n=e.selectSourceHandler(t,this.options_);n||(e.nativeSourceHandler?n=e.nativeSourceHandler:At.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),n!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=n.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},Ei.registerComponent("Tech",gr),gr.registerTech("Tech",gr),gr.defaultTechOrder_=[];var mr={},br={},yr={};function vr(e,t,n){e.setTimeout(function(){return Tr(t,mr[t.type],n,e)},1)}function _r(e,t,n,i){void 0===i&&(i=null);var r="call"+Pi(n),s=e.reduce(Sr(r),i),o=s===yr,a=o?null:t[n](s);return function(e,t,n,i){for(var r=e.length-1;r>=0;r--){var s=e[r];s[t]&&s[t](i,n)}}(e,n,a,o),a}var wr={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},kr={setCurrentTime:1,setMuted:1,setVolume:1},Cr={play:1,pause:1};function Sr(e){return function(t,n){return t===yr?yr:n[e]?n[e](t):t}}function Tr(e,t,n,i,r,s){void 0===e&&(e={}),void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===s&&(s=!1);var o=t[0],a=t.slice(1);if("string"==typeof o)Tr(e,mr[o],n,i,r,s);else if(o){var c=function(e,t){var n=br[e.id()],i=null;if(null==n)return i=t(e),br[e.id()]=[[t,i]],i;for(var r=0;r<n.length;r++){var s=n[r];s[0]===t&&(i=s[1])}return null===i&&(i=t(e),n.push([t,i])),i}(i,o);if(!c.setSource)return r.push(c),Tr(e,a,n,i,r,s);c.setSource(Lt({},e),function(t,o){if(t)return Tr(e,a,n,i,r,s);r.push(c),Tr(o,e.type===o.type?a:mr[o.type],n,i,r,s)})}else a.length?Tr(e,a,n,i,r,s):s?n(e,r):Tr(e,mr["*"],n,i,r,!0)}var Pr={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},Or=function(e){void 0===e&&(e="");var t=ir(e);return Pr[t.toLowerCase()]||""},xr=function e(t){if(Array.isArray(t)){var n=[];t.forEach(function(t){t=e(t),Array.isArray(t)?n=n.concat(t):Dt(t)&&n.push(t)}),t=n}else t="string"==typeof t&&t.trim()?[Ar({src:t})]:Dt(t)&&"string"==typeof t.src&&t.src&&t.src.trim()?[Ar(t)]:[];return t};function Ar(e){if(!e.type){var t=Or(e.src);t&&(e.type=t)}return e}var Er=function(e){function t(t,n,i){var r,s=Oi({createEl:!1},n);if(r=e.call(this,t,s,i)||this,n.playerOptions.sources&&0!==n.playerOptions.sources.length)t.src(n.playerOptions.sources);else for(var o=0,a=n.playerOptions.techOrder;o<a.length;o++){var c=Pi(a[o]),l=gr.getTech(c);if(c||(l=Ei.getComponent(c)),l&&l.isSupported()){t.loadTech_(c);break}}return r}return g()(t,e),t}(Ei);Ei.registerComponent("MediaLoader",Er);var Mr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).options_.controlText&&i.controlText(i.options_.controlText),i.handleMouseOver_=function(e){return i.handleMouseOver(e)},i.handleMouseOut_=function(e){return i.handleMouseOut(e)},i.handleClick_=function(e){return i.handleClick(e)},i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.emitTapEvents(),i.enable(),i}g()(t,e);var n=t.prototype;return n.createEl=function(e,t,n){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={}),t=Lt({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&At.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),n=Lt({role:"button"},n),this.tabIndex_=t.tabIndex;
1var i=gn(e,t,n);return i.appendChild(gn("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i},n.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},n.createControlTextEl=function(e){return this.controlTextEl_=gn("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},n.controlText=function(e,t){if(void 0===t&&(t=this.el()),void 0===e)return this.controlText_||"Need Text";var n=this.localize(e);this.controlText_=e,mn(this.controlTextEl_,n),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",n)},n.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},n.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))},n.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)},n.handleLanguagechange=function(){this.controlText(this.controlText_)},n.handleClick=function(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},n.handleKeyDown=function(t){d.a.isEventKey(t,"Space")||d.a.isEventKey(t,"Enter")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(Ei);Ei.registerComponent("ClickableComponent",Mr),Ei.registerComponent("PosterImage",function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update(),i.update_=function(e){return i.update(e)},t.on("posterchange",i.update_),i}g()(t,e);var n=t.prototype;return n.dispose=function(){this.player().off("posterchange",this.update_),e.prototype.dispose.call(this)},n.createEl=function(){return gn("div",{className:"vjs-poster",tabIndex:-1})},n.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},n.setSrc=function(e){var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t},n.handleClick=function(e){if(this.player_.controls()){var t=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;!this.player_.tech(!0)||(Jt||Qt)&&t||this.player_.tech(!0).focus(),this.player_.paused()?Vi(this.player_.play()):this.player_.pause()}},t}(Mr));var Ir={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function Rr(e,t){var n;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function Lr(e,t,n){try{e.style[t]=n}catch(i){return}}Ei.registerComponent("TextTrackDisplay",function(e){function t(t,n,i){var r;r=e.call(this,t,n,i)||this;var o=function(e){return r.updateDisplay(e)};return t.on("loadstart",function(e){return r.toggleDisplay(e)}),t.on("texttrackchange",o),t.on("loadedmetadata",function(e){return r.preselectTrack(e)}),t.ready(ui(p()(r),function(){if(t.tech_&&t.tech_.featuresNativeTextTracks)this.hide();else{t.on("fullscreenchange",o),t.on("playerresize",o),s.a.addEventListener("orientationchange",o),t.on("dispose",function(){return s.a.removeEventListener("orientationchange",o)});for(var e=this.options_.playerOptions.tracks||[],n=0;n<e.length;n++)this.player_.addRemoteTextTrack(e[n],!0);this.preselectTrack()}})),r}g()(t,e);var n=t.prototype;return n.preselectTrack=function(){for(var e,t,n,i={captions:1,subtitles:1},r=this.player_.textTracks(),s=this.player_.cache_.selectedLanguage,o=0;o<r.length;o++){var a=r[o];s&&s.enabled&&s.language&&s.language===a.language&&a.kind in i?a.kind===s.kind?n=a:n||(n=a):s&&!s.enabled?(n=null,e=null,t=null):a.default&&("descriptions"!==a.kind||e?a.kind in i&&!t&&(t=a):e=a)}n?n.mode="showing":t?t.mode="showing":e&&(e.mode="showing")},n.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})},n.clearDisplay=function(){"function"==typeof s.a.WebVTT&&s.a.WebVTT.processCues(s.a,[],this.el_)},n.updateDisplay=function(){var e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;
1if(this.clearDisplay(),t){for(var n=[],i=0;i<e.length;++i){var r=e[i];"showing"===r.mode&&n.push(r)}this.updateForTrack(n)}else{for(var s=null,o=null,a=e.length;a--;){var c=e[a];"showing"===c.mode&&("descriptions"===c.kind?s=c:o=c)}o?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(o)):s&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(s))}},n.updateDisplayState=function(e){for(var t=this.player_.textTrackSettings.getValues(),n=e.activeCues,i=n.length;i--;){var r=n[i];if(r){var o=r.displayState;if(t.color&&(o.firstChild.style.color=t.color),t.textOpacity&&Lr(o.firstChild,"color",Rr(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(o.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&Lr(o.firstChild,"backgroundColor",Rr(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?Lr(o,"backgroundColor",Rr(t.windowColor,t.windowOpacity)):o.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?o.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===t.edgeStyle?o.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===t.edgeStyle?o.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===t.edgeStyle&&(o.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),t.fontPercent&&1!==t.fontPercent){var a=s.a.parseFloat(o.style.fontSize);o.style.fontSize=a*t.fontPercent+"px",o.style.height="auto",o.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?o.firstChild.style.fontVariant="small-caps":o.firstChild.style.fontFamily=Ir[t.fontFamily])}}},n.updateForTrack=function(e){if(Array.isArray(e)||(e=[e]),"function"==typeof s.a.WebVTT&&!e.every(function(e){return!e.activeCues})){for(var t=[],n=0;n<e.length;++n)for(var i=e[n],r=0;r<i.activeCues.length;++r)t.push(i.activeCues[r]);s.a.WebVTT.processCues(s.a,t,this.el_);for(var o=0;o<e.length;++o){for(var a=e[o],c=0;c<a.activeCues.length;++c){var l=a.activeCues[c].displayState;vn(l,"vjs-text-track-cue"),vn(l,"vjs-text-track-cue-"+(a.language?a.language:o)),a.language&&Tn(l,"lang",a.language)}this.player_.textTrackSettings&&this.updateDisplayState(a)}}},t}(Ei));var Dr=function(e){function t(){return e.apply(this,arguments)||this}return g()(t,e),t.prototype.createEl=function(){var t=this.player_.isAudio(),n=this.localize(t?"Audio Player":"Video Player"),i=gn("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[n])}),r=e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(i),r},t}(Ei);Ei.registerComponent("LoadingSpinner",Dr);var jr=function(e){function t(){return e.apply(this,arguments)||this}g()(t,e);var n=t.prototype;return n.createEl=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var i=gn("button",t=Lt({className:this.buildCSSClass()},t),n=Lt({type:"button"},n));return i.appendChild(gn("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i},n.addChild=function(e,t){return void 0===t&&(t={}),At.warn("Adding an actionable (user controllable) child to a Button ("+this.constructor.name+") is not supported; use a ClickableComponent instead."),Ei.prototype.addChild.call(this,e,t)},n.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},n.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},n.handleKeyDown=function(t){d.a.isEventKey(t,"Space")||d.a.isEventKey(t,"Enter")?t.stopPropagation():e.prototype.handleKeyDown.call(this,t)},t}(Mr);Ei.registerComponent("Button",jr);var Nr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).mouseused_=!1,i.on("mousedown",function(e){return i.handleMouseDown(e)}),i}g()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-big-play-button"},n.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY){var n=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;return Vi(t),void(!this.player_.tech(!0)||(Jt||Qt)&&n||this.player_.tech(!0).focus())}var i=this.player_.getChild("controlBar"),r=i&&i.getChild("playToggle");
1if(r){var s=function(){return r.focus()};Ni(t)?t.then(s,function(){}):this.setTimeout(s,1)}else this.player_.tech(!0).focus()},n.handleKeyDown=function(t){this.mouseused_=!1,e.prototype.handleKeyDown.call(this,t)},n.handleMouseDown=function(e){this.mouseused_=!0},t}(jr);Nr.prototype.controlText_="Play Video",Ei.registerComponent("BigPlayButton",Nr),Ei.registerComponent("CloseButton",function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).controlText(n&&n.controlText||i.localize("Close")),i}g()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},n.handleKeyDown=function(t){d.a.isEventKey(t,"Esc")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(jr));var Vr=function(e){function t(t,n){var i;return void 0===n&&(n={}),i=e.call(this,t,n)||this,n.replay=void 0===n.replay||n.replay,i.on(t,"play",function(e){return i.handlePlay(e)}),i.on(t,"pause",function(e){return i.handlePause(e)}),n.replay&&i.on(t,"ended",function(e){return i.handleEnded(e)}),i}g()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.player_.paused()?Vi(this.player_.play()):this.player_.pause()},n.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},n.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n.handleEnded=function(e){var t=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",function(e){return t.handleSeeked(e)})},t}(jr);Vr.prototype.controlText_="Play",Ei.registerComponent("PlayToggle",Vr);var zr=function(e,t){e=e<0?0:e;var n=Math.floor(e%60),i=Math.floor(e/60%60),r=Math.floor(e/3600),s=Math.floor(t/60%60),o=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=i=n="-"),(r=r>0||o>0?r+":":"")+(i=((r||s>=10)&&i<10?"0"+i:i)+":")+(n<10?"0"+n:n)},Fr=zr;function Br(e,t){return void 0===t&&(t=e),Fr(e,t)}var qr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,["timeupdate","ended"],function(e){return i.updateContent(e)}),i.updateTextNode_(),i}g()(t,e);var n=t.prototype;return n.createEl=function(){var t=this.buildCSSClass(),n=e.prototype.createEl.call(this,"div",{className:t+" vjs-time-control vjs-control"}),i=gn("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+"\xa0"},{role:"presentation"});return n.appendChild(i),this.contentEl_=gn("span",{className:t+"-display"},{"aria-live":"off",role:"presentation"}),n.appendChild(this.contentEl_),n},n.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},n.updateTextNode_=function(e){var t=this;void 0===e&&(e=0),e=Br(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",function(){if(t.contentEl_){var e=t.textNode_;e&&t.contentEl_.firstChild!==e&&(e=null,At.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),t.textNode_=a.a.createTextNode(t.formattedTime_),t.textNode_&&(e?t.contentEl_.replaceChild(t.textNode_,e):t.contentEl_.appendChild(t.textNode_))}}))},n.updateContent=function(e){},t}(Ei);qr.prototype.labelText_="Time",qr.prototype.controlText_="Time",Ei.registerComponent("TimeDisplay",qr);var Ur=function(e){function t(){return e.apply(this,arguments)||this}g()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-current-time"},n.updateContent=function(e){var t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)},t}(qr);Ur.prototype.labelText_="Current Time",Ur.prototype.controlText_="Current Time",Ei.registerComponent("CurrentTimeDisplay",Ur);var Hr=function(e){function t(t,n){var i,r=function(e){return i.updateContent(e)};return(i=e.call(this,t,n)||this).on(t,"durationchange",r),i.on(t,"loadstart",r),i.on(t,"loadedmetadata",r),i}g()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-duration"},n.updateContent=function(e){var t=this.player_.duration();this.updateTextNode_(t)},t}(qr);Hr.prototype.labelText_="Duration",Hr.prototype.controlText_="Duration",Ei.registerComponent("DurationDisplay",Hr);var Wr=function(e){function t(){return e.apply(this,arguments)||this}return g()(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),n=e.prototype.createEl.call(this,"div"),i=e.prototype.createEl.call(this,"span",{textContent:"/"});return n.appendChild(i),t.appendChild(n),t},t}(Ei);Ei.registerComponent("TimeDivider",Wr);var Gr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,"durationchange",function(e){return i.updateContent(e)}),i}g()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-remaining-time"},n.createEl=function(){var t=e.prototype.createEl.call(this);return!1!==this.options_.displayNegative&&t.insertBefore(gn("span",{},{"aria-hidden":!0},"-"),this.contentEl_),t},n.updateContent=function(e){var t;"number"==typeof this.player_.duration()&&(t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t))},t}(qr);Gr.prototype.labelText_="Remaining Time",Gr.prototype.controlText_="Remaining Time",Ei.registerComponent("RemainingTimeDisplay",Gr),Ei.registerComponent("LiveDisplay",function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).updateShowing(),i.on(i.player(),"durationchange",function(e){return i.updateShowing(e)}),i}g()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=gn("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(gn("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+"\xa0"})),this.contentEl_.appendChild(a.a.createTextNode(this.localize("LIVE"))),t.appendChild(this.contentEl_),t},n.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},n.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(Ei));var Yr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).updateLiveEdgeStatus(),i.player_.liveTracker&&(i.updateLiveEdgeStatusHandler_=function(e){return i.updateLiveEdgeStatus(e)},i.on(i.player_.liveTracker,"liveedgechange",i.updateLiveEdgeStatusHandler_)),i}g()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=gn("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),t.appendChild(this.textEl_),t},n.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},n.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},n.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,e.prototype.dispose.call(this)},t}(jr);Yr.prototype.controlText_="Seek to live, currently playing live",Ei.registerComponent("SeekToLive",Yr);var $r=function(e,t,n){return e=Number(e),Math.min(n,Math.max(t,isNaN(e)?t:e))},Zr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).handleMouseDown_=function(e){return i.handleMouseDown(e)},i.handleMouseUp_=function(e){return i.handleMouseUp(e)},i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.handleClick_=function(e){return i.handleClick(e)},i.handleMouseMove_=function(e){return i.handleMouseMove(e)},i.update_=function(e){return i.update(e)},i.bar=i.getChild(i.options_.barName),i.vertical(!!i.options_.vertical),i.enable(),i}g()(t,e);var n=t.prototype;return n.enabled=function(){return this.enabled_},n.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},n.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},n.createEl=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),n.className=n.className+" vjs-slider",n=Lt({tabIndex:0},n),i=Lt({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),e.prototype.createEl.call(this,t,n,i)},n.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||Xt||e.preventDefault(),On(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)},n.handleMouseMove=function(e){},n.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;xn(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.update()},n.update=function(){var e=this;if(this.el_&&this.bar){var t=this.getProgress();return t===this.progress_||(this.progress_=t,this.requestNamedAnimationFrame("Slider#update",function(){var n=e.vertical()?"height":"width";e.bar.el().style[n]=(100*t).toFixed(2)+"%"})),t}},n.getProgress=function(){return Number($r(this.getPercent(),0,1).toFixed(4))},n.calculateDistance=function(e){var t=Mn(this.el_,e);return this.vertical()?t.y:t.x},n.handleKeyDown=function(t){d.a.isEventKey(t,"Left")||d.a.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepBack()):d.a.isEventKey(t,"Right")||d.a.isEventKey(t,"Up")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){e.stopPropagation(),e.preventDefault()},n.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.addClass(this.vertical_?"vjs-slider-vertical":"vjs-slider-horizontal")},t}(Ei);Ei.registerComponent("Slider",Zr);
1var Qr=function(e,t){return $r(e/t*100,0,100).toFixed(2)+"%"};Ei.registerComponent("LoadProgressBar",function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).partEls_=[],i.on(t,"progress",function(e){return i.update(e)}),i}g()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),n=gn("span",{className:"vjs-control-text"}),i=gn("span",{textContent:this.localize("Loaded")}),r=a.a.createTextNode(": ");return this.percentageEl_=gn("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),t.appendChild(n),n.appendChild(i),n.appendChild(r),n.appendChild(this.percentageEl_),t},n.dispose=function(){this.partEls_=null,this.percentageEl_=null,e.prototype.dispose.call(this)},n.update=function(e){var t=this;this.requestNamedAnimationFrame("LoadProgressBar#update",function(){var e=t.player_.liveTracker,n=t.player_.buffered(),i=e&&e.isLive()?e.seekableEnd():t.player_.duration(),r=t.player_.bufferedEnd(),s=t.partEls_,o=Qr(r,i);t.percent_!==o&&(t.el_.style.width=o,mn(t.percentageEl_,o),t.percent_=o);for(var a=0;a<n.length;a++){var c=n.start(a),l=n.end(a),u=s[a];u||(u=t.el_.appendChild(gn()),s[a]=u),u.dataset.start===c&&u.dataset.end===l||(u.dataset.start=c,u.dataset.end=l,u.style.left=Qr(c,r),u.style.width=Qr(l-c,r))}for(var d=s.length;d>n.length;d--)t.el_.removeChild(s[d-1]);s.length=n.length})},t}(Ei)),Ei.registerComponent("TimeTooltip",function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=di(ui(p()(i),i.update),30),i}g()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n){var i=En(this.el_),r=An(this.player_.el()),s=e.width*t;if(r&&i){var o=e.left-r.left+s,a=e.width-s+(r.right-e.right),c=i.width/2;o<c?c+=c-o:a<c&&(c=a),c<0?c=0:c>i.width&&(c=i.width),c=Math.round(c),this.el_.style.right="-"+c+"px",this.write(n)}},n.write=function(e){mn(this.el_,e)},n.updateTime=function(e,t,n,i){var r=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",function(){var s,o=r.player_.duration();if(r.player_.liveTracker&&r.player_.liveTracker.isLive()){var a=r.player_.liveTracker.liveWindow(),c=a-t*a;s=(c<1?"":"-")+Br(c,a)}else s=Br(n,o);r.update(e,t,s),i&&i()})},t}(Ei));var Xr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=di(ui(p()(i),i.update),30),i}g()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},n.update=function(e,t){var n=this.getChild("timeTooltip");if(n){var i=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(e,t,i)}},t}(Ei);Xr.prototype.options_={children:[]},on||Gt||Xr.prototype.options_.children.push("timeTooltip"),Ei.registerComponent("PlayProgressBar",Xr);var Kr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=di(ui(p()(i),i.update),30),i}g()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t){var n=this,i=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,i,function(){n.el_.style.left=e.width*t+"px"})},t}(Ei);Kr.prototype.options_={children:["timeTooltip"]},Ei.registerComponent("MouseTimeDisplay",Kr);var Jr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).setEventHandlers_(),i}g()(t,e);var n=t.prototype;return n.setEventHandlers_=function(){var e=this;this.update_=ui(this,this.update),this.update=di(this.update_,30),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(t){return e.enableInterval_(t)},this.disableIntervalHandler_=function(t){return e.disableInterval_(t)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in a.a&&"visibilityState"in a.a&&this.on(a.a,"visibilitychange",this.toggleVisibility_)},n.toggleVisibility_=function(e){"hidden"===a.a.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},n.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,30))},n.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},n.update=function(t){var n=this;if("hidden"!==a.a.visibilityState){var i=e.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",function(){var e=n.player_.ended()?n.player_.duration():n.getCurrentTime_(),t=n.player_.liveTracker,r=n.player_.duration();
1t&&t.isLive()&&(r=n.player_.liveTracker.liveCurrentTime()),n.percent_!==i&&(n.el_.setAttribute("aria-valuenow",(100*i).toFixed(2)),n.percent_=i),n.currentTime_===e&&n.duration_===r||(n.el_.setAttribute("aria-valuetext",n.localize("progress bar timing: currentTime={1} duration={2}",[Br(e,r),Br(r,r)],"{1} of {2}")),n.currentTime_=e,n.duration_=r),n.bar&&n.bar.update(An(n.el()),n.getProgress())}),i}},n.userSeek_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)},n.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},n.getPercent=function(){var e,t=this.getCurrentTime_(),n=this.player_.liveTracker;return n&&n.isLive()?(e=(t-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e},n.handleMouseDown=function(t){Nn(t)&&(t.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},n.handleMouseMove=function(e,t){if(void 0===t&&(t=!1),Nn(e)){var n;t||this.player_.scrubbing()||this.player_.scrubbing(!0);var i=this.calculateDistance(e),r=this.player_.liveTracker;if(r&&r.isLive()){if(i>=.99)return void r.seekToLiveEdge();var s=r.seekableStart(),o=r.liveCurrentTime();if((n=s+i*r.liveWindow())>=o&&(n=o),n<=s&&(n=s+.1),n===1/0)return}else(n=i*this.player_.duration())===this.player_.duration()&&(n-=.1);this.userSeek_(n)}},n.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},n.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},n.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?Vi(this.player_.play()):this.update_()},n.stepForward=function(){this.userSeek_(this.player_.currentTime()+5)},n.stepBack=function(){this.userSeek_(this.player_.currentTime()-5)},n.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleKeyDown=function(t){var n=this.player_.liveTracker;if(d.a.isEventKey(t,"Space")||d.a.isEventKey(t,"Enter"))t.preventDefault(),t.stopPropagation(),this.handleAction(t);else if(d.a.isEventKey(t,"Home"))t.preventDefault(),t.stopPropagation(),this.userSeek_(0);else if(d.a.isEventKey(t,"End"))t.preventDefault(),t.stopPropagation(),n&&n.isLive()?this.userSeek_(n.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(d()(t))){t.preventDefault(),t.stopPropagation();var i=10*(d.a.codes[d()(t)]-d.a.codes[0])/100;n&&n.isLive()?this.userSeek_(n.seekableStart()+n.liveWindow()*i):this.userSeek_(this.player_.duration()*i)}else d.a.isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):d.a.isEventKey(t,"PgUp")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):e.prototype.handleKeyDown.call(this,t)},n.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in a.a&&"visibilityState"in a.a&&this.off(a.a,"visibilitychange",this.toggleVisibility_),e.prototype.dispose.call(this)},t}(Zr);Jr.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},on||Gt||Jr.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Ei.registerComponent("SeekBar",Jr);var es=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).handleMouseMove=di(ui(p()(i),i.handleMouseMove),30),i.throttledHandleMouseSeek=di(ui(p()(i),i.handleMouseSeek),30),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.handleMouseDownHandler_=function(e){return i.handleMouseDown(e)},i.enable(),i}g()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var n=t.getChild("playProgressBar"),i=t.getChild("mouseTimeDisplay");if(n||i){var r=t.el(),s=En(r),o=Mn(r,e).x;o=$r(o,0,1),i&&i.update(s,o),n&&n.update(s,t.getProgress())}}},n.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},n.enabled=function(){return this.enabled_}
1,n.disable=function(){if(this.children().forEach(function(e){return e.disable&&e.disable()}),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){var e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&Vi(this.player_.play())}},n.enable=function(){this.children().forEach(function(e){return e.enable&&e.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},n.removeListenersAddedOnMousedownAndTouchstart=function(){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)},n.handleMouseDown=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(e){var t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()},t}(Ei);es.prototype.options_={children:["seekBar"]},Ei.registerComponent("ProgressControl",es);var ts=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,["enterpictureinpicture","leavepictureinpicture"],function(e){return i.handlePictureInPictureChange(e)}),i.on(t,["disablepictureinpicturechanged","loadedmetadata"],function(e){return i.handlePictureInPictureEnabledChange(e)}),i.on(t,["loadedmetadata","audioonlymodechange","audiopostermodechange"],function(){"audio"===t.currentType().substring(0,5)||t.audioPosterMode()||t.audioOnlyMode()?(t.isInPictureInPicture()&&t.exitPictureInPicture(),i.hide()):i.show()}),i.disable(),i}g()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-picture-in-picture-control "+e.prototype.buildCSSClass.call(this)},n.handlePictureInPictureEnabledChange=function(){a.a.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},n.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},n.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},t}(jr);ts.prototype.controlText_="Picture-in-Picture",Ei.registerComponent("PictureInPictureToggle",ts);var ns=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,"fullscreenchange",function(e){return i.handleFullscreenChange(e)}),!1===a.a[t.fsApi_.fullscreenEnabled]&&i.disable(),i}g()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},n.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},n.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(jr);ns.prototype.controlText_="Fullscreen",Ei.registerComponent("FullscreenToggle",ns);var is=function(e){function t(){return e.apply(this,arguments)||this}return g()(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});return t.appendChild(e.prototype.createEl.call(this,"span",{className:"vjs-control-text"})),t},t}(Ei);Ei.registerComponent("VolumeLevel",is),Ei.registerComponent("VolumeLevelTooltip",function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=di(ui(p()(i),i.update),30),i}g()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n,i){if(!n){var r=An(this.el_),s=An(this.player_.el()),o=e.width*t;if(!s||!r)return;var a=e.left-s.left+o,c=e.width-o+(s.right-e.right),l=r.width/2;a<l?l+=l-a:c<l&&(l=c),l<0?l=0:l>r.width&&(l=r.width),this.el_.style.right="-"+l+"px"}this.write(i+"%")},n.write=function(e){mn(this.el_,e)},n.updateVolume=function(e,t,n,i,r){var s=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",function(){s.update(e,t,n,i.toFixed(0)),r&&r()})},t}(Ei));var rs=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=di(ui(p()(i),i.update),30),i}g()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t,n){var i=this,r=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,n,r,function(){n?i.el_.style.bottom=e.height*t+"px":i.el_.style.left=e.width*t+"px"})},t}(Ei);rs.prototype.options_={children:["volumeLevelTooltip"]},Ei.registerComponent("MouseVolumeLevelDisplay",rs);var ss=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on("slideractive",function(e){return i.updateLastVolume_(e)}),i.on(t,"volumechange",function(e){return i.updateARIAAttributes(e)}),t.ready(function(){return i.updateARIAAttributes()}),i}g()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},n.handleMouseDown=function(t){Nn(t)&&e.prototype.handleMouseDown.call(this,t)},n.handleMouseMove=function(e){var t=this.getChild("mouseVolumeLevelDisplay");if(t){var n=this.el(),i=An(n),r=this.vertical(),s=Mn(n,e);s=$r(s=r?s.y:s.x,0,1),t.update(i,s,r)}Nn(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},n.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},n.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},n.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},n.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},n.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},n.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},n.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",function(){0===e.player_.volume()&&e.player_.lastVolume_(t)})},t}(Zr);ss.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},on||Gt||ss.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),ss.prototype.playerEvent="volumechange",Ei.registerComponent("
1VolumeBar",ss);var os=function(e){function t(t,n){var i;return void 0===n&&(n={}),n.vertical=n.vertical||!1,(void 0===n.volumeBar||jt(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),i=e.call(this,t,n)||this,function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})}(p()(i),t),i.throttledHandleMouseMove=di(ui(p()(i),i.handleMouseMove),30),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.on("mousedown",function(e){return i.handleMouseDown(e)}),i.on("touchstart",function(e){return i.handleMouseDown(e)}),i.on("mousemove",function(e){return i.handleMouseMove(e)}),i.on(i.volumeBar,["focus","slideractive"],function(){i.volumeBar.addClass("vjs-slider-active"),i.addClass("vjs-slider-active"),i.trigger("slideractive")}),i.on(i.volumeBar,["blur","sliderinactive"],function(){i.volumeBar.removeClass("vjs-slider-active"),i.removeClass("vjs-slider-active"),i.trigger("sliderinactive")}),i}g()(t,e);var n=t.prototype;return n.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},n.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(Ei);os.prototype.options_={children:["volumeBar"]},Ei.registerComponent("VolumeControl",os);var as=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})}(p()(i),t),i.on(t,["loadstart","volumechange"],function(e){return i.update(e)}),i}g()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();0===t?(this.player_.volume(n<.1?.1:n),this.player_.muted(!1)):this.player_.muted(!this.player_.muted())},n.update=function(e){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var e=this.player_.volume(),t=3;on&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var n=0;n<4;n++)_n(this.el_,"vjs-vol-"+n);vn(this.el_,"vjs-vol-"+t)},n.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)},t}(jr);as.prototype.controlText_="Mute",Ei.registerComponent("MuteToggle",as);var cs=function(e){function t(t,n){var i;return void 0===n&&(n={}),n.inline=void 0===n.inline||n.inline,(void 0===n.volumeControl||jt(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),(i=e.call(this,t,n)||this).handleKeyPressHandler_=function(e){return i.handleKeyPress(e)},i.on(t,["loadstart"],function(e){return i.volumePanelState_(e)}),i.on(i.muteToggle,"keyup",function(e){return i.handleKeyPress(e)}),i.on(i.volumeControl,"keyup",function(e){return i.handleVolumeControlKeyUp(e)}),i.on("keydown",function(e){return i.handleKeyPress(e)}),i.on("mouseover",function(e){return i.handleMouseOver(e)}),i.on("mouseout",function(e){return i.handleMouseOut(e)}),i.on(i.volumeControl,["slideractive"],i.sliderActive_),i.on(i.volumeControl,["sliderinactive"],i.sliderInactive_),i}g()(t,e);var n=t.prototype;return n.sliderActive_=function(){this.addClass("vjs-slider-active")},n.sliderInactive_=function(){this.removeClass("vjs-slider-active")},n.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},n.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},n.dispose=function(){this.handleMouseOut(),e.prototype.dispose.call(this)},n.handleVolumeControlKeyUp=function(e){d.a.isEventKey(e,"Esc")&&this.muteToggle.focus()},n.handleMouseOver=function(e){this.addClass("vjs-hover"),ii(a.a,"keyup",this.handleKeyPressHandler_)},n.handleMouseOut=function(e){this.removeClass("vjs-hover"),ri(a.a,"keyup",this.handleKeyPressHandler_)},n.handleKeyPress=function(e){d.a.isEventKey(e,"Esc")&&this.handleMouseOut()},t}(Ei);cs.prototype.options_={children:["muteToggle","volumeControl"]}
1,Ei.registerComponent("VolumePanel",cs);var ls=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,n&&(i.menuButton_=n.menuButton),i.focusedChild_=-1,i.on("keydown",function(e){return i.handleKeyDown(e)}),i.boundHandleBlur_=function(e){return i.handleBlur(e)},i.boundHandleTapClick_=function(e){return i.handleTapClick(e)},i}g()(t,e);var n=t.prototype;return n.addEventListenerForItem=function(e){e instanceof Ei&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},n.removeEventListenerForItem=function(e){e instanceof Ei&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))},n.removeChild=function(t){"string"==typeof t&&(t=this.getChild(t)),this.removeEventListenerForItem(t),e.prototype.removeChild.call(this,t)},n.addItem=function(e){var t=this.addChild(e);t&&this.addEventListenerForItem(t)},n.createEl=function(){this.contentEl_=gn(this.options_.contentElType||"ul",{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var t=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return t.appendChild(this.contentEl_),ii(t,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),t},n.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,e.prototype.dispose.call(this)},n.handleBlur=function(e){var t=e.relatedTarget||a.a.activeElement;if(!this.children().some(function(e){return e.el()===t})){var n=this.menuButton_;n&&n.buttonPressed_&&t!==n.el().firstChild&&n.unpressButton()}},n.handleTapClick=function(e){if(this.menuButton_){this.menuButton_.unpressButton();var t=this.children();if(!Array.isArray(t))return;var n=t.filter(function(t){return t.el()===e.target})[0];if(!n)return;"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}},n.handleKeyDown=function(e){d.a.isEventKey(e,"Left")||d.a.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(d.a.isEventKey(e,"Right")||d.a.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},n.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},n.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},n.focus=function(e){void 0===e&&(e=0);var t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(Ei);Ei.registerComponent("Menu",ls);var us=function(e){function t(t,n){var i;void 0===n&&(n={}),(i=e.call(this,t,n)||this).menuButton_=new jr(t,n),i.menuButton_.controlText(i.controlText_),i.menuButton_.el_.setAttribute("aria-haspopup","true");var r=jr.prototype.buildCSSClass();i.menuButton_.el_.className=i.buildCSSClass()+" "+r,i.menuButton_.removeClass("vjs-control"),i.addChild(i.menuButton_),i.update(),i.enabled_=!0;var s=function(e){return i.handleClick(e)};return i.handleMenuKeyUp_=function(e){return i.handleMenuKeyUp(e)},i.on(i.menuButton_,"tap",s),i.on(i.menuButton_,"click",s),i.on(i.menuButton_,"keydown",function(e){return i.handleKeyDown(e)}),i.on(i.menuButton_,"mouseenter",function(){i.addClass("vjs-hover"),i.menu.show(),ii(a.a,"keyup",i.handleMenuKeyUp_)}),i.on("mouseleave",function(e){return i.handleMouseLeave(e)}),i.on("keydown",function(e){return i.handleSubmenuKeyDown(e)}),i}g()(t,e);var n=t.prototype;return n.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))},n.createMenu=function(){var e=new ls(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=gn("li",{className:"vjs-menu-title",textContent:Pi(this.options_.title),tabIndex:-1}),n=new Ei(this.player_,{el:t});e.addItem(n)}if(this.items=this.createItems(),this.items)for(var i=0;i<this.items.length;i++)e.addItem(this.items[i]);return e},n.createItems=function(){},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},n.buildWrapperCSSClass=function(){var t="vjs-menu-button";return"vjs-menu-button "+(t+=!0===this.options_.inline?"-inline":"-popup")+" "+jr.prototype.buildCSSClass()+" "+e.prototype.buildCSSClass.call(this)},n.buildCSSClass=function(){var t="vjs-menu-button";return"vjs-menu-button "+(t+=!0===this.options_.inline?"-inline":"-popup")+" "+e.prototype.buildCSSClass.call(this)},n.controlText=function(e,t){return void 0===t&&(t=this.menuButton_.el()),this.menuButton_.controlText(e,t)},n.dispose=function(){this.handleMouseLeave(),e.prototype.dispose.call(this)},n.handleClick=function(e){this.buttonPressed_?this.unpressButton():this.pressButton()},n.handleMouseLeave=function(e){this.removeClass("vjs-hover"),ri(a.a,"keyup",this.handleMenuKeyUp_)},n.focus=function(){this.menuButton_.focus()},n.blur=function(){this.menuButton_.blur()},n.handleKeyDown=function(e){d.a.isEventKey(e,"Esc")||d.a.isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),d.a.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(d.a.isEventKey(e,"Up")||d.a.isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))},n.handleMenuKeyUp=function(e){(d.a.isEventKey(e,"Esc")||d.a.isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")},n.handleSubmenuKeyPress=function(e){this.handleSubmenuKeyDown(e)},n.handleSubmenuKeyDown=function(e){(d.a.isEventKey(e,"Esc")||d.a.isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),d.a.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))},n.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),on&&pn())return;this.menu.focus()}},n.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","fal
1se"))},n.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},n.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(Ei);Ei.registerComponent("MenuButton",us);var ds=function(e){function t(t,n){var i,r=n.tracks;if((i=e.call(this,t,n)||this).items.length<=1&&i.hide(),!r)return p()(i);var s=ui(p()(i),i.update);return r.addEventListener("removetrack",s),r.addEventListener("addtrack",s),r.addEventListener("labelchange",s),i.player_.on("ready",s),i.player_.on("dispose",function(){r.removeEventListener("removetrack",s),r.removeEventListener("addtrack",s),r.removeEventListener("labelchange",s)}),i}return g()(t,e),t}(us);Ei.registerComponent("TrackButton",ds);var hs=["Tab","Esc","Up","Down","Right","Left"],ps=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).selectable=n.selectable,i.isSelected_=n.selected||!1,i.multiSelectable=n.multiSelectable,i.selected(i.isSelected_),i.el_.setAttribute("role",i.selectable?i.multiSelectable?"menuitemcheckbox":"menuitemradio":"menuitem"),i}g()(t,e);var n=t.prototype;return n.createEl=function(t,n,i){this.nonIconControl=!0;var r=e.prototype.createEl.call(this,"li",Lt({className:"vjs-menu-item",tabIndex:-1},n),i);return r.replaceChild(gn("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)}),r.querySelector(".vjs-icon-placeholder")),r},n.handleKeyDown=function(t){hs.some(function(e){return d.a.isEventKey(t,e)})||e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){this.selected(!0)},n.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},t}(Mr);Ei.registerComponent("MenuItem",ps);var fs=function(e){function t(t,n){var i,r=n.track,o=t.textTracks();n.label=r.label||r.language||"Unknown",n.selected="showing"===r.mode,(i=e.call(this,t,n)||this).track=r,i.kinds=(n.kinds||[n.kind||i.track.kind]).filter(Boolean);var c,l=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i.handleTracksChange.apply(p()(i),t)},u=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i.handleSelectedLanguageChange.apply(p()(i),t)};return t.on(["loadstart","texttrackchange"],l),o.addEventListener("change",l),o.addEventListener("selectedlanguagechange",u),i.on("dispose",function(){t.off(["loadstart","texttrackchange"],l),o.removeEventListener("change",l),o.removeEventListener("selectedlanguagechange",u)}),void 0===o.onchange&&i.on(["tap","click"],function(){if("object"!=typeof s.a.Event)try{c=new s.a.Event("change")}catch(e){}c||(c=a.a.createEvent("Event")).initEvent("change",!0,!0),o.dispatchEvent(c)}),i.handleTracksChange(),i}g()(t,e);var n=t.prototype;return n.handleClick=function(t){var n=this.track,i=this.player_.textTracks();if(e.prototype.handleClick.call(this,t),i)for(var r=0;r<i.length;r++){var s=i[r];-1!==this.kinds.indexOf(s.kind)&&(s===n?"showing"!==s.mode&&(s.mode="showing"):"disabled"!==s.mode&&(s.mode="disabled"))}},n.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},n.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},n.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(ps);Ei.registerComponent("TextTrackMenuItem",fs);var gs=function(e){function t(t,n){return n.track={player:t,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.track.label=n.label?n.label:n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,e.call(this,t,n)||this}g()(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i<r;i++){var s=t[i];if(this.options_.kinds.indexOf(s.kind)>-1&&"showing"===s.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},n.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i<r;i++){var s=t[i];if(["captions","descriptions","subtitles"].indexOf(s.kind)>-1&&"showing"===s.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(fs);Ei.registerComponent("OffTextTrackMenuItem",gs);var ms=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.textTracks(),e.call(this,t,n)||this}return g()(t,e),t.prototype.createItems=function(e,t){var n;void 0===e&&(e=[]),void 0===t&&(t=fs),this.label_&&(n=this.label_+" off"),e.push(new gs(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var i=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r<i.length;r++){var s=i[r];if(this.kinds_.indexOf(s.kind)>-1){var o=new t(this.player_,{track:s,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});o.addClass("vjs-"+s.kind+"-menu-item"),e.push(o)}}return e},t}(ds);Ei.registerComponent("TextTrackButton",ms);var bs=function(e){function t(t,n){var i,r=n.track,s=n.cue,o=t.currentTime();return n.selectable=!0,n.multiSelectable=!1,n.label=s.text,n.selected=s.startTime<=o&&o<s.endTime,(i=e.call(this,t,n)||this).track=r,
1i.cue=s,i}return g()(t,e),t.prototype.handleClick=function(t){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime)},t}(ps);Ei.registerComponent("ChaptersTrackMenuItem",bs);var ys=function(e){function t(t,n,i){var r;return(r=e.call(this,t,n,i)||this).selectCurrentItem_=function(){r.items.forEach(function(e){e.selected(r.track_.activeCues[0]===e.cue)})},r}g()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)},n.update=function(t){if(!t||!t.track||"chapters"===t.track.kind){var n=this.findChaptersTrack();n!==this.track_?(this.setTrack(n),e.prototype.update.call(this)):(!this.items||n&&n.cues&&n.cues.length!==this.items.length)&&e.prototype.update.call(this)}},n.setTrack=function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}},n.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],t=e.length-1;t>=0;t--){var n=e[t];if(n.kind===this.kind_)return n}},n.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(Pi(this.kind_))},n.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},n.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var n=0,i=t.length;n<i;n++){var r=new bs(this.player_,{track:this.track_,cue:t[n]});e.push(r)}return e},t}(ms);ys.prototype.kind_="chapters",ys.prototype.controlText_="Chapters",Ei.registerComponent("ChaptersButton",ys);var vs=function(e){function t(t,n,i){var r;r=e.call(this,t,n,i)||this;var s=t.textTracks(),o=ui(p()(r),r.handleTracksChange);return s.addEventListener("change",o),r.on("dispose",function(){s.removeEventListener("change",o)}),r}g()(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!1,i=0,r=t.length;i<r;i++){var s=t[i];if(s.kind!==this.kind_&&"showing"===s.mode){n=!0;break}}n?this.disable():this.enable()},n.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(ms);vs.prototype.kind_="descriptions",vs.prototype.controlText_="Descriptions",Ei.registerComponent("DescriptionsButton",vs);var _s=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}g()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(ms);_s.prototype.kind_="subtitles",_s.prototype.controlText_="Subtitles",Ei.registerComponent("SubtitlesButton",_s);var ws=function(e){function t(t,n){var i;return n.track={player:t,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem",(i=e.call(this,t,n)||this).addClass("vjs-texttrack-settings"),i.controlText(", opens "+n.kind+" settings dialog"),i}return g()(t,e),t.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t}(fs);Ei.registerComponent("CaptionSettingsMenuItem",ws);var ks=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}g()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new ws(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t)},t}(ms);ks.prototype.kind_="captions",ks.prototype.controlText_="Captions",Ei.registerComponent("CaptionsButton",ks);var Cs=function(e){function t(){return e.apply(this,arguments)||this}return g()(t,e),t.prototype.createEl=function(t,n,i){var r=e.prototype.createEl.call(this,t,n,i),s=r.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(s.appendChild(gn("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),s.appendChild(gn("span",{className:"vjs-control-text",textContent:" "+this.localize("Captions")}))),r},t}(fs);Ei.registerComponent("SubsCapsMenuItem",Cs);var Ss=function(e){function t(t,n){var i;return void 0===n&&(n={}),(i=e.call(this,t,n)||this).label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(i.player_.language_)>-1&&(i.label_="captions"),i.menuButton_.controlText(Pi(i.label_)),i}g()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new ws(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t,Cs)},t}(ms);Ss.prototype.kinds_=["captions","subtitles"],Ss.prototype.controlText_="Subtitles",Ei.registerComponent("SubsCapsButton",Ss);var Ts=function(e){function t(t,n){var i,r=n.track,s=t.audioTracks();n.label=r.label||r.language||"Unknown",n.selected=r.enabled,(i=e.call(this,t,n)||this).track=r,
1i.addClass("vjs-"+r.kind+"-menu-item");var o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i.handleTracksChange.apply(p()(i),t)};return s.addEventListener("change",o),i.on("dispose",function(){s.removeEventListener("change",o)}),i}g()(t,e);var n=t.prototype;return n.createEl=function(t,n,i){var r=e.prototype.createEl.call(this,t,n,i),s=r.querySelector(".vjs-menu-item-text");return"main-desc"===this.options_.track.kind&&(s.appendChild(gn("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),s.appendChild(gn("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),r},n.handleClick=function(t){if(e.prototype.handleClick.call(this,t),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks)for(var n=this.player_.audioTracks(),i=0;i<n.length;i++){var r=n[i];r!==this.track&&(r.enabled=r===this.track)}},n.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(ps);Ei.registerComponent("AudioTrackMenuItem",Ts);var Ps=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.audioTracks(),e.call(this,t,n)||this}g()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(e){void 0===e&&(e=[]),this.hideThreshold_=1;for(var t=this.player_.audioTracks(),n=0;n<t.length;n++)e.push(new Ts(this.player_,{track:t[n],selectable:!0,multiSelectable:!1}));return e},t}(ds);Ps.prototype.controlText_="Audio Track",Ei.registerComponent("AudioTrackButton",Ps);var Os=function(e){function t(t,n){var i,r=n.rate,s=parseFloat(r,10);return n.label=r,n.selected=s===t.playbackRate(),n.selectable=!0,n.multiSelectable=!1,(i=e.call(this,t,n)||this).label=r,i.rate=s,i.on(t,"ratechange",function(e){return i.update(e)}),i}g()(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},n.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(ps);Os.prototype.contentElType="button",Ei.registerComponent("PlaybackRateMenuItem",Os);var xs=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).menuButton_.el_.setAttribute("aria-describedby",i.labelElId_),i.updateVisibility(),i.updateLabel(),i.on(t,"loadstart",function(e){return i.updateVisibility(e)}),i.on(t,"ratechange",function(e){return i.updateLabel(e)}),i.on(t,"playbackrateschange",function(e){return i.handlePlaybackRateschange(e)}),i}g()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this);return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=gn("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),t.appendChild(this.labelEl_),t},n.dispose=function(){this.labelEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){for(var e=this.playbackRates(),t=[],n=e.length-1;n>=0;n--)t.push(new Os(this.player(),{rate:e[n]+"x"}));return t},n.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},n.handleClick=function(e){var t=this.player().playbackRate(),n=this.playbackRates(),i=(n.indexOf(t)+1)%n.length;this.player().playbackRate(n[i])},n.handlePlaybackRateschange=function(e){this.update()},n.playbackRates=function(){var e=this.player();return e.playbackRates&&e.playbackRates()||[]},n.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},n.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},n.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")},t}(us);xs.prototype.controlText_="Playback Rate",Ei.registerComponent("PlaybackRateMenuButton",xs);var As=function(e){function t(){return e.apply(this,arguments)||this}g()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(t,n,i){return void 0===t&&(t="div"),void 0===n&&(n={}),void 0===i&&(i={}),n.className||(n.className=this.buildCSSClass()),e.prototype.createEl.call(this,t,n,i)},t}(Ei);Ei.registerComponent("Spacer",As);var Es=function(e){function t(){return e.apply(this,arguments)||this}g()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),textContent:"\xa0"})},t}(As);Ei.registerComponent("CustomControlSpacer",Es);var Ms=function(e){function t(){return e.apply(this,arguments)||this}return g()(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(Ei);Ms.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in a.a&&Ms.prototype.options_.children.splice(Ms.prototype.options_.children.length-1,0,"pictureInPictureToggle"),Ei.registerComponent("ControlBar",Ms);var Is=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,"error",function(e){return i.open(e)}),i}g()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},n.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(Fi);Is.prototype.options_=l()({}
vendor: 5,973 bytes, line 1
1,Fi.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Ei.registerComponent("ErrorDisplay",Is);var Rs=["#000","Black"],Ls=["#00F","Blue"],Ds=["#0FF","Cyan"],js=["#0F0","Green"],Ns=["#F0F","Magenta"],Vs=["#F00","Red"],zs=["#FFF","White"],Fs=["#FF0","Yellow"],Bs=["1","Opaque"],qs=["0.5","Semi-Transparent"],Us=["0","Transparent"],Hs={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Rs,zs,Vs,js,Ls,Fs,Ns,Ds]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Bs,qs,Us]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[zs,Rs,Vs,js,Ls,Fs,Ns,Ds]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Bs,qs]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[Us,qs,Bs]}};function Ws(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}Hs.windowColor.options=Hs.backgroundColor.options,Ei.registerComponent("TextTrackSettings",function(e){function t(t,n){var i;return n.temporary=!1,(i=e.call(this,t,n)||this).updateDisplay=i.updateDisplay.bind(p()(i)),i.fill(),i.hasBeenOpened_=i.hasBeenFilled_=!0,i.endDialog=gn("p",{className:"vjs-control-text",textContent:i.localize("End of dialog window.")}),i.el().appendChild(i.endDialog),i.setDefaults(),void 0===n.persistTextTrackSettings&&(i.options_.persistTextTrackSettings=i.options_.playerOptions.persistTextTrackSettings),i.on(i.$(".vjs-done-button"),"click",function(){i.saveSettings(),i.close()}),i.on(i.$(".vjs-default-button"),"click",function(){i.setDefaults(),i.updateDisplay()}),Rt(Hs,function(e){i.on(i.$(e.selector),"change",i.updateDisplay)}),i.options_.persistTextTrackSettings&&i.restoreSettings(),i}g()(t,e);var n=t.prototype;return n.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},n.createElSelect_=function(e,t,n){var i=this;void 0===t&&(t=""),void 0===n&&(n="label");var r=Hs[e],s=r.id.replace("%s",this.id_),o=[t,s].join(" ").trim();return["<"+n+' id="'+s+'" class="'+("label"===n?"vjs-label":"")+'">',this.localize(r.label),"</"+n+">",'<select aria-labelledby="'+o+'">'].concat(r.options.map(function(e){var t=s+"-"+e[1].replace(/\W+/g,"");return['<option id="'+t+'" value="'+e[0]+'" ','aria-labelledby="'+o+" "+t+'">',i.localize(e[1]),"</option>"].join("")})).concat("</select>").join("")},n.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},n.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},n.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},n.createElColors_=function(){return gn("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},n.createElFont_=function(){return gn("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},n.createElControls_=function(){var e=this.localize("restore all settings to the default values");return gn("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},n.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},n.label=function(){return this.localize("Caption Settings Dialog")},n.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},n.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},n.getValues=function(){var e,t,n,i=this;
1return t=function(e,t,n){var r,s=Ws((r=i.$(t.selector)).options[r.options.selectedIndex].value,t.parser);return void 0!==s&&(e[n]=s),e},void 0===(n={})&&(n=0),It(e=Hs).reduce(function(n,i){return t(n,e[i],i)},n)},n.setValues=function(e){var t=this;Rt(Hs,function(n,i){!function(e,t,n){if(t)for(var i=0;i<e.options.length;i++)if(Ws(e.options[i].value,n)===t){e.selectedIndex=i;break}}(t.$(n.selector),e[i],n.parser)})},n.setDefaults=function(){var e=this;Rt(Hs,function(t){var n=t.hasOwnProperty("default")?t.default:0;e.$(t.selector).selectedIndex=n})},n.restoreSettings=function(){var e;try{e=JSON.parse(s.a.localStorage.getItem("vjs-text-track-settings"))}catch(t){At.warn(t)}e&&this.setValues(e)},n.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?s.a.localStorage.setItem("vjs-text-track-settings",JSON.stringify(e)):s.a.localStorage.removeItem("vjs-text-track-settings")}catch(t){At.warn(t)}}},n.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},n.conditionalBlur_=function(){this.previouslyActiveEl_=null;var e=this.player_.controlBar,t=e&&e.subsCapsButton,n=e&&e.captionsButton;t?t.focus():n&&n.focus()},t}(Fi));var Gs=function(e){function t(t,n){var i,r=n.ResizeObserver||s.a.ResizeObserver;null===n.ResizeObserver&&(r=!1);var o=Oi({createEl:!r,reportTouchActivity:!1},n);return(i=e.call(this,t,o)||this).ResizeObserver=n.ResizeObserver||s.a.ResizeObserver,i.loadListener_=null,i.resizeObserver_=null,i.debouncedHandler_=function(e,t,n,i){var r;void 0===i&&(i=s.a);var o=function(){var t=this,n=arguments,s=function(){r=null,s=null,e.apply(t,n)};i.clearTimeout(r),r=i.setTimeout(s,100)};return o.cancel=function(){i.clearTimeout(r),r=null},o}(function(){i.resizeHandler()},0,0,p()(i)),r?(i.resizeObserver_=new i.ResizeObserver(i.debouncedHandler_),i.resizeObserver_.observe(t.el())):(i.loadListener_=function(){if(i.el_&&i.el_.contentWindow){var e=i.debouncedHandler_,t=i.unloadListener_=function(){ri(this,"resize",e),ri(this,"unload",t),t=null};ii(i.el_.contentWindow,"unload",t),ii(i.el_.contentWindow,"resize",e)}},i.one("load",i.loadListener_)),i}g()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})},n.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},n.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,e.prototype.dispose.call(this)},t}(Ei);Ei.registerComponent("ResizeManager",Gs);var Ys={trackingThreshold:20,liveTolerance:15};Ei.registerComponent("LiveTracker",function(e){function t(t,n){var i,r=Oi(Ys,n,{createEl:!1});return(i=e.call(this,t,r)||this).handleVisibilityChange_=function(e){return i.handleVisibilityChange(e)},i.trackLiveHandler_=function(){return i.trackLive_()},i.handlePlay_=function(e){return i.handlePlay(e)},i.handleFirstTimeupdate_=function(e){return i.handleFirstTimeupdate(e)},i.handleSeeked_=function(e){return i.handleSeeked(e)},i.seekToLiveEdge_=function(e){return i.seekToLiveEdge(e)},i.reset_(),i.on(i.player_,"durationchange",function(e){return i.handleDurationchange(e)}),i.on(i.player_,"canplay",function(){return i.toggleTracking()}),Jt&&"hidden"in a.a&&"visibilityState"in a.a&&i.on(a.a,"visibilitychange",i.handleVisibilityChange_),i}g()(t,e);var n=t.prototype;return n.handleVisibilityChange=function(){this.player_.duration()===1/0&&(a.a.hidden?this.stopTracking():this.startTracking())},n.trackLive_=function(){var e=this.player_.seekable();if(e&&e.length){var t=Number(s.a.performance.now().toFixed(4)),n=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+n;var i=this.liveCurrentTime(),r=this.player_.currentTime(),o=this.player_.paused()||this.seekedBehindLive_||Math.abs(i-r)>this.options_.liveTolerance;this.timeupdateSeen_&&i!==1/0||(o=!1),o!==this.behindLiveEdge_&&(this.behindLiveEdge_=o,this.trigger("liveedgechange"))}},n.handleDurationchange=function(){this.toggleTracking()},n.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},n.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,30),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))},n.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},n.handleSeeked=function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()},n.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)},n.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)},n.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},n.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},n.seekableEnd=function(){for(var e=this.player_.seekable(),t=[],n=e?e.length:0;n--;)t.push(e.end(n));return t.length?t.sort()[t.length-1]:1/0},n.seekableStart=function(){for(var e=this.player_.seekable(),t=[],n=e?e.length:0;n--;)t.push(e.start(n));return t.length?t.sort()[0]:0}
1,n.liveWindow=function(){var e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()},n.isLive=function(){return this.isTracking()},n.atLiveEdge=function(){return!this.behindLiveEdge()},n.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},n.pastSeekEnd=function(){var e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_},n.behindLiveEdge=function(){return this.behindLiveEdge_},n.isTracking=function(){return"number"==typeof this.trackingInterval_},n.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},n.dispose=function(){this.off(a.a,"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),e.prototype.dispose.call(this)},t}(Ei));var $s,Zs=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var n=e.$$("source"),i=[],r="";if(!n.length)return!1;for(var s=0;s<n.length;s++){var o=n[s].src;o&&-1===i.indexOf(o)&&i.push(o)}return!!i.length&&(1===i.length&&(r=i[0]),e.triggerSourceset(r),!0)},Qs=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=a.a.createElement(this.nodeName.toLowerCase());t.innerHTML=e;for(var n=a.a.createDocumentFragment();t.childNodes.length;)n.appendChild(t.childNodes[0]);return this.innerText="",s.a.Element.prototype.appendChild.call(this,n),this.innerHTML}}),Xs=function(e,t){for(var n={},i=0;i<e.length&&!((n=Object.getOwnPropertyDescriptor(e[i],t))&&n.set&&n.get);i++);return n.enumerable=!0,n.configurable=!0,n},Ks=function(e){var t=e.el();if(!t.resetSourceWatch_){var n={},i=function(e){return Xs([e.el(),s.a.HTMLMediaElement.prototype,s.a.Element.prototype,Qs],"innerHTML")}(e),r=function(n){return function(){for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];var o=n.apply(t,r);return Zs(e),o}};["append","appendChild","insertAdjacentHTML"].forEach(function(e){t[e]&&(n[e]=t[e],t[e]=r(n[e]))}),Object.defineProperty(t,"innerHTML",Oi(i,{set:r(i.set)})),t.resetSourceWatch_=function(){t.resetSourceWatch_=null,Object.keys(n).forEach(function(e){t[e]=n[e]}),Object.defineProperty(t,"innerHTML",i)},e.one("sourceset",t.resetSourceWatch_)}},Js=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?nr(s.a.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return s.a.Element.prototype.setAttribute.call(this,"src",e),e}}),eo=function(e,t,n,i){void 0===i&&(i=!0);var r=function(n){return Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0})},s={configurable:!0,enumerable:!0,get:function(){var e=n();return r(e),e}};return i&&(s.set=r),Object.defineProperty(e,t,s)},to=function(e){function t(t,n){var i;i=e.call(this,t,n)||this;var r=t.source,s=!1;if(i.featuresVideoFrameCallback=i.featuresVideoFrameCallback&&"VIDEO"===i.el_.tagName,r&&(i.el_.currentSrc!==r.src||t.tag&&3===t.tag.initNetworkState_)?i.setSource(r):i.handleLateInit_(i.el_),t.enableSourceset&&i.setupSourcesetHandling_(),i.isScrubbing_=!1,i.el_.hasChildNodes()){for(var o=i.el_.childNodes,a=o.length,c=[];a--;){var l=o[a];"track"===l.nodeName.toLowerCase()&&(i.featuresNativeTextTracks?(i.remoteTextTrackEls().addTrackElement_(l),i.remoteTextTracks().addTrack(l.track),i.textTracks().addTrack(l.track),s||i.el_.hasAttribute("crossorigin")||!rr(l.src)||(s=!0)):c.push(l))}for(var u=0;u<c.length;u++)i.el_.removeChild(c[u])}return i.proxyNativeTracks_(),i.featuresNativeTextTracks&&s&&At.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),i.restoreMetadataTracksInIOSNativePlayer_(),(nn||sn||$t)&&!0===t.nativeControlsForTouch&&i.setControls(!0),i.proxyWebkitFullscreen_(),i.triggerReady(),i}g()(t,e);var n=t.prototype;return n.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.dis
1poseMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},n.setupSourcesetHandling_=function(){!function(e){if(e.featuresSourceset){var t=e.el();if(!t.resetSourceset_){var n=function(e){return Xs([e.el(),s.a.HTMLMediaElement.prototype,Js],"src")}(e),i=t.setAttribute,r=t.load;Object.defineProperty(t,"src",Oi(n,{set:function(i){var r=n.set.call(t,i);return e.triggerSourceset(t.src),r}})),t.setAttribute=function(n,r){var s=i.call(t,n,r);return/src/i.test(n)&&e.triggerSourceset(t.src),s},t.load=function(){var n=r.call(t);return Zs(e)||(e.triggerSourceset(""),Ks(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):Zs(e)||Ks(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=r,t.setAttribute=i,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}}}}(this)},n.restoreMetadataTracksInIOSNativePlayer_=function(){var e,t=this.textTracks(),n=function(){e=[];for(var n=0;n<t.length;n++){var i=t[n];"metadata"===i.kind&&e.push({track:i,storedMode:i.mode})}};n(),t.addEventListener("change",n),this.on("dispose",function(){return t.removeEventListener("change",n)});var i=function n(){for(var i=0;i<e.length;i++){var r=e[i];"disabled"===r.track.mode&&r.track.mode!==r.storedMode&&(r.track.mode=r.storedMode)}t.removeEventListener("change",n)};this.on("webkitbeginfullscreen",function(){t.removeEventListener("change",n),t.removeEventListener("change",i),t.addEventListener("change",i)}),this.on("webkitendfullscreen",function(){t.removeEventListener("change",n),t.addEventListener("change",n),t.removeEventListener("change",i)})},n.overrideNative_=function(e,t){var n=this;if(t===this["featuresNative"+e+"Tracks"]){var i=e.toLowerCase();this[i+"TracksListeners_"]&&Object.keys(this[i+"TracksListeners_"]).forEach(function(e){n.el()[i+"Tracks"].removeEventListener(e,n[i+"TracksListeners_"][e])}),this["featuresNative"+e+"Tracks"]=!t,this[i+"TracksListeners_"]=null,this.proxyNativeTracksForType_(i)}},n.overrideNativeAudioTracks=function(e){this.overrideNative_("Audio",e)},n.overrideNativeVideoTracks=function(e){this.overrideNative_("Video",e)},n.proxyNativeTracksForType_=function(e){var t=this,n=hr[e],i=this.el()[n.getterName],r=this[n.getterName]();if(this["featuresNative"+n.capitalName+"Tracks"]&&i&&i.addEventListener){var s={change:function(n){var i={type:"change",target:r,currentTarget:r,srcElement:r};r.trigger(i),"text"===e&&t[pr.remoteText.getterName]().trigger(i)},addtrack:function(e){r.addTrack(e.track)},removetrack:function(e){r.removeTrack(e.track)}},o=function(){for(var e=[],t=0;t<r.length;t++){for(var n=!1,s=0;s<i.length;s++)if(i[s]===r[t]){n=!0;break}n||e.push(r[t])}for(;e.length;)r.removeTrack(e.shift())};this[n.getterName+"Listeners_"]=s,Object.keys(s).forEach(function(e){var n=s[e];i.addEventListener(e,n),t.on("dispose",function(t){return i.removeEventListener(e,n)})}),this.on("loadstart",o),this.on("dispose",function(e){return t.off("loadstart",o)})}},n.proxyNativeTracks_=function(){var e=this;hr.names.forEach(function(t){e.proxyNativeTracksForType_(t)})},n.createEl=function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var n=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(n,e),t.disposeMediaElement(e),e=n}else{e=a.a.createElement("video");var i=Oi({},this.options_.tag&&Cn(this.options_.tag));nn&&!0===this.options_.nativeControlsForTouch||delete i.controls,kn(e,Lt(i,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}void 0!==this.options_.preload&&Tn(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);for(var r=["loop","muted","playsinline","autoplay"],s=0;s<r.length;s++){var o=r[s],c=this.options_[o];void 0!==c&&(c?Tn(e,o,o):Pn(e,o),e[o]=c)}return e},n.handleLateInit_=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,n=function(){t=!0};this.on("loadstart",n);var i=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",i),void this.ready(function(){this.off("loadstart",n),this.off("loadedmetadata",i),t||this.trigger("loadstart")})}var r=["loadstart"];r.push("loadedmetadata"),e.readyState>=2&&r.push("loadeddata"),e.readyState>=3&&r.push("canplay"),e.readyState>=4&&r.push("canplaythrough"),this.ready(function(){r.forEach(function(e){this.trigger(e)},this)})}},n.setScrubbing=function(e){this.isScrubbing_=e},n.scrubbing=function(){return this.isScrubbing_},n.setCurrentTime=function(e){try{this.isScrubbing_&&this.el_.fastSeek&&an?this.el_.fastSeek(e):this.el_.currentTime=e}catch(t){At(t,"Video is not ready. (Video.js)")}},n.duration=function(){var e=this;return this.el_.duration===1/0&&Gt&&Xt&&0===this.el_.currentTime?(this.on("timeupdate",function t(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))}),NaN):this.el_.duration||NaN},n.width=function(){return this.el_.offsetWidth},n.height=function(){return this.el_.offsetHeight},n.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",function(){e.off("webkitbeginfullscreen",n),e.off("webkitendfullscreen",t)})}},n.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=s.a.navigator&&s.a.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},n.enterFullScreen=function(){var e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)Vi(this.el_.play()),this.setTimeout(function(){e.pause();try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}},0);else try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}},n.exitFullScreen=function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))},n.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},n.requestVideoFrameCallback=function(t){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(t):e.prototype.requestVideoFrameCallback.call(this,t)},n.cancelVideoFrameCallback=function(t){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(t):e.prototype.cancelVideoFrameCallback.call(this,t)},n.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},n.reset=function(){t.resetMediaElement(this.el_)},n.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},n.setControls=function(e){this.el_.controls=!!e},n.addTextTrack=function(t,n,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,n,i):e.prototype.addTextTrack.call(this,t,n,i)},n.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var n=a.a.createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t.default&&(n.default=t.default),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n},n.addRemoteTextTrack=function(t,n){var i=e.prototype.addRemoteTextTrack.call(this,t,n);return this.featuresNativeTextTracks&&this.el().appendChild(i),i},n.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var n=this.$$("track"),i=n.length;i--;)t!==n[i]&&t!==n[i].track||this.el().removeChild(n[i])},n.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),s.a.performance&&"function"==typeof s.a.performance.now?e.creationTime=s.a.performance.now():s.a.performance&&s.a.performance.timing&&"number"==typeof s.a.performance.timing.navigationStart&&(e.creationTime=s.a.Date.now()-s.a.performance.timing.navigationStart),e},t}(gr);eo(to,"TEST_VID",function(){if(dn()){var e=a.a.createElement("video"),t=a.a.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}}
1),to.isSupported=function(){try{to.TEST_VID.volume=.5}catch(e){return!1}return!(!to.TEST_VID||!to.TEST_VID.canPlayType)},to.canPlayType=function(e){return to.TEST_VID.canPlayType(e)},to.canPlaySource=function(e,t){return to.canPlayType(e.type)},to.canControlVolume=function(){try{var e=to.TEST_VID.volume;to.TEST_VID.volume=e/2+.1;var t=e!==to.TEST_VID.volume;return t&&on?(s.a.setTimeout(function(){to&&to.prototype&&(to.prototype.featuresVolumeControl=e!==to.TEST_VID.volume)}),!1):t}catch(n){return!1}},to.canMuteVolume=function(){try{var e=to.TEST_VID.muted;return to.TEST_VID.muted=!e,to.TEST_VID.muted?Tn(to.TEST_VID,"muted","muted"):Pn(to.TEST_VID,"muted"),e!==to.TEST_VID.muted}catch(t){return!1}},to.canControlPlaybackRate=function(){if(Gt&&Xt&&Kt<58)return!1;try{var e=to.TEST_VID.playbackRate;return to.TEST_VID.playbackRate=e/2+.1,e!==to.TEST_VID.playbackRate}catch(t){return!1}},to.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(a.a.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(a.a.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(a.a.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(a.a.createElement("audio"),"innerHTML",{get:e,set:e})}catch(t){return!1}return!0},to.supportsNativeTextTracks=function(){return an||on&&Xt},to.supportsNativeVideoTracks=function(){return!(!to.TEST_VID||!to.TEST_VID.videoTracks)},to.supportsNativeAudioTracks=function(){return!(!to.TEST_VID||!to.TEST_VID.audioTracks)},to.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach(function(e){var t=e[1];eo(to.prototype,e[0],function(){return to[t]()},!0)}),to.prototype.featuresVolumeControl=to.canControlVolume(),to.prototype.movingMediaElementInDOM=!on,to.prototype.featuresFullscreenResize=!0,to.prototype.featuresProgressEvents=!0,to.prototype.featuresTimeupdateEvents=!0,to.prototype.featuresVideoFrameCallback=!(!to.TEST_VID||!to.TEST_VID.requestVideoFrameCallback),to.patchCanPlayType=function(){Yt>=4&&!Zt&&!Xt&&($s=to.TEST_VID&&to.TEST_VID.constructor.prototype.canPlayType,to.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(e)?"maybe":$s.call(this,e)})},to.unpatchCanPlayType=function(){var e=to.TEST_VID.constructor.prototype.canPlayType;return $s&&(to.TEST_VID.constructor.prototype.canPlayType=$s),e},to.patchCanPlayType(),to.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(t){}}()}},to.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),n=t.length;n--;)e.removeChild(t[n]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){to.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){to.prototype["set"+Pi(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(e){to.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(e){to.prototype["set"+Pi(e)]=function(t){this.el_[e]=t}}),["pause","load","play"].forEach(function(e){to.prototype[e]=function(){return this.el_[e]()}}),gr.withSourceHandlers(to),to.nativeSourceHandler={},to.nativeSourceHandler.canPlayType=function(e){try{return to.TEST_
vendor: 4,569 bytes, line 1
1VID.canPlayType(e)}catch(t){return""}},to.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return to.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=ir(e.src);return to.nativeSourceHandler.canPlayType("video/"+n)}return""},to.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},to.nativeSourceHandler.dispose=function(){},to.registerSourceHandler(to.nativeSourceHandler),gr.registerTech("Html5",to);var no=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],io={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},ro=["tiny","xsmall","small","medium","large","xlarge","huge"],so={};ro.forEach(function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;so[e]="vjs-layout-"+t});var oo={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},ao=function(e){function t(n,i,r){var s;if(n.id=n.id||i.id||"vjs_video_"+Qn(),(i=Lt(t.getTagSettings(n),i)).initChildren=!1,i.createEl=!1,i.evented=!1,i.reportTouchActivity=!1,!i.language)if("function"==typeof n.closest){var o=n.closest("[lang]");o&&o.getAttribute&&(i.language=o.getAttribute("lang"))}else for(var c=n;c&&1===c.nodeType;){if(Cn(c).hasOwnProperty("lang")){i.language=c.getAttribute("lang");break}c=c.parentNode}if((s=e.call(this,null,i,r)||this).boundDocumentFullscreenChange_=function(e){return s.documentFullscreenChange_(e)},s.boundFullWindowOnEscKey_=function(e){return s.fullWindowOnEscKey(e)},s.boundUpdateStyleEl_=function(e){return s.updateStyleEl_(e)},s.boundApplyInitTime_=function(e){return s.applyInitTime_(e)},s.boundUpdateCurrentBreakpoint_=function(e){return s.updateCurrentBreakpoint_(e)},s.boundHandleTechClick_=function(e){return s.handleTechClick_(e)},s.boundHandleTechDoubleClick_=function(e){return s.handleTechDoubleClick_(e)},s.boundHandleTechTouchStart_=function(e){return s.handleTechTouchStart_(e)},s.boundHandleTechTouchMove_=function(e){return s.handleTechTouchMove_(e)},s.boundHandleTechTouchEnd_=function(e){return s.handleTechTouchEnd_(e)},s.boundHandleTechTap_=function(e){return s.handleTechTap_(e)},s.isFullscreen_=!1,s.log=Et(s.id_),s.fsApi_=Ct,s.isPosterFromTech_=!1,s.queuedCallbacks_=[],s.isReady_=!1,s.hasStarted_=!1,s.userActive_=!1,s.debugEnabled_=!1,s.audioOnlyMode_=!1,s.audioPosterMode_=!1,s.audioOnlyCache_={playerHeight:null,hiddenChildren:[]},!s.options_||!s.options_.techOrder||!s.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(s.tag=n,s.tagAttributes=n&&Cn(n),s.language(s.options_.language),i.languages){var l={};Object.getOwnPropertyNames(i.languages).forEach(function(e){l[e.toLowerCase()]=i.languages[e]}),s.languages_=l}else s.languages_=t.prototype.options_.languages;s.resetCache_(),s.poster_=i.poster||"",s.controls_=!!i.controls,n.controls=!1,n.removeAttribute("controls"),s.changingSrc_=!1,s.playCallbacks_=[],s.playTerminatedQueue_=[],n.hasAttribute("autoplay")?s.autoplay(!0):s.autoplay(s.options_.autoplay),i.plugins&&Object.keys(i.plugins).forEach(function(e){if("function"!=typeof s[e])throw new Error('plugin "'+e+'" does not exist')}),s.scrubbing_=!1,s.el_=s.createEl(),ki(p()(s),{eventBusKey:"el_"}),s.fsApi_.requestFullscreen&&(ii(a.a,s.fsApi_.fullscreenchange,s.boundDocumentFullscreenChange_),s.on(s.fsApi_.fullscreenchange,s.boundDocumentFullscreenChange_)),s.fluid_&&s.on(["playerreset","resize"],s.boundUpdateStyleEl_);var u=Oi(s.options_);i.plugins&&Object.keys(i.plugins).forEach(function(e){s[e](i.plugins[e])}),i.debug&&s.debug(!0),s.options_.playerOptions=u,s.middleware_=[],s.playbackRates(i.playbackRates),s.initChildren(),s.isAudio("audio"===n.nodeName.toLowerCase()),s.controls()?s.addClass("vjs-controls-enabled"):s.addClass("vjs-controls-disabled"),s.el_.setAttribute("role","region"),s.isAudio()?s.el_.setAttribute("aria-label",s.localize("Audio Player")):s.el_.setAttribute("aria-label",s.localize("Video Player")),s.isAudio()&&s.addClass("vjs-audio"),s.flexNotSupported_()&&s.addClass("vjs-no-flex"),nn&&s.addClass("vjs-touch-enabled"),on||s.addClass("vjs-workinghover"),t.players[s.id_]=p()(s);var d="7.21.1".split(".")[0];return s.addClass("vjs-v"+d),s.userActive(!0),s.reportUserActivity(),s.one("play",function(e){return s.listenForUserActivity_(e)}),s.on("stageclick",function(e){return s.handleStageClick_(e)}),s.on("keydown",function(e){return s.handleKeyDown(e)}),s.on("languagechange",function(e){return s.handleLanguagechange(e)}
1),s.breakpoints(s.options_.breakpoints),s.responsive(s.options_.responsive),s.on("ready",function(){s.audioPosterMode(s.options_.audioPosterMode),s.audioOnlyMode(s.options_.audioOnlyMode)}),s}g()(t,e);var n=t.prototype;return n.dispose=function(){var n=this;this.trigger("dispose"),this.off("dispose"),ri(a.a,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),ri(a.a,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),br[this.id()]=null,fr.names.forEach(function(e){var t=n[fr[e].getterName]();t&&t.off&&t.off()}),e.prototype.dispose.call(this,{restoreEl:this.options_.restoreEl})},n.createEl=function(){var t,n=this.tag,i=this.playerElIngest_=n.parentNode&&n.parentNode.hasAttribute&&n.parentNode.hasAttribute("data-vjs-player"),r="video-js"===this.tag.tagName.toLowerCase();i?t=this.el_=n.parentNode:r||(t=this.el_=e.prototype.createEl.call(this,"div"));var o=Cn(n);if(r){for(t=this.el_=n,n=this.tag=a.a.createElement("video");t.children.length;)n.appendChild(t.firstChild);yn(t,"video-js")||vn(t,"video-js"),t.appendChild(n),i=this.playerElIngest_=t,Object.keys(t).forEach(function(e){try{n[e]=t[e]}catch(i){}})}if(n.setAttribute("tabindex","-1"),o.tabindex="-1",(Jt||Xt&&tn)&&(n.setAttribute("role","application"),o.role="application"),n.removeAttribute("width"),n.removeAttribute("height"),"width"in o&&delete o.width,"height"in o&&delete o.height,Object.getOwnPropertyNames(o).forEach(function(e){r&&"class"===e||t.setAttribute(e,o[e]),r&&n.setAttribute(e,o[e])}),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=t.player=this,this.addClass("vjs-paused"),!0!==s.a.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=Yn("vjs-styles-dimensions");var c=zn(".vjs-styles-defaults"),l=zn("head");l.insertBefore(this.styleEl_,c?c.nextSibling:l.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var u=n.getElementsByTagName("a"),d=0;d<u.length;d++){var h=u.item(d);vn(h,"vjs-hidden"),h.setAttribute("hidden","hidden")}return n.initNetworkState_=n.networkState,n.parentNode&&!i&&n.parentNode.insertBefore(t,n),bn(n,t),this.children_.unshift(n),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=t,t},n.crossOrigin=function(e){if(!e)return this.techGet_("crossOrigin");"anonymous"===e||"use-credentials"===e?this.techCall_("setCrossOrigin",e):At.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+e+'"')},n.width=function(e){return this.dimension("width",e)},n.height=function(e){return this.dimension("height",e)},n.dimension=function(e,t){var n=e+"_";if(void 0===t)return this[n]||0;if(""===t||"auto"===t)return this[n]=void 0,void this.updateStyleEl_();var i=parseFloat(t);isNaN(i)?At.error('Improper value "'+t+'" supplied for for '+e):(this[n]=i,this.updateStyleEl_())},n.fluid=function(e){var t,n=this;if(void 0===e)return!!this.fluid_;this.fluid_=!!e,fi(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),t=function(){n.on(["playerreset","resize"],n.boundUpdateStyleEl_)},fi(this)?t():(this.eventedCallbacks||(this.eventedCallbacks=[]),this.eventedCallbacks.push(t))):this.removeClass("vjs-fluid"),this.updateStyleEl_()},n.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},n.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},n.updateStyleEl_=function(){if(!0!==s.a.VIDEOJS_NO_DYNAMIC_STYLE){var e,t,n,i=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),r=i[1]/i[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/r:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*r,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),$n(this.styleEl_,"\n ."+n+" {\n width: "+e+"px;\n height: "+t+"px;\n }\n\n ."+n+".vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: "+100*r+"%;\n }\n ")}else{var o="number"==typeof this.width_?this.width_:this.options_.width,a="number"==typeof this.height_?this.height_:this.options_.height,c=this.tech_&&this.tech_.el();c&&(o>=0&&(c.width=o),a>=0&&(c.height=a))}},n.loadTech_=function(e,t){var n=this;this.tech_&&this.unloadTech_();var i=Pi(e),r=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==i&&this.tag&&(gr.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;var s=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(s=!1);var o={source:t,autoplay:s,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};
1fr.names.forEach(function(e){var t=fr[e];o[t.getterName]=n[t.privateName]}),Lt(o,this.options_[i]),Lt(o,this.options_[r]),Lt(o,this.options_[e.toLowerCase()]),this.tag&&(o.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(o.startTime=this.cache_.currentTime);var a,c=gr.getTech(e);if(!c)throw new Error("No Tech named '"+i+"' exists! '"+i+"' should be registered using videojs.registerTech()'");this.tech_=new c(o),this.tech_.ready(ui(this,this.handleTechReady_),!0),a=this.tech_,(this.textTracksJson_||[]).forEach(function(e){var t=a.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(function(e){return t.addCue(e)})}),a.textTracks(),no.forEach(function(e){n.on(n.tech_,e,function(t){return n["handleTech"+Pi(e)+"_"](t)})}),Object.keys(io).forEach(function(e){n.on(n.tech_,e,function(t){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+io[e]+"_"].bind(n),event:t}):n["handleTech"+io[e]+"_"](t)})}),this.on(this.tech_,"loadstart",function(e){return n.handleTechLoadStart_(e)}),this.on(this.tech_,"sourceset",function(e){return n.handleTechSourceset_(e)}),this.on(this.tech_,"waiting",function(e){return n.handleTechWaiting_(e)}),this.on(this.tech_,"ended",function(e){return n.handleTechEnded_(e)}),this.on(this.tech_,"seeking",function(e){return n.handleTechSeeking_(e)}),this.on(this.tech_,"play",function(e){return n.handleTechPlay_(e)}),this.on(this.tech_,"firstplay",function(e){return n.handleTechFirstPlay_(e)}),this.on(this.tech_,"pause",function(e){return n.handleTechPause_(e)}),this.on(this.tech_,"durationchange",function(e){return n.handleTechDurationChange_(e)}),this.on(this.tech_,"fullscreenchange",function(e,t){return n.handleTechFullscreenChange_(e,t)}),this.on(this.tech_,"fullscreenerror",function(e,t){return n.handleTechFullscreenError_(e,t)}),this.on(this.tech_,"enterpictureinpicture",function(e){return n.handleTechEnterPictureInPicture_(e)}),this.on(this.tech_,"leavepictureinpicture",function(e){return n.handleTechLeavePictureInPicture_(e)}),this.on(this.tech_,"error",function(e){return n.handleTechError_(e)}),this.on(this.tech_,"posterchange",function(e){return n.handleTechPosterChange_(e)}),this.on(this.tech_,"textdata",function(e){return n.handleTechTextData_(e)}),this.on(this.tech_,"ratechange",function(e){return n.handleTechRateChange_(e)}),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===i&&this.tag||bn(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},n.unloadTech_=function(){var e,t,n,i=this;fr.names.forEach(function(e){var t=fr[e];i[t.privateName]=i[t.getterName]()}),this.textTracksJson_=(t=(e=this.tech_).$$("track"),n=Array.prototype.map.call(t,function(e){return e.track}),Array.prototype.map.call(t,function(e){var t=zi(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return-1===n.indexOf(e)}).map(zi))),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},n.tech=function(e){return void 0===e&&At.warn("Using the tech directly can be dangerous. I hope you know
1what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},n.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)},n.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)},n.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},n.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())},n.manualAutoplay_=function(e){var t=this;if(this.tech_&&"string"==typeof e){var n,i=function(){var e=t.muted();t.muted(!0);var n=function(){t.muted(e)};t.playTerminatedQueue_.push(n);var i=t.play();if(Ni(i))return i.catch(function(e){throw n(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(e||""))})};if("any"!==e||this.muted()?n="muted"!==e||this.muted()?this.play():i():Ni(n=this.play())&&(n=n.catch(i)),Ni(n))return n.then(function(){t.trigger({type:"autoplay-success",autoplay:e})}).catch(function(){t.trigger({type:"autoplay-failure",autoplay:e})})}},n.updateSourceCaches_=function(e){void 0===e&&(e="");var t=e,n="";"string"!=typeof t&&(t=e.src,n=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!n&&(n=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var n=e.cache_.sources.filter(function(e){return e.src===t});if(n.length)return n[0].type;for(var i=e.$$("source"),r=0;r<i.length;r++){var s=i[r];if(s.type&&s.src&&s.src===t)return s.type}return Or(t)}(this,t)),this.cache_.source=Oi({},e,{src:t,type:n});for(var i=this.cache_.sources.filter(function(e){return e.src&&e.src===t}),r=[],s=this.$$("source"),o=[],a=0;a<s.length;a++){var c=Cn(s[a]);r.push(c),c.src&&c.src===t&&o.push(c.src)}o.length&&!i.length?this.cache_.sources=r:i.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},n.handleTechSourceset_=function(e){var t=this;if(!this.changingSrc_){var n=function(e){return t.updateSourceCaches_(e)},i=this.currentSource().src,r=e.src;i&&!/^blob:/.test(i)&&/^blob:/.test(r)&&(!this.lastSource_||this.lastSource_.tech!==r&&this.lastSource_.player!==i)&&(n=function(){}),n(r),e.src||this.tech_.any(["sourceset","loadstart"],function(e){if("sourceset"!==e.type){var n=t.techGet("currentSrc");t.lastSource_.tech=n,t.updateSourceCaches_(n)}})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},n.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},n.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},n.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(function(e){return e.callback(e.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},n.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting");var t=this.currentTime();this.on("timeupdate",function n(){t!==e.currentTime()&&(e.removeClass("vjs-waiting"),e.off("timeupdate",n))})},n.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},n.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},n.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},n.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},n.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},n.handleTechFirstPlay_=function(){this.options_.starttime&&(At.warn("Passing the `starttime` option to the player will be deprecated
1in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},n.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},n.handleTechEnded_=function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},n.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},n.handleTechClick_=function(e){this.controls_&&(void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.click&&!1===this.options_.userActions.click||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?Vi(this.play()):this.pause()))},n.handleTechDoubleClick_=function(e){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),function(t){return t.contains(e.target)})||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},n.handleTechTap_=function(){this.userActive(!this.userActive())},n.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},n.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},n.handleTechTouchEnd_=function(e){e.cancelable&&e.preventDefault()},n.handleStageClick_=function(){this.reportUserActivity()},n.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},n.documentFullscreenChange_=function(e){var t=e.target.player;if(!t||t===this){var n=this.el(),i=a.a[this.fsApi_.fullscreenElement]===n;!i&&n.matches?i=n.matches(":"+this.fsApi_.fullscreen):!i&&n.msMatchesSelector&&(i=n.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(i)}},n.handleTechFullscreenChange_=function(e,t){var n=this;t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",function(){n.removeClass("vjs-ios-native-fs")})),this.isFullscreen(t.isFullscreen))},n.handleTechFullscreenError_=function(e,t){this.trigger("fullscreenerror",t)},n.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},n.handleTechEnterPictureInPicture_=function(e){this.isInPictureInPicture(!0)},n.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1)},n.handleTechError_=function(){var e=this.tech_.error();this.error(e)},n.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},n.getCache=function(){return this.cache_},n.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}},n.techCall_=function(e,t){this.ready(function(){if(e in kr)return function(e,t,n,i){return t[n](e.reduce(Sr(n),i))}(this.middleware_,this.tech_,e,t);if(e in Cr)return _r(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(n){throw At(n),n}},!0)},n.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in wr)return function(e,t,n){return e.reduceRight(Sr(n),t[n]())}(this.middleware_,this.tech_,e);if(e in Cr)return _r(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw At("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw At("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw At(t),t}}},n.play=function(){var e=this,t=this.options_.Promise||s.a.Promise;return t?new t(function(t){e.play_(t)}):this.play_()},n.play_=function(e){var t=this;void 0===e&&(e=Vi),this.playCallbacks_.push(e);var n=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n)return this.waitToPlay_=function(e){t.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(n||!an&&!on||this.load());var i=this.techGet_("play");null===i?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(i)},n.runPlayTerminatedQueue_=function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(e){e()})},n.runPlayCallbacks_=function(e){var t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach(function(t){t(e)})},n.pause=function(){this.techCall_("pause")},n.paused=function(){return!1!==this.techGet_("paused")},n.played=function(){return this.techGet_("played")||Ri(0,0)},n.scrubbing=function(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},n.currentTime=function(e){return void 0!==e?(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),void(this.cache_.initTime=0)):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},n.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},n.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))},n.remainingTime=function(){return this.duration()-this.currentTime()},n.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},n.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=Ri(0,0)),e},n.bufferedPercent=function(){return Li(this.buffered(),this.duration())},n.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},n.volume=function(e){var t;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},n.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},n.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},n.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},n.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},n.isFullscreen=function(e){if(void 0!==e){var t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_},n.requestFullscreen=function(e){var t=this.options_.Promise||s.a.Promise;if(t){var n=this;return new t(function(t,i){function r(){n.off("fullscreenerror",o),n.off("fullscreenchange",s)}function s(){r(),t()}function o(e,t){r(),i(t)}n.one("fullscreenchange",s),n.one("fullscreenerror",o);var a=n.requestFullscreenHelper_(e);a&&(a.then(r,r),a.then(t,i))})}return this.requestFullscreenHelper_()},n.requestFullscreenHelper_=function(e){var t,n=this;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){var i=this.el_[this.fsApi_.requestFullscreen](t);return i&&i.then(function(){return n.isFullscreen(!0)},function(){return n.isFullscreen(!1)}),i}this.tech_.supportsFullScreen()&&1==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()},n.exitFullscreen=function(){var e=this.options_.Promise||s.a.Promise;if(e){var t=this;return new e(function(e,n){function i(){t.off("fullscreenerror",s),t.off("fullscreenchange",r)}function r(){i(),e()}function s(e,t){i(),n(t)}t.one("fullscreenchange",r),t.one("fullscreenerror",s);var o=t.exitFullscreenHelper_();o&&(o.then(i,i),o.then(e,n))})}return this.exitFullscreenHelper_()},n.exitFullscreenHelper_=function(){var e=this;if(this.fsApi_.requestFullscreen){var t=a.a[this.fsApi_.exitFullscreen]();return t&&Vi(t.then(function(){return e.isFullscreen(!1)})),t}this.tech_.supportsFullScreen()&&1==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},n.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=a.a.documentElement.style.overflow,ii(a.a,"keydown",this.boundFullWindowOnEscKey_),a.a.documentElement.style.overflow="hidden",vn(a.a.body,"vjs-full-window"),this.trigger("enterFullWindow")},n.fullWindowOnEscKey=function(e){d.a.isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},n.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,ri(a.a,"keydown",this.boundFullWindowOnEscKey_),a.a.documentElement.style.overflow=this.docOrigOverflow,_n(a.a.body,"vjs-full-window"),this.trigger("exitFullWindow")},n.disablePictureInPicture=function(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")},n.isInPictureInPicture=function(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},n.requestPictureInPicture=function(){if("pictureInPictureEnabled"in a.a&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},n.exitPictureInPicture=function(){if("pictureInPictureEnabled"in a.a)return a.a.exitPictureInPicture()},n.handleKeyDown=function(e){var t,n,i=this.options_.userActions;i&&i.hotkeys&&(n=(t=this.el_.ownerDocument.activeElement).tagName.toLowerCase(),t.isContentEditable||("input"===n?-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(t.type):-1!==["textarea"].indexOf(n))||("function"==typeof i.hotkeys?i.hotkeys.call(this,e):this.handleHotkeys(e)))},n.handleHotkeys=function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},n=t.fullscreenKey,i=t.muteKey,r=void 0===i?function(e){return d.a.isEventKey(e,"m")}:i,s=t.playPauseKey,o=void 0===s?function(e){return d.a.isEventKey(e,"k")||d.a.isEventKey(e,"Space")}:s;if((void 0===n?function(e){return d.a.isEventKey(e,"f")}:n).call(this,e)){e.preventDefault(),e.stopPropagation();var c=Ei.getComponent("FullscreenToggle");!1!==a.a[this.fsApi_.fullscreenEnabled]&&c.prototype.handleClick.call(this,e)}else r.call(this,e)?(e.preventDefault(),e.stopPropagation(),Ei.getComponent("MuteToggle").prototype.handleClick.call(this,e)):o.call(this,e)&&(e.preventDefault(),e.stopPropagation(),Ei.getComponent("PlayToggle").prototype.handleClick.call(this,e))},n.canPlayType=function(e){for(var t,n=0,i=this.options_.techOrder;n<i.length;n++){var r=i[n],s=gr.getTech(r);if(s||(s=Ei.getComponent(r)),s){if(s.isSupported()&&(t=s.canPlayType(e)))return t}else At.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},n.selectSource=function(e){var t,n,i=this,r=this.options_.techOrder.map(function(e){return[e,gr.getTech(e)]}).filter(function(e){var t=e[0],n=e[1];return n?n.isSupported():(At.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),s=function(e,t,n){var i;return e.some(function(e){return t.some(function(t){if(i=n(e,t))return!0})}),i},o=function(e,t){var n=e[0];if(e[1].canPlaySource(t,i.options_[n.toLowerCase()]))return{source:t,tech:n}};return t=this.options_.sourceOrder?s(e,r,(n=o,function(e,t){return n(t,e)})):s(r,e,o),t||!1},n.handleSrc_=function(e,t){var n=this;if(void 0===e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();var i=xr(e);if(i.length){if(this.changingSrc_=!0,t||(this.cache_.sources=i),this.updateSourceCaches_(i[0]),vr(this,i[0],function(e,r){var s;if(n.middleware_=r,t||(n.cache_.sources=i),n.updateSourceCaches_(e),n.src_(e))return i.length>1?n.handleSrc_(i.slice(1)):(n.changingSrc_=!1,n.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0),void n.triggerReady());s=n.tech_,r.forEach(function(e){return e.setTech&&e.setTech(s)})}),this.options_.retryOnError&&i.length>1){var r=function(){n.error(null),n.handleSrc_(i.slice(1),!0)},s=function(){n.off("error",r)};this.one("error",r),this.one("playing",s),this.resetRetryOnError_=function(){n.off("error",r),n.off("playing",s)}}}else this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0)},n.src=function(e){return this.handleSrc_(e,!1)},n.src_=function(e){var t,n=this,i=this.selectSource([e]);return!i||(t=this.techName_,Pi(i.tech)!==Pi(t)?(this.changingSrc_=!0,this.loadTech_(i.tech,i.source),this.tech_.ready(function(){n.changingSrc_=!1}),!1):(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0),!1))},n.load=function(){this.techCall_("load")},n.reset=function(){var e=this,t=this.options_.Promise||s.a.Promise;this.paused()||!t?this.doReset_():Vi(this.play().then(function(){return e.doReset_()}))},n.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),fi(this)&&this.trigger("playerreset")},n.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},n.resetProgressBar_=function(){this.currentTime(0);var e=this.controlBar||{},t=e.durationDisplay,n=e.remainingTimeDisplay;t&&t.updateContent(),n&&n.updateContent()},n.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},n.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},n.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},n.currentSource=function(){return this.cache_.source||{}},n.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},n.currentType=function(){return this.currentSource()&&this.currentSource().type||""},n.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},n.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t;"string"==typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"==typeof e?e:"play"),t=!1):this.options_.autoplay=!!e,t=void 0===t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)},n.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},n.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},n.poster=function(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},n.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},n.controls=function(e){if(void 0===e)return!!this.controls_;this.controls_!==(e=!!e)&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechCo
1ntrolsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},n.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;this.usingNativeControls_!==(e=!!e)&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},n.error=function(e){var t=this;if(void 0===e)return this.error_||null;if(wt("beforeerror").forEach(function(n){var i=n(t,e);Dt(i)&&!Array.isArray(i)||"string"==typeof i||"number"==typeof i||null===i?e=i:t.log.error("please return a value that MediaError expects in beforeerror hooks")}),this.options_.suppressNotSupportedError&&e&&4===e.code){var n=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],n),void this.one("loadstart",function(){this.off(["click","touchstart"],n)})}if(null===e)return this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new Di(e),this.addClass("vjs-error"),At.error("(CODE:"+this.error_.code+" "+Di.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),wt("error").forEach(function(e){return e(t,t.error_)})},n.reportUserActivity=function(e){this.userActivity_=!0},n.userActive=function(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},n.listenForUserActivity_=function(){var e,t,n,i=ui(this,this.reportUserActivity),r=function(t){i(),this.clearInterval(e)};this.on("mousedown",function(){i(),this.clearInterval(e),e=this.setInterval(i,250)}),this.on("mousemove",function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,i())}),this.on("mouseup",r),this.on("mouseleave",r);var s,o=this.getChild("controlBar");!o||on||Gt||(o.on("mouseenter",function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),o.on("mouseleave",function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",i),this.on("keyup",i),this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(s);var e=this.options_.inactivityTimeout;e<=0||(s=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))}},250)},n.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},n.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},n.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},n.enableAudioOnlyUI_=function(){var e=this;this.addClass("vjs-audio-only-mode");var t=this.children(),n=this.getChild("ControlBar"),i=n&&n.currentHeight();t.forEach(function(t){t!==n&&t.el_&&!t.hasClass("vjs-hidden")&&(t.hide(),e.audioOnlyCache_.hiddenChildren.push(t))}),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(i),this.trigger("audioonlymodechange")},n.disableAudioOnlyUI_=function(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach(function(e){return e.show()}),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")},n.audioOnlyMode=function(e){var t=this;if("boolean"!=typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;this.audioOnlyMode_=e;var n=this.options_.Promise||s.a.Promise;if(n){if(e){var i=[];return this.isInPictureInPicture()&&i.push(this.exitPictureInPicture()),this.isFullscreen()&&i.push(this.exitFullscreen()),this.audioPosterMode()&&i.push(this.audioPosterMode(!1)),n.all(i).then(function(){return t.enableAudioOnlyUI_()})}return n.resolve().then(function(){return t.disableAudioOnlyUI_()})}e?(this.isInPictureInPicture()&&this.exitPictureInPicture(),this.isFullscreen()&&this.exitFullscreen(),this.enableAudioOnlyUI_()):this.disableAudioOnlyUI_()},n.enablePosterModeUI_=function(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},n.disablePosterModeUI_=function(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},n.audioPosterMode=function(e){var t=this;if("boolean"!=typeof e||e===this.audioPosterMode_)return this.audioPosterMode_;this.audioPosterMode_=e;var n=this.options_.Promise||s.a.Promise;return n?e?this.audioOnlyMode()?this.audioOnlyMode(!1).then(function(){t.enablePosterModeUI_()}):n.resolve().then(function(){t.enablePosterModeUI_()}):n.resolve().then(function(){t.disablePosterModeUI_()}):e?(this.audioOnlyMode()&&this.audioOnlyMode(!1),void this.enablePosterModeUI_()):void this.disablePosterModeUI_()},n.addTextTrack=function(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)},n.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},n.removeRemoteTextTrack=function(e){void 0===e&&(e={});var t=e.track;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)},n.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},n.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},n.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},n.language=function(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),fi(this)&&this.trigger("languagechange"))},n.languages=function(){return Oi(t.prototype.options_.languages,this.languages_)},n.toJSON=function(){var e=Oi(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n<t.length;n++){var i=t[n];(i=Oi(i)).player=void 0,e.tracks[n]=i}return e},n.createModal=function(e,t){var n=this;(t=t||{}).content=e||"";var i=new Fi(this,t);return this.addChild(i),i.on("dispose",function(){n.removeChild(i)}),i.open(),i},n.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),n=0;n<ro.length;n++){var i=ro[n];
1if(t<=this.breakpoints_[i]){if(e===i)return;e&&this.removeClass(so[e]),this.addClass(so[i]),this.breakpoint_=i;break}}},n.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},n.breakpoints=function(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=Lt({},oo,e),this.updateCurrentBreakpoint_()),Lt(this.breakpoints_)},n.responsive=function(e){return void 0===e?this.responsive_:(e=Boolean(e))!==this.responsive_?(this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},n.currentBreakpoint=function(){return this.breakpoint_},n.currentBreakpointClass=function(){return so[this.breakpoint_]||""},n.loadMedia=function(e,t){var n=this;if(e&&"object"==typeof e){this.reset(),this.cache_.media=Oi(e);var i=this.cache_.media,r=i.poster,s=i.src,o=i.textTracks;!i.artwork&&r&&(this.cache_.media.artwork=[{src:r,type:Or(r)}]),s&&this.src(s),r&&this.poster(r),Array.isArray(o)&&o.forEach(function(e){return n.addRemoteTextTrack(e,!1)}),this.ready(t)}},n.getMedia=function(){if(!this.cache_.media){var e=this.poster(),t={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),function(e){return{kind:e.kind,label:e.label,language:e.language,src:e.src}})};return e&&(t.poster=e,t.artwork=[{src:t.poster,type:Or(t.poster)}]),t}return Oi(this.cache_.media)},t.getTagSettings=function(e){var t={sources:[],tracks:[]},n=Cn(e),i=n["data-setup"];if(yn(e,"vjs-fill")&&(n.fill=!0),yn(e,"vjs-fluid")&&(n.fluid=!0),null!==i){var r=b()(i||"{}"),s=r[0],o=r[1];s&&At.error(s),Lt(n,o)}if(Lt(t,n),e.hasChildNodes())for(var a=e.childNodes,c=0,l=a.length;c<l;c++){var u=a[c],d=u.nodeName.toLowerCase();"source"===d?t.sources.push(Cn(u)):"track"===d&&t.tracks.push(Cn(u))}return t},n.flexNotSupported_=function(){var e=a.a.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},n.debug=function(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)},n.playbackRates=function(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every(function(e){return"number"==typeof e})&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))},t}(Ei);fr.names.forEach(function(e){var t=fr[e];ao.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),ao.prototype.crossorigin=ao.prototype.crossOrigin,ao.players={};var co=s.a.navigator;ao.prototype.options_={techOrder:gr.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:co&&(co.languages&&co.languages[0]||co.userLanguage||co.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1},["ended","seeking","seekable","networkState","readyState"].forEach(function(e){ao.prototype[e]=function(){return this.techGet_(e)}}),no.forEach(function(e){ao.prototype["handleTech"+Pi(e)+"_"]=function(){return this.trigger(e)}}),Ei.registerComponent("Player",ao);var lo={},uo=function(e){return lo.hasOwnProperty(e)},ho=function(e){return uo(e)?lo[e]:void 0},po=function(e,t){e.activePlugins_=e.activePlugins_||{},e.activePlugins_[t]=!0},fo=function(e,t,n){var i=(n?"before":"")+"pluginsetup";e.trigger(i,t),e.trigger(i+":"+t.name,t)},go=function(e,t){return t.prototype.name=e,function(){fo(this,{name:e,plugin:t,instance:null},!0);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var s=C()(t,[this].concat(i));return this[e]=function(){return s},fo(this,s.getEventHash()),s}},mo=function(){function e(t){if(this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,this.log||(this.log=this.player.log.createLogger(this.name)),ki(this),delete this.trigger,Si(this,this.constructor.defaultState),po(t,this.name),this.dispose=this.dispose.bind(this),t.on("dispose",this.dispose)}var t=e.prototype;return t.version=function(){return this.constructor.VERSION},t.getEventHash=function(e){return void 0===e&&(e={}),e.name=this.name,e.plugin=this.constructor,e.instance=this,e},t.trigger=function(e,t){return void 0===t&&(t={}),si(this.eventBusEl_,e,this.getEventHash(t))},t.handleStateChanged=function(e){},t.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t.activePlugins_[e]=!1,this.player=this.state=null,t[e]=go(e,lo[e])},e.isBasic=function(t){var n="string"==typeof t?ho(t):t;return"function"==typeof n&&!e.prototype.isPrototypeOf(n.prototype)},e.registerPlugin=function(t,n){if("string"!=typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+typeof t+".");if(uo(t))At.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(ao.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!=typeof n)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+typeof n+".");return lo[t]=n,"plugin"!==t&&(ao.prototype[t]=e.isBasic(n)?function(e,t){var n=function(){fo(this,{name:e,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return po(this,e),fo(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach(function(e){n[e]=t[e]}),n}(t,n):go(t,n)),n},e.deregisterPlugin=function(e){if("plugin"===e)throw new Error("Cannot de-register base plugin.");uo(e)&&(delete lo[e],delete ao.prototype[e])},e.getPlugins=function(e){var t;return void 0===e&&(e=Object.keys(lo)),e.forEach(function(e){var n=ho(e);n&&((t=t||{})[e]=n)}),t},e.getPluginVersion=function(e){var t=ho(e);return t&&t.VERSION||""},e}();mo.getPlugin=ho,mo.BASE_PLUGIN_NAME="plugin",mo.registerPlugin("plugin",mo),ao.prototype.usingPlugin=function(e){return!!this.activePlugins_&&!0===this.activePlugins_[e]},ao.prototype.hasPlugin=function(e){return!!uo(e)};var bo=!1,yo=function(e){return 0===e.indexOf("#")?e.slice(1):e};function vo(e,t,n){var i=vo.getPlayer(e);if(i)return t&&At.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&i.ready(n),i;var r="string"==typeof e?zn("#"+yo(e)):e;if(!hn(r))throw new TypeError("The element or ID supplied is not val
1id. (videojs)");r.ownerDocument.defaultView&&r.ownerDocument.body.contains(r)||At.warn("The element supplied is not included in the DOM"),!0===(t=t||{}).restoreEl&&(t.restoreEl=(r.parentNode&&r.parentNode.hasAttribute("data-vjs-player")?r.parentNode:r).cloneNode(!0)),wt("beforesetup").forEach(function(e){var n=e(r,Oi(t));Dt(n)&&!Array.isArray(n)?t=Oi(t,n):At.error("please return an object in beforesetup hooks")});var s=Ei.getComponent("Player");return i=new s(r,t,n),wt("setup").forEach(function(e){return e(i)}),i}if(vo.hooks_=_t,vo.hooks=wt,vo.hook=function(e,t){wt(e,t)},vo.hookOnce=function(e,t){wt(e,[].concat(t).map(function(t){return function n(){return kt(e,n),t.apply(void 0,arguments)}}))},vo.removeHook=kt,!0!==s.a.VIDEOJS_NO_DYNAMIC_STYLE&&dn()){var _o=zn(".vjs-styles-defaults");if(!_o){_o=Yn("vjs-styles-defaults");var wo=zn("head");wo&&wo.insertBefore(_o,wo.firstChild),$n(_o,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: 56.25%\n }\n ")}}Hn(1,vo),vo.VERSION="7.21.1",vo.options=ao.prototype.options_,vo.getPlayers=function(){return ao.players},vo.getPlayer=function(e){var t,n=ao.players;if("string"==typeof e){var i=yo(e),r=n[i];if(r)return r;t=zn("#"+i)}else t=e;if(hn(t)){var s=t.player,o=t.playerId;if(s||n[o])return s||n[o]}},vo.getAllPlayers=function(){return Object.keys(ao.players).map(function(e){return ao.players[e]}).filter(Boolean)},vo.players=ao.players,vo.getComponent=Ei.getComponent,vo.registerComponent=function(e,t){gr.isTech(t)&&At.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Ei.registerComponent.call(Ei,e,t)},vo.getTech=gr.getTech,vo.registerTech=gr.registerTech,vo.use=function(e,t){mr[e]=mr[e]||[],mr[e].push(t)},Object.defineProperty(vo,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(vo.middleware,"TERMINATOR",{value:yr,writeable:!1,enumerable:!0}),vo.browser=cn,vo.TOUCH_ENABLED=nn,vo.extend=function(e,t){void 0===t&&(t={}),bo||(At.warn("videojs.extend is deprecated as of Video.js 7.22.0 and will be removed in Video.js 8.0.0"),bo=!0);var n=function(){e.apply(this,arguments)},i={};for(var r in"object"==typeof t?(t.constructor!==Object.prototype.constructor&&(n=t.constructor),i=t):"function"==typeof t&&(n=t),T()(n,e),e&&(n.super_=e),i)i.hasOwnProperty(r)&&(n.prototype[r]=i[r]);return n},vo.mergeOptions=Oi,vo.bind=ui,vo.registerPlugin=mo.registerPlugin,vo.deregisterPlugin=mo.deregisterPlugin,vo.plugin=function(e,t){return At.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),mo.registerPlugin(e,t)},vo.getPlugins=mo.getPlugins,vo.getPlugin=mo.getPlugin,vo.getPluginVersion=mo.getPluginVersion,vo.addLanguage=function(e,t){var n;return e=(""+e).toLowerCase(),(vo.options.languages=Oi(vo.options.languages,((n={})[e]=t,n)))[e]},vo.log=At,vo.createLogger=Et,vo.createTimeRange=vo.createTimeRanges=Ri,vo.formatTime=Br,vo.setFormatTime=function(e){Fr=e},vo.resetFormatTime=function(){Fr=zr},vo.parseUrl=tr,vo.isCrossOrigin=rr,vo.EventTarget=hi,vo.on=ii,vo.one=oi,vo.off=ri,vo.trigger=si,vo.xhr=v.a,vo.TextTrack=cr,vo.AudioTrack=lr,vo.VideoTrack=ur,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(e){vo[e]=function(){return At.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),Bn[e].apply(null,arguments)}}),vo.computedStyle=Nt,vo.dom=Bn,vo.url=sr,vo.defineLazyProperty=eo,vo.addLanguage("en",{"Non-Fullscreen":"Exit Fullscreen"});var ko=x,Co=function(e,t,n){return e&&n&&n.responseURL&&t!==n.responseURL?n.responseURL:t},So=function(e){return vo.log.debug?vo.log.debug.bind(vo,"VHS:",e+" >"):function(){}},To=function(e,t){var n,i=[];if(e&&e.length)for(n=0;n<e.length;n++)t(e.start(n),e.end(n))&&i.push([e.start(n),e.end(n)]);return vo.createTimeRanges(i)},Po=function(e,t){return To(e,function(e,n){return e-.1<=t&&n+.1>=t})},Oo=function(e,t){return To(e,function(e){return e-.03333333333333333>=t})},xo=function(e){var t=[];if(!e||!e.length)return"";for(var n=0;n<e.length;n++)t.push(e.start(n)+" => "+e.end(n));return t.join(", ")},Ao=function(e){for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t},Eo=function(e){if(e&&e.length&&e.end)return e.end(e.length-1)},Mo=function(e,t){var n=0;if(!e||!e.length)return n;for(var i=0;i<e.length;i++){var r=e.start(i),s=e.end(i);t>s||(n+=t>r&&t<=s?s-t:s-r)}return n},Io=vo.createTimeRange,Ro=function(e,t){if(!t.preload)return t.duration;var n=0;
1return(t.parts||[]).forEach(function(e){n+=e.duration}),(t.preloadHints||[]).forEach(function(t){"PART"===t.type&&(n+=e.partTargetDuration)}),n},Lo=function(e){return(e.segments||[]).reduce(function(e,t,n){return t.parts?t.parts.forEach(function(i,r){e.push({duration:i.duration,segmentIndex:n,partIndex:r,part:i,segment:t})}):e.push({duration:t.duration,segmentIndex:n,partIndex:null,segment:t,part:null}),e},[])},Do=function(e){var t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},jo=function(e){var t=e.preloadSegment;if(t){var n=t.parts;return(t.preloadHints||[]).reduce(function(e,t){return e+("PART"===t.type?1:0)},0)+(n&&n.length?n.length:0)}},No=function(e,t){if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;var n=Do(t).length>0;return n&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:n&&t.partTargetDuration?3*t.partTargetDuration:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?3*t.targetDuration:0},Vo=function(e,t,n){if(void 0===t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;var i=function(e,t){var n=0,i=t-e.mediaSequence,r=e.segments[i];if(r){if(void 0!==r.start)return{result:r.start,precise:!0};if(void 0!==r.end)return{result:r.end-r.duration,precise:!0}}for(;i--;){if(void 0!==(r=e.segments[i]).end)return{result:n+r.end,precise:!0};if(n+=Ro(e,r),void 0!==r.start)return{result:n+r.start,precise:!0}}return{result:n,precise:!1}}(e,t);if(i.precise)return i.result;var r=function(e,t){for(var n,i=0,r=t-e.mediaSequence;r<e.segments.length;r++){if(void 0!==(n=e.segments[r]).start)return{result:n.start-i,precise:!0};if(i+=Ro(e,n),void 0!==n.end)return{result:n.end-i,precise:!0}}return{result:-1,precise:!1}}(e,t);return r.precise?r.result:i.result+n},zo=function(e,t,n){if(!e)return 0;if("number"!=typeof n&&(n=0),void 0===t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return s.a.Infinity}return Vo(e,t,n)},Fo=function(e){var t=e.defaultDuration,n=e.durationList,i=e.startIndex,r=e.endIndex,s=0;if(i>r){var o=[r,i];i=o[0],r=o[1]}if(i<0){for(var a=i;a<Math.min(0,r);a++)s+=t;i=0}for(var c=i;c<r;c++)s+=n[c].duration;return s},Bo=function(e,t,n,i){if(!e||!e.segments)return null;if(e.endList)return zo(e);if(null===t)return null;var r=Vo(e,e.mediaSequence+e.segments.length,t=t||0);return n&&(r-=i="number"==typeof i?i:No(null,e)),Math.max(0,r)},qo=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},Uo=function(e){return e.excludeUntil&&e.excludeUntil===1/0},Ho=function(e){var t=qo(e);return!e.disabled&&!t},Wo=function(e,t){return t.attributes&&t.attributes[e]},Go=function(e,t){if(1===e.playlists.length)return!0;var n=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter(function(e){return!!Ho(e)&&(e.attributes.BANDWIDTH||0)<n}).length},Yo=function(e,t){return!(!e&&!t||!e&&t||e&&!t||e!==t&&(!e.id||!t.id||e.id!==t.id)&&(!e.resolvedUri||!t.resolvedUri||e.resolvedUri!==t.resolvedUri)&&(!e.uri||!t.uri||e.uri!==t.uri))},$o=function(e,t){var n=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{},i=!1;for(var r in n){for(var s in n[r])if(i=t(n[r][s]))break;if(i)break}return!!i},Zo=function(e){if(!e||!e.playlists||!e.playlists.length)return $o(e,function(e){return e.playlists&&e.playlists.length||e.uri});for(var t=function(t){var n=e.playlists[t],i=n.attributes&&n.attributes.CODECS;return i&&i.split(",").every(function(e){return G(e)})||$o(e,function(e){return Yo(n,e)})?"continue":{v:!1}},n=0;n<e.playlists.length;n++){var i=t(n);if("continue"!==i&&"object"==typeof i)return i.v}return!0},Qo={liveEdgeDelay:No,duration:zo,seekable:function(e,t,n){var i=t||0,r=Bo(e,t,!0,n);return null===r?Io():Io(i,r)},getMediaInfoForTime:function(e){for(var t=e.playlist,n=e.currentTime,i=e.startingSegmentIndex,r=e.startingPartIndex,s=e.startTime,o=e.experimentalExactManifestTimings,a=n-s,c=Lo(t),l=0,u=0;u<c.length;u++){var d=c[u];if(i===d.segmentIndex&&("number"!=typeof r||"number"!=typeof d.partIndex||r===d.partIndex)){l=u;break}}if(a<0){if(l>0)for(var h=l-1;h>=0;h--){var p=c[h];if(a+=p.duration,o){if(a<0)continue}else if(a+.03333333333333333<=0)continue;return{partIndex:p.partIndex,segmentIndex:p.segmentIndex,startTime:s-Fo({defaultDuration:t.targetDuration,durationList:c,startIndex:l,endIndex:h})}}return{partIndex:c[0]&&c[0].partIndex||null,segmentIndex:c[0]&&c[0].segmentIndex||0,startTime:n}}if(l<0){for(var f=l;f<0;f++)if((a-=t.targetDuration)<0)return{partIndex:c[0]&&c[0].partIndex||null,segmentIndex:c[0]&&c[0].segmentIndex||0,startTime:n};l=0}for(var g=l;g<c.length;g++){var m=c[g];if(a-=m.duration,o){if(a>0)continue}else if(a-.03333333333333333>=0)continue;return{partIndex:m.partIndex,segmentIndex:m.segmentIndex,startTime:s+Fo({defaultDuration:t.targetDuration,durationList:c,startIndex:l,endIndex:g})}}return{segmentIndex:c[c.length-1].segmentIndex,partIndex:c[c.length-1].partIndex,startTime:n}},isEnabled:Ho,isDisabled:function(e){return e.disabled},isBlacklisted:qo,isIncompatible:Uo,playlistEnd:Bo,isAes:function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},hasAttribute:Wo,estimateSegmentRequestTime:function(e,t,n,i){return void 0===i&&(i=0),Wo("BANDWIDTH",n)?(e*n.attributes.BANDWIDTH-8*i)/t:NaN},isLowestEnabledRendition:Go,isAudioOnly:Zo,playlistMatch:Yo,segmentDurationWithParts:Ro},Xo=vo.log,Ko=function(e,t){return e+"-"+t},Jo=function(e,t){e.mediaGroups&&["AUDIO","SUBTITLES"].forEach(function(n){if(e.mediaGroups[n])for(var i in e.mediaGroups[n])for(var r in e.mediaGroups[n][i])t(e.mediaGroups[n][i][r],n,i,r)})}
1,ea=function(e){var t=e.playlist,n=e.uri;t.id=e.id,t.playlistErrors_=0,n&&(t.uri=n),t.attributes=t.attributes||{}},ta=function(e,t){e.uri=t;for(var n=0;n<e.playlists.length;n++)e.playlists[n].uri||(e.playlists[n].uri="placeholder-uri-"+n);var i=Zo(e);Jo(e,function(t,n,r,s){var o="placeholder-uri-"+n+"-"+r+"-"+s;if(!t.playlists||!t.playlists.length){if(i&&"AUDIO"===n&&!t.uri)for(var a=0;a<e.playlists.length;a++){var c=e.playlists[a];if(c.attributes&&c.attributes.AUDIO&&c.attributes.AUDIO===r)return}t.playlists=[l()({},t)]}t.playlists.forEach(function(t,n){var i=Ko(n,o);t.uri?t.resolvedUri=t.resolvedUri||ko(e.uri,t.uri):(t.uri=0===n?o:i,t.resolvedUri=t.uri),t.id=t.id||i,t.attributes=t.attributes||{},e.playlists[t.id]=t,e.playlists[t.uri]=t})}),function(e){for(var t=e.playlists.length;t--;){var n=e.playlists[t];ea({playlist:n,id:Ko(t,n.uri)}),n.resolvedUri=ko(e.uri,n.uri),e.playlists[n.id]=n,e.playlists[n.uri]=n,n.attributes.BANDWIDTH||Xo.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}}(e),function(e){Jo(e,function(t){t.uri&&(t.resolvedUri=ko(e.uri,t.uri))})}(e)},na=vo.mergeOptions,ia=function(e,t){if(!e)return t;var n=na(e,t);if(e.preloadHints&&!t.preloadHints&&delete n.preloadHints,e.parts&&!t.parts)delete n.parts;else if(e.parts&&t.parts)for(var i=0;i<t.parts.length;i++)e.parts&&e.parts[i]&&(n.parts[i]=na(e.parts[i],t.parts[i]));return!e.skipped&&t.skipped&&(n.skipped=!1),e.preload&&!t.preload&&(n.preload=!1),n},ra=function(e,t){!e.resolvedUri&&e.uri&&(e.resolvedUri=ko(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=ko(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=ko(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=ko(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach(function(e){e.resolvedUri||(e.resolvedUri=ko(t,e.uri))}),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach(function(e){e.resolvedUri||(e.resolvedUri=ko(t,e.uri))})},sa=function(e){var t=e.segments||[],n=e.preloadSegment;if(n&&n.parts&&n.parts.length){if(n.preloadHints)for(var i=0;i<n.preloadHints.length;i++)if("MAP"===n.preloadHints[i].type)return t;n.duration=e.targetDuration,n.preload=!0,t.push(n)}return t},oa=function(e,t){return e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence&&e.preloadSegment===t.preloadSegment},aa=function(e,t,n){void 0===n&&(n=oa);var i=na(e,{}),r=i.playlists[t.id];if(!r)return null;if(n(r,t))return null;t.segments=sa(t);var s=na(r,t);if(s.preloadSegment&&!t.preloadSegment&&delete s.preloadSegment,r.segments){if(t.skip){t.segments=t.segments||[];for(var o=0;o<t.skip.skippedSegments;o++)t.segments.unshift({skipped:!0})}s.segments=function(e,t,n){var i=e.slice(),r=t.slice();n=n||0;for(var s,o=[],a=0;a<r.length;a++){var c=i[a+n],l=r[a];c?(s=c.map||s,o.push(ia(c,l))):(s&&!l.map&&(l.map=s),o.push(l))}return o}(r.segments,t.segments,t.mediaSequence-r.mediaSequence)}s.segments.forEach(function(e){ra(e,s.resolvedUri)});for(var a=0;a<i.playlists.length;a++)i.playlists[a].id===t.id&&(i.playlists[a]=s);return i.playlists[t.id]=s,i.playlists[t.uri]=s,Jo(e,function(e,n,i,r){if(e.playlists)for(var o=0;o<e.playlists.length;o++)t.id===e.playlists[o].id&&(e.playlists[o]=s)}),i},ca=function(e,t){var n=e.segments||[],i=n[n.length-1],r=i&&i.parts&&i.parts[i.parts.length-1],s=r&&r.duration||i&&i.duration;return t&&s?1e3*s:500*(e.partTargetDuration||e.targetDuration||10)},la=function(e){function t(t,n,i){var r;if(void 0===i&&(i={}),r=e.call(this)||this,!t)throw new Error("A non-empty playlist URL or object is required");r.logger_=So("PlaylistLoader");var s=i.withCredentials,o=void 0!==s&&s,a=i.handleManifestRedirects,c=void 0!==a&&a;r.src=t,r.vhs_=n,r.withCredentials=o,r.handleManifestRedirects=c;var l=n.options_;return r.customTagParsers=l&&l.customTagParsers||[],r.customTagMappers=l&&l.customTagMappers||[],r.experimentalLLHLS=l&&l.experimentalLLHLS||!1,vo.browser.IE_VERSION&&(r.experimentalLLHLS=!1),r.state="HAVE_NOTHING",r.handleMediaupdatetimeout_=r.handleMediaupdatetimeout_.bind(p()(r)),r.on("mediaupdatetimeout",r.handleMediaupdatetimeout_),r}g()(t,e);var n=t.prototype;return n.handleMediaupdatetimeout_=function(){var e=this;if("HAVE_METADATA"===this.state){var t=this.media(),n=ko(this.master.uri,t.uri);this.experimentalLLHLS&&(n=function(e,t){if(t.endList||!t.serverControl)return e;var n={};if(t.serverControl.canBlockReload){var i=t.preloadSegment,r=t.mediaSequence+t.segments.length;if(i){var o=i.parts||[],a=jo(t)-1;a>-1&&a!==o.length-1&&(n._HLS_part=a),(a>-1||o.length)&&r--}n._HLS_msn=r}if(t.serverControl&&t.serverControl.canSkipUntil&&(n._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(n).length){var c=new s.a.URL(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach(function(e){n.hasOwnProperty(e)&&c.searchParams.set(e,n[e])}),e=c.toString()}return e}(n,t)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:n,withCredentials:this.withCredentials},function(t,n){if(e.request)return t?e.playlistRequestError(e.request,e.media(),"HAVE_METADATA"):void e.haveMetadata({playlistString:e.request.responseText,url:e.media().uri,id:e.media().id})})}},n.playlistRequestError=function(e,t,n){var i=t.uri,r=t.id;this.request=null,n&&(this.state=n),this.error={playlist:this.master.playlists[r],status:e.status,message:"HLS playlist request error at URL: "+i+".",responseText:e.responseText,code:e.status>=500?4:2},this.trigger("error")},n.parseManifest_=function(e){var t=this,n=e.url;return function(e){var t=e.onwarn,n=e.oninfo,i=e.manifestString,r=e.customTagParsers,s=void 0===r?[]:r,o=e.customTagMappers,a=void 0===o?[]:o,c=e.experimentalLLHLS,l=new F;
1t&&l.on("warn",t),n&&l.on("info",n),s.forEach(function(e){return l.addParser(e)}),a.forEach(function(e){return l.addTagMapper(e)}),l.push(i),l.end();var u=l.manifest;if(c||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(e){u.hasOwnProperty(e)&&delete u[e]}),u.segments&&u.segments.forEach(function(e){["parts","preloadHints"].forEach(function(t){e.hasOwnProperty(t)&&delete e[t]})})),!u.targetDuration){var d=10;u.segments&&u.segments.length&&(d=u.segments.reduce(function(e,t){return Math.max(e,t.duration)},0)),t&&t("manifest has no targetDuration defaulting to "+d),u.targetDuration=d}var h=Do(u);if(h.length&&!u.partTargetDuration){var p=h.reduce(function(e,t){return Math.max(e,t.duration)},0);t&&(t("manifest has no partTargetDuration defaulting to "+p),Xo.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),u.partTargetDuration=p}return u}({onwarn:function(e){return t.logger_("m3u8-parser warn for "+n+": "+e.message)},oninfo:function(e){return t.logger_("m3u8-parser info for "+n+": "+e.message)},manifestString:e.manifestString,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,experimentalLLHLS:this.experimentalLLHLS})},n.haveMetadata=function(e){var t=e.playlistString,n=e.playlistObject,i=e.url,r=e.id;this.request=null,this.state="HAVE_METADATA";var s=n||this.parseManifest_({url:i,manifestString:t});s.lastRequest=Date.now(),ea({playlist:s,uri:i,id:r});var o=aa(this.master,s);this.targetDuration=s.partTargetDuration||s.targetDuration,this.pendingMedia_=null,o?(this.master=o,this.media_=this.master.playlists[r]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(ca(this.media(),!!o)),this.trigger("loadedplaylist")},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),s.a.clearTimeout(this.mediaUpdateTimeout),s.a.clearTimeout(this.finalRenditionTimeout),this.off()},n.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},n.media=function(e,t){var n=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof e){if(!this.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.master.playlists[e]}if(s.a.clearTimeout(this.finalRenditionTimeout),t){var i=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=s.a.setTimeout(this.media.bind(this,e,!1),i)}else{var r=this.state,o=!this.media_||e.id!==this.media_.id,a=this.master.playlists[e.id];if(a&&a.endList||e.endList&&e.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(o&&(this.trigger("mediachanging"),this.trigger("HAVE_MASTER"===r?"loadedmetadata":"mediachange")));if(this.updateMediaUpdateTimeout_(ca(e,!0)),o){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e,this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials},function(t,i){if(n.request){if(e.lastRequest=Date.now(),e.resolvedUri=Co(n.handleManifestRedirects,e.resolvedUri,i),t)return n.playlistRequestError(n.request,e,r);n.haveMetadata({playlistString:i.responseText,url:e.uri,id:e.id}),n.trigger("HAVE_MASTER"===r?"loadedmetadata":"mediachange")}})}}},n.pause=function(){this.mediaUpdateTimeout&&(s.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.state=this.media_?"HAVE_METADATA":"HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")},n.load=function(e){var t=this;this.mediaUpdateTimeout&&(s.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);var n=this.media();e?this.mediaUpdateTimeout=s.a.setTimeout(function(){t.mediaUpdateTimeout=null,t.load()},n?(n.partTargetDuration||n.targetDuration)/2*1e3:5e3):this.started?this.trigger(n&&!n.endList?"mediaupdatetimeout":"loadedplaylist"):this.start()},n.updateMediaUpdateTimeout_=function(e){var t=this;this.mediaUpdateTimeout&&(s.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=s.a.setTimeout(function(){t.mediaUpdateTimeout=null,t.trigger("mediaupdatetimeout"),t.updateMediaUpdateTimeout_(e)},e))},n.start=function(){var e=this;
1if(this.started=!0,"object"==typeof this.src)return this.src.uri||(this.src.uri=s.a.location.href),this.src.resolvedUri=this.src.uri,void setTimeout(function(){e.setupInitialPlaylist(e.src)},0);this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},function(t,n){if(e.request){if(e.request=null,t)return e.error={status:n.status,message:"HLS playlist request error at URL: "+e.src+".",responseText:n.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.src=Co(e.handleManifestRedirects,e.src,n);var i=e.parseManifest_({manifestString:n.responseText,url:e.src});e.setupInitialPlaylist(i)}})},n.srcUri=function(){return"string"==typeof this.src?this.src:this.src.uri},n.setupInitialPlaylist=function(e){if(this.state="HAVE_MASTER",e.playlists)return this.master=e,ta(this.master,this.srcUri()),e.playlists.forEach(function(e){e.segments=sa(e),e.segments.forEach(function(t){ra(t,e.resolvedUri)})}),this.trigger("loadedplaylist"),void(this.request||this.media(this.master.playlists[0]));var t=this.srcUri()||s.a.location.href;this.master=function(e,t){var n=Ko(0,t),i={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:s.a.location.href,resolvedUri:s.a.location.href,playlists:[{uri:t,id:n,resolvedUri:t,attributes:{}}]};return i.playlists[n]=i.playlists[0],i.playlists[t]=i.playlists[0],i}(0,t),this.haveMetadata({playlistObject:e,url:t,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},t}(vo.EventTarget),ua=vo.xhr,da=vo.mergeOptions,ha=function(e,t,n,i){var r="arraybuffer"===e.responseType?e.response:e.responseText;!t&&r&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=r.byteLength||r.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8*1e3))),n.headers&&(e.responseHeaders=n.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),t||e.aborted||200===n.statusCode||206===n.statusCode||0===n.statusCode||(t=new Error("XHR Failed with a response of: "+(e&&(r||e.responseText)))),i(t,e)},pa=function(){var e=function e(t,n){t=da({timeout:45e3},t);var i=e.beforeRequest||vo.Vhs.xhr.beforeRequest;if(i&&"function"==typeof i){var r=i(t);r&&(t=r)}var s=(!0===vo.Vhs.xhr.original?ua:vo.Vhs.xhr)(t,function(e,t){return ha(s,e,t,n)}),o=s.abort;return s.abort=function(){return s.aborted=!0,o.apply(s,arguments)},s.uri=t.uri,s.requestTime=Date.now(),s};return e.original=!0,e},fa=function(e){var t,n={};return e.byterange&&(n.Range="bytes="+(t=e.byterange).offset+"-"+("bigint"==typeof t.offset||"bigint"==typeof t.length?s.a.BigInt(t.offset)+s.a.BigInt(t.length)-s.a.BigInt(1):t.offset+t.length-1)),n},ga=function(e,t){return e.start(t)+"-"+e.end(t)},ma=function(e,t){var n=e.toString(16);return"00".substring(0,2-n.length)+n+(t%2?" ":"")},ba=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},ya=function(e){var t={};return Object.keys(e).forEach(function(n){var i=e[n];t[n]=J(i)?{bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:i}),t},va=function(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},_a=function(e){return e.resolvedUri},wa=function(e){for(var t=Array.prototype.slice.call(e),n="",i=0;i<t.length/16;i++)n+=t.slice(16*i,16*i+16).map(ma).join("")+" "+t.slice(16*i,16*i+16).map(ba).join("")+"\n";return n},ka=Object.freeze({__proto__:null,createTransferableMessage:ya,initSegmentId:va,segmentKeyId:_a,hexDump:wa,tagDump:function(e){return wa(e.bytes)},textRanges:function(e){var t,n="";for(t=0;t<e.length;t++)n+=ga(e,t)+" ";return n}}),Ca=function e(t){var n=t.programTime,i=t.playlist,r=t.retryCount,s=void 0===r?2:r,o=t.seekTo,a=t.pauseAfterSeek,c=void 0===a||a,l=t.tech,u=t.callback;if(!u)throw new Error("seekToProgramTime: callback must be provided");if(void 0===n||!i||!o)return u({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!i.endList&&!l.hasStarted_)return u({message:"player must be playing a live stream to start buffering"});if(!function(e){if(!e.segments||0===e.segments.length)return!1;for(var t=0;t<e.segments.length;t++)if(!e.segments[t].dateTimeObject)return!1;return!0}(i))return u({message:"programDateTime tags must be provided in the manifest "+i.resolvedUri});var d=function(e,t){var n;try{n=new Date(e)}catch(l){return null}if(!t||!t.segments||0===t.segments.length)return null;var i=t.segments[0];if(n<i.dateTimeObject)return null;for(var r=0;r<t.segments.length-1&&(i=t.segments[r],!(n<t.segments[r+1].dateTimeObject));r++);var s,o=t.segments[t.segments.length-1],a=o.dateTimeObject,c=o.videoTimingInfo?(s=o.videoTimingInfo).transmuxedPresentationEnd-s.transmuxedPresentationStart-s.transmuxerPrependedSeconds:o.duration+.25*o.duration;return n>new Date(a.getTime()+1e3*c)?null:(n>a&&(i=o),{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:Qo.duration(t,t.mediaSequence+t.segments.indexOf(i)),type:i.videoTimingInfo?"accurate":"estimate"})}(n,i);if(!d)return u({message:n+" was not found in the stream"});var h=d.segment,p=function(e,t){var n,i;try{n=new Date(e),i=new Date(t)}catch(s){}var r=n.getTime();return(i.getTime()-r)/1e3}(h.dateTimeObject,n);if("estimate"===d.type)return 0===s?u({message:n+" is not buffered yet. Try again"}):(o(d.estimatedStart+p),void l.one("seeked",function(){e({programTime:n,playlist:i,retryCount:s-1,seekTo:o,pauseAfterSeek:c,tech:l,callback:u})}));var f=h.start+p;l.one("seeked",function(){return u(null,l.currentTime())}),c&&l.pause(),o(f)},Sa=function(e,t){if(4===e.readyState)return t()},Ta=vo.mergeOptions,Pa=function(e,t){if(!oa(e,t))return!1;if(e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length))return!1;if(!e.sidx&&t.sidx||e.sidx&&!t.sidx)return!1;if(e.segments&&!t.segments||!e.segments&&t.segments)return!1;if(!e.segments&&!t.segments)return!0;for(var n=0;n<e.segments.length;n++){var i=e.segments[n],r=t.segments[n];if(i.uri!==r.uri)return!1;if(i.byterange||r.byterange){var s=i.byterange,o=r.byterange;if(s&&!o||!s&&o)return!1;if(s.offset!==o.offset||s.length!==o.length)return!1}}return!0},Oa=function(e,t){return(Boolean(!e.map&&!t.map)||Boolean(e.map&&t.map&&e.map.byterange.offset===t.map.byterange.offset&&e.map.byterange.length===t.map.byterange.length))&&e.uri===t.uri&&e.byterange.offset===t.byterange.offset&&e.byterange.length===t.byterange.length},xa=function(e,t){var n={};for(var i in e){var r=e[i].sidx;if(r){var s=Ce(r);if(!t[s])break;Oa(t[s].sidxInfo,r)&&(n[s]=t[s])}}return n},Aa=function(e){function t(t,n,i,r){var s;void 0===i&&(i={}),(s=e.call(this)||this).masterPlaylistLoader_=r||p()(s),r||(s.isMaster_=!0);var o=i.withCredentials,a=void 0!==o&&o,c=i.handleManifestRedirects,l=void 0!==c&&c;
1if(s.vhs_=n,s.withCredentials=a,s.handleManifestRedirects=l,!t)throw new Error("A non-empty playlist URL or object is required");return s.on("minimumUpdatePeriod",function(){s.refreshXml_()}),s.on("mediaupdatetimeout",function(){s.refreshMedia_(s.media().id)}),s.state="HAVE_NOTHING",s.loadedPlaylists_={},s.logger_=So("DashPlaylistLoader"),s.isMaster_?(s.masterPlaylistLoader_.srcUrl=t,s.masterPlaylistLoader_.sidxMapping_={}):s.childPlaylist_=t,s}g()(t,e);var n=t.prototype;return n.requestErrored_=function(e,t,n){return!this.request||(this.request=null,e?(this.error="object"!=typeof e||e instanceof Error?{status:t.status,message:"DASH request error at URL: "+t.uri,response:t.response,code:2}:e,n&&(this.state=n),this.trigger("error"),!0):void 0)},n.addSidxSegments_=function(e,t,n){var i=this,r=e.sidx&&Ce(e.sidx);if(e.sidx&&r&&!this.masterPlaylistLoader_.sidxMapping_[r]){var o=Co(this.handleManifestRedirects,e.sidx.resolvedUri),a=function(s,o){if(!i.requestErrored_(s,o,t)){var a,c=i.masterPlaylistLoader_.sidxMapping_;try{a=Qe()(ee(o.response).subarray(8))}catch(l){return void i.requestErrored_(l,o,t)}return c[r]={sidxInfo:e.sidx,sidx:a},ye(e,a,e.sidx.resolvedUri),n(!0)}};this.request=function(e,t,n){var i,r=[],s=!1,o=function(e,t,i,r){return t.abort(),s=!0,n(e,t,i,r)},a=function(e,t){if(!s){if(e)return o(e,t,"",r);var n=t.responseText.substring(r&&r.byteLength||0,t.responseText.length);if(r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if((t=t.filter(function(e){return e&&(e.byteLength||e.length)&&"string"!=typeof e})).length<=1)return ee(t[0]);var i=t.reduce(function(e,t,n){return e+(t.byteLength||t.length)},0),r=new Uint8Array(i),s=0;return t.forEach(function(e){e=ee(e),r.set(e,s),s+=e.byteLength}),r}(r,re(n,!0)),i=i||Ke(r),r.length<10||i&&r.length<i+2)return Sa(t,function(){return o(e,t,"",r)});var a=yt(r);return"ts"===a&&r.length<188||!a&&r.length<376?Sa(t,function(){return o(e,t,"",r)}):o(null,t,a,r)}},c={uri:e,beforeSend:function(e){e.overrideMimeType("text/plain; charset=x-user-defined"),e.addEventListener("progress",function(t){return ha(e,null,{statusCode:e.status},a)})}},l=t(c,function(e,t){return ha(l,e,t,a)});return l}(o,this.vhs_.xhr,function(t,n,r,s){if(t)return a(t,n);if(!r||"mp4"!==r)return a({status:n.status,message:"Unsupported "+(r||"unknown")+" container type for sidx segment at URL: "+o,response:"",playlist:e,internal:!0,blacklistDuration:1/0,code:2},n);var c=e.sidx.byterange,l=c.offset,u=c.length;if(s.length>=u+l)return a(t,{response:s.subarray(l,l+u),status:n.status,uri:n.uri});i.request=i.vhs_.xhr({uri:o,responseType:"arraybuffer",headers:fa({byterange:e.sidx.byterange})},a)})}else this.mediaRequest_=s.a.setTimeout(function(){return n(!1)},0)},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},s.a.clearTimeout(this.minimumUpdatePeriodTimeout_),s.a.clearTimeout(this.mediaRequest_),s.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.off()},n.hasPendingRequest=function(){return this.request||this.mediaRequest_},n.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},n.media=function(e){var t=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var n=this.state;if("string"==typeof e){if(!this.masterPlaylistLoader_.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.masterPlaylistLoader_.master.playlists[e]}var i=!this.media_||e.id!==this.media_.id;if(i&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(i&&(this.trigger("mediachanging"),this.trigger("mediachange")));i&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,n,function(i){t.haveMetadata({startingState:n,playlist:e})}))},n.haveMetadata=function(e){var t=e.startingState,n=e.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[n.id]=n,this.mediaRequest_=null,this.refreshMedia_(n.id),this.trigger("HAVE_MASTER"===t?"loadedmetadata":"mediachange")},n.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),s.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(s.a.clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)},n.load=function(e){var t=this;s.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var n=this.media();e?this.mediaUpdateTimeout=s.a.setTimeout(function(){return t.load()},n?n.targetDuration/2*1e3:5e3):this.started?n&&!n.endList?(this.isMaster_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()},n.start=function(){var e=this;this.started=!0,this.isMaster_?this.requestMaster_(function(t,n){e.haveMaster_(),e.hasPendingRequest()||e.media_||e.media(e.masterPlaylistLoader_.master.playlists[0])}):this.mediaRequest_=s.a.setTimeout(function(){return e.haveMaster_()},0)},n.requestMaster_=function(e){var t=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials}
1,function(n,i){if(!t.requestErrored_(n,i)){var r=i.responseText!==t.masterPlaylistLoader_.masterXml_;return t.masterPlaylistLoader_.masterXml_=i.responseText,t.masterLoaded_=i.responseHeaders&&i.responseHeaders.date?Date.parse(i.responseHeaders.date):Date.now(),t.masterPlaylistLoader_.srcUrl=Co(t.handleManifestRedirects,t.masterPlaylistLoader_.srcUrl,i),r?(t.handleMaster_(),void t.syncClientServerClock_(function(){return e(i,r)})):e(i,r)}"HAVE_NOTHING"===t.state&&(t.started=!1)})},n.syncClientServerClock_=function(e){var t=this,n=function(e){var t=ze(e,"UTCTiming")[0];if(!t)return null;var n=Ue(t);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;default:throw new Error("UNSUPPORTED_UTC_TIMING_SCHEME")}return n}($e(this.masterPlaylistLoader_.masterXml_));return null===n?(this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),e()):"DIRECT"===n.method?(this.masterPlaylistLoader_.clientOffset_=n.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:ko(this.masterPlaylistLoader_.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials},function(i,r){if(t.request){if(i)return t.masterPlaylistLoader_.clientOffset_=t.masterLoaded_-Date.now(),e();var s;s="HEAD"===n.method?r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):t.masterLoaded_:Date.parse(r.responseText),t.masterPlaylistLoader_.clientOffset_=s-Date.now(),e()}}))},n.haveMaster_=function(){this.state="HAVE_MASTER",this.isMaster_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)},n.handleMaster_=function(){this.mediaRequest_=null;var e,t,n,i=this.masterPlaylistLoader_.master,r=(n=function(e,t){void 0===t&&(t={});var n=function(e,t){void 0===t&&(t={});var n=t,i=n.manifestUri,r=void 0===i?"":i,s=n.NOW,o=void 0===s?Date.now():s,a=n.clientOffset,c=void 0===a?0:a,l=ze(e,"Period");if(!l.length)throw new Error("INVALID_NUMBER_OF_PERIOD");var u=ze(e,"Location"),d=Ue(e),h=We([r],ze(e,"BaseURL"));d.type=d.type||"static",d.sourceDuration=d.mediaPresentationDuration||0,d.NOW=o,d.clientOffset=c,u.length&&(d.locations=u.map(Fe));var p=[];return l.forEach(function(e,t){var n=Ue(e),i=p[t-1];n.start=function(e){var t=e.attributes,n=e.priorPeriodAttributes;return"number"==typeof t.start?t.start:n&&"number"==typeof n.start&&"number"==typeof n.duration?n.start+n.duration:n||"static"!==e.mpdType?null:0}({attributes:n,priorPeriodAttributes:i?i.attributes:null,mpdType:d.type}),p.push({node:e,attributes:n})}),{locations:d.locations,representationInfo:ue(p.map(Ye(d,h)))}}($e(e),t);return function(e){var t,n=e.dashPlaylists,i=e.locations,r=e.sidxMapping,s=void 0===r?{}:r,o=e.previousManifest;if(!n.length)return{};var a=n[0].attributes,c=a.sourceDuration,l=a.type,u=a.suggestedPresentationDelay,d=a.minimumUpdatePeriod,h=Se(n.filter(xe)).map(Oe),p=Se(n.filter(Ae)),f=Se(n.filter(Ee)),g=n.map(function(e){return e.attributes.captionServices}).filter(Boolean),m={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(t={AUDIO:{},VIDEO:{}},t["CLOSED-CAPTIONS"]={},t.SUBTITLES={},t),uri:"",duration:c,playlists:Pe(h,s)};d>=0&&(m.minimumUpdatePeriod=1e3*d),i&&(m.locations=i),"dynamic"===l&&(m.suggestedPresentationDelay=u);var b,y,v,_,w,k,C=p.length?function(e,t,n){var i;void 0===t&&(t={}),void 0===n&&(n=!1);var r=e.reduce(function(e,r){var s=r.attributes.role&&r.attributes.role.value||"",o=r.attributes.lang||"",a=r.attributes.label||"main";o&&!r.attributes.label&&(a=r.attributes.lang+(s?" ("+s+")":"")),e[a]||(e[a]={language:o,autoselect:!0,default:"main"===s,playlists:[],uri:""});var c=Te(function(e,t){var n,i=e.attributes,r=e.segments,s=e.sidx,o=e.mediaSequence,a=e.discontinuitySequence,c=e.discontinuityStarts,l={attributes:(n={NAME:i.id,BANDWIDTH:i.bandwidth,CODECS:i.codecs}
1,n["PROGRAM-ID"]=1,n),uri:"",endList:"static"===i.type,timeline:i.periodStart,resolvedUri:"",targetDuration:i.duration,discontinuitySequence:a,discontinuityStarts:c,timelineStarts:i.timelineStarts,mediaSequence:o,segments:r};return i.contentProtection&&(l.contentProtection=i.contentProtection),s&&(l.sidx=s),t&&(l.attributes.AUDIO="audio",l.attributes.SUBTITLES="subs"),l}(r,n),t);return e[a].playlists.push(c),void 0===i&&"main"===s&&((i=r).default=!0),e},{});return i||(r[Object.keys(r)[0]].default=!0),r}(p,s,0===m.playlists.length):null,S=f.length?function(e,t){return void 0===t&&(t={}),e.reduce(function(e,n){var i=n.attributes.lang||"text";return e[i]||(e[i]={language:i,default:!1,autoselect:!1,playlists:[],uri:""}),e[i].playlists.push(Te(function(e){var t,n=e.attributes,i=e.segments,r=e.mediaSequence,s=e.discontinuityStarts,o=e.discontinuitySequence;void 0===i&&(i=[{uri:n.baseUrl,timeline:n.periodStart,resolvedUri:n.baseUrl||"",duration:n.sourceDuration,number:0}],n.duration=n.sourceDuration);var a=((t={NAME:n.id,BANDWIDTH:n.bandwidth})["PROGRAM-ID"]=1,t);return n.codecs&&(a.CODECS=n.codecs),{attributes:a,uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:n.baseUrl||"",targetDuration:n.duration,timelineStarts:n.timelineStarts,discontinuityStarts:s,discontinuitySequence:o,mediaSequence:r,segments:i}}(n),t)),e},{})}(f,s):null,T=h.concat(Me(C),Me(S)),P=T.map(function(e){return e.timelineStarts});return m.timelineStarts=_e(P),b=m.timelineStarts,T.forEach(function(e){e.mediaSequence=0,e.discontinuitySequence=he(b,function(t){return t.timeline===e.timeline}),e.segments&&e.segments.forEach(function(e,t){e.number=t})}),C&&(m.mediaGroups.AUDIO.audio=C),S&&(m.mediaGroups.SUBTITLES.subs=S),g.length&&(m.mediaGroups["CLOSED-CAPTIONS"].cc=g.reduce(function(e,t){return t?(t.forEach(function(t){var n=t.language;e[n]={autoselect:!1,default:!1,instreamId:t.channel,language:n},t.hasOwnProperty("aspectRatio")&&(e[n].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[n].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[n]["3D"]=t["3D"])}),e):e},{})),o?(_=(y={oldManifest:o,newManifest:m}).newManifest,w=(v=y.oldManifest).playlists.concat(we(v)),k=_.playlists.concat(we(_)),_.timelineStarts=_e([v.timelineStarts,_.timelineStarts]),function(e){var t=e.oldPlaylists,n=e.timelineStarts;
1e.newPlaylists.forEach(function(e){e.discontinuitySequence=he(n,function(t){return t.timeline===e.timeline});var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].attributes.NAME===t)return e[n];return null}(t,e.attributes.NAME);if(i&&!e.sidx){var r=e.segments[0],s=he(i.segments,function(e){return Math.abs(e.presentationTime-r.presentationTime)<.016666666666666666});if(-1===s)return ke({playlist:e,mediaSequence:i.mediaSequence+i.segments.length}),e.segments[0].discontinuity=!0,e.discontinuityStarts.unshift(0),void((!i.segments.length&&e.timeline>i.timeline||i.segments.length&&e.timeline>i.segments[i.segments.length-1].timeline)&&e.discontinuitySequence--);i.segments[s].discontinuity&&!r.discontinuity&&(r.discontinuity=!0,e.discontinuityStarts.unshift(0),e.discontinuitySequence--),ke({playlist:e,mediaSequence:i.segments[s].number})}})}({oldPlaylists:w,newPlaylists:k,timelineStarts:_.timelineStarts}),_):m}({dashPlaylists:n.representationInfo.map(Ve),locations:n.locations,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest})}((e={masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_,previousManifest:i}).masterXml,{manifestUri:t=e.srcUrl,clientOffset:e.clientOffset,sidxMapping:e.sidxMapping,previousManifest:e.previousManifest}),ta(n,t),n);i&&(r=function(e,t,n){for(var i=!0,r=Ta(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts}),s=0;s<t.playlists.length;s++){var o=t.playlists[s];if(o.sidx){var a=Ce(o.sidx);n&&n[a]&&n[a].sidx&&ye(o,n[a].sidx,o.sidx.resolvedUri)}var c=aa(r,o,Pa);c&&(r=c,i=!1)}return Jo(t,function(e,t,n,s){if(e.playlists&&e.playlists.length){var o=e.playlists[0].id,a=aa(r,e.playlists[0],Pa);a&&((r=a).mediaGroups[t][n][s].playlists[0]=r.playlists[o],i=!1)}}),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(i=!1),i?null:r}(i,r,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=r||i;var s=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];return s&&s!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=s),(!i||r&&r.minimumUpdatePeriod!==i.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),Boolean(r)},n.updateMinimumUpdatePeriodTimeout_=function(){var e=this.masterPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(s.a.clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);var t=e.master&&e.master.minimumUpdatePeriod;0===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!=typeof t||t<=0?t<0&&this.logger_("found invalid minimumUpdatePeriod of "+t+", not setting a timeout"):this.createMUPTimeout_(t)},n.createMUPTimeout_=function(e){var t=this.masterPlaylistLoader_;t.minimumUpdatePeriodTimeout_=s.a.setTimeout(function(){t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)},e)},n.refreshXml_=function(){var e=this;this.requestMaster_(function(t,n){var i,r,s;n&&(e.media_&&(e.media_=e.masterPlaylistLoader_.master.playlists[e.media_.id]),e.masterPlaylistLoader_.sidxMapping_=(s=xa((i=e.masterPlaylistLoader_.master).playlists,r=e.masterPlaylistLoader_.sidxMapping_),Jo(i,function(e,t,n,i){e.playlists&&e.playlists.length&&(s=Ta(s,xa(e.playlists,r)))}),s),e.addSidxSegments_(e.media(),e.state,function(t){e.refreshMedia_(e.media().id)}))})},n.refreshMedia_=function(e){var t=this;if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMaster_&&this.handleMaster_();var n=this.masterPlaylistLoader_.master.playlists,i=!this.media_||this.media_!==n[e];i?this.media_=n[e]:this.trigger("playlistunchanged"),this.mediaUpdateTimeout||function e(){t.media().endList||(t.mediaUpdateTimeout=s.a.setTimeout(function(){t.trigger("mediaupdatetimeout"),e()},ca(t.media(),Boolean(i))))}(),this.trigger("loadedplaylist")},t}(vo.EventTarget),Ea={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30},Ma=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},Ia=function(e){return function(){var t=function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch(n){var t=new BlobBuilder;return t.append(e),URL.createObjectURL(t.getBlob())}}(e),n=Ma(new Worker(t));n.objURL=t;var i=n.terminate;return n.on=n.addEventListener,n.off=n.removeEventListener,n.terminate=function(){return URL.revokeObjectURL(t),i.call(this)},n}},Ra=function(e){return"var browserWorkerPolyFill = "+Ma.toString()+";\nbrowserWorkerPolyFill(self);\n"+e},La=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},Da=Ra(La(function(){var e=function(){this.init=function(){var e={};this.on=function(t,n){e[t]||(e[t]=[]),e[t]=e[t].concat(n)},this.off=function(t,n){var i;return!!e[t]&&(i=e[t].indexOf(n),e[t]=e[t].slice(),e[t].splice(i,1),i>-1)},this.trigger=function(t){var n,i,r,s;if(n=e[t])if(2===arguments.length)for(r=n.length,i=0;i<r;++i)n[i].call(this,arguments[1]);else{for(s=[],i=arguments.length,i=1;i<arguments.length;++i)s.push(arguments[i]);for(r=n.length,i=0;i<r;++i)n[i].apply(this,s)}},this.dispose=function(){e={}}}};e.prototype.pipe=function(e){return this.on("data",function(t){e.push(t)}),this.on("done",function(t){e.flush(t)}),this.on("partialdone",function(t){e.partialFlush(t)}),this.on("endedtimeline",function(t){e.endTimeline(t)}),this.on("reset",function(t){e.reset(t)}),e},e.prototype.push=function(e){this.trigger("data",e)},e.prototype.flush=function(e){this.trigger("done",e)},e.prototype.partialFlush=function(e){this.trigger("partialdone",e)},e.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},e.prototype.reset=function(e){this.trigger("reset",e)};var t,n,i,r,s,o,a,c,l,u,d,h,p,f,g,m,b,y,v,_,w,k,C,S,T,P,O,x,A,E,M,I,R,L,D,j,N,V,z,F,B=e,q=
vendor: 8,643 bytes, line 1
1Math.pow(2,32),U={getUint64:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength);return n.getBigUint64?(t=n.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(t):t:n.getUint32(0)*q+n.getUint32(4)},MAX_UINT32:q},H=U.MAX_UINT32;!function(){var e;if(k={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(e in k)k.hasOwnProperty(e)&&(k[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);C=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),T=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),S=new Uint8Array([0,0,0,1]),P=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),O=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),x={video:P,audio:O},M=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),E=new Uint8Array([0,0,0,0,0,0,0,0]),I=new Uint8Array([0,0,0,0,0,0,0,0]),R=I,L=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),D=I,A=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),t=function(e){var t,n,i=[],r=0;for(t=1;t<arguments.length;t++)i.push(arguments[t]);for(t=i.length;t--;)r+=i[t].byteLength;for(n=new Uint8Array(r+8),new DataView(n.buffer,n.byteOffset,n.byteLength).setUint32(0,n.byteLength),n.set(e,4),t=0,r=8;t<i.length;t++)n.set(i[t],r),r+=i[t].byteLength;return n},n=function(){return t(k.dinf,t(k.dref,M))},i=function(e){return t(k.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},g=function(e){return t(k.hdlr,x[e])},f=function(e){var n=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(n[12]=e.samplerate>>>24&255,n[13]=e.samplerate>>>16&255,n[14]=e.samplerate>>>8&255,n[15]=255&e.samplerate),t(k.mdhd,n)},p=function(e){return t(k.mdia,f(e),g(e.type),o(e))},s=function(e){return t(k.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},o=function(e){return t(k.minf,"video"===e.type?t(k.vmhd,A):t(k.smhd,E),n(),b(e))},a=function(e,n){for(var i=[],r=n.length;r--;)i[r]=v(n[r]);return t.apply(null,[k.moof,s(e)].concat(i))},c=function(e){for(var n=e.length,i=[];n--;)i[n]=d(e[n]);return t.apply(null,[k.moov,u(4294967295)].concat(i).concat(l(e)))},l=function(e){for(var n=e.length,i=[];n--;)i[n]=_(e[n]);return t.apply(null,[k.mvex].concat(i))},u=function(e){var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return t(k.mvhd,n)},m=function(e){var n,i,r=e.samples||[],s=new Uint8Array(4+r.length);for(i=0;i<r.length;i++)s[i+4]=(n=r[i].flags).dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return t(k.sdtp,s)},b=function(e){return t(k.stbl,y(e),t(k.stts,D),t(k.stsc,R),t(k.stsz,L),t(k.stco,I))},y=function(e){return t(k.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===e.type?j(e):N(e))},j=function(e){var n,i,r=e.sps||[],s=e.pps||[],o=[],a=[];for(n=0;n<r.length;n++)o.push((65280&r[n].byteLength)>>>8),o.push(255&r[n].byteLength),o=o.concat(Array.prototype.slice.call(r[n]));for(n=0;n<s.length;n++)a.push((65280&s[n].byteLength)>>>8),a.push(255&s[n].byteLength),a=a.concat(Array.prototype.slice.call(s[n]));if(i=[k.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),t(k.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([r.length],o,[s.length],a))),t(k.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var c=e.sarRatio[0],l=e.sarRatio[1];i.push(t(k.pasp,new Uint8Array([(4278190080&c)>>24,(16711680&c)>>16,(65280&c)>>8,255&c,(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l])))}return t.apply(null,i)},N=function(e){return t(k.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),i(e))},h=function(e){var n=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return t(k.tkhd,n)},v=function(e){var n,i,r,s,o,a;return n=t(k.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),o=Math.floor(e.baseMediaDecodeTime/H),a=Math.floor(e.baseMediaDecodeTime%H),i=t(k.tfdt,new Uint8Array([1,0,0,0,o>>>24&255,o>>>16&255,o>>>8&255,255&o,a>>>24&255,a>>>16&255,a>>>8&255,255&a])),"audio"===e.type?(r=w(e,92),t(k.traf,n,i,r)):(s=m(e),r=w(e,s.length+92),t(k.traf,n,i,r,s))},d=function(e){return e.duration=e.duration||4294967295,t(k.trak,h(e),p(e))},_=function(e){var n=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(n[n.length-1]=0),t(k.trex,n)},F=function(e,t){var n=0,i=0,r=0,s=0;return e.length&&(void 0!==e[0].duration&&(n=1),void 0!==e[0].size&&(i=2),void 0!==e[0].flags&&(r=4),void 0!==e[0].compositionTimeOffset&&(s=8)),[0,0,n|i|r|s,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},z=function(e,n){var i,r,s,o,a,c;for(s=F(o=e.samples||[],n+=20+16*o.length),(r=new Uint8Array(s.length+16*o.length)).set(s),i=s.length,c=0;c<o.length;c++)r[i++]=(4278190080&(a=o[c]).duration)>>>24,r[i++]=(16711680&a.duration)>>>16,r[i++]=(65280&a.duration)>>>8,r[i++]=255&a.duration,r[i++]=(4278190080&a.size)>>>24,r[i++]=(16711680&a.size)>>>16,r[i++]=(65280&a.size)>>>8,r[i++]=255&a.size,r[i++]=a.flags.isLeading<<2|a.flags.dependsOn,r[i++]=a.flags.isDependedOn<<6|a.flags.hasRedundancy<<4|a.flags.paddingValue<<1|a.flags.isNonSyncSample,r[i++]=61440&a.flags.degradationPriority,r[i++]=15&a.flags.degradationPriority,r[i++]=(4278190080&a.compositionTimeOffset)>>>24,r[i++]=(16711680&a.compositionTimeOffset)>>>16,r[i++]=(65280&a.compositionTimeOffset)>>>8,r[i++]=255&a.compositionTimeOffset;return t(k.trun,r)},V=function(e,n){var i,r,s,o,a,c;for(s=F(o=e.samples||[],n+=20+8*o.length),(i=new Uint8Array(s.length+8*o.length)).set(s),r=s.length,c=0;c<o.length;c++)i[r++]=(4278190080&(a=o[c]).duration)>>>24,i[r++]=(16711680&a.duration)>>>16,i[r++]=(65280&a.duration)>>>8,i[r++]=255&a.duration,i[r++]=(4278190080&a.size)>>>24,i[r++]=(16711680&a.size)>>>16,i[r++]=(65280&a.size)>>>8,i[r++]=255&a.size;return t(k.trun,i)},w=function(e,t){return"audio"===e.type?V(e,t):z(e,t)},r=function(){return t(k.ftyp,C,S,C,T)};var W,G,Y,$,Z,Q,X,K,J=function(e){return t(k.mdat,e)},ee=a,te=function(e,t){var n={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return n.dataOffset=t,n.compositionTimeOffset=e.pts-e.dts,n.duration=e.duration,n.size=4*e.length,n.size+=e.byteLength,e.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n},ne=[33,16,5,32,164,27],ie=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],re=function(e){for(var t=[];e--;)t.push(0);return t};Q=function(e,t){return G(Z(e,t))},X=function(e,t){return Y($(e),t)},K=function(e,t,n){return $(n?e:e-t)};var se=G=function(e){return 9e4*e},oe=(Y=function(e,t){return e*t},$=function(e){return e/9e4}),ae=(Z=function(e,t){return e/t},Q),ce=X,le=K,ue=function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},de=function(e,t){var n,i=e.minSegmentDts;return t||(i-=e.timelineStartInfo.dts),n=e.timelineStartInfo.baseMediaDecodeTime,n+=i,n=Math.max(0,n),"audio"===e.type&&(n*=e.samplerate/9e4,n=Math.floor(n)),n}
vendor: 8,739 bytes, line 1
1,he=function(e,t){"number"==typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),e.minSegmentPts=void 0===e.minSegmentPts?t.pts:Math.min(e.minSegmentPts,t.pts),e.maxSegmentPts=void 0===e.maxSegmentPts?t.pts:Math.max(e.maxSegmentPts,t.pts)),"number"==typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),e.minSegmentDts=void 0===e.minSegmentDts?t.dts:Math.min(e.minSegmentDts,t.dts),e.maxSegmentDts=void 0===e.maxSegmentDts?t.dts:Math.max(e.maxSegmentDts,t.dts))},pe=function e(t){t=t||{},e.prototype.init.call(this),this.parse708captions_="boolean"!=typeof t.parse708captions||t.parse708captions,this.captionPackets_=[],this.ccStreams_=[new Ce(0,0),new Ce(0,1),new Ce(1,0),new Ce(1,1)],this.parse708captions_&&(this.cc708Stream_=new ye({captionServices:t.captionServices})),this.reset(),this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))},this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};(pe.prototype=new B).push=function(e){var t,n,i;if("sei_rbsp"===e.nalUnitType&&(t=function(e){for(var t=0,n={payloadType:-1,payloadSize:0},i=0,r=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)i+=255,t++;for(i+=e[t++];255===e[t];)r+=255,t++;if(r+=e[t++],!n.payload&&4===i){if("GA94"===String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6])){n.payloadType=i,n.payloadSize=r,n.payload=e.subarray(t,t+r);break}n.payload=void 0}t+=r,i=0,r=0}return n}(e.escapedRBSP)).payload&&4===t.payloadType&&(n=function(e){return 181!==e.payload[0]||49!=(e.payload[1]<<8|e.payload[2])||"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])||3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)}(t)))if(e.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));i=function(e,t){var n,i,r,s,o=[];if(!(64&t[0]))return o;for(i=31&t[0],n=0;n<i;n++)s={type:3&t[2+(r=3*n)],pts:e},4&t[r+2]&&(s.ccData=t[r+3]<<8|t[r+4],o.push(s));return o}(e.pts,n),this.captionPackets_=this.captionPackets_.concat(i),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},pe.prototype.flushCCStreams=function(e){this.ccStreams_.forEach(function(t){return"flush"===e?t.flush():t.partialFlush()},this)},pe.prototype.flushStream=function(e){this.captionPackets_.length?(this.captionPackets_.forEach(function(e,t){e.presortIndex=t}),this.captionPackets_.sort(function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts}),this.captionPackets_.forEach(function(e){e.type<2?this.dispatchCea608Packet(e):this.dispatchCea708Packet(e)},this),this.captionPackets_.length=0,this.flushCCStreams(e)):this.flushCCStreams(e)},pe.prototype.flush=function(){return this.flushStream("flush")},pe.prototype.partialFlush=function(){return this.flushStream("partialFlush")},pe.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(e){e.reset()})},pe.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},pe.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},pe.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},pe.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)},pe.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)};var fe={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},ge=function(e){return 32<=e&&e<=127||160<=e&&e<=255},me=function(e){this.windowNum=e,this.reset()};me.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},me.prototype.getText=function(){return this.rows.join("\n")},me.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},me.prototype.newLine=function(e){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},me.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},me.prototype.addText=function(e){this.rows[this.rowIdx]+=e},me.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var be=function(e,t,n){this.serviceNum=e,this.text="",this.currentWindow=new me(-1),this.windows=[],this.stream=n,"string"==typeof t&&this.createTextDecoder(t)};be.prototype.init=function(e,t){this.startPts=e;for(var n=0;n<8;n++)this.windows[n]=new me(n),"function"==typeof t&&(this.windows[n].beforeRowOverflow=t)},be.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},be.prototype.createTextDecoder=function(e){if("undefined"==typeof TextDecoder)this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(e)}catch(t){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+e+" encoding. "+t})}};var ye=function e(t){t=t||{},e.prototype.init.call(this);var n,i=this,r=t.captionServices||{},s={};Object.keys(r).forEach(function(e){n=r[e],/^SERVICE/.test(e)&&(s[e]=n.encoding)}),this.serviceEncodings=s,this.current708Packet=null,this.services={},this.push=function(e){3===e.type?(i.new708Packet(),i.add708Bytes(e)):(null===i.current708Packet&&i.new708Packet(),i.add708Bytes(e))}};ye.prototype=new B,ye.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},ye.prototype.add708Bytes=function(e){var t=e.ccData,n=t>>>8,i=255&t;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(n),this.current708Packet.data.push(i)},ye.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,n=null,i=null,r=0,s=t[r++];for(e.seq=s>>6,e.sizeCode=63&s;r<t.length;r++)i=31&(s=t[r++]),7==(n=s>>5)&&i>0&&(n=s=t[r++]),this.pushServiceBlock(n,r,i),i>0&&(r+=i-1)},ye.prototype.pushServiceBlock=function(e,t,n){var i,r=t,s=this.current708Packet.data,o=this.services[e];for(o||(o=this.initService(e,r));r<t+n&&r<s.length;r++)ge(i=s[r])?r=this.handleText(r,o):24===i?r=this.multiByteCharacter(r,o):16===i?r=this.extendedCommands(r,o):128<=i&&i<=135?r=this.setCurrentWindow(r,o):152<=i&&i<=159?r=this.defineWindow(r,o):136===i?r=this.clearWindows(r,o):140===i?r=this.deleteWindows(r,o):137===i?r=this.displayWindows(r,o):138===i?r=this.hideWindows(r,o):139===i?r=this.toggleWindows(r,o):151===i?r=this.setWindowAttributes(r,o):144===i?r=this.setPenAttributes(r,o):145===i?r=this.setPenColor(r,o):146===i?r=this.setPenLocation(r,o):143===i?o=this.reset(r,o):8===i?o.currentWindow.backspace():12===i?o.currentWindow.clearText():13===i?o.currentWindow.pendingNewLine=!0:14===i?o.currentWindow.clearText():141===i&&r++},ye.prototype.extendedCommands=function(e,t){var n=this.current708Packet.data[++e];return ge(n)&&(e=this.handleText(e,t,{isExtended:!0})),e},ye.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},ye.prototype.initService=function(e,t){var n,i,r=this;return(n="SERVICE"+e)in this.serviceEncodings&&(i=this.serviceEncodings[n]),this.services[e]=new be(e,i,r),this.services[e].init(this.getPts(t),function(t){r.flushDisplayed(t,r.services[e])}),this.services[e]},ye.prototype.handleText=function(e,t,n){var i,r,s,o,a=n&&n.isExtended,c=this.current708Packet.data,l=a?4096:0,u=c[e],d=t.currentWindow;
vendor: 7,681 bytes, line 1
1return t.textDecoder_&&!a?(n&&n.isMultiByte?(r=[u,c[e+1]],e++):r=[u],i=t.textDecoder_.decode(new Uint8Array(r))):(o=fe[s=l|u]||s,i=4096&s&&s===o?"":String.fromCharCode(o)),d.pendingNewLine&&!d.isEmpty()&&d.newLine(this.getPts(e)),d.pendingNewLine=!1,d.addText(i),e},ye.prototype.multiByteCharacter=function(e,t){var n=this.current708Packet.data,i=n[e+2];return ge(n[e+1])&&ge(i)&&(e=this.handleText(++e,t,{isMultiByte:!0})),e},ye.prototype.setCurrentWindow=function(e,t){return t.setCurrentWindow(7&this.current708Packet.data[e]),e},ye.prototype.defineWindow=function(e,t){var n=this.current708Packet.data,i=n[e];t.setCurrentWindow(7&i);var r=t.currentWindow;return i=n[++e],r.visible=(32&i)>>5,r.rowLock=(16&i)>>4,r.columnLock=(8&i)>>3,r.priority=7&i,i=n[++e],r.relativePositioning=(128&i)>>7,r.anchorVertical=127&i,i=n[++e],r.anchorHorizontal=i,i=n[++e],r.anchorPoint=(240&i)>>4,r.rowCount=15&i,i=n[++e],r.columnCount=63&i,i=n[++e],r.windowStyle=(56&i)>>3,r.penStyle=7&i,r.virtualRowCount=r.rowCount+1,e},ye.prototype.setWindowAttributes=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.winAttr;return i=n[++e],r.fillOpacity=(192&i)>>6,r.fillRed=(48&i)>>4,r.fillGreen=(12&i)>>2,r.fillBlue=3&i,i=n[++e],r.borderType=(192&i)>>6,r.borderRed=(48&i)>>4,r.borderGreen=(12&i)>>2,r.borderBlue=3&i,i=n[++e],r.borderType+=(128&i)>>5,r.wordWrap=(64&i)>>6,r.printDirection=(48&i)>>4,r.scrollDirection=(12&i)>>2,r.justify=3&i,i=n[++e],r.effectSpeed=(240&i)>>4,r.effectDirection=(12&i)>>2,r.displayEffect=3&i,e},ye.prototype.flushDisplayed=function(e,t){for(var n=[],i=0;i<8;i++)t.windows[i].visible&&!t.windows[i].isEmpty()&&n.push(t.windows[i].getText());t.endPts=e,t.text=n.join("\n\n"),this.pushCaption(t),t.startPts=e},ye.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},ye.prototype.displayWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&(t.windows[r].visible=1);return e},ye.prototype.hideWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&(t.windows[r].visible=0);return e},ye.prototype.toggleWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&(t.windows[r].visible^=1);return e},ye.prototype.clearWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&t.windows[r].clearText();return e},ye.prototype.deleteWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&t.windows[r].reset();return e},ye.prototype.setPenAttributes=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penAttr;return i=n[++e],r.textTag=(240&i)>>4,r.offset=(12&i)>>2,r.penSize=3&i,i=n[++e],r.italics=(128&i)>>7,r.underline=(64&i)>>6,r.edgeType=(56&i)>>3,r.fontStyle=7&i,e},ye.prototype.setPenColor=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penColor;return i=n[++e],r.fgOpacity=(192&i)>>6,r.fgRed=(48&i)>>4,r.fgGreen=(12&i)>>2,r.fgBlue=3&i,i=n[++e],r.bgOpacity=(192&i)>>6,r.bgRed=(48&i)>>4,r.bgGreen=(12&i)>>2,r.bgBlue=3&i,i=n[++e],r.edgeRed=(48&i)>>4,r.edgeGreen=(12&i)>>2,r.edgeBlue=3&i,e},ye.prototype.setPenLocation=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,i=n[++e],r.row=15&i,i=n[++e],r.column=63&i,e},ye.prototype.reset=function(e,t){var n=this.getPts(e);return this.flushDisplayed(n,t),this.initService(t.serviceNum,e)};var ve={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},_e=function(e){return null===e?"":(e=ve[e]||e,String.fromCharCode(e))},we=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],ke=function(){for(var e=[],t=15;t--;)e.push("");return e},Ce=function e(t,n){e.prototype.init.call(this),this.field_=t||0,this.dataChannel_=n||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,n,i,r,s;if((t=32639&e.ccData)!==this.lastControlCode_){if(4096==(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),i=t>>>8,r=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=ke();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=ke();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=ke()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(i,r))s=_e((i=(3&i)<<8)|r),this[this.mode_](e.pts,s),this.column_++;else if(this.isExtCharacter(i,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),s=_e((i=(3&i)<<8)|r),this[this.mode_](e.pts,s),this.column_++;else if(this.isMidRowCode(i,r))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14==(14&r)&&this.addFormatting(e.pts,["i"]),1==(1&r)&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(i,r))this.column_+=3&r;else if(this.isPAC(i,r)){var o=we.indexOf(7968&t);"rollUp"===this.mode_&&(o-this.rollUpRows_+1<0&&(o=this.rollUpRows_-1),this.setRollUp(e.pts,o)),o!==this.row_&&(this.clearFormatting(e.pts),this.row_=o),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16==(16&t)&&(this.column_=4*((14&t)>>1)),this.isColorPAC(r)&&14==(14&r)&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(i)&&(0===r&&(r=null),s=_e(i),s+=_e(r),this[this.mode_](e.pts,s),this.column_+=s.length)}else this.lastControlCode_=null}};Ce.prototype=new B,Ce.prototype.flushDisplayed=function(e){var t=this.displayed_.map(function(e,t){try{return e.trim()}catch(n){return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+t+"."}),""}},this).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream
vendor: 3,749 bytes, line 1
1:this.name_})},Ce.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=ke(),this.nonDisplayed_=ke(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},Ce.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},Ce.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},Ce.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},Ce.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},Ce.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},Ce.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},Ce.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},Ce.prototype.isNormalChar=function(e){return e>=32&&e<=127},Ce.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=ke(),this.displayed_=ke()),void 0!==t&&t!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[t-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]="";void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},Ce.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var n=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,n)},Ce.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce(function(e,t){return e+"</"+t+">"},"");this.formatting_=[],this[this.mode_](e,t)}},Ce.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_];this.nonDisplayed_[this.row_]=n+=t},Ce.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_];this.displayed_[this.row_]=n+=t},Ce.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.row_+1;e<15;e++)this.displayed_[e]="";for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]=""},Ce.prototype.paintOn=function(e,t){var n=this.displayed_[this.row_];this.displayed_[this.row_]=n+=t};var Se={CaptionStream:pe,Cea608Stream:Ce,Cea708Stream:ye},Te={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Pe=function(e,t){var n=1;for(e>t&&(n=-1);Math.abs(t-e)>4294967296;)e+=8589934592*n;return e},Oe=function e(t){var n,i;e.prototype.init.call(this),this.type_=t||"shared",this.push=function(e){"shared"!==this.type_&&e.type!==this.type_||(void 0===i&&(i=e.dts),e.dts=Pe(e.dts,i),e.pts=Pe(e.pts,i),n=e.dts,this.trigger("data",e))},this.flush=function(){i=n,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){i=void 0,n=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Oe.prototype=new B;var xe,Ae=Oe,Ee=Pe,Me=function(e,t,n){var i,r="";for(i=t;i<n;i++)r+="%"+("00"+e[i].toString(16)).slice(-2);return r},Ie=function(e,t,n){return decodeURIComponent(Me(e,t,n))},Re=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},Le={TXXX:function(e){var t;if(3===e.data[0]){for(t=1;t<e.data.length;
vendor: 13,422 bytes, line 1
1t++)if(0===e.data[t]){e.description=Ie(e.data,1,t),e.value=Ie(e.data,t+1,e.data.length).replace(/\0*$/,"");break}e.data=e.value}},WXXX:function(e){var t;if(3===e.data[0])for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=Ie(e.data,1,t),e.url=Ie(e.data,t+1,e.data.length);break}},PRIV:function(e){var t;for(t=0;t<e.data.length;t++)if(0===e.data[t]){e.owner=unescape(Me(e.data,0,t));break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}};(xe=function(e){var t,n={descriptor:e&&e.descriptor},i=0,r=[],s=0;if(xe.prototype.init.call(this),this.dispatchType=Te.METADATA_STREAM_TYPE.toString(16),n.descriptor)for(t=0;t<n.descriptor.length;t++)this.dispatchType+=("00"+n.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,n,o,a,c;if("timed-metadata"===e.type)if(e.dataAlignmentIndicator&&(s=0,r.length=0),0===r.length&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0)))this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});else if(r.push(e),s+=e.data.byteLength,1===r.length&&(i=Re(e.data.subarray(6,10)),i+=10),!(s<i)){for(t={data:new Uint8Array(i),frames:[],pts:r[0].pts,dts:r[0].dts},c=0;c<i;)t.data.set(r[0].data.subarray(0,i-c),c),c+=r[0].data.byteLength,s-=r[0].data.byteLength,r.shift();n=10,64&t.data[5]&&(n+=4,n+=Re(t.data.subarray(10,14)),i-=Re(t.data.subarray(16,20)));do{if((o=Re(t.data.subarray(n+4,n+8)))<1)return void this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping metadata parsing."});if((a={id:String.fromCharCode(t.data[n],t.data[n+1],t.data[n+2],t.data[n+3]),data:t.data.subarray(n+10,n+o+10)}).key=a.id,Le[a.id]&&(Le[a.id](a),"com.apple.streaming.transportStreamTimestamp"===a.owner)){var l=a.data,u=(1&l[3])<<30|l[4]<<22|l[5]<<14|l[6]<<6|l[7]>>>2;u*=4,a.timeStamp=u+=3&l[7],void 0===t.pts&&void 0===t.dts&&(t.pts=a.timeStamp,t.dts=a.timeStamp),this.trigger("timestamp",a)}t.frames.push(a),n+=10,n+=o}while(n<i);this.trigger("data",t)}}}).prototype=new B;var De,je,Ne,Ve=xe,ze=Ae;(De=function(){var e=new Uint8Array(188),t=0;De.prototype.init.call(this),this.push=function(n){var i,r=0,s=188;for(t?((i=new Uint8Array(n.byteLength+t)).set(e.subarray(0,t)),i.set(n,t),t=0):i=n;s<i.byteLength;)71!==i[r]||71!==i[s]?(r++,s++):(this.trigger("data",i.subarray(r,s)),r+=188,s+=188);r<i.byteLength&&(e.set(i.subarray(r),0),t=i.byteLength-r)},this.flush=function(){188===t&&71===e[0]&&(this.trigger("data",e),t=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){t=0,this.trigger("reset")}}).prototype=new B,je=function(){var e,t,n,i;je.prototype.init.call(this),i=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,i){var r=0;i.payloadUnitStartIndicator&&(r+=e[r]+1),"pat"===i.type?t(e.subarray(r),i):n(e.subarray(r),i)},t=function(e,t){t.section_number=e[7],t.last_section_number=e[8],i.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=i.pmtPid},n=function(e,t){var n,r;if(1&e[5]){for(i.programMapTable={video:null,audio:null,"timed-metadata":{}},n=3+((15&e[1])<<8|e[2])-4,r=12+((15&e[10])<<8|e[11]);r<n;){var s=e[r],o=(31&e[r+1])<<8|e[r+2];s===Te.H264_STREAM_TYPE&&null===i.programMapTable.video?i.programMapTable.video=o:s===Te.ADTS_STREAM_TYPE&&null===i.programMapTable.audio?i.programMapTable.audio=o:s===Te.METADATA_STREAM_TYPE&&(i.programMapTable["timed-metadata"][o]=s),r+=5+((15&e[r+3])<<8|e[r+4])}t.programMapTable=i.programMapTable}},this.push=function(t){var n={},i=4;if(n.payloadUnitStartIndicator=!!(64&t[1]),n.pid=31&t[1],n.pid<<=8,n.pid|=t[2],(48&t[3])>>>4>1&&(i+=t[i]+1),0===n.pid)n.type="pat",e(t.subarray(i),n),this.trigger("data",n);else if(n.pid===this.pmtPid)for(n.type="pmt",e(t.subarray(i),n),this.trigger("data",n);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,i,n]):this.processPes_(t,i,n)},this.processPes_=function(e,t,n){n.streamType=n.pid===this.programMapTable.video?Te.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?Te.ADTS_STREAM_TYPE:this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=e.subarray(t),this.trigger("data",n)}},je.prototype=new B,je.STREAM_TYPES={h264:27,adts:15},Ne=function(){var e,t=this,n=!1,i={data:[],size:0},r={data:[],size:0},s={data:[],size:0},o=function(e,n,i){var r,s,o=new Uint8Array(e.size),a={type:n},c=0,l=0;if(e.data.length&&!(e.size<9)){for(a.trackId=e.data[0].pid,c=0;c<e.data.length;c++)o.set((s=e.data[c]).data,l),l+=s.data.byteLength;var u,d,h,p;p=(u=o)[0]<<16|u[1]<<8|u[2],(d=a).data=new Uint8Array,1===p&&(d.packetLength=6+(u[4]<<8|u[5]),d.dataAlignmentIndicator=0!=(4&u[6]),192&(h=u[7])&&(d.pts=(14&u[9])<<27|(255&u[10])<<20|(254&u[11])<<12|(255&u[12])<<5|(254&u[13])>>>3,d.pts*=4,d.pts+=(6&u[13])>>>1,d.dts=d.pts,64&h&&(d.dts=(14&u[14])<<27|(255&u[15])<<20|(254&u[16])<<12|(255&u[17])<<5|(254&u[18])>>>3,d.dts*=4,d.dts+=(6&u[18])>>>1)),d.data=u.subarray(9+u[8])),r="video"===n||a.packetLength<=e.size,(i||r)&&(e.size=0,e.data.length=0),r&&t.trigger("data",a)}};Ne.prototype.init.call(this),this.push=function(a){({pat:function(){},pes:function(){var e,t;switch(a.streamType){case Te.H264_STREAM_TYPE:e=i,t="video";break;case Te.ADTS_STREAM_TYPE:e=r,t="audio";break;case Te.METADATA_STREAM_TYPE:e=s,t="timed-metadata";break;default:return}a.payloadUnitStartIndicator&&o(e,t,!0),e.data.push(a),e.size+=a.data.byteLength},pmt:function(){var i={type:"metadata",tracks:[]};null!==(e=a.programMapTable).video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),n=!0,t.trigger("data",i)}})[a.type]()},this.reset=function(){i.size=0,i.data.length=0,r.size=0,r.data.length=0,this.trigger("reset")},this.flushStreams_=function(){o(i,"video"),o(r,"audio"),o(s,"timed-metadata")},this.flush=function(){if(!n&&e){var i={type:"metadata",tracks:[]};null!==e.video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",i)}n=!1,this.flushStreams_(),this.trigger("done")}},Ne.prototype=new B;var Fe={PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:De,TransportParseStream:je,ElementaryStream:Ne,TimestampRolloverStream:ze,CaptionStream:Se.CaptionStream,Cea608Stream:Se.Cea608Stream,Cea708Stream:Se.Cea708Stream,MetadataStream:Ve};for(var Be in Te)Te.hasOwnProperty(Be)&&(Fe[Be]=Te[Be]);var qe,Ue=Fe,He=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];(qe=function(e){var t,n=0;qe.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:"adts skiping bytes "+e+" to "+t+" in frame "+n+" outside syncword"})},this.push=function(i){var r,s,o,a,c,l=0;if(e||(n=0),"audio"===i.type){var u;for(t&&t.length?(o=t,(t=new Uint8Array(o.byteLength+i.data.byteLength)).set(o),t.set(i.data,o.byteLength)):t=i.data;l+7<t.length;)if(255===t[l]&&240==(246&t[l+1])){if("number"==typeof u&&(this.skipWarn_(u,l),u=null),s=2*(1&~t[l+1]),c=9e4*(a=1024*(1+(3&t[l+6])))/He[(60&t[l+2])>>>2],t.byteLength-l<(r=(3&t[l+3])<<11|t[l+4]<<3|(224&t[l+5])>>5))break;this.trigger("data",{pts:i.pts+n*c,dts:i.dts+n*c,sampleCount:a,audioobjecttype:1+(t[l+2]>>>6&3),channelcount:(1&t[l+2])<<2|(192&t[l+3])>>>6,samplerate:He[(60&t[l+2])>>>2],samplingfrequencyindex:(60&t[l+2])>>>2,samplesize:16,data:t.subarray(l+7+s,l+r)}),n++,l+=r}else"number"!=typeof u&&(u=l),l++;"number"==typeof u&&(this.skipWarn_(u,l),u=null),t=t.subarray(l)}},this.flush=function(){n=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}}).prototype=new B;var We,Ge,Ye,$e=qe,Ze=function(e){var t=e.byteLength,n=0,i=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+i},this.loadWord=function(){var r=e.byteLength-t,s=new Uint8Array(4),o=Math.min(4,t);if(0===o)throw new Error("no bytes available");s.set(e.subarray(r,r+o)),n=new DataView(s.buffer).getUint32(0),i=8*o,t-=o},this.skipBits=function(e){var r;i>e?(n<<=e,i-=e):(e-=i,e-=8*(r=Math.floor(e/8)),t-=r,this.loadWord(),n<<=e,i-=e)},this.readBits=function(e){var r=Math.min(i,e),s=n>>>32-r;return(i-=r)>0?n<<=r:t>0&&this.loadWord(),(r=e-r)>0?s<<r|this.readBits(r):s},this.skipLeadingZeros=function(){var e;for(e=0;e<i;++e)if(0!=(n&2147483648>>>e))return n<<=e,i-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};(Ge=function(){var e,t,n=0;Ge.prototype.init.call(this),this.push=function(i){var r;t?((r=new Uint8Array(t.byteLength+i.data.byteLength)).set(t),r.set(i.data,t.byteLength),t=r):t=i.data;for(var s=t.byteLength;n<s-3;n++)if(1===t[n+2]){e=n+5;break}for(;e<s;)switch(t[e]){case 0:if(0!==t[e-1]){e+=2;break}if(0!==t[e-2]){e++;break}n+3!==e-2&&this.trigger("data",t.subarray(n+3,e-2));do{e++}while(1!==t[e]&&e<s);n=e-2,e+=3;break;case 1:if(0!==t[e-1]||0!==t[e-2]){e+=3;break}this.trigger("data",t.subarray(n+3,e-2)),n=e-2,e+=3;break;default:e+=3}t=t.subarray(n),e-=n,n=0},this.reset=function(){t=null,n=0,this.trigger("reset")},this.flush=function(){t&&t.byteLength>3&&this.trigger("data",t.subarray(n+3)),t=null,n=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}}).prototype=new B,Ye={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},We=function(){var e,t,n,i,r,s,o,a=new Ge;We.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,n=e.pts,i=e.dts,a.push(e))},a.on("data",function(o){var a={trackId:t,pts:n,dts:i,data:o,nalUnitTypeCode:31&o[0]};switch(a.nalUnitTypeCode){case 5:a.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:a.nalUnitType="sei_rbsp",a.escapedRBSP=r(o.subarray(1));break;case 7:a.nalUnitType="seq_parameter_set_rbsp",a.escapedRBSP=r(o.subarray(1)),a.config=s(a.escapedRBSP);break;case 8:a.nalUnitType="pic_parameter_set_rbsp";break;case 9:a.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",a)}),a.on("done",function(){e.trigger("done")}),a.on("partialdone",function(){e.trigger("partialdone")}),a.on("reset",function(){e.trigger("reset")}),a.on("endedtimeline",function(){e.trigger("endedtimeline")}),this.flush=function(){a.flush()},this.partialFlush=function(){a.partialFlush()},this.reset=function(){a.reset()},this.endTimeline=function(){a.endTimeline()},o=function(e,t){var n,i=8,r=8;for(n=0;n<e;n++)0!==r&&(r=(i+t.readExpGolomb()+256)%256),i=0===r?i:r},r=function(e){for(var t,n,i=e.byteLength,r=[],s=1;s<i-2;)0===e[s]&&0===e[s+1]&&3===e[s+2]?(r.push(s+2),s+=2):s++;if(0===r.length)return e;t=i-r.length,n=new Uint8Array(t);var o=0;for(s=0;s<t;o++,s++)o===r[0]&&(o++,r.shift()),n[s]=e[o];return n},s=function(e){var t,n,i,r,s,a,c,l,u,d,h,p,f=0,g=0,m=0,b=0,y=[1,1];if(n=(t=new Ze(e)).readUnsignedByte(),r=t.readUnsignedByte(),i=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),Ye[n]&&(3===(s=t.readUnsignedExpGolomb())&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(h=3!==s?8:12,p=0;p<h;p++)t.readBoolean()&&o(p<6?16:64,t);if(t.skipUnsignedExpGolomb(),0===(a=t.readUnsignedExpGolomb()))t.readUnsignedExpGolomb();else if(1===a)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),c=t.readUnsignedExpGolomb(),p=0;p<c;p++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),l=t.readUnsignedExpGolomb(),u=t.readUnsignedExpGolomb(),0===(d=t.readBits(1))&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(f=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb(),m=t.readUnsignedExpGolomb(),b=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean())switch(t.readUnsignedByte()){case 1:y=[1,1];break;case 2:y=[12,11];break;case 3:y=[10,11];break;case 4:y=[16,11];break;case 5:y=[40,33];break;case 6:y=[24,11];break;case 7:y=[20,11];break;case 8:y=[32,11];break;case 9:y=[80,33];break;case 10:y=[18,11];break;case 11:y=[15,11];break;case 12:y=[64,33];break;case 13:y=[160,99];break;case 14:y=[4,3];break;case 15:y=[3,2];break;case 16:y=[2,1];break;case 255:y=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()]}return{profileIdc:n,levelIdc:i,profileCompatibility:r,width:16*(l+1)-2*f-2*g,height:(2-d)*(u+1)*16-2*m-2*b,sarRatio:y}}},We.prototype=new B;var Qe,Xe={H264Stream:We,NalByteStream:Ge},Ke=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],Je=function(e,t){var n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return n=n>=0?n:0,(16&e[t+5])>>4?n+20:n+10},et=function e(t,n){return t.length-n<10||t[n]!=="I".charCodeAt(0)||t[n+1]!=="D".charCodeAt(0)||t[n+2]!=="3".charCodeAt(0)?n:e(t,n+=Je(t,n))},tt=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},nt={isLikelyAacData:function(e){var t=et(e,0);return e.length>
1=t+2&&255==(255&e[t])&&240==(240&e[t+1])&&16==(22&e[t+1])},parseId3TagSize:Je,parseAdtsSize:function(e,t){return 6144&e[t+3]|e[t+4]<<3|(224&e[t+5])>>5},parseType:function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&240==(240&e[t+1])?"audio":null},parseSampleRate:function(e){for(var t=0;t+5<e.length;){if(255===e[t]&&240==(246&e[t+1]))return Ke[(60&e[t+2])>>>2];t++}return null},parseAacTimestamp:function(e){var t,n,i;t=10,64&e[5]&&(t+=4,t+=tt(e.subarray(10,14)));do{if((n=tt(e.subarray(t+4,t+8)))<1)return null;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){i=e.subarray(t+10,t+n+10);for(var r=0;r<i.byteLength;r++)if(0===i[r]){var s=unescape(function(e,t,n){var i,r="";for(i=0;i<n;i++)r+="%"+("00"+e[i].toString(16)).slice(-2);return r}(i,0,r));if("com.apple.streaming.transportStreamTimestamp"===s){var o=i.subarray(r+1),a=(1&o[3])<<30|o[4]<<22|o[5]<<14|o[6]<<6|o[7]>>>2;return(a*=4)+(3&o[7])}break}}t+=10,t+=n}while(t<e.byteLength);return null}};(Qe=function(){var e=new Uint8Array,t=0;Qe.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(n){var i,r,s,o=0,a=0;for(e.length?(s=e.length,(e=new Uint8Array(n.byteLength+s)).set(e.subarray(0,s)),e.set(n,s)):e=n;e.length-a>=3;)if(e[a]!=="I".charCodeAt(0)||e[a+1]!=="D".charCodeAt(0)||e[a+2]!=="3".charCodeAt(0))if(255!=(255&e[a])||240!=(240&e[a+1]))a++;else{if(e.length-a<7)break;if(a+(o=nt.parseAdtsSize(e,a))>e.length)break;r={type:"audio",data:e.subarray(a,a+o),pts:t,dts:t},this.trigger("data",r),a+=o}else{if(e.length-a<10)break;if(a+(o=nt.parseId3TagSize(e,a))>e.length)break;i={type:"timed-metadata",data:e.subarray(a,a+o)},this.trigger("data",i),a+=o}e=e.length-a>0?e.subarray(a):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new B;var it,rt,st,ot,at=Qe,ct=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],lt=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],ut=Xe.H264Stream,dt=nt.isLikelyAacData,ht=function(e,t){t.stream=e,this.trigger("log",t)},pt=function(e,t){for(var n=Object.keys(t),i=0;i<n.length;i++){var r=n[i];"headOfPipeline"!==r&&t[r].on&&t[r].on("log",ht.bind(e,r))}},ft=function(e,t){var n;if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},gt=function(e,t,n,i,r,s){return{start:{dts:e,pts:e+(n-t)},end:{dts:e+(i-t),pts:e+(r-n)},prependedContentDuration:s,baseMediaDecodeTime:e}};rt=function(e,t){var n,i=[],r=0,s=0,o=1/0;n=(t=t||{}).firstSequenceNumber||0,rt.prototype.init.call(this),this.push=function(t){he(e,t),e&&ct.forEach(function(n){e[n]=t[n]}),i.push(t)},this.setEarliestDts=function(e){r=e},this.setVideoBaseMediaDecodeTime=function(e){o=e},this.setAudioAppendStart=function(e){s=e},this.flush=function(){var a,c,l,u,d,h,p;0!==i.length?(a=function(e,t,n){return t.minSegmentDts>=n?e:(t.minSegmentDts=1/0,e.filter(function(e){return e.dts>=n&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)}))}(i,e,r),e.baseMediaDecodeTime=de(e,t.keepOriginalTimestamps),p=function(e,t,n,i){var r,s,o,a,c,l=0,u=0,d=0;if(t.length&&(r=ae(e.baseMediaDecodeTime,e.samplerate),s=Math.ceil(9e4/(e.samplerate/1024)),n&&i&&(l=r-Math.max(n,i),d=(u=Math.floor(l/s))*s),!(u<1||d>45e3))){for((o=function(){if(!W){var e={96e3:[ne,[227,64],re(154),[56]],88200:[ne,[231],re(170),[56]],64e3:[ne,[248,192],re(240),[56]],48e3:[ne,[255,192],re(268),[55,148,128],re(54),[112]],44100:[ne,[255,192],re(268),[55,163,128],re(84),[112]],32e3:[ne,[255,192],re(268),[55,234],re(226),[112]],24e3:[ne,[255,192],re(268),[55,255,128],re(268),[111,112],re(126),[224]],16e3:[ne,[255,192],re(268),[55,255,128],re(268),[111,255],re(269),[223,108],re(195),[1,192]],12e3:[ie,re(268),[3,127,248],re(268),[6,255,240],re(268),[13,255,224],re(268),[27,253,128],re(259),[56]],11025:[ie,re(268),[3,127,248],re(268),[6,255,240],re(268),[13,255,224],re(268),[27,255,192],re(268),[55,175,128],re(108),[112]],8e3:[ie,re(268),[3,121,16],re(47),[7]]};t=e,W=Object.keys(t).reduce(function(e,n){return e[n]=new Uint8Array(t[n].reduce(function(e,t){return e.concat(t)},[])),e},{})}var t;return W}()[e.samplerate])||(o=t[0].data),a=0;a<u;a++)t.splice(0,0,{data:o,dts:(c=t[0]).dts-s,pts:c.pts-s});return e.baseMediaDecodeTime-=Math.floor(ce(d,e.samplerate)),d}}(e,a,s,o),e.samples=function(e){var t,n=[];for(t=0;t<e.length;t++)n.push({size:e[t].data.byteLength,duration:1024});return n}(a),l=J(function(e){var t,n,i=0,r=new Uint8Array(function(e){var t,n=0;for(t=0;t<e.length;t++)n+=e[t].data.byteLength;return n}(e));for(t=0;t<e.length;t++)r.set((n=e[t]).data,i),i+=n.data.byteLength;return r}(a)),i=[],c=ee(n,[e]),u=new Uint8Array(c.byteLength+l.byteLength),n++,u.set(c),u.set(l,c.byteLength),ue(e),d=Math.ceil(9216e4/e.samplerate),a.length&&(h=a.length*d,this.trigger("segmentTimingInfo",gt(ae(e.baseMediaDecodeTime,e.samplerate),a[0].dts,a[0].pts,a[0].dts+h,a[0].pts+h,p||0)),this.trigger("timingInfo",{start:a[0].pts,end:a[0].pts+h})),this.trigger("data",{track:e,boxes:u}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){ue(e),i=[],this.trigger("reset")}},rt.prototype=new B,it=function(e,t){var n,i,r,s=[],o=[];n=(t=t||{}).firstSequenceNumber||0,it.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){he(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||i||(i=t.config,e.sps=[t.data],lt.forEach(function(t){e[t]=i[t]},this)),"pic_parameter_set_rbsp"!==t.nalUnitType||r||(r=t.data,e.pps=[t.data]),s.push(t)},this.flush=function(){for(var i,r,a,c,l,u,d,h,p=0;s.length&&"access_unit_delimiter_rbsp"!==s[0].nalUnitType;)s.shift();
vendor: 5,517 bytes, line 1
1if(0===s.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(i=function(e){var t,n,i=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,i.byteLength=0,t=0;t<e.length;t++)"access_unit_delimiter_rbsp"===(n=e[t]).nalUnitType?(i.length&&(i.duration=n.dts-i.dts,r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i)),(i=[n]).byteLength=n.data.byteLength,i.pts=n.pts,i.dts=n.dts):("slice_layer_without_partitioning_rbsp_idr"===n.nalUnitType&&(i.keyFrame=!0),i.duration=n.dts-i.dts,i.byteLength+=n.data.byteLength,i.push(n));return r.length&&(!i.duration||i.duration<=0)&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i),r}(s),(a=function(e){var t,n,i=[],r=[];for(i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=e[0].pts,i.dts=e[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=e[0].pts,r.dts=e[0].dts,t=0;t<e.length;t++)(n=e[t]).keyFrame?(i.length&&(r.push(i),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration),(i=[n]).nalCount=n.length,i.byteLength=n.byteLength,i.pts=n.pts,i.dts=n.dts,i.duration=n.duration):(i.duration+=n.duration,i.nalCount+=n.length,i.byteLength+=n.byteLength,i.push(n));return r.length&&i.duration<=0&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration,r.push(i),r}(i))[0][0].keyFrame||((r=this.getGopForFusion_(s[0],e))?(p=r.duration,a.unshift(r),a.byteLength+=r.byteLength,a.nalCount+=r.nalCount,a.pts=r.pts,a.dts=r.dts,a.duration+=r.duration):a=function(e){var t;return!e[0][0].keyFrame&&e.length>1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e}(a)),o.length){var f;if(!(f=t.alignGopsAtEnd?this.alignGopsAtEnd_(a):this.alignGopsAtStart_(a)))return this.gopCache_.unshift({gop:a.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),s=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");ue(e),a=f}he(e,a),e.samples=function(e,t){var n,i,r,s,o=0,a=[];for(n=0;n<e.length;n++)for(s=e[n],i=0;i<s.length;i++)o+=(r=te(s[i],o)).size,a.push(r);return a}(a),l=J(function(e){var t,n,i,r,s,o,a=0,c=new Uint8Array(e.byteLength+4*e.nalCount),l=new DataView(c.buffer);for(t=0;t<e.length;t++)for(r=e[t],n=0;n<r.length;n++)for(s=r[n],i=0;i<s.length;i++)l.setUint32(a,(o=s[i]).data.byteLength),c.set(o.data,a+=4),a+=o.data.byteLength;return c}(a)),e.baseMediaDecodeTime=de(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",a.map(function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}})),this.trigger("segmentTimingInfo",gt(e.baseMediaDecodeTime,(d=a[0]).dts,d.pts,(h=a[a.length-1]).dts+h.duration,h.pts+h.duration,p)),this.trigger("timingInfo",{start:a[0].pts,end:a[a.length-1].pts+a[a.length-1].duration}),this.gopCache_.unshift({gop:a.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),s=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),c=ee(n,[e]),u=new Uint8Array(c.byteLength+l.byteLength),n++,u.set(c),u.set(l,c.byteLength),this.trigger("data",{track:e,boxes:u}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),s=[],this.gopCache_.length=0,o.length=0,this.trigger("reset")},this.resetStream_=function(){ue(e),i=void 0,r=void 0},this.getGopForFusion_=function(t){var n,i,r,s,o,a=1/0;for(o=0;o<this.gopCache_.length;o++)r=(s=this.gopCache_[o]).gop,e.pps&&ft(e.pps[0],s.pps[0])&&e.sps&&ft(e.sps[0],s.sps[0])&&(r.dts<e.timelineStartInfo.dts||(n=t.dts-r.dts-r.duration)>=-1e4&&n<=45e3&&(!i||a>n)&&(i=s,a=n));return i?i.gop:null},this.alignGopsAtStart_=function(e){var t,n,i,r,s,a,c,l;for(s=e.byteLength,a=e.nalCount,c=e.duration,t=n=0;t<o.length&&n<e.length&&(i=o[t]).pts!==(r=e[n]).pts;)r.pts>i.pts?t++:(n++,s-=r.byteLength,a-=r.nalCount,c-=r.duration);return 0===n?e:n===e.length?null:((l=e.slice(n)).byteLength=s,l.duration=c,l.nalCount=a,l.pts=l[0].pts,l.dts=l[0].dts,l)},this.alignGopsAtEnd_=function(e){var t,n,i,r,s,a,c;for(t=o.length-1,n=e.length-1,s=null,a=!1;t>=0&&n>=0;){if((i=o[t]).pts===(r=e[n]).pts){a=!0;break}i.pts>r.pts?t--:(t===o.length-1&&(s=n),n--)}if(!a&&null===s)return null;if(0===(c=a?n:s))return e;var l=e.slice(c),u=l.reduce(function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e},{byteLength:0,duration:0,nalCount:0});return l.byteLength=u.byteLength,l.duration=u.duration,l.nalCount=u.nalCount,l.pts=l[0].pts,l.dts=l[0].dts,l},this.alignGopsWith=function(e){o=e}},it.prototype=new B,ot=function(e,t){this.numberOfTracks=0,this.metadataStream=t,this.remuxTracks=void 0===(e=e||{}).remux||!!e.remux,this.keepOriginalTimestamps="boolean"==typeof e.keepOriginalTimestamps&&e.keepOriginalTimestamps,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,ot.prototype.init.call(this),this.push=function(e){return e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),void("audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))))}},ot.prototype=new B,ot.prototype.flush=function(e){var t,n,i,s,o=0,a={captions:[],captionStream
vendor: 18,151 bytes, line 1
1s:{},metadata:[],info:{}},l=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(l=this.videoTrack.timelineStartInfo.pts,lt.forEach(function(e){a.info[e]=this.videoTrack[e]},this)):this.audioTrack&&(l=this.audioTrack.timelineStartInfo.pts,ct.forEach(function(e){a.info[e]=this.audioTrack[e]},this)),this.videoTrack||this.audioTrack){for(a.type=1===this.pendingTracks.length?this.pendingTracks[0].type:"combined",this.emittedTracks+=this.pendingTracks.length,i=function(e){var t,n=r(),i=c(e);return(t=new Uint8Array(n.byteLength+i.byteLength)).set(n),t.set(i,n.byteLength),t}(this.pendingTracks),a.initSegment=new Uint8Array(i.byteLength),a.initSegment.set(i),a.data=new Uint8Array(this.pendingBytes),s=0;s<this.pendingBoxes.length;s++)a.data.set(this.pendingBoxes[s],o),o+=this.pendingBoxes[s].byteLength;for(s=0;s<this.pendingCaptions.length;s++)(t=this.pendingCaptions[s]).startTime=le(t.startPts,l,this.keepOriginalTimestamps),t.endTime=le(t.endPts,l,this.keepOriginalTimestamps),a.captionStreams[t.stream]=!0,a.captions.push(t);for(s=0;s<this.pendingMetadata.length;s++)(n=this.pendingMetadata[s]).cueTime=le(n.pts,l,this.keepOriginalTimestamps),a.metadata.push(n);for(a.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",a),s=0;s<a.captions.length;s++)this.trigger("caption",t=a.captions[s]);for(s=0;s<a.metadata.length;s++)this.trigger("id3Frame",n=a.metadata[s])}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},ot.prototype.setRemux=function(e){this.remuxTracks=e},(st=function(e){var t,n,i=this,r=!0;st.prototype.init.call(this),this.baseMediaDecodeTime=(e=e||{}).baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="aac",r.metadataStream=new Ue.MetadataStream,r.aacStream=new at,r.audioTimestampRolloverStream=new Ue.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new Ue.TimestampRolloverStream("timed-metadata"),r.adtsStream=new $e,r.coalesceStream=new ot(e,r.metadataStream),r.headOfPipeline=r.aacStream,r.aacStream.pipe(r.audioTimestampRolloverStream).pipe(r.adtsStream),r.aacStream.pipe(r.timedMetadataTimestampRolloverStream).pipe(r.metadataStream).pipe(r.coalesceStream),r.metadataStream.on("timestamp",function(e){r.aacStream.setTimestamp(e.timeStamp)}),r.aacStream.on("data",function(s){"timed-metadata"!==s.type&&"audio"!==s.type||r.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:i.baseMediaDecodeTime},codec:"adts",type:"audio"},r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new rt(n,e),r.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t}))}),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),pt(this,r)},this.setupTsPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="ts",r.metadataStream=new Ue.MetadataStream,r.packetStream=new Ue.TransportPacketStream,r.parseStream=new Ue.TransportParseStream,r.elementaryStream=new Ue.ElementaryStream,r.timestampRolloverStream=new Ue.TimestampRolloverStream,r.adtsStream=new $e,r.h264Stream=new ut,r.captionStream=new Ue.CaptionStream(e),r.coalesceStream=new ot(e,r.metadataStream),r.headOfPipeline=r.packetStream,r.packetStream.pipe(r.parseStream).pipe(r.elementaryStream).pipe(r.timestampRolloverStream),r.timestampRolloverStream.pipe(r.h264Stream),r.timestampRolloverStream.pipe(r.adtsStream),r.timestampRolloverStream.pipe(r.metadataStream).pipe(r.coalesceStream),r.h264Stream.pipe(r.captionStream).pipe(r.coalesceStream),r.elementaryStream.on("data",function(s){var o;if("metadata"===s.type){for(o=s.tracks.length;o--;)t||"video"!==s.tracks[o].type?n||"audio"!==s.tracks[o].type||((n=s.tracks[o]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime):(t=s.tracks[o]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime;t&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new it(t,e),r.videoSegmentStream.on("log",i.getLogTrigger_("videoSegmentStream")),r.videoSegmentStream.on("timelineStartInfo",function(t){n&&!e.keepOriginalTimestamps&&(n.timelineStartInfo=t,r.audioSegmentStream.setEarliestDts(t.dts-i.baseMediaDecodeTime))}),r.videoSegmentStream.on("processedGopsInfo",i.trigger.bind(i,"gopInfo")),r.videoSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"videoSegmentTimingInfo")),r.videoSegmentStream.on("baseMediaDecodeTime",function(e){n&&r.audioSegmentStream.setVideoBaseMediaDecodeTime(e)}),r.videoSegmentStream.on("timingInfo",i.trigger.bind(i,"videoTimingInfo")),r.h264Stream.pipe(r.videoSegmentStream).pipe(r.coalesceStream)),n&&!r.audioSegmentStream&&(r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new rt(n,e),r.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.audioSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"audioSegmentTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t})}}),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("id3Frame",function(e){e.dispatchType=r.metadataStream.dispatchType,i.trigger("id3Frame",e)}),r.coalesceStream.on("caption",this.trigger.bind(this,"caption")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),pt(this,r)},this.setBaseMediaDecodeTime=function(i){var r=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=i),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,ue(n),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),t&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,ue(t),r.captionStream.reset()),r.timestampRolloverStream&&r.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var n=this.transmuxPipeline_;e.remux=t,n&&n.coalesceStream&&n.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(e){var t=this;return function(n){n.stream=e,t.trigger("log",n)}},this.push=function(e){if(r){var t=dt(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),r=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){r=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}}).prototype=new B;var mt,bt,yt,vt={Transmuxer:st,VideoSegmentStream:it,AudioSegmentStream:rt,AUDIO_PROPERTIES:ct,VIDEO_PROPERTIES:lt,generateSegmentTimingInfo:gt},_t=function(e){return e>>>0},wt=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),(t+=String.fromCharCode(e[2]))+String.fromCharCode(e[3])},kt=_t,Ct=function e(t,n){var i,r,s,o,a,c=[];if(!n.length)return null;for(i=0;i<t.byteLength;)r=kt(t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]),s=wt(t.subarray(i+4,i+8)),o=r>1?i+r:t.byteLength,s===n[0]&&(1===n.length?c.push(t.subarray(i+8,o)):(a=e(t.subarray(i+8,o),n.slice(1))).length&&(c=c.concat(a))),i=o;return c},St=_t,Tt=U.getUint64,Pt=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},Ot="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},xt="undefined"!=typeof window?window:void 0!==Ot?Ot:"undefined"!=typeof self?self:{},At=function(e){for(var t,n,i=e.byteLength,r=[],s=1;s<i-2;)0===e[s]&&0===e[s+1]&&3===e[s+2]?(r.push(s+2),s+=2):s++;if(0===r.length)return e;t=i-r.length,n=new Uint8Array(t);var o=0;for(s=0;s<t;o++,s++)o===r[0]&&(o++,r.shift()),n[s]=e[o];return n},Et=Se.CaptionStream,Mt=function(e,t){for(var n=e,i=0;i<t.length;i++){var r=t[i];if(n<r.size)return r;n-=r.size}return null},It=function(){var e,t,n,i,r,s,o=!1;this.isInitialized=function(){return o},this.init=function(t){e=new Et,o=!0,s=!!t&&t.isPartial,e.on("data",function(e){e.startTime=e.startPts/i,e.endTime=e.endPts/i,r.captions.push(e),r.captionStreams[e.stream]=!0}),e.on("log",function(e){r.logs.push(e)})},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"==typeof t&&0===Object.keys(t).length||n===e[0]&&i===t[n])},this.parse=function(e,s,o){var a;if(!this.isInitialized())return null;if(!s||!o)return null;if(this.isNewInit(s,o))i=o[n=s[0]];else if(null===n||!i)return t.push(e),null;for(;t.length>0;){var c=t.shift();this.parse(c,s,o)}return a=function(e,t,n){if(null===t)return null;var i=function(e,t){var n=Ct(e,["moof","traf"]),i=Ct(e,["mdat"]),r={},s=[];return i.forEach(function(e,t){s.push({mdat:e,traf:n[t]})}),s.forEach(function(e){var n,i,s=e.mdat,o=e.traf,a=function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:n.getUint32(4)},r=1&i.flags[2],s=2&i.flags[2],o=8&i.flags[2],a=16&i.flags[2],c=32&i.flags[2],l=65536&i.flags[0],u=131072&i.flags[0];return t=8,r&&(t+=4,i.baseDataOffset=n.getUint32(12),t+=4),s&&(i.sampleDescriptionIndex=n.getUint32(t),t+=4),o&&(i.defaultSampleDuration=n.getUint32(t),t+=4),a&&(i.defaultSampleSize=n.getUint32(t),t+=4),c&&(i.defaultSampleFlags=n.getUint32(t)),l&&(i.durationIsEmpty=!0),!r&&u&&(i.baseDataOffsetIsMoof=!0),i}(Ct(o,["tfhd"])[0]),c=a.trackId,l=Ct(o,["tfdt"]),u=l.length>0?function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return t.baseMediaDecodeTime=1===t.version?Tt(e.subarray(4)):St(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t}(l[0]).baseMediaDecodeTime:0,d=Ct(o,["trun"]);t===c&&d.length>0&&(n=function(e,t,n){var i=t,r=n.defaultSampleDuration||0,s=n.defaultSampleSize||0,o=n.trackId,a=[];return e.forEach(function(e){var t=function(e){var t,n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},i=new DataView(e.buffer,e.byteOffset,e.byteLength),r=1&n.flags[2],s=4&n.flags[2],o=1&n.flags[1],a=2&n.flags[1],c=4&n.flags[1],l=8&n.flags[1],u=i.getUint32(4),d=8;for(r&&(n.dataOffset=i.getInt32(d),d+=4),s&&u&&(t={flags:Pt(e.subarray(d,d+4))},d+=4,o&&(t.duration=i.getUint32(d),d+=4),a&&(t.size=i.getUint32(d),d+=4),l&&(t.compositionTimeOffset=1===n.version?i.getInt32(d):i.getUint32(d),d+=4),n.samples.push(t),u--);u--;)t={},o&&(t.duration=i.getUint32(d),d+=4),a&&(t.size=i.getUint32(d),d+=4),c&&(t.flags=Pt(e.subarray(d,d+4)),d+=4),l&&(t.compositionTimeOffset=1===n.version?i.getInt32(d):i.getUint32(d),d+=4),n.samples.push(t);return n}(e).samples;t.forEach(function(e){void 0===e.duration&&(e.duration=r),void 0===e.size&&(e.size=s),e.trackId=o,e.dts=i,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),"bigint"==typeof i?(e.pts=i+xt.BigInt(e.compositionTimeOffset),i+=xt.BigInt(e.duration)):(e.pts=i+e.compositionTimeOffset,i+=e.duration)}),a=a.concat(t)}),a}(d,u,a),i=function(e,t,n){var i,r,s,o,a=new DataView(e.buffer,e.byteOffset,e.byteLength),c={logs:[],seiNals:[]};for(r=0;r+4<e.length;r+=s)if(s=a.getUint32(r),r+=4,!(s<=0))switch(31&e[r]){case 6:var l=e.subarray(r+1,r+1+s),u=Mt(r,t);if(i={nalUnitType:"sei_rbsp",size:s,data:l,escapedRBSP:At(l),trackId:n},u)i.pts=u.pts,i.dts=u.dts,o=u;else{if(!o){c.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+r+" for trackId "+n+". See mux.js#223."});break}i.pts=o.pts,i.dts=o.dts}c.seiNals.push(i)}return c}(s,n,c),r[c]||(r[c]={seiNals:[],logs:[]}),r[c].seiNals=r[c].seiNals.concat(i.seiNals),r[c].logs=r[c].logs.concat(i.logs))}),r}(e,t)[t]||{};return{seiNals:i.seiNals,logs:i.logs,timescale:n}}(e,n,i),a&&a.logs&&(r.logs=r.logs.concat(a.logs)),null!==a&&a.seiNals?(this.pushNals(a.seiNals),this.flushStream(),r):r.logs.length?{logs:r.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach(function(t){e.push(t)})},this.flushStream=function(){if(!this.isInitialized())return null;s?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){r.captions=[],r.captionStreams={},r.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],n=null,i=null,r?this.clearParsedCaptions():r={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},Rt=_t,Lt=function(e){return("00"+e.toString(16)).slice(-2)},Dt=U.getUint64;mt=function(e,t){var n=Ct(t,["moof","traf"]).reduce(function(t,n){var i,r,s=Ct(n,["tfhd"])[0],o=Rt(s[4]<<24|s[5]<<16|s[6]<<8|s[7]),a=e[o]||9e4,c=Ct(n,["tfdt"])[0],l=new DataView(c.buffer,c.byteOffset,c.byteLength);return"bigint"==typeof(i=1===c[0]?Dt(c.subarray(4,12)):l.getUint32(4))?r=i/xt.BigInt(a):"number"!=typeof i||isNaN(i)||(r=i/a),r<Number.MAX_SAFE_INTEGER&&(r=Number(r)),r<t&&(t=r),t},1/0);return"bigint"==typeof n||isFinite(n)?n:0},yt=function(e){var t=0===e[0]?12:20;return Rt(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},bt=function(e){var t=Ct(e,["moov","trak"]),n=[];return t.forEach(function(e){var t,i,r={},s=Ct(e,["tkhd"])[0];s&&(i=(t=new DataView(s.buffer,s.byteOffset,s.byteLength)).getUint8(0),r.id=t.getUint32(0===i?12:20));var o=Ct(e,["mdia","hdlr"])[0];if(o){var a=wt(o.subarray(8,12));r.type="vide"===a?"video":"soun"===a?"audio":a}var c=Ct(e,["mdia","minf","stbl","stsd"])[0];if(c){var l=c.subarray(8);r.codec=wt(l.subarray(4,8));var u,d=Ct(l,[r.codec])[0];d&&(/^[asm]vc[1-9]$/i.test(r.codec)?(u=d.subarray(78),"avcC"===wt(u.subarray(4,8))&&u.length>11?(r.codec+=".",r.codec+=Lt(u[9]),r.codec+=Lt(u[10]),r.codec+=Lt(u[11])):r.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(r.codec)?(u=d.subarray(28),"esds"===wt(u.subarray(4,8))&&u.length>20&&0!==u[19]?(r.codec+="."+Lt(u[19]),r.codec+="."+Lt(u[20]>>>2&63).replace(/^0/,"")):r.codec="mp4a.40.2"):r.codec=r.codec.toLowerCase())}var h=Ct(e,["mdia","mdhd"])[0];h&&(r.timescale=yt(h)),n.push(r)}),n};var jt=mt,Nt=bt,Vt=function(e){var t=31&e[1];return(t<<=8)|e[2]},zt=function(e){return!!(64&e[1])},Ft=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},Bt=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},qt=Ee,Ut={};Ut.ts={parseType:function(e,t){var n=Vt(e);return 0===n?"pat":n===t?"pmt":t?"pes":null},parsePat:function(e){var t=zt(e),n=4+Ft(e);return t&&(n+=e[n]+1),(31&e[n+10])<<8|e[n+11]},parsePmt:function(e){var t={},n=zt(e),i=4+Ft(e);if(n&&(i+=e[i]+1),1&e[i+5]){var r;r=3+((15&e[i+1])<<8|e[i+2])-4;for(var s=12+((15&e[i+10])<<8|e[i+11]);s<r;){var o=i+s;t[(31&e[o+1])<<8|e[o+2]]=e[o],s+=5+((15&e[o+3])<<8|e[o+4])}return t}},parsePayloadUnitStartIndicator:zt,parsePesType:function(e,t){switch(t[Vt(e)]){case Te.H264_STREAM_TYPE:return"video";case Te.ADTS_STREAM_TYPE:return"audio";case Te.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(e){if(!zt(e))return null;var t=4+Ft(e);if(t>=e.byteLength)return null;var n,i=null;return 192&(n=e[t+7])&&((i={}).pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,i.pts*=4,i.pts+=(6&e[t+13])>>>1,i.dts=i.pts,64&n&&(i.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,i.dts*=4,i.dts+=(6&e[t+18])>>>1)),i},videoPacketContainsKeyFrame:function(e){for(var t=4+Ft(e),n=e.subarray(t),i=0,r=0,s=!1;r<n.byteLength-3;r++)if(1===n[r+2]){i=r+5;break}for(;i<n.byteLength;)switch(n[i]){case 0:if(0!==n[i-1]){i+=2;break}if(0!==n[i-2]){i++;break}r+3!==i-2&&"slice_layer_without_partitioning_rbsp_idr"===Bt(31&n[r+3])&&(s=!0);do{i++}while(1!==n[i]&&i<n.length);r=i-2,i+=3;break;case 1:if(0!==n[i-1]||0!==n[i-2]){i+=3;break}"slice_layer_without_partitioning_rbsp_idr"===Bt(31&n[r+3])&&(s=!0),r=i-2,i+=3;break;default:i+=3}return n=n.subarray(r),i-=r,r=0,n&&n.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===Bt(31&n[r+3])&&(s=!0),s}},Ut.aac=nt;var Ht=function(e,t,n){for(var i,r,s,o,a=0,c=188,l=!1;c<=e.byteLength;)if(71!==e[a]||71!==e[c]&&c!==e.byteLength)a++,c++;else{if(i=e.subarray(a,c),"pes"===Ut.ts.parseType(i,t.pid)&&(r=Ut.ts.parsePesType(i,t.table),s=Ut.ts.parsePayloadUnitStartIndicator(i),"audio"===r&&s&&(o=Ut.ts.parsePesTime(i))&&(o.type="audio",n.audio.push(o),l=!0)),l)break;a+=188,c+=188}for(a=(c=e.byteLength)-188,l=!1;a>=0;)if(71!==e[a]||71!==e[c]&&c!==e.byteLength)a--,c--;else{if(i=e.subarray(a,c),"pes"===Ut.ts.parseType(i,t.pid)&&(r=Ut.ts.parsePesType(i,t.table),s=Ut.ts.parsePayloadUnitStartIndicator(i),"audio"===r&&s&&(o=Ut.ts.parsePesTime(i))&&(o.type="audio",n.audio.push(o),l=!0)),l)break;a-=188,c-=188}},Wt=function(e,t,n){for(var i,r,s,o,a,c,l,u=0,d=188,h=!1,p={data:[],size:0};d<e.byteLength;)if(71!==e[u]||71!==e[d])u++,d++;else{if(i=e.subarray(u,d),"pes"===Ut.ts.parseType(i,t.pid)&&(r=Ut.ts.parsePesType(i,t.table),s=Ut.ts.parsePayloadUnitStartIndicator(i),"video"===r&&(s&&!h&&(o=Ut.ts.parsePesTime(i))&&(o.type="video",n.video.push(o),h=!0),!n.firstKeyFrame))){if
1(s&&0!==p.size){for(a=new Uint8Array(p.size),c=0;p.data.length;)l=p.data.shift(),a.set(l,c),c+=l.byteLength;if(Ut.ts.videoPacketContainsKeyFrame(a)){var f=Ut.ts.parsePesTime(a);f?(n.firstKeyFrame=f,n.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}p.size=0}p.data.push(i),p.size+=i.byteLength}if(h&&n.firstKeyFrame)break;u+=188,d+=188}for(u=(d=e.byteLength)-188,h=!1;u>=0;)if(71!==e[u]||71!==e[d])u--,d--;else{if(i=e.subarray(u,d),"pes"===Ut.ts.parseType(i,t.pid)&&(r=Ut.ts.parsePesType(i,t.table),s=Ut.ts.parsePayloadUnitStartIndicator(i),"video"===r&&s&&(o=Ut.ts.parsePesTime(i))&&(o.type="video",n.video.push(o),h=!0)),h)break;u-=188,d-=188}},Gt=function(){function e(e,t){this.options=t||{},this.self=e,this.init()}var t=e.prototype;return t.init=function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new vt.Transmuxer(this.options),function(e,t){t.on("data",function(t){var n=t.initSegment;t.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength};var i=t.data;t.data=i.buffer,e.postMessage({action:"data",segment:t,byteOffset:i.byteOffset,byteLength:i.byteLength},[t.data])}),t.on("done",function(t){e.postMessage({action:"done"})}),t.on("gopInfo",function(t){e.postMessage({action:"gopInfo",gopInfo:t})}),t.on("videoSegmentTimingInfo",function(t){var n={start:{decode:oe(t.start.dts),presentation:oe(t.start.pts)},end:{decode:oe(t.end.dts),presentation:oe(t.end.pts)},baseMediaDecodeTime:oe(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=oe(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:n})}),t.on("audioSegmentTimingInfo",function(t){var n={start:{decode:oe(t.start.dts),presentation:oe(t.start.pts)},end:{decode:oe(t.end.dts),presentation:oe(t.end.pts)},baseMediaDecodeTime:oe(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=oe(t.prependedContentDuration)),e.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:n})}),t.on("id3Frame",function(t){e.postMessage({action:"id3Frame",id3Frame:t})}),t.on("caption",function(t){e.postMessage({action:"caption",caption:t})}),t.on("trackinfo",function(t){e.postMessage({action:"trackinfo",trackInfo:t})}),t.on("audioTimingInfo",function(t){e.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:oe(t.start),end:oe(t.end)}})}),t.on("videoTimingInfo",function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:oe(t.start),end:oe(t.end)}})}),t.on("log",function(t){e.postMessage({action:"log",log:t})})}(this.self,this.transmuxer)},t.pushMp4Captions=function(e){this.captionParser||(this.captionParser=new It,this.captionParser.init());var t=new Uint8Array(e.data,e.byteOffset,e.byteLength),n=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:n&&n.captions||[],logs:n&&n.logs||[],data:t.buffer},[t.buffer])},t.probeMp4StartTime=function(e){var t=e.data,n=jt(e.timescales,t);this.self.postMessage({action:"probeMp4StartTime",startTime:n,data:t},[t.buffer])},t.probeMp4Tracks=function(e){var t=e.data,n=Nt(t);this.self.postMessage({action:"probeMp4Tracks",tracks:n,data:t},[t.buffer])},t.probeTs=function(e){var t=e.data,n=e.baseStartTime,i=function(e,t){var n;return n=Ut.aac.isLikelyAacData(e)?function(e){for(var t,n=!1,i=0,r=null,s=null,o=0,a=0;e.length-a>=3;){switch(Ut.aac.parseType(e,a)){case"timed-metadata":if(e.length-a<10){n=!0;break}if((o=Ut.aac.parseId3TagSize(e,a))>e.length){n=!0;break}null===s&&(t=e.subarray(a,a+o),s=Ut.aac.parseAacTimestamp(t)),a+=o;break;case"audio":if(e.length-a<7){n=!0;break}if((o=Ut.aac.parseAdtsSize(e,a))>e.length){n=!0;break}null===r&&(t=e.subarray(a,a+o),r=Ut.aac.parseSampleRate(t)),i++,a+=o;break;default:a++}if(n)return null}if(null===r||null===s)return null;var c=9e4/r;return{audio:[{type:"audio",dts:s,pts:s},{type:"audio",dts:s+1024*i*c,pts:s+1024*i*c}]}}(e):function(e){var t={pid:null,table:null},n={};for(var i in function(e,t){for(var n,i=0,r=188;r<e.byteLength;)if(71!==e[i]||71!==e[r])i++,r++;else{switch(n=e.subarray(i,r),Ut.ts.parseType(n,t.pid)){case"pat":t.pid=Ut.ts.parsePat(n);break;case"pmt":var s=Ut.ts.parsePmt(n);t.table=t.table||{}
1,Object.keys(s).forEach(function(e){t.table[e]=s[e]})}i+=188,r+=188}}(e,t),t.table)if(t.table.hasOwnProperty(i))switch(t.table[i]){case Te.H264_STREAM_TYPE:n.video=[],Wt(e,t,n),0===n.video.length&&delete n.video;break;case Te.ADTS_STREAM_TYPE:n.audio=[],Ht(e,t,n),0===n.audio.length&&delete n.audio}return n}(e),n&&(n.audio||n.video)?(function(e,t){if(e.audio&&e.audio.length){var n=t;(void 0===n||isNaN(n))&&(n=e.audio[0].dts),e.audio.forEach(function(e){e.dts=qt(e.dts,n),e.pts=qt(e.pts,n),e.dtsTime=e.dts/9e4,e.ptsTime=e.pts/9e4})}if(e.video&&e.video.length){var i=t;if((void 0===i||isNaN(i))&&(i=e.video[0].dts),e.video.forEach(function(e){e.dts=qt(e.dts,i),e.pts=qt(e.pts,i),e.dtsTime=e.dts/9e4,e.ptsTime=e.pts/9e4}),e.firstKeyFrame){var r=e.firstKeyFrame;r.dts=qt(r.dts,i),r.pts=qt(r.pts,i),r.dtsTime=r.dts/9e4,r.ptsTime=r.pts/9e4}}}(n,t),n):null}(t,"number"!=typeof n||isNaN(n)?void 0:9e4*n),r=null;i&&((r={hasVideo:i.video&&2===i.video.length||!1,hasAudio:i.audio&&2===i.audio.length||!1}).hasVideo&&(r.videoStart=i.video[0].ptsTime),r.hasAudio&&(r.audioStart=i.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:r,data:t},[t.buffer])},t.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},t.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},t.push=function(e){var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)},t.reset=function(){this.transmuxer.reset()},t.setTimestampOffset=function(e){this.transmuxer.setBaseMediaDecodeTime(Math.round(se(e.timestampOffset||0)))},t.setAudioAppendStart=function(e){this.transmuxer.setAudioAppendStart(Math.ceil(se(e.appendStart)))},t.setRemux=function(e){this.transmuxer.setRemux(e.remux)},t.flush=function(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})},t.endTimeline=function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})},t.alignGopsWith=function(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())},e}();self.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new Gt(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new Gt(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}})),ja=Ia(Da),Na=function(e){var t=e.transmuxer,n=e.bytes,i=e.audioAppendStart,r=e.gopsToAlignWith,s=e.remux,o=e.onData,a=e.onTrackInfo,c=e.onAudioTimingInfo,l=e.onVideoTimingInfo,u=e.onVideoSegmentTimingInfo,d=e.onAudioSegmentTimingInfo,h=e.onId3,p=e.onCaptions,f=e.onDone,g=e.onEndedTimeline,m=e.onTransmuxerLog,b=e.isEndOfTimeline,y={buffer:[]},v=b;if(t.onmessage=function(n){t.currentTransmux===e&&("data"===n.data.action&&function(e,t,n){var i=e.data.segment,r=i.type,s=i.initSegment,o=i.videoFrameDtsTime,a=i.videoFramePtsTime;t.buffer.push({captions:i.captions,captionStreams:i.captionStreams,metadata:i.metadata});var c=e.data.segment.boxes||{data:e.data.segment.data},l={type:r,data:new Uint8Array(c.data,c.data.byteOffset,c.data.byteLength),initSegment:new Uint8Array(s.data,s.byteOffset,s.byteLength)};void 0!==o&&(l.videoFrameDtsTime=o),void 0!==a&&(l.videoFramePtsTime=a),n(l)}(n,y,o),"trackinfo"===n.data.action&&a(n.data.trackInfo),"gopInfo"===n.data.action&&function(e,t){t.gopInfo=e.data.gopInfo}(n,y),"audioTimingInfo"===n.data.action&&c(n.data.audioTimingInfo),"videoTimingInfo"===n.data.action&&l(n.data.videoTimingInfo),"videoSegmentTimingInfo"===n.data.action&&u(n.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===n.data.action&&d(n.data.audioSegmentTimingInfo),"id3Frame"===n.data.action&&h([n.data.id3Frame],n.data.id3Frame.dispatchType),"caption"===n.data.action&&p(n.data.caption),"endedtimeline"===n.data.action&&(v=!1,g()),"log"===n.data.action&&m(n.data.log),"transmuxed"===n.data.type&&(v||(t.onmessage=null,function(e){var t=e.transmuxedData,n=e.callback;t.buffer=[],n(t)}({transmuxedData:y,callback:f}),Va(t))))},i&&t.postMessage({action:"setAudioAppendStart",appendStart:i}),Array.isArray(r)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),void 0!==s&&t.postMessage({action:"setRemux",remux:s}),n.byteLength){var _=n instanceof ArrayBuffer?n:n.buffer,w=n instanceof ArrayBuffer?0:n.byteOffset;t.postMessage({action:"push",data:_,byteOffset:w,byteLength:n.byteLength},[_])}b&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},Va=function(e){e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():Na(e.currentTransmux))},za=function(e,t){e.postMessage({action:t}),Va(e)},Fa=function(e){!function(e,t){if(!t.currentTransmux)return t.currentTransmux="reset",void za(t,"reset");t.transmuxQueue.push(za.bind(null,t,"reset"))}(0,e)},Ba=function(e){var t=e.transmuxer,n=e.endAction||e.action,i=e.callback,r=l()({},e,{endAction:null,transmuxer:null,callback:null});if(t.addEventListener("message",function r(s){s.data.action===n&&(t.removeEventListener("message",r),s.data.data&&(s.data.data=new Uint8Array(s.data.data,e.byteOffset||0,e.byteLength||s.data.data.byteLength),e.data&&(e.data=s.data.data)),i(s.data))}),e.data){var s=e.data instanceof ArrayBuffer;r.byteOffset=s?0:e.data.byteOffset,r.byteLength=e.data.byteLength,t.postMessage(r,[s?e.data:e.data.buffer])}else t.postMessage(r)},qa=function(e){e.forEach(function(e){e.abort()})},Ua=function(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:-101,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:-102,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:2,xhr:t}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:2,xhr:t}:null},Ha=function(e,t,n){return function(i,r){var s=r.response,o=Ua(i,r);if(o)return n(o,e);if(16!==s.byteLength)return n({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:2,xhr:r},e);for(var a=new DataView(s),c=new Uint32Array([a.getUint32(0),a.getUint32(4),a.getUint32(8),a.getUint32(12)]),l=0;l<t.length;l++)t[l].bytes=c;return n(null,e)}},Wa=function(e,t){var n=yt(e.map.bytes);if("mp4"!==n)return t({internal:!0,message:"Found unsupported "+(n||"unknown")+" container for initialization segment at URL: "+(e.map.resolvedUri||e.map.uri),code:2});Ba({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:function(n){var i=n.tracks;
1return e.map.bytes=n.data,i.forEach(function(t){e.map.tracks=e.map.tracks||{},e.map.tracks[t.type]||(e.map.tracks[t.type]=t,"number"==typeof t.id&&t.timescale&&(e.map.timescales=e.map.timescales||{},e.map.timescales[t.id]=t.timescale))}),t(null)}})},Ga=function(e){var t=e.segment,n=e.bytes,i=e.trackInfoFn,r=e.timingInfoFn,s=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,a=e.id3Fn,c=e.captionsFn,l=e.isEndOfTimeline,u=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog,f=new Uint8Array(n);if(function(e){return tt(e,["moof"]).length>0}(f)){t.isFmp4=!0;var g=t.map.tracks,m={isFmp4:!0,hasVideo:!!g.video,hasAudio:!!g.audio};g.audio&&g.audio.codec&&"enca"!==g.audio.codec&&(m.audioCodec=g.audio.codec),g.video&&g.video.codec&&"encv"!==g.video.codec&&(m.videoCodec=g.video.codec),g.video&&g.audio&&(m.isMuxed=!0),i(t,m);var b=function(e){d(t,{data:f,type:m.hasAudio&&!m.isMuxed?"audio":"video"}),e&&e.length&&c(t,e),h(null,t,{})};Ba({action:"probeMp4StartTime",timescales:t.map.timescales,data:f,transmuxer:t.transmuxer,callback:function(e){var i=e.data,s=e.startTime;n=i.buffer,t.bytes=f=i,m.hasAudio&&!m.isMuxed&&r(t,"audio","start",s),m.hasVideo&&r(t,"video","start",s),g.video&&i.byteLength&&t.transmuxer?Ba({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:t.transmuxer,data:f,timescales:t.map.timescales,trackIds:[g.video.id],callback:function(e){n=e.data.buffer,t.bytes=f=e.data,e.logs.forEach(function(e){p(vo.mergeOptions(e,{stream:"mp4CaptionParser"}))}),b(e.captions)}}):b()}})}else if(t.transmuxer){if(void 0===t.container&&(t.container=yt(f)),"ts"!==t.container&&"aac"!==t.container)return i(t,{hasAudio:!1,hasVideo:!1}),void h(null,t,{});!function(e){var t=e.segment,n=e.bytes,i=e.trackInfoFn,r=e.timingInfoFn,s=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,a=e.id3Fn,c=e.captionsFn,l=e.isEndOfTimeline,u=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog,f=t.map&&t.map.tracks||{},g=Boolean(f.audio&&f.video),m=r.bind(null,t,"audio","start"),b=r.bind(null,t,"audio","end"),y=r.bind(null,t,"video","start"),v=r.bind(null,t,"video","end");Ba({action:"probeTs",transmuxer:t.transmuxer,data:n,baseStartTime:t.baseStartTime,callback:function(e){t.bytes=n=e.data;var r=e.result;r&&(i(t,{hasAudio:r.hasAudio,hasVideo:r.hasVideo,isMuxed:g}),i=null,r.hasAudio&&!g&&m(r.audioStart),r.hasVideo&&y(r.videoStart),m=null,y=null),function(e){if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void Na(e);e.transmuxer.transmuxQueue.push(e)}({bytes:n,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,remux:g,onData:function(e){e.type="combined"===e.type?"video":e.type,d(t,e)},onTrackInfo:function(e){i&&(g&&(e.isMuxed=!0),i(t,e))},onAudioTimingInfo:function(e){m&&void 0!==e.start&&(m(e.start),m=null),b&&void 0!==e.end&&b(e.end)},onVideoTimingInfo:function(e){y&&void 0!==e.start&&(y(e.start),y=null),v&&void 0!==e.end&&v(e.end)},onVideoSegmentTimingInfo:function(e){s(e)},onAudioSegmentTimingInfo:function(e){o(e)},onId3:function(e,n){a(t,e,n)},onCaptions:function(e){c(t,[e])},isEndOfTimeline:l,onEndedTimeline:function(){u()},onTransmuxerLog:p,onDone:function(e){h&&(e.type="combined"===e.type?"video":e.type,h(null,t,e))}})}})}({segment:t,bytes:n,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:o,id3Fn:a,captionsFn:c,isEndOfTimeline:l,endedTimelineFn:u,dataFn:d,doneFn:h,onTransmuxerLog:p})}else h(null,t,{})},Ya=function(e,t){var n,i=e.id,r=e.key,s=e.encryptedBytes,o=e.decryptionWorker;o.addEventListener("message",function e(n){if(n.data.source===i){o.removeEventListener("message",e);var r=n.data.decrypted;t(new Uint8Array(r.bytes,r.byteOffset,r.byteLength))}}),n=r.bytes.slice?r.bytes.slice():new Uint32Array(Array.prototype.slice.call(r.bytes)),o.postMessage(ya({source:i,encrypted:s,key:n,iv:r.iv}),[s.buffer,n.buffer])},$a=So("CodecUtils"),Za=function(e,t){var n=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&n.AUDIO&&e.mediaGroups.AUDIO[n.AUDIO]},Qa=function(e){var t={};return e.forEach(function(e){var n=e.mediaType,i=e.type,r=e.details;t[n]=t[n]||[],t[n].push(H(""+i+r))}),Object.keys(t).forEach(function(e){if(t[e].length>1)return $a("multiple "+e+" codecs found as attributes: "+t[e].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs."),void(t[e]=null);t[e]=t[e][0]}),t},Xa=function(e){var t=0;return e.audio&&t++,e.video&&t++,t},Ka=function(e,t){var n=t.attributes||{},i=Qa(function(e){var t=e.attributes||{};if(t.CODECS)return W(t.CODECS)}(t)||[]);if(Za(e,t)&&!i.audio&&!function(e,t){if(!Za(e,t))return!0;var n=e.mediaGroups.AUDIO[(t.attributes||{}).AUDIO];for(var i in n)if(!n[i].uri&&!n[i].playlists)return!0;return!1}(e,t)){var r=Qa(function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var n=e.mediaGroups.AUDIO[t];if(!n)return null;for(var i in n){var r=n[i];if(r.default&&r.playlists)return W(r.playlists[0].attributes.CODECS)}return null}(e,n.AUDIO)||[]);r.audio&&(i.audio=r.audio)}return i},Ja=So("PlaylistSelector"),ec=function(e){if(e&&e.playlist){var t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})}},tc=function(e,t){if(!e)return"";var n=s.a.getComputedStyle(e);return n?n[t]:""},nc=function(e,t){var n=e.slice();e.sort(function(e,i){var r=t(e,i);return 0===r?n.indexOf(e)-n.indexOf(i):r})},ic=function(e,t){var n,i;return e.attributes.BANDWIDTH&&(n=e.attributes.BANDWIDTH),t.attributes.BANDWIDTH&&(i=t.attributes.BANDWIDTH),(n=n||s.a.Number.MAX_VALUE)-(i||s.a.Number.MAX_VALUE)},rc=function(e,t,n,i,r,o){if(e){var a={bandwidth:t,width:n,height:i,limitRenditionByPlayerDimensions:r},c=e.playlists;Qo.isAudioOnly(e)&&(c=o.getAudioTrackPlaylists_(),a.audioOnly=!0);var l=c.map(function(e){return{bandwidth:e.attributes&&e.attributes.BANDWIDTH||s.a.Number.MAX_VALUE,width:e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,height:e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height,playlist:e}});nc(l,function(e,t){return e.bandwidth-t.bandwidth});var u=(l=l.filter(function(e){return!Qo.isIncompatible(e.playlist)})).filter(function(e){return Qo.isEnabled(e.playlist)});u.length||(u=l.filter(function(e){return!Qo.isDisabled(e.playlist)}));var d=u.filter(function(e){return e.bandwidth*Ea.BANDWIDTH_VARIANCE<t}),h=d[d.length-1],p=d.filter(function(e){return e.bandwidth===h.bandwidth})[0];if(!1===r){var f=p||u[0]||l[0];if(f&&f.playlist){var g="sortedPlaylistReps";return p&&(g="bandwidthBestRep"),u[0]&&(g="enabledPlaylistReps"),Ja("choosing "+ec(f)+" using "+g+" with options",a),f.playlist}return Ja("could not choose a playlist with options",a),null}var m=d.filter(function(e){return e.width&&e.height});nc(m,function(e,t){return e.width-t.width});var b=m.filter(function(e){return e.width===n&&e.height===i});h=b[b.length-1];var y,v,_,w,k=b.filter(function(e){return e.bandwidth===h.bandwidth})[0];if(k||(v=(y=m.filter(function(e){return e.width>n||e.height>i})).filter(function(e){return e.width===y[0].width&&e.height===y[0].height}),h=v[v.length-1],_=v.filter(function(e){return e.bandwidth===h.bandwidth})[0]),o.experimentalLeastPixelDiffSelector){var C=m.map(function(e){return e.pixelDiff=Math.abs(e.width-n)+Math.abs(e.height-i),e});nc(C,function(e,t){return e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff}),w=C[0]}var S=w||_||k||p||u[0]||l[0];if(S&&S.playlist){var T="sortedPlaylistReps";return w?T="leastPixelDiffRep":_?T="resolutionPlusOneRep":k?T="resolutionBestRep":p?T="bandwidthBestRep":u[0]&&(T="enabledPlaylistReps"),Ja("choosing "+ec(S)+" using "+T+" with options",a),S.playlist}return Ja("could not choose a playlist with options",a),null}},sc=function(){var e=this.useDevicePixelRatio&&s.a.devicePixelRatio||1;return rc(this.playlists.master,this.systemBandwidth,parseInt(tc(this.tech_.el(),"width"),10)*e,parseInt(tc(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)},oc=function(e,t,n){var i,r;if(n&&n.cues)for(i=n.cues.length;i--;)(r=n.cues[i]).startTime>=e&&r.endTime<=t&&n.removeCue(r)},ac=function(e){return"number"==typeof e&&isFinite(e)},cc=function(e){var t=e.startOfSegment,n=e.duration,i=e.segment,r=e.part,s=e.playlist,o=s.mediaSequence,a=s.id,c=s.segments,l=e.mediaIndex,u=e.partIndex,d=e.timeline,h=(void 0===c?[]:c).length-1,p="mediaIndex/partIndex increment";e.getMediaInfoForTime?p="getMediaInfoForTime ("+e.getMediaInfoForTime+")":e.isSyncRequest&&(p="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(p+=" with independent "+e.independent);var f="number"==typeof u,g=e.segment.uri?"segment":"pre-segment",m=f?jo({preloadSegment:i})-1:0;return g+" ["+(o+l)+"/"+(o+h)+"]"+(f?" part ["+u+"/"+m+"]":"")+" segment start/end ["+i.start+" => "+i.end+"]"+(f?" part start/end ["+r.start+" => "+r.end+"]":"")+" startOfSegment ["+t+"] duration ["+n+"] timeline ["+d+"] selected by ["+p+"] playlist ["+a+"]"},lc=function(e){return e+"TimingInfo"},uc=function(e){var t=e.timelineChangeController,n=e.segmentTimeline,i=e.loaderType,r=e.audioDisabled;if(e.currentTimeline===n)return!1;if("audio"===i){var s=t.lastTimelineChange({type:"main"});return!s||s.to!==n}if("main"===i&&r){var o=t.pendingTimelineChange({type:"audio"});return!o||o.to!==n}return!1},dc=function(e){var t=e.segmentDuration,n=e.maxDuration;return!!t&&Math.round(t)>n+.03333333333333333},hc=function(e){function t(t,n){var i;if(i=e.call(this)||this,!t)throw new TypeError("Initialization settings are required");if("function"!=typeof t.currentTime)throw new TypeError("No currentTime getter specified");if(!t.mediaSource)throw new TypeError("No MediaSource specified");return i.bandwidth=t.bandwidth,i.throughput={rate:0,count:0},i.roundTrip=NaN,i.resetStats_(),i.mediaIndex=null,i.partIndex=null,i.hasPlayed_=t.hasPlayed,i.currentTime_=t.currentTime,i.seekable_=t.seekable,i.seeking_=t.seeking,i.duration_=t.duration,i.mediaSource_=t.mediaSource,i.vhs_=t.vhs,i.loaderType_=t.loaderType,i.currentMediaInfo_=void 0,i.startingMediaInfo_=void 0,i.segmentMetadataTrack_=t.segmentMetadataTrack,i.goalBufferLength_=t.goalBufferLength,i.sourceType_=t.sourceType,i.sourceUpdater_=t.sourceUpdater,i.inbandTextTracks_=t.inbandTextTracks,i.state_="INIT",i.timelineChangeController_=t.timelineChangeController,i.shouldSaveSegmentTimingInfo_=!0,i.parse708captions_=t.parse708captions,i.useDtsForTimestampOffset_=t.useDtsForTimestampOffset,i.captionServices_=t.captionServices,i.experimentalExactManifestTimings=t.experimentalExactManifestTimings,i.checkBufferTimeout_=null,i.error_=void 0,i.currentTimeline_=-1,i.pendingSegment_=null,i.xhrOptions_=null,i.pendingSegments_=[],i.audioDisabled_=!1,i.isPendingTimestampOffset_=!1,i.gopBuffer_=[],i.timeMapping_=0,i.safeAppend_=vo.browser.IE_VERSION>=11,i.appendInitSegment_={audio:!0,video:!0},i.playlistOfLastInitSegment_={audio:null,video:null},i.callQueue_=[],i.loadQueue_=[],i.metadataQueue_={id3:[],caption:[]},i.waitingOnRemove_=!1,i.quotaExceededErrorRetryTimeout_=null,i.activeInitSegmentId_=null,i.initSegments_={},i.cacheEncryptionKeys_=t.cacheEncryptionKeys,i.keyCache_={},i.decrypter_=t.decrypter,i.syncController_=t.syncController,i.syncPoint_={segmentIndex:0,time:0},i.transmuxer_=i.createTransmuxer_(),i.triggerSyncInfoUpdate_=function(){return i.trigger("syncinfoupdate")},i.syncController_.on("syncinfoupdate",i.triggerSyncInfoUpdate_),i.mediaSource_.addEventListener("sourceopen",function(){i.isEndOfStream_
1()||(i.ended_=!1)}),i.fetchAtBuffer_=!1,i.logger_=So("SegmentLoader["+i.loaderType_+"]"),Object.defineProperty(p()(i),"state",{get:function(){return this.state_},set:function(e){e!==this.state_&&(this.logger_(this.state_+" -> "+e),this.state_=e,this.trigger("statechange"))}}),i.sourceUpdater_.on("ready",function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()}),"main"===i.loaderType_&&i.timelineChangeController_.on("pendingtimelinechange",function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()}),"audio"===i.loaderType_&&i.timelineChangeController_.on("timelinechange",function(){i.hasEnoughInfoToLoad_()&&i.processLoadQueue_(),i.hasEnoughInfoToAppend_()&&i.processCallQueue_()}),i}g()(t,e);var n=t.prototype;return n.createTransmuxer_=function(){return function(e){var t=new ja;t.currentTransmux=null,t.transmuxQueue=[];var n=t.terminate;return t.terminate=function(){return t.currentTransmux=null,t.transmuxQueue.length=0,n.call(t)},t.postMessage({action:"init",options:e}),t}({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})},n.resetStats_=function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0},n.dispose=function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&s.a.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},n.setAudio=function(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())},n.abort=function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)},n.abort_=function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,s.a.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},n.checkForAbort_=function(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)},n.error=function(e){return void 0!==e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_},n.endOfStream=function(){this.ended_=!0,this.transmuxer_&&Fa(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},n.buffered_=function(){var e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return vo.createTimeRanges();if("main"===this.loaderType_){var t=e.hasVideo;if(t&&e.hasAudio&&!this.audioDisabled_&&!e.isMuxed)return this.sourceUpdater_.buffered();if(t)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},n.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=va(e),i=this.initSegments_[n];return t&&!i&&e.bytes&&(this.initSegments_[n]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),i||e},n.segmentKey=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=_a(e),i=this.keyCache_[n];this.cacheEncryptionKeys_&&t&&!i&&e.bytes&&(this.keyCache_[n]=i={resolvedUri:e.resolvedUri,bytes:e.bytes});var r={resolvedUri:(i||e).resolvedUri};return i&&(r.bytes=i.bytes),r},n.couldBeginLoading_=function(){return this.playlist_&&!this.paused()},n.load=function(){if(this.monitorBuffer_(),this.playlist_)return"INIT"===this.state&&this.couldBeginLoading_()?this.init_():void(!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY"))},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.playlist=function(e,t){if(void 0===t&&(t={}),e){var n=this.playlist_,i=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));var r=null;if(n&&(n.id?r=n.id:n.uri&&(r=n.uri)),this.logger_("playlist update ["+r
1+" => "+(e.id||e.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!n||n.uri!==e.uri)return null!==this.mediaIndex&&(e.endList?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");var s=e.mediaSequence-n.mediaSequence;if(this.logger_("live window shift ["+s+"]"),null!==this.mediaIndex)if(this.mediaIndex-=s,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{var o=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!o.parts||!o.parts.length||!o.parts[this.partIndex])){var a=this.mediaIndex;this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=a}}i&&(i.mediaIndex-=s,i.mediaIndex<0?(i.mediaIndex=null,i.partIndex=null):(i.mediaIndex>=0&&(i.segment=e.segments[i.mediaIndex]),i.partIndex>=0&&i.segment.parts&&(i.part=i.segment.parts[i.partIndex]))),this.syncController_.saveExpiredSegmentInfo(n,e)}},n.pause=function(){this.checkBufferTimeout_&&(s.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},n.paused=function(){return null===this.checkBufferTimeout_},n.resetEverything=function(e){this.ended_=!1,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))},n.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},n.resyncLoader=function(){this.transmuxer_&&Fa(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})},n.remove=function(e,t,n,i){if(void 0===n&&(n=function(){}),void 0===i&&(i=!1),t===1/0&&(t=this.duration_()),t<=e)this.logger_("skipping remove because end ${end} is <= start ${start}");else if(this.sourceUpdater_&&this.getMediaInfo_()){var r=1,s=function(){0==--r&&n()};for(var o in!i&&this.audioDisabled_||(r++,this.sourceUpdater_.removeAudio(e,t,s)),(i||"main"===this.loaderType_)&&(this.gopBuffer_=function(e,t,n,i){for(var r=Math.ceil((t-i)*vt.ONE_SECOND_IN_TS),s=Math.ceil((n-i)*vt.ONE_SECOND_IN_TS),o=e.slice(),a=e.length;a--&&!(e[a].pts<=s););if(-1===a)return o;for(var c=a+1;c--&&!(e[c].pts<=r););return c=Math.max(c,0),o.splice(c,a-c+1),o}(this.gopBuffer_,e,t,this.timeMapping_),r++,this.sourceUpdater_.removeVideo(e,t,s)),this.inbandTextTracks_)oc(e,t,this.inbandTextTracks_[o]);oc(e,t,this.segmentMetadataTrack_),s()}else this.logger_("skipping remove because no source updater or starting media info")},n.monitorBuffer_=function(){this.checkBufferTimeout_&&s.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=s.a.setTimeout(this.monitorBufferTick_.bind(this),1)},n.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&s.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=s.a.setTimeout(this.monitorBufferTick_.bind(this),500)},n.fillBuffer_=function(){if(!this.sourceUpdater_.updating()){var e=this.chooseNextRequest_();e&&("number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e))}},n.isEndOfStream_=function(e,t,n){if(void 0===e&&(e=this.mediaIndex),void 0===t&&(t=this.playlist_),void 0===n&&(n=this.partIndex),!t||!this.mediaSource_)return!1;var i="number"==typeof e&&t.segments[e];return t.endList&&"open"===this.mediaSource_.readyState&&e+1===t.segments.length&&(!i||!i.parts||n+1===i.parts.length)},n.chooseNextRequest_=function(){var e=this.buffered_(),t=Eo(e)||0,n=Mo(e,this.currentTime_()),i=!this.hasPlayed_()&&n>=1,r=n>=this.goalBufferLength_(),s=this.playlist_.segments;if(!s.length||i||r)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());var o={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(o.isSyncRequest)o.mediaIndex=function(e,t,n){t=t||[];for(var i=[],r=0,s=0;s<t.length;s++){var o=t[s];if(e===o.timeline&&(i.push(s),(r+=o.duration)>n))return s}return 0===i.length?0:i[i.length-1]}(this.currentTimeline_,s,t);else if(null!==this.mediaIndex){var a=s[this.mediaIndex],c="number"==typeof this.partIndex?this.partIndex:-1;o.startOfSegment=a.end?a.end:t,a.parts&&a.parts[c+1]?(o.mediaIndex=this.mediaIndex,o.partIndex=c+1):o.mediaIndex=this.mediaIndex+1}else{var l=Qo.getMediaInfoForTime({experimentalExactManifestTimings:this.experimentalExactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?t:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time}),u=l.segmentIndex,d=l.startTime,h=l.partIndex;o.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd "+t:"currentTime "+this.currentTime_(),o.mediaIndex=u,o.startOfSegment=d,o.partIndex=h}var p=s[o.mediaIndex],f=p&&"number"==typeof o.partIndex&&p.parts&&p.parts[o.partIndex];if(!p||"number"==typeof o.partIndex&&!f)return null;if("number"!=typeof o.partIndex&&p.parts&&(o.partIndex=0,f=p.parts[0]),!n&&f&&!f.independent)if(0===o.partIndex){var g=s[o.mediaIndex-1],m=g.parts&&g.parts.length&&g.parts[g.parts.length-1];m&&m.independent&&(o.mediaIndex-=1,o.partIndex=g.parts.length-1,o.independent="previous segment")}else p.parts[o.partIndex-1].independent&&(o.partIndex-=1,o.independent="previous part");return o.mediaIndex>=s.length-1&&this.mediaSource_&&"ended"===this.mediaSource_.readyState&&!this.seeking_()?null:this.generateSegmentInfo_(o)},n.generateSegmentInfo_=function(e){var t=e.independent,n=e.playlist,i=e.mediaIndex,r=e.startOfSegment,s=e.isSyncRequest,o=e.partIndex,a=e.forceTimestampOffset,c=e.getMediaInfoForTime,l=n.segments[i],u="number"==typeof o&&l.parts[o],d={requestId:"segment-loader-"+Math.random(),uri:u&&u.resolvedUri||l.resolvedUri,mediaIndex:i,partIndex:u?o:null,isSyncRequest:s,startOfSegment:r,playlist:n,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:l.timeline,duration:u&&u.duration||l.duration,segment:l,part:u,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:c,independent:t},h=void 0!==a?a:this.isPendingTimestampOffset_;d.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:l.timeline,currentTimeline:this.currentTimeline_,startOfSegment:r,buffered:this.buffered_(),overrideCheck:h});
1var p=Eo(this.sourceUpdater_.audioBuffered());return"number"==typeof p&&(d.audioAppendStart=p-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(d.gopsToAlignWith=function(e,t,n){if(null==t||!e.length)return[];var i,r=Math.ceil((t-n+3)*vt.ONE_SECOND_IN_TS);for(i=0;i<e.length&&!(e[i].pts>r);i++);return e.slice(i)}(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),d},n.timestampOffsetForSegment_=function(e){return n=(t=e).segmentTimeline,i=t.currentTimeline,r=t.startOfSegment,s=t.buffered,t.overrideCheck||n!==i?n<i?r:s.length?s.end(s.length-1):r:null;var t,n,i,r,s},n.earlyAbortWhenNeeded_=function(e){if(!this.vhs_.tech_.paused()&&this.xhrOptions_.timeout&&this.playlist_.attributes.BANDWIDTH&&!(Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)){var t=this.currentTime_(),n=e.bandwidth,i=this.pendingSegment_.duration,r=Qo.estimateSegmentRequestTime(i,n,this.playlist_,e.bytesReceived),s=function(e,t,n){return void 0===n&&(n=1),((e.length?e.end(e.length-1):0)-t)/n}(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(!(r<=s)){var o=function(e){var t=e.currentTime,n=e.bandwidth,i=e.duration,r=e.segmentDuration,s=e.timeUntilRebuffer,o=e.currentTimeline,a=e.syncController,c=e.master.playlists.filter(function(e){return!Qo.isIncompatible(e)}),l=c.filter(Qo.isEnabled);l.length||(l=c.filter(function(e){return!Qo.isDisabled(e)}));var u=l.filter(Qo.hasAttribute.bind(null,"BANDWIDTH")).map(function(e){var c=a.getSyncPoint(e,i,o,t)?1:2;return{playlist:e,rebufferingImpact:Qo.estimateSegmentRequestTime(r,n,e)*c-s}}),d=u.filter(function(e){return e.rebufferingImpact<=0});return nc(d,function(e,t){return ic(t.playlist,e.playlist)}),d.length?d[0]:(nc(u,function(e,t){return e.rebufferingImpact-t.rebufferingImpact}),u[0]||null)}({master:this.vhs_.playlists.master,currentTime:t,bandwidth:n,duration:this.duration_(),segmentDuration:i,timeUntilRebuffer:s,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(o){var a=.5;s<=.03333333333333333&&(a=1),!o.playlist||o.playlist.uri===this.playlist_.uri||r-s-o.rebufferingImpact<a||(this.bandwidth=o.playlist.attributes.BANDWIDTH*Ea.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}}}},n.handleAbort_=function(e){this.logger_("Aborting "+cc(e)),this.mediaRequestsAborted+=1},n.handleProgress_=function(e,t){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.trigger("progress")},n.handleTrackInfo_=function(e,t){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.checkForIllegalMediaSwitch(t)||(function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;var n=Object.keys(e).sort(),i=Object.keys(t).sort();if(n.length!==i.length)return!1;for(var r=0;r<n.length;r++){var s=n[r];if(s!==i[r])return!1;if(e[s]!==t[s])return!1}return!0}(this.currentMediaInfo_,t=t||{})||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_("trackinfo update",t),this.trigger("trackinfo")),this.checkForAbort_(e.requestId)||(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()&&this.processCallQueue_()))},n.handleTimingInfo_=function(e,t,n,i){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){var r=this.pendingSegment_,s=lc(t);r[s]=r[s]||{},r[s][n]=i,this.logger_("timinginfo: "+t+" - "+n+" - "+i),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}},n.handleCaptions_=function(e,t){var n=this;if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(0!==t.length)if(this.pendingSegment_.hasAppendedData_){var i=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),r={};t.forEach(function(e){r[e.stream]=r[e.stream]||{startTime:1/0,captions:[],endTime:0};var t=r[e.stream];t.startTime=Math.min(t.startTime,e.startTime+i),t.endTime=Math.max(t.endTime,e.endTime+i),t.captions.push(e)}),Object.keys(r).forEach(function(e){var t=r[e],o=t.startTime,a=t.endTime,c=t.captions,l=n.inbandTextTracks_;n.logger_("adding cues from "+o+" -> "+a+" for "+e),function(e,t,n){if(!e[n]){t.trigger({type:"usage",name:"vhs-608"}),t.trigger({type:"usage",name:"hls-608"});var i=n;/^cc708_/.test(n)&&(i="SERVICE"+n.split("_")[1]);var r=t.textTracks().getTrackById(i);if(r)e[n]=r;else{var s=n,o=n,a=!1,c=(t.options_.vhs&&t.options_.vhs.captionServices||{})[i];c&&(s=c.label,o=c.language,a=c.default),e[n]=t.addRemoteTextTrack({kind:"captions",id:i,default:a,label:s,language:o},!1).track}}}(l,n.vhs_.tech_,e),oc(o,a,l[e]),function(e){var t=e.inbandTextTracks,n=e.captionArray,i=e.timestampOffset;if(n){var r=s.a.WebKitDataCue||s.a.VTTCue;
1n.forEach(function(e){t[e.stream].addCue(new r(e.startTime+i,e.endTime+i,e.text))})}}({captionArray:c,inbandTextTracks:l,timestampOffset:i})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}else this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t));else this.logger_("SegmentLoader received no captions from a caption event")},n.handleId3_=function(e,t,n){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(this.pendingSegment_.hasAppendedData_){var i=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();!function(e,t,n){e.metadataTrack_||(e.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,e.metadataTrack_.inBandMetadataTrackDispatchType=t)}(this.inbandTextTracks_,n,this.vhs_.tech_),function(e){var t=e.metadataArray,n=e.timestampOffset,i=e.videoDuration;if(t){var r=s.a.WebKitDataCue||s.a.VTTCue,o=e.inbandTextTracks.metadataTrack_;if(o&&(t.forEach(function(e){var t=e.cueTime+n;!("number"!=typeof t||s.a.isNaN(t)||t<0)&&t<1/0&&e.frames.forEach(function(e){var n=new r(t,t,e.value||e.url||e.data||"");n.frame=e,n.value=e,function(e){Object.defineProperties(e.frame,{id:{get:function(){return vo.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get:function(){return vo.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get:function(){return vo.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})}(n),o.addCue(n)})}),o.cues&&o.cues.length)){for(var a=o.cues,c=[],l=0;l<a.length;l++)a[l]&&c.push(a[l]);var u=c.reduce(function(e,t){var n=e[t.startTime]||[];return n.push(t),e[t.startTime]=n,e},{}),d=Object.keys(u).sort(function(e,t){return Number(e)-Number(t)});d.forEach(function(e,t){var n=u[e],r=Number(d[t+1])||i;n.forEach(function(e){e.endTime=r})})}}}({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:i,videoDuration:this.duration_()})}else this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,n))},n.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach(function(e){return e()}),this.metadataQueue_.caption.forEach(function(e){return e()}),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},n.processCallQueue_=function(){var e=this.callQueue_;this.callQueue_=[],e.forEach(function(e){return e()})},n.processLoadQueue_=function(){var e=this.loadQueue_;this.loadQueue_=[],e.forEach(function(e){return e()})},n.hasEnoughInfoToLoad_=function(){if("audio"!==this.loaderType_)return!0;var e=this.pendingSegment_;return!(!e||this.getCurrentMediaInfo_()&&uc({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.getCurrentMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),e&&e.trackInfo||this.currentMediaInfo_},n.getMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),this.getCurrentMediaInfo_(e)||this.startingMediaInfo_},n.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var e=this.pendingSegment_,t=this.getCurrentMediaInfo_();return!(!e||!t||t.hasVideo&&!e.videoTimingInfo||t.hasAudio&&!this.audioDisabled_&&!t.isMuxed&&!e.audioTimingInfo||uc({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.handleData_=function(e,t){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(!this.callQueue_.length&&this.hasEnoughInfoToAppend_()){var n=this.pendingSegment_;if(this.setTimeMapping_(n.timeline),this.updateMediaSecondsLoaded_(n.part||n.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),n.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),n.isFmp4=e.isFmp4,n.timingInfo=n.timingInfo||{},n.isFmp4)this.trigger("fmp4"),n.timingInfo.start=n[lc(t.type)].start;else{var i,r=this.getCurrentMediaInfo_(),s="main"===this.loaderType_&&r&&r.hasVideo;s&&(i=n.videoTimingInfo.start),n.timingInfo.start=this.trueSegmentStart_({currentStart:n.timingInfo.start,playlist:n.playlist,mediaIndex:n.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:s,firstVideoFrameTimeForData:i,videoTimingInfo:n.videoTimingInfo,audioTimingInfo:n.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(n,t.type),this.updateSourceBufferTimestampOffset_(n),n.isSyncRequest){this.updateTimingInfoEnd_(n),this.syncController_.saveSegmentTimingInfo({segmentInfo:n,shouldSaveTimelineMapping:"main"===this.loaderType_});var o=this.chooseNextRequest_();if(o.mediaIndex!==n.mediaIndex||o.partIndex!==n.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}n.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(n,t)}}else this.callQueue_.push(this.handleData_.bind(this,e,t))},n.updateAppendInitSegmentStatus=function(e,t){"main"!==this.loaderType_||"number"!=typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)},n.getInitSegmentAndUpdateState_=function(e){var t=e.type,n=e.initSegment,i=e.map,r=e.playlist;if(i){var s=va(i);if(this.activeInitSegmentId_===s)return null;n=this.initSegmentForMap(i,!0).bytes,this.activeInitSegmentId_=s}return n&&this.appendInitSegment_[t]?(this.playlistOfLastInitSegment_[t]=r,this.appendInitSegment_[t]=!1,this.activeInitSegmentId_=null,n):null},n.handleQuotaExceededError_=function(e,t){var n=this,i=e.segmentInfo,r=e.type,o=e.bytes,a=this.sourceUpdater_.audio
1Buffered(),c=this.sourceUpdater_.videoBuffered();a.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+Ao(a).join(", ")),c.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+Ao(c).join(", "));var l=a.length?a.start(0):0,u=a.length?a.end(a.length-1):0,d=c.length?c.start(0):0,h=c.length?c.end(c.length-1):0;if(u-l<=1&&h-d<=1)return this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: "+o.byteLength+", audio buffer: "+Ao(a).join(", ")+", video buffer: "+Ao(c).join(", ")+", "),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),void this.trigger("error");this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:i,type:r,bytes:o}));var p=this.currentTime_()-1;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+p),this.remove(0,p,function(){n.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),n.waitingOnRemove_=!1,n.quotaExceededErrorRetryTimeout_=s.a.setTimeout(function(){n.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),n.quotaExceededErrorRetryTimeout_=null,n.processCallQueue_()},1e3)},!0)},n.handleAppendError_=function(e,t){var n=e.segmentInfo,i=e.type,r=e.bytes;t&&(22!==t.code?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",t),this.error(i+" append of "+r.length+"b failed for segment #"+n.mediaIndex+" in playlist "+n.playlist.id),this.trigger("appenderror")):this.handleQuotaExceededError_({segmentInfo:n,type:i,bytes:r}))},n.appendToSourceBuffer_=function(e){var t,n,i,r=e.segmentInfo,s=e.type,o=e.initSegment,a=e.data,c=e.bytes;if(!c){var l=[a],u=a.byteLength;o&&(l.unshift(o),u+=o.byteLength),i=0,(t={bytes:u,segments:l}).bytes&&(n=new Uint8Array(t.bytes),t.segments.forEach(function(e){n.set(e,i),i+=e.byteLength})),c=n}this.sourceUpdater_.appendBuffer({segmentInfo:r,type:s,bytes:c},this.handleAppendError_.bind(this,{segmentInfo:r,type:s,bytes:c}))},n.handleSegmentTimingInfo_=function(e,t,n){if(this.pendingSegment_&&t===this.pendingSegment_.requestId){var i=this.pendingSegment_.segment,r=e+"TimingInfo";i[r]||(i[r]={}),i[r].transmuxerPrependedSeconds=n.prependedContentDuration||0,i[r].transmuxedPresentationStart=n.start.presentation,i[r].transmuxedDecodeStart=n.start.decode,i[r].transmuxedPresentationEnd=n.end.presentation,i[r].transmuxedDecodeEnd=n.end.decode,i[r].baseMediaDecodeTime=n.baseMediaDecodeTime}},n.appendData_=function(e,t){var n=t.type,i=t.data;if(i&&i.byteLength&&("audio"!==n||!this.audioDisabled_)){var r=this.getInitSegmentAndUpdateState_({type:n,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:n,initSegment:r,data:i})}},n.loadSegment_=function(e){var t=this;this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"==typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.hasEnoughInfoToLoad_()?this.updateTransmuxerAndRequestSegment_(e):this.loadQueue_.push(function(){var n=l()({},e,{forceTimestampOffset:!0});l()(e,t.generateSegmentInfo_(n)),t.isPendingTimestampOffset_=!1,t.updateTransmuxerAndRequestSegment_(e)})},n.updateTransmuxerAndRequestSegment_=function(e){var t=this;this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));var n=this.createSimplifiedSegmentObj_(e),i=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)||null!==this.mediaIndex&&e.timeline!==this.currentTimeline_&&e.timeline>0;this.logger_("Requesting "+cc(e)),n.map&&!n.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=function(e){var t=e.xhr,n=e.xhrOptions,i=e.segment,r=e.abortFn,s=e.progressFn,o=e.trackInfoFn,a=e.timingInfoFn,c=e.videoSegmentTimingInfoFn,l=e.audioSegmentTimingInfoFn,u=e.id3Fn,d=e.captionsFn,h=e.isEndOfTimeline,p=e.endedTimelineFn,f=e.dataFn,g=[],m=function(e){var t=e.activeXhrs,n=e.decryptionWorker,i=e.trackInfoFn,r=e.timingInfoFn,s=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,a=e.id3Fn,c=e.captionsFn,l=e.isEndOfTimeline,u=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog,f=0,g=!1;return function(e,m){if(!g){if(e)return g=!0,qa(t),h(e,m);
1if((f+=1)===t.length){var b=function(){if(m.encryptedBytes)return function(e){var t=e.segment,n=e.trackInfoFn,i=e.timingInfoFn,r=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,a=e.captionsFn,c=e.isEndOfTimeline,l=e.endedTimelineFn,u=e.dataFn,d=e.doneFn,h=e.onTransmuxerLog;Ya({id:t.requestId,key:t.key,encryptedBytes:t.encryptedBytes,decryptionWorker:e.decryptionWorker},function(e){t.bytes=e,Ga({segment:t,bytes:t.bytes,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:a,isEndOfTimeline:c,endedTimelineFn:l,dataFn:u,doneFn:d,onTransmuxerLog:h})})}({decryptionWorker:n,segment:m,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:o,id3Fn:a,captionsFn:c,isEndOfTimeline:l,endedTimelineFn:u,dataFn:d,doneFn:h,onTransmuxerLog:p});Ga({segment:m,bytes:m.bytes,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:o,id3Fn:a,captionsFn:c,isEndOfTimeline:l,endedTimelineFn:u,dataFn:d,doneFn:h,onTransmuxerLog:p})};if(m.endOfAllRequests=Date.now(),m.map&&m.map.encryptedBytes&&!m.map.bytes)return Ya({decryptionWorker:n,id:m.requestId+"-init",encryptedBytes:m.map.encryptedBytes,key:m.map.key},function(e){m.map.bytes=e,Wa(m,function(e){if(e)return qa(t),h(e,m);b()})});b()}}}}({activeXhrs:g,decryptionWorker:e.decryptionWorker,trackInfoFn:o,timingInfoFn:a,videoSegmentTimingInfoFn:c,audioSegmentTimingInfoFn:l,id3Fn:u,captionsFn:d,isEndOfTimeline:h,endedTimelineFn:p,dataFn:f,doneFn:e.doneFn,onTransmuxerLog:e.onTransmuxerLog});if(i.key&&!i.key.bytes){var b=[i.key];i.map&&!i.map.bytes&&i.map.key&&i.map.key.resolvedUri===i.key.resolvedUri&&b.push(i.map.
1key);var y=t(vo.mergeOptions(n,{uri:i.key.resolvedUri,responseType:"arraybuffer"}),Ha(i,b,m));g.push(y)}if(i.map&&!i.map.bytes){if(i.map.key&&(!i.key||i.key.resolvedUri!==i.map.key.resolvedUri)){var v=t(vo.mergeOptions(n,{uri:i.map.key.resolvedUri,responseType:"arraybuffer"}),Ha(i,[i.map.key],m));g.push(v)}var _=vo.mergeOptions(n,{uri:i.map.resolvedUri,responseType:"arraybuffer",headers:fa(i.map)}),w=function(e){var t=e.segment,n=e.finishProcessingFn;return function(e,i){var r=Ua(e,i);if(r)return n(r,t);var s=new Uint8Array(i.response);if(t.map.key)return t.map.encryptedBytes=s,n(null,t);t.map.bytes=s,Wa(t,function(e){if(e)return e.xhr=i,e.status=i.status,n(e,t);n(null,t)})}}({segment:i,finishProcessingFn:m}),k=t(_,w);g.push(k)}var C=vo.mergeOptions(n,{uri:i.part&&i.part.resolvedUri||i.resolvedUri,responseType:"arraybuffer",headers:fa(i)}),S=t(C,function(e){var t=e.segment,n=e.finishProcessingFn,i=e.responseType;return function(e,r){var s=Ua(e,r);if(s)return n(s,t);var o="arraybuffer"!==i&&r.responseText?function(e){for(var t=new Uint8Array(new ArrayBuffer(e.length)),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t.buffer}(r.responseText.substring(t.lastReachedChar||0)):r.response;return t.stats=function(e){return{bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}}(r),t.key?t.encryptedBytes=new Uint8Array(o):t.bytes=new Uint8Array(o),n(null,t)}}({segment:i,finishProcessingFn:m,responseType:C.responseType}));S.addEventListener("progress",function(e){var t=e.segment,n=e.progressFn;return function(e){if(!e.target.aborted)return t.stats=vo.mergeOptions(t.stats,(r=(i=e).target,(s={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-r.requestTime||0}).bytesReceived=i.loaded,s.bandwidth=Math.floor(s.bytesReceived/s.roundTripTime*8*1e3),s)),!t.stats.firstBytesReceivedAt&&t.stats.bytesReceived&&(t.stats.firstBytesReceivedAt=Date.now()),n(e,t);var i,r,s}}({segment:i,progressFn:s,trackInfoFn:o,timingInfoFn:a,videoSegmentTimingInfoFn:c,audioSegmentTimingInfoFn:l,id3Fn:u,captionsFn:d,isEndOfTimeline:h,endedTimelineFn:p,dataFn:f})),g.push(S);var T={};return g.forEach(function(e){e.addEventListener("loadend",function(e){var t=e.loadendState,n=e.abortFn;return function(e){e.target.aborted&&n&&!t.calledAbortFn&&(n(),t.calledAbortFn=!0)}}({loadendState:T,abortFn:r}))}),function(){return qa(g)}}({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:n,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:i,endedTimelineFn:function(){t.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:function(n){var i=n.message,r=n.level,s=n.stream;t.logger_(cc(e)+" logged from transmuxer stream "+s+" as a "+r+": "+i)}})},n.trimBackBuffer_=function(e){var t,n,i,r,s=(t=this.seekable_(),n=this.currentTime_(),i=this.playlist_.targetDuration||10,r=n-Ea.BACK_BUFFER_LENGTH,t.length&&(r=Math.max(r,t.start(0))),Math.min(n-i,r));s>0&&this.remove(0,s)},n.createSimplifiedSegmentObj_=function(e){var t=e.segment,n=e.part,i={resolvedUri:n?n.resolvedUri:t.resolvedUri,byterange:n?n.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part},r=e.playlist.segments[e.mediaIndex-1];if(r&&r.timeline===t.timeline&&(r.videoTimingInfo?i.baseStartTime=r.videoTimingInfo.transmuxedDecodeEnd:r.audioTimingInfo&&(i.baseStartTime=r.audioTimingInfo.transmuxedDecodeEnd)),t.key){var s=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);i.key=this.segmentKey(t.key),i.key.iv=s}return t.map&&(i.map=this.initSegmentForMap(t.map)),i},n.saveTransferStats_=function(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)},n.saveBandwidthRelatedStats_=function(e,t){this.pendingSegment_.byteLength=t.bytesReceived,e<.016666666666666666?this.logger_("Ignoring segment's bandwidth because its duration of "+e+" is less than the min to record 0.016666666666666666"):(this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime)},n.handleTimeout_=function(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")},n.segmentRequestFinished_=function(e,t,n){if(this.callQueue_.length)this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,n));else if(this.saveTransferStats_(t.stats),this.pendingSegment_&&t.requestId===this.pendingSegment_.requestId){if
1(e){if(this.pendingSegment_=null,this.state="READY",-102===e.code)return;return this.pause(),-101===e.code?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error"))}var i=this.pendingSegment_;this.saveBandwidthRelatedStats_(i.duration,t.stats),i.endOfAllRequests=t.endOfAllRequests,n.gopInfo&&(this.gopBuffer_=function(e,t,n){if(!t.length)return e;if(n)return t.slice();for(var i=t[0].pts,r=0;r<e.length&&!(e[r].pts>=i);r++);return e.slice(0,r).concat(t)}(this.gopBuffer_,n.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(i)}},n.setTimeMapping_=function(e){var t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)},n.updateMediaSecondsLoaded_=function(e){this.mediaSecondsLoaded+="number"==typeof e.start&&"number"==typeof e.end?e.end-e.start:e.duration},n.shouldUpdateTransmuxerTimestampOffset_=function(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())},n.trueSegmentStart_=function(e){var t=e.currentStart,n=e.mediaIndex,i=e.firstVideoFrameTimeForData;if(void 0!==t)return t;if(!e.useVideoTimingInfo)return e.audioTimingInfo.start;var r=e.playlist.segments[n-1];return 0!==n&&r&&void 0!==r.start&&r.end===i+e.currentVideoTimestampOffset?e.videoTimingInfo.start:i},n.waitForAppendsToComplete_=function(e){var t=this.getCurrentMediaInfo_(e);if(!t)return this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),void this.trigger("error");var n="main"===this.loaderType_&&t.hasVideo,i=!this.audioDisabled_&&t.hasAudio&&!t.isMuxed;if(e.waitingOnAppends=0,!e.hasAppendedData_)return e.timingInfo||"number"!=typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),void this.checkAppendsDone_(e);n&&e.waitingOnAppends++,i&&e.waitingOnAppends++,n&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),i&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))},n.checkAppendsDone_=function(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())},n.checkForIllegalMediaSwitch=function(e){var t=function(e,t,n){return"main"===e&&t&&n?n.hasAudio||n.hasVideo?t.hasVideo&&!n.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.hasVideo&&n.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null}(this.loaderType_,this.getCurrentMediaInfo_(),e);return!!t&&(this.error({message:t,blacklistDuration:1/0}),this.trigger("error"),!0)},n.updateSourceBufferTimestampOffset_=function(e){if(null!==e.timestampOffset&&"number"==typeof e.timingInfo.start&&!e.changedTimestampOffset&&"main"===this.loaderType_){var t=!1;e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset")}},n.getSegmentStartTimeForTimestampOffsetCalculation_=function(e){var t=e.videoTimingInfo,n=e.audioTimingInfo,i=e.timingInfo;return this.useDtsForTimestampOffset_?t&&"number"==typeof t.transmuxedDecodeStart?t.transmuxedDecodeStart:n&&"number"==typeof n.transmuxedDecodeStart?n.transmuxedDecodeStart:i.start:i.start},n.updateTimingInfoEnd_=function(e){e.timingInfo=e.timingInfo||{};var t=this.getMediaInfo_(),n="main"===this.loaderType_&&t&&t.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;
1n&&(e.timingInfo.end="number"==typeof n.end?n.end:n.start+e.duration)},n.handleAppendsDone_=function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var e=this.pendingSegment_;this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});var t=function(e,t){if("hls"!==t)return null;var n,i,r=(n={audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo},i=0,["video","audio"].forEach(function(e){var t=n[e+"TimingInfo"];if(t){var r,o=t.start,a=t.end;"bigint"==typeof o||"bigint"==typeof a?r=s.a.BigInt(a)-s.a.BigInt(o):"number"==typeof o&&"number"==typeof a&&(r=a-o),void 0!==r&&r>i&&(i=r)}}),"bigint"==typeof i&&i<Number.MAX_SAFE_INTEGER&&(i=Number(i)),i);if(!r)return null;var o=e.playlist.targetDuration,a=dc({segmentDuration:r,maxDuration:2*o}),c=dc({segmentDuration:r,maxDuration:o});return a||c?{severity:a?"warn":"info",message:"Segment with index "+e.mediaIndex+" from playlist "+e.playlist.id+" has a duration of "+r+" when the reported duration is "+e.duration+" and the target duration is "+o+". For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1"}:null}(e,this.sourceType_);if(t&&("warn"===t.severity?vo.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",!e.isSyncRequest||(this.trigger("syncinfoupdate"),e.hasAppendedData_)){this.logger_("Appended "+cc(e)),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");var n=e.segment,i=e.part,r=n.end&&this.currentTime_()-n.end>3*e.playlist.targetDuration,o=i&&i.end&&this.currentTime_()-i.end>3*e.playlist.partTargetDuration;if(r||o)return this.logger_("bad "+(r?"segment":"part")+" "+cc(e)),void this.resetEverything();null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}else this.logger_("Throwing away un-appended sync request "+cc(e))},n.recordThroughput_=function(e){if(e.duration<.016666666666666666)this.logger_("Ignoring segment's throughput because its duration of "+e.duration+" is less than the min to record 0.016666666666666666");else{var t=this.throughput.rate,n=Date.now()-e.endOfAllRequests+1,i=Math.floor(e.byteLength/n*8*1e3);this.throughput.rate+=(i-t)/++this.throughput.count}},n.addSegmentMetadataCue_=function(e){if(this.segmentMetadataTrack_){var t=e.segment,n=t.start,i=t.end;if(ac(n)&&ac(i)){oc(n,i,this.segmentMetadataTrack_);var r={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:n,end:i},o=new(s.a.WebKitDataCue||s.a.VTTCue)(n,i,JSON.stringify(r));o.value=r,this.segmentMetadataTrack_.addCue(o)}}},t}(vo.EventTarget);function pc(){}var fc,gc=function(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toUpperCase()})},mc=["video","audio"],bc=function(e,t){var n=t[e+"Buffer"];return n&&n.updating||t.queuePending[e]},yc=function e(t,n){if(0!==n.queue.length){var i=0,r=n.queue[i];if("mediaSource"!==r.type){if("mediaSource"!==t&&n.ready()&&"closed"!==n.mediaSource.readyState&&!bc(t,n)){if(r.type!==t){if(i=function(e,t){for(var n=0;n<t.length;n++){var i=t[n];if("mediaSource"===i.type)return null;if(i.type===e)return n}return null}(t,n.queue),null===i)return;r=n.queue[i]}return n.queue.splice(i,1),n.queuePending[t]=r,r.action(t,n),r.doneFn?void 0:(n.queuePending[t]=null,void e(t,n))}}else n.updating()||"closed"===n.mediaSource.readyState||(n.queue.shift(),r.action(n),r.doneFn&&r.doneFn(),e("audio",n),e("video",n))}},vc=function(e,t){var n=t[e+"Buffer"],i=gc(e);n&&(n.removeEventListener("updateend",t["on"+i+"UpdateEnd_"]),n.removeEventListener("error",t["on"+i+"Error_"]),t.codecs[e]=null,t[e+"Buffer"]=null)},_c=function(e,t){return e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t)},wc=function(e,t,n){return function(i,r){var s=r[i+"Buffer"];if(_c(r.mediaSource,s)){r.logger_("Appending segment "+t.mediaIndex+"'s "+e.length+" b
1ytes to "+i+"Buffer");try{s.appendBuffer(e)}catch(o){r.logger_("Error with code "+o.code+" "+(22===o.code?"(QUOTA_EXCEEDED_ERR) ":"")+"when appending segment "+t.mediaIndex+" to "+i+"Buffer"),r.queuePending[i]=null,n(o)}}}},kc=function(e,t){return function(n,i){var r=i[n+"Buffer"];if(_c(i.mediaSource,r)){i.logger_("Removing "+e+" to "+t+" from "+n+"Buffer");try{r.remove(e,t)}catch(s){i.logger_("Remove "+e+" to "+t+" from "+n+"Buffer failed")}}}},Cc=function(e){return function(t,n){var i=n[t+"Buffer"];_c(n.mediaSource,i)&&(n.logger_("Setting "+t+"timestampOffset to "+e),i.timestampOffset=e)}},Sc=function(e){return function(t,n){e()}},Tc=function(e){return function(t){if("open"===t.mediaSource.readyState){t.logger_("Calling mediaSource endOfStream("+(e||"")+")");try{t.mediaSource.endOfStream(e)}catch(n){vo.log.warn("Failed to call media source endOfStream",n)}}}},Pc=function(e,t){return function(n){var i=gc(e),r=Y(t);n.logger_("Adding "+e+"Buffer with codec "+t+" to mediaSource");var s=n.mediaSource.addSourceBuffer(r);s.addEventListener("updateend",n["on"+i+"UpdateEnd_"]),s.addEventListener("error",n["on"+i+"Error_"]),n.codecs[e]=t,n[e+"Buffer"]=s}},Oc=function(e){return function(t){var n=t[e+"Buffer"];if(vc(e,t),_c(t.mediaSource,n)){t.logger_("Removing "+e+"Buffer with codec "+t.codecs[e]+" from mediaSource");try{t.mediaSource.removeSourceBuffer(n)}catch(i){vo.log.warn("Failed to removeSourceBuffer "+e+"Buffer",i)}}}},xc=function(e){return function(t,n){var i=n[t+"Buffer"],r=Y(e);_c(n.mediaSource,i)&&n.codecs[t]!==e&&(n.logger_("changing "+t+"Buffer codec from "+n.codecs[t]+" to "+e),i.changeType(r),n.codecs[t]=e)}},Ac=function(e){var t=e.type,n=e.sourceUpdater;n.queue.push({type:t,action:e.action,doneFn:e.doneFn,name:e.name}),yc(t,n)},Ec=function(e,t){return function(n){if(t.queuePending[e]){var i=t.queuePending[e].doneFn;t.queuePending[e]=null,i&&i(t[e+"Error_"])}yc(e,t)}},Mc=function(e){function t(t){var n;return(n=e.call(this)||this).mediaSource=t,n.sourceopenListener_=function(){return yc("mediaSource",p()(n))},n.mediaSource.addEventListener("sourceopen",n.sourceopenListener_),n.logger_=So("SourceUpdater"),n.audioTimestampOffset_=0,n.videoTimestampOffset_=0,n.queue=[],n.queuePending={audio:null,video:null},n.delayedAudioAppendQueue_=[],n.videoAppendQueued_=!1,n.codecs={},n.onVideoUpdateEnd_=Ec("video",p()(n)),n.onAudioUpdateEnd_=Ec("audio",p()(n)),n.onVideoError_=function(e){n.videoError_=e},n.onAudioError_=function(e){n.audioError_=e},n.createdSourceBuffers_=!1,n.initializedEme_=!1,n.triggeredReady_=!1,n}g()(t,e);var n=t.prototype;return n.initializedEme=function(){this.initializedEme_=!0,this.triggerReady()},n.hasCreatedSourceBuffers=function(){return this.createdSourceBuffers_},n.hasInitializedAnyEme=function(){return this.initializedEme_},n.ready=function(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()},n.createSourceBuffers=function(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())}
1,n.triggerReady=function(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))},n.addSourceBuffer=function(e,t){Ac({type:"mediaSource",sourceUpdater:this,action:Pc(e,t),name:"addSourceBuffer"})},n.abort=function(e){Ac({type:e,sourceUpdater:this,action:function(e,t){if("open"===t.mediaSource.readyState){var n=t[e+"Buffer"];if(_c(t.mediaSource,n)){t.logger_("calling abort on "+e+"Buffer");try{n.abort()}catch(i){vo.log.warn("Failed to abort on "+e+"Buffer",i)}}}},name:"abort"})},n.removeSourceBuffer=function(e){this.canRemoveSourceBuffer()?Ac({type:"mediaSource",sourceUpdater:this,action:Oc(e),name:"removeSourceBuffer"}):vo.log.error("removeSourceBuffer is not supported!")},n.canRemoveSourceBuffer=function(){return!vo.browser.IE_VERSION&&!vo.browser.IS_FIREFOX&&s.a.MediaSource&&s.a.MediaSource.prototype&&"function"==typeof s.a.MediaSource.prototype.removeSourceBuffer},t.canChangeType=function(){return s.a.SourceBuffer&&s.a.SourceBuffer.prototype&&"function"==typeof s.a.SourceBuffer.prototype.changeType},n.canChangeType=function(){return this.constructor.canChangeType()},n.changeType=function(e,t){this.canChangeType()?Ac({type:e,sourceUpdater:this,action:xc(t),name:"changeType"}):vo.log.error("changeType is not supported!")},n.addOrChangeSourceBuffers=function(e){var t=this;if(!e||"object"!=typeof e||0===Object.keys(e).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach(function(n){var i=e[n];if(!t.hasCreatedSourceBuffers())return t.addSourceBuffer(n,i);t.canChangeType()&&t.changeType(n,i)})},n.appendBuffer=function(e,t){var n=this,i=e.segmentInfo,r=e.type,s=e.bytes;if(this.processedAppend_=!0,"audio"===r&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([e,t]),void this.logger_("delayed audio append of "+s.length+" until video append");if(Ac({type:r,sourceUpdater:this,action:wc(s,i||{mediaIndex:-1},t),doneFn:t,name:"appendBuffer"}),"video"===r){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;var o=this.delayedAudioAppendQueue_.slice();this.logger_("queuing delayed audio "+o.length+" appendBuffers"),this.delayedAudioAppendQueue_.length=0,o.forEach(function(e){n.appendBuffer.apply(n,e)})}},n.audioBuffered=function(){return _c(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:vo.createTimeRange()},n.videoBuffered=function(){return _c(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:vo.createTimeRange()},n.buffered=function(){var e=_c(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=_c(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():function(e,t){var n=null,i=null,r=0,s=[],o=[];if(!(e&&e.length&&t&&t.length))return vo.createTimeRange();for(var a=e.length;a--;)s.push({time:e.start(a),type:"start"}),s.push({time:e.end(a),type:"end"});for(a=t.length;a--;)s.push({time:t.start(a),type:"start"}),s.push({time:t.end(a),type:"end"});for(s.sort(function(e,t){return e.time-t.time}),a=0;a<s.length;a++)"start"===s[a].type?2==++r&&(n=s[a].time):"end"===s[a].type&&1==--r&&(i=s[a].time),null!==n&&null!==i&&(o.push([n,i]),n=null,i=null);return vo.createTimeRanges(o)}(this.audioBuffered(),this.videoBuffered())},n.setDuration=function(e,t){var n;void 0===t&&(t=pc),Ac({type:"mediaSource",sourceUpdater:this,action:(n=e,function(e){e.logger_("Setting mediaSource duration to "+n);try{e.mediaSource.duration=n}catch(t){vo.log.warn("Failed to set media source duration",t)}}),name:"duration",doneFn:t})},n.endOfStream=function(e,t){void 0===e&&(e=null),void 0===t&&(t=pc),"string"!=typeof e&&(e=void 0),Ac({type:"mediaSource",sourceUpdater:this,action:Tc(e),name:"endOfStream",doneFn:t})},n.removeAudio=function(e,t,n){void 0===n&&(n=pc),this.audioBuffered().length&&0!==this.audioBuffered().end(0)?Ac({type:"audio",sourceUpdater:this,action:kc(e,t),doneFn:n,name:"remove"}):n()},n.removeVideo=function(e,t,n){void 0===n&&(n=pc),this.videoBuffered().length&&0!==this.videoBuffered().end(0)?Ac({type:"video",sourceUpdater:this,action:kc(e,t),doneFn:n,name:"remove"}):n()},n.updating=function(){return!(!bc("audio",this)&&!bc("video",this))},n.audioTimestampOffset=function(e){return void 0!==e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(Ac({type:"audio",sourceUpdater:this,action:Cc(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_},n.videoTimestampOffset=function(e){return void 0!==e&&this.videoBuffer&&this.videoTimestampOffset!==e&&(Ac({type:"video",sourceUpdater:this,action:Cc(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_},n.audioQueueCallback=function(e){this.audioBuffer&&Ac({type:"audio",sourceUpdater:this,action:Sc(e),name:"callback"})},n.videoQueueCallback=function(e){this.videoBuffer&&Ac({type:"video",sourceUpdater:this,action:Sc(e),name:"callback"})},n.dispose=function(){var e=this;
1this.trigger("dispose"),mc.forEach(function(t){e.abort(t),e.canRemoveSourceBuffer()?e.removeSourceBuffer(t):e[t+"QueueCallback"](function(){return vc(t,e)})}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()},t}(vo.EventTarget),Ic=function(e){return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))},Rc=new Uint8Array("\n\n".split("").map(function(e){return e.charCodeAt(0)})),Lc=function(e){function t(t,n){var i;return void 0===n&&(n={}),(i=e.call(this,t,n)||this).mediaSource_=null,i.subtitlesTrack_=null,i.loaderType_="subtitle",i.featuresNativeTextTracks_=t.featuresNativeTextTracks,i.shouldSaveSegmentTimingInfo_=!1,i}g()(t,e);var n=t.prototype;return n.createTransmuxer_=function(){return null},n.buffered_=function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return vo.createTimeRanges();var e=this.subtitlesTrack_.cues;return vo.createTimeRanges([[e[0].startTime,e[e.length-1].startTime]])},n.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=va(e),i=this.initSegments_[n];if(t&&!i&&e.bytes){var r=new Uint8Array(Rc.byteLength+e.bytes.byteLength);r.set(e.bytes),r.set(Rc,e.bytes.byteLength),this.initSegments_[n]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:r}}return i||e},n.couldBeginLoading_=function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.track=function(e){return void 0===e||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_},n.remove=function(e,t){oc(e,t,this.subtitlesTrack_)},n.fillBuffer_=function(){var e=this,t=this.chooseNextRequest_();if(t){if(null===this.syncController_.timestampOffsetForTimeline(t.timeline))return this.syncController_.one("timestampoffset",function(){e.state="READY",e.paused()||e.monitorBuffer_()}),void(this.state="WAITING_ON_TIMELINE");this.loadSegment_(t)}},n.timestampOffsetForSegment_=function(){return null},n.chooseNextRequest_=function(){return this.skipEmptySegments_(e.prototype.chooseNextRequest_.call(this))},n.skipEmptySegments_=function(e){for(;e&&e.segment.empty;){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e},n.stopForError=function(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")},n.segmentRequestFinished_=function(e,t,n){var i=this;if(this.subtitlesTrack_){if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return-101===e.code&&this.handleTimeout_(),-102===e.code?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);var r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state="APPENDING",this.trigger("appending");var o=r.segment;if(o.map&&(o.map.bytes=t.map.bytes),r.bytes=t.bytes,"function"!=typeof s.a.WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var a,c=function(){i.subtitlesTrack_.tech_.off("vttjsloaded",a),i.stopForError({message:"Error loading vtt.js"})};return a=function(){i.subtitlesTrack_.tech_.off("vttjserror",c),i.segmentRequestFinished_(e,t,n)},this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",a),void this.subtitlesTrack_.tech_.one("vttjserror",c)}o.requested=!0;try{this.parseVTTCues_(r)}catch(l){return void this.stopForError({message:l.message})}if(this.updateTimeMapping_(r,this.syncController_.timelines[r.timeline],this.playlist_),r.timingInfo=r.cues.length?{start:r.cues[0].startTime,end:r.cues[r.cues.length-1].endTime}:{start:r.startOfSegment,end:r.startOfSegment+r.duration},r.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");r.byteLength=r.bytes.byteLength,this.mediaSecondsLoaded+=o.duration,r.cues.forEac
1h(function(e){i.subtitlesTrack_.addCue(i.featuresNativeTextTracks_?new s.a.VTTCue(e.startTime,e.endTime,e.text):e)}),function(e){var t=e.cues;if(t)for(var n=0;n<t.length;n++){for(var i=[],r=0,s=0;s<t.length;s++)t[n].startTime===t[s].startTime&&t[n].endTime===t[s].endTime&&t[n].text===t[s].text&&++r>1&&i.push(t[s]);i.length&&i.forEach(function(t){return e.removeCue(t)})}}(this.subtitlesTrack_),this.handleAppendsDone_()}else this.state="READY"},n.handleData_=function(){},n.updateTimingInfoEnd_=function(){},n.parseVTTCues_=function(e){var t,n=!1;"function"==typeof s.a.TextDecoder?t=new s.a.TextDecoder("utf8"):(t=s.a.WebVTT.StringDecoder(),n=!0);var i=new s.a.WebVTT.Parser(s.a,s.a.vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},i.oncue=e.cues.push.bind(e.cues),i.ontimestampmap=function(t){e.timestampmap=t},i.onparsingerror=function(e){vo.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){var r=e.segment.map.bytes;n&&(r=Ic(r)),i.parse(r)}var o=e.bytes;n&&(o=Ic(o)),i.parse(o),i.flush()},n.updateTimeMapping_=function(e,t,n){var i=e.segment;if(t)if(e.cues.length){var r=e.timestampmap,s=r.MPEGTS/vt.ONE_SECOND_IN_TS-r.LOCAL+t.mapping;e.cues.forEach(function(e){e.startTime+=s,e.endTime+=s}),n.syncInfo||(n.syncInfo={mediaSequence:n.mediaSequence+e.mediaIndex,time:Math.min(e.cues[0].startTime,e.cues[e.cues.length-1].startTime-i.duration)})}else i.empty=!0},t}(hc),Dc=function(e,t){for(var n=e.cues,i=0;i<n.length;i++){var r=n[i];if(t>=r.adStartTime&&t<=r.adEndTime)return r}return null},jc=[{name:"VOD",run:function(e,t,n,i,r){return n!==1/0?{time:0,segmentIndex:0,partIndex:null}:null}},{name:"ProgramDateTime",run:function(e,t,n,i,r){if(!Object.keys(e.timelineToDatetimeMappings).length)return null;var s=null,o=null,a=Lo(t);r=r||0;for(var c=0;c<a.length;c++){var l=a[t.endList||0===r?c:a.length-(c+1)],u=l.segment,d=e.timelineToDatetimeMappings[u.timeline];if(d&&u.dateTimeObject){var h=u.dateTimeObject.getTime()/1e3+d;if(u.parts&&"number"==typeof l.partIndex)for(var p=0;p<l.partIndex;p++)h+=u.parts[p].duration;var f=Math.abs(r-h);if(null!==o&&(0===f||o<f))break;o=f,s={time:h,segmentIndex:l.segmentIndex,partIndex:l.partIndex}}}return s}},{name:"Segment",run:function(e,t,n,i,r){var s=null,o=null;r=r||0;for(var a=Lo(t),c=0;c<a.length;c++){var l=a[t.endList||0===r?c:a.length-(c+1)],u=l.segment,d=l.part&&l.part.start||u&&u.start;if(u.timeline===i&&void 0!==d){var h=Math.abs(r-d);if(null!==o&&o<h)break;(!s||null===o||o>=h)&&(o=h,s={time:d,segmentIndex:l.segmentIndex,partIndex:l.partIndex})}}return s}},{name:"Discontinuity",run:function(e,t,n,i,r){var s=null;if(r=r||0,t.discontinuityStarts&&t.discontinuityStarts.length)for(var o=null,a=0;a<t.discontinuityStarts.length;a++){var c=t.discontinuityStarts[a],l=e.discontinuities[t.discontinuitySequence+a+1];if(l){var u=Math.abs(r-l.time);if(null!==o&&o<u)break;(!s||null===o||o>=u)&&(o=u,s={time:l.time,segmentIndex:c,partIndex:null})}}return s}},{name:"Playlist",run:function(e,t,n,i,r){return t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}:null}}],Nc=function(e){function t(t){var n;return(n=e.call(this)||this).timelines=[],n.discontinuities=[],n.timelineToDatetimeMappings={},n.logger_=So("SyncController"),n}g()(t,e);var n=t.prototype;return n.getSyncPoint=function(e,t,n,i){var r=this.runStrategies_(e,t,n,i);return r.length?this.selectSyncPoint_(r,{key:"time",value:i}):null},n.getExpiredTime=function(e,t){if(!e||!e.segments)return null;var n=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!n.length)return null;var i=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return i.segmentIndex>0&&(i.time*=-1),Math.abs(i.time+Fo({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:i.segmentIndex,endIndex:0}))},n.runStrategies_=function(e,t,n,i){for(var r=[],s=0;s<jc.length;s++){var o=jc[s],a=o.run(this,e,t,n,i);a&&(a.strategy=o.name,r.push({strategy:o.name,syncPoint:a}))}return r},n.selectSyncPoint_=function(e,t){for(var n=e[0].syncPoint,i=Math.abs(e[0].syncPoint[t.key]-t.value),r=e[0].strategy,s=1;s<e.length;s++){var o=Math.abs(e[s].syncPoint[t.key]-t.value);o<i&&(i=o,n=e[s].syncPoint,r=e[s].strategy)}return this.logger_("syncPoint for ["+t.key+": "+t.value+"] chosen with strategy ["+r+"]: [time:"+n.time+", segmentIndex:"+n.segmentIndex+("number"==typeof n.partIndex?",partIndex:"+n.partIndex:"")+"]"),n},n.saveExpiredSegmentInfo=function(e,t){var n=t.mediaSequence-e.mediaSequence;if(n>86400)vo.log.warn("Not saving expired segment info. Media sequence gap "+n+" is too large.");else for(var i=n-1;i>=0;i--){var r=e.segments[i];if(r&&void 0!==r.start){t.syncInfo={mediaSequence:e.mediaSequence+i,time:r.start}
1,this.logger_("playlist refresh sync: [time:"+t.syncInfo.time+", mediaSequence: "+t.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}},n.setDateTimeMappingForStart=function(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){var t=e.segments[0],n=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-n}},n.saveSegmentTimingInfo=function(e){var t=e.segmentInfo,n=e.shouldSaveTimelineMapping,i=this.calculateSegmentTimeMapping_(t,t.timingInfo,n),r=t.segment;i&&(this.saveDiscontinuitySyncInfo_(t),t.playlist.syncInfo||(t.playlist.syncInfo={mediaSequence:t.playlist.mediaSequence+t.mediaIndex,time:r.start}));var s=r.dateTimeObject;r.discontinuity&&n&&s&&(this.timelineToDatetimeMappings[r.timeline]=-s.getTime()/1e3)},n.timestampOffsetForTimeline=function(e){return void 0===this.timelines[e]?null:this.timelines[e].time},n.mappingForTimeline=function(e){return void 0===this.timelines[e]?null:this.timelines[e].mapping},n.calculateSegmentTimeMapping_=function(e,t,n){var i,r,s=e.segment,o=e.part,a=this.timelines[e.timeline];if("number"==typeof e.timestampOffset)a={time:e.startOfSegment,mapping:e.startOfSegment-t.start},n&&(this.timelines[e.timeline]=a,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+e.timeline+": [time: "+a.time+"] [mapping: "+a.mapping+"]")),i=e.startOfSegment,r=t.end+a.mapping;else{if(!a)return!1;i=t.start+a.mapping,r=t.end+a.mapping}return o&&(o.start=i,o.end=r),(!s.start||i<s.start)&&(s.start=i),s.end=r,!0},n.saveDiscontinuitySyncInfo_=function(e){var t=e.playlist,n=e.segment;if(n.discontinuity)this.discontinuities[n.timeline]={time:n.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(var i=0;i<t.discontinuityStarts.length;i++){var r,s=t.discontinuityStarts[i],o=t.discontinuitySequence+i+1,a=s-e.mediaIndex,c=Math.abs(a);if(!this.discontinuities[o]||this.discontinuities[o].accuracy>c)r=a<0?n.start-Fo({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:s}):n.end+Fo({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:s}),this.discontinuities[o]={time:r,accuracy:c}}},n.dispose=function(){this.trigger("dispose"),this.off()},t}(vo.EventTarget),Vc=function(e){function t(){var t;return(t=e.call(this)||this).pendingTimelineChanges_={},t.lastTimelineChanges_={},t}g()(t,e);var n=t.prototype;return n.clearPendingTimelineChange=function(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")},n.pendingTimelineChange=function(e){var t=e.type,n=e.from,i=e.to;return"number"==typeof n&&"number"==typeof i&&(this.pendingTimelineChanges_[t]={type:t,from:n,to:i},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[t]},n.lastTimelineChange=function(e){var t=e.type,n=e.from,i=e.to;return"number"==typeof n&&"number"==typeof i&&(this.lastTimelineChanges_[t]={type:t,from:n,to:i},delete this.pendingTimelineChanges_[t],this.trigger("timelinechange")),this.lastTimelineChanges_[t]},n.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},t}(vo.EventTarget),zc=Ra(La(function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}var n=t(function(e){function t(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}e.exports=function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e},e.exports.default=e.exports,e.exports.__esModule=!0}),i=t(function(e){function t(n,i){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,t(n,i)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),r=t(function(e){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0}),s=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,i=0;i<n;++i)t[i].call(this,arguments[1]);
1else for(var r=Array.prototype.slice.call(arguments,1),s=t.length,o=0;o<s;++o)t[o].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}(),o=null,a=function(){function e(e){var t,n,i;o||(o=function(){var e,t,n,i,r,s,o,a,c=[[[],[],[],[],[]],[[],[],[],[],[]]],l=c[0],u=c[1],d=l[4],h=u[4],p=[],f=[];for(e=0;e<256;e++)f[(p[e]=e<<1^283*(e>>7))^e]=e;for(t=n=0;!d[t];t^=i||1,n=f[n]||1)for(d[t]=s=(s=n^n<<1^n<<2^n<<3^n<<4)>>8^255&s^99,h[s]=t,a=16843009*p[r=p[i=p[t]]]^65537*r^257*i^16843008*t,o=257*p[s]^16843008*s,e=0;e<4;e++)l[e][t]=o=o<<24^o>>>8,u[e][s]=a=a<<24^a>>>8;for(e=0;e<5;e++)l[e]=l[e].slice(0),u[e]=u[e].slice(0);return c}()),this._tables=[[o[0][0].slice(),o[0][1].slice(),o[0][2].slice(),o[0][3].slice(),o[0][4].slice()],[o[1][0].slice(),o[1][1].slice(),o[1][2].slice(),o[1][3].slice(),o[1][4].slice()]];var r=this._tables[0][4],s=this._tables[1],a=e.length,c=1;if(4!==a&&6!==a&&8!==a)throw new Error("Invalid aes key size");var l=e.slice(0),u=[];for(this._key=[l,u],t=a;t<4*a+28;t++)i=l[t-1],(t%a==0||8===a&&t%a==4)&&(i=r[i>>>24]<<24^r[i>>16&255]<<16^r[i>>8&255]<<8^r[255&i],t%a==0&&(i=i<<8^i>>>24^c<<24,c=c<<1^283*(c>>7))),l[t]=l[t-a]^i;for(n=0;t;n++,t--)i=l[3&n?t:t-4],u[n]=t<=4||n<4?i:s[0][r[i>>>24]]^s[1][r[i>>16&255]]^s[2][r[i>>8&255]]^s[3][r[255&i]]}return e.prototype.decrypt=function(e,t,n,i,r,s){var o,a,c,l,u=this._key[1],d=e^u[0],h=i^u[1],p=n^u[2],f=t^u[3],g=u.length/4-2,m=4,b=this._tables[1],y=b[0],v=b[1],_=b[2],w=b[3],k=b[4];for(l=0;l<g;l++)o=y[d>>>24]^v[h>>16&255]^_[p>>8&255]^w[255&f]^u[m],a=y[h>>>24]^v[p>>16&255]^_[f>>8&255]^w[255&d]^u[m+1],c=y[p>>>24]^v[f>>16&255]^_[d>>8&255]^w[255&h]^u[m+2],f=y[f>>>24]^v[d>>16&255]^_[h>>8&255]^w[255&p]^u[m+3],m+=4,d=o,h=a,p=c;for(l=0;l<4;l++)r[(3&-l)+s]=k[d>>>24]<<24^k[h>>16&255]<<16^k[p>>8&255]<<8^k[255&f]^u[m++],o=d,d=h,h=p,p=f,f=o},e}(),c=function(e){function t(){var t;return(t=e.call(this,s)||this).jobs=[],t.delay=1,t.timeout_=null,t}r(t,e);var n=t.prototype;return n.processJob_=function(){this.jobs.shift()(),this.timeout_=this.jobs.length?setTimeout(this.processJob_.bind(this),this.delay):null},n.push=function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},t}(s),l=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},u=function(){function e(t,n,i,r){var s=e.STEP,o=new Int32Array(t.buffer),a=new Uint8Array(t.byteLength),u=0;for(this.asyncStream_=new c,this.asyncStream_.push(this.decryptChunk_(o.subarray(u,u+s),n,i,a)),u=s;u<o.length;u+=s)i=new Uint32Array([l(o[u-4]),l(o[u-3]),l(o[u-2]),l(o[u-1])]),this.asyncStream_.push(this.decryptChunk_(o.subarray(u,u+s),n,i,a));this.asyncStream_.push(function(){var e;r(null,(e=a).subarray(0,e.byteLength-e[e.byteLength-1]))})}return e.prototype.decryptChunk_=function(e,t,n,i){return function(){var r=function(e,t,n){var i,r,s,o,c,u,d,h,p,f=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),g=new a(Array.prototype.slice.call(t)),m=new Uint8Array(e.byteLength),b=new Int32Array(m.buffer);for(i=n[0],r=n[1],s=n[2],o=n[3],p=0;p<f.length;p+=4)c=l(f[p]),u=l(f[p+1]),d=l(f[p+2]),h=l(f[p+3]),g.decrypt(c,u,d,h,b,p),b[p]=l(b[p]^i),b[p+1]=l(b[p+1]^r),b[p+2]=l(b[p+2]^s),b[p+3]=l(b[p+3]^o),i=c,r=u,s=d,o=h;return m}(e,t,n);i.set(r,e.byteOffset)}},n(e,null,[{key:"STEP",get:function(){return 32e3}}]),e}(),d=("undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{}).BigInt||Number;d("0x1"),d("0x100"),d("0x10000"),d("0x1000000"),d("0x100000000"),d("0x10000000000"),d("0x1000000000000"),d("0x100000000000000"),d("0x10000000000000000"),self.onmessage=function(e){var t=e.data,n=new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength),i=new Uint32Array(t.key.bytes,t.key.byteOffset,t.key.byteLength/4),r=new Uint32Array(t.iv.bytes,t.iv.byteOffset,t.iv.byteLength/4);new u(n,i,r,function(e,n){var i,r;self.postMessage((i={source:t.source,decrypted:n},r={}
1,Object.keys(i).forEach(function(e){var t,n=i[e];t=n,r[e]=("function"===ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer)?{bytes:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength}:n}),r),[n.buffer])})}})),Fc=Ia(zc),Bc=function(e){var t=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},qc=function(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},Uc=function(e,t){t.activePlaylistLoader=e,e.load()},Hc={AUDIO:function(e,t){return function(){var n=t.mediaTypes[e],i=t.blacklistCurrentPlaylist;qc(t.segmentLoaders[e],n);var r=n.activeTrack(),s=n.activeGroup(),o=(s.filter(function(e){return e.default})[0]||s[0]).id,a=n.tracks[o];if(r!==a){for(var c in vo.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),n.tracks)n.tracks[c].enabled=n.tracks[c]===a;n.onTrackChanged()}else i({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(e,t){return function(){var n=t.segmentLoaders[e],i=t.mediaTypes[e];vo.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),qc(n,i);var r=i.activeTrack();r&&(r.mode="disabled"),i.onTrackChanged()}}},Wc={AUDIO:function(e,t,n){if(t){var i=n.tech,r=n.requestOptions,s=n.segmentLoaders[e];t.on("loadedmetadata",function(){var e=t.media();s.playlist(e,r),(!i.paused()||e.endList&&"none"!==i.preload())&&s.load()}),t.on("loadedplaylist",function(){s.playlist(t.media(),r),i.paused()||s.load()}),t.on("error",Hc[e](e,n))}},SUBTITLES:function(e,t,n){var i=n.tech,r=n.requestOptions,s=n.segmentLoaders[e],o=n.mediaTypes[e];t.on("loadedmetadata",function(){var e=t.media();s.playlist(e,r),s.track(o.activeTrack()),(!i.paused()||e.endList&&"none"!==i.preload())&&s.load()}),t.on("loadedplaylist",function(){s.playlist(t.media(),r),i.paused()||s.load()}),t.on("error",Hc[e](e,n))}},Gc={AUDIO:function(e,t){var n=t.vhs,i=t.sourceType,r=t.segmentLoaders[e],s=t.requestOptions,o=t.master.mediaGroups,a=t.mediaTypes[e],c=a.groups,l=a.tracks,u=a.logger_,d=t.masterPlaylistLoader,h=Zo(d.master);for(var p in o[e]&&0!==Object.keys(o[e]).length||(o[e]={main:{default:{default:!0}}},h&&(o[e].main.default.playlists=d.master.playlists)),o[e])for(var f in c[p]||(c[p]=[]),o[e][p]){var g=o[e][p][f],m=void 0;if(h?(u("AUDIO group '"+p+"' label '"+f+"' is a master playlist"),g.isMasterPlaylist=!0,m=null):m="vhs-json"===i&&g.playlists?new la(g.playlists[0],n,s):g.resolvedUri?new la(g.resolvedUri,n,s):g.playlists&&"dash"===i?new Aa(g.playlists[0],n,s,d):null,g=vo.mergeOptions({id:f,playlistLoader:m},g),Wc[e](e,g.playlistLoader,t),c[p].push(g),void 0===l[f]){var b=new vo.AudioTrack({id:f,kind:Bc(g),enabled:!1,language:g.language,default:g.default,label:f});l[f]=b}}r.on("error",Hc[e](e,t))},SUBTITLES:function(e,t){var n=t.tech,i=t.vhs,r=t.sourceType,s=t.segmentLoaders[e],o=t.requestOptions,a=t.master.mediaGroups,c=t.mediaTypes[e],l=c.groups,u=c.tracks,d=t.masterPlaylistLoader;for(var h in a[e])for(var p in l[h]||(l[h]=[]),a[e][h])if(!a[e][h][p].forced){var f=a[e][h][p],g=void 0;if("hls"===r)g=new la(f.resolvedUri,i,o);else if("dash"===r){if(!f.playlists.filter(function(e){return e.excludeUntil!==1/0}).length)return;g=new Aa(f.playlists[0],i,o,d)}else"vhs-json"===r&&(g=new la(f.playlists?f.playlists[0]:f.resolvedUri,i,o));if(f=vo.mergeOptions({id:p,playlistLoader:g},f),Wc[e](e,f.playlistLoader,t),l[h].push(f),void 0===u[p]){var m=n.addRemoteTextTrack({id:p,kind:"subtitles",default:f.default&&f.autoselect,language:f.language,label:p},!1).track;u[p]=m}}s.on("error",Hc[e](e,t))},"CLOSED-CAPTIONS":function(e,t){var n=t.tech,i=t.master.mediaGroups,r=t.mediaTypes[e],s=r.groups,o=r.tracks;for(var a in i[e])for(var c in s[a]||(s[a]=[]),i[e][a]){var l=i[e][a][c];if(/^(?:CC|SERVICE)/.test(l.instreamId)){var u=n.options_.vhs&&n.options_.vhs.captionServices||{},d={label:c,language:l.language,instreamId:l.instreamId,default:l.default&&l.autoselect};if(u[d.instreamId]&&(d=vo.mergeOptions(d,u[d.instreamId])),void 0===d.default&&delete d.default,s[a].push(vo.mergeOptions({id:c},l)),void 0===o[c]){var h=n.addRemoteTextTrack({id:d.instreamId,
1kind:"captions",default:d.default,language:d.language,label:d.label},!1).track;o[c]=h}}}}},Yc=function e(t,n){for(var i=0;i<t.length;i++){if(Yo(n,t[i]))return!0;if(t[i].playlists&&e(t[i].playlists,n))return!0}return!1},$c={AUDIO:function(e,t){return function(){var n=t.mediaTypes[e].tracks;for(var i in n)if(n[i].enabled)return n[i];return null}},SUBTITLES:function(e,t){return function(){var n=t.mediaTypes[e].tracks;for(var i in n)if("showing"===n[i].mode||"hidden"===n[i].mode)return n[i];return null}}},Zc=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],Qc=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},Xc=function(e){function t(t){var n;n=e.call(this)||this;var i=t.src,r=t.handleManifestRedirects,o=t.withCredentials,a=t.tech,c=t.bandwidth,l=t.externVhs,u=t.useCueTags,d=t.blacklistDuration,h=t.enableLowInitialPlaylist,f=t.sourceType,g=t.cacheEncryptionKeys,m=t.experimentalBufferBasedABR,b=t.experimentalLeastPixelDiffSelector,y=t.captionServices;if(!i)throw new Error("A non-empty playlist URL or JSON manifest string is required");var v=t.maxPlaylistRetries;null==v&&(v=1/0),fc=l,n.experimentalBufferBasedABR=Boolean(m),n.experimentalLeastPixelDiffSelector=Boolean(b),n.withCredentials=o,n.tech_=a,n.vhs_=a.vhs,n.sourceType_=f,n.useCueTags_=u,n.blacklistDuration=d,n.maxPlaylistRetries=v,n.enableLowInitialPlaylist=h,n.useCueTags_&&(n.cueTagsTrack_=n.tech_.addTextTrack("metadata","ad-cues"),n.cueTagsTrack_.inBandMetadataTrackDispatchType=""),n.requestOptions_={withCredentials:o,handleManifestRedirects:r,maxPlaylistRetries:v,timeout:null},n.on("error",n.pauseLoading),n.mediaTypes_=function(){var e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(t){e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:pc,activeTrack:pc,getActiveGroup:pc,onGroupChanged:pc,onTrackChanged:pc,lastTrack_:null,logger_:So("MediaGroups["+t+"]")}}),e}(),n.mediaSource=new s.a.MediaSource,n.handleDurationChange_=n.handleDurationChange_.bind(p()(n)),n.handleSourceOpen_=n.handleSourceOpen_.bind(p()(n)),n.handleSourceEnded_=n.handleSourceEnded_.bind(p()(n)),n.mediaSource.addEventListener("durationchange",n.handleDurationChange_),n.mediaSource.addEventListener("sourceopen",n.handleSourceOpen_),n.mediaSource.addEventListener("sourceended",n.handleSourceEnded_),n.seekable_=vo.createTimeRanges(),n.hasPlayed_=!1,n.syncController_=new Nc(t),n.segmentMetadataTrack_=a.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,n.decrypter_=new Fc,n.sourceUpdater_=new Mc(n.mediaSource),n.inbandTextTracks_={},n.timelineChangeController_=new Vc;var _={vhs:n.vhs_,parse708captions:t.parse708captions,useDtsForTimestampOffset:t.useDtsForTimestampOffset,captionServices:y,mediaSource:n.mediaSource,currentTime:n.tech_.currentTime.bind(n.tech_),seekable:function(){return n.seekable()},seeking:function(){return n.tech_.seeking()},duration:function(){return n.duration()},hasPlayed:function(){return n.hasPlayed_},goalBufferLength:function(){return n.goalBufferLength()},bandwidth:c,syncController:n.syncController_,decrypter:n.decrypter_,sourceType:n.sourceType_,inbandTextTracks:n.inbandTextTracks_,cacheEncryptionKeys:g,sourceUpdater:n.sourceUpdater_,timelineChangeController:n.timelineChangeController_,experimentalExactManifestTimings:t.experimentalExactManifestTimings};n.masterPlaylistLoader_="dash"===n.sourceType_?new Aa(i,n.vhs_,n.requestOptions_):new la(i,n.vhs_,n.requestOptions_),n.setupMasterPlaylistLoaderListeners_(),n.mainSegmentLoader_=new hc(vo.mergeOptions(_,{segmentMetadataTrack:n.segmentMetadataTrack_,loaderType:"main"}),t),n.audioSegmentLoader_=new hc(vo.mergeOptions(_,{loaderType:"audio"}),t),n.subtitleSegmentLoader_=new Lc(vo.mergeOptions(_,{loaderType:"vtt",featuresNativeTextTracks:n.tech_.featuresNativeTextTracks}),t),n.setupSegmentLoaderListeners_(),n.experimentalBufferBasedABR&&(n.masterPlaylistLoader_.one("loadedplaylist",function(){return n.startABRTimer_()}),n.tech_.on("pause",function(){return n.stopABRTimer_()}),n.tech_.on("play",function(){return n.startABRTimer_()})),Zc.forEach(function(e){n[e+"_"]=Qc.bind(p()(n),e)}),n.logger_=So("MPC"),n.triggeredFmp4Usage=!1,"none"===n.tech_.preload()?(n.loadOnPlay_=function(){n.loadOnPlay_=null,n.masterPlaylistLoader_.load()},n.tech_.one("play",n.loadOnPlay_)):n.masterPlaylistLoader_.load(),n.timeToLoadedData__=-1,n.mainAppendsToLoadedData__=-1,n.audioAppendsToLoadedData__=-1;var w="none"===n.tech_.preload()?"play":"loadstart";return n.tech_.one(w,function(){var e=Date.now();n.tech_.one("loadeddata",function(){n.timeToLoadedData__=Date.now()-e,n.mainAppendsToLoadedData__=n.mainSegmentLoader_.mediaAppends,n.audioAppendsToLoadedData__=n.audioSegmentLoader_.mediaAppends})}),n}g()(t,e);var n=t.prototype;return n.mainAppendsToLoadedData_=function(){return this.mainAppendsToLoadedData__},n.audioAppendsToLoadedData_=function(){return this.audioAppendsToLoadedData__},n.appendsToLoadedData_=function(){var e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return-1===e||-1===t?-1:e+t},n.timeToLoadedData_=function(){return this.timeToLoadedData__},n.checkABR_=function(e){void 0===e&&(e="abr");var t=this.selectPlaylist();t&&this.shouldSwitchToMedia_(t)&&this.switchMedia_(t,e)},n.switchMedia_=function(e,t,n){var i=this.media(),r=i&&(i.id||i.uri),s=e.id||e.uri;r&&r!==s&&(this.logger_("switch media "+r+" -> "+s+" from "+t),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+t})),this.masterPlaylistLoader_.media(e,n)},n.startABRTimer_=function(){var e=this;this.stopABRTimer_(),this.abrTimer_=s.a.setInterval(function(){return e.checkABR_()},250)},n.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(s.a.clearInterval(this.abrTimer_),this.abrTimer_=null)},n.getAudioTrackPlaylists_=function(){var e=this.master(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;var n,i=e.mediaGroups.AUDIO,r=Object.keys(i);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)n=this.mediaTypes_.AUDIO.activeTrack();else{var s=i.main||r.length&&i[r[0]];for(var o in s)if(s[o].default){n={label:o};break}}if(!n)return t;var a=[];for(var c in i)if(i[c][n.label]){var l=i[c][n.label];if(l.playlists&&l.playlists.length)a.push.apply(a,l.playlists);else if(l.uri)a.push(l);else if(e.playlists.length)for(var u=0;u<e.playlists.length;u++){var d=e.playlists[u];d.attributes&&d.attributes.AUDIO&&d.attributes.AUDIO===c&&a.push(d)}}return a.length?a:t},n.setupMasterPlaylistLoaderListeners_=function(){var e=this;this.masterPlaylistLoader_.on("loadedmetadata",function(){var t=e.masterPlaylistLoader_.media(),n=1.5*t.targetDuration*1e3;e.requestOptions_.timeout=Go(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?0:n,t.endList&&"none"!==e.tech_.preload()&&(e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load()),function(e){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(t){Gc[t](t,e)});var t=e.mediaTypes,n=e.masterPlaylistLoader,i=e.tech,r=e.vhs,s=e.segmentLoaders,o=s.AUDIO,a=s.main;["AUDIO","SUBTITLES"].forEach(function(n){t[n].activeGroup=function(e,t){return function(n){var i=t.mediaTypes[e].groups,r=t.masterPlaylistLoader.media();if(!r)return null;var s=null;r.attributes[e]&&(s=i[r.attributes[e]]);var o=Object.keys(i);
1if(!s)if("AUDIO"===e&&o.length>1&&Zo(t.master))for(var a=0;a<o.length;a++){var c=i[o[a]];if(Yc(c,r)){s=c;break}}else i.main?s=i.main:1===o.length&&(s=i[o[0]]);return void 0===n?s:null!==n&&s&&s.filter(function(e){return e.id===n.id})[0]||null}}(n,e),t[n].activeTrack=$c[n](n,e),t[n].onGroupChanged=function(e,t){return function(){var n=t.segmentLoaders,i=n[e],r=n.main,s=t.mediaTypes[e],o=s.activeTrack(),a=s.getActiveGroup(),c=s.activePlaylistLoader,l=s.lastGroup_;a&&l&&a.id===l.id||(s.lastGroup_=a,s.lastTrack_=o,qc(i,s),a&&!a.isMasterPlaylist&&(a.playlistLoader?(i.resyncLoader(),Uc(a.playlistLoader,s)):c&&r.resetEverything()))}}(n,e),t[n].onGroupChanging=function(e,t){return function(){var n=t.segmentLoaders[e];t.mediaTypes[e].lastGroup_=null,n.abort(),n.pause()}}(n,e),t[n].onTrackChanged=function(e,t){return function(){var n=t.masterPlaylistLoader,i=t.segmentLoaders,r=i[e],s=i.main,o=t.mediaTypes[e],a=o.activeTrack(),c=o.getActiveGroup(),l=o.activePlaylistLoader,u=o.lastTrack_;if((!u||!a||u.id!==a.id)&&(o.lastGroup_=c,o.lastTrack_=a,qc(r,o),c)){if(c.isMasterPlaylist){if(!a||!u||a.id===u.id)return;var d=t.vhs.masterPlaylistController_,h=d.selectPlaylist();if(d.media()===h)return;return o.logger_("track change. Switching master audio from "+u.id+" to "+a.id),n.pause(),s.resetEverything(),void d.fastQualityChange_(h)}if("AUDIO"===e){if(!c.playlistLoader)return s.setAudio(!0),void s.resetEverything();r.setAudio(!0),s.setAudio(!1)}l!==c.playlistLoader?(r.track&&r.track(a),r.resetEverything(),Uc(c.playlistLoader,o)):Uc(c.playlistLoader,o)}}}(n,e),t[n].getActiveGroup=function(e,t){var n=t.mediaTypes;return function(){var t=n[e].activeTrack();return t?n[e].activeGroup(t):null}}(n,e)});var c=t.AUDIO.activeGroup();if(c){var l=(c.filter(function(e){return e.default})[0]||c[0]).id;t.AUDIO.tracks[l].enabled=!0,t.AUDIO.onGroupChanged(),t.AUDIO.onTrackChanged(),t.AUDIO.getActiveGroup().playlistLoader?(a.setAudio(!1),o.setAudio(!0)):a.setAudio(!0)}n.on("mediachange",function(){["AUDIO","SUBTITLES"].forEach(function(e){return t[e].onGroupChanged()})}),n.on("mediachanging",function(){["AUDIO","SUBTITLES"].forEach(function(e){return t[e].onGroupChanging()})});var u=function(){t.AUDIO.onTrackChanged(),i.trigger({type:"usage",name:"vhs-audio-change"}),i.trigger({type:"usage",name:"hls-audio-change"})};for(var d in i.audioTracks().addEventListener("change",u),i.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),r.on("dispose",function(){i.audioTracks().removeEventListener("change",u),i.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)}),i.clearTracks("audio"),t.AUDIO.tracks)i.audioTracks().addTrack(t.AUDIO.tracks[d])}({sourceType:e.sourceType_,segmentLoaders:{AUDIO:e.audioSegmentLoader_,SUBTITLES:e.subtitleSegmentLoader_,main:e.mainSegmentLoader_},tech:e.tech_,requestOptions:e.requestOptions_,masterPlaylistLoader:e.masterPlaylistLoader_,vhs:e.vhs_,master:e.master(),mediaTypes:e.mediaTypes_,blacklistCurrentPlaylist:e.blacklistCurrentPlaylist.bind(e)}),e.triggerPresenceUsage_(e.master(),t),e.setupFirstPlay(),!e.mediaTypes_.AUDIO.activePlaylistLoader||e.mediaTypes_.AUDIO.activePlaylistLoader.media()?e.trigger("selectedinitialmedia"):e.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",function(){e.trigger("selectedinitialmedia")})}),this.masterPlaylistLoader_.on("loadedplaylist",function(){e.loadOnPlay_&&e.tech_.off("play",e.loadOnPlay_);var t=e.masterPlaylistLoader_.media();if(!t){var n;if(e.excludeUnsupportedVariants_(),e.enableLowInitialPlaylist&&(n=e.selectInitialPlaylist()),n||(n=e.selectPlaylist()),!n||!e.shouldSwitchToMedia_(n))return;if(e.initialMedia_=n,e.switchMedia_(e.initialMedia_,"initial"),"vhs-json"!==e.sourceType_||!e.initialMedia_.segments)return;t=e.initialMedia_}e.handleUpdatedMediaPlaylist(t)}),this.masterPlaylistLoader_.on("error",function(){e.blacklistCurrentPlaylist(e.masterPlaylistLoader_.error)}),this.masterPlaylistLoader_.on("mediachanging",function(){e.mainSegmentLoader_.abort(),e.mainSegmentLoader_.pause()}),this.masterPlaylistLoader_.on("mediachange",function(){var t=e.masterPlaylistLoader_.media(),n=1.5*t.targetDuration*1e3;e.requestOptions_.timeout=Go(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?0:n,e.masterPlaylistLoader_.load(),e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load(),e.tech_.trigger({type:"mediachange",bubbles:!0})}),this.masterPlaylistLoader_.on("playlistunchanged",function(){var t=e.masterPlaylistLoader_.media();"playlist-unchanged"!==t.lastExcludeReason_&&e.stuckAtPlaylistEnd_(t)&&(e.blacklistCurrentPlaylist({message:"Playlist no longer updating.",reason:"playlist-unchanged"}),e.tech_.trigger("playliststuck"))}),this.masterPlaylistLoader_.on("renditiondisabled",function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"}),e.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})}),this.masterPlaylistLoader_.on("renditionenabled",function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"}),e.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})})},n.handleUpdatedMediaPlaylist=function(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())},n.triggerPresenceUsage_=function(e,t){var n=e.mediaGroups||{},i=!0,r=Object.keys(n.AUDIO);for(var s in n.AUDIO)for(var o in n.AUDIO[s])n.AUDIO[s][o].uri||(i=!1);i&&(this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),this.tech_.trigger({type:"usage",name:"hls-demuxed"})),Object.keys(n.SUBTITLES).length&&(this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),this.tech_.trigger({type:"usage",name:"hls-webvtt"})),fc.Playlist.isAes(t)&&(this.tech_.trigger({type:"usage",name:"vhs-aes"}),this.tech_.trigger({type:"usage",name:"hls-aes"})),r.length&&Object.keys(n.AUDIO[r[0]]).length>1&&(this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})),this.useCueTags_&&(this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"}),this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"}))},n.shouldSwitchToMedia_=function(e){var t=this.masterPlaylistLoader_.media()||this.masterPlaylistLoader_.pen
1dingMedia_,n=this.tech_.currentTime(),i=this.bufferLowWaterLine(),r=this.bufferHighWaterLine();return function(e){var t=e.currentPlaylist,n=e.buffered,i=e.currentTime,r=e.nextPlaylist,s=e.bufferLowWaterLine,o=e.bufferHighWaterLine,a=e.duration,c=e.experimentalBufferBasedABR,l=e.log;if(!r)return vo.log.warn("We received no playlist to switch to. Please check your stream."),!1;var u="allowing switch "+(t&&t.id||"null")+" -> "+r.id;if(!t)return l(u+" as current playlist is not set"),!0;if(r.id===t.id)return!1;var d=Boolean(Po(n,i).length);if(!t.endList)return d||"number"!=typeof t.partTargetDuration?(l(u+" as current playlist is live"),!0):(l("not "+u+" as current playlist is live llhls, but currentTime isn't in buffered."),!1);var h=Mo(n,i),p=c?Ea.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:Ea.MAX_BUFFER_LOW_WATER_LINE;if(a<p)return l(u+" as duration < max low water line ("+a+" < "+p+")"),!0;var f=r.attributes.BANDWIDTH,g=t.attributes.BANDWIDTH;if(f<g&&(!c||h<o)){var m=u+" as next bandwidth < current bandwidth ("+f+" < "+g+")";return c&&(m+=" and forwardBuffer < bufferHighWaterLine ("+h+" < "+o+")"),l(m),!0}if((!c||f>g)&&h>=s){var b=u+" as forwardBuffer >= bufferLowWaterLine ("+h+" >= "+s+")";return c&&(b+=" and next bandwidth > current bandwidth ("+f+" > "+g+")"),l(b),!0}return l("not "+u+" as no switching criteria met"),!1}({buffered:this.tech_.buffered(),currentTime:n,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:i,bufferHighWaterLine:r,duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})},n.setupSegmentLoaderListeners_=function(){var e=this;this.mainSegmentLoader_.on("bandwidthupdate",function(){e.checkABR_("bandwidthupdate"),e.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("timeout",function(){e.experimentalBufferBasedABR&&e.mainSegmentLoader_.load()}),this.experimentalBufferBasedABR||this.mainSegmentLoader_.on("progress",function(){e.trigger("progress")}),this.mainSegmentLoader_.on("error",function(){e.blacklistCurrentPlaylist(e.mainSegmentLoader_.error())}),this.mainSegmentLoader_.on("appenderror",function(){e.error=e.mainSegmentLoader_.error_,e.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",function(){e.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",function(){e.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"}),e.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",function(){e.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",function(){e.error=e.audioSegmentLoader_.error_,e.trigger("error")}),this.mainSegmentLoader_.on("ended",function(){e.logger_("main segment loader ended"),e.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",function(t){e.experimentalBufferBasedABR||(e.delegateLoaders_("all",["abort"]),e.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120))});var t=function(){if(!e.sourceUpdater_.hasCreatedSourceBuffers())return e.tryToCreateSourceBuffers_();var t=e.getCodecsOrExclude_();t&&e.sourceUpdater_.addOrChangeSourceBuffers(t)};this.mainSegmentLoader_.on("trackinfo",t),this.audioSegmentLoader_.on("trackinfo",t),this.mainSegmentLoader_.on("fmp4",function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",function(){e.logger_("audioSegmentLoader ended"),e.onEndOfStream()})},n.mediaSecondsLoaded_=function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)},n.load=function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()},n.smoothQualityChange_=function(e){void 0===e&&(e=this.selectPlaylist()),this.fastQualityChange_(e)},n.fastQualityChange_=function(e){var t=this;void 0===e&&(e=this.selectPlaylist()),e!==this.masterPlaylistLoader_.media()?(this.switchMedia_(e,"fast-quality"),this.mainSegmentLoader_.resetEverything(function(){t.tech_.setCurrentTime(vo.browser.IE_VERSION||vo.browser.IS_EDGE?t.tech_.currentTime()+.04:t.tech_.currentTime())})):this.logger_("skipping fastQualityChange because new media is same as old")},n.play=function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0)?this.tech_.setCurrentTime(e.end(e.length-1)):void 0}},n.setupFirstPlay=function(){var e=this,t=this.masterPlaylistLoader_.media();if(!t||this.tech_.paused()||this.hasPlayed_)return!1;if(!t.endList){var n=this.seekable();if(!n.length)return!1;if(vo.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",function(){e.trigger("firstplay"),e.tech_.setCurrentTime(n.end(0)),e.hasPlayed_=!0}),!1;this.trigger("firstplay"),this.tech_.setCurrentTime(n.end(0))}return this.hasPlayed_=!0,this.load(),!0},n.handleSourceOpen_=function(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){var e=this.tech_.play();void 0!==e&&"function"==typeof e.then&&e.then(null,function(e){})}this.trigger("sourceopen")},n.handleSourceEnded_=function(){if(this.inbandTextTracks_.metadataTrack_){var e=this.inbandTextTracks_.metadataTrack_.cues;if(e&&e.length){var t=this.duration();e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}}},n.handleDurationChange_=function(){this.tech_.trigger("durationchange")}
1,n.onEndOfStream=function(){var e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){var t=this.mainSegmentLoader_.getCurrentMediaInfo_();e=!t||t.hasVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())},n.stuckAtPlaylistEnd_=function(e){if(!this.seekable().length)return!1;var t=this.syncController_.getExpiredTime(e,this.duration());if(null===t)return!1;var n=fc.Playlist.playlistEnd(e,t),i=this.tech_.currentTime(),r=this.tech_.buffered();if(!r.length)return n-i<=.1;var s=r.end(r.length-1);return s-i<=.1&&n-s<=.1},n.blacklistCurrentPlaylist=function(e,t){void 0===e&&(e={});var n=e.playlist||this.masterPlaylistLoader_.media();if(t=t||e.blacklistDuration||this.blacklistDuration,!n)return this.error=e,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));n.playlistErrors_++;var i,r=this.masterPlaylistLoader_.master.playlists,s=r.filter(Ho),o=1===s.length&&s[0]===n;if(1===r.length&&t!==1/0)return vo.log.warn("Problem encountered with playlist "+n.id+". Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(o);if(o){var a=!1;r.forEach(function(e){if(e!==n){var t=e.excludeUntil;void 0!==t&&t!==1/0&&(a=!0,delete e.excludeUntil)}}),a&&(vo.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}i=n.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*t,n.excludeUntil=i,e.reason&&(n.lastExcludeReason_=e.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});var c=this.selectPlaylist();if(!c)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");(e.internal?this.logger_:vo.log.warn)((e.internal?"Internal problem":"Problem")+" encountered with playlist "+n.id+"."+(e.message?" "+e.message:"")+" Switching to playlist "+c.id+"."),c.attributes.AUDIO!==n.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),c.attributes.SUBTITLES!==n.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);var l=c.targetDuration/2*1e3||5e3,u="number"==typeof c.lastRequest&&Date.now()-c.lastRequest<=l;return this.switchMedia_(c,"exclude",o||u)},n.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},n.delegateLoaders_=function(e,t){var n=this,i=[],r="all"===e;(r||"main"===e)&&i.push(this.masterPlaylistLoader_);var s=[];(r||"audio"===e)&&s.push("AUDIO"),(r||"subtitle"===e)&&(s.push("CLOSED-CAPTIONS"),s.push("SUBTITLES")),s.forEach(function(e){var t=n.mediaTypes_[e]&&n.mediaTypes_[e].activePlaylistLoader;t&&i.push(t)}),["main","audio","subtitle"].forEach(function(t){var r=n[t+"SegmentLoader_"];!r||e!==t&&"all"!==e||i.push(r)}),i.forEach(function(e){return t.forEach(function(t){"function"==typeof e[t]&&e[t]()})})},n.setCurrentTime=function(e){var t=Po(this.tech_.buffered(),e);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0},n.duration=function(){if(!this.masterPlaylistLoader_)return 0;var e=this.masterPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:fc.Playlist.duration(e):1/0:0},n.seekable=function(){return this.seekable_},n.onSyncInfoUpdate_=function(){var e;if(this.masterPlaylistLoader_){var t=this.masterPlaylistLoader_.media();if(t){var n=this.syncController_.getExpiredTime(t,this.duration());if(null!==n){var i=this.masterPlaylistLoader_.master,r=fc.Playlist.seekable(t,n,fc.Playlist.liveEdgeDelay(i,t));if(0!==r.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(t=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(n=this.syncController_.getExpiredTime(t,this.duration())))return;if(0===(e=fc.Playlist.seekable(t,n,fc.Playlist.liveEdgeDelay(i,t))).length)return}var s,o;this.seekable_&&this.seekable_.length&&(s=this.seekable_.end(0),o=this.seekable_.start(0)),this.seekable_=e?e.start(0)>r.end(0)||r.start(0)>e.end(0)?r:vo.createTimeRanges([[e.start(0)>r.start(0)?e.start(0):r.start(0),e.end(0)<r.end(0)?e.end(0):r.end(0)]]):r,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===s&&this.seekable_.start(0)===o||(this.logger_("seekable updated ["+xo(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}},n.updateDuration=function(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)return this.updateDuration_=this.updateDuration.bind(this,e),void this.mediaSource.addEventListener("sourceopen",this.updateDuration_);if(e){var t=this.seekable();if(!t.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<t.end(t.length-1))&&this.sourceUpdater_.setDuration(t.end(t.length-1))}else{var n=this.tech_.buffered(),i=fc.Playlist.duration(this.masterPlaylistLoader_.media());n.length>0&&(i=Math.max(i,n.end(n.length-1))),this.mediaSource.duration!==i&&this.sourceUpdater_.setDuration(i)}},n.dispose=function(){var e=this;this.trigger("dispose"),this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(function(t){var n=e.mediaTypes_[t].groups;
1for(var i in n)n[i].forEach(function(e){e.playlistLoader&&e.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()},n.master=function(){return this.masterPlaylistLoader_.master},n.media=function(){return this.masterPlaylistLoader_.media()||this.initialMedia_},n.areMediaTypesKnown_=function(){var e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),n=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!t||!n)},n.getCodecsOrExclude_=function(){var e=this,t={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}};t.video=t.main;var n=Ka(this.master(),this.media()),i={},r=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(t.main.hasVideo&&(i.video=n.video||t.main.videoCodec||"avc1.4d400d"),t.main.isMuxed&&(i.video+=","+(n.audio||t.main.audioCodec||"mp4a.40.2")),(t.main.hasAudio&&!t.main.isMuxed||t.audio.hasAudio||r)&&(i.audio=n.audio||t.main.audioCodec||t.audio.audioCodec||"mp4a.40.2",t.audio.isFmp4=t.main.hasAudio&&!t.main.isMuxed?t.main.isFmp4:t.audio.isFmp4),i.audio||i.video){var s,o={};if(["video","audio"].forEach(function(e){if(i.hasOwnProperty(e)&&(r=i[e],!(t[e].isFmp4?$(r):Z(r)))){var n=t[e].isFmp4?"browser":"muxer";o[n]=o[n]||[],o[n].push(i[e]),"audio"===e&&(s=n)}var r}),r&&s&&this.media().attributes.AUDIO){var a=this.media().attributes.AUDIO;
1this.master().playlists.forEach(function(t){(t.attributes&&t.attributes.AUDIO)===a&&t!==e.media()&&(t.excludeUntil=1/0)}),this.logger_("excluding audio group "+a+" as "+s+' does not support codec(s): "'+i.audio+'"')}if(!Object.keys(o).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var c=[];if(["video","audio"].forEach(function(t){var n=(W(e.sourceUpdater_.codecs[t]||"")[0]||{}).type,r=(W(i[t]||"")[0]||{}).type;n&&r&&n.toLowerCase()!==r.toLowerCase()&&c.push('"'+e.sourceUpdater_.codecs[t]+'" -> "'+i[t]+'"')}),c.length)return void this.blacklistCurrentPlaylist({playlist:this.media(),message:"Codec switching not supported: "+c.join(", ")+".",blacklistDuration:1/0,internal:!0})}return i}var l=Object.keys(o).reduce(function(e,t){return e&&(e+=", "),e+(t+' does not support codec(s): "')+o[t].join(",")+'"'},"")+".";this.blacklistCurrentPlaylist({playlist:this.media(),internal:!0,message:l,blacklistDuration:1/0})}else this.blacklistCurrentPlaylist({playlist:this.media(),message:"Could not determine codecs for playlist.",blacklistDuration:1/0})},n.tryToCreateSourceBuffers_=function(){if("open"===this.mediaSource.readyState&&!this.sourceUpdater_.hasCreatedSourceBuffers()&&this.areMediaTypesKnown_()){var e=this.getCodecsOrExclude_();if(e){this.sourceUpdater_.createSourceBuffers(e);var t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}}},n.excludeUnsupportedVariants_=function(){var e=this,t=this.master().playlists,n=[];Object.keys(t).forEach(function(i){var r=t[i];if(-1===n.indexOf(r.id)){n.push(r.id);var s=Ka(e.master,r),o=[];!s.audio||Z(s.audio)||$(s.audio)||o.push("audio codec "+s.audio),!s.video||Z(s.video)||$(s.video)||o.push("video codec "+s.video),s.text&&"stpp.ttml.im1t"===s.text&&o.push("text codec "+s.text),o.length&&(r.excludeUntil=1/0,e.logger_("excluding "+r.id+" for unsupported: "+o.join(", ")))}})},n.excludeIncompatibleVariants_=function(e){var t=this,n=[],i=this.master().playlists,r=Qa(W(e)),s=Xa(r),o=r.video&&W(r.video)[0]||null,a=r.audio&&W(r.audio)[0]||null;
1Object.keys(i).forEach(function(e){var r=i[e];if(-1===n.indexOf(r.id)&&r.excludeUntil!==1/0){n.push(r.id);var c=[],l=Ka(t.masterPlaylistLoader_.master,r),u=Xa(l);if(l.audio||l.video){if(u!==s&&c.push('codec count "'+u+'" !== "'+s+'"'),!t.sourceUpdater_.canChangeType()){var d=l.video&&W(l.video)[0]||null,h=l.audio&&W(l.audio)[0]||null;d&&o&&d.type.toLowerCase()!==o.type.toLowerCase()&&c.push('video codec "'+d.type+'" !== "'+o.type+'"'),h&&a&&h.type.toLowerCase()!==a.type.toLowerCase()&&c.push('audio codec "'+h.type+'" !== "'+a.type+'"')}c.length&&(r.excludeUntil=1/0,t.logger_("blacklisting "+r.id+": "+c.join(" && ")))}}})},n.updateAdCues_=function(e){var t=0,n=this.seekable();n.length&&(t=n.start(0)),function(e,t,n){if(void 0===n&&(n=0),e.segments)for(var i,r=n,o=0;o<e.segments.length;o++){var a=e.segments[o];if(i||(i=Dc(t,r+a.duration/2)),i){if("cueIn"in a){i.endTime=r,i.adEndTime=r,r+=a.duration,i=null;continue}if(r<i.endTime){r+=a.duration;continue}i.endTime+=a.duration}else if("cueOut"in a&&((i=new s.a.VTTCue(r,r+a.duration,a.cueOut)).adStartTime=r,i.adEndTime=r+parseFloat(a.cueOut),t.addCue(i)),"cueOutCont"in a){var c=a.cueOutCont.split("/").map(parseFloat),l=c[0],u=c[1];(i=new s.a.VTTCue(r,r+a.duration,"")).adStartTime=r-l,i.adEndTime=i.adStartTime+u,t.addCue(i)}r+=a.duration}}(e,this.cueTagsTrack_,t)},n.goalBufferLength=function(){var e=this.tech_.currentTime(),t=Ea.GOAL_BUFFER_LENGTH,n=Ea.GOAL_BUFFER_LENGTH_RATE,i=Math.max(t,Ea.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*n,i)},n.bufferLowWaterLine=function(){var e=this.tech_.currentTime(),t=Ea.BUFFER_LOW_WATER_LINE,n=Ea.BUFFER_LOW_WATER_LINE_RATE,i=Math.max(t,Ea.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(t,Ea.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*n,this.experimentalBufferBasedABR?r:i)},n.bufferHighWaterLine=function(){return Ea.BUFFER_HIGH_WATER_LINE},t}(vo.EventTarget),Kc=function(e,t,n){var i,r,s,o=e.masterPlaylistController_,a=o[(e.options_.smoothQualityChange?"smooth":"fast")+"QualityChange_"].bind(o);if(t.attributes){var c=t.attributes.RESOLUTION;this.width=c&&c.width,this.height=c&&c.height,this.bandwidth=t.attributes.BANDWIDTH,this.frameRate=t.attributes["FRAME-RATE"]}this.codecs=Ka(o.master(),t),this.playlist=t,this.id=n,this.enabled=(i=e.playlists,r=t.id,s=a,function(e){var t=i.master.playlists[r],n=Uo(t),o=Ho(t);return void 0===e?o:(e?delete t.disabled:t.disabled=!0,e===o||n||(s(),i.trigger(e?"renditionenabled":"renditiondisabled")),e)})},Jc=["seeking","seeked","pause","playing","error"],el=function(){function e(e){var t=this;this.masterPlaylistController_=e.masterPlaylistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=So("PlaybackWatcher"),this.logger_("initialize");var n=function(){return t.monitorCurrentTime_()},i=function(){return t.monitorCurrentTime_()},r=function(){return t.techWaiting_()},o=function(){return t.cancelTimer_()},a=this.masterPlaylistController_,c=["main","subtitle","audio"],l={};
1c.forEach(function(e){l[e]={reset:function(){return t.resetSegmentDownloads_(e)},updateend:function(){return t.checkSegmentDownloads_(e)}},a[e+"SegmentLoader_"].on("appendsdone",l[e].updateend),a[e+"SegmentLoader_"].on("playlistupdate",l[e].reset),t.tech_.on(["seeked","seeking"],l[e].reset)});var u=function(e){["main","audio"].forEach(function(n){a[n+"SegmentLoader_"][e]("appended",t.seekingAppendCheck_)})};this.seekingAppendCheck_=function(){t.fixesBadSeeks_()&&(t.consecutiveUpdates=0,t.lastRecordedTime=t.tech_.currentTime(),u("off"))},this.clearSeekingAppendCheck_=function(){return u("off")},this.watchForBadSeeking_=function(){t.clearSeekingAppendCheck_(),u("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",r),this.tech_.on(Jc,o),this.tech_.on("canplay",i),this.tech_.one("play",n),this.dispose=function(){t.clearSeekingAppendCheck_(),t.logger_("dispose"),t.tech_.off("waiting",r),t.tech_.off(Jc,o),t.tech_.off("canplay",i),t.tech_.off("play",n),t.tech_.off("seeking",t.watchForBadSeeking_),t.tech_.off("seeked",t.clearSeekingAppendCheck_),c.forEach(function(e){a[e+"SegmentLoader_"].off("appendsdone",l[e].updateend),a[e+"SegmentLoader_"].off("playlistupdate",l[e].reset),t.tech_.off(["seeked","seeking"],l[e].reset)}),t.checkCurrentTimeTimeout_&&s.a.clearTimeout(t.checkCurrentTimeTimeout_),t.cancelTimer_()}}var t=e.prototype;return t.monitorCurrentTime_=function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&s.a.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=s.a.setTimeout(this.monitorCurrentTime_.bind(this),250)},t.resetSegmentDownloads_=function(e){var t=this.masterPlaylistController_[e+"SegmentLoader_"];this[e+"StalledDownloads_"]>0&&this.logger_("resetting possible stalled download count for "+e+" loader"),this[e+"StalledDownloads_"]=0,this[e+"Buffered_"]=t.buffered_()},t.checkSegmentDownloads_=function(e){var t=this.masterPlaylistController_,n=t[e+"SegmentLoader_"],i=n.buffered_(),r=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e)return!0;if(e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e.start(n)!==t.start(n)||e.end(n)!==t.end(n))return!0;return!1}(this[e+"Buffered_"],i);this[e+"Buffered_"]=i,r?this.resetSegmentDownloads_(e):(this[e+"StalledDownloads_"]++,this.logger_("found #"+this[e+"StalledDownloads_"]+" "+e+" appends that did not increase buffer (possible stalled download)",{playlistId:n.playlist_&&n.playlist_.id,buffered:Ao(i)}),this[e+"StalledDownloads_"]<10||(this.logger_(e+" loader stalled download exclusion"),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:"vhs-"+e+"-download-exclusion"}),"subtitle"!==e&&t.blacklistCurrentPlaylist({message:"Excessive "+e+" segment downloading detected."},1/0)))},t.checkCurrentTime_=function(){if(!this.tech_.paused()&&!this.tech_.seeking()){var e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+.1>=t.end(t.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}},t.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},t.fixesBadSeeks_=function(){if(!this.tech_.seeking())return!1;var e,t=this.seekable(),n=this.tech_.currentTime();if(this.afterSeekableWindow_(t,n,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(e=t.end(t.length-1)),this.beforeSeekableWindow_(t,n)){var i=t.start(0);e=i+(i===t.end(0)?0:.1)}if(void 0!==e)return this.logger_("Trying to seek outside of seekable at time "+n+" with seekable range "+xo(t)+". Seeking to "+e+"."),this.tech_.setCurrentTime(e),!0;for(var r=this.masterPlaylistController_.sourceUpdater_,s=this.tech_.buffered(),o=r.audioBuffer?r.audioBuffered():null,a=r.videoBuffer?r.videoBuffered():null,c=this.media(),l=c.partTargetDuration?c.partTargetDuration:2*(c.targetDuration-.03333333333333333),u=[o,a],d=0;d<u.length;d++)if(u[d]&&Mo(u[d],n)<l)return!1;var h=Oo(s,n);return 0!==h.length&&(e=h.start(0)+.1,this.logger_("Buffered region starts ("+h.start(0)+") just beyond seek point ("+n+"). Seeking to "+e+"."),this.tech_.setCurrentTime(e),!0)},t.waiting_=function(){if(!this.techWaiting_()){var e=this.tech_.currentTime(),t=this.tech_.buffered(),n=Po(t,e);return n.length&&e+3<=n.end(0)?(this.cancelTimer_(),this.tech_.setCurrentTime(e),this.logger_("Stopped at "+e+" while inside a buffered region ["+n.start(0)+" -> "+n.end(0)+"]. Attempting to resume playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"}),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}},t.techWaiting_=function(){var e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking()||null!==this.timer_)return!0;
1if(this.beforeSeekableWindow_(e,t)){var n=e.end(e.length-1);return this.logger_("Fell out of live window at time "+t+". Seeking to live point (seekable end) "+n),this.cancelTimer_(),this.tech_.setCurrentTime(n),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var i=this.tech_.vhs.masterPlaylistController_.sourceUpdater_,r=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:i.audioBuffered(),videoBuffered:i.videoBuffered(),currentTime:t}))return this.cancelTimer_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;var s=Oo(r,t);if(s.length>0){var o=s.start(0)-t;return this.logger_("Stopped at "+t+", setting timer for "+o+", seeking to "+s.start(0)),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*o,t),!0}return!1},t.afterSeekableWindow_=function(e,t,n,i){if(void 0===i&&(i=!1),!e.length)return!1;var r=e.end(e.length-1)+.1;return!n.endList&&i&&(r=e.end(e.length-1)+3*n.targetDuration),t>r},t.beforeSeekableWindow_=function(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)},t.videoUnderflow_=function(e){var t=e.videoBuffered,n=e.audioBuffered,i=e.currentTime;if(t){var r;if(t.length&&n.length){var s=Po(t,i-3),o=Po(t,i),a=Po(n,i);a.length&&!o.length&&s.length&&(r={start:s.end(0),end:a.end(0)})}else Oo(t,i).length||(r=this.gapFromVideoUnderflow_(t,i));return!!r&&(this.logger_("Encountered a gap in video from "+r.start+" to "+r.end+". Seeking to current time "+i),!0)}},t.skipTheGap_=function(e){var t=this.tech_.buffered(),n=this.tech_.currentTime(),i=Oo(t,n);this.cancelTimer_(),0!==i.length&&n===e&&(this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",e,"nextRange start:",i.start(0)),this.tech_.setCurrentTime(i.start(0)+.03333333333333333),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))},t.gapFromVideoUnderflow_=function(e,t){for(var n=function(e){if(e.length<2)return vo.createTimeRanges();for(var t=[],n=1;n<e.length;n++){var i=e.end(n-1),r=e.start(n);t.push([i,r])}return vo.createTimeRanges(t)}(e),i=0;i<n.length;i++){var r=n.start(i),s=n.end(i);if(t-r<4&&t-r>2)return{start:r,end:s}}return null},e}(),tl={errorInterval:30,getSource:function(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},nl=function e(t,n){var i=0,r=0,s=vo.mergeOptions(tl,n);t.ready(function(){t.trigger({type:"usage",name:"vhs-error-reload-initialized"}),t.trigger({type:"usage",name:"hls-error-reload-initialized"})});var o=function(){r&&t.currentTime(r)},a=function(e){null!=e&&(r=t.duration()!==1/0&&t.currentTime()||0,t.one("loadedmetadata",o),t.src(e),t.trigger({type:"usage",name:"vhs-error-reload"}),t.trigger({type:"usage",name:"hls-error-reload"}),t.play())},c=function(){return Date.now()-i<1e3*s.errorInterval?(t.trigger({type:"usage",name:"vhs-error-reload-canceled"}),void t.trigger({type:"usage",name:"hls-error-reload-canceled"})):s.getSource&&"function"==typeof s.getSource?(i=Date.now(),s.getSource.call(t,a)):void vo.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")},l=function e(){t.off("loadedmetadata",o),t.off("error",c),t.off("dispose",e)};t.on("error",c),t.on("dispose",l),t.reloadSourceOnError=function(n){l(),e(t,n)}},il={PlaylistLoader:la,Playlist:Qo,utils:ka,STANDARD_PLAYLIST_SELECTOR:sc,INITIAL_PLAYLIST_SELECTOR:function(){var e=this,t=this.playlists.master.playlists.filter(Qo.isEnabled);return nc(t,function(e,t){return ic(e,t)}),t.filter(function(t){return!!Ka(e.playlists.master,t).video})[0]||null},lastBandwidthSelector:sc,movingAverageBandwidthSelector:function(e){var t=-1,n=-1;if(e<0||e>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var i=this.useDevicePixelRatio&&s.a.devicePixelRatio||1;return t<0&&(t=this.systemBandwidth,n=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==n&&(t=e*this.systemBandwidth+(1-e)*t,n=this.systemBandwidth),rc(this.playlists.master,t,parseInt(tc(this.tech_.el(),"width"),10)*i,parseInt(tc(this.tech_.el(),"height"),10)*i,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}},comparePlaylistBandwidth:ic,comparePlaylistResolution:function(e,t){var n,i;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(n=e.attributes.RESOLUTION.width),t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(i=t.attributes.RESOLUTION.width),(n=n||s.a.Number.MAX_VALUE)===(i=i||s.a.Number.MAX_VALUE)&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:n-i},xhr:pa()};
1Object.keys(Ea).forEach(function(e){Object.defineProperty(il,e,{get:function(){return vo.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),Ea[e]},set:function(t){vo.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),"number"!=typeof t||t<0?vo.log.warn("value of Vhs."+e+" must be greater than or equal to 0"):Ea[e]=t}})});var rl=function(e,t){for(var n=t.media(),i=-1,r=0;r<e.length;r++)if(e[r].id===n.id){i=r;break}e.selectedIndex_=i,e.trigger({selectedIndex:i,type:"change"})};il.canPlaySource=function(){return vo.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var sl=function(){if(!s.a.localStorage)return null;var e=s.a.localStorage.getItem("videojs-vhs");if(!e)return null;try{return JSON.parse(e)}catch(t){return null}};il.supportsNativeHls=function(){if(!a.a||!a.a.createElement)return!1;var e=a.a.createElement("video");return!!vo.getTech("Html5").isSupported()&&["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(t){return/maybe|probably/i.test(e.canPlayType(t))})}(),il.supportsNativeDash=!!(a.a&&a.a.createElement&&vo.getTech("Html5").isSupported())&&/maybe|probably/i.test(a.a.createElement("video").canPlayType("application/dash+xml")),il.supportsTypeNatively=function(e){return"hls"===e?il.supportsNativeHls:"dash"===e&&il.supportsNativeDash},il.isSupported=function(){return vo.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var ol=function(e){function t(t,n,i){var r;if(r=e.call(this,n,vo.mergeOptions(i.hls,i.vhs))||this,i.hls&&Object.keys(i.hls).length&&vo.log.warn("Using hls options is deprecated. Please rename `hls` to `vhs` in your options object."),"number"==typeof i.initialBandwidth&&(r.options_.bandwidth=i.initialBandwidth),r.logger_=So("VhsHandler"),n.options_&&n.options_.playerId){var s=vo(n.options_.playerId);s.hasOwnProperty("hls")||Object.defineProperty(s,"hls",{get:function(){return vo.log.warn("player.hls is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"hls-player-access"}),p()(r)},configurable:!0}),s.hasOwnProperty("vhs")||Object.defineProperty(s,"vhs",{get:function(){return vo.log.warn("player.vhs is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"vhs-player-access"}),p()(r)},configurable:!0}),s.hasOwnProperty("dash")||Object.defineProperty(s,"dash",{get:function(){return vo.log.warn("player.dash is deprecated. Use player.tech().vhs instead."),p()(r)},configurable:!0}),r.player_=s}if(r.tech_=n,r.source_=t,r.stats={},r.ignoreNextSeekingEvent_=!1,r.setOptions_(),r.options_.overrideNative&&n.overrideNativeAudioTracks&&n.overrideNativeVideoTracks)n.overrideNativeAudioTracks(!0),n.overrideNativeVideoTracks(!0);else if(r.options_.overrideNative&&(n.featuresNativeVideoTracks||n.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return r.on(a.a,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(e){var t=a.a.fullscreenElement||a.a.webkitFullscreenElement||a.a.mozFullScreenElement||a.a.msFullscreenElement;t&&t.contains(r.tech_.el())?r.masterPlaylistController_.fastQualityChange_():r.masterPlaylistController_.checkABR_()}),r.on(r.tech_,"seeking",function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())}),r.on(r.tech_,"error",function(){this.tech_.error()&&this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()}),r.on(r.tech_,"play",r.play),r}g()(t,e);var n=t.prototype;return n.setOptions_=function(){var e=this;if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=!1!==this.options_.handleManifestRedirects,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,"number"!=typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){var t=sl();t&&t.bandwidth&&(this.options_.bandwidth=t.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),t&&t.throughput&&(this.options_.throughput=t.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=Ea.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===Ea.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","experimentalBufferBasedABR","liveRangeSafeTimeDelta","experimentalLLHLS","useNetworkInformationApi","useDtsForTimestampOffset","experimentalExactManifestTimings","experimentalLeastPixelDiffSelector"].forEach(function(t){void 0!==e.source_[t]&&(e.options_[t]=e.source_[t])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio},n.src=function(e,t){var n=this;if(e){var i;this.setOptions_(),this.options_.src=0===(i=this.source_.src).toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(i.substring(i.indexOf(",")+1)):i,this.options_.tech=this.tech_,this.options_.externVhs=il,this.options_.sourceType=K(t),this.options_.seekTo=function(e){n.tech_.setCurrentTime(e)},this.options_.smoothQualityChange&&vo.log.warn("smoothQualityChange is deprecated and will be removed in the next major version"),this.masterPlaylistController_=new Xc(this.options_);var r=vo.mergeOptions({liveRangeSafeTimeDelta:.1},this.options_,{seekable:function(){return n.seekable()},media:function(){return n.masterPlaylistController_.media()},masterPlaylistController:this.masterPlaylistController_});this.playbackWatcher_=new el(r),this.masterPlaylistController_.on("error",function(){var e=vo.players[n.tech_.options_.playerId],t=n.masterPlaylistController_.error;"object"!=typeof t||t.code?"string"==typeof t&&(t={message:t,code:3}):t.code=3,e.error(t)});var o=this.options_.experimentalBufferBasedABR?il.movingAverageBandwidthSelector(.55):il.STANDARD_PLAYLIST_SELECTOR;this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):o.bind(this),this.masterPlaylistController_.selectInitialPlaylist=il.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(e){this.masterPlaylistController_.selectPlaylist=e.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=e,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){var e=this.masterPlaylistController_.mainSegmentLoader_.bandwidth,t=s.a.navigator.connection||s.a.navigator.mozConnection||s.a.navigator.webkitConnection;if(this.options_.useNetworkInformationApi&&t){var n=1e3*t.downlink*1e3;e=n>=1e7&&e>=1e7?Math.max(e,n):n}return e},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=e,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){return Math.floor(1/(1/(this.bandwidth||1)+(this.throughput>0?1/this.throughput:0)))},set:function(){vo.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return n.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return n.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return n.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return n.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return n.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return n.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return n.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return n.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return n.masterPlaylistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return n.masterPlaylistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return n.masterPlaylistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return Ao(n.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return n.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return n.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return n.tech_.name_},enumerable:!0},duration:{get:function(){return n.tech_.duration()},enumerable:!0},master:{get:function(){return n.playlists.master},enumerable:!0},playerDimensions:{get:function(){return n.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return Ao(n.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return n.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",function(){n.options_.useBandwidthFromLocalStorage&&function(e){if(!s.a.localStorage)return!1;var t=sl();t=t?vo.mergeOptions(t,e):e;try{s.a.localStorage.setItem("videojs-vhs",JSON.stringify(t))}catch(n){return!1}}({bandwidth:n.bandwidth,throughput:Math.round(n.throughput)})}),this.masterPlaylistController_.on("selectedinitialmedia",function(){var e;(e=n).representations=function(){var t=e.masterPlaylistController_.master(),n=Zo(t)?e.masterPlaylistController_.getAudioTrackPlaylists_():t.playlists;return n?n.filter(function(e){return!Uo(e)}).map(function(t,n){return new Kc(e,t,t.id)}):[]}}),this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",function(){n.setupEme_()}),this.on(this.masterPlaylistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.masterPlaylistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=s.a.URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}},n.createKeySessions_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),function(e){var t=e.player,n=e.sourceKeySystems,i=e.audioMedia,r=e.mainPlaylists;if(!t.eme.initializeMediaKeys)return Promise.resolve();var s,o,a=(s=i?r.concat([i]):r,o=Object.keys(n),s.reduce(function(e,t){if(!t.contentProtection)return e;var n=o.reduce(function(e,n){var i=t.contentProtection[n];return i&&i.pssh&&(e[n]={pssh:i.pssh}),e},{});return Object.keys(n).length&&e.push(n),e},[])),c=[],l=[];return a.forEach(function(e){l.push(new Promise(function(e,n){t.tech_.one("keysessioncreated",e)})),c.push(new Promise(function(n,i){t.eme.initializeMediaKeys({keySystems:e},function(e){e?i(e):n()})}))}),Promise.race([Promise.all(c),Promise.race(l)])}({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:t&&t.media(),mainPlaylists:this.playlists.master.playlists}).then(function(){e.logger_("created EME key session"),e.masterPlaylistController_.sourceUpdater_.initializedEme()}).catch(function(t){e.logger_("error while creating EME key session",t),e.player_.error({message:"Failed to initialize media ke
1ys for EME",code:3})})},n.handleWaitingForKey_=function(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()},n.setupEme_=function(){var e,t,n,i=this,r=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader,s=(t=(e={player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:r&&r.media()}).player,!(!(n=function(e,t,n){if(!e)return e;var i={};t&&t.attributes&&t.attributes.CODECS&&(i=Qa(W(t.attributes.CODECS))),n&&n.attributes&&n.attributes.CODECS&&(i.audio=n.attributes.CODECS);var r=Y(i.video),s=Y(i.audio),o={};for(var a in e)o[a]={},s&&(o[a].audioContentType=s),r&&(o[a].videoContentType=r),t.contentProtection&&t.contentProtection[a]&&t.contentProtection[a].pssh&&(o[a].pssh=t.contentProtection[a].pssh),"string"==typeof e[a]&&(o[a].url=e[a]);return vo.mergeOptions(e,o)}(e.sourceKeySystems,e.media,e.audioMedia))||(t.currentSource().keySystems=n,n&&!t.eme&&(vo.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),1))));this.player_.tech_.on("keystatuschange",function(e){if("output-restricted"===e.status){var t=i.masterPlaylistController_.master();if(t&&t.playlists){var n,r=[];
1t.playlists.forEach(function(e){e&&e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height>=720&&(!e.excludeUntil||e.excludeUntil<1/0)&&(e.excludeUntil=1/0,r.push(e))}),r.length&&((n=vo.log).warn.apply(n,['DRM keystatus changed to "output-restricted." Removing the following HD playlists that will most likely fail to play and clearing the buffer. This may be due to HDCP restrictions on the stream and the capabilities of the current device.'].concat(r)),i.masterPlaylistController_.fastQualityChange_())}}}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),11!==vo.browser.IE_VERSION&&s?this.createKeySessions_():this.masterPlaylistController_.sourceUpdater_.initializedEme()},n.setupQualityLevels_=function(){var e=this,t=vo.players[this.tech_.options_.playerId];t&&t.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=t.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",function(){var t,n;t=e.qualityLevels_,(n=e).representations().forEach(function(e){t.addQualityLevel(e)}),rl(t,n.playlists)}),this.playlists.on("mediachange",function(){rl(e.qualityLevels_,e.playlists)}))},t.version=function(){return{"@videojs/http-streaming":"2.15.1","mux.js":"6.0.1","mpd-parser":"0.22.1","m3u8-parser":"4.8.0","aes-decrypter":"3.1.3"}},n.version=function(){return this.constructor.version()},n.canChangeType=function(){return Mc.canChangeType()},n.play=function(){this.masterPlaylistController_.play()},n.setCurrentTime=function(e){this.masterPlaylistController_.setCurrentTime(e)},n.duration=function(){return this.masterPlaylistController_.duration()},n.seekable=function(){return this.masterPlaylistController_.seekable()},n.dispose=function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.tech_&&delete this.tech_.hls,this.mediaSourceUrl_&&s.a.URL.revokeObjectURL&&(s.a.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),e.prototype.dispose.call(this)},n.convertToProgramTime=function(e,t){return function(e){var t=e.playlist,n=e.time,i=void 0===n?void 0:n,r=e.callback;if(!r)throw new Error("getProgramTime: callback must be provided");if(!t||void 0===i)return r({message:"getProgramTime: playlist and time must be provided"});var s=function(e,t){if(!t||!t.segments||0===t.segments.length)return null;for(var n,i=0,r=0;r<t.segments.length&&!(e<=(i=(n=t.segments[r]).videoTimingInfo?n.videoTimingInfo.transmuxedPresentationEnd:i+n.duration));r++);var s=t.segments[t.segments.length-1];if(s.videoTimingInfo&&s.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>i){if(e>i+.25*s.duration)return null;n=s}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:i-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}}(i,t);if(!s)return r({message:"valid programTime was not found"});if("estimate"===s.type)return r({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:s.estimatedStart});var o={mediaSeconds:i},a=function(e,t){if(!t.dateTimeObject)return null;var n=e-(t.videoTimingInfo.transmuxedPresentationStart+t.videoTimingInfo.transmuxerPrependedSeconds);return new Date(t.dateTimeObject.getTime()+1e3*n)}(i,s.segment);return a&&(o.programDateTime=a.toISOString()),r(null,o)}({playlist:this.masterPlaylistController_.media(),time:e,callback:t})},n.seekToProgramTime=function(e,t,n,i){return void 0===n&&(n=!0),void 0===i&&(i=2),Ca({programTime:e,playlist:this.masterPlaylistController_.media(),retryCount:i,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})},t}(vo.getComponent("Component")),al={name:"videojs-http-streaming",VERSION:"2.15.1",canHandleSource:function(e,t){void 0===t&&(t={});var n=vo.mergeOptions(vo.options,t);return al.canPlayType(e.type,n)},handleSource:function(e,t,n){void 0===n&&(n={});var i=vo.mergeOptions(vo.options,n);return t.vhs=new ol(e,t,i),vo.hasOwnProperty("hls")||Object.defineProperty(t,"hls",{get:function(){return vo.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),t.vhs},configurable:!0}),t.vhs.xhr=pa(),t.vhs.src(e.src,e.type),t.vhs},canPlayType:function(e,t){void 0===t&&(t={});var n=vo.mergeOptions(vo.options,t),i=n.vhs,r=(i=void 0===i?{}:i).overrideNative,s=void 0===r?!vo.browser.IS_ANY_SAFARI:r,o=n.hls,a=(o=void 0===o?{}:o).overrideNative,c=void 0!==a&&a,l=K(e);return l&&(!il.supportsTypeNatively(l)||c||s)?"maybe":""}};$("avc1.4d400d,mp4a.40.2")&&vo.getTech("Html5").registerSourceHandler(al,0),vo.VhsHandler=ol,Object.defineProperty(vo,"HlsHandler",{get:function(){return vo.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),ol},configurable:!0}),vo.VhsSourceHandler=al,Object.defineProperty(vo,"HlsSourceHandler",{get:function(){return vo.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),al},configurable:!0}),vo.Vhs=il,Object.defineProperty(vo,"Hls",{get:function(){return vo.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),il},configurable:!0}),vo.use||(vo.registerComponent("Hls",il),vo.registerComponent("
1Vhs",il)),vo.options.vhs=vo.options.vhs||{},vo.options.hls=vo.options.hls||{},vo.getPlugin&&vo.getPlugin("reloadSourceOnError")||(vo.registerPlugin||vo.plugin)("reloadSourceOnError",function(e){nl(this,e)});var cl=vo;const ll=["target"];let ul=(()=>{class e{constructor(e){this.elementRef=e,this.playerEntity=new i.o,this.end=new i.o,this.timeRanges=new i.o,this.paused=!1,this.loadeddata=!1,this.played=!1}ngOnInit(){let e=null,t=0;this.player=cl(this.target.nativeElement,this.options,()=>{console.log("onPlayerReady",this.player),this.playerEntity.emit(this.player)}),this.player.on("loadeddata",()=>{console.log("loaded data"),this.loadeddata=!0,this.played&&(e=window.setInterval(function(){t+=1},1e3))}),this.player.on("play",()=>{this.played=!0,console.log("played"),this.loadeddata&&(e=window.setInterval(function(){t+=1},1e3))}),this.player.on("ended",()=>{console.log("enddded"),this.end.emit(t)}),this.player.on("pause",()=>{if(e&&clearInterval(e),console.log("pause",this.player),this.paused=!0,this.played=!1,this.player.played().length){const e=[];for(let t=0;t<this.player.played().length;t++){const n=[this.player.played().start(t),this.player.played().end(t)];e.push(n),console.log(this.player.played().start(t),this.player.played().end(t))}this.timeRanges.emit(e)}})}log(){if(console.log(this.player.played().length),this.player.played().length)for(let e=0;e<this.player.played().length;e++)console.log(this.player.played().start(e),this.player.played().end(e))}playVideo(){this.player.paused()?(this.paused=!1,this.player.play()):this.player.pause()}ngOnDestroy(){this.player&&this.player.dispose()}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l))},e.\u0275cmp=i.Nb({type:e,selectors:[["vjs-player"]],viewQuery:function(e,t){if(1&e&&i.Vc(ll,3),2&e){let e;i.Ec(e=i.kc())&&(t.target=e.first)}},inputs:{options:"options"},outputs:{playerEntity:"playerEntity",end:"end",timeRanges:"timeRanges"},decls:2,vars:0,consts:[["playsinline","","preload","none",1,"video-js"],["target",""]],template:function(e,t){1&e&&i.Ub(0,"video",0,1)},styles:["vjs-player ::ng-deep .vjs-control-bar{display:none!important;visibility:hidden!important}vjs-player ::ng-deep .vjs-progress-control{display:none!important;visibility:hidden!important}"],encapsulation:2}),e})()},Fb9H:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"Webhook"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"Webhook",plural:"Webhooks",path:"Webhooks",idName:"id",properties:{key:{name:"key",type:"string"},url:{name:"url",type:"string"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{}}}}},Ficc:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("XNiG"),r=n("w1tV"),s=n("3E0/"),o=n("fXoL");let a=(()=>{class e{constructor(){this.layoutSize$=new i.a}changeLayoutSize(){this.layoutSize$.next()}onChangeLayoutSize(){return this.layoutSize$.pipe(Object(r.a)(),Object(s.a)(1))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=o.Pb({token:e,factory:e.\u0275fac}),e})()},G4OQ:function(e,t,n){},GJmQ:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(e,t=!1){return n=>n.lift(new s(e,t))}class s{constructor(e,t){this.predicate=e,this.inclusive=t}call(e,t){return t.subscribe(new o(e,this.predicate,this.inclusive))}}class o extends i.a{constructor(e,t,n){super(e),this.predicate=t,this.inclusive=n,this.index=0}_next(e){const t=this.destination;let n;try{n=this.predicate(e,this.index++)}catch(i){return void t.error(i)}this.nextOrComplete(e,n)}nextOrComplete(e,t){const n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}},GYvr:function(e,t,n){"use strict";n.d(t,"a",function(){return v});var i=n("fXoL"),r=n("3Pt+"),s=(n("14B+"),n("+z1p")),o=n("AytR"),a=n("tyNb"),c=n("ofXK"),l=n("zioG"),u=n("aceb");const d=["editor"];function h(e,t){1&e&&(i.Zb(0,"div",8),i.Zb(1,"div",9),i.Ub(2,"span"),i.Yb(),i.Zb(3,"b",10),i.Qc(4,"Caricamento..."),i.Yb(),i.Yb())}function p(e,t){1&e&&(i.Zb(0,"button",11),i.Qc(1,"CARICA UN'IMMAGINE"),i.Yb())}const f=function(e,t){return{green:e,red:t}};function g(e,t){if(1&e&&(i.Zb(0,"p",12),i.Zb(1,"b",13),i.Qc(2),i.Yb(),i.Zb(3,"b"),i.Qc(4," / 5230 caratteri"),i.Yb(),i.Yb()),2&e){const e=i.nc();i.Gb(1),i.tc("ngClass",i.zc(2,f,e.count_c<=5230,e.count_c>5200)),i.Gb(1),i.Sc("",e.count_c," ")}}function m(e,t){1&e&&(i.Zb(0,"p"),i.Qc(1,"Il corpo dell'abstract eccede la lunghezza massima di 5230 caratteri."),i.Yb())}const b=function(){return["heading","|","bold","italic","link","blockQuote","bulletedList","numberedList","|","undo","redo"]},y=function(e){return{placeholder:"Inserisci il corpo dell'abstract qui",language:"it",toolbar:e}};let v=(()=>{class e{constructor(e,t){this.route=e,this.fb=t,this.Editor=s,this.modules={},this.count_w=0,this.count_c=0,this.loading=!1,this.change=new i.o,this.characters=new i.o,this.selectLocalImage=()=>{console.log(this.abstractId);const e=document.createElement("input");e.setAttribute("type","file"),e.click(),console.log("a"),e.onchange=()=>{console.log(e)}},this.abstractId=e.snapshot.paramMap.get("id")}ngOnInit(){console.log(this.abstractId),this.modules=this.disabled?{toolbar:[]}:{blotFormatter:{}
1,toolbar:[["bold"],["image"]]},console.log(this.text),this.formGroup||(this.disabled=!1,this.formGroup=this.fb.group({})),this.control=new r.d({value:this.text,disabled:this.disabled},r.y.required),this.formGroup.addControl("content",this.control),console.log(this.formGroup),this.content=this.text}counter(e,t){let n=(new DOMParser).parseFromString(e,"text/html"),i=0;for(let s=0;s<n.images.length;s++){const e=2.54*n.images[s].height/96;console.log(n.images[s].height);const t=e/.4,r=.195*n.images[s].width;console.log(r),i+=Math.trunc(t*r),console.log(i)}const r=t.trim();this.count_w=r?r.split(/\s+/).length:0,this.count_c=r.length+i,this.characters.emit(this.count_c)}insertToEditor(e){console.log(e),this.editorComponent.editorInstance.setData(this.editorComponent.editorInstance.getData()+"<img src="+e+' width="50"/>'),this.loading=!1,this.count_c+=Math.trunc(4779.036458333334),console.log(this.count_c),this.characters.emit(this.count_c)}uploadImage(e){const t=e.target.files[0];if(console.log(t),t.size>15e5)alert("Immagine troppo grande, dimensione massima contentita 1,5 Mb");else if(/^image\//.test(t.type)){const e=new FormData;e.append("image",t);const n=new XMLHttpRequest;n.withCredentials=!0,this.loading=!0,n.open("POST",(o.a.production?"https://congressi.simi.it":"http://localhost:3000")+"/api/CongressSubmissions/"+this.abstractId+"/upload/image",!0),n.onload=()=>{if(200===n.status){console.log(JSON.parse(n.responseText));const e=JSON.parse(n.responseText).Location;this.insertToEditor(e)}},n.send(e)}else alert("Puoi caricare solo immagini"),console.warn("You could only upload images.")}getEditorInstance(e){console.log(e),this.editorInstance=e,e.getModule("toolbar").addHandler("image",this.selectLocalImage)}ready(e){console.log(e.getData())}onChange(e){console.log(e,this.editorComponent.editorInstance.getData()),this.plainText=this.htmlToText(this.editorComponent.editorInstance.getData()),console.log(this.plainText),this.counter(this.editorComponent.editorInstance.getData(),this.plainText)}htmlToText(e){return e.replace(/<[^>]*>/g,"").replace(" ","")}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(a.a),i.Tb(r.c))},e.\u0275cmp=i.Nb({type:e,selectors:[["ngx-abstract-editor"]],viewQuery:function(e,t){if(1&e&&i.Vc(d,1),2&e){let e;i.Ec(e=i.kc())&&(t.editorComponent=e.first)}},inputs:{formGroup:"formGroup",text:"text",disabled:"disabled"},outputs:{change:"change",characters:"characters"},decls:8,vars:11,consts:[["style"," position: absolute;\n margin-left: 8rem;\n margin-top: 6px;","class","row",4,"ngIf"],["required","",3,"editor","formControl","disabled","config","change","ready"],["editor",""],["id","img","type","file","formenctype","multipart/form-data",2,"display","none",3,"change"],["nbButton","","class","mt-2 mb-4","type","button","onclick","document.getElementById('img').click();",4,"ngIf"],["style","float: right; color: grey;",4,"ngIf"],[2,"justify-content","center","display","flex","color","red","margin-top","2rem"],[4,"ngIf"],[1,"row",2,"position","absolute","margin-left","8rem","margin-top","6px"],[1,"loader-1","center"],[2,"margin-top","5px","margin-left","1rem"],["nbButton","","type","button","onclick","document.getElementById('img').click();",1,"mt-2","mb-4"],[2,"float","right","color","grey"],[3,"ngClass"]],template:function(e,t){1&e&&(i.Oc(0,h,5,0,"div",0),i.Zb(1,"ckeditor",1,2),i.jc("change",function(e){return t.onChange(e)})("ready",function(e){return t.ready(e)}),i.Yb(),i.Zb(3,"input",3),i.jc("change",function(e){return t.uploadImage(e)}),i.Yb(),i.Oc(4,p,2,0,"button",4),i.Oc(5,g,5,5,"p",5),i.Zb(6,"div",6),i.Oc(7,m,2,0,"p",7),i.Yb()),2&e&&(i.tc("ngIf",t.loading),i.Gb(1),i.tc("editor",t.Editor)("formControl",t.formGroup.controls.content)("disabled",t.disabled)("config",i.yc(9,y,i.xc(8,b))),i.Gb(3),i.tc("ngIf",!t.disabled),i.Gb(1),i.tc("ngIf",t.count_c),i.Gb(2),i.tc("ngIf",t.count_c&&t.count_c>5230))},directives:[c.n,l.a,r.w,r.o,r.e,u.o,c.l],styles:['.form-control-danger{border-color:red}.green{color:green}.red{color:red}.loader-1{height:32px;width:32px;-webkit-animation:loader-1-1 4.8s linear infinite;animation:loader-1-1 4.8s linear infinite}@-webkit-keyframes loader-1-1{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(1turn)}}@keyframes loader-1-1{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}
1.loader-1 span{display:block;position:absolute;top:0;left:0;bottom:0;right:0;margin:auto;height:32px;width:32px;clip:rect(0,32px,32px,16px);-webkit-animation:loader-1-2 1.2s linear infinite;animation:loader-1-2 1.2s linear infinite}@-webkit-keyframes loader-1-2{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(220deg)}}@keyframes loader-1-2{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(220deg);transform:rotate(220deg)}}.loader-1 span:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;margin:auto;height:32px;width:32px;clip:rect(0,32px,32px,16px);border:3px solid #000;border-radius:50%;-webkit-animation:loader-1-3 1.2s cubic-bezier(.77,0,.175,1) infinite;animation:loader-1-3 1.2s cubic-bezier(.77,0,.175,1) infinite}@-webkit-keyframes loader-1-3{0%{-webkit-transform:rotate(-140deg)}50%{-webkit-transform:rotate(-160deg)}to{-webkit-transform:rotate(140deg)}}@keyframes loader-1-3{0%{-webkit-transform:rotate(-140deg);transform:rotate(-140deg)}50%{-webkit-transform:rotate(-160deg);transform:rotate(-160deg)}to{-webkit-transform:rotate(140deg);transform:rotate(140deg)}}'],encapsulation:2}),e})()},Gtye:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getPayment(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPaymentTransactions/:id/payment",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getTarget(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPaymentTransactions/:id/target",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPaymentTransactions/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}getUncompleted(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPaymentTransactions/uncompleted",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countUncompleted(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPaymentTransactions/uncompleted/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}getCompleted(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPaymentTransactions/completed",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countCompleted(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPaymentTransactions/completed/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}execute(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPaymentTransactions/:id/execute";return this.request("POST",n,{id:e},{},{},null,t)}getModelName(){return"SimiPaymentTransaction"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},GyhO:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("LRne"),r=n("0EUg");function s(...e){return Object(r.a)()(Object(i.a)(...e))}},HDdC:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("8Qeq"),r=n("7o/Q"),s=n("2QA8"),o=n("gRHU"),a=n("kJWO"),c=n("mCNh"),l=n("2fFW");let u=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:i}=this,a=function(e,t,n){if(e){if(e instanceof r.a)return e;if(e[s.a])return e[s.a]()}return e||t||n?new r.a(e,t,n):new r.a(o.a)}(e,t,n);if(a.add(i?i.call(a,this.source):this.source||l.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(e){try{return this._subscribe(e)}catch(t){l.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),Object(i.a)(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=d(t))((t,n)=>{let i;i=this.subscribe(t=>{try{e(t)}catch(r){n(r),i&&i.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[a.a](){return this}pipe(...e){return 0===e.length?this:Object(c.b)(e)(this)}toPromise(e){return new(e=d(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function d(e){if(e||(e=l.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},HiID:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Templates/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}getAdministration(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Templates/administration",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countAdministration(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Templates/administration/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}getByIdAdministration(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Templates/:id/administration",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createAdministration(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Templates/administration";return this.request("POST",n,{},{},{data:e},null,t)}updateAllAdministration(e={},t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Templates/administration",r={data:t},s={};return null!=e&&(s.where=e),this.request("PATCH",i,{},s,r,null,n)}destroyAllAdministration(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Templates/administration",i={};return null!=e&&(i.where=e),this.request("DELETE",n,{},i,{},null,t)}getCongress(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Templates/congress",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countCongress(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Templates/congress/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}getByIdCongress(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Templates/:id/congress",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createCongress(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Templates/congress";return this.request("POST",n,{},{},{data:e},null,t)}updateAllCongress(e={},t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Templates/congress",r={data:t},s={};return null!=e&&(s.where=e),this.request("PATCH",i,{},s,r,null,n)}destroyAllCongress(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Templates/congress",i={};return null!=e&&(i.where=e),this.request("DELETE",n,{},i,{},null,t)}getSurvey(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Templates/survey",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countSurvey(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Templates/survey/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}getByIdSurvey(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Templates/:id/survey",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createSurvey(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Templates/survey";return this.request("POST",n,{},{},{data:e},null,t)}updateAllSurvey(e={},t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Templates/survey",r={data:t},s={};return null!=e&&(s.where=e),this.request("PATCH",i,{},s,r,null,n)}destroyAllSurvey(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Templates/survey",i={};return null!=e&&(i.where=e),this.request("DELETE",n,{},i,{},null,t)}createManyAdministration(e=[],t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Templates/administration";return this.request("POST",n,{},{},{data:e},null,t)}createManyCongress(e=[],t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Templates/congress";return this.request("POST",n,{},{},{data:e},null,t)}createManySurvey(e=[],t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Templates/survey";return this.request("POST",n,{},{},{data:e},null,t)}getModelName(){return"Template"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},I55L:function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=e=>e&&"number"==typeof e.length&&"function"!=typeof e},IAMq:function(e,t,n){"use strict";n.d(t,"a",function(){return g});var i=n("GJmQ"),r=n("zp1y"),s=n("3E0/"),o=n("5MUS"),a=n("fXoL"),c=n("aceb"),l=n("KWzY"),u=n("ofXK");function d(e,t){if(1&e&&(a.Zb(0,"nb-layout-column",6),a.Ub(1,"nb-menu",7),a.Yb()),2&e){const e=a.nc();a.Gb(1),a.tc("items",e.subMenu)}}function h(e,t){if(1&e&&(a.Zb(0,"nb-layout-column",8),a.Ub(1,"nb-menu",7),a.Yb()),2&e){const e=a.nc();a.Gb(1),a.tc("items",e.subMenu)}}const p=[[["nb-menu"]],[["router-outlet"]]],f=["nb-menu","router-outlet"];let g=(()=>{class e{constructor(e,t,n,o,a){this.stateService=e,this.menuService=t,this.themeService=n,this.bpService=o,this.sidebarService=a,this.subMenu=[{title:"PAGE LEVEL MENU",group:!0}
1,{title:"Buttons",icon:"ion ion-android-radio-button-off",link:"/pages/ui-features/buttons"},{title:"Grid",icon:"ion ion-android-radio-button-off",link:"/pages/ui-features/grid"},{title:"Icons",icon:"ion ion-android-radio-button-off",link:"/pages/ui-features/icons"},{title:"Modals",icon:"ion ion-android-radio-button-off",link:"/pages/ui-features/modals"},{title:"Typography",icon:"ion ion-android-radio-button-off",link:"/pages/ui-features/typography"},{title:"Animated Searches",icon:"ion ion-android-radio-button-off",link:"/pages/ui-features/search-fields"},{title:"Tabs",icon:"ion ion-android-radio-button-off",link:"/pages/ui-features/tabs"}],this.layout={},this.sidebar={},this.alive=!0,this.stateService.onLayoutState().pipe(Object(i.a)(()=>this.alive)).subscribe(e=>this.layout=e),this.stateService.onSidebarState().pipe(Object(i.a)(()=>this.alive)).subscribe(e=>{this.sidebar=e});const c=this.bpService.getByName("is");this.menuService.onItemSelect().pipe(Object(i.a)(()=>this.alive),Object(r.a)(this.themeService.onMediaQueryChange()),Object(s.a)(20)).subscribe(([e,[t,n]])=>{n.width<=c.width&&this.sidebarService.collapse("menu-sidebar")}),this.themeService.getJsTheme().pipe(Object(i.a)(()=>this.alive)).subscribe(e=>{this.currentTheme=e.name})}ngOnDestroy(){this.alive=!1}}return e.\u0275fac=function(t){return new(t||e)(a.Tb(o.a),a.Tb(c.bb),a.Tb(c.Db),a.Tb(c.Y),a.Tb(c.qb))},e.\u0275cmp=a.Nb({type:e,selectors:[["ngx-sample-layout"]],ngContentSelectors:f,decls:9,vars:4,consts:[["windowMode","",3,"center"],["fixed","",2,"z-index","990"],["tag","menu-sidebar","responsive","",1,"menu-sidebar",3,"end"],[1,"main-content"],["start","","class","small",4,"ngIf"],["class","small",4,"ngIf"],["start","",1,"small"],[3,"items"],[1,"small"]],template:function(e,t){1&e&&(a.sc(p),a.Zb(0,"nb-layout",0),a.Zb(1,"nb-layout-header",1),a.Ub(2,"ngx-header"),a.Yb(),a.Zb(3,"nb-sidebar",2),a.rc(4),a.Yb(),a.Zb(5,"nb-layout-column",3),a.rc(6,1),a.Yb(),a.Oc(7,d,2,1,"nb-layout-column",4),a.Oc(8,h,2,1,"nb-layout-column",5),a.Yb()),2&e&&(a.tc("center","center-column"===t.layout.id),a.Gb(3),a.tc("end","end"===t.sidebar.id),a.Gb(4),a.tc("ngIf","two-column"===t.layout.id||"three-column"===t.layout.id),a.Gb(1),a.tc("ngIf","three-column"===t.layout.id))},directives:[c.P,c.T,l.a,c.nb,c.O,u.n,c.Z],styles:[".nb-theme-default [_nghost-%COMP%] nb-layout-column.small[_ngcontent-%COMP%]{-webkit-box-flex:0.15!important;-ms-flex:0.15!important;flex:0.15!important}.nb-theme-default [_nghost-%COMP%] nb-sidebar.settings-sidebar[_ngcontent-%COMP%]{-webkit-transition:width .3s ease;transition:width .3s ease;width:7.5rem;overflow:hidden}.nb-theme-default [_nghost-%COMP%] nb-sidebar.settings-sidebar[_ngcontent-%COMP%] .menu-title{-webkit-box-flex:0;-ms-flex:0 auto;flex:0 auto}.nb-theme-default [_nghost-%COMP%] nb-sidebar.settings-sidebar.collapsed[_ngcontent-%COMP%]{width:0}.nb-theme-default [_nghost-%COMP%] nb-sidebar.settings-sidebar.collapsed[_ngcontent-%COMP%] .main-container{width:0}.nb-theme-default [_nghost-%COMP%] nb-sidebar.settings-sidebar.collapsed[_ngcontent-%COMP%] .main-container .scrollable{width:7.5rem;padding:1.25rem}.nb-theme-default [_nghost-%COMP%] nb-sidebar.settings-sidebar[_ngcontent-%COMP%] .main-container{width:7.5rem;-webkit-transition:width .3s ease;transition:width .3s ease;overflow:hidden}.nb-theme-default [_nghost-%COMP%] nb-sidebar.settings-sidebar[_ngcontent-%COMP%] .main-container .scrollable{width:7.5rem}.nb-theme-default [_nghost-%COMP%] nb-sidebar.menu-sidebar[_ngcontent-%COMP%] nb-sidebar-header{padding-bottom:.5rem;text-align:center}.nb-theme-default [_nghost-%COMP%] nb-sidebar.menu-sidebar[_ngcontent-%COMP%] .main-btn[_ngcontent-%COMP%]{padding:.75rem 2.5rem;margin-top:-2rem;font-weight:700;-webkit-transition:padding .3s cubic-bezier(.18,.89,.32,1.48);transition:padding .3s cubic-bezier(.18,.89,.32,1.48)}.nb-theme-default [_nghost-%COMP%] nb-sidebar.menu-sidebar[_ngcontent-%COMP%] .main-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:2rem;text-shadow:0 1px 1px rgba(0,0,0,.2)}[dir=ltr] .nb-theme-default [_nghost-%COMP%] nb-sidebar.menu-sidebar[_ngcontent-%COMP%] .main-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding-left:.25rem}[dir=rtl] .nb-theme-default [_nghost-%COMP%] nb-sidebar.menu-sidebar[_ngcontent-%COMP%] .main-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding-right:.25rem}.nb-theme-default [_nghost-%COMP%] nb-sidebar.menu-sidebar[_ngcontent-%COMP%] .main-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .nb-theme-default [_nghost-%COMP%] nb-sidebar.menu-sidebar[_ngcontent-%COMP%] .main-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{vertical-align:middle}.nb-theme-default [_nghost-%COMP%] nb-sidebar.menu-sidebar.compacted[_ngcontent-%COMP%] nb-sidebar-header{padding-left:0;padding-right:0}.nb-theme-default [_nghost-%COMP%] nb-sidebar.menu-sidebar.compacted[_ngcontent-%COMP%] .main-btn[_ngcontent-%COMP%]{width:46px;height:44px;padding:.375rem;border-radius:5px;-webkit-transition:none;transition:none}.nb-theme-default [_nghost-%COMP%] nb-sidebar.menu-sidebar.compacted[_ngcontent-%COMP%] .main-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:none}@media (max-width:399.98px){.nb-theme-default [_nghost-%COMP%] .main-content[_ngcontent-%COMP%]{padding:.75rem!important}}@media (max-width:767.98px){.nb-theme-default [_nghost-%COMP%] nb-sidebar.menu-sidebar[_ngcontent-%COMP%]{margin-top:0}.nb-theme-default [_nghost-%COMP%] nb-sidebar.menu-sidebar[_ngcontent-%COMP%] .main-container .scrollable{padding-top:0}.nb-theme-default [_nghost-%COMP%] .main-btn[_ngcontent-%COMP%]{display:none}}"]}),e})()},IHbA:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiAssociate"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiAssociate",plural:"SimiAssociates",path:"SimiAssociates",idName:"id",properties:{userId:{name:"userId",type:"any"}
1,attachments:{name:"attachments",type:"Array<any>"},sezione_regionale:{name:"sezione_regionale",type:"string"},category:{name:"category",type:"string"},qualifica:{name:"qualifica",type:"string"},specializzazioni:{name:"specializzazioni",type:"Array<any>"},campi_interesse:{name:"campi_interesse",type:"Array<any>"},data_ammissione:{name:"data_ammissione",type:"Date"},note:{name:"note",type:"string"},saldo:{name:"saldo",type:"number",default:0},in_regola:{name:"in_regola",type:"boolean"},anno_scoperto:{name:"anno_scoperto",type:"number"},in_regola_congresso:{name:"in_regola_congresso",type:"boolean"},payer_institute:{name:"payer_institute",type:"string"},instituteId:{name:"instituteId",type:"any"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"},deleted:{name:"deleted",type:"Date"}},relations:{institute:{name:"institute",type:"SimiInstitute",model:"SimiInstitute",relationType:"belongsTo",keyFrom:"instituteId",keyTo:"id"},section:{name:"section",type:"SimiSection",model:"SimiSection",relationType:"belongsTo",keyFrom:"sezione_regionale",keyTo:"name"},payments:{name:"payments",type:"SimiPayment[]",model:"SimiPayment",relationType:"hasMany",keyFrom:"id",keyTo:"associateId"},fees:{name:"fees",type:"SimiPaymentFee[]",model:"SimiPaymentFee",relationType:"hasMany",keyFrom:"id",keyTo:"associateId"},user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},IIog:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getTarget(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Reports/:id/target",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Reports/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Reports/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}getCreated(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Reports/created",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countCreated(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Reports/created/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}getByIdCreated(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Reports/:id/created",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}getProcessed(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Reports/processed",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countProcessed(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Reports/processed/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}getByIdProcessed(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Reports/:id/processed",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}getApproved(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Reports/approved",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countApproved(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Reports/approved/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}getByIdApproved(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Reports/:id/approved",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}getClosed(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Reports/closed",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countClosed(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Reports/closed/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}getByIdClosed(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Reports/:id/closed",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}getRejected(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Reports/rejected",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countRejected(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Reports/rejected/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}getByIdRejected(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Reports/:id/rejected",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}getModelName(){return"Report"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},IQtQ:function(e,t,n){var i=n("4ciW");
1t.DOMImplementation=i.DOMImplementation,t.XMLSerializer=i.XMLSerializer,t.DOMParser=n("sHRr").DOMParser},IjjT:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("Y/cZ");class r extends i.a{constructor(e,t=i.a.now){super(e,()=>r.delegate&&r.delegate!==this?r.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return r.delegate&&r.delegate!==this?r.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}},IvGc:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiBoard"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiBoard",plural:"SimiBoards",path:"SimiBoards",idName:"id",properties:{id:{name:"id",type:"string"},name:{name:"name",type:"string"},description:{name:"description",type:"string"},url:{name:"url",type:"string"},logo:{name:"logo",type:"any"},cover:{name:"cover",type:"any"},hierarchy:{name:"hierarchy",type:"Array<any>"},date:{name:"date",type:"Date"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{members:{name:"members",type:"SimiBoardMember[]",model:"SimiBoardMember",relationType:"hasMany",keyFrom:"id",keyTo:"boardId"}}}}}},IzEk:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("7o/Q"),r=n("4I5i"),s=n("EY2u");function o(e){return t=>0===e?Object(s.b)():t.lift(new a(e))}class a{constructor(e){if(this.total=e,this.total<0)throw new r.a}call(e,t){return t.subscribe(new c(e,this.total))}}class c extends i.a{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}},J6Nv:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},JIr8:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("zx2A");function r(e){return function(t){const n=new s(e),i=t.lift(n);return n.caught=i}}class s{constructor(e){this.selector=e}call(e,t){return t.subscribe(new o(e,this.selector,this.caught))}}class o extends i.b{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const r=new i.a(this);this.add(r);const s=Object(i.c)(n,r);s!==r&&this.add(s)}}}},JX91:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("GyhO"),r=n("z+Ro");function s(...e){const t=e[e.length-1];return Object(r.a)(t)?(e.pop(),n=>Object(i.a)(e,n,t)):t=>Object(i.a)(e,t)}},JmXh:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"CampaignRecord"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"CampaignRecord",plural:"CampaignRecords",path:"CampaignRecords",idName:"id",properties:{campaignId:{name:"campaignId",type:"string"},action:{name:"action",type:"string"},targetId:{name:"targetId",type:"string"},content:{name:"content",type:"string"},id:{name:"id",type:"any"},timestamp:{name:"timestamp",type:"Date"}},relations:{}}}}},"Ju5/":function(e,t,n){"use strict";var i=n("XqMk"),r="object"==typeof self&&self&&self.Object===Object&&self,s=i.a||r||Function("return this")();t.a=s},JzKC:function(e,t,n){const i=n("aZ40");t.mul=function(e,t){const n=new Uint8Array(e.length+t.length-1);for(let r=0;r<e.length;r++)for(let s=0;s<t.length;s++)n[r+s]^=i.mul(e[r],t[s]);return n},t.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){const e=n[0];for(let s=0;s<t.length;s++)n[s]^=i.mul(t[s],e);let r=0;for(;r<n.length&&0===n[r];)r++;n=n.slice(r)}return n},t.generateECPolynomial=function(e){let n=new Uint8Array([1]);for(let r=0;r<e;r++)n=t.mul(n,new Uint8Array([1,i.exp(r)]));return n}},K4mn:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CampaignTargets/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}getModelName(){return"CampaignTarget"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},K4wu:function(e,t,n){var i=n("vgmO"),r=e.exports={WebVTT:n("0CxO"),VTTCue:n("sDzi"),VTTRegion:n("+X0y")};i.vttjs=r,i.WebVTT=r.WebVTT;var s=r.VTTCue,o=r.VTTRegion,a=i.VTTCue,c=i.VTTRegion;r.shim=function(){i.VTTCue=s,i.VTTRegion=o},r.restore=function(){i.VTTCue=a,i.VTTRegion=c},i.VTTCue||r.shim()},KPoR:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("XdDp"),a=n("wET7"),c=n("fXoL");let l=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getModelName(){return"Resource"}}return e.\u0275fac=function(t){return new(t||e)(c.gc(i.b),c.gc(r.a),c.gc(o.a),c.gc(a.a,8))},e.\u0275prov=c.Pb({token:e,factory:e.\u0275fac}),e})()},KWzY:function(e,t,n){"use strict";n.d(t,"a",function(){return f});var i=n("l7P3"),r=n("VYMQ"),s=n("o8co"),o=n("NTD5"),a=n("UOn2"),c=n("wQ+c"),l=n("fXoL"),u=n("aceb"),d=n("tyNb"),h=n("ofXK");function p(e,t){if(1&e&&(l.Zb(0,"nb-action",13),l.Ub(1,"nb-user",14),l.Yb()),2&e){const e=l.nc();l.Gb(1),l.tc("name",e.user.name)("picture",null==e.user?null:e.user.picture)}}let f=(()=>{class e{constructor(e,t,n,r,o,c){this.sidebarService=e,this.menuService=t,this.router=n,this.service=r,this.userService=o,this.store=c,this.position="normal",this.cardComponent=s.a,this.listComponent=s.b,this.userMenu=[{title:"Profile"}],this.userSubscription=c.pipe(Object(i.j)(a.b)).subscribe(e=>{this.user=e,console.log(e),this.user||(this.meSubscription=this.service.me().subscribe(e=>{console.log(e),this.user=e}))})}ngOnInit(){}toggleSidebar(){return this.sidebarService.toggle(!0,"menu-sidebar"),!1}toggleSettings(){return this.sidebarService.toggle(!1,"settings-sidebar"),!1}goToHome(){this.menuService.navigateHome()}logout(){window.confirm("Vuoi davvero uscire?")&&(localStorage.removeItem("userId"),this.service.logout().subscribe(e=>{this.store.dispatch(new c.e),this.router.navigate(["login"])},e=>{this.store.dispatch(new c.e),this.router.navigate(["login"])}))}ngOnDestroy(){this.userSubscription&&this.userSubscription.unsubscribe(),this.meSubscription&&this.meSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(l.Tb(u.qb),l.Tb(u.bb),l.Tb(d.c),l.Tb(r.a),l.Tb(o.a),l.Tb(i.b))},e.\u0275cmp=l.Nb({type:e,selectors:[["ngx-header"]],inputs:{position:"position"},decls:17,vars:2,consts:[[1,"header-container"],[1,"logo-containter"],["href","#",1,"sidebar-toggle",3,"click"],["icon","menu-2-outline"],[1,"logo"],["routerLink","/dashboard",1,"navigation"],["src","/assets/images/logo-simi.png",2,"width","60px"],[1,"ml-3",2,"display","inline"],[1,"portal-title"],["size","medium"],["icon","grid-outline",3,"nbPopover"],["class","control-item",4,"ngIf"],["icon","log-out-outline",1,"logout-button",3,"click"],[1,"control-item"],[3,"name","picture"]],template:function(e,t){1&e&&(l.Zb(0,"div",0),l.Zb(1,"div",1),l.Zb(2,"a",2),l.jc("click",function(){return t.toggleSidebar()}),l.Ub(3,"nb-icon",3),l.Yb(),l.Zb(4,"div",4),l.Zb(5,"a",5),l.Zb(6,"i"),l.Ub(7,"img",6),l.Yb(),l.Yb(),l.Zb(8,"div",7),l.Qc(9,"SIMI "),l.Zb(10,"span",8),l.Qc(11,"Congressi"),l.Yb(),l.Yb(),l.Yb(),l.Yb(),l.Yb(),l.Zb(12,"div",0),l.Zb(13,"nb-actions",9),l.Ub(14,"nb-action",10),l.Oc(15,p,2,2,"nb-action",11),l.Zb(16,"nb-action",12),l.jc("click",function(){return t.logout()}),l.Yb(),l.Yb(),l.Yb()),2&e&&(l.Gb(14),l.tc("nbPopover",t.cardComponent),l.Gb(1),l.tc("ngIf",t.user))},directives:[u.J,u.i,u.h,u.eb,h.n,u.Lb],styles:['.nb-theme-default [_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:100%}.nb-theme-default [_nghost-%COMP%] .left[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-ordinal-group:1;-ms-flex-order:0;order:0;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.nb-theme-default [_nghost-%COMP%] .right[_ngcontent-%COMP%]{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.nb-theme-default [_nghost-%COMP%] .logo-containter[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:calc(16rem - 1.25rem)}.nb-theme-default [_nghost-%COMP%] .control-item[_ngcontent-%COMP%]{display:block}.nb-theme-default [_nghost-%COMP%] .header-container[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:auto}.nb-theme-default [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]{text-decoration:none;color:#8f9bb3}[dir=ltr] .nb-theme-default [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]{padding-right:1.25rem}[dir=rtl] .nb-theme-default [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]{padding-left:1.25rem}.nb-theme-default [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%]{font-size:1.75rem}.nb-theme-default [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{padding:0 1.25rem;font-size:1.75rem;white-space:nowrap;text-decoration:none}[dir=ltr] .nb-theme-default [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{border-left:1px solid #edf1f7}[dir=rtl] .nb-theme-default [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{border-right:1px solid #edf1f7}.nb-theme-default [_nghost-%COMP%] ngx-layout-direction-switcher[_ngcontent-%COMP%]{margin:0 1.5rem}.nb-theme-default [_nghost-%COMP%] ngx-theme-switcher[_ngcontent-%COMP%]{margin:0 2.25rem}@media (max-width:1399.98px){.nb-theme-default [_nghost-%COMP%] ngx-layout-direction-switcher[_ngcontent-%COMP%]{display:none}}@media (min-width:1200px){.nb-theme-default [_nghost-%COMP%] .toggle[_ngcontent-%COMP%]{display:none}}.nb-theme-default [_nghost-%COMP%] .logout-button[_ngcontent-%COMP%] a i:hover{color:red}.nb-theme-default [_nghost-%COMP%] .logout-button[_ngcontent-%COMP%] a i:active{color:darkred}.nb-theme-default [_nghost-%COMP%] .toggle-layout[_ngcontent-%COMP%] a{display:block;text-decoration:none;line-height:1}.nb-theme-default [_nghost-%COMP%] .toggle-layout[_ngcontent-%COMP%] a i{font-size:2.25rem;border-radius:50%;position:relative;-webkit-animation-name:pulse-light;animation-name:pulse-light}.nb-theme-default [_nghost-%COMP%] .toggle-layout[_ngcontent-%COMP%] a i:after{content:" ";background-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");border-radius:50%;pointer-events:none;position:absolute;top:52.3%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:13%;height:13%;-webkit-animation:pulse 3s linear infinite;animation:pulse 3s linear infinite}@media (max-width:991.98px){.nb-theme-default [_nghost-%COMP%] nb-action[_ngcontent-%COMP%]:not(.toggle-layout){border:none}.nb-theme-default [_nghost-%COMP%] .control-item[_ngcontent-%COMP%]{display:none}.nb-theme-default [_nghost-%COMP%] .toggle-layout[_ngcontent-%COMP%]{padding:0}.nb-theme-default [_nghost-%COMP%] ngx-layout-direction-switcher[_ngcontent-%COMP%]{display:none}.nb-theme-default [_nghost-%COMP%] ngx-theme-switcher[_ngcontent-%COMP%]{margin:0 .5rem}}@media (max-width:767.98px){.nb-theme-default [_nghost-%COMP%] nb-user[_ngcontent-%COMP%] .user-name{display:none}}@media (max-width:575.98px){.nb-theme-default [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{font-size:1.25rem}.nb-theme-default [_nghost-%COMP%] .toggle-layout[_ngcontent-%COMP%]{display:none}.nb-theme-default [_nghost-%COMP%] ngx-theme-switcher[_ngcontent-%COMP%]{display:none}.nb-theme-default [_nghost-%COMP%] nb-action[_ngcontent-%COMP%]:not(.toggle-layout){padding:0}}@media (max-width:399.98px){.nb-theme-default [_nghost-%COMP%] .right[_ngcontent-%COMP%] {display:none}.nb-theme-default [_nghost-%COMP%] .navigation[_ngcontent-%COMP%]{display:none}} nb-card.popover-card{margin-bottom:0;width:300px;-webkit-box-shadow:none;box-shadow:none}nb-popover[_ngcontent-%COMP%]{border:2px solid #000!important}.portal-wrapper[_ngcontent-%COMP%]{text-align:center}.portal-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{margin:1rem 0}.portal-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .portal-element[_ngcontent-%COMP%]{padding:0;width:100px;border:2px solid transparent;-webkit-transition:all .3s;transition:all .3s}.portal-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .portal-element.not-allowed[_ngcontent-%COMP%]{color:currentColor;cursor:not-allowed;opacity:.5;background:#d3d3d3;border:2px solid #d3d3d3;border-radius:.5rem;pointer-events:none}.portal-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .portal-element.not-allowed[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{cursor:not-allowed!important}.portal-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .portal-element[_ngcontent-%COMP%]:hover{border:2px solid #d3d3d3;border-radius:.5rem}.portal-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .portal-element[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-top:1rem;width:60px}.portal-title[_ngcontent-%COMP%]{color:#4472c4}']}),e})()},Kj3r:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("7o/Q"),r=n("D0XW");function s(e,t=r.a){return n=>n.lift(new o(e,t))}
1class o{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new a(e,this.dueTime,this.scheduler))}}class a extends i.a{constructor(e,t,n){super(e),this.dueTime=t,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function c(e){e.debouncedNext()}},Ko1m:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}findByIdAccesses(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id/accesses/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdAccesses(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id/accesses/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdAccesses(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id/accesses/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}findByIdSubmissions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id/submissions/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdSubmissions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id/submissions/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdSubmissions(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id/submissions/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}findByIdRequests(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id/requests/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdRequests(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id/requests/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdRequests(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id/requests/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getAccesses(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id/accesses",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createAccesses(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id/accesses";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteAccesses(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id/accesses";return this.request("DELETE",n,{id:e},{},{},null,t)}countAccesses(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id/accesses/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getSubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id/submissions",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createSubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id/submissions";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteSubmissions(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id/submissions";return this.request("DELETE",n,{id:e},{},{},null,t)}countSubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id/submissions/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getRequests(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id/requests",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createRequests(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id/requests";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteRequests(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id/requests";return this.request("DELETE",n,{id:e},{},{},null,t)}countRequests(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id/requests/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}me(e){let t=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/me";return this.request("GET",t,{},{},{},null,e)}updateData(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id/updateData",r={id:e},s={};return null!=t&&(s.data=t),this.request("POST",i,r,s,{},null,n)}getDashboard(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id/dashboard";return this.request("GET",n,{id:e},{},{},null,t)}getHistory(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id/history";return this.request("GET",n,{id:e},{},{},null,t)}createManyAccesses(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id/accesses";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManySubmissions(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id/submissions";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyRequests(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyCompilers/:id/requests";return this.request("POST",i,{id:e},{},{data:t},null,n)}getModelName(){return"SurveyCompiler"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},Kqap:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new s(e,t,n))}}class s{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new o(e,this.accumulator,this.seed,this.hasSeed))}}class o extends i.a{constructor(e,t,n,i){super(e),this.accumulator=t,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}},KqfI:function(e,t,n){"use strict";function i(){}n.d(t,"a",function(){return i})},"Kr+R":function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"Course"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"Course",plural:"Courses",path:"Courses",idName:"id",properties:{ecm:{name:"ecm",type:"any"},payment_details:{name:"payment_details",type:"string"},payment_data:{name:"payment_data",type:"any"},program:{name:"program",type:"string"},sezione_regionale:{name:"sezione_regionale",type:"string",default:"null"},fad:{name:"fad",type:"number"},webinar:{name:"webinar",type:"any"},quality_surveyId:{name:"quality_surveyId",type:"any"},ecm_surveyId:{name:"ecm_surveyId",type:"any"},examId:{name:"examId",type:"any"},days:{name:"days",type:"Array<any>"},demo:{name:"demo",type:"boolean"},sponsorIds:{name:"sponsorIds",type:"Array<any>",default:[]},header:{name:"header",type:"any"},logbookId:{name:"logbookId",type:"any"},progress_mode:{name:"progress_mode",type:"number"},name:{name:"name",type:"string"},edition:{name:"edition",type:"number"},type:{name:"type",type:"string"},date_start:{name:"date_start",type:"Date"},date_end:{name:"date_end",type:"Date"},sede:{name:"sede",type:"string"},address:{name:"address",type:"any"},description:{name:"description",type:"string"},picture:{name:"picture",type:"any"},status:{name:"status",type:"string",default:"pending"},tags:{name:"tags",type:"Array<any>"},subscriptions_end:{name:"subscriptions_end",type:"Date"},subscriptions_max:{name:"subscriptions_max",type:"number"},subscriptions_count:{name:"subscriptions_count",type:"number"},access_level:{name:"access_level",type:"number",default:0},public_name:{name:"public_name",type:"string"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{settings:{name:"settings",type:"any",model:"",relationType:"hasOne",keyFrom:"id",keyTo:"eventId"},links:{name:"links",type:"any[]",model:"",relationType:"hasMany",keyFrom:"id",keyTo:"eventId"},quality_survey:{name:"quality_survey",type:"SimiEventSurvey",model:"SimiEventSurvey",relationType:"belongsTo",keyFrom:"quality_surveyId",keyTo:"id"},ecm_survey:{name:"ecm_survey",type:"SimiEventSurvey",model:"SimiEventSurvey",relationType:"belongsTo",keyFrom:"ecm_surveyId",keyTo:"id"},exam:{name:"exam",type:"SimiEventExam",model:"SimiEventExam",relationType:"belongsTo",keyFrom:"examId",keyTo:"id"},sponsors:{name:"sponsors",type:"SimiSponsor[]",model:"SimiSponsor",relationType:"referencesMany",keyFrom:"sponsorIds",keyTo:"id"},roles:{name:"roles",type:"SimiEventRole[]",model:"SimiEventRole",relationType:"hasMany",keyFrom:"id",keyTo:"eventId"},threads:{name:"threads",type:"SimiEventThread[]",model:"SimiEventThread",relationType:"hasMany",keyFrom:"id",keyTo:"eventId"},subscriptions:{name:"subscriptions",type:"CourseSubscription[]",model:"CourseSubscription",relationType:"hasMany",keyFrom:"id",keyTo:"eventId"},materials:{name:"materials",type:"CourseMaterial[]",model:"CourseMaterial",relationType:"hasMany",keyFrom:"id",keyTo:"eventId"},lives:{name:"lives",type:"CourseLive[]",model:"CourseLive",relationType:"hasMany",keyFrom:"id",keyTo:"eventId"},logbook:{name:"logbook",type:"CourseLogbook",model:"CourseLogbook",relationType:"belongsTo",keyFrom:"logbookId",keyTo:"id"}}}}}},"L/9K":function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"TrackerEvents"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"TrackerEvents",plural:"TrackerEvents",path:"TrackerEvents",idName:"id",properties:{hostname:{name:"hostname",type:"string"},path:{name:"path",type:"string"},ip:{name:"ip",type:"string"},userAgent:{name:"userAgent",type:"string"},referer:{name:"referer",type:"string"},utm_source:{name:"utm_source",type:"string"},utm_medium:{name:"utm_medium",type:"string"},utm_campaign:{name:"utm_campaign",type:"string"},utm_term:{name:"utm_term",type:"string"},utm_content:{name:"utm_content",type:"string"},id:{name:"id",type:"any"},timestamp:{name:"timestamp",type:"Date"}},relations:{}}}}},L3Qv:function(e,t,n){"use strict";t.a=function(){return!1}},LRne:function(e,t,n){"use strict";n.d(t,"a",function(){return o}
1);var i=n("z+Ro"),r=n("yCtX"),s=n("jZKg");function o(...e){let t=e[e.length-1];return Object(i.a)(t)?(e.pop(),Object(s.a)(e,t)):Object(r.a)(e)}},Lhse:function(e,t,n){"use strict";function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",function(){return r});const r=i()},LvDl:function(e,t,n){(function(e){var i;(function(){var r="Expected a function",s="__lodash_placeholder__",o=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],a="[object Arguments]",c="[object Array]",l="[object Boolean]",u="[object Date]",d="[object Error]",h="[object Function]",p="[object GeneratorFunction]",f="[object Map]",g="[object Number]",m="[object Object]",b="[object RegExp]",y="[object Set]",v="[object String]",_="[object Symbol]",w="[object WeakMap]",k="[object ArrayBuffer]",C="[object DataView]",S="[object Float32Array]",T="[object Float64Array]",P="[object Int8Array]",O="[object Int16Array]",x="[object Int32Array]",A="[object Uint8Array]",E="[object Uint16Array]",M="[object Uint32Array]",I=/\b__p \+= '';/g,R=/\b(__p \+=) '' \+/g,L=/(__e\(.*?\)|\b__t\)) \+\n'';/g,D=/&(?:amp|lt|gt|quot|#39);/g,j=/[&<>"']/g,N=RegExp(D.source),V=RegExp(j.source),z=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,B=/<%=([\s\S]+?)%>/g,q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,U=/^\w*$/,H=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W=/[\\^$.*+?()[\]{}|]/g,G=RegExp(W.source),Y=/^\s+/,$=/\s/,Z=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Q=/\{\n\/\* \[wrapped with (.+)\] \*/,X=/,? & /,K=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,J=/[()=,{}\[\]\/\s]/,ee=/\\(\\)?/g,te=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ne=/\w*$/,ie=/^[-+]0x[0-9a-f]+$/i,re=/^0b[01]+$/i,se=/^\[object .+?Constructor\]$/,oe=/^0o[0-7]+$/i,ae=/^(?:0|[1-9]\d*)$/,ce=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 3,354 bytes, line 1
17f]/g,le=/($^)/,ue=/['\n\r\u2028\u2029\\]/g,de="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",he="\\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",pe="["+he+"]",fe="["+de+"]",ge="\\d+",me="[a-z\\xdf-\\xf6\\xf8-\\xff]",be="[^\\ud800-\\udfff"+he+ge+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ye="\\ud83c[\\udffb-\\udfff]",ve="[^\\ud800-\\udfff]",_e="(?:\\ud83c[\\udde6-\\uddff]){2}",we="[\\ud800-\\udbff][\\udc00-\\udfff]",ke="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ce="(?:"+me+"|"+be+")",Se="(?:"+ke+"|"+be+")",Te="(?:"+fe+"|"+ye+")?",Pe="[\\ufe0e\\ufe0f]?"+Te+"(?:\\u200d(?:"+[ve,_e,we].join("|")+")[\\ufe0e\\ufe0f]?"+Te+")*",Oe="(?:"+["[\\u2700-\\u27bf]",_e,we].join("|")+")"+Pe,xe="(?:"+[ve+fe+"?",fe,_e,we,"[\\ud800-\\udfff]"].join("|")+")",Ae=RegExp("['\u2019]","g"),Ee=RegExp(fe,"g"),Me=RegExp(ye+"(?="+ye+")|"+xe+Pe,"g"),Ie=RegExp([ke+"?"+me+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[pe,ke,"$"].join("|")+")",Se+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[pe,ke+Ce,"$"].join("|")+")",ke+"?"+Ce+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",ke+"+(?:['\u2019](?: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_])",ge,Oe].join("|"),"g"),Re=RegExp("[\\u200d\\ud800-\\udfff"+de+"\\ufe0e\\ufe0f]"),Le=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,De=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],je=-1,Ne={};Ne[S]=Ne[T]=Ne[P]=Ne[O]=Ne[x]=Ne[A]=Ne["[object Uint8ClampedArray]"]=Ne[E]=Ne[M]=!0,Ne[a]=Ne[c]=Ne[k]=Ne[l]=Ne[C]=Ne[u]=Ne[d]=Ne[h]=Ne[f]=Ne[g]=Ne[m]=Ne[b]=Ne[y]=Ne[v]=Ne[w]=!1;var Ve={};Ve[a]=Ve[c]=Ve[k]=Ve[C]=Ve[l]=Ve[u]=Ve[S]=Ve[T]=Ve[P]=Ve[O]=Ve[x]=Ve[f]=Ve[g]=Ve[m]=Ve[b]=Ve[y]=Ve[v]=Ve[_]=Ve[A]=Ve["[object Uint8ClampedArray]"]=Ve[E]=Ve[M]=!0,Ve[d]=Ve[h]=Ve[w]=!1;var ze={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Fe=parseFloat,Be=parseInt,qe="object"==typeof global&&global&&global.Object===Object&&global,Ue="object"==typeof self&&self&&self.Object===Object&&self,He=qe||Ue||Function("return this")(),We=t&&!t.nodeType&&t,Ge=We&&"object"==typeof e&&e&&!e.nodeType&&e,Ye=Ge&&Ge.exports===We,$e=Ye&&qe.process,Ze=function(){try{return Ge&&Ge.require&&Ge.require("util").types||$e&&$e.binding&&$e.binding("util")}catch(e){}}(),Qe=Ze&&Ze.isArrayBuffer,Xe=Ze&&Ze.isDate,Ke=Ze&&Ze.isMap,Je=Ze&&Ze.isRegExp,et=Ze&&Ze.isSet,tt=Ze&&Ze.isTypedArray;function nt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function it(e,t,n,i){for(var r=-1,s=null==e?0:e.length;++r<s;){var o=e[r];t(i,o,n(o),e)}return i}function rt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function st(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function ot(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;
vendor: 5,669 bytes, line 1
1)if(!t(e[n],n,e))return!1;return!0}function at(e,t){for(var n=-1,i=null==e?0:e.length,r=0,s=[];++n<i;){var o=e[n];t(o,n,e)&&(s[r++]=o)}return s}function ct(e,t){return!(null==e||!e.length)&&yt(e,t,0)>-1}function lt(e,t,n){for(var i=-1,r=null==e?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}function ut(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}function dt(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}function ht(e,t,n,i){var r=-1,s=null==e?0:e.length;for(i&&s&&(n=e[++r]);++r<s;)n=t(n,e[r],r,e);return n}function pt(e,t,n,i){var r=null==e?0:e.length;for(i&&r&&(n=e[--r]);r--;)n=t(n,e[r],r,e);return n}function ft(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var gt=kt("length");function mt(e,t,n){var i;return n(e,function(e,n,r){if(t(e,n,r))return i=n,!1}),i}function bt(e,t,n,i){for(var r=e.length,s=n+(i?1:-1);i?s--:++s<r;)if(t(e[s],s,e))return s;return-1}function yt(e,t,n){return t==t?function(e,t,n){for(var i=n-1,r=e.length;++i<r;)if(e[i]===t)return i;return-1}(e,t,n):bt(e,_t,n)}function vt(e,t,n,i){for(var r=n-1,s=e.length;++r<s;)if(i(e[r],t))return r;return-1}function _t(e){return e!=e}function wt(e,t){var n=null==e?0:e.length;return n?Tt(e,t)/n:NaN}function kt(e){return function(t){return null==t?void 0:t[e]}}function Ct(e){return function(t){return null==e?void 0:e[t]}}function St(e,t,n,i,r){return r(e,function(e,r,s){n=i?(i=!1,e):t(n,e,r,s)}),n}function Tt(e,t){for(var n,i=-1,r=e.length;++i<r;){var s=t(e[i]);void 0!==s&&(n=void 0===n?s:n+s)}return n}function Pt(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Ot(e){return e?e.slice(0,Wt(e)+1).replace(Y,""):e}function xt(e){return function(t){return e(t)}}function At(e,t){return ut(t,function(t){return e[t]})}function Et(e,t){return e.has(t)}function Mt(e,t){for(var n=-1,i=e.length;++n<i&&yt(t,e[n],0)>-1;);return n}function It(e,t){for(var n=e.length;n--&&yt(t,e[n],0)>-1;);return n}function Rt(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}var Lt=Ct({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),Dt=Ct({"&":"&","<":"<",">":">",'"':""","'":"'"});function jt(e){return"\\"+ze[e]}function Nt(e){return Re.test(e)}function Vt(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}function zt(e,t){return function(n){return e(t(n))}}function Ft(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[r++]=n)}return o}function Bt(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function qt(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function Ut(e){return Nt(e)?function(e){for(var t=Me.lastIndex=0;Me.test(e);)++t;return t}(e):gt(e)}function Ht(e){return Nt(e)?function(e){return e.match(Me)||[]}(e):function(e){return e.split("")}(e)}function Wt(e){for(var t=e.length;t--&&$.test(e.charAt(t)););return t}var Gt=Ct({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Yt=function e(t){var n,i=(t=null==t?He:Yt.defaults(He.Object(),t,Yt.pick(He,De))).Array,$=t.Date,de=t.Error,he=t.Function,pe=t.Math,fe=t.Object,ge=t.RegExp,me=t.String,be=t.TypeError,ye=i.prototype,ve=fe.prototype,_e=t["__core-js_shared__"],we=he.prototype.toString,ke=ve.hasOwnProperty,Ce=0,Se=(n=/[^.]+$/.exec(_e&&_e.keys&&_e.keys.IE_PROTO||""))?"Symbol(sr
1c)_1."+n:"",Te=ve.toString,Pe=we.call(fe),Oe=He._,xe=ge("^"+we.call(ke).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Me=Ye?t.Buffer:void 0,Re=t.Symbol,ze=t.Uint8Array,qe=Me?Me.allocUnsafe:void 0,Ue=zt(fe.getPrototypeOf,fe),We=fe.create,Ge=ve.propertyIsEnumerable,$e=ye.splice,Ze=Re?Re.isConcatSpreadable:void 0,gt=Re?Re.iterator:void 0,Ct=Re?Re.toStringTag:void 0,$t=function(){try{var e=Kr(fe,"defineProperty");return e({},"",{}),e}catch(t){}}(),Zt=t.clearTimeout!==He.clearTimeout&&t.clearTimeout,Qt=$&&$.now!==He.Date.now&&$.now,Xt=t.setTimeout!==He.setTimeout&&t.setTimeout,Kt=pe.ceil,Jt=pe.floor,en=fe.getOwnPropertySymbols,tn=Me?Me.isBuffer:void 0,nn=t.isFinite,rn=ye.join,sn=zt(fe.keys,fe),on=pe.max,an=pe.min,cn=$.now,ln=t.parseInt,un=pe.random,dn=ye.reverse,hn=Kr(t,"DataView"),pn=Kr(t,"Map"),fn=Kr(t,"Promise"),gn=Kr(t,"Set"),mn=Kr(t,"WeakMap"),bn=Kr(fe,"create"),yn=mn&&new mn,vn={},_n=Os(hn),wn=Os(pn),kn=Os(fn),Cn=Os(gn),Sn=Os(mn),Tn=Re?Re.prototype:void 0,Pn=Tn?Tn.valueOf:void 0,On=Tn?Tn.toString:void 0;function xn(e){if(Wo(e)&&!Lo(e)&&!(e instanceof In)){if(e instanceof Mn)return e;if(ke.call(e,"__wrapped__"))return xs(e)}return new Mn(e)}var An=function(){function e(){}return function(t){if(!Ho(t))return{};if(We)return We(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function En(){}function Mn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function In(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Rn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Ln(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Dn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function jn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Dn;++t<n;)this.add(e[t])}function Nn(e){var t=this.__data__=new Ln(e);this.size=t.size}function Vn(e,t){var n=Lo(e),i=!n&&Ro(e),r=!n&&!i&&Vo(e),s=!n&&!i&&!r&&Jo(e),o=n||i||r||s,a=o?Pt(e.length,me):[],c=a.length;for(var l in e)!t&&!ke.call(e,l)||o&&("length"==l||r&&("offset"==l||"parent"==l)||s&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ss(l,c))||a.push(l);return a}function zn(e){var t=e.length;return t?e[Di(0,t-1)]:void 0}function Fn(e,t){return ks(mr(e),Zn(t,0,e.length))}function Bn(e){return ks(mr(e))}function qn(e,t,n){(void 0!==n&&!Eo(e[t],n)||void 0===n&&!(t in e))&&Yn(e,t,n)}function Un(e,t,n){var i=e[t];ke.call(e,t)&&Eo(i,n)&&(void 0!==n||t in e)||Yn(e,t,n)}function Hn(e,t){for(var n=e.length;n--;)if(Eo(e[n][0],t))return n;return-1}function Wn(e,t,n,i){return ei(e,function(e,r,s){t(i,e,n(e),s)}),i}function Gn(e,t){return e&&br(t,wa(t),e)}function Yn(e,t,n){"__proto__"==t&&$t?$t(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function $n(e,t){for(var n=-1,r=t.length,s=i(r),o=null==e;++n<r;)s[n]=o?void 0:ma(e,t[n]);return s}function Zn(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Qn(e,t,n,i,r,s){var o,c=1&t,d=2&t,w=4&t;if(n&&(o=r?n(e,i,r,s):n(e)),void 0!==o)return o;if(!Ho(e))return e;var I=Lo(e);if(I){if(o=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ke.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!c)return mr(e,o)}else{var R=ts(e),L=R==h||R==p;if(Vo(e))return ur(e,c);if(R==m||R==a||L&&!r){if(o=d||L?{}:is(e),!c)return d?function(e,t){return br(e,es(e),t)}(e,function(e,t){return e&&br(t,ka(t),e)}(o,e)):function(e,t){return br(e,Jr(e),t)}(e,Gn(o,e))}else{if(!Ve[R])return r?e:{};o=function(e,t,n){var i=e.constructor;switch(t){case k:return dr(e);case l:case u:return new i(+e);case C:return function(e,t){var n=t?dr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case S:case T:case P:case O:case x:case A:case"[object Uint8ClampedArray]":case E:case M:return hr(e,n);case f:return new i;case g:case v:return new i(e);case b:return function(e){var t=new e.constructor(e.source,ne.exec(e));return t.lastIndex=e.lastIndex,t}(e);case y:return new i;case _:return Pn?fe(Pn.call(e)):{}}}(e,R,c)}}s||(s=new Nn);var D=s.get(e);if(D)return D;s.set(e,o),Qo(e)?e.forEach(function(i){o.add(Qn(i,t,n,i,e,s))}):Go(e)&&e.forEach(function(i,r){o.set(r,Qn(i,t,n,r,e,s))});var j=I?void 0:(w?d?Wr:Hr:d?ka:wa)(e);return rt(j||e,function(i,r){j&&(i=e[r=i]),Un(o,r,Qn(i,t,n,r,e,s))}),o}function Xn(e,t,n){var i=n.length;if(null==e)return!i;for(e=fe(e);i--;){var r=n[i],s=e[r];if(void 0===s&&!(r in e)||!(0,t[r])(s))return!1}return!0}function Kn(e,t,n){if("function"!=typeof e)throw new be(r);return ys(function(){e.apply(void 0,n)},t)}function Jn(e,t,n,i){var r=-1,s=ct,o=!0,a=e.length,c=[],l=t.length;if(!a)return c;n&&(t=ut(t,xt(n))),i?(s=lt,o=!1):t.length>=200&&(s=Et,o=!1,t=new jn(t));e:for(;++r<a;){var u=e[r],d=null==n?u:n(u);if(u=i||0!==u?u:0,o&&d==d){for(var h=l;h--;)if(t[h]===d)continue e;c.push(u)}else s(t,d,i)||c.push(u)}return c}xn.templateSettings={escape:z,evaluate:F,interpolate:B,variable:"",imports:{_:xn}
vendor: 10,081 bytes, line 1
1},(xn.prototype=En.prototype).constructor=xn,(Mn.prototype=An(En.prototype)).constructor=Mn,(In.prototype=An(En.prototype)).constructor=In,Rn.prototype.clear=function(){this.__data__=bn?bn(null):{},this.size=0},Rn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Rn.prototype.get=function(e){var t=this.__data__;if(bn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return ke.call(t,e)?t[e]:void 0},Rn.prototype.has=function(e){var t=this.__data__;return bn?void 0!==t[e]:ke.call(t,e)},Rn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=bn&&void 0===t?"__lodash_hash_undefined__":t,this},Ln.prototype.clear=function(){this.__data__=[],this.size=0},Ln.prototype.delete=function(e){var t=this.__data__,n=Hn(t,e);return!(n<0||(n==t.length-1?t.pop():$e.call(t,n,1),--this.size,0))},Ln.prototype.get=function(e){var t=this.__data__,n=Hn(t,e);return n<0?void 0:t[n][1]},Ln.prototype.has=function(e){return Hn(this.__data__,e)>-1},Ln.prototype.set=function(e,t){var n=this.__data__,i=Hn(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Dn.prototype.clear=function(){this.size=0,this.__data__={hash:new Rn,map:new(pn||Ln),string:new Rn}},Dn.prototype.delete=function(e){var t=Qr(this,e).delete(e);return this.size-=t?1:0,t},Dn.prototype.get=function(e){return Qr(this,e).get(e)},Dn.prototype.has=function(e){return Qr(this,e).has(e)},Dn.prototype.set=function(e,t){var n=Qr(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},jn.prototype.add=jn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},jn.prototype.has=function(e){return this.__data__.has(e)},Nn.prototype.clear=function(){this.__data__=new Ln,this.size=0},Nn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Nn.prototype.get=function(e){return this.__data__.get(e)},Nn.prototype.has=function(e){return this.__data__.has(e)},Nn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ln){var i=n.__data__;if(!pn||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Dn(i)}return n.set(e,t),this.size=n.size,this};var ei=_r(ci),ti=_r(li,!0);function ni(e,t){var n=!0;return ei(e,function(e,i,r){return n=!!t(e,i,r)}),n}function ii(e,t,n){for(var i=-1,r=e.length;++i<r;){var s=e[i],o=t(s);if(null!=o&&(void 0===a?o==o&&!Ko(o):n(o,a)))var a=o,c=s}return c}function ri(e,t){var n=[];return ei(e,function(e,i,r){t(e,i,r)&&n.push(e)}),n}function si(e,t,n,i,r){var s=-1,o=e.length;for(n||(n=rs),r||(r=[]);++s<o;){var a=e[s];t>0&&n(a)?t>1?si(a,t-1,n,i,r):dt(r,a):i||(r[r.length]=a)}return r}var oi=wr(),ai=wr(!0);function ci(e,t){return e&&oi(e,t,wa)}function li(e,t){return e&&ai(e,t,wa)}function ui(e,t){return at(t,function(t){return Bo(e[t])})}function di(e,t){for(var n=0,i=(t=or(t,e)).length;null!=e&&n<i;)e=e[Ps(t[n++])];return n&&n==i?e:void 0}function hi(e,t,n){var i=t(e);return Lo(e)?i:dt(i,n(e))}function pi(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ct&&Ct in fe(e)?function(e){var t=ke.call(e,Ct),n=e[Ct];try{e[Ct]=void 0;var i=!0}catch(s){}var r=Te.call(e);return i&&(t?e[Ct]=n:delete e[Ct]),r}(e):function(e){return Te.call(e)}(e)}function fi(e,t){return e>t}function gi(e,t){return null!=e&&ke.call(e,t)}function mi(e,t){return null!=e&&t in fe(e)}function bi(e,t,n){for(var r=n?lt:ct,s=e[0].length,o=e.length,a=o,c=i(o),l=1/0,u=[];a--;){var d=e[a];a&&t&&(d=ut(d,xt(t))),l=an(d.length,l),c[a]=!n&&(t||s>=120&&d.length>=120)?new jn(a&&d):void 0}d=e[0];var h=-1,p=c[0];e:for(;++h<s&&u.length<l;){var f=d[h],g=t?t(f):f;if(f=n||0!==f?f:0,!(p?Et(p,g):r(u,g,n))){for(a=o;--a;){var m=c[a];if(!(m?Et(m,g):r(e[a],g,n)))continue e}p&&p.push(g),u.push(f)}}return u}function yi(e,t,n){var i=null==(e=fs(e,t=or(t,e)))?e:e[Ps(zs(t))];return null==i?void 0:nt(i,e,n)}function vi(e){return Wo(e)&&pi(e)==a}function _i(e,t,n,i,r){return e===t||(null==e||null==t||!Wo(e)&&!Wo(t)?e!=e&&t!=t:function(e,t,n,i,r,s){var o=Lo(e),h=Lo(t),p=o?c:ts(e),w=h?c:ts(t),S=(p=p==a?m:p)==m,T=(w=w==a?m:w)==m,P=p==w;if(P&&Vo(e)){if(!Vo(t))return!1;o=!0,S=!1}if(P&&!S)return s||(s=new Nn),o||Jo(e)?qr(e,t,n,i,r,s):function(e,t,n,i,r,s,o){switch(n){case C:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case k:return!(e.byteLength!=t.byteLength||!s(new ze(e),new ze(t)));case l:case u:case g:return Eo(+e,+t);case d:return e.name==t.name&&e.message==t.message;case b:case v:return e==t+"";case f:var a=Vt;case y:if(a||(a=Bt),e.size!=t.size&&!(1&i))return!1;var c=o.get(e);if(c)return c==t;i|=2,o.set(e,t);var h=qr(a(e),a(t),i,r,s,o);return o.delete(e),h;case _:if(Pn)return Pn.call(e)==Pn.call(t)}return!1}(e,t,p,n,i,r,s);if(!(1&n)){var O=S&&ke.call(e,"__wrapped__"),x=T&&ke.call(t,"__wrapped__");if(O||x){var A=O?e.value():e,E=x?t.value():t;return s||(s=new Nn),r(A,E,n,i,s)}}return!!P&&(s||(s=new Nn),function(e,t,n,i,r,s){var o=1&n,a=Hr(e),c=a.length;if(c!=Hr(t).length&&!o)return!1;for(var l=c;l--;){var u=a[l];if(!(o?u in t:ke.call(t,u)))return!1}var d=s.get(e),h=s.get(t);if(d&&h)return d==t&&h==e;var p=!0;s.set(e,t),s.set(t,e);for(var f=o;++l<c;){var g=e[u=a[l]],m=t[u];if(i)var b=o?i(m,g,u,t,e,s):i(g,m,u,e,t,s);if(!(void 0===b?g===m||r(g,m,n,i,s):b)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var y=e.constructor,v=t.constructor;y==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v||(p=!1)}return s.delete(e),s.delete(t),p}(e,t,n,i,r,s))}(e,t,n,i,_i,r))}function wi(e,t,n,i){var r=n.length,s=r,o=!i;if(null==e)return!s;for(e=fe(e);r--;){var a=n[r];if(o&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++r<s;){var c=(a=n[r])[0],l=e[c],u=a[1];if(o&&a[2]){if(void 0===l&&!(c in e))return!1}else{var d=new Nn;if(i)var h=i(l,u,c,e,t,d);if(!(void 0===h?_i(u,l,3,i,d):h))return!1}}return!0}function ki(e){return!(!Ho(e)||(t=e,Se&&Se in t))&&(Bo(e)?xe:se).test(Os(e));var t}function Ci(e){return"function"==typeof e?e:null==e?Ya:"object"==typeof e?Lo(e)?xi(e[0],e[1]):Oi(e):nc(e)}function Si(e){if(!us(e))return sn(e);var t=[];for(var n in fe(e))ke.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Ti(e,t){return e<t}function Pi(e,t){var n=-1,r=jo(e)?i(e.length):[];return ei(e,function(e,i,s){r[++n]=t(e,i,s)}),r}function Oi(e){var t=Xr(e);return 1==t.length&&t[0][2]?hs(t[0][0],t[0][1]):function(n){return n===e||wi(n,e,t)}}function xi(e,t){return as(e)&&ds(t)?hs(Ps(e),t):function(n){var i=ma(n,e);return void 0===i&&i===t?ba(n,e):_i(t,i,3)}}function Ai(e,t,n,i,r){e!==t&&oi(t,function(s,o){if(r||(r=new Nn),Ho(s))!function(e,t,n,i,r,s,o){var a=ms(e,n),c=ms(t,n),l=o.get(c);if(l)qn(e,n,l);else{var u=s?s(a,c,n+"",e,t,o):void 0,d=void 0===u;if(d){var h=Lo(c),p=!h&&Vo(c),f=!h&&!p&&Jo(c);u=c,h||p||f?Lo(a)?u=a:No(a)?u=mr(a):p?(d=!1,u=ur(c,!0)):f?(d=!1,u=hr(c,!0)):u=[]:$o(c)||Ro(c)?(u=a,Ro(a)?u=aa(a):Ho(a)&&!Bo(a)||(u=is(c))):d=!1}d&&(o.set(c,u),r(u,c,i,s,o),o.delete(c)),qn(e,n,u)}}(e,t,o,n,Ai,i,r);else{var a=i?i(ms(e,o),s,o+"",e,t,r):void 0;void 0===a&&(a=s),qn(e,o,a)}},ka)}function Ei(e,t){var n=e.length;if(n)return ss(t+=t<0?n:0,n)?e[t]:void 0}function Mi(e,t,n){t=t.length?ut(t,function(e){return Lo(e)?function(t){return di(t,1===e.length?e[0]:e)}:e}):[Ya];var i=-1;t=ut(t,xt(Zr()));var r=Pi(e,function(e,n,r){var s=ut(t,function(t){return t(e)});return{criteria:s,index:++i,value:e}});return function(e,t){var i=e.length;for(e.sort(function(e,t){return function(e,t,n){for(var i=-1,r=e.criteria,s=t.criteria,o=r.length,a=n.length;++i<o;){var c=pr(r[i],s[i]);if(c)return i>=a?c:c*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)});i--;)e[i]=e[i].value;return e}(r)}function Ii(e,t,n){for(var i=-1,r=t.length,s={};++i<r;){var o=t[i],a=di(e,o);n(a,o)&&Fi(s,or(o,e),a)}return s}function Ri(e,t,n,i){var r=i?vt:yt,s=-1,o=t.length,a=e;for(e===t&&(t=mr(t)),n&&(a=ut(e,xt(n)));++s<o;)for(var c=0,l=t[s],u=n?n(l):l;(c=r(a,u,c,i))>-1;)a!==e&&$e.call(a,c,1),$e.call(e,c,1);return e}function Li(e,t){for(var n=e?t.length:0,i=n-1;n--;){var r=t[n];if(n==i||r!==s){var s=r;ss(r)?$e.call(e,r,1):Ki(e,r)}}return e}function Di(e,t){return e+Jt(un()*(t-e+1))}function ji(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Jt(t/2))&&(e+=e)}while(t);return n}function Ni(e,t){return vs(ps(e,t,Ya),e+"")}function Vi(e){return zn(Ea(e))}function zi(e,t){var n=Ea(e);return ks(n,Zn(t,0,n.length))}function Fi(e,t,n,i){if(!Ho(e))return e;for(var r=-1,s=(t=or(t,e)).length,o=s-1,a=e;null!=a&&++r<s;){var c=Ps(t[r]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(r!=o){var u=a[c];void 0===(l=i?i(u,c,a):void 0)&&(l=Ho(u)?u:ss(t[r+1])?[]:{})}Un(a,c,l),a=a[c]}return e}var Bi=yn?function(e,t){return yn.set(e,t),e}:Ya,qi=$t?function(e,t){return $t(e,"toString",{configurable:!0,enumerable:!1,value:Ha(t),writable:!0})}:Ya;function Ui(e){return ks(Ea(e))}function Hi(e,t,n){var r=-1,s=e.length;t<0&&(t=-t>s?0:s+t),(n=n>s?s:n)<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var o=i(s);++r<s;)o[r]=e[r+t];return o}function Wi(e,t){var n;return ei(e,function(e,i,r){return!(n=t(e,i,r))}),!!n}function Gi(e,t,n){var i=0,r=null==e?i:e.length;if("number"==typeof t&&t==t&&r<=2147483647){for(;i<r;){var s=i+r>>>1,o=e[s];null!==o&&!Ko(o)&&(n?o<=t:o<t)?i=s+1:r=s}return r}return Yi(e,t,Ya,n)}function Yi(e,t,n,i){var r=0,s=null==e?0:e.length;if(0===s)return 0;for(var o=(t=n(t))!=t,a=null===t,c=Ko(t),l=void 0===t;r<s;){var u=Jt((r+s)/2),d=n(e[u]),h=void 0!==d,p=null===d,f=d==d,g=Ko(d);if(o)var m=i||f;else m=l?f&&(i||h):a?f&&h&&(i||!p):c?f&&h&&!p&&(i||!g):!p&&!g&&(i?d<=t:d<t);m?r=u+1:s=u}return an(s,4294967294)}function $i(e,t){for(var n=-1,i=e.length,r=0,s=[];++n<i;){var o=e[n],a=t?t(o):o;if(!n||!Eo(a,c)){var c=a;s[r++]=0===o?0:o}}return s}function Zi(e){return"number"==typeof e?e:Ko(e)?NaN:+e}function Qi(e){if("string"==typeof e)return e;if(Lo(e))return ut(e,Qi)+"";if(Ko(e))return On?On.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Xi(e,t,n){var i=-1,r=ct,s=e.length,o=!0,a=[],c=a;if(n)o=!1,r=lt;else if(s>=200){var l=t?null:jr(e);
vendor: 4,183 bytes, line 1
1if(l)return Bt(l);o=!1,r=Et,c=new jn}else c=t?[]:a;e:for(;++i<s;){var u=e[i],d=t?t(u):u;if(u=n||0!==u?u:0,o&&d==d){for(var h=c.length;h--;)if(c[h]===d)continue e;t&&c.push(d),a.push(u)}else r(c,d,n)||(c!==a&&c.push(d),a.push(u))}return a}function Ki(e,t){return null==(e=fs(e,t=or(t,e)))||delete e[Ps(zs(t))]}function Ji(e,t,n,i){return Fi(e,t,n(di(e,t)),i)}function er(e,t,n,i){for(var r=e.length,s=i?r:-1;(i?s--:++s<r)&&t(e[s],s,e););return n?Hi(e,i?0:s,i?s+1:r):Hi(e,i?s+1:0,i?r:s)}function tr(e,t){var n=e;return n instanceof In&&(n=n.value()),ht(t,function(e,t){return t.func.apply(t.thisArg,dt([e],t.args))},n)}function nr(e,t,n){var r=e.length;if(r<2)return r?Xi(e[0]):[];for(var s=-1,o=i(r);++s<r;)for(var a=e[s],c=-1;++c<r;)c!=s&&(o[s]=Jn(o[s]||a,e[c],t,n));return Xi(si(o,1),t,n)}function ir(e,t,n){for(var i=-1,r=e.length,s=t.length,o={};++i<r;)n(o,e[i],i<s?t[i]:void 0);return o}function rr(e){return No(e)?e:[]}function sr(e){return"function"==typeof e?e:Ya}function or(e,t){return Lo(e)?e:as(e,t)?[e]:Ts(ca(e))}var ar=Ni;function cr(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:Hi(e,t,n)}var lr=Zt||function(e){return He.clearTimeout(e)};function ur(e,t){if(t)return e.slice();var n=e.length,i=qe?qe(n):new e.constructor(n);return e.copy(i),i}function dr(e){var t=new e.constructor(e.byteLength);return new ze(t).set(new ze(e)),t}function hr(e,t){var n=t?dr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function pr(e,t){if(e!==t){var n=void 0!==e,i=null===e,r=e==e,s=Ko(e),o=void 0!==t,a=null===t,c=t==t,l=Ko(t);if(!a&&!l&&!s&&e>t||s&&o&&c&&!a&&!l||i&&o&&c||!n&&c||!r)return 1;if(!i&&!s&&!l&&e<t||l&&n&&r&&!i&&!s||a&&n&&r||!o&&r||!c)return-1}return 0}function fr(e,t,n,r){for(var s=-1,o=e.length,a=n.length,c=-1,l=t.length,u=on(o-a,0),d=i(l+u),h=!r;++c<l;)d[c]=t[c];for(;++s<a;)(h||s<o)&&(d[n[s]]=e[s]);for(;u--;)d[c++]=e[s++];return d}function gr(e,t,n,r){for(var s=-1,o=e.length,a=-1,c=n.length,l=-1,u=t.length,d=on(o-c,0),h=i(d+u),p=!r;++s<d;)h[s]=e[s];for(var f=s;++l<u;)h[f+l]=t[l];for(;++a<c;)(p||s<o)&&(h[f+n[a]]=e[s++]);return h}function mr(e,t){var n=-1,r=e.length;for(t||(t=i(r));++n<r;)t[n]=e[n];return t}function br(e,t,n,i){var r=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var a=t[s],c=i?i(n[a],e[a],a,n,e):void 0;void 0===c&&(c=e[a]),r?Yn(n,a,c):Un(n,a,c)}return n}function yr(e,t){return function(n,i){var r=Lo(n)?it:Wn,s=t?t():{};return r(n,e,Zr(i,2),s)}}function vr(e){return Ni(function(t,n){var i=-1,r=n.length,s=r>1?n[r-1]:void 0,o=r>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(r--,s):void 0,o&&os(n[0],n[1],o)&&(s=r<3?void 0:s,r=1),t=fe(t);++i<r;){var a=n[i];a&&e(t,a,i,s)}return t})}function _r(e,t){return function(n,i){if(null==n)return n;if(!jo(n))return e(n,i);for(var r=n.length,s=t?r:-1,o=fe(n);(t?s--:++s<r)&&!1!==i(o[s],s,o););return n}}function wr(e){return function(t,n,i){for(var r=-1,s=fe(t),o=i(t),a=o.length;a--;){var c=o[e?a:++r];if(!1===n(s[c],c,s))break}return t}}function kr(e){return function(t){var n=Nt(t=ca(t))?Ht(t):void 0,i=n?n[0]:t.charAt(0),r=n?cr(n,1).join(""):t.slice(1);return i[e]()+r}}function Cr(e){return function(t){return ht(Ba(Ra(t).replace(Ae,"")),e,"")}}function Sr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=An(e.prototype),i=e.apply(n,t);return Ho(i)?i:n}}function Tr(e){return function(t,n,i){var r=fe(t);if(!jo(t)){var s=Zr(n,3);t=wa(t),n=function(e){return s(r[e],e,r)}}var o=e(t,n,i);return o>-1?r[s?t[o]:o]:void 0}}function Pr(e){return Ur(function(t){var n=t.length,i=n,s=Mn.prototype.thru;for(e&&t.reverse();i--;){var o=t[i];if("function"!=typeof o)throw new be(r);if(s&&!a&&"wrapper"==Yr(o))var a=new Mn([],!0)}for(i=a?i:n;++i<n;){var c=Yr(o=t[i]),l="wrapper"==c?Gr(o):void 0;a=l&&cs(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?a[Yr(l[0])].apply(a,l[3]):1==o.length&&cs(o)?a[c]():a.thru(o)}return function(){var e=arguments,i=e[0];
vendor: 4,312 bytes, line 1
1if(a&&1==e.length&&Lo(i))return a.plant(i).value();for(var r=0,s=n?t[r].apply(this,e):i;++r<n;)s=t[r].call(this,s);return s}})}function Or(e,t,n,r,s,o,a,c,l,u){var d=128&t,h=1&t,p=2&t,f=24&t,g=512&t,m=p?void 0:Sr(e);return function b(){for(var y=arguments.length,v=i(y),_=y;_--;)v[_]=arguments[_];if(f)var w=$r(b),k=Rt(v,w);if(r&&(v=fr(v,r,s,f)),o&&(v=gr(v,o,a,f)),y-=k,f&&y<u){var C=Ft(v,w);return Lr(e,t,Or,b.placeholder,n,v,C,c,l,u-y)}var S=h?n:this,T=p?S[e]:e;return y=v.length,c?v=gs(v,c):g&&y>1&&v.reverse(),d&&l<y&&(v.length=l),this&&this!==He&&this instanceof b&&(T=m||Sr(T)),T.apply(S,v)}}function xr(e,t){return function(n,i){return function(e,t,n,i){return ci(e,function(e,r,s){t(i,n(e),r,s)}),i}(n,e,t(i),{})}}function Ar(e,t){return function(n,i){var r;if(void 0===n&&void 0===i)return t;if(void 0!==n&&(r=n),void 0!==i){if(void 0===r)return i;"string"==typeof n||"string"==typeof i?(n=Qi(n),i=Qi(i)):(n=Zi(n),i=Zi(i)),r=e(n,i)}return r}}function Er(e){return Ur(function(t){return t=ut(t,xt(Zr())),Ni(function(n){var i=this;return e(t,function(e){return nt(e,i,n)})})})}function Mr(e,t){var n=(t=void 0===t?" ":Qi(t)).length;if(n<2)return n?ji(t,e):t;var i=ji(t,Kt(e/Ut(t)));return Nt(t)?cr(Ht(i),0,e).join(""):i.slice(0,e)}function Ir(e){return function(t,n,r){return r&&"number"!=typeof r&&os(t,n,r)&&(n=r=void 0),t=ia(t),void 0===n?(n=t,t=0):n=ia(n),function(e,t,n,r){for(var s=-1,o=on(Kt((t-e)/(n||1)),0),a=i(o);o--;)a[r?o:++s]=e,e+=n;return a}(t,n,r=void 0===r?t<n?1:-1:ia(r),e)}}function Rr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=oa(t),n=oa(n)),e(t,n)}}function Lr(e,t,n,i,r,s,o,a,c,l){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);var d=[e,t,r,u?s:void 0,u?o:void 0,u?void 0:s,u?void 0:o,a,c,l],h=n.apply(void 0,d);return cs(e)&&bs(h,d),h.placeholder=i,_s(h,e,t)}function Dr(e){var t=pe[e];return function(e,n){if(e=oa(e),(n=null==n?0:an(ra(n),292))&&nn(e)){var i=(ca(e)+"e").split("e");return+((i=(ca(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var jr=gn&&1/Bt(new gn([,-0]))[1]==1/0?function(e){return new gn(e)}:Ka;function Nr(e){return function(t){var n=ts(t);return n==f?Vt(t):n==y?qt(t):function(e,t){return ut(t,function(t){return[t,e[t]]})}(t,e(t))}}function Vr(e,t,n,o,a,c,l,u){var d=2&t;if(!d&&"function"!=typeof e)throw new be(r);var h=o?o.length:0;if(h||(t&=-97,o=a=void 0),l=void 0===l?l:on(ra(l),0),u=void 0===u?u:ra(u),h-=a?a.length:0,64&t){var p=o,f=a;o=a=void 0}var g=d?void 0:Gr(e),m=[e,t,n,o,a,p,f,c,l,u];if(g&&function(e,t){var n=e[1],i=t[1],r=n|i;if(!(r<131||128==i&&8==n||128==i&&256==n&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==n))return e;1&i&&(e[2]=t[2],r|=1&n?0:4);var o=t[3];if(o){var a=e[3];e[3]=a?fr(a,o,t[4]):o,e[4]=a?Ft(e[3],s):t[4]}(o=t[5])&&(e[5]=(a=e[5])?gr(a,o,t[6]):o,e[6]=a?Ft(e[5],s):t[6]),(o=t[7])&&(e[7]=o),128&i&&(e[8]=null==e[8]?t[8]:an(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=r}(m,g),e=m[0],t=m[1],n=m[2],o=m[3],a=m[4],!(u=m[9]=void 0===m[9]?d?0:e.length:on(m[9]-h,0))&&24&t&&(t&=-25),t&&1!=t)b=8==t||16==t?function(e,t,n){var r=Sr(e);return function s(){for(var o=arguments.length,a=i(o),c=o,l=$r(s);c--;)a[c]=arguments[c];var u=o<3&&a[0]!==l&&a[o-1]!==l?[]:Ft(a,l);return(o-=u.length)<n?Lr(e,t,Or,s.placeholder,void 0,a,u,void 0,void 0,n-o):nt(this&&this!==He&&this instanceof s?r:e,this,a)}}(e,t,u):32!=t&&33!=t||a.length?Or.apply(void 0,m):function(e,t,n,r){var s=1&t,o=Sr(e);return function t(){for(var a=-1,c=arguments.length,l=-1,u=r.length,d=i(u+c),h=this&&this!==He&&this instanceof t?o:e;++l<u;)d[l]=r[l];for(;c--;)d[l++]=arguments[++a];return nt(h,s?n:this,d)}}(e,t,n,o);else var b=function(e,t,n){var i=1&t,r=Sr(e);return function t(){return(this&&this!==He&&this instanceof t?r:e).apply(i?n:this,arguments)}}(e,t,n);return _s((g?Bi:bs)(b,m),e,t)}function zr(e,t,n,i){return void 0===e||Eo(e,ve[n])&&!ke.call(i,n)?t:e}function Fr(e,t,n,i,r,s){return Ho(e)&&Ho(t)&&(s.set(t,e),Ai(e,t,void 0,Fr,s),s.delete(t)),e}function Br(e){return $o(e)?void 0:e}function qr(e,t,n,i,r,s){var o=1&n,a=e.length,c=t.length;if(a!=c&&!(o&&c>a))return!1;var l=s.get(e),u=s.get(t);if(l&&u)return l==t&&u==e;var d=-1,h=!0,p=2&n?new jn:void 0;for(s.set(e,t),s.set(t,e);++d<a;){var f=e[d],g=t[d];if(i)var m=o?i(g,f,d,t,e,s):i(f,g,d,e,t,s);if(void 0!==m){if(m)continue;h=!1;break}
vendor: 13,276 bytes, line 1
1if(p){if(!ft(t,function(e,t){if(!Et(p,t)&&(f===e||r(f,e,n,i,s)))return p.push(t)})){h=!1;break}}else if(f!==g&&!r(f,g,n,i,s)){h=!1;break}}return s.delete(e),s.delete(t),h}function Ur(e){return vs(ps(e,void 0,Ls),e+"")}function Hr(e){return hi(e,wa,Jr)}function Wr(e){return hi(e,ka,es)}var Gr=yn?function(e){return yn.get(e)}:Ka;function Yr(e){for(var t=e.name+"",n=vn[t],i=ke.call(vn,t)?n.length:0;i--;){var r=n[i],s=r.func;if(null==s||s==e)return r.name}return t}function $r(e){return(ke.call(xn,"placeholder")?xn:e).placeholder}function Zr(){var e=xn.iteratee||$a;return e=e===$a?Ci:e,arguments.length?e(arguments[0],arguments[1]):e}function Qr(e,t){var n,i,r=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function Xr(e){for(var t=wa(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,ds(r)]}return t}function Kr(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return ki(n)?n:void 0}var Jr=en?function(e){return null==e?[]:(e=fe(e),at(en(e),function(t){return Ge.call(e,t)}))}:sc,es=en?function(e){for(var t=[];e;)dt(t,Jr(e)),e=Ue(e);return t}:sc,ts=pi;function ns(e,t,n){for(var i=-1,r=(t=or(t,e)).length,s=!1;++i<r;){var o=Ps(t[i]);if(!(s=null!=e&&n(e,o)))break;e=e[o]}return s||++i!=r?s:!!(r=null==e?0:e.length)&&Uo(r)&&ss(o,r)&&(Lo(e)||Ro(e))}function is(e){return"function"!=typeof e.constructor||us(e)?{}:An(Ue(e))}function rs(e){return Lo(e)||Ro(e)||!!(Ze&&e&&e[Ze])}function ss(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ae.test(e))&&e>-1&&e%1==0&&e<t}function os(e,t,n){if(!Ho(n))return!1;var i=typeof t;return!!("number"==i?jo(n)&&ss(t,n.length):"string"==i&&t in n)&&Eo(n[t],e)}function as(e,t){if(Lo(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ko(e))||U.test(e)||!q.test(e)||null!=t&&e in fe(t)}function cs(e){var t=Yr(e),n=xn[t];if("function"!=typeof n||!(t in In.prototype))return!1;if(e===n)return!0;var i=Gr(n);return!!i&&e===i[0]}(hn&&ts(new hn(new ArrayBuffer(1)))!=C||pn&&ts(new pn)!=f||fn&&"[object Promise]"!=ts(fn.resolve())||gn&&ts(new gn)!=y||mn&&ts(new mn)!=w)&&(ts=function(e){var t=pi(e),n=t==m?e.constructor:void 0,i=n?Os(n):"";if(i)switch(i){case _n:return C;case wn:return f;case kn:return"[object Promise]";case Cn:return y;case Sn:return w}return t});var ls=_e?Bo:oc;function us(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ve)}function ds(e){return e==e&&!Ho(e)}function hs(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in fe(n))}}function ps(e,t,n){return t=on(void 0===t?e.length-1:t,0),function(){for(var r=arguments,s=-1,o=on(r.length-t,0),a=i(o);++s<o;)a[s]=r[t+s];s=-1;for(var c=i(t+1);++s<t;)c[s]=r[s];return c[t]=n(a),nt(e,this,c)}}function fs(e,t){return t.length<2?e:di(e,Hi(t,0,-1))}function gs(e,t){for(var n=e.length,i=an(t.length,n),r=mr(e);i--;){var s=t[i];e[i]=ss(s,n)?r[s]:void 0}return e}function ms(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var bs=ws(Bi),ys=Xt||function(e,t){return He.setTimeout(e,t)},vs=ws(qi);function _s(e,t,n){var i=t+"";return vs(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(Z,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return rt(o,function(n){var i="_."+n[0];t&n[1]&&!ct(e,i)&&e.push(i)}),e.sort()}(function(e){var t=e.match(Q);return t?t[1].split(X):[]}(i),n)))}function ws(e){var t=0,n=0;return function(){var i=cn(),r=16-(i-n);if(n=i,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ks(e,t){var n=-1,i=e.length,r=i-1;for(t=void 0===t?i:t;++n<t;){var s=Di(n,r),o=e[s];e[s]=e[n],e[n]=o}return e.length=t,e}var Cs,Ss,Ts=(Cs=So(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(H,function(e,n,i,r){t.push(i?r.replace(ee,"$1"):n||e)}),t},function(e){return 500===Ss.size&&Ss.clear(),e}),Ss=Cs.cache,Cs);function Ps(e){if("string"==typeof e||Ko(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Os(e){if(null!=e){try{return we.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function xs(e){if(e instanceof In)return e.clone();var t=new Mn(e.__wrapped__,e.__chain__);return t.__actions__=mr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var As=Ni(function(e,t){return No(e)?Jn(e,si(t,1,No,!0)):[]}),Es=Ni(function(e,t){var n=zs(t);return No(n)&&(n=void 0),No(e)?Jn(e,si(t,1,No,!0),Zr(n,2)):[]}),Ms=Ni(function(e,t){var n=zs(t);return No(n)&&(n=void 0),No(e)?Jn(e,si(t,1,No,!0),void 0,n):[]});function Is(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:ra(n);return r<0&&(r=on(i+r,0)),bt(e,Zr(t,3),r)}function Rs(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=i-1;return void 0!==n&&(r=ra(n),r=n<0?on(i+r,0):an(r,i-1)),bt(e,Zr(t,3),r,!0)}function Ls(e){return null!=e&&e.length?si(e,1):[]}function Ds(e){return e&&e.length?e[0]:void 0}var js=Ni(function(e){var t=ut(e,rr);return t.length&&t[0]===e[0]?bi(t):[]}),Ns=Ni(function(e){var t=zs(e),n=ut(e,rr);return t===zs(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?bi(n,Zr(t,2)):[]}),Vs=Ni(function(e){var t=zs(e),n=ut(e,rr);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?bi(n,void 0,t):[]});function zs(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Fs=Ni(Bs);function Bs(e,t){return e&&e.length&&t&&t.length?Ri(e,t):e}var qs=Ur(function(e,t){var n=null==e?0:e.length,i=$n(e,t);return Li(e,ut(t,function(e){return ss(e,n)?+e:e}).sort(pr)),i});function Us(e){return null==e?e:dn.call(e)}var Hs=Ni(function(e){return Xi(si(e,1,No,!0))}),Ws=Ni(function(e){var t=zs(e);return No(t)&&(t=void 0),Xi(si(e,1,No,!0),Zr(t,2))}),Gs=Ni(function(e){var t=zs(e);return t="function"==typeof t?t:void 0,Xi(si(e,1,No,!0),void 0,t)});function Ys(e){if(!e||!e.length)return[];var t=0;return e=at(e,function(e){if(No(e))return t=on(e.length,t),!0}),Pt(t,function(t){return ut(e,kt(t))})}function $s(e,t){if(!e||!e.length)return[];var n=Ys(e);return null==t?n:ut(n,function(e){return nt(t,void 0,e)})}var Zs=Ni(function(e,t){return No(e)?Jn(e,t):[]}),Qs=Ni(function(e){return nr(at(e,No))}),Xs=Ni(function(e){var t=zs(e);return No(t)&&(t=void 0),nr(at(e,No),Zr(t,2))}),Ks=Ni(function(e){var t=zs(e);return t="function"==typeof t?t:void 0,nr(at(e,No),void 0,t)}),Js=Ni(Ys),eo=Ni(function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,$s(e,n)});function to(e){var t=xn(e);return t.__chain__=!0,t}function no(e,t){return t(e)}var io=Ur(function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,r=function(t){return $n(t,e)};return!(t>1||this.__actions__.length)&&i instanceof In&&ss(n)?((i=i.slice(n,+n+(t?1:0))).__actions__.push({func:no,args:[r],thisArg:void 0}),new Mn(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(void 0),e})):this.thru(r)}),ro=yr(function(e,t,n){ke.call(e,n)?++e[n]:Yn(e,n,1)}),so=Tr(Is),oo=Tr(Rs);function ao(e,t){return(Lo(e)?rt:ei)(e,Zr(t,3))}function co(e,t){return(Lo(e)?st:ti)(e,Zr(t,3))}var lo=yr(function(e,t,n){ke.call(e,n)?e[n].push(t):Yn(e,n,[t])}),uo=Ni(function(e,t,n){var r=-1,s="function"==typeof t,o=jo(e)?i(e.length):[];return ei(e,function(e){o[++r]=s?nt(t,e,n):yi(e,t,n)}),o}),ho=yr(function(e,t,n){Yn(e,n,t)});function po(e,t){return(Lo(e)?ut:Pi)(e,Zr(t,3))}var fo=yr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),go=Ni(function(e,t){if(null==e)return[];var n=t.length;return n>1&&os(e,t[0],t[1])?t=[]:n>2&&os(t[0],t[1],t[2])&&(t=[t[0]]),Mi(e,si(t,1),[])}),mo=Qt||function(){return He.Date.now()};function bo(e,t,n){return t=n?void 0:t,Vr(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function yo(e,t){var n;if("function"!=typeof t)throw new be(r);return e=ra(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var vo=Ni(function(e,t,n){var i=1;if(n.length){var r=Ft(n,$r(vo));i|=32}return Vr(e,i,t,n,r)}),_o=Ni(function(e,t,n){var i=3;if(n.length){var r=Ft(n,$r(_o));i|=32}return Vr(t,i,e,n,r)});function wo(e,t,n){var i,s,o,a,c,l,u=0,d=!1,h=!1,p=!0;if("function"!=typeof e)throw new be(r);function f(t){var n=i,r=s;return i=s=void 0,u=t,a=e.apply(r,n)}function g(e){return u=e,c=ys(b,t),d?f(e):a}function m(e){var n=e-l;return void 0===l||n>=t||n<0||h&&e-u>=o}function b(){var e=mo();if(m(e))return y(e);c=ys(b,function(e){var n=t-(e-l);return h?an(n,o-(e-u)):n}(e))}function y(e){return c=void 0,p&&i?f(e):(i=s=void 0,a)}function v(){var e=mo(),n=m(e);if(i=arguments,s=this,l=e,n){if(void 0===c)return g(l);if(h)return lr(c),c=ys(b,t),f(l)}return void 0===c&&(c=ys(b,t)),a}return t=oa(t)||0,Ho(n)&&(d=!!n.leading,o=(h="maxWait"in n)?on(oa(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==c&&lr(c),u=0,i=l=s=c=void 0},v.flush=function(){return void 0===c?a:y(mo())},v}var ko=Ni(function(e,t){return Kn(e,1,t)}),Co=Ni(function(e,t,n){return Kn(e,oa(t)||0,n)});function So(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new be(r);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],s=n.cache;if(s.has(r))return s.get(r);var o=e.apply(this,i);return n.cache=s.set(r,o)||s,o};return n.cache=new(So.Cache||Dn),n}function To(e){if("function"!=typeof e)throw new be(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}So.Cache=Dn;var Po=ar(function(e,t){var n=(t=1==t.length&&Lo(t[0])?ut(t[0],xt(Zr())):ut(si(t,1),xt(Zr()))).length;return Ni(function(i){for(var r=-1,s=an(i.length,n);++r<s;)i[r]=t[r].call(this,i[r]);return nt(e,this,i)})}),Oo=Ni(function(e,t){return Vr(e,32,void 0,t,Ft(t,$r(Oo)))}),xo=Ni(function(e,t){return Vr(e,64,void 0,t,Ft(t,$r(xo)))}),Ao=Ur(function(e,t){return Vr(e,256,void 0,void 0,void 0,t)});function Eo(e,t){return e===t||e!=e&&t!=t}var Mo=Rr(fi),Io=Rr(function(e,t){return e>=t}),Ro=vi(function(){return arguments}())?vi:function(e){return Wo(e)&&ke.call(e,"callee")&&!Ge.call(e,"callee")},Lo=i.isArray,Do=Qe?xt(Qe):function(e){return Wo(e)&&pi(e)==k};function jo(e){return null!=e&&Uo(e.length)&&!Bo(e)}function No(e){return Wo(e)&&jo(e)}var Vo=tn||oc,zo=Xe?xt(Xe):function(e){return Wo(e)&&pi(e)==u};function Fo(e){if(!Wo(e))return!1;var t=pi(e);return t==d||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!$o(e)}function Bo(e){if(!Ho(e))return!1;var t=pi(e);return t==h||t==p||"[object AsyncFunction]"==t||"[object Proxy]"==t}function qo(e){return"number"==typeof e&&e==ra(e)}function Uo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ho(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Wo(e){return null!=e&&"object"==typeof e}var Go=Ke?xt(Ke):function(e){return Wo(e)&&ts(e)==f};function Yo(e){return"number"==typeof e||Wo(e)&&pi(e)==g}function $o(e){if(!Wo(e)||pi(e)!=m)return!1;var t=Ue(e);if(null===t)return!0;var n=ke.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&we.call(n)==Pe}var Zo=Je?xt(Je):function(e){return Wo(e)&&pi(e)==b},Qo=et?xt(et):function(e){return Wo(e)&&ts(e)==y};function Xo(e){return"string"==typeof e||!Lo(e)&&Wo(e)&&pi(e)==v}function Ko(e){return"symbol"==typeof e||Wo(e)&&pi(e)==_}var Jo=tt?xt(tt):function(e){return Wo(e)&&Uo(e.length)&&!!Ne[pi(e)]},ea=Rr(Ti),ta=Rr(function(e,t){return e<=t});function na(e){if(!e)return[];if(jo(e))return Xo(e)?Ht(e):mr(e);if(gt&&e[gt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[gt]());var t=ts(e);return(t==f?Vt:t==y?Bt:Ea)(e)}function ia(e){return e?1/0===(e=oa(e))||-1/0===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ra(e){var t=ia(e),n=t%1;return t==t?n?t-n:t:0}function sa(e){return e?Zn(ra(e),0,4294967295):0}function oa(e){if("number"==typeof e)return e;if(Ko(e))return NaN;if(Ho(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ho(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ot(e);var n=re.test(e);return n||oe.test(e)?Be(e.slice(2),n?2:8):ie.test(e)?NaN:+e}function aa(e){return br(e,ka(e))}function ca(e){return null==e?"":Qi(e)}var la=vr(function(e,t){if(us(t)||jo(t))br(t,wa(t),e);else for(var n in t)ke.call(t,n)&&Un(e,n,t[n])}),ua=vr(function(e,t){br(t,ka(t),e)}),da=vr(function(e,t,n,i){br(t,ka(t),e,i)}),ha=vr(function(e,t,n,i){br(t,wa(t),e,i)}),pa=Ur($n),fa=Ni(function(e,t){e=fe(e);var n=-1,i=t.length,r=i>2?t[2]:void 0;for(r&&os(t[0],t[1],r)&&(i=1);++n<i;)for(var s=t[n],o=ka(s),a=-1,c=o.length;++a<c;){var l=o[a],u=e[l];(void 0===u||Eo(u,ve[l])&&!ke.call(e,l))&&(e[l]=s[l])}return e}),ga=Ni(function(e){return e.push(void 0,Fr),nt(Sa,void 0,e)});function ma(e,t,n){var i=null==e?void 0:di(e,t);return void 0===i?n:i}function ba(e,t){return null!=e&&ns(e,t,mi)}var ya=xr(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Te.call(t)),e[t]=n},Ha(Ya)),va=xr(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Te.call(t)),ke.call(e,t)?e[t].push(n):e[t]=[n]},Zr),_a=Ni(yi);function wa(e){return jo(e)?Vn(e):Si(e)}function ka(e){return jo(e)?Vn(e,!0):function(e){if(!Ho(e))return function(e){var t=[];if(null!=e)for(var n in fe(e))t.push(n);return t}(e);var t=us(e),n=[];
vendor: 4,543 bytes, line 1
1for(var i in e)("constructor"!=i||!t&&ke.call(e,i))&&n.push(i);return n}(e)}var Ca=vr(function(e,t,n){Ai(e,t,n)}),Sa=vr(function(e,t,n,i){Ai(e,t,n,i)}),Ta=Ur(function(e,t){var n={};if(null==e)return n;var i=!1;t=ut(t,function(t){return t=or(t,e),i||(i=t.length>1),t}),br(e,Wr(e),n),i&&(n=Qn(n,7,Br));for(var r=t.length;r--;)Ki(n,t[r]);return n}),Pa=Ur(function(e,t){return null==e?{}:function(e,t){return Ii(e,t,function(t,n){return ba(e,n)})}(e,t)});function Oa(e,t){if(null==e)return{};var n=ut(Wr(e),function(e){return[e]});return t=Zr(t),Ii(e,n,function(e,n){return t(e,n[0])})}var xa=Nr(wa),Aa=Nr(ka);function Ea(e){return null==e?[]:At(e,wa(e))}var Ma=Cr(function(e,t,n){return t=t.toLowerCase(),e+(n?Ia(t):t)});function Ia(e){return Fa(ca(e).toLowerCase())}function Ra(e){return(e=ca(e))&&e.replace(ce,Lt).replace(Ee,"")}var La=Cr(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Da=Cr(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),ja=kr("toLowerCase"),Na=Cr(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Va=Cr(function(e,t,n){return e+(n?" ":"")+Fa(t)}),za=Cr(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Fa=kr("toUpperCase");function Ba(e,t,n){return e=ca(e),void 0===(t=n?void 0:t)?function(e){return Le.test(e)}(e)?function(e){return e.match(Ie)||[]}(e):function(e){return e.match(K)||[]}(e):e.match(t)||[]}var qa=Ni(function(e,t){try{return nt(e,void 0,t)}catch(n){return Fo(n)?n:new de(n)}}),Ua=Ur(function(e,t){return rt(t,function(t){t=Ps(t),Yn(e,t,vo(e[t],e))}),e});function Ha(e){return function(){return e}}var Wa=Pr(),Ga=Pr(!0);function Ya(e){return e}function $a(e){return Ci("function"==typeof e?e:Qn(e,1))}var Za=Ni(function(e,t){return function(n){return yi(n,e,t)}}),Qa=Ni(function(e,t){return function(n){return yi(e,n,t)}});function Xa(e,t,n){var i=wa(t),r=ui(t,i);null!=n||Ho(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=ui(t,wa(t)));var s=!(Ho(n)&&"chain"in n&&!n.chain),o=Bo(e);return rt(r,function(n){var i=t[n];e[n]=i,o&&(e.prototype[n]=function(){var t=this.__chain__;if(s||t){var n=e(this.__wrapped__),r=n.__actions__=mr(this.__actions__);return r.push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,dt([this.value()],arguments))})}),e}function Ka(){}var Ja=Er(ut),ec=Er(ot),tc=Er(ft);function nc(e){return as(e)?kt(Ps(e)):function(e){return function(t){return di(t,e)}}(e)}var ic=Ir(),rc=Ir(!0);function sc(){return[]}function oc(){return!1}var ac,cc=Ar(function(e,t){return e+t},0),lc=Dr("ceil"),uc=Ar(function(e,t){return e/t},1),dc=Dr("floor"),hc=Ar(function(e,t){return e*t},1),pc=Dr("round"),fc=Ar(function(e,t){return e-t},0);return xn.after=function(e,t){if("function"!=typeof t)throw new be(r);return e=ra(e),function(){if(--e<1)return t.apply(this,arguments)}},xn.ary=bo,xn.assign=la,xn.assignIn=ua,xn.assignInWith=da,xn.assignWith=ha,xn.at=pa,xn.before=yo,xn.bind=vo,xn.bindAll=Ua,xn.bindKey=_o,xn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Lo(e)?e:[e]},xn.chain=to,xn.chunk=function(e,t,n){t=(n?os(e,t,n):void 0===t)?1:on(ra(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var s=0,o=0,a=i(Kt(r/t));s<r;)a[o++]=Hi(e,s,s+=t);return a},xn.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,r=[];++t<n;){var s=e[t];s&&(r[i++]=s)}return r},xn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=i(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return dt(Lo(n)?mr(n):[n],si(t,1))},xn.cond=function(e){var t=null==e?0:e.length,n=Zr();return e=t?ut(e,function(e){if("function"!=typeof e[1])throw new be(r);return[n(e[0]),e[1]]}):[],Ni(function(n){for(var i=-1;++i<t;){var r=e[i];if(nt(r[0],this,n))return nt(r[1],this,n)}})},xn.conforms=function(e){return function(e){var t=wa(e);return function(n){return Xn(n,e,t)}}(Qn(e,1))},xn.constant=Ha,xn.countBy=ro,xn.create=function(e,t){var n=An(e);return null==t?n:Gn(n,t)},xn.curry=function e(t,n,i){var r=Vr(t,8,void 0,void 0,void 0,void 0,void 0,n=i?void 0:n);return r.placeholder=e.placeholder,r},xn.curryRight=function e(t,n,i){var r=Vr(t,16,void 0,void 0,void 0,void 0,void 0,n=i?void 0:n);return r.placeholder=e.placeholder,r},xn.debounce=wo,xn.defaults=fa,xn.defaultsDeep=ga,xn.defer=ko,xn.delay=Co,xn.difference=As,xn.differenceBy=Es,xn.differenceWith=Ms,xn.drop=function(e,t,n){var i=null==e?0:e.length;return i?Hi(e,(t=n||void 0===t?1:ra(t))<0?0:t,i):[]},xn.dropRight=function(e,t,n){var i=null==e?0:e.length;return i?Hi(e,0,(t=i-(t=n||void 0===t?1:ra(t)))<0?0:t):[]},xn.dropRightWhile=function(e,t){return e&&e.length?er(e,Zr(t,3),!0,
vendor: 5,780 bytes, line 1
1!0):[]},xn.dropWhile=function(e,t){return e&&e.length?er(e,Zr(t,3),!0):[]},xn.fill=function(e,t,n,i){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&os(e,t,n)&&(n=0,i=r),function(e,t,n,i){var r=e.length;for((n=ra(n))<0&&(n=-n>r?0:r+n),(i=void 0===i||i>r?r:ra(i))<0&&(i+=r),i=n>i?0:sa(i);n<i;)e[n++]=t;return e}(e,t,n,i)):[]},xn.filter=function(e,t){return(Lo(e)?at:ri)(e,Zr(t,3))},xn.flatMap=function(e,t){return si(po(e,t),1)},xn.flatMapDeep=function(e,t){return si(po(e,t),1/0)},xn.flatMapDepth=function(e,t,n){return n=void 0===n?1:ra(n),si(po(e,t),n)},xn.flatten=Ls,xn.flattenDeep=function(e){return null!=e&&e.length?si(e,1/0):[]},xn.flattenDepth=function(e,t){return null!=e&&e.length?si(e,t=void 0===t?1:ra(t)):[]},xn.flip=function(e){return Vr(e,512)},xn.flow=Wa,xn.flowRight=Ga,xn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var r=e[t];i[r[0]]=r[1]}return i},xn.functions=function(e){return null==e?[]:ui(e,wa(e))},xn.functionsIn=function(e){return null==e?[]:ui(e,ka(e))},xn.groupBy=lo,xn.initial=function(e){return null!=e&&e.length?Hi(e,0,-1):[]},xn.intersection=js,xn.intersectionBy=Ns,xn.intersectionWith=Vs,xn.invert=ya,xn.invertBy=va,xn.invokeMap=uo,xn.iteratee=$a,xn.keyBy=ho,xn.keys=wa,xn.keysIn=ka,xn.map=po,xn.mapKeys=function(e,t){var n={};return t=Zr(t,3),ci(e,function(e,i,r){Yn(n,t(e,i,r),e)}),n},xn.mapValues=function(e,t){var n={};return t=Zr(t,3),ci(e,function(e,i,r){Yn(n,i,t(e,i,r))}),n},xn.matches=function(e){return Oi(Qn(e,1))},xn.matchesProperty=function(e,t){return xi(e,Qn(t,1))},xn.memoize=So,xn.merge=Ca,xn.mergeWith=Sa,xn.method=Za,xn.methodOf=Qa,xn.mixin=Xa,xn.negate=To,xn.nthArg=function(e){return e=ra(e),Ni(function(t){return Ei(t,e)})},xn.omit=Ta,xn.omitBy=function(e,t){return Oa(e,To(Zr(t)))},xn.once=function(e){return yo(2,e)},xn.orderBy=function(e,t,n,i){return null==e?[]:(Lo(t)||(t=null==t?[]:[t]),Lo(n=i?void 0:n)||(n=null==n?[]:[n]),Mi(e,t,n))},xn.over=Ja,xn.overArgs=Po,xn.overEvery=ec,xn.overSome=tc,xn.partial=Oo,xn.partialRight=xo,xn.partition=fo,xn.pick=Pa,xn.pickBy=Oa,xn.property=nc,xn.propertyOf=function(e){return function(t){return null==e?void 0:di(e,t)}},xn.pull=Fs,xn.pullAll=Bs,xn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Ri(e,t,Zr(n,2)):e},xn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Ri(e,t,void 0,n):e},xn.pullAt=qs,xn.range=ic,xn.rangeRight=rc,xn.rearg=Ao,xn.reject=function(e,t){return(Lo(e)?at:ri)(e,To(Zr(t,3)))},xn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,r=[],s=e.length;for(t=Zr(t,3);++i<s;){var o=e[i];t(o,i,e)&&(n.push(o),r.push(i))}return Li(e,r),n},xn.rest=function(e,t){if("function"!=typeof e)throw new be(r);return Ni(e,t=void 0===t?t:ra(t))},xn.reverse=Us,xn.sampleSize=function(e,t,n){return t=(n?os(e,t,n):void 0===t)?1:ra(t),(Lo(e)?Fn:zi)(e,t)},xn.set=function(e,t,n){return null==e?e:Fi(e,t,n)},xn.setWith=function(e,t,n,i){return i="function"==typeof i?i:void 0,null==e?e:Fi(e,t,n,i)},xn.shuffle=function(e){return(Lo(e)?Bn:Ui)(e)},xn.slice=function(e,t,n){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&os(e,t,n)?(t=0,n=i):(t=null==t?0:ra(t),n=void 0===n?i:ra(n)),Hi(e,t,n)):[]},xn.sortBy=go,xn.sortedUniq=function(e){return e&&e.length?$i(e):[]},xn.sortedUniqBy=function(e,t){return e&&e.length?$i(e,Zr(t,2)):[]},xn.split=function(e,t,n){return n&&"number"!=typeof n&&os(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=ca(e))&&("string"==typeof t||null!=t&&!Zo(t))&&!(t=Qi(t))&&Nt(e)?cr(Ht(e),0,n):e.split(t,n):[]},xn.spread=function(e,t){if("function"!=typeof e)throw new be(r);return t=null==t?0:on(ra(t),0),Ni(function(n){var i=n[t],r=cr(n,0,t);return i&&dt(r,i),nt(e,this,r)})},xn.tail=function(e){var t=null==e?0:e.length;return t?Hi(e,1,t):[]},xn.take=function(e,t,n){return e&&e.length?Hi(e,0,(t=n||void 0===t?1:ra(t))<0?0:t):[]},xn.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?Hi(e,(t=i-(t=n||void 0===t?1:ra(t)))<0?0:t,i):[]},xn.takeRightWhile=function(e,t){return e&&e.length?er(e,Zr(t,3),!1,!0):[]},xn.takeWhile=function(e,t){return e&&e.length?er(e,Zr(t,3)):[]},xn.tap=function(e,t){return t(e),e},xn.throttle=function(e,t,n){var i=!0,s=!0;if("function"!=typeof e)throw new be(r);return Ho(n)&&(i="leading"in n?!!n.leading:i,s="trailing"in n?!!n.trailing:s),wo(e,t,{leading:i,maxWait:t,trailing:s})},xn.thru=no,xn.toArray=na,xn.toPairs=xa,xn.toPairsIn=Aa,xn.toPath=function(e){return Lo(e)?ut(e,Ps):Ko(e)?[e]:mr(Ts(ca(e)))},xn.toPlainObject=aa,xn.transform=function(e,t,n){var i=Lo(e),r=i||Vo(e)||Jo(e);if(t=Zr(t,4),null==n){var s=e&&e.constructor;n=r?i?new s:[]:Ho(e)&&Bo(s)?An(Ue(e)):{}}return(r?rt:ci)(e,function(e,i,r){return t(n,e,i,r)}),n},xn.unary=function(e){return bo(e,1)},xn.union=Hs,xn.unionBy=Ws,xn.unionWith=Gs,xn.uniq=function(e){return e&&e.length?Xi(e):[]},xn.uniqBy=function(e,t){return e&&e.length?Xi(e,Zr(t,2)):[]},xn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Xi(e,void 0,t):[]},xn.unset=function(e,t){return null==e||Ki(e,t)},xn.unzip=Ys,xn.unzipWith=$s,xn.update=function(e,t,n){return null==e?e:Ji(e,t,sr(n))},xn.updateWith=function(e,t,n,i){return i="function"==typeof i?i:void 0,null==e?e:Ji(e,t,sr(n),i)},xn.values=Ea,xn.valuesIn=function(e){return null==e?[]:At(e,ka(e))},xn.without=Zs,xn.words=Ba,xn.wrap=function(e,t){return Oo(sr(t),e)},xn.xor=Qs,xn.xorBy=Xs,xn.xorWith=Ks,xn.zip=Js,xn.zipObject=function(e,t){return ir(e||[],t||[],Un)},xn.zipObjectDeep=function(e,t){return ir(e||[],t||[],Fi)},xn.zipWith=eo,xn.entries=xa,xn.entriesIn=Aa,xn.extend=ua,xn.extendWith=da,Xa(xn,xn),xn.add=cc,xn.attempt=qa,xn.camelCase=Ma,xn.capitalize=Ia,xn.ceil=lc,xn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=oa(n))==n?n:0),void 0!==t&&(t=(t=oa(t))==t?t:0),Zn(oa(e),t,n)}
vendor: 14,569 bytes, line 1
1,xn.clone=function(e){return Qn(e,4)},xn.cloneDeep=function(e){return Qn(e,5)},xn.cloneDeepWith=function(e,t){return Qn(e,5,t="function"==typeof t?t:void 0)},xn.cloneWith=function(e,t){return Qn(e,4,t="function"==typeof t?t:void 0)},xn.conformsTo=function(e,t){return null==t||Xn(e,t,wa(t))},xn.deburr=Ra,xn.defaultTo=function(e,t){return null==e||e!=e?t:e},xn.divide=uc,xn.endsWith=function(e,t,n){e=ca(e),t=Qi(t);var i=e.length,r=n=void 0===n?i:Zn(ra(n),0,i);return(n-=t.length)>=0&&e.slice(n,r)==t},xn.eq=Eo,xn.escape=function(e){return(e=ca(e))&&V.test(e)?e.replace(j,Dt):e},xn.escapeRegExp=function(e){return(e=ca(e))&&G.test(e)?e.replace(W,"\\$&"):e},xn.every=function(e,t,n){var i=Lo(e)?ot:ni;return n&&os(e,t,n)&&(t=void 0),i(e,Zr(t,3))},xn.find=so,xn.findIndex=Is,xn.findKey=function(e,t){return mt(e,Zr(t,3),ci)},xn.findLast=oo,xn.findLastIndex=Rs,xn.findLastKey=function(e,t){return mt(e,Zr(t,3),li)},xn.floor=dc,xn.forEach=ao,xn.forEachRight=co,xn.forIn=function(e,t){return null==e?e:oi(e,Zr(t,3),ka)},xn.forInRight=function(e,t){return null==e?e:ai(e,Zr(t,3),ka)},xn.forOwn=function(e,t){return e&&ci(e,Zr(t,3))},xn.forOwnRight=function(e,t){return e&&li(e,Zr(t,3))},xn.get=ma,xn.gt=Mo,xn.gte=Io,xn.has=function(e,t){return null!=e&&ns(e,t,gi)},xn.hasIn=ba,xn.head=Ds,xn.identity=Ya,xn.includes=function(e,t,n,i){e=jo(e)?e:Ea(e),n=n&&!i?ra(n):0;var r=e.length;return n<0&&(n=on(r+n,0)),Xo(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&yt(e,t,n)>-1},xn.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:ra(n);return r<0&&(r=on(i+r,0)),yt(e,t,r)},xn.inRange=function(e,t,n){return t=ia(t),void 0===n?(n=t,t=0):n=ia(n),function(e,t,n){return e>=an(t,n)&&e<on(t,n)}(e=oa(e),t,n)},xn.invoke=_a,xn.isArguments=Ro,xn.isArray=Lo,xn.isArrayBuffer=Do,xn.isArrayLike=jo,xn.isArrayLikeObject=No,xn.isBoolean=function(e){return!0===e||!1===e||Wo(e)&&pi(e)==l},xn.isBuffer=Vo,xn.isDate=zo,xn.isElement=function(e){return Wo(e)&&1===e.nodeType&&!$o(e)},xn.isEmpty=function(e){if(null==e)return!0;if(jo(e)&&(Lo(e)||"string"==typeof e||"function"==typeof e.splice||Vo(e)||Jo(e)||Ro(e)))return!e.length;var t=ts(e);if(t==f||t==y)return!e.size;if(us(e))return!Si(e).length;for(var n in e)if(ke.call(e,n))return!1;return!0},xn.isEqual=function(e,t){return _i(e,t)},xn.isEqualWith=function(e,t,n){var i=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===i?_i(e,t,void 0,n):!!i},xn.isError=Fo,xn.isFinite=function(e){return"number"==typeof e&&nn(e)},xn.isFunction=Bo,xn.isInteger=qo,xn.isLength=Uo,xn.isMap=Go,xn.isMatch=function(e,t){return e===t||wi(e,t,Xr(t))},xn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,wi(e,t,Xr(t),n)},xn.isNaN=function(e){return Yo(e)&&e!=+e},xn.isNative=function(e){if(ls(e))throw new de("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return ki(e)},xn.isNil=function(e){return null==e},xn.isNull=function(e){return null===e},xn.isNumber=Yo,xn.isObject=Ho,xn.isObjectLike=Wo,xn.isPlainObject=$o,xn.isRegExp=Zo,xn.isSafeInteger=function(e){return qo(e)&&e>=-9007199254740991&&e<=9007199254740991},xn.isSet=Qo,xn.isString=Xo,xn.isSymbol=Ko,xn.isTypedArray=Jo,xn.isUndefined=function(e){return void 0===e},xn.isWeakMap=function(e){return Wo(e)&&ts(e)==w},xn.isWeakSet=function(e){return Wo(e)&&"[object WeakSet]"==pi(e)},xn.join=function(e,t){return null==e?"":rn.call(e,t)},xn.kebabCase=La,xn.last=zs,xn.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=i;return void 0!==n&&(r=(r=ra(n))<0?on(i+r,0):an(r,i-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,r):bt(e,_t,r,!0)},xn.lowerCase=Da,xn.lowerFirst=ja,xn.lt=ea,xn.lte=ta,xn.max=function(e){return e&&e.length?ii(e,Ya,fi):void 0},xn.maxBy=function(e,t){return e&&e.length?ii(e,Zr(t,2),fi):void 0},xn.mean=function(e){return wt(e,Ya)},xn.meanBy=function(e,t){return wt(e,Zr(t,2))},xn.min=function(e){return e&&e.length?ii(e,Ya,Ti):void 0},xn.minBy=function(e,t){return e&&e.length?ii(e,Zr(t,2),Ti):void 0},xn.stubArray=sc,xn.stubFalse=oc,xn.stubObject=function(){return{}},xn.stubString=function(){return""},xn.stubTrue=function(){return!0},xn.multiply=hc,xn.nth=function(e,t){return e&&e.length?Ei(e,ra(t)):void 0},xn.noConflict=function(){return He._===this&&(He._=Oe),this},xn.noop=Ka,xn.now=mo,xn.pad=function(e,t,n){e=ca(e);var i=(t=ra(t))?Ut(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return Mr(Jt(r),n)+e+Mr(Kt(r),n)},xn.padEnd=function(e,t,n){e=ca(e);var i=(t=ra(t))?Ut(e):0;return t&&i<t?e+Mr(t-i,n):e},xn.padStart=function(e,t,n){e=ca(e);var i=(t=ra(t))?Ut(e):0;return t&&i<t?Mr(t-i,n)+e:e},xn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),ln(ca(e).replace(Y,""),t||0)},xn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&os(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=ia(e),void 0===t?(t=e,e=0):t=ia(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var r=un();return an(e+r*(t-e+Fe("1e-"+((r+"").length-1))),t)}return Di(e,t)},xn.reduce=function(e,t,n){var i=Lo(e)?ht:St,r=arguments.length<3;return i(e,Zr(t,4),n,r,ei)},xn.reduceRight=function(e,t,n){var i=Lo(e)?pt:St,r=arguments.length<3;return i(e,Zr(t,4),n,r,ti)},xn.repeat=function(e,t,n){return t=(n?os(e,t,n):void 0===t)?1:ra(t),ji(ca(e),t)},xn.replace=function(){var e=arguments,t=ca(e[0]);return e.length<3?t:t.replace(e[1],e[2])},xn.result=function(e,t,n){var i=-1,r=(t=or(t,e)).length;for(r||(r=1,e=void 0);++i<r;){var s=null==e?void 0:e[Ps(t[i])];void 0===s&&(i=r,s=n),e=Bo(s)?s.call(e):s}return e},xn.round=pc,xn.runInContext=e,xn.sample=function(e){return(Lo(e)?zn:Vi)(e)},xn.size=function(e){if(null==e)return 0;if(jo(e))return Xo(e)?Ut(e):e.length;var t=ts(e);return t==f||t==y?e.size:Si(e).length},xn.snakeCase=Na,xn.some=function(e,t,n){var i=Lo(e)?ft:Wi;return n&&os(e,t,n)&&(t=void 0),i(e,Zr(t,3))},xn.sortedIndex=function(e,t){return Gi(e,t)},xn.sortedIndexBy=function(e,t,n){return Yi(e,t,Zr(n,2))},xn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=Gi(e,t);if(i<n&&Eo(e[i],t))return i}return-1},xn.sortedLastIndex=function(e,t){return Gi(e,t,!0)},xn.sortedLastIndexBy=function(e,t,n){return Yi(e,t,Zr(n,2),!0)},xn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=Gi(e,t,!0)-1;if(Eo(e[n],t))return n}return-1},xn.startCase=Va,xn.startsWith=function(e,t,n){return e=ca(e),n=null==n?0:Zn(ra(n),0,e.length),t=Qi(t),e.slice(n,n+t.length)==t},xn.subtract=fc,xn.sum=function(e){return e&&e.length?Tt(e,Ya):0},xn.sumBy=function(e,t){return e&&e.length?Tt(e,Zr(t,2)):0},xn.template=function(e,t,n){var i=xn.templateSettings;n&&os(e,t,n)&&(t=void 0),e=ca(e),t=da({},t,i,zr);var r,s,o=da({},t.imports,i.imports,zr),a=wa(o),c=At(o,a),l=0,u=t.interpolate||le,d="__p += '",h=ge((t.escape||le).source+"|"+u.source+"|"+(u===B?te:le).source+"|"+(t.evaluate||le).source+"|$","g"),p="//# sourceURL="+(ke.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++je+"]")+"\n";e.replace(h,function(t,n,i,o,a,c){return i||(i=o),d+=e.slice(l,c).replace(ue,jt),n&&(r=!0,d+="' +\n__e("+n+") +\n'"),a&&(s=!0,d+="';\n"+a+";\n__p += '"),i&&(d+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),l=c+t.length,t}),d+="';\n";var f=ke.call(t,"variable")&&t.variable;if(f){if(J.test(f))throw new de("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(s?d.replace(I,""):d).replace(R,"$1").replace(L,"$1;"),d="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=qa(function(){return he(a,p+"return "+d).apply(void 0,c)});if(g.source=d,Fo(g))throw g;return g},xn.times=function(e,t){if((e=ra(e))<1||e>9007199254740991)return[];var n=4294967295,i=an(e,4294967295);e-=4294967295;for(var r=Pt(i,t=Zr(t));++n<e;)t(n);return r},xn.toFinite=ia,xn.toInteger=ra,xn.toLength=sa,xn.toLower=function(e){return ca(e).toLowerCase()},xn.toNumber=oa,xn.toSafeInteger=function(e){return e?Zn(ra(e),-9007199254740991,9007199254740991):0===e?e:0},xn.toString=ca,xn.toUpper=function(e){return ca(e).toUpperCase()},xn.trim=function(e,t,n){if((e=ca(e))&&(n||void 0===t))return Ot(e);if(!e||!(t=Qi(t)))return e;var i=Ht(e),r=Ht(t);return cr(i,Mt(i,r),It(i,r)+1).join("")},xn.trimEnd=function(e,t,n){if((e=ca(e))&&(n||void 0===t))return e.slice(0,Wt(e)+1);if(!e||!(t=Qi(t)))return e;var i=Ht(e);return cr(i,0,It(i,Ht(t))+1).join("")},xn.trimStart=function(e,t,n){if((e=ca(e))&&(n||void 0===t))return e.replace(Y,"");if(!e||!(t=Qi(t)))return e;var i=Ht(e);return cr(i,Mt(i,Ht(t))).join("")},xn.truncate=function(e,t){var n=30,i="...";if(Ho(t)){var r="separator"in t?t.separator:r;n="length"in t?ra(t.length):n,i="omission"in t?Qi(t.omission):i}var s=(e=ca(e)).length;if(Nt(e)){var o=Ht(e);s=o.length}if(n>=s)return e;var a=n-Ut(i);if(a<1)return i;var c=o?cr(o,0,a).join(""):e.slice(0,a);if(void 0===r)return c+i;if(o&&(a+=c.length-a),Zo(r)){if(e.slice(a).search(r)){var l,u=c;for(r.global||(r=ge(r.source,ca(ne.exec(r))+"g")),r.lastIndex=0;l=r.exec(u);)var d=l.index;c=c.slice(0,void 0===d?a:d)}}else if(e.indexOf(Qi(r),a)!=a){var h=c.lastIndexOf(r);h>-1&&(c=c.slice(0,h))}return c+i},xn.unescape=function(e){return(e=ca(e))&&N.test(e)?e.replace(D,Gt):e},xn.uniqueId=function(e){var t=++Ce;return ca(e)+t},xn.upperCase=za,xn.upperFirst=Fa,xn.each=ao,xn.eachRight=co,xn.first=Ds,Xa(xn,(ac={},ci(xn,function(e,t){ke.call(xn.prototype,t)||(ac[t]=e)}),ac),{chain:!1}),xn.VERSION="4.17.21",rt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){xn[e].placeholder=xn}),rt(["drop","take"],function(e,t){In.prototype[e]=function(n){n=void 0===n?1:on(ra(n),0);var i=this.__filtered__&&!t?new In(this):this.clone();return i.__filtered__?i.__takeCount__=an(n,i.__takeCount__):i.__views__.push({size:an(n,4294967295),type:e+(i.__dir__<0?"Right":"")}),i},In.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),rt(["filter","map","takeWhile"],function(e,t){var n=t+1,i=1==n||3==n;In.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Zr(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}}),rt(["head","last"],function(e,t){var n="take"+(t?"Right":"");In.prototype[e]=function(){return this[n](1).value()[0]}}),rt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");In.prototype[e]=function(){return this.__filtered__?new In(this):this[n](1)}}),In.prototype.compact=function(){return this.filter(Ya)},In.prototype.find=function(e){return this.filter(e).head()},In.prototype.findLast=function(e){return this.reverse().find(e)},In.prototype.invokeMap=Ni(function(e,t){return"function"==typeof e?new In(this):this.map(function(n){return yi(n,e,t)})}),In.prototype.reject=function(e){return this.filter(To(Zr(e)))},In.prototype.slice=function(e,t){e=ra(e);var n=this;return n.__filtered__&&(e>0||t<0)?new In(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=ra(t))<0?n.dropRight(-t):n.take(t-e)),n)},In.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},In.prototype.toArray=function(){return this.take(4294967295)},ci(In.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),r=xn[i?"take"+("last"==t?"Right":""):t],s=i||/^find/.test(t);r&&(xn.prototype[t]=function(){var t=this.__wrapped__,o=i?[1]:arguments,a=t instanceof In,c=o[0],l=a||Lo(t),u=function(e){var t=r.apply(xn,dt([e],o));return i&&d?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(a=l=!1);var d=this.__chain__,h=!!this.__actions__.length,p=s&&!d,f=a&&!h;if(!s&&l){t=f?t:new In(this);var g=e.apply(t,o);return g.__actions__.push({func:no,args:[u],thisArg:void 0}),new Mn(g,d)}return p&&f?e.apply(this,o):(g=this.thru(u),p?i?g.value()[0]:g.value():g)})}),rt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ye[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);xn.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return t.apply(Lo(r)?r:[],e)}return this[n](function(n){return t.apply(Lo(n)?n:[],e)})}}),ci(In.prototype,function(e,t){var n=xn[t];if(n){var i=n.name+"";ke.call(vn,i)||(vn[i]=[]),vn[i].push({name:t,func:n})}}),vn[Or(void 0,2).name]=[{name:"wrapper",func:void 0}],In.prototype.clone=function(){var e=new In(this.__wrapped__);return e.__actions__=mr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=mr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=mr(this.__views__),e},In.prototype.reverse=function(){if(this.__filtered__){var e=new In(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},In.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Lo(e),i=t<0,r=n?e.length:0,s=function(e,t,n){for(var i=-1,r=n.length;++i<r;){var s=n[i],o=s.size;switch(s.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=an(t,e+o);break;case"takeRight":e=on(e,t-o)}}return{start:e,end:t}}(0,r,this.__views__),o=s.start,a=s.end,c=a-o,l=i?a:o-1,u=this.__iteratees__,d=u.length,h=0,p=an(c,this.__takeCount__);if(!n||!i&&r==c&&p==c)return tr(e,this.__actions__);var f=[];e:for(;c--&&h<p;){for(var g=-1,m=e[l+=t];++g<d;){var b=u[g],y=b.type,v=(0,b.iteratee)(m);if(2==y)m=v;else if(!v){if(1==y)continue e;break e}}f[h++]=m}return f},xn.prototype.at=io,xn.prototype.chain=function(){return to(this)},xn.prototype.commit=function(){return new Mn(this.value(),this.__chain__)},xn.prototype.next=function(){void 0===this.__values__&&(this.__values__=na(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},xn.prototype.plant=function(e){for(var t,n=this;n instanceof En;){var i=xs(n);i.__index__=0,i.__values__=void 0,t?r.__wrapped__=i:t=i;var r=i;n=n.__wrapped__}return r.__wrapped__=e,t},xn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof In){var t=e;return this.__actions__.length&&(t=new In(this)),(t=t.reverse()).__actions__.push({func:no,args:[Us],thisArg:void 0}),new Mn(t,this.__chain__)}return this.thru(Us)},xn.prototype.toJSON=xn.prototype.valueOf=xn.prototype.value=function(){return tr(this.__wrapped__,this.__actions__)},xn.prototype.first=xn.prototype.head,gt&&(xn.prototype[gt]=function(){return this}),xn}();He._=Yt,void 0===(i=(function(){return Yt}).call(t,n,t,e))||(e.exports=i)}).call(this)}).call(this,n("YuTi")(e))},Lvzb:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp");t.of=i.of},Lzq4:function(e,t,n){const i=n("u/Db"),r=n("e/Dd");function s(e){this.mode=i.KANJI,this.data=e}s.getBitsLength=function(e){return 13*e},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=r.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=s},MK3I:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"CongressProfile"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"CongressProfile",plural:"CongressProfiles",path:"CongressProfiles",idName:"id",properties:{userId:{name:"userId",type:"any"},fields:{name:"fields",type:"Array<any>"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{accesses:{name:"accesses",type:"CongressAccess[]",model:"CongressAccess",relationType:"hasMany",keyFrom:"id",keyTo:"profileId"},submissions:{name:"submissions",type:"CongressSubmission[]",model:"CongressSubmission",relationType:"hasMany",keyFrom:"id",keyTo:"profileId"},reviews:{name:"reviews",type:"CongressReview[]",model:"CongressReview",relationType:"hasMany",keyFrom:"id",keyTo:"profileId"},assignments:{name:"assignments",type:"CongressReviewAssignment[]",model:"CongressReviewAssignment",relationType:"hasMany",keyFrom:"id",keyTo:"profileId"},subscriptions:{name:"subscriptions",type:"CongressSubscription[]",model:"CongressSubscription",relationType:"hasMany",keyFrom:"userId",keyTo:"userId"},user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},MVeA:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"Template"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"Template",plural:"Templates",path:"Templates",idName:"id",properties:{group:{name:"group",type:"string"},name:{name:"name",type:"string"},description:{name:"description",type:"string"},content:{name:"content",type:"string"},engine:{name:"engine",type:"string"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{}}}}},McNs:function(e,t,n){"use strict";n.d(t,"a",function(){return k}),n.d(t,"c",function(){return de}),n.d(t,"b",function(){return se}),n.d(t,"d",function(){return I});var i=n("fXoL"),r=n("ofXK"),s=n("tyNb"),o=n("3Pt+"),a=n("aceb"),c=n("2Vo4"),l=n("LRne"),u=n("XNiG"),d=n("pLZG"),h=n("w1tV"),p=n("lJxs"),f=n("eIep"),g=n("3E0/"),m=n("JIr8"),b=n("1G5W"),y=n("tk/3");const v=["*"],_=[],w={strategies:[],forms:{login:{redirectDelay:500,strategy:"email",rememberMe:!0,showMessages:{success:!0,error:!0},socialLinks:_},register:{redirectDelay:500,strategy:"email",showMessages:{success:!0,error:!0},terms:!0,socialLinks:_},requestPassword:{redirectDelay:500,strategy:"email",showMessages:{success:!0,error:!0},socialLinks:_},resetPassword:{redirectDelay:500,strategy:"email",showMessages:{success:!0,error:!0},socialLinks:_},logout:{redirectDelay:500,strategy:"email"},validation:{password:{required:!0,minLength:4,maxLength:50},email:{required:!0},fullName:{required:!1,minLength:4,maxLength:50}}}},k=new i.t("Nebular Auth Options"),C=new i.t("Nebular User Auth Options"),S=new i.t("Nebular Auth Strategies"),T=new i.t("Nebular Auth Tokens"),P=new i.t("Nebular Simple Interceptor Header"),O=new i.t("Nebular Interceptor Filter"),x=function(...e){if(arguments.length<1||"object"!=typeof arguments[0])return!1;if(arguments.length<2)return arguments[0];const t=arguments[0],n=Array.prototype.slice.call(arguments,1);let i,r;return n.forEach(function(e){"object"!=typeof e||Array.isArray(e)||Object.keys(e).forEach(function(n){return r=t[n],i=e[n],i===t?void 0:"object"!=typeof i||null===i?void(t[n]=i):Array.isArray(i)?void(t[n]=M(i)):A(i)?void(t[n]=E(i)):"object"!=typeof r||null===r||Array.isArray(r)?void(t[n]=x({}
1,i)):void(t[n]=x(r,i))})}),t};function A(e){return e instanceof Date||e instanceof RegExp}function E(e){if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("cloneSpecificValue: Unexpected situation")}function M(e){const t=[];return e.forEach(function(e,n){t[n]="object"==typeof e&&null!==e?Array.isArray(e)?M(e):A(e)?E(e):x({},e):e}),t}function I(e={},t,n){const i=t.split(".");let r=x({},e||{});return i.forEach(e=>{r=r&&void 0!==r[e]?r[e]:void 0}),void 0===r?n:r}class R{constructor(){this.payload=null}getName(){return this.constructor.NAME}getPayload(){return this.payload}}class L extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class D extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class j extends D{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}function N(e,t,n,i){return new e(t,n,i)}let V=(()=>{class e extends R{constructor(e,t,n){super(),this.token=e,this.ownerStrategyName=t,this.createdAt=n;try{this.parsePayload()}catch(i){if(!(i instanceof L))throw i}this.createdAt=this.prepareCreatedAt(n)}parsePayload(){this.payload=null}prepareCreatedAt(e){return e||new Date}getCreatedAt(){return this.createdAt}getValue(){return this.token}getOwnerStrategyName(){return this.ownerStrategyName}isValid(){return!!this.getValue()}toString(){return this.token?this.token:""}}return e.NAME="nb:auth:simple:token",e})(),z=(()=>{class e extends V{constructor(e={},t,n){super((e=>{if("string"==typeof e)try{return JSON.parse(e)}catch(t){}return e})(e),t,n)}getValue(){return this.token.access_token}getRefreshToken(){return this.token.refresh_token}setRefreshToken(e){this.token.refresh_token=e}parsePayload(){if(!this.token)throw new L("Token not found.");if(!Object.keys(this.token).length)throw new j("Cannot extract payload from an empty token.");this.payload=this.token}getType(){return this.token.token_type}isValid(){return super.isValid()&&(!this.getTokenExpDate()||new Date<this.getTokenExpDate())}getTokenExpDate(){return this.token.hasOwnProperty("expires_in")?new Date(this.createdAt.getTime()+1e3*Number(this.token.expires_in)):null}toString(){return JSON.stringify(this.token)}}return e.NAME="nb:auth:oauth2:token",e})();const F=new i.t("Nebular Auth Options");let B=(()=>{class e{constructor(e,t){this.fallbackClass=e,this.tokenClasses=t}wrap(e){return JSON.stringify({name:e.getName(),ownerStrategyName:e.getOwnerStrategyName(),createdAt:e.getCreatedAt().getTime(),value:e.toString()})}unwrap(e){let t=this.fallbackClass,n="",i="",r=null;const s=this.parseTokenPack(e);return s&&(t=this.getClassByName(s.name)||this.fallbackClass,n=s.value,i=s.ownerStrategyName,r=new Date(Number(s.createdAt))),N(t,n,i,r)}getClassByName(e){return this.tokenClasses.find(t=>t.NAME===e)}parseTokenPack(e){try{return JSON.parse(e)}catch(t){}return null}}return e.\u0275fac=function(t){return new(t||e)(i.gc(F),i.gc(T))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();class q{}let U=(()=>{class e extends q{constructor(e){super(),this.parceler=e,this.key="auth_app_token"}get(){const e=localStorage.getItem(this.key);return this.parceler.unwrap(e)}set(e){const t=this.parceler.wrap(e);localStorage.setItem(this.key,t)}clear(){localStorage.removeItem(this.key)}}return e.\u0275fac=function(t){return new(t||e)(i.gc(B))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),H=(()=>{class e{constructor(e){this.tokenStorage=e,this.token$=new c.a(null),this.publishStoredToken()}tokenChange(){return this.token$.pipe(Object(d.a)(e=>!!e),Object(h.a)())}set(e){return this.tokenStorage.set(e),this.publishStoredToken(),Object(l.a)(null)}get(){const e=this.tokenStorage.get();return Object(l.a)(e)}clear(){return this.tokenStorage.clear(),this.publishStoredToken(),Object(l.a)(null)}publishStoredToken(){this.token$.next(this.tokenStorage.get())}}return e.\u0275fac=function(t){return new(t||e)(i.gc(q))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),W=(()=>{class e{constructor(e,t){this.tokenService=e,this.strategies=t}getToken(){return this.tokenService.get()}isAuthenticated(){return this.getToken().pipe(Object(p.a)(e=>e.isValid()))}isAuthenticatedOrRefresh(){return this.getToken().pipe(Object(f.a)(e=>e.getValue()&&!e.isValid()?this.refreshToken(e.getOwnerStrategyName(),e).pipe(Object(f.a)(e=>e.isSuccess()?this.isAuthenticated():Object(l.a)(!1))):Object(l.a)(e.isValid())))}onTokenChange(){return this.tokenService.tokenChange()}onAuthenticationChange(){return this.onTokenChange().pipe(Object(p.a)(e=>e.isValid()))}
1authenticate(e,t){return this.getStrategy(e).authenticate(t).pipe(Object(f.a)(e=>this.processResultToken(e)))}register(e,t){return this.getStrategy(e).register(t).pipe(Object(f.a)(e=>this.processResultToken(e)))}logout(e){return this.getStrategy(e).logout().pipe(Object(f.a)(e=>(e.isSuccess()&&this.tokenService.clear().pipe(Object(p.a)(()=>e)),Object(l.a)(e))))}requestPassword(e,t){return this.getStrategy(e).requestPassword(t)}resetPassword(e,t){return this.getStrategy(e).resetPassword(t)}refreshToken(e,t){return this.getStrategy(e).refreshToken(t).pipe(Object(f.a)(e=>this.processResultToken(e)))}getStrategy(e){const t=this.strategies.find(t=>t.getName()===e);if(!t)throw new TypeError(`There is no Auth Strategy registered under '${e}' name`);return t}processResultToken(e){return e.isSuccess()&&e.getToken()?this.tokenService.set(e.getToken()).pipe(Object(p.a)(t=>e)):Object(l.a)(e)}}return e.\u0275fac=function(t){return new(t||e)(i.gc(H),i.gc(S))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();class G{setOptions(e){this.options=x({},this.defaultOptions,e)}getOption(e){return I(this.options,e,null)}createToken(e,t){const n=N(this.getOption("token.class"),e,this.getName());if(t&&!n.isValid())throw new D("Token is empty or invalid.");return n}getName(){return this.getOption("name")}createFailResponse(e){return new y.i({body:{},status:401})}createSuccessResponse(e){return new y.i({body:{},status:200})}getActionEndpoint(e){const t=this.getOption(`${e}.endpoint`),n=this.getOption("baseEndpoint");return t?n+t:""}}class Y{constructor(e,t,n,i,r,s=null){this.success=e,this.response=t,this.redirect=n,this.errors=[],this.messages=[],this.errors=this.errors.concat([i]),i instanceof Array&&(this.errors=i),this.messages=this.messages.concat([r]),r instanceof Array&&(this.messages=r),this.token=s}getResponse(){return this.response}getToken(){return this.token}getRedirect(){return this.redirect}getErrors(){return this.errors.filter(e=>!!e)}getMessages(){return this.messages.filter(e=>!!e)}isSuccess(){return this.success}isFailure(){return!this.success}}class ${}const Z=new class extends ${constructor(){super(...arguments),this.token={class:V},this.delay=1e3,this.alwaysFail=!1}};let Q=(()=>{class e extends G{constructor(){super(...arguments),this.defaultOptions=Z}static setup(t){return[e,t]}authenticate(e){return Object(l.a)(this.createDummyResult(e)).pipe(Object(g.a)(this.getOption("delay")))}register(e){return Object(l.a)(this.createDummyResult(e)).pipe(Object(g.a)(this.getOption("delay")))}requestPassword(e){return Object(l.a)(this.createDummyResult(e)).pipe(Object(g.a)(this.getOption("delay")))}resetPassword(e){return Object(l.a)(this.createDummyResult(e)).pipe(Object(g.a)(this.getOption("delay")))}logout(e){return Object(l.a)(this.createDummyResult(e)).pipe(Object(g.a)(this.getOption("delay")))}refreshToken(e){return Object(l.a)(this.createDummyResult(e)).pipe(Object(g.a)(this.getOption("delay")))}createDummyResult(e){if(this.getOption("alwaysFail"))return new Y(!1,this.createFailResponse(e),null,["Something went wrong."]);try{const t=this.createToken("test token",!0);return new Y(!0,this.createSuccessResponse(e),"/",[],["Successfully logged in."],t)}catch(t){return new Y(!1,this.createFailResponse(e),null,[t.message])}}}return e.\u0275fac=function(t){return X(t||e)},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();const X=i.bc(Q);var K=function(e){return e.CODE="code",e.TOKEN="token",e}({}),J=function(e){return e.AUTHORIZATION_CODE="authorization_code",e.PASSWORD="password",e.REFRESH_TOKEN="refresh_token",e}({}),ee=function(e){return e.NONE="none",e.BASIC="basic",e.REQUEST_BODY="request-body",e}({});const te=new class extends ${constructor(){super(...arguments),this.baseEndpoint="",this.clientId="",this.clientSecret="",this.clientAuthMethod=ee.NONE,this.redirect={success:"/",failure:null},this.defaultErrors=["Something went wrong, please try again."],this.defaultMessages=["You have been successfully authenticated."],this.authorize={endpoint:"authorize",responseType:K.CODE,requireValidToken:!0},this.token={endpoint:"token",grantType:J.AUTHORIZATION_CODE,requireValidToken:!0,class:z},this.refresh={endpoint:"token",grantType:J.REFRESH_TOKEN,requireValidToken:!0}}};let ne=(()=>{class e extends G{constructor(e,t,n){super(),this.http=e,this.route=t,this.window=n,this.redirectResultHandlers={[K.CODE]:()=>
1Object(l.a)(this.route.snapshot.queryParams).pipe(Object(f.a)(e=>e.code?this.requestToken(e.code):Object(l.a)(new Y(!1,e,this.getOption("redirect.failure"),this.getOption("defaultErrors"),[])))),[K.TOKEN]:()=>{const e=this.getOption("authorize.requireValidToken");return Object(l.a)(this.route.snapshot.fragment).pipe(Object(p.a)(e=>this.parseHashAsQueryParams(e)),Object(p.a)(t=>t.error?new Y(!1,t,this.getOption("redirect.failure"),this.getOption("defaultErrors"),[]):new Y(!0,t,this.getOption("redirect.success"),[],this.getOption("defaultMessages"),this.createToken(t,e))),Object(m.a)(e=>{const t=[];return t.push(e instanceof D?e.message:"Something went wrong."),Object(l.a)(new Y(!1,e,this.getOption("redirect.failure"),t))}))}},this.redirectResults={[K.CODE]:()=>Object(l.a)(this.route.snapshot.queryParams).pipe(Object(p.a)(e=>!(!e||!e.code&&!e.error))),[K.TOKEN]:()=>Object(l.a)(this.route.snapshot.fragment).pipe(Object(p.a)(e=>this.parseHashAsQueryParams(e)),Object(p.a)(e=>!(!e||!e.access_token&&!e.error)))},this.defaultOptions=te}static setup(t){return[e,t]}get responseType(){return this.getOption("authorize.responseType")}get clientAuthMethod(){return this.getOption("clientAuthMethod")}authenticate(e){return this.getOption("token.grantType")===J.PASSWORD?this.passwordToken(e.email,e.password):this.isRedirectResult().pipe(Object(f.a)(e=>e?this.getAuthorizationResult():(this.authorizeRedirect(),Object(l.a)(new Y(!0)))))}getAuthorizationResult(){const e=this.redirectResultHandlers[this.responseType];if(e)return e.call(this);throw new Error(`'${this.responseType}' responseType is not supported,\n only 'token' and 'code' are supported now`)}refreshToken(e){const t=this.getActionEndpoint("refresh"),n=this.getOption("refresh.requireValidToken");let i=this.buildAuthHeader()||new y.f;return i=i.append("Content-Type","application/x-www-form-urlencoded"),this.http.post(t,this.buildRefreshRequestData(e),{headers:i}).pipe(Object(p.a)(t=>new Y(!0,t,this.getOption("redirect.success"),[],this.getOption("defaultMessages"),this.createRefreshedToken(t,e,n))),Object(m.a)(e=>this.handleResponseError(e)))}passwordToken(e,t){const n=this.getActionEndpoint("token"),i=this.getOption("token.requireValidToken");let r=this.buildAuthHeader()||new y.f;return r=r.append("Content-Type","application/x-www-form-urlencoded"),this.http.post(n,this.buildPasswordRequestData(e,t),{headers:r}).pipe(Object(p.a)(e=>new Y(!0,e,this.getOption("redirect.success"),[],this.getOption("defaultMessages"),this.createToken(e,i))),Object(m.a)(e=>this.handleResponseError(e)))}authorizeRedirect(){this.window.location.href=this.buildRedirectUrl()}isRedirectResult(){return this.redirectResults[this.responseType].call(this)}requestToken(e){const t=this.getActionEndpoint("token"),n=this.getOption("token.requireValidToken");let i=this.buildAuthHeader()||new y.f;return i=i.append("Content-Type","application/x-www-form-urlencoded"),this.http.post(t,this.buildCodeRequestData(e),{headers:i}).pipe(Object(p.a)(e=>new Y(!0,e,this.getOption("redirect.success"),[],this.getOption("defaultMessages"),this.createToken(e,n))),Object(m.a)(e=>this.handleResponseError(e)))}buildCodeRequestData(e){const t={grant_type:this.getOption("token.grantType"),code:e,redirect_uri:this.getOption("token.redirectUri"),client_id:this.getOption("clientId")};return this.urlEncodeParameters(this.cleanParams(this.addCredentialsToParams(t)))}buildRefreshRequestData(e){const t={grant_type:this.getOption("refresh.grantType"),refresh_token:e.getRefreshToken(),scope:this.getOption("refresh.scope"),client_id:this.getOption("clientId")};return this.urlEncodeParameters(this.cleanParams(this.addCredentialsToParams(t)))}buildPasswordRequestData(e,t){const n={grant_type:this.getOption("token.grantType"),username:e,password:t,scope:this.getOption("token.scope")};return this.urlEncodeParameters(this.cleanParams(this.addCredentialsToParams(n)))}buildAuthHeader(){if(this.clientAuthMethod===ee.BASIC){if(this.getOption("clientId")&&this.getOption("clientSecret"))return new y.f({Authorization:"Basic "+btoa(this.getOption("clientId")+":"+this.getOption("clientSecret"))});throw Error("For basic client authentication method, please provide both clientId & clientSecret.")}}cleanParams(e){return Object.entries(e).forEach(([t,n])=>!n&&delete e[t]),e}addCredentialsToParams(e){if(this.clientAuthMethod===ee.REQUEST_BODY){if(this.getOption("clientId")&&this.getOption("clientSecret"))return Object.assign(Object.assign({},e),{client_id:this.getOption("clientId"),client_secret:this.getOption("clientSecret")});throw Error("For request body client authentication method, please provide both clientId & clientSecret.")}return e}handleResponseError(e){let t=[];return e instanceof y.d?e.error.error_description?t.push(e.error.error_description):t=this.getOption("defaultErrors"):t.push(e instanceof D?e.message:"Something went wrong."),Object(l.a)(new Y(!1,e,this.getOption("redirect.failure"),t,[]))}buildRedirectUrl(){const e=Object.assign({response_type:this.getOption("authorize.responseType"),client_id:this.getOption("clientId"),redirect_uri:this.getOption("authorize.redirectUri"),scope:this.getOption("authorize.scope"),state:this.getOption("authorize.state")},this.getOption("authorize.params"));return`${this.getActionEndpoint("authorize")}?${this.urlEncodeParameters(this.cleanParams(e))}`}parseHashAsQueryParams(e){return e?e.split("&").reduce((e,t)=>
1{const n=t.split("=");return e[n[0]]=decodeURIComponent(n[1]),e},{}):{}}urlEncodeParameters(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}createRefreshedToken(e,t,n){const i=this.createToken(e,n);return!i.getRefreshToken()&&t.getRefreshToken()&&i.setRefreshToken(t.getRefreshToken()),i}register(e){throw new Error("`register` is not supported by `NbOAuth2AuthStrategy`, use `authenticate`.")}requestPassword(e){throw new Error("`requestPassword` is not supported by `NbOAuth2AuthStrategy`, use `authenticate`.")}resetPassword(e={}){throw new Error("`resetPassword` is not supported by `NbOAuth2AuthStrategy`, use `authenticate`.")}logout(){return Object(l.a)(new Y(!0))}}return e.\u0275fac=function(t){return new(t||e)(i.gc(y.b),i.gc(s.a),i.gc(a.b))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();const ie=new class extends ${constructor(){super(...arguments),this.baseEndpoint="/api/auth/",this.login={alwaysFail:!1,endpoint:"login",method:"post",requireValidToken:!0,redirect:{success:"/",failure:null},defaultErrors:["Login/Email combination is not correct, please try again."],defaultMessages:["You have been successfully logged in."]},this.register={alwaysFail:!1,endpoint:"register",method:"post",requireValidToken:!0,redirect:{success:"/",failure:null},defaultErrors:["Something went wrong, please try again."],defaultMessages:["You have been successfully registered."]},this.requestPass={endpoint:"request-pass",method:"post",redirect:{success:"/",failure:null},defaultErrors:["Something went wrong, please try again."],defaultMessages:["Reset password instructions have been sent to your email."]},this.resetPass={endpoint:"reset-pass",method:"put",redirect:{success:"/",failure:null},resetPasswordTokenKey:"reset_password_token",defaultErrors:["Something went wrong, please try again."],defaultMessages:["Your password has been successfully changed."]},this.logout={alwaysFail:!1,endpoint:"logout",method:"delete",redirect:{success:"/",failure:null},defaultErrors:["Something went wrong, please try again."],defaultMessages:["You have been successfully logged out."]},this.refreshToken={endpoint:"refresh-token",method:"post",requireValidToken:!0,redirect:{success:null,failure:null},defaultErrors:["Something went wrong, please try again."],defaultMessages:["Your token has been successfully refreshed."]},this.token={class:V,key:"data.token",getter:(e,t,n)=>I(t.body,n.token.key)},this.errors={key:"data.errors",getter:(e,t,n)=>I(t.error,n.errors.key,n[e].defaultErrors)},this.messages={key:"data.messages",getter:(e,t,n)=>I(t.body,n.messages.key,n[e].defaultMessages)}}};let re=(()=>{class e extends G{constructor(e,t){super(),this.http=e,this.route=t,this.defaultOptions=ie}static setup(t){return[e,t]}authenticate(e){const t=this.getOption("login.method"),n=this.getActionEndpoint("login"),i=this.getOption("login.requireValidToken");return this.http.request(t,n,{body:e,observe:"response"}).pipe(Object(p.a)(t=>{if(this.getOption("login.alwaysFail"))throw this.createFailResponse(e);return t}),Object(p.a)(e=>new Y(!0,e,this.getOption("login.redirect.success"),[],this.getOption("messages.getter")("login",e,this.options),this.createToken(this.getOption("token.getter")("login",e,this.options),i))),Object(m.a)(e=>this.handleResponseError(e,"login")))}register(e){const t="register",n=this.getOption(`${t}.method`),i=this.getActionEndpoint(t),r=this.getOption(`${t}.requireValidToken`);return this.http.request(n,i,{body:e,observe:"response"}).pipe(Object(p.a)(n=>{if(this.getOption(`${t}.alwaysFail`))throw this.createFailResponse(e);return n}),Object(p.a)(e=>new Y(!0,e,this.getOption(`${t}.redirect.success`),[],this.getOption("messages.getter")(t,e,this.options),this.createToken(this.getOption("token.getter")("login",e,this.options),r))),Object(m.a)(e=>this.handleResponseError(e,t)))}requestPassword(e){const t="requestPass",n=this.getOption(`${t}.method`),i=this.getActionEndpoint(t);return this.http.request(n,i,{body:e,observe:"response"}).pipe(Object(p.a)(e=>{if(this.getOption(`${t}.alwaysFail`))throw this.createFailResponse();return e}),Object(p.a)(e=>new Y(!0,e,this.getOption(`${t}.redirect.success`),[],this.getOption("messages.getter")(t,e,this.options))),Object(m.a)(e=>this.handleResponseError(e,t)))}resetPassword(e={}){const t="resetPass",n=this.getOption(`${t}.method`),i=this.getActionEndpoint(t),r=this.getOption(`${t}.resetPasswordTokenKey`);
1return e[r]=this.route.snapshot.queryParams[r],this.http.request(n,i,{body:e,observe:"response"}).pipe(Object(p.a)(e=>{if(this.getOption(`${t}.alwaysFail`))throw this.createFailResponse();return e}),Object(p.a)(e=>new Y(!0,e,this.getOption(`${t}.redirect.success`),[],this.getOption("messages.getter")(t,e,this.options))),Object(m.a)(e=>this.handleResponseError(e,t)))}logout(){const e=this.getOption("logout.method"),t=this.getActionEndpoint("logout");return Object(l.a)({}).pipe(Object(f.a)(n=>t?this.http.request(e,t,{observe:"response"}):Object(l.a)(n)),Object(p.a)(e=>{if(this.getOption("logout.alwaysFail"))throw this.createFailResponse();return e}),Object(p.a)(e=>new Y(!0,e,this.getOption("logout.redirect.success"),[],this.getOption("messages.getter")("logout",e,this.options))),Object(m.a)(e=>this.handleResponseError(e,"logout")))}refreshToken(e){const t="refreshToken",n=this.getOption(`${t}.method`),i=this.getActionEndpoint(t),r=this.getOption(`${t}.requireValidToken`);return this.http.request(n,i,{body:e,observe:"response"}).pipe(Object(p.a)(n=>{if(this.getOption(`${t}.alwaysFail`))throw this.createFailResponse(e);return n}),Object(p.a)(e=>new Y(!0,e,this.getOption(`${t}.redirect.success`),[],this.getOption("messages.getter")(t,e,this.options),this.createToken(this.getOption("token.getter")(t,e,this.options),r))),Object(m.a)(e=>this.handleResponseError(e,t)))}handleResponseError(e,t){let n=[];return e instanceof y.d?n=this.getOption("errors.getter")(t,e,this.options):n.push(e instanceof D?e.message:"Something went wrong."),Object(l.a)(new Y(!1,e,this.getOption(`${t}.redirect.failure`),n))}}return e.\u0275fac=function(t){return new(t||e)(i.gc(y.b),i.gc(s.a))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),se=(()=>{class e{constructor(e,t){this.auth=e,this.location=t,this.destroy$=new u.a,this.authenticated=!1,this.token="",this.subscription=e.onAuthenticationChange().pipe(Object(b.a)(this.destroy$)).subscribe(e=>{this.authenticated=e})}back(){return this.location.back(),!1}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(W),i.Tb(r.j))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-auth"]],decls:10,vars:0,consts:[[1,"navigation"],["href","#","aria-label","Back",1,"link","back-link",3,"click"],["icon","arrow-back"]],template:function(e,t){1&e&&(i.Zb(0,"nb-layout"),i.Zb(1,"nb-layout-column"),i.Zb(2,"nb-card"),i.Zb(3,"nb-card-header"),i.Zb(4,"nav",0),i.Zb(5,"a",1),i.jc("click",function(){return t.back()}),i.Ub(6,"nb-icon",2),i.Yb(),i.Yb(),i.Yb(),i.Zb(7,"nb-card-body"),i.Zb(8,"nb-auth-block"),i.Ub(9,"router-outlet"),i.Yb(),i.Yb(),i.Yb(),i.Yb(),i.Yb())},directives:function(){return[a.P,a.O,a.s,a.u,a.J,a.r,oe,s.h]},styles:["[_nghost-%COMP%] nb-card[_ngcontent-%COMP%]{margin:0;height:calc(100vh - 2 * 2.5rem)}[_nghost-%COMP%] .navigation[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]{display:inline-block;text-decoration:none}[_nghost-%COMP%] .navigation[_ngcontent-%COMP%] .link[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%]{font-size:2rem;vertical-align:middle}[_nghost-%COMP%] .links[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%]{font-size:2.5rem}[_nghost-%COMP%] nb-card-body[_ngcontent-%COMP%]{display:flex;width:100%}[_nghost-%COMP%] nb-auth-block[_ngcontent-%COMP%]{margin:auto}@media (max-width: 767.98px){[_nghost-%COMP%] nb-card[_ngcontent-%COMP%]{border-radius:0;height:100vh}}[_nghost-%COMP%] nb-layout .layout .layout-container .content .columns nb-layout-column{padding:2.5rem}@media (max-width: 767.98px){[_nghost-%COMP%] nb-layout .layout .layout-container .content .columns nb-layout-column{padding:0}}"]}),e})(),oe=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-auth-block"]],ngContentSelectors:v,decls:1,vars:0,template:function(e,t){1&e&&(i.sc(),i.rc(0))},styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:35rem}[_nghost-%COMP%] form{width:100%}[_nghost-%COMP%] .label{display:block;margin-bottom:0.5rem}[_nghost-%COMP%] .forgot-password{text-decoration:none;margin-bottom:0.5rem}[_nghost-%COMP%] .caption{margin-top:0.5rem}[_nghost-%COMP%] .alert{text-align:center}[_nghost-%COMP%] .title{margin-top:0;margin-bottom:0.75rem;text-align:center}[_nghost-%COMP%] .sub-title{margin-bottom:2rem;text-align:center}[_nghost-%COMP%] .form-control-group{margin-bottom:2rem}
1[_nghost-%COMP%] .form-control-group.accept-group{display:flex;justify-content:space-between;margin:2rem 0}[_nghost-%COMP%] .label-with-link{display:flex;justify-content:space-between}[_nghost-%COMP%] .links{text-align:center;margin-top:1.75rem}[_nghost-%COMP%] .links .socials{margin-top:1.5rem}[_nghost-%COMP%] .links .socials a{margin:0 1rem;text-decoration:none;vertical-align:middle}[_nghost-%COMP%] .links .socials a.with-icon{font-size:2rem}[_nghost-%COMP%] .another-action{margin-top:2rem;text-align:center}[_nghost-%COMP%] .sign-in-or-up{margin-top:2rem;display:flex;justify-content:space-between}[_nghost-%COMP%] nb-alert .alert-title, [_nghost-%COMP%] nb-alert .alert-message{margin:0 0 0.5rem}[_nghost-%COMP%] nb-alert .alert-message-list{list-style-type:none;padding:0;margin:0}"]}),e})();function ae(e,t){const n=[];return e.strategies.forEach(([e,i])=>{const r=t.get(e);r.setOptions(i),n.push(r)}),n}function ce(e){const t=[];return e.forEach(e=>{t.push(e.getOption("token.class"))}),t}function le(e){return x(w,e)}function ue(e){return!0}let de=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[{provide:C,useValue:t},{provide:k,useFactory:le,deps:[C]},{provide:S,useFactory:ae,deps:[k,i.u]},{provide:T,useFactory:ce,deps:[S]},{provide:F,useValue:V},{provide:P,useValue:"Authorization"},{provide:O,useValue:ue},{provide:q,useClass:U},B,W,H,Q,re,ne]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[r.c,a.U,a.v,a.y,a.l,a.N,a.p,s.g,o.i,a.L]]}),e})()},NAvl:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getEvent(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventThreads/:id/event",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}findByIdComments(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventThreads/:id/comments/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdComments(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventThreads/:id/comments/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdComments(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventThreads/:id/comments/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}getComments(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventThreads/:id/comments",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createComments(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventThreads/:id/comments";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteComments(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventThreads/:id/comments";return this.request("DELETE",n,{id:e},{},{},null,t)}countComments(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventThreads/:id/comments/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventThreads/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}createManyComments(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventThreads/:id/comments";return this.request("POST",i,{id:e},{},{data:t},null,n)}getModelName(){return"SimiEventThread"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},NCX1:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"CourseSubscription"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"CourseSubscription",plural:"CourseSubscriptions",path:"CourseSubscriptions",idName:"id",properties:{eventId:{name:"eventId",type:"any"},userId:{name:"userId",type:"any"},status:{name:"status",type:"string",default:"pending"},request_doc:{name:"request_doc",type:"any"},request_notes:{name:"request_notes",type:"string"},details:{name:"details",type:"any"},submitted_date:{name:"submitted_date",type:"Date"},accepted_date:{name:"accepted_date",type:"Date"},ecm:{name:"ecm",type:"any"},attended:{name:"attended",type:"number"},result:{name:"result",type:"string",default:"null"},data_acquisizione:{name:"data_acquisizione",type:"Date"},certificate:{name:"certificate",type:"any"},participation:{name:"participation",type:"any"},surveys:{name:"surveys",type:"any"},materials:{name:"materials",type:"Array<any>"},reset_attempt:{name:"reset_attempt",type:"number"},role:{name:"role",type:"number"},attendances:{name:"attendances",type:"Array<any>"},logbook_result:{name:"logbook_result",type:"string"},logbook_certificate:{name:"logbook_certificate",type:"any"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{event:{name:"event",type:"Course",model:"Course",relationType:"belongsTo",keyFrom:"eventId",keyTo:"id"}
1,payments:{name:"payments",type:"SimiEventPayment[]",model:"SimiEventPayment",relationType:"hasMany",keyFrom:"id",keyTo:"subscriptionId"},recordings:{name:"recordings",type:"CourseRecording[]",model:"CourseRecording",relationType:"hasMany",keyFrom:"id",keyTo:"subscriptionId"},surveySubmissions:{name:"surveySubmissions",type:"CourseSurveySubmission[]",model:"CourseSurveySubmission",relationType:"hasMany",keyFrom:"id",keyTo:"subscriptionId"},examSubmissions:{name:"examSubmissions",type:"CourseExamSubmission[]",model:"CourseExamSubmission",relationType:"hasMany",keyFrom:"id",keyTo:"subscriptionId"},logbookSubscription:{name:"logbookSubscription",type:"CourseLogbookSubscription",model:"CourseLogbookSubscription",relationType:"hasOne",keyFrom:"id",keyTo:"subscriptionId"},user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},"NHP+":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("XNiG"),r=n("quSY");class s extends i.a{constructor(){super(...arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}_subscribe(e){return this.hasError?(e.error(this.thrownError),r.a.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),r.a.EMPTY):super._subscribe(e)}next(e){this.hasCompleted||(this.value=e,this.hasNext=!0)}error(e){this.hasCompleted||super.error(e)}complete(){this.hasCompleted=!0,this.hasNext&&super.next(this.value),super.complete()}}},NJ4a:function(e,t,n){"use strict";function i(e){setTimeout(()=>{throw e},0)}n.d(t,"a",function(){return i})},NJ9Y:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("sVev"),r=n("pLZG"),s=n("BFxc"),o=n("XDbj"),a=n("xbPD"),c=n("SpAZ");function l(e,t){const n=arguments.length>=2;return l=>l.pipe(e?Object(r.a)((t,n)=>e(t,n,l)):c.a,Object(s.a)(1),n?Object(a.a)(t):Object(o.a)(()=>new i.a))}},NOtv:function(e,t,n){t.log=function(...e){return"object"==typeof console&&console.log&&console.log(...e)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let i=0,r=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(i++,"%c"===e&&(r=i))}),t.splice(r,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(n){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n("3JDX")(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},NPxG:function(e,t,n){const i=n("ekOh"),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],s=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,
1192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case i.L:return r[4*(e-1)+0];case i.M:return r[4*(e-1)+1];case i.Q:return r[4*(e-1)+2];case i.H:return r[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case i.L:return s[4*(e-1)+0];case i.M:return s[4*(e-1)+1];case i.Q:return s[4*(e-1)+2];case i.H:return s[4*(e-1)+3];default:return}}},"NQ+2":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getEvent(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressLives/:id/event",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressLives/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}uploadparticipants_report(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressLives/:id/upload/participants_report";return this.request("POST",n,{id:e},{},{},null,t)}setAttendance(e,t={},n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressLives/:id/attendance",s={id:e},a={};return null!=t&&(a.userId=t),null!=n&&(a.attendance=n),this.request("POST",r,s,a,{},null,i)}getModelName(){return"CongressLive"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},NTD5:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n("neMA");var i=n("D/fu"),r=n("qf2y"),s=n("fXoL");let o=(()=>{class e{constructor(e,t,n,s,o,a,c,l){this.userApi=e,this.storage=t,this.auth=n,this.associate=s,this.payments=o,this.fees=a,this.simiYear=c,this.institute=l,i.p.setBaseURL(r.b),i.p.setApiVersion(r.a),i.p.setRequestOptionsCredentials(!0),i.p.filterOnUrl(),i.p.whereOnUrl()}getMe(e){return this.userApi.me(this.setTokenHeader(e))}findUser(e,t){return this.userApi.findById(e,{include:{relation:"congressProfile",scope:{fields:"*"}}},t)}findUserByEmail(e){return this.userApi.find({where:{email:e}})}findUsers(){return this.userApi.find({where:{emailVerified:!0}})}findAllUsers(){return this.userApi.find({fields:["emailVerified"]})}findUserByFilter(e){return this.userApi.find(e)}setTokenHeader(e){return function(t){return t.append("X-Access-Token",e)}}updateUser(e,t,n){return this.userApi.patchAttributes(e,t,n)}setPassword(e,t){return this.userApi.setPassword(e,t)}getUsersWithRoles(){return this.userApi.find({include:[{relation:"associate"},{relation:"roles"},{relation:"congressProfile",scope:{include:[{relation:"accesses",scope:{include:"congress"}},{relation:"subscriptions",scope:{fields:["submitted_date"],include:"event"}},"assignments"]}}],fields:["emailVerified","created"]})}getCurrentUser(){return this.userApi.me()}currentProfiles(e){return this.userApi.findById(e,{fields:["registry","picture","address"],include:[{relation:"congressProfile",scope:{include:["accesses",{relation:"assignments",scope:{fields:["congressId"]}}]}},{relation:"associate",fields:["in_regola","anno_scoperto"]},"roles"]})}currentProfilesSubscriptions(e){}deleteUser(e){return this.userApi.deleteById(e)}getUser(){return i.p.setBaseURL(r.b),i.p.setApiVersion(r.a),this.currentUser}getUserAssociate(e){return this.userApi.getAssociate(e,{fields:["in_regola"]})}createUser(e){return this.userApi.create(e)}upsertWithWhere(e){return this.userApi.upsertWithWhere({email:e})}setToken(e){this.auth.setToken(e),this.auth.save()}userPrintlabel(e){return this.userApi.printLabel(e)}mergeUsers(e,t){return this.userApi.mergeEntities(e,t)}sendVerify(e){return this.userApi.verify(e)}getAssociates(){return this.associate.find({include:{relation:"user",fields:["registry"]},fields:["category","sezione_regionale"]})}createAssociate(e){return this.associate.create(e)}getBaseAssociates(){return this.associate.getBase({fields:["saldo"]})}getAssociateById(e){return console.log(e),this.associate.getByIdFull(e)}getAssociateFees(e){return this.associate.getFees(e)}getAssociatePayments(e){return this.associate.getPayments(e)}addAssociatePayment(e,t){return null}addAssociateFee(e,t){return null}associateClearBalance(e){return this.associate.clearBalance(e)}associateExtractData(e){return this.associate.extractData(e)}associateFindAdvance(e){return this.associate.findAdvanced(e)}getUserPayments(e){return this.payments.find({where:{userId:e}})}getPayments(e){return this.payments.find({where:e,include:"user",fields:["details","status","amount","created","executed_date"]})}updateAssociates(e,t){return this.associate.updateAll({id:{inq:e}},t)}updateAssociate(e,t){return this.associate.patchAttributes(e,t)}associatesGroupBy(e,t){return this.associate.groupBy(e,t)}countAssociates(e){return this.associate.count(e)}suspendMember(e){return this.associate.deleteById(e)}getSuspendedMembers(){return this.associate.getDeleted({include:"user"})}restoreMember(e){return this.associate.restoreByIdDeleted(e)}removeAssociatePayment(e,t){return null}removeAssociateFee(e,t){return null}deletePayment(e){return this.payments.deleteById(e)}deleteFee(e){return this.fees.deleteById(e)}printReceipts(e){return null}getCurrentYear(){return this.simiYear.current()}createYear(e){return this.simiYear.create(e)}addBaseFee(e,t){return this.simiYear.addBaseFee(e,{id:t})}getInstitutes(){return this.institute.find()}postInstitute(e){return null}deleteInstitute(e){return null}countInstitute(){return null}
1patchInsitute(e){return null}getUserMappings(e){return this.userApi.getInstituteMappings(e,{fields:["specializzazione","anno_specializzazione"],include:"institute"})}replaceInstitute(e,t){return this.userApi.replaceInstituteMappings(e,t)}}return e.\u0275fac=function(t){return new(t||e)(s.gc(i.y),s.gc(i.n),s.gc(i.o),s.gc(i.r),s.gc(i.v),s.gc(i.w),s.gc(i.z),s.gc(i.u))},e.\u0275prov=s.Pb({token:e,factory:e.\u0275fac}),e})()},NXyV:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("HDdC"),r=n("Cfvw"),s=n("EY2u");function o(e){return new i.a(t=>{let n;try{n=e()}catch(i){return void t.error(i)}return(n?Object(r.a)(n):Object(s.b)()).subscribe(t)})}},NYyb:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventSurveys/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}getModelName(){return"SimiEventSurvey"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},Nehr:function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},NgPB:function(e,t,n){"use strict";var i=n("vgmO"),r=n("pVnL"),s=n("g2LC");function o(e,t,n){var i=e;return s(t)?(n=t,"string"==typeof e&&(i={uri:e})):i=r({},t,{uri:e}),i.callback=n,i}function a(e,t,n){return c(t=o(e,t,n))}function c(e){if(void 0===e.callback)throw new Error("callback argument missing");var t=!1,n=function(n,i,r){t||(t=!0,e.callback(n,i,r))};function i(){var e=void 0;if(e=l.response?l.response:l.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;if(""===e.responseType&&(!e.responseXML||"parsererror"!==e.responseXML.documentElement.nodeName))return e.responseXML}catch(t){}return null}(l),m)try{e=JSON.parse(e)}catch(t){}return e}function r(e){return clearTimeout(u),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,b)}function s(){if(!c){var t;clearTimeout(u);var r=b,s=null;return 0!==(t=e.useXDR&&void 0===l.status?200:1223===l.status?204:l.status)?(r={body:i(),statusCode:t,method:h,headers:{},url:d,rawRequest:l},l.getAllResponseHeaders&&(r.headers=function(e){var t={};return e?(e.trim().split("\n").forEach(function(e){var n=e.indexOf(":"),i=e.slice(0,n).trim().toLowerCase(),r=e.slice(n+1).trim();void 0===t[i]?t[i]=r:Array.isArray(t[i])?t[i].push(r):t[i]=[t[i],r]}),t):t}(l.getAllResponseHeaders()))):s=new Error("Internal XMLHttpRequest Error"),n(s,r,r.body)}}var o,c,l=e.xhr||null;l||(l=e.cors||e.useXDR?new a.XDomainRequest:new a.XMLHttpRequest);var u,d=l.url=e.uri||e.url,h=l.method=e.method||"GET",p=e.body||e.data,f=l.headers=e.headers||{},g=!!e.sync,m=!1,b={body:void 0,headers:{},statusCode:0,method:h,url:d,rawRequest:l};if("json"in e&&!1!==e.json&&(m=!0,f.accept||f.Accept||(f.Accept="application/json"),"GET"!==h&&"HEAD"!==h&&(f["content-type"]||f["Content-Type"]||(f["Content-Type"]="application/json"),p=JSON.stringify(!0===e.json?p:e.json))),l.onreadystatechange=function(){4===l.readyState&&setTimeout(s,0)},l.onload=s,l.onerror=r,l.onprogress=function(){},l.onabort=function(){c=!0},l.ontimeout=r,l.open(h,d,!g,e.username,e.password),g||(l.withCredentials=!!e.withCredentials),!g&&e.timeout>0&&(u=setTimeout(function(){if(!c){c=!0,l.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",r(e)}}
1,e.timeout)),l.setRequestHeader)for(o in f)f.hasOwnProperty(o)&&l.setRequestHeader(o,f[o]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(l.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(l),l.send(p||null),l}a.httpHandler=n("jACb"),e.exports=a,e.exports.default=a,a.XMLHttpRequest=i.XMLHttpRequest||function(){},a.XDomainRequest="withCredentials"in new a.XMLHttpRequest?a.XMLHttpRequest:i.XDomainRequest,function(e,t){for(var n=0;n<e.length;n++)t(e[n])}(["get","put","post","patch","head","delete"],function(e){a["delete"===e?"del":e]=function(t,n,i){return(n=o(t,n,i)).method=e.toUpperCase(),c(n)}})},Npty:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getSettings(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/settings",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}createSettings(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/settings";return this.request("POST",i,{id:e},{},{data:t},null,n)}updateSettings(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/settings";return this.request("PUT",i,{id:e},{},{data:t},null,n)}destroySettings(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/settings";return this.request("DELETE",n,{id:e},{},{},null,t)}findByIdLinks(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/links/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdLinks(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/links/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdLinks(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/links/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}getQuality_survey(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/quality_survey",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getEcm_survey(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/ecm_survey",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getExam(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/exam",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}findByIdSponsors(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/sponsors/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}linkSponsors(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/sponsors/rel/:fk";return this.request("PUT",i,{id:e,fk:t},{},{},null,n)}unlinkSponsors(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/sponsors/rel/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}existsSponsors(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/sponsors/rel/:fk";return this.request("HEAD",i,{id:e,fk:t},{},{},null,n)}findByIdRoles(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/roles/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdRoles(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/roles/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdRoles(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/roles/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}findByIdThreads(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/threads/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdThreads(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/threads/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdThreads(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/threads/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}findByIdAccesses(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/accesses/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}findByIdSubmissions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/submissions/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}findByIdReviews(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/reviews/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}
1findByIdAssignments(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/assignments/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}findByIdMaterials(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/materials/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdMaterials(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/materials/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdMaterials(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/materials/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}findByIdLives(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/lives/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdLives(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/lives/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdLives(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/lives/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}
1findByIdEvents(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/events/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}findByIdSubscriptions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/subscriptions/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}getLinks(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/links",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createLinks(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/links";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteLinks(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/links";return this.request("DELETE",n,{id:e},{},{},null,t)}countLinks(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/links/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getSponsors(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/sponsors",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}countSponsors(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/sponsors/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getRoles(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/roles",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createRoles(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/roles";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteRoles(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/roles";return this.request("DELETE",n,{id:e},{},{},null,t)}countRoles(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/roles/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getThreads(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/threads",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createThreads(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/threads";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteThreads(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/threads";return this.request("DELETE",n,{id:e},{},{},null,t)}countThreads(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/threads/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getAccesses(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/accesses",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}countAccesses(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/accesses/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getSubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/submissions",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}countSubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/submissions/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getReviews(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/reviews",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}countReviews(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/reviews/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getAssignments(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/assignments",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}countAssignments(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/assignments/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getMaterials(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/materials",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createMaterials(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/materials";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteMaterials(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/materials";return this.request("DELETE",n,{id:e},{},{},null,t)}countMaterials(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/materials/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getLives(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/lives",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createLives(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/lives";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteLives(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/lives";return this.request("DELETE",n,{id:e},{},{},null,t)}countLives(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/lives/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getEvents(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/events",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}countEvents(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/events/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getSubscriptions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/subscriptions",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}countSubscriptions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/subscriptions/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}addToCalendar(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/user-calendar";return this.request("POST",n,{id:e},{},{},null,t)}removeFromCalendar(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/user-calendar";return this.request("DELETE",n,{id:e},{},{},null,t)}acceptSubscriptions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/subscriptions/:fk/accept";return this.request("POST",i,{id:e,fk:t},{},{},null,n)}cancelSubscriptions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/subscriptions/:fk/cancel";return this.request("POST",i,{id:e,fk:t},{},{},null,n)}blockSubscriptions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/subscriptions/:fk/block";return this.request("POST",i,{id:e,fk:t},{},{},null,n)}subscribe(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/subscribe";return this.request("POST",n,{id:e},{},{},null,t)}invite(e,t={},n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/invite",s={id:e},a={};return null!=t&&(a.email=t),null!=n&&(a.mode=n),this.request("POST",r,s,a,{},null,i)}refreshData(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/refresh";return this.request("POST",n,{id:e},{},{},null,t)}uploadpicture(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/upload/picture";return this.request("POST",n,{id:e},{},{},null,t)}getActive(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/active",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countActive(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/active/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}linkedEventsLinks(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/links/linkedEvents",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}downloadReport(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/report";return this.request("GET",n,{id:e},{},{},null,t)}downloadParticipants(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/participants";return this.request("GET",n,{id:e},{},{},null,t)}getStats(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/getStats",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}generateCertificatesPassed(e,t={},n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/certificates/passed",s={id:e},a={};return null!=t&&(a.query=t),null!=n&&(a.settings=n),this.request("POST",r,s,a,{},null,i)}generateCertificatesLogbook(e,t={},n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/certificates/logbook",s={id:e},a={};return null!=t&&(a.query=t),null!=n&&(a.settings=n),this.request("POST",r,s,a,{},null,i)}generateCertificatesParticipation(e,t={},n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/certificates/participation",s={id:e},a={};return null!=t&&(a.query=t),null!=n&&(a.settings=n),this.request("POST",r,s,a,{},null,i)}deleteCertificates(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/certificates",r={id:e},s={};return null!=t&&(s.query=t),this.request("DELETE",i,r,s,{},null,n)}verify_progresses(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/progress/verify",r={id:e},s={};return null!=t&&(s.query=t),this.request("POST",i,r,s,{},null,n)}uploadprogram(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/upload/program";return this.request("POST",n,{id:e},{},{},null,t)}uploadheader(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/upload/header";return this.request("POST",n,{id:e},{},{},null,t)}generateSurveyReport(e,t={},n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/survey-report/:name",s={id:e,name:t},a={};return null!=n&&(a.info=n),this.request("POST",r,s,a,{},null,i)}areSubmissionsEnabled(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/c
1heckSubmissions";return this.request("GET",n,{id:e},{},{},null,t)}areReviewsEnabled(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/checkReviews";return this.request("GET",n,{id:e},{},{},null,t)}participate(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/participate";return this.request("POST",n,{id:e},{},{},null,t)}getAuthors(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/getAuthors";return this.request("GET",n,{id:e},{},{},null,t)}getReviewers(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/getReviewers";return this.request("GET",n,{id:e},{},{},null,t)}getProfiles(e,t={},n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/getProfiles",s={id:e},a={};return null!=t&&(a.relationName=t),null!=n&&(a.query=n),this.request("GET",r,s,a,{},null,i)}downloadAbstractDocument(e,t={},n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/downloadAbstract",s={id:e},a={};return null!=t&&(a.query=t),null!=n&&(a.printOptions=n),this.request("GET",r,s,a,{},null,i)}getByIdDetails(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/details",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}getByIdCalendar(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/calendar",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createManySettings(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/settings";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyLinks(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/links";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyRoles(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/roles";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyThreads(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/threads";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyMaterials(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/materials";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyLives(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Congresses/:id/lives";return this.request("POST",i,{id:e},{},{data:t},null,n)}getModelName(){return"Congress"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},NsZL:function(e,t){var n,i,r,s,o,a,c;o=function(e,t){return n(s(e,t))},a=function(e,t){return i(r(e),t)},c=function(e,t,n){return r(n?e:e-t)},e.exports={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:n=function(e){return 9e4*e},secondsToAudioTs:i=function(e,t){return e*t},videoTsToSeconds:r=function(e){return e/9e4},audioTsToSeconds:s=function(e,t){return e/t},audioTsToVideoTs:o,videoTsToAudioTs:a,metadataTsToSeconds:c}},Nv8m:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("DH7j"),r=n("yCtX"),s=n("l7GE"),o=n("ZUHj");function a(...e){if(1===e.length){if(!Object(i.a)(e[0]))return e[0];e=e[0]}return Object(r.a)(e,void 0).lift(new c)}class c{call(e,t){return t.subscribe(new l(e))}}class l extends s.a{constructor(e){super(e),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(e){this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(let n=0;n<t&&!this.hasFirst;n++){const t=e[n],i=Object(o.a)(this,t,void 0,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}}notifyNext(e,t,n){if(!this.hasFirst){this.hasFirst=!0;for(let e=0;e<this.subscriptions.length;e++)if(e!==n){let t=this.subscriptions[e];t.unsubscribe(),this.remove(t)}this.subscriptions=null}this.destination.next(t)}}},OQgR:function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return d});var i=n("7o/Q"),r=n("quSY"),s=n("HDdC"),o=n("XNiG");function a(e,t,n,i){return r=>r.lift(new c(e,t,n,i))}class c{constructor(e,t,n,i){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=i}call(e,t){return t.subscribe(new l(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}class l extends i.a{constructor(e,t,n,i,r){super(e),this.keySelector=t,this.elementSelector=n,this.durationSelector=i,this.subjectSelector=r,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}_next(e){let t;try{t=this.keySelector(e)}catch(n){return void this.error(n)}this._group(e,t)}_group(e,t){let n=this.groups;n||(n=this.groups=new Map);let i,r=n.get(t);if(this.elementSelector)try{i=this.elementSelector(e)}catch(s){this.error(s)}else i=e;if(!r){r=this.subjectSelector?this.subjectSelector():new o.a,n.set(t,r);const e=new d(t,r,this);if(this.destination.next(e),this.durationSelector){let e;try{e=this.durationSelector(new d(t,r))}catch(s){return void this.error(s)}this.add(e.subscribe(new u(t,r,this)))}}r.closed||r.next(i)}_error(e){const t=this.groups;t&&(t.forEach((t,n)=>{t.error(e)}),t.clear()),this.destination.error(e)}_complete(){const e=this.groups;e&&(e.forEach((e,t)=>{e.complete()}),e.clear()),this.destination.complete()}removeGroup(e){this.groups.delete(e)}unsubscribe(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&super.unsubscribe())}}class u extends i.a{constructor(e,t,n){super(t),this.key=e,this.group=t,this.parent=n}_next(e){this.complete()}_unsubscribe(){const{parent:e,key:t}=this;this.key=this.parent=null,e&&e.removeGroup(t)}}class d extends s.a{constructor(e,t,n){super(),this.key=e,this.groupSubject=t,this.refCountSubscription=n}_subscribe(e){const t=new r.a,{refCountSubscription:n,groupSubject:i}=this;return n&&!n.closed&&t.add(new h(n)),t.add(i.subscribe(e)),t}}class h extends r.a{constructor(e){super(),this.parent=e,e.count++}unsubscribe(){const e=this.parent;e.closed||this.closed||(super.unsubscribe(),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())}}},Ojyw:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getEvent(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLives/:id/event",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLives/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}uploadparticipants_report(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLives/:id/upload/participants_report";return this.request("POST",n,{id:e},{},{},null,t)}setAttendance(e,t={},n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLives/:id/attendance",s={id:e},a={};return null!=t&&(a.userId=t),null!=n&&(a.attendance=n),this.request("POST",r,s,a,{},null,i)}getModelName(){return"CourseLive"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},PJYZ:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},Pd6T:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"CongressEvent"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"CongressEvent",plural:"CongressEvents",path:"CongressEvents",idName:"id",properties:{congressId:{name:"congressId",type:"any"},submissionId:{name:"submissionId",type:"any"},title:{name:"title",type:"string"},description:{name:"description",type:"string"},date_start:{name:"date_start",type:"Date"},date_end:{name:"date_end",type:"Date"},room:{name:"room",type:"string"},category:{name:"category",type:"string"},moderators:{name:"moderators",type:"Array<any>"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{congress:{name:"congress",type:"Congress",model:"Congress",relationType:"belongsTo",keyFrom:"congressId",keyTo:"id"},submission:{name:"submission",type:"CongressSubmission",model:"CongressSubmission",relationType:"belongsTo",keyFrom:"submissionId",keyTo:"id"}}}}}},PjgR:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiEventExam"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiEventExam",plural:"SimiEventExams",path:"SimiEventExams",idName:"id",properties:{eventId:{name:"eventId",type:"any"},status:{name:"status",type:"string",default:"pending"},questions:{name:"questions",type:"Array<any>"},start_time:{name:"start_time",type:"Date"},end_time:{name:"end_time",type:"Date"},duration:{name:"duration",type:"number"},questions_count:{name:"questions_count",type:"number"},correct_count:{name:"correct_count",type:"number"},max_attempts:{name:"max_attempts",type:"number"}
1,attachments:{name:"attachments",type:"Array<any>"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{event:{name:"event",type:"SimiEvent",model:"SimiEvent",relationType:"belongsTo",keyFrom:"eventId",keyTo:"id"}}}}}},PqYM:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("HDdC"),r=n("D0XW"),s=n("Y7HM"),o=n("z+Ro");function a(e=0,t,n){let a=-1;return Object(s.a)(t)?a=Number(t)<1?1:Number(t):Object(o.a)(t)&&(n=t),Object(o.a)(n)||(n=r.a),new i.a(t=>{const i=Object(s.a)(e)?e:+e-n.now();return n.schedule(c,i,{index:0,period:a,subscriber:t})})}function c(e){const{index:t,period:n,subscriber:i}=e;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}},PsMQ:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SurveyCompiler"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SurveyCompiler",plural:"SurveyCompilers",path:"SurveyCompilers",idName:"id",properties:{userId:{name:"userId",type:"any"},publicName:{name:"publicName",type:"string"},data:{name:"data",type:"any",default:null},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{accesses:{name:"accesses",type:"SurveyAccess[]",model:"SurveyAccess",relationType:"hasMany",keyFrom:"id",keyTo:"compilerId"},submissions:{name:"submissions",type:"SurveySubmission[]",model:"SurveySubmission",relationType:"hasMany",keyFrom:"id",keyTo:"compilerId"},requests:{name:"requests",type:"SurveyRequest[]",model:"SurveyRequest",relationType:"hasMany",keyFrom:"id",keyTo:"compilerId"},user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},QAZZ:function(e,t,n){const i=n("Rb7d");function r(e,t){const n=e.a/255,i=t+'="'+e.hex+'"';return n<1?i+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':i}function s(e,t,n){let i=e+t;return void 0!==n&&(i+=" "+n),i}t.render=function(e,t,n){const o=i.getOptions(t),a=e.modules.size,c=e.modules.data,l=a+2*o.margin,u=o.color.light.a?"<path "+r(o.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",d="<path "+r(o.color.dark,"stroke")+' d="'+function(e,t,n){let i="",r=0,o=!1,a=0;for(let c=0;c<e.length;c++){const l=Math.floor(c%t),u=Math.floor(c/t);l||o||(o=!0),e[c]?(a++,c>0&&l>0&&e[c-1]||(i+=o?s("M",l+n,.5+u+n):s("m",r,0),r=0,o=!1),l+1<t&&e[c+1]||(i+=s("h",a),a=0)):r++}return i}(c,a,o.margin)+'"/>',h='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+'viewBox="0 0 '+l+" "+l+'" shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"==typeof n&&n(null,h),h}},QUaw:function(e,t,n){const i=n("Rb7d");t.render=function(e,t,n){let r=n,s=t;void 0!==r||t&&t.getContext||(r=t,t=void 0),t||(s=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),r=i.getOptions(r);const o=i.getImageWidth(e.modules.size,r),a=s.getContext("2d"),c=a.createImageData(o,o);return i.qrToImageData(c.data,e,r),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(a,s,o),a.putImageData(c,0,0),s},t.renderToDataURL=function(e,n,i){let r=i;return void 0!==r||n&&n.getContext||(r=n,n=void 0),r||(r={}),t.render(e,n,r).toDataURL(r.type||"image/png",(r.rendererOpts||{}).quality)}},QUy1:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}findByIdMembers(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiBoards/:id/members/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdMembers(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiBoards/:id/members/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdMembers(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiBoards/:id/members/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}getMembers(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiBoards/:id/members",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createMembers(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiBoards/:id/members";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteMembers(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiBoards/:id/members";return this.request("DELETE",n,{id:e},{},{},null,t)}countMembers(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiBoards/:id/members/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiBoards/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}uploadlogo(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiBoards/:id/upload/logo";return this.request("POST",n,{id:e},{},{},null,t)}uploadcover(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiBoards/:id/upload/cover";return this.request("POST",n,{id:e},{},{},null,t)}createManyMembers(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiBoards/:id/members";return this.request("POST",i,{id:e},{},{data:t},null,n)}getModelName(){return"SimiBoard"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},QV3V:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiEventThreadComment"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiEventThreadComment",plural:"SimiEventThreadComments",path:"SimiEventThreadComments",idName:"id",properties:{eventId:{name:"eventId",type:"any"},threadId:{name:"threadId",type:"any"},userId:{name:"userId",type:"any"},content:{name:"content",type:"string"},replyId:{name:"replyId",type:"string"}
1,attachments:{name:"attachments",type:"Array<any>"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{event:{name:"event",type:"SimiEvent",model:"SimiEvent",relationType:"belongsTo",keyFrom:"eventId",keyTo:"id"},thread:{name:"thread",type:"SimiEventThread",model:"SimiEventThread",relationType:"belongsTo",keyFrom:"threadId",keyTo:"id"},user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},QagM:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getEvent(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseMaterials/:id/event",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseMaterials/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}uploadresource(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseMaterials/:id/upload/resource";return this.request("POST",n,{id:e},{},{},null,t)}setRemoteResource(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseMaterials/:id/resource/set",r={id:e},s={};return null!=t&&(s.url=t),this.request("POST",i,r,s,{},null,n)}downloadresource(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseMaterials/:id/resource/:filename";return this.request("GET",i,{id:e,filename:t},{},{},null,n)}getModelName(){return"CourseMaterial"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},QsQ4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t.withLatestFrom=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.withLatestFrom.apply(void 0,e)(this)}},R0Ic:function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return r}),n.d(t,"d",function(){return f}),n.d(t,"e",function(){return a}),n.d(t,"f",function(){return c}),n.d(t,"g",function(){return l}),n.d(t,"h",function(){return d}),n.d(t,"i",function(){return u}),n.d(t,"j",function(){return h}),n.d(t,"k",function(){return o}),n.d(t,"l",function(){return g}),n.d(t,"m",function(){return m});class i{}class r{}const s="*";function o(e,t){return{type:7,name:e,definitions:t,options:{}}}function a(e,t=null){return{type:4,styles:t,timings:e}}function c(e,t=null){return{type:3,steps:e,options:t}}function l(e,t=null){return{type:2,steps:e,options:t}}function u(e){return{type:6,styles:e,offset:null}}function d(e,t,n){return{type:0,name:e,styles:t,options:n}}function h(e,t,n=null){return{type:1,expr:e,animation:t,options:n}}function p(e){Promise.resolve(null).then(e)}class f{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){p(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class g{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,i=0;const r=this.players.length;0==r?p(()=>
1this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==r&&this._onFinish()}),e.onDestroy(()=>{++n==r&&this._onDestroy()}),e.onStart(()=>{++i==r&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){const e=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}const m="!"},RIvq:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiAdmission"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiAdmission",plural:"SimiAdmissions",path:"SimiAdmissions",idName:"id",properties:{userId:{name:"userId",type:"any"},status:{name:"status",type:"string",default:"pending"},sezione_regionale:{name:"sezione_regionale",type:"string"},category:{name:"category",type:"string"},campi_interesse:{name:"campi_interesse",type:"Array<any>"},reject_message:{name:"reject_message",type:"string"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},RS3s:function(e,t,n){"use strict";n.d(t,"a",function(){return On}),n.d(t,"b",function(){return xn}),n.d(t,"c",function(){return An});var i=n("fXoL"),r=n("ofXK"),s=n("3Pt+"),o=n("XNiG"),a=n("HDdC"),c=n("PqYM"),l=n("JIr8"),u=n("lJxs"),d=n("IzEk"),h=n("mrSG"),p=n("tk/3");function f(e,t){if(1&e&&(i.Zb(0,"span",2),i.Qc(1),i.Yb()),2&e){const e=t.$implicit,n=i.nc();i.tc("ngClass",e.isMatch?n.matchClass:null),i.Gb(1),i.Rc(e.text)}}const g=function(e,t){return{"completer-title":e,"completer-description":t}},m=["ctrInput"];function b(e,t){if(1&e&&(i.Zb(0,"div",10),i.Qc(1),i.Yb()),2&e){const e=i.nc(3);i.Gb(1),i.Rc(e._textSearching)}}function y(e,t){if(1&e&&(i.Zb(0,"div",11),i.Qc(1),i.Yb()),2&e){const e=i.nc(3);i.Gb(1),i.Rc(e._textNoResults)}}function v(e,t){if(1&e&&i.Ub(0,"img",21),2&e){const e=i.nc(2).$implicit;i.uc("src",e.image,i.Jc)}}function _(e,t){1&e&&i.Ub(0,"div",22)}function w(e,t){if(1&e&&(i.Zb(0,"div",18),i.Oc(1,v,1,1,"img",19),i.Oc(2,_,1,0,"div",20),i.Yb()),2&e){const e=i.nc().$implicit;i.Gb(1),i.tc("ngIf",""!=e.image),i.Gb(1),i.tc("ngIf",""===e.image)}}function k(e,t){if(1&e&&i.Ub(0,"completer-list-item",23),2&e){const e=i.nc().$implicit,t=i.nc(3);i.tc("text",e.description)("matchClass",t.matchClass)("searchStr",t.searchStr)("type","description")}}const C=function(e){return{"completer-item-text-image":e}};function S(e,t){if(1&e&&(i.Zb(0,"div",12),i.Zb(1,"div",13),i.Oc(2,w,3,2,"div",14),i.Zb(3,"div",15),i.Ub(4,"completer-list-item",16),i.Oc(5,k,1,4,"completer-list-item",17),i.Yb(),i.Yb(),i.Yb()),2&e){const e=t.$implicit,n=t.index,r=i.nc(3);i.Gb(1),i.tc("ctrRow",n)("dataItem",e),i.Gb(1),i.tc("ngIf",e.image||""===e.image),i.Gb(1),i.tc("ngClass",i.yc(9,C,e.image||""===e.image)),i.Gb(1),i.tc("text",e.title)("matchClass",r.matchClass)("searchStr",r.searchStr)("type","title"),i.Gb(1),i.tc("ngIf",e.de
1scription&&""!=e.description)}}function T(e,t){if(1&e&&(i.Zb(0,"div",6),i.Oc(1,b,2,1,"div",7),i.Oc(2,y,2,1,"div",8),i.Oc(3,S,6,11,"div",9),i.Yb()),2&e){const e=i.nc(),t=e.searching,n=e.results,r=i.nc();i.Gb(1),i.tc("ngIf",t&&r.displaySearching),i.Gb(1),i.tc("ngIf",!(t||n&&0!==(null==n?null:n.length))),i.Gb(1),i.tc("ngForOf",n)}}function P(e,t){if(1&e&&(i.Zb(0,"div",4),i.Oc(1,T,4,3,"div",5),i.Yb()),2&e){const e=t.results,n=t.searching,r=t.searchInitialized,s=t.isOpen,o=i.nc();i.Gb(1),i.tc("ngIf",r&&s&&((null==e?null:e.length)>0||o.displayNoResults&&!n||n&&o.displaySearching))}}function O(e){return null==e}class x extends o.a{constructor(){super(),this._searchFields=null,this._titleField=null,this._descriptionField=void 0,this._imageField=void 0}cancel(){}searchFields(e){return this._searchFields=e,this}titleField(e){return this._titleField=e,this}descriptionField(e){return this._descriptionField=e,this}imageField(e){return this._imageField=e,this}convertToItem(e){let t,n=null,i=null;return t=this._titleField?this.extractTitle(e):e,"string"!=typeof t&&(t=JSON.stringify(t)),this._descriptionField&&(i=this.extractValue(e,this._descriptionField)),this._imageField&&(n=this.extractValue(e,this._imageField)),O(t)?null:{description:i,image:n,originalObject:e,title:t}}extractMatches(e,t){let n=[];const i=this._searchFields?this._searchFields.split(","):null;return n=null!=this._searchFields&&""!==t?e.filter(e=>(i?this.extractBySearchFields(i,e):[e]).some(e=>e.toString().toLowerCase().indexOf(t.toString().toLowerCase())>=0)):e,n}extractTitle(e){return this._titleField?this._titleField.split(",").map(t=>this.extractValue(e,t)).reduce((e,t)=>e?`${e} ${t}`:t):""}extractValue(e,t){let n,i;if(t)for(t of(n=t.split("."),i=e,n))i&&(i=i[t]);else i=e;return i}processResults(e){let t;const n=[];if(e&&e.length>0)for(t=0;t<e.length;t++){const i=this.convertToItem(e[t]);i&&n.push(i)}return n}extractBySearchFields(e,t){return e.map(e=>this.extractValue(t,e)).filter(e=>!!e)}}class A extends x{constructor(){super(),this.dataSourceChange=new i.o,this._data=[],this.savedTerm=null}data(e){return e instanceof a.a?e.pipe(Object(l.a)(()=>[])).subscribe(e=>{this._data=e,this.savedTerm&&this.search(this.savedTerm),this.dataSourceChange.emit()}):this._data=e,this.dataSourceChange.emit(),this}search(e){if(this._data){this.savedTerm=null;const t=this.extractMatches(this._data,e);this.next(this.processResults(t))}else this.savedTerm=e}convertToItem(e){return super.convertToItem(e)}}class E extends x{constructor(e){super(),this.http=e,this.dataSourceChange=new i.o,this._remoteUrl=null,this.remoteSearch=null,this._urlFormater=null,this._dataField=null}remoteUrl(e){return this._remoteUrl=e,this.dataSourceChange.emit(),this}urlFormater(e){this._urlFormater=e}dataField(e){this._dataField=e}requestOptions(e){this._requestOptions=e}search(e){this.cancel();let t="";t=this._urlFormater?this._urlFormater(e):this._remoteUrl+encodeURIComponent(e),this.remoteSearch=this.http.get(t,Object.assign({},this._requestOptions)).pipe(Object(u.a)(t=>{const n=this.extractValue(t,this._dataField);return this.extractMatches(n,e)}),Object(l.a)(()=>[])).subscribe(e=>{const t=this.processResults(e);this.next(t)})}cancel(){this.remoteSearch&&this.remoteSearch.unsubscribe()}convertToItem(e){return super.convertToItem(e)}}let M=(()=>{let e=class{create(){return new A}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Pb({token:e,factory:function(t){return e.\u0275fac(t)}}),e})(),I=(()=>{let e=class{constructor(e){this.http=e}create(){return new E(this.http)}};return e.\u0275fac=function(t){return new(t||e)(i.gc(p.b))},e.\u0275prov=i.Pb({token:e,factory:function(t){return e.\u0275fac(t)}}),e=Object(h.b)([Object(h.c)("design:paramtypes",[p.b])],e),e})(),R=(()=>{let e=class{constructor(e,t){this.localDataFactory=e,this.remoteDataFactory=t}local(e,t="",n=""){return this.localDataFactory.create().data(e).searchFields(t).titleField(n)}remote(e,t="",n=""){return this.remoteDataFactory.create().remoteUrl(e).searchFields(t).titleField(n)}};return e.\u0275fac=function(t){return new(t||e)(i.gc(M),i.gc(I))},e.\u0275prov=i.Pb({token:e,factory:function(t){return e.\u0275fac(t)}}
1),e=Object(h.b)([Object(h.c)("design:paramtypes",[M,I])],e),e})(),L=(()=>{let e=class{constructor(){this.selected=new i.o,this.highlighted=new i.o,this.opened=new i.o,this.dataSourceChange=new i.o,this.list=null,this.dropdown=null,this._hasHighlighted=!1,this._hasSelected=!1,this._cancelBlur=!1,this._isOpen=!1,this._autoHighlightIndex=null}registerList(e){this.list=e}registerDropdown(e){this.dropdown=e}onHighlighted(e){this.highlighted.emit(e),this._hasHighlighted=!!e}onSelected(e,t=!0){this.selected.emit(e),e&&(this._hasSelected=!0),t&&this.clear()}onDataSourceChange(){this.hasSelected&&(this.selected.emit(null),this._hasSelected=!1),this.dataSourceChange.emit()}search(e){this._hasSelected&&(this.selected.emit(null),this._hasSelected=!1),this.list&&this.list.search(e)}clear(){this._hasHighlighted=!1,this.isOpen=!1,this.dropdown&&this.dropdown.clear(),this.list&&this.list.clear()}selectCurrent(){this.dropdown&&this.dropdown.selectCurrent()}nextRow(){this.dropdown&&this.dropdown.nextRow()}prevRow(){this.dropdown&&this.dropdown.prevRow()}hasHighlighted(){return this._hasHighlighted}cancelBlur(e){this._cancelBlur=e}isCancelBlur(){return this._cancelBlur}open(){!this._isOpen&&this.list&&(this.isOpen=!0,this.list.open())}get isOpen(){return this._isOpen}set isOpen(e){this._isOpen=e,this.opened.emit(this._isOpen),this.list&&this.list.isOpen(e)}get autoHighlightIndex(){return this._autoHighlightIndex}set autoHighlightIndex(e){this._autoHighlightIndex=e,this.dropdown&&this.dropdown.highlightRow(this._autoHighlightIndex)}get hasSelected(){return this._hasSelected}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["","ctrCompleter",""]],outputs:{selected:"selected",highlighted:"highlighted",opened:"opened",dataSourceChange:"dataSourceChange"}}),e})();class D{constructor(e,t){this.row=e,this.index=t}}let j=(()=>{let e=class{constructor(e,t,n){this.completer=e,this.el=t,this.zone=n,this.rows=[],this.isScrollOn=!1,this._rowMouseDown=!1,this.completer.registerDropdown(this)}ngOnDestroy(){this.completer.registerDropdown(null)}ngAfterViewInit(){const e=getComputedStyle(this.el.nativeElement),t=this.completer.autoHighlightIndex;this.isScrollOn=!!e.maxHeight&&"auto"===e.overflowY,t&&this.zone.run(()=>{this.highlightRow(t)})}onMouseDown(e){this._rowMouseDown?this._rowMouseDown=!1:(this.completer.cancelBlur(!0),this.zone.run(()=>{this.completer.cancelBlur(!1)}))}registerRow(e){const t=this.rows.findIndex(t=>t.index===e.index);t>=0?this.rows[t]=e:this.rows.push(e)}unregisterRow(e){const t=this.rows.findIndex(t=>t.index===e);this.rows.splice(t,1),this.currHighlighted&&e===this.currHighlighted.index&&this.highlightRow(null)}highlightRow(e){const t=this.rows.find(t=>t.index===e);if(O(e)||e<0)return this.currHighlighted&&this.currHighlighted.row.setHighlighted(!1),this.currHighlighted=void 0,void this.completer.onHighlighted(null);if(t&&(this.currHighlighted&&this.currHighlighted.row.setHighlighted(!1),this.currHighlighted=t,this.currHighlighted.row.setHighlighted(!0),this.completer.onHighlighted(this.currHighlighted.row.getDataItem()),this.isScrollOn&&this.currHighlighted)){const e=this.dropdownRowTop();if(!e)return;if(e<0)this.dropdownScrollTopTo(e-1);else{const e=this.currHighlighted.row.getNativeElement();this.dropdownHeight()<e.getBoundingClientRect().bottom&&(this.dropdownScrollTopTo(this.dropdownRowOffsetHeight(e)),this.el.nativeElement.getBoundingClientRect().bottom-this.dropdownRowOffsetHeight(e)<e.getBoundingClientRect().top&&this.dropdownScrollTopTo(e.getBoundingClientRect().top-(this.el.nativeElement.getBoundingClientRect().top+parseInt(getComputedStyle(this.el.nativeElement).paddingTop,10))))}}}clear(){this.rows=[]}onSelected(e){this.completer.onSelected(e)}rowMouseDown(){this._rowMouseDown=!0}selectCurrent(){this.currHighlighted&&this.currHighlighted.row?this.onSelected(this.currHighlighted.row.getDataItem()):this.rows.length>0&&this.onSelected(this.rows[0].row.getDataItem())}nextRow(){let e=0;this.currHighlighted&&(e=this.currHighlighted.index+1),this.highlightRow(e)}prevRow(){let e=-1;this.currHighlighted&&(e=this.currHighlighted.index-1),this.highlightRow(e)}dropdownScrollTopTo(e){this.el.nativeElement.scrollTop=this.el.nativeElement.scrollTop+e}dropdownRowTop(){if(this.currHighlighted)return this.currHighlighted.row.getNativeElement().getBoundingClientRect().top-(this.el.nativeElement.getBoundingClientRect().top+parseInt(getComputedStyle(this.el.nativeElement).paddingTop,10))}dropdownHeight(){return this.el.nativeElement.getBoundingClientRect().top+parseInt(getComputedStyle(this.el.nativeElement).maxHeight,10)}dropdownRowOffsetHeight(e){const t=getComputedStyle(e.parentElement);return e.parentElement.offsetHeight+parseInt(t.marginTop,10)+parseInt(t.marginBottom,10)}};return e.\u0275fac=function(t){return new(t||e)(i.Tb(L,1),i.Tb(i.l),i.Tb(i.C))},e.\u0275dir=i.Ob({type:e,selectors:[["","ctrDropdown",""]],hostBindings:function(e,t){1&e&&i.jc("mousedown",function(e){return t.onMouseDown(e)})}}
1),e=Object(h.b)([Object(h.d)(0,Object(i.p)()),Object(h.c)("design:paramtypes",[L,i.l,i.C])],e),e})(),N=(()=>{let e=class{constructor(e,t,n){this.completer=e,this.ngModel=t,this.el=n,this.clearSelected=!1,this.clearUnselected=!1,this.overrideSuggested=!1,this.fillHighlighted=!0,this.openOnFocus=!1,this.openOnClick=!1,this.selectOnClick=!1,this.selectOnFocus=!1,this.ngModelChange=new i.o,this._searchStr="",this._displayStr="",this.blurTimer=null,this.completer.selected.subscribe(e=>{e&&(this.searchStr=this.clearSelected?"":e.title,this.ngModelChange.emit(this.searchStr))}),this.completer.highlighted.subscribe(e=>{this.fillHighlighted&&(e?(this._displayStr=e.title,this.ngModelChange.emit(e.title)):(this._displayStr=this.searchStr,this.ngModelChange.emit(this.searchStr)))}),this.completer.dataSourceChange.subscribe(()=>{this.completer.search(this.searchStr)}),this.ngModel.valueChanges&&this.ngModel.valueChanges.subscribe(e=>{O(e)||this._displayStr===e||(this.searchStr!==e&&this.completer.search(e),this.searchStr=e)})}keyupHandler(e){37!==e.keyCode&&39!==e.keyCode&&9!==e.keyCode&&(38===e.keyCode||13===e.keyCode?e.preventDefault():40===e.keyCode?(e.preventDefault(),this.completer.search(this.searchStr)):27===e.keyCode&&this.completer.isOpen&&(this.restoreSearchValue(),this.completer.clear(),e.stopPropagation(),e.preventDefault()))}pasteHandler(e){this.completer.open()}keydownHandler(e){const t=e.keyCode||e.which;13===t?(this.completer.hasHighlighted()&&e.preventDefault(),this.handleSelection()):40===t?(e.preventDefault(),this.completer.open(),this.completer.nextRow()):38===t?(e.preventDefault(),this.completer.prevRow()):9===t?this.handleSelection():8===t?this.completer.open():27===t?(e.preventDefault(),this.completer.isOpen&&e.stopPropagation()):0===t||16===t||20===t||!(t<=112||t>=123)||e.ctrlKey||e.metaKey||e.altKey||this.completer.open()}onBlur(e){this.completer.isCancelBlur()?setTimeout(()=>{this.el.nativeElement.focus()},0):this.completer.isOpen&&(this.blurTimer=Object(c.a)(200).pipe(Object(d.a)(1)).subscribe(()=>this.doBlur()))}onfocus(){this.blurTimer&&(this.blurTimer.unsubscribe(),this.blurTimer=null),this.selectOnFocus&&this.el.nativeElement.select(),this.openOnFocus&&this.completer.open()}onClick(e){this.selectOnClick&&this.el.nativeElement.select(),this.openOnClick&&(this.completer.isOpen?this.completer.clear():this.completer.open())}get searchStr(){return this._searchStr}set searchStr(e){this._searchStr=e,this._displayStr=e}handleSelection(){this.completer.hasHighlighted()?(this._searchStr="",this.completer.selectCurrent()):this.overrideSuggested?this.completer.onSelected({title:this.searchStr,originalObject:null}):(this.clearUnselected&&!this.completer.hasSelected&&(this.searchStr="",this.ngModelChange.emit(this.searchStr)),this.completer.clear())}restoreSearchValue(){this.fillHighlighted&&this._displayStr!==this.searchStr&&(this._displayStr=this.searchStr,this.ngModelChange.emit(this.searchStr))}doBlur(){this.blurTimer&&(this.blurTimer.unsubscribe(),this.blurTimer=null),this.overrideSuggested?this.completer.onSelected({title:this.searchStr,originalObject:null}):this.clearUnselected&&!this.completer.hasSelected?(this.searchStr="",this.ngModelChange.emit(this.searchStr)):this.restoreSearchValue(),this.completer.clear()}};return e.\u0275fac=function(t){return new(t||e)(i.Tb(L,1),i.Tb(s.r),i.Tb(i.l))},e.\u0275dir=i.Ob({type:e,selectors:[["","ctrInput",""]],hostBindings:function(e,t){1&e&&i.jc("keyup",function(e){return t.keyupHandler(e)})("paste",function(e){return t.pasteHandler(e)})("keydown",function(e){return t.keydownHandler(e)})("blur",function(e){return t.onBlur(e)})("focus",function(){return t.onfocus()})("click",function(e){return t.onClick(e)})},inputs:{clearSelected:"clearSelected",clearUnselected:"clearUnselected",overrideSuggested:"overrideSuggested",fillHighlighted:"fillHighlighted",openOnFocus:"openOnFocus",openOnClick:"openOnClick",selectOnClick:"selectOnClick",selectOnFocus:"selectOnFocus"},outputs:{ngModelChange:"ngModelChange"}}),e=Object(h.b)([Object(h.d)(0,Object(i.p)()),Object(h.c)("design:paramtypes",[L,s.r,i.l])],e),e})();class V{constructor(e,t,n,i){this.results=e,this.searching=t,this.searchInitialized=n,this.isOpen=i}}let z=(()=>{let e=class{constructor(e,t,n,i,r){this.completer=e,this.templateRef=t,this.viewContainer=n,this.cd=i,this.zone=r,this.ctrListMinSearchLength=3,this.ctrListPause=10,this.ctrListAutoMatch=!1,this.ctrListAutoHighlight=!1,this.ctrListDisplaySearching=!0,this._dataService=null,this.term=null,this.searchTimer=null,this.clearTimer=null,this.ctx=new V([],!1,
1!1,!1),this._initialValue=null,this.viewRef=null}ngOnInit(){this.completer.registerList(this),this.viewRef=this.viewContainer.createEmbeddedView(this.templateRef,new V([],!1,!1,!1))}set dataService(e){this._dataService=e,this.dataServiceSubscribe()}set initialValue(e){this._dataService&&"function"==typeof this._dataService.convertToItem?this.zone.run(()=>{const t=this._dataService&&this._dataService.convertToItem(e);t&&this.completer.onSelected(t,!1)}):this._dataService||(this._initialValue=e)}search(e){!O(e)&&e.length>=this.ctrListMinSearchLength&&this.term!==e?(this.searchTimer&&(this.searchTimer.unsubscribe(),this.searchTimer=null),this.ctx.searching||(this.ctrListDisplaySearching&&(this.ctx.results=[]),this.ctx.searching=!0,this.ctx.searchInitialized=!0,this.refreshTemplate()),this.clearTimer&&this.clearTimer.unsubscribe(),this.searchTimer=Object(c.a)(this.ctrListPause).pipe(Object(d.a)(1)).subscribe(()=>{this.searchTimerComplete(e)})):!O(e)&&e.length<this.ctrListMinSearchLength&&(this.clear(),this.term="")}clear(){this.searchTimer&&this.searchTimer.unsubscribe(),this.clearTimer=Object(c.a)(50).pipe(Object(d.a)(1)).subscribe(()=>{this._clear()})}open(){this.ctx.searchInitialized||this.search(""),this.refreshTemplate()}isOpen(e){this.ctx.isOpen=e}_clear(){this.searchTimer&&(this.searchTimer.unsubscribe(),this.searchTimer=null),this.dataService&&this.dataService.cancel(),this.viewContainer.clear(),this.viewRef=null}searchTimerComplete(e){O(e)||e.length<this.ctrListMinSearchLength?this.ctx.searching=!1:(this.term=e,this._dataService&&this._dataService.search(e))}refreshTemplate(){this.viewRef?this.viewRef.destroyed||(this.viewRef.context.isOpen=this.ctx.isOpen,this.viewRef.context.results=this.ctx.results,this.viewRef.context.searching=this.ctx.searching,this.viewRef.context.searchInitialized=this.ctx.searchInitialized,this.viewRef.detectChanges()):this.viewRef=this.viewContainer.createEmbeddedView(this.templateRef,this.ctx),this.cd.markForCheck()}getBestMatchIndex(){if(!this.ctx.results||!this.term)return null;let e=this.ctx.results.findIndex(e=>e.title.toLowerCase()===this.term.toLocaleLowerCase());return e<0&&(e=this.ctx.results.findIndex(e=>e.title.toLowerCase().startsWith(this.term.toLocaleLowerCase()))),e<0&&(e=this.ctx.results.findIndex(e=>e.title.toLowerCase().includes(this.term.toLocaleLowerCase()))),e<0?null:e}dataServiceSubscribe(){this._dataService&&(this._dataService.subscribe(e=>{this.ctx.searchInitialized=!0,this.ctx.searching=!1,this.ctx.results=e,this.ctrListAutoMatch&&e&&1===e.length&&e[0].title&&!O(this.term)&&e[0].title.toLocaleLowerCase()===this.term.toLocaleLowerCase()?this.completer.onSelected(e[0]):(this.refreshTemplate(),this.ctrListAutoHighlight&&(this.completer.autoHighlightIndex=this.getBestMatchIndex()))},e=>(console.error(e),console.error("Unexpected error in dataService: errors should be handled by the dataService Observable"),[])),this._dataService.dataSourceChange&&this._dataService.dataSourceChange.subscribe(()=>{this.term=null,this.ctx.searchInitialized=!1,this.ctx.searching=!1,this.ctx.results=[],this.refreshTemplate(),this.completer.onDataSourceChange()}))}};return e.\u0275fac=function(t){return new(t||e)(i.Tb(L,1),i.Tb(i.Q),i.Tb(i.U),i.Tb(i.h),i.Tb(i.C))},e.\u0275dir=i.Ob({type:e,selectors:[["","ctrList",""]],inputs:{ctrListMinSearchLength:"ctrListMinSearchLength",ctrListPause:"ctrListPause",ctrListAutoMatch:"ctrListAutoMatch",ctrListAutoHighlight:"ctrListAutoHighlight",ctrListDisplaySearching:"ctrListDisplaySearching",dataService:["ctrList","dataService"],initialValue:["ctrListInitialValue","initialValue"]}}),e=Object(h.b)([Object(h.d)(0,Object(i.p)()),Object(h.c)("design:paramtypes",[L,i.Q,i.U,i.h,i.C])],e),e})(),F=(()=>{let e=class{constructor(e,t,n){this.el=e,this.renderer=t,this.dropdown=n,this.selected=!1,this._rowIndex=0,this._item=null}ngOnDestroy(){this._rowIndex&&this.dropdown.unregisterRow(this._rowIndex)}set ctrRow(e){this._rowIndex=e,this.dropdown.registerRow(new D(this,this._rowIndex))}set dataItem(e){this._item=e}onClick(e){this.dropdown.onSelected(this._item)}onMouseEnter(e){this.dropdown.highlightRow(this._rowIndex)}onMouseDown(e){this.dropdown.rowMouseDown()}setHighlighted(e){this.selected=e,this.selected?this.renderer.addClass(this.el.nativeElement,"completer-selected-row"):this.renderer.removeClass(this.el.nativeElement,"completer-selected-row")}getNativeElement(){return this.el.nativeElement}getDataItem(){return this._item}};return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.H),i.Tb(j,1))},e.\u0275dir=i.Ob({type:e,selectors:[["","ctrRow",""]],hostBindings:function(e,t){1&e&&i.jc("click",function(e){return t.onClick(e)})("mouseenter",function(e){return t.onMouseEnter(e)})("mousedown",function(e){return t.onMouseDown(e)})},inputs:{ctrRow:"ctrRow",dataItem:"dataItem"}}
1),e=Object(h.b)([Object(h.d)(2,Object(i.p)()),Object(h.c)("design:paramtypes",[i.l,i.H,j])],e),e})(),B=(()=>{let e=class{constructor(){this.text="",this.searchStr="",this.matchClass="",this.type="",this.parts=[]}ngOnInit(){if(!this.searchStr)return void this.parts.push({isMatch:!1,text:this.text});const e=this.text.toLowerCase();let t=e.indexOf(this.searchStr.toLowerCase()),n=0;for(;t>=0;){const i=this.text.slice(t,t+this.searchStr.length);if(0===t)this.parts.push({isMatch:!0,text:i}),n+=this.searchStr.length;else if(t>0){const e=this.text.slice(n,t);this.parts.push({isMatch:!1,text:e}),this.parts.push({isMatch:!0,text:i}),n+=this.searchStr.length+e.length}t=e.indexOf(this.searchStr.toLowerCase(),n)}n<this.text.length&&this.parts.push({isMatch:!1,text:this.text.slice(n,this.text.length)})}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["completer-list-item"]],inputs:{text:"text",searchStr:"searchStr",matchClass:"matchClass",type:"type"},decls:2,vars:5,consts:[[1,"completer-list-item-holder",3,"ngClass"],["class","completer-list-item",3,"ngClass",4,"ngFor","ngForOf"],[1,"completer-list-item",3,"ngClass"]],template:function(e,t){1&e&&(i.Zb(0,"span",0),i.Oc(1,f,2,2,"span",1),i.Yb()),2&e&&(i.tc("ngClass",i.zc(2,g,"title"===t.type,"description"===t.type)),i.Gb(1),i.tc("ngForOf",t.parts))},directives:[r.l,r.m],encapsulation:2}),e})();const q=()=>{},U={multi:!0,provide:s.m,useExisting:Object(i.Y)(()=>H)};let H=(()=>{let e=class{constructor(e,t){this.completerService=e,this.cdr=t,this.inputName="",this.inputId="",this.pause=10,this.minSearchLength=3,this.maxChars=524288,this.overrideSuggested=!1,this.clearSelected=!1,this.clearUnselected=!1,this.fillHighlighted=!0,this.placeholder="",this.autoMatch=!1,this.disableInput=!1,this.autofocus=!1,this.openOnFocus=!1,this.openOnClick=!1,this.selectOnClick=!1,this.selectOnFocus=!1,this.autoHighlight=!1,this.selected=new i.o,this.highlighted=new i.o,this.blurEvent=new i.o,this.click=new i.o,this.focusEvent=new i.o,this.opened=new i.o,this.keyup=new i.o,this.keydown=new i.o,this.control=new s.d(""),this.displaySearching=!0,this.displayNoResults=!0,this._textNoResults="No results found",this._textSearching="Searching...",this._onTouchedCallback=q,this._onChangeCallback=q,this._focus=!1,this._open=!1,this._searchStr=""}get value(){return this.searchStr}set value(e){e!==this.searchStr&&(this.searchStr=e),this._onChangeCallback(e)}get searchStr(){return this._searchStr}set searchStr(e){this._searchStr="string"==typeof e||O(e)?e:JSON.stringify(e)}ngAfterViewInit(){this.autofocus&&(this._focus=!0),this.completer&&(this.completer.selected.subscribe(e=>{this.selected.emit(e)}),this.completer.highlighted.subscribe(e=>{this.highlighted.emit(e)}),this.completer.opened.subscribe(e=>{this._open=e,this.opened.emit(e)}))}ngAfterViewChecked(){this._focus&&setTimeout(()=>{this.ctrInput&&(this.ctrInput.nativeElement.focus(),this._focus=!1)},0)}onTouched(){this._onTouchedCallback()}writeValue(e){this.searchStr=e}registerOnChange(e){this._onChangeCallback=e}registerOnTouched(e){this._onTouchedCallback=e}setDisabledState(e){this.disableInput=e}set datasource(e){e&&(this.dataService=e instanceof Array?this.completerService.local(e):"string"==typeof e?this.completerService.remote(e):e)}set textNoResults(e){this._textNoResults!==e&&(this._textNoResults=e,this.displayNoResults=!!this._textNoResults&&"false"!==this._textNoResults)}set textSearching(e){this._textSearching!==e&&(this._textSearching=e,this.displaySearching=!!this._textSearching&&"false"!==this._textSearching)}onBlur(){this.blurEvent.emit(),this.onTouched(),this.cdr.detectChanges()}onFocus(){this.focusEvent.emit(),this.onTouched()}onClick(e){this.click.emit(e),this.onTouched()}onKeyup(e){this.keyup.emit(e),e.stopPropagation()}onKeydown(e){this.keydown.emit(e),e.stopPropagation()}onChange(e){this.value=e}open(){this.completer&&this.completer.open()}close(){this.completer&&this.completer.clear()}focus(){this.ctrInput?this.ctrInput.nativeElement.focus():this._focus=!0}blur(){this.ctrInput?this.ctrInput.nativeElement.blur():this._focus=!1}isOpen(){return this._open}};return e.\u0275fac=function(t){return new(t||e)(i.Tb(R),i.Tb(i.h))},e.\u0275cmp=i.Nb({type:e,selectors:[["ng2-completer"]],viewQuery:function(e,t){if(1&e&&(i.Vc(L,1),i.Vc(m,1)),2&e){let e;i.Ec(e=i.kc())&&(t.completer=e.first),i.Ec(e=i.kc())&&(t.ctrInput=e.first)}},inputs:{inputName:"inputName",inputId:"inputId",pause:"pause",minSearchLength:"minSearchLength",maxChars:"maxChars",overrideSuggested:"overrideSuggested",clearSelected:"clearSelected",clearUnselected:"clearUnselected",fillHighlighted:"fillHighlighted",placeholder:"placeholder",autoMatch:"autoMatch",disableInput:"disableInput",autofocus:"autofocus",openOnFocus:"openOnFocus",openOnClick:"openOnClick",selectOnClick:"selectOnClick",selectOnFocus:"selectOnFocus",autoHighlight:"autoHighlight",datasource:"datasource",dataService:"dataService",textNoResults:"textNoResults",textSearching:"textSearching",matchClass:"matchClass",fieldTabindex:"fieldTabindex",inputClass:"inputClass",initialValue:"initialValue"},outputs:{selected:"selected",highlighted:"highlighted",blurEvent:"blur",click:"click",focusEvent:"focus",opened:"opened",keyup:"keyup",keydown:"keydown"},features:[i.Fb([U])],decls:4,vars:23,consts:[["ctrCompleter","",1,"completer-holder"],["type","search","ctrInput","","autocomplete","off","autocorrect","off","autocapitalize","off",1,"completer-input",3,"ngClass","ngModel","placeholder","tabindex","disabled","clearSelected","clearUnselected","overrideSuggested","openOnFocus","fillHighlighted","openOnClick","selectOnClick","selectOnFocus","ngModelChange","blur","focus","keyup","keydown","click"],["ctrInput",""],["class","completer-dropdown-holder",4,"ctrList","ctrListMinSearchLength","ctrListPause","ctrListAutoMatch","ctrListInitialValue","ctrListAutoHighlight","ctrListDisplaySearching"],[1,"completer-dropdown-holder"],["class","completer-dropdown","ctrDropdown","",4,"ngIf"],["ctrDropdown","",1,"completer-dropdown"],["class","completer-searching",4,"ngIf"],["class","completer-no-results",4,"ngIf"],["class","completer-row-wrapper",4,"ngFor","ngForOf"],[1,"completer-searching"],[1,"completer-no-results"],[1,"completer-row-wrapper"],[1,"completer-row",3,"ctrRow","dataItem"],["class","completer-image-holder",4,"ngIf"],[1,"completer-item-text",3,"ngClass"],[1,"completer-title",3,"text","matchClass","searchStr","type"],["class","completer-description",3,"text","matchClass","searchStr","type",4,"ngIf"],[1,"completer-image-holder"],["class","completer-image",3,"src",4,"ngIf"],["class","completer-image-default",4,"ngIf"],[1,"completer-image",3,"src"],[1,"completer-image-default"],[1,"completer-description",3,"text","matchClass","searchStr","type"]],template:function(e,t){1&e&&(i.Zb(0,"div",0),i.Zb(1,"input",1,2),i.jc("ngModelChange",function(e){return t.searchStr=e})("ngModelChange",function(e){return t.onChange(e)}
1)("blur",function(){return t.onBlur()})("focus",function(){return t.onFocus()})("keyup",function(e){return t.onKeyup(e)})("keydown",function(e){return t.onKeydown(e)})("click",function(e){return t.onClick(e)}),i.Yb(),i.Oc(3,P,2,1,"div",3),i.Yb()),2&e&&(i.Gb(1),i.tc("ngClass",t.inputClass)("ngModel",t.searchStr)("placeholder",t.placeholder)("tabindex",t.fieldTabindex)("disabled",t.disableInput)("clearSelected",t.clearSelected)("clearUnselected",t.clearUnselected)("overrideSuggested",t.overrideSuggested)("openOnFocus",t.openOnFocus)("fillHighlighted",t.fillHighlighted)("openOnClick",t.openOnClick)("selectOnClick",t.selectOnClick)("selectOnFocus",t.selectOnFocus),i.Hb("id",t.inputId.length>0?t.inputId:null)("name",t.inputName)("maxlength",t.maxChars),i.Gb(2),i.tc("ctrList",t.dataService)("ctrListMinSearchLength",t.minSearchLength)("ctrListPause",t.pause)("ctrListAutoMatch",t.autoMatch)("ctrListInitialValue",t.initialValue)("ctrListAutoHighlight",t.autoHighlight)("ctrListDisplaySearching",t.displaySearching))},directives:[L,s.b,N,r.l,s.o,s.r,s.j,z,r.n,j,r.m,F,B],styles:['.completer-dropdown[_ngcontent-%COMP%] {\n border-color: #ececec;\n border-width: 1px;\n border-style: solid;\n border-radius: 2px;\n width: 250px;\n padding: 6px;\n cursor: pointer;\n z-index: 9999;\n position: absolute;\n margin-top: -6px;\n background-color: #ffffff;\n }\n\n .completer-row[_ngcontent-%COMP%] {\n padding: 5px;\n color: #000000;\n margin-bottom: 4px;\n clear: both;\n display: inline-block;\n width: 103%;\n }\n\n .completer-selected-row[_ngcontent-%COMP%] {\n background-color: lightblue;\n color: #ffffff;\n }\n\n .completer-description[_ngcontent-%COMP%] {\n font-size: 14px;\n }\n\n .completer-image-default[_ngcontent-%COMP%] {\n width: 16px;\n height: 16px;\n background-image: url("demo/res/img/default.png");\n }\n\n .completer-image-holder[_ngcontent-%COMP%] {\n float: left;\n width: 10%;\n }\n .completer-item-text-image[_ngcontent-%COMP%] {\n float: right;\n width: 90%;\n }']}),e=Object(h.b)([Object(h.c)("design:paramtypes",[R,i.h])],e),e})();var W;const G=[R,M,I];let Y=(()=>{let e=W=class{static forRoot(){return{ngModule:W,providers:G}}static forChild(){return{ngModule:W,providers:G}}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({providers:G,imports:[[r.c,s.i]]}),e})();var $=n("LvDl"),Z=n("Kj3r"),Q=n("/uUt"),X=n("zP0r"),K=n("1G5W");function J(e,t){if(1&e&&i.Ub(0,"table-cell-view-mode",2),2&e){const e=i.nc();i.tc("cell",e.cell)}}function ee(e,t){if(1&e){const e=i.ac();i.Zb(0,"table-cell-edit-mode",3),i.jc("edited",function(t){return i.Hc(e),i.nc().onEdited(t)}),i.Yb()}if(2&e){const e=i.nc();i.tc("cell",e.cell)("inputClass",e.inputClass)}}const te=["dynamicTarget"];function ne(e,t){}function ie(e,t){if(1&e){const e=i.ac();i.Zb(0,"select-editor",5),i.jc("onClick",function(t){return i.Hc(e),i.nc().onClick(t)})("onEdited",function(t){return i.Hc(e),i.nc().onEdited(t)})("onStopEditing",function(){return i.Hc(e),i.nc().onStopEditing()}),i.Yb()}if(2&e){const e=i.nc();i.tc("cell",e.cell)("inputClass",e.inputClass)}}function re(e,t){if(1&e){const e=i.ac();i.Zb(0,"textarea-editor",5),i.jc("onClick",function(t){return i.Hc(e),i.nc().onClick(t)})("onEdited",function(t){return i.Hc(e),i.nc().onEdited(t)})("onStopEditing",function(){return i.Hc(e),i.nc().onStopEditing()}),i.Yb()}if(2&e){const e=i.nc();i.tc("cell",e.cell)("inputClass",e.inputClass)}}function se(e,t){if(1&e){const e=i.ac();i.Zb(0,"checkbox-editor",6),i.jc("onClick",function(t){return i.Hc(e),i.nc().onClick(t)}),i.Yb()}if(2&e){const e=i.nc();i.tc("cell",e.cell)("inputClass",e.inputClass)}}function oe(e,t){if(1&e&&i.Ub(0,"completer-editor",7),2&e){const e=i.nc();i.tc("cell",e.cell)}}function ae(e,t){if(1&e){const e=i.ac();i.Zb(0,"input-editor",5),i.jc("onClick",function(t){return i.Hc(e),i.nc().onClick(t)})("onEdited",function(t){return i.Hc(e),i.nc().onEdited(t)})("onStopEditing",function(){return i.Hc(e),i.nc().onStopEditing()}),i.Yb()}if(2&e){const e=i.nc();i.tc("cell",e.cell)("inputClass",e.inputClass)}}function ce(e,t){if(1&e){const e=i.ac();i.Zb(0,"table-cell-custom-editor",3),i.jc("edited",function(t){return i.Hc(e),i.nc().onEdited(t)}),i.Yb()}if(2&e){const e=i.nc();i.tc("cell",e.cell)("inputClass",e.inputClass)}}function le(e,t){if(1&e){const e=i.ac();i.Zb(0,"table-cell-default-editor",3),i.jc("edited",function(t){return i.Hc(e),i.nc().onEdited(t)}),i.Yb()}if(2&e){const e=i.nc();i.tc("cell",e.cell)("inputClass",e.inputClass)}}const ue="[_nghost-%COMP%] input[_ngcontent-%COMP%], [_nghost-%COMP%] textarea[_ngcontent-%COMP%]{line-height:normal;padding:.375em .75em;width:100%}";function de(e,t){if(1&e&&(i.Zb(0,"option",2),i.Qc(1),i.Yb()),2&e){const e=t.$implicit,n=i.nc();i.tc("value",e.value)("selected",e.value===n.cell.getValue()),i.Gb(1),i.Sc("",e.title," ")}}function he(e,t){}function pe(e,t){if(1&e&&i.Ub(0,"custom-view-component",4),2&e){const e=i.nc();i.tc("cell",e.cell)}}function fe(e,t){if(1&e&&i.Ub(0,"div",5),2&e){const e=i.nc();i.tc("innerHTML",e.cell.getValue(),i.Ic)}}function ge(e,t){if(1&e&&(i.Zb(0,"div"),i.Qc(1),i.Yb()),2&e){const e=i.nc();i.Gb(1),i.Rc(e.cell.getValue())}}function me(e,t){if(1&e){const e=i.ac();i.Zb(0,"custom-table-filter",4),i.jc("filter",function(t){return i.Hc(e),i.nc(2).onFilter(t)}),i.Yb()}if(2&e){const e=i.nc(2);i.tc("query",e.query)("column",e.column)("source",e.source)("inputClass",e.inputClass)}}function be(e,t){if(1&e){const e=i.ac();i.Zb(0,"default-table-filter",4),i.jc("filter",function(t){return i.Hc(e),i.nc(2).onFilter(t)}),i.Yb()}if(2&e){const e=i.nc(2);i.tc("query",e.query)("column",e.column)("source",e.source)("inputClass",e.inputClass)}}function ye(e,t){if(1&e&&(i.Zb(0,"div",1),i.Oc(1,me,1,4,"custom-table-filter",2),i.Oc(2,be,1,4,"default-table-filter",3),i.Yb()),2&e){const e=i.nc();i.tc("ngSwitch",e.column.getFilterType()),i.Gb(1),i.tc("ngSwitchCase","custom")}}function ve(e,t){if(1&e){const e=i.ac();i.Zb(0,"select-filter",3),i.jc("filter",function(t){return i.Hc(e),i.nc().onFilter(t)}),i.Yb()}if(2&e){const e=i.nc();i.tc("query",e.query)("ngClass",e.inputClass)("column",e.column)}}function _e(e,t){if(1&e){const e=i.ac();i.Zb(0,"checkbox-filter",3),i.jc("filter",function(t){return i.Hc(e),i.nc().onFilter(t)}),i.Yb()}if(2&e){const e=i.nc();i.tc("query",e.query)("ngClass",e.inputClass)("column",e.column)}}function we(e,t){if(1&e){const e=i.ac();i.Zb(0,"completer-filter",3),i.jc("filter",function(t){return i.Hc(e),i.nc().onFilter(t)}),i.Yb()}if(2&e){const e=i.nc();i.tc("query",e.query)("ngClass",e.inputClass)("column",e.column)}}function ke(e,t){if(1&e){const e=i.ac();i.Zb(0,"input-filter",3),i.jc("filter",function(t){return i.Hc(e),i.nc().onFilter(t)}),i.Yb()}if(2&e){const e=i.nc();i.tc("query",e.query)("ngClass",e.inputClass)("column",e.column)}}function Ce(e,t){}function Se(e,t){if(1&e){const e=i.ac();i.Zb(0,"a",2),i.jc("click",function(t){return i.Hc(e),i.nc().resetFilter(t)}),i.Qc(1),i.Yb()}if(2&e){const e=i.nc();let t=null;i.Gb(1),i.Rc((null==(t=e.column.getFilterConfig())?null:t.resetText)||"reset")}}const Te=["inputControl"];function Pe(e,t){if(1&e&&(i.Zb(0,"option",4),i.Qc(1),i.Yb()),2&e){const e=t.$implicit;i.tc("value",e.value),i.Gb(1),i.Sc(" ",e.title," ")}}function Oe(e,t){if(1&e&&(i.Zb(0,"span",14),i.Qc(1),i.Zb(2,"span",7),i.Qc(3,"(current)"),i.Yb(),i.Yb()),2&e){const e=i.nc().$implicit;i.Gb(1),i.Sc("",e," ")}}function xe(e,t){if(1&e){const e=i.ac();i.Zb(0,"a",15),i.jc("click",function(){i.Hc(e);const t=i.nc().$implicit;return i.nc(2).paginate(t)}),i.Qc(1),i.Yb()}if(2&e){const e=i.nc().$implicit;i.Gb(1),i.Rc(e)}}const Ae=function(e){return{active:e}};function Ee(e,t){if(1&e&&(i.Zb(0,"li",4),i.Oc(1,Oe,4,1,"span",12),i.Oc(2,xe,2,1,"a",13),i.Yb()),2&e){const e=t.$implicit,n=i.nc(2);i.tc("ngClass",i.yc(3,Ae,n.getPage()==e)),i.Gb(1),i.tc("ngIf",n.getPage()==e),i.Gb(1),i.tc("ngIf",n.getPage()!=e)}}const Me=function(e){return{disabled:e}};function Ie(e,t){if(1&e){const e=i.ac();i.Zb(0,"nav",2),i.Zb(1,"ul",3),i.Zb(2,"li",4),i.Zb(3,"a",5),i.jc("click",function(){i.Hc(e);const t=i.nc();return 1!=t.getPage()&&t.paginate(1)}),i.Zb(4,"span",6),i.Qc(5,"\xab"),i.Yb(),i.Zb(6,"span",7),i.Qc(7,"First"),i.Yb(),i.Yb(),i.Yb(),i.Zb(8,"li",4),i.Zb(9,"a",8),i.jc("click",function(){i.Hc(e);const t=i.nc();return 1!=t.getPage()&&t.prev()}),i.Zb(10,"span",6),i.Qc(11,"<"),i.Yb(),i.Zb(12,"span",7),i.Qc(13,"Prev"),i.Yb(),i.Yb(),i.Yb(),i.Oc(14,Ee,3,5,"li",9),i.Zb(15,"li",4),i.Zb(16,"a",10),i.jc("click",function(){i.Hc(e);const t=i.nc();return t.getPage()!=t.getLast()&&t.next()}),i.Zb(17,"span",6),i.Qc(18,">"),i.Yb(),i.Zb(19,"span",7),i.Qc(20,"Next"),i.Yb(),i.Yb(),i.Yb(),i.Zb(21,"li",4),i.Zb(22,"a",11),i.jc("click",function(){i.Hc(e);const t=i.nc();return t.getPage()!=t.getLast()&&t.paginate(t.getLast())}),i.Zb(23,"span",6),i.Qc(24,"\xbb"),i.Yb(),i.Zb(25,"span",7),i.Qc(26,"Last"),i.Yb(),i.Yb(),i.Yb(),i.Yb(),i.Yb()}if(2&e){const e=i.nc();i.Gb(2),i.tc("ngClass",i.yc(5,Me,1==e.getPage())),i.Gb(6),i.tc("ngClass",i.yc(7,Me,1==e.getPage())),i.Gb(6),i.tc("ngForOf",e.getPages()),i.Gb(1),i.tc("ngClass",i.yc(9,Me,e.getPage()==e.getLast())),i.Gb(6),i.tc("ngClass",i.yc(11,Me,e.getPage()==e.getLast()))}}function Re(e,t){if(1&e&&(i.Zb(0,"option",20),i.Qc(1),i.Yb()),2&e){const e=t.$implicit;i.tc("value",e),i.Gb(1),i.Rc(e)}}function Le(e,t){if(1&e){const e=i.ac();i.Zb(0,"nav",16),i.Zb(1,"label",17),i.Qc(2," Per Page: "),i.Yb(),i.Zb(3,"select",18),i.jc("change",function(t){return i.Hc(e),i.nc().onChangePerPage(t)})("ngModelChange",function(t){return i.Hc(e),i.nc().currentPerPage=t}),i.Oc(4,Re,2,2,"option",19),i.Yb(),i.Yb()}if(2&e){const e=i.nc();i.Gb(3),i.tc("ngModel",e.currentPerPage),i.Gb(1),i.tc("ngForOf",e.perPageSelect)}
1}const De=["ng2-st-tbody",""];function je(e,t){if(1&e){const e=i.ac();i.Zb(0,"td",6),i.jc("click",function(){i.Hc(e);const t=i.nc().$implicit;return i.nc().multipleSelectRow.emit(t)}),i.Ub(1,"input",7),i.Yb()}if(2&e){const e=i.nc().$implicit;i.Gb(1),i.tc("ngModel",e.isSelected)}}function Ne(e,t){if(1&e){const e=i.ac();i.Zb(0,"td",8),i.Zb(1,"ng2-st-tbody-custom",9),i.jc("custom",function(t){return i.Hc(e),i.nc(2).custom.emit(t)}),i.Yb(),i.Zb(2,"ng2-st-tbody-edit-delete",10),i.jc("edit",function(){i.Hc(e);const t=i.nc().$implicit;return i.nc().edit.emit(t)})("delete",function(){i.Hc(e);const t=i.nc().$implicit;return i.nc().delete.emit(t)})("editRowSelect",function(t){return i.Hc(e),i.nc(2).editRowSelect.emit(t)}),i.Yb(),i.Yb()}if(2&e){const e=i.nc().$implicit,t=i.nc();i.Gb(1),i.tc("grid",t.grid)("row",e)("source",t.source),i.Gb(1),i.tc("grid",t.grid)("deleteConfirm",t.deleteConfirm)("editConfirm",t.editConfirm)("row",e)("source",t.source)}}function Ve(e,t){if(1&e&&(i.Zb(0,"td",8),i.Ub(1,"ng2-st-tbody-create-cancel",11),i.Yb()),2&e){const e=i.nc().$implicit,t=i.nc();i.Gb(1),i.tc("grid",t.grid)("row",e)("editConfirm",t.editConfirm)}}function ze(e,t){if(1&e&&(i.Zb(0,"td"),i.Ub(1,"ng2-smart-table-cell",12),i.Yb()),2&e){const e=t.$implicit,n=i.nc().$implicit,r=i.nc();i.Gb(1),i.tc("cell",e)("grid",r.grid)("row",n)("isNew",!1)("mode",r.mode)("editConfirm",r.editConfirm)("inputClass",r.editInputClass)("isInEditing",n.isInEditing)}}function Fe(e,t){if(1&e&&(i.Zb(0,"td",8),i.Ub(1,"ng2-st-tbody-create-cancel",11),i.Yb()),2&e){const e=i.nc().$implicit,t=i.nc();i.Gb(1),i.tc("grid",t.grid)("row",e)("editConfirm",t.editConfirm)}}function Be(e,t){if(1&e){const e=i.ac();i.Zb(0,"td",8),i.Zb(1,"ng2-st-tbody-custom",9),i.jc("custom",function(t){return i.Hc(e),i.nc(2).custom.emit(t)}),i.Yb(),i.Zb(2,"ng2-st-tbody-edit-delete",10),i.jc("edit",function(){i.Hc(e);const t=i.nc().$implicit;return i.nc().edit.emit(t)})("delete",function(){i.Hc(e);const t=i.nc().$implicit;return i.nc().delete.emit(t)})("editRowSelect",function(t){return i.Hc(e),i.nc(2).editRowSelect.emit(t)}),i.Yb(),i.Yb()}if(2&e){const e=i.nc().$implicit,t=i.nc();i.Gb(1),i.tc("grid",t.grid)("row",e)("source",t.source),i.Gb(1),i.tc("grid",t.grid)("deleteConfirm",t.deleteConfirm)("editConfirm",t.editConfirm)("row",e)("source",t.source)}}const qe=function(e){return{selected:e}};function Ue(e,t){if(1&e){const e=i.ac();i.Zb(0,"tr",2),i.jc("click",function(){i.Hc(e);const n=t.$implicit;return i.nc().userSelectRow.emit(n)})("mouseover",function(){i.Hc(e);const n=t.$implicit;return i.nc().rowHover.emit(n)}),i.Oc(1,je,2,1,"td",3),i.Oc(2,Ne,3,8,"td",4),i.Oc(3,Ve,2,3,"td",4),i.Oc(4,ze,2,8,"td",5),i.Oc(5,Fe,2,3,"td",4),i.Oc(6,Be,3,8,"td",4),i.Yb()}if(2&e){const e=t.$implicit,n=i.nc();i.tc("className",n.rowClassFunction(e))("ngClass",i.yc(8,qe,e.isSelected)),i.Gb(1),i.tc("ngIf",n.isMultiSelectVisible),i.Gb(1),i.tc("ngIf",!e.isInEditing&&n.showActionColumnLeft),i.Gb(1),i.tc("ngIf",e.isInEditing&&n.showActionColumnLeft),i.Gb(1),i.tc("ngForOf",n.getVisibleCells(e.cells)),i.Gb(1),i.tc("ngIf",e.isInEditing&&n.showActionColumnRight),i.Gb(1),i.tc("ngIf",!e.isInEditing&&n.showActionColumnRight)}}function He(e,t){if(1&e&&(i.Zb(0,"tr"),i.Zb(1,"td"),i.Qc(2),i.Yb(),i.Yb()),2&e){const e=i.nc();i.Gb(1),i.Hb("colspan",e.tableColumnsCount),i.Gb(1),i.Sc(" ",e.noDataMessage," ")}}function We(e,t){if(1&e){const e=i.ac();i.Zb(0,"a",2),i.jc("click",function(t){return i.Hc(e),i.nc().onEdit(t)}),i.Yb()}if(2&e){const e=i.nc();i.tc("innerHTML",e.editRowButtonContent,i.Ic)}}function Ge(e,t){if(1&e){const e=i.ac();i.Zb(0,"a",3),i.jc("click",function(t){return i.Hc(e),i.nc().onDelete(t)}),i.Yb()}if(2&e){const e=i.nc();i.tc("innerHTML",e.deleteRowButtonContent,i.Ic)}}function Ye(e,t){if(1&e){const e=i.ac();i.Zb(0,"a",1),i.jc("click",function(n){i.Hc(e);const r=t.$implicit;return i.nc().onCustom(r,n)}),i.Yb()}2&e&&i.tc("innerHTML",t.$implicit.title,i.Ic)}const $e=["ng2-st-thead",""];function Ze(e,t){if(1&e){const e=i.ac();i.Zb(0,"tr",3),i.jc("sort",function(t){return i.Hc(e),i.nc().sort.emit(t)})("selectAllRows",function(t){return i.Hc(e),i.nc().selectAllRows.emit(t)}),i.Yb()}if(2&e){const e=i.nc();i.tc("grid",e.grid)("isAllSelected",e.isAllSelected)("source",e.source)}}function Qe(e,t){if(1&e){const e=i.ac();i.Zb(0,"tr",4),i.jc("create",function(t){return i.Hc(e),i.nc().create.emit(t)})("filter",function(t){return i.Hc(e),i.nc().filter.emit(t)}),i.Yb()}if(2&e){const e=i.nc();i.tc("grid",e.grid)("source",e.source)}}function Xe(e,t){if(1&e&&i.Ub(0,"tr",5),2&e){const e=i.nc();i.tc("grid",e.grid)("createConfirm",e.createConfirm)}}const Ke=["ng2-st-actions-title",""],Je=["ng2-st-add-button",""];function et(e,t){if(1&e){const e=i.ac();i.Zb(0,"a",1),i.jc("click",function(t){return i.Hc(e),i.nc().onAdd(t)}),i.Yb()}if(2&e){const e=i.nc();i.tc("innerHTML",e.addNewButtonContent,i.Ic)}}const tt=["ng2-st-checkbox-select-all",""];function nt(e,t){if(1&e){const e=i.ac();i.Zb(0,"a",2),i.jc("click",function(t){return i.Hc(e),i.nc()._sort(t)}),i.Qc(1),i.Yb()}if(2&e){const e=i.nc();i.tc("ngClass",e.currentDirection),i.Gb(1),i.Sc(" ",e.column.title," ")}}function it(e,t){if(1&e&&(i.Zb(0,"span",3),i.Qc(1),i.Yb()),2&e){const e=i.nc();i.Gb(1),i.Rc(e.column.title)}}const rt=["ng2-st-thead-filters-row",""];function st(e,t){1&e&&i.Ub(0,"th")}function ot(e,t){if(1&e){const e=i.ac();i.Zb(0,"th",4),i.jc("create",function(t){return i.Hc(e),i.nc().create.emit(t)}),i.Yb()}if(2&e){const e=i.nc();i.tc("grid",e.grid)}}function at(e,t){if(1&e){const e=i.ac();i.Zb(0,"th"),i.Zb(1,"ng2-smart-table-filter",5),i.jc("filter",function(t){return i.Hc(e),i.nc().filter.emit(t)}),i.Yb(),i.Yb()}if(2&e){const e=t.$implicit,n=i.nc();i.Jb("ng2-smart-th ",e.id,""),i.Gb(1),i.tc("source",n.source)("column",e)("inputClass",n.filterInputClass)}}function ct(e,t){if(1&e){const e=i.ac();i.Zb(0,"th",6),i.jc("create",function(t){return i.Hc(e),i.nc().create.emit(t)}),i.Yb()}if(2&e){const e=i.nc();i.tc("grid",e.grid)("source",e.source)}}const lt=["ng2-st-thead-form-row",""];function ut(e,t){1&e&&i.Ub(0,"td")}function dt(e,t){if(1&e){const e=i.ac();i.Zb(0,"td",3),i.Zb(1,"ng2-st-actions",4),i.jc("create",function(t){return i.Hc(e),i.nc().onCreate(t)}),i.Yb(),i.Yb()}if(2&e){const e=i.nc();i.Gb(1),i.tc("grid",e.grid)}}function ht(e,t){if(1&e){const e=i.ac();i.Zb(0,"td"),i.Zb(1,"ng2-smart-table-cell",5),i.jc("edited",function(t){return i.Hc(e),i.nc().onCreate(t)}),i.Yb(),i.Yb()}if(2&e){const e=t.$implicit,n=i.nc();i.Gb(1),i.tc("cell",e)("grid",n.grid)("isNew",!0)("createConfirm",n.createConfirm)("inputClass",n.addInputClass)("isInEditing",n.grid.getNewRow().isInEditing)}}function pt(e,t){if(1&e){const e=i.ac();i.Zb(0,"td",3),i.Zb(1,"ng2-st-actions",4),i.jc("create",function(t){return i.Hc(e),i.nc().onCreate(t)}),i.Yb(),i.Yb()}if(2&e){const e=i.nc();i.Gb(1),i.tc("grid",e.grid)}}const ft=["ng2-st-thead-titles-row",""];function gt(e,t){if(1&e){const e=i.ac();i.Zb(0,"th",3),i.jc("click",function(t){return i.Hc(e),i.nc().selectAllRows.emit(t)}),i.Yb()}if(2&e){const e=i.nc();i.tc("grid",e.grid)("source",e.source)("isAllSelected",e.isAllSelected)}}function mt(e,t){if(1&e&&i.Ub(0,"th",4),2&e){const e=i.nc();i.tc("grid",e.grid)}}function bt(e,t){if(1&e){const e=i.ac();i.Zb(0,"th",5),i.Zb(1,"ng2-st-column-title",6),i.jc("sort",function(t){return i.Hc(e),i.nc().sort.emit(t)}),i.Yb(),i.Yb()}if(2&e){const e=t.$implicit,n=i.nc();i.Jb("ng2-smart-th ",e.id,""),i.Mc("width",e.width),i.tc("ngClass",e.class),i.Gb(1),i.tc("source",n.source)("column",e)}}function yt(e,t){if(1&e&&i.Ub(0,"th",4),2&e){const e=i.nc();i.tc("grid",e.grid)}}function vt(e,t){if(1&e){const e=i.ac();i.Zb(0,"thead",4),i.jc("create",function(t){return i.Hc(e),i.nc().create.emit(t)})("selectAllRows",function(t){return i.Hc(e),i.nc().onSelectAllRows(t)})("sort",function(t){return i.Hc(e),i.nc().sort(t)})("filter",function(t){return i.Hc(e),i.nc().filter(t)}),i.Yb()}if(2&e){const e=i.nc();i.tc("grid",e.grid)("isAllSelected",e.isAllSelected)("source",e.source)("createConfirm",e.createConfirm)}}function _t(e,t){if(1&e){const e=i.ac();i.Zb(0,"ng2-smart-table-pager",5),i.jc("changePage",function(t){return i.Hc(e),i.nc().changePage(t)}),i.Yb()}if(2&e){const e=i.nc();i.tc("source",e.source)("perPageSelect",e.perPageSelect)}
1}const wt=function(...e){if(arguments.length<1||"object"!=typeof arguments[0])return!1;if(arguments.length<2)return arguments[0];const t=arguments[0],n=Array.prototype.slice.call(arguments,1);let i,r;return n.forEach(e=>{"object"!=typeof e||Array.isArray(e)||Object.keys(e).forEach(function(n){return r=t[n],i=e[n],i===t?void 0:"object"!=typeof i||null===i?void(t[n]=i):Array.isArray(i)?void(t[n]=Object($.cloneDeep)(i)):"object"!=typeof r||null===r||Array.isArray(r)?void(t[n]=wt({},i)):void(t[n]=wt(r,i))})}),t};class kt{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}function Ct(e,t){return Math.floor(e/t)+1}function St(e){return e}let Tt=(()=>{class e{constructor(e,t,n,i){this.value=e,this.row=t,this.column=n,this.dataSet=i,this.newValue="",this.newValue=e}getColumn(){return this.column}getRow(){return this.row}getValue(){return(this.column.getValuePrepareFunction()instanceof Function?this.column.getValuePrepareFunction():e.PREPARE).call(null,this.value,this.row.getData(),this)}setValue(e){this.newValue=e}getId(){return this.getColumn().id}getTitle(){return this.getColumn().title}isEditable(){return-1===this.getRow().index?this.getColumn().isAddable:this.getColumn().isEditable}}return e.PREPARE=St,e})();class Pt{constructor(e,t,n){this.index=e,this.data=t,this._dataSet=n,this.isSelected=!1,this.isInEditing=!1,this.cells=[],this.process()}getCell(e){return this.cells.find(t=>t.getColumn()===e)}getCells(){return this.cells}getData(){return this.data}getIsSelected(){return this.isSelected}getNewData(){const e=Object.assign({},this.data);
1return this.getCells().forEach(t=>e[t.getColumn().id]=t.newValue),e}setData(e){this.data=e,this.process()}process(){this.cells=[],this._dataSet.getColumns().forEach(e=>{const t=this.createCell(e);this.cells.push(t)})}createCell(e){return new Tt(void 0===this.data[e.id]?e.settings.defaultValue?e.settings.defaultValue:"":this.data[e.id],this,e,this._dataSet)}}class Ot{constructor(e,t,n){this.id=e,this.settings=t,this.dataSet=n,this.title="",this.type="",this.class="",this.width="",this.hide=!1,this.isSortable=!1,this.isEditable=!0,this.isAddable=!0,this.isFilterable=!1,this.sortDirection="",this.defaultSortDirection="",this.editor={type:"",config:{},component:null},this.filter={type:"",config:{},component:null},this.renderComponent=null,this.process()}getOnComponentInitFunction(){return this.onComponentInitFunction}getCompareFunction(){return this.compareFunction}getValuePrepareFunction(){return this.valuePrepareFunction}getFilterFunction(){return this.filterFunction}getConfig(){return this.editor&&this.editor.config}getFilterType(){return this.filter&&this.filter.type}getFilterConfig(){return this.filter&&this.filter.config}process(){this.title=this.settings.title,this.class=this.settings.class,this.width=this.settings.width,this.hide=!!this.settings.hide,this.type=this.prepareType(),this.editor=this.settings.editor,this.filter=this.settings.filter,this.renderComponent=this.settings.renderComponent,this.isFilterable=void 0===this.settings.filter||!!this.settings.filter,this.defaultSortDirection=-1!==["asc","desc"].indexOf(this.settings.sortDirection)?this.settings.sortDirection:"",this.isSortable=void 0===this.settings.sort||!!this.settings.sort,this.isEditable=void 0===this.settings.editable||!!this.settings.editable,this.isAddable=void 0===this.settings.addable||!!this.settings.addable,this.sortDirection=this.prepareSortDirection(),this.compareFunction=this.settings.compareFunction,this.valuePrepareFunction=this.settings.valuePrepareFunction,this.filterFunction=this.settings.filterFunction,this.onComponentInitFunction=this.settings.onComponentInitFunction}prepareType(){return this.settings.type||this.determineType()}prepareSortDirection(){return"desc"===this.settings.sort?"desc":"asc"}determineType(){return"text"}}class xt{constructor(e=[],t){this.columnSettings=t,this.data=[],this.columns=[],this.rows=[],this.createColumns(t),this.setData(e),this.createNewRow()}setData(e){this.data=e,this.createRows()}getColumns(){return this.columns}getRows(){return this.rows}getFirstRow(){return this.rows[0]}getLastRow(){return this.rows[this.rows.length-1]}findRowByData(e){return this.rows.find(t=>t.getData()===e)}deselectAll(){this.rows.forEach(e=>{e.isSelected=!1}),this.selectedRow=void 0}selectRow(e){const t=e.isSelected;return this.deselectAll(),e.isSelected=!t,this.selectedRow=e,this.selectedRow}multipleSelectRow(e){return e.isSelected=!e.isSelected,this.selectedRow=e,this.selectedRow}selectPreviousRow(){if(this.rows.length>0){let e=this.selectedRow?this.selectedRow.index:0;return e>this.rows.length-1&&(e=this.rows.length-1),this.selectRow(this.rows[e]),this.selectedRow}}selectFirstRow(){if(this.rows.length>0)return this.selectRow(this.rows[0]),this.selectedRow}selectLastRow(){if(this.rows.length>0)return this.selectRow(this.rows[this.rows.length-1]),this.selectedRow}selectRowByIndex(e){const t=this.rows.length;if(0!==t)return e?e>0&&e<t?(this.selectRow(this.rows[e]),this.selectedRow):void this.deselectAll():(this.selectFirstRow(),this.selectedRow)}willSelectFirstRow(){this.willSelect="first"}willSelectLastRow(){this.willSelect="last"}select(e){if(0!==this.getRows().length)return this.willSelect?("first"===this.willSelect&&this.selectFirstRow(),"last"===this.willSelect&&this.selectLastRow(),this.willSelect=""):this.selectRowByIndex(e),this.selectedRow}createNewRow(){this.newRow=new Pt(-1,{},this),this.newRow.isInEditing=!0}createColumns(e){for(const t in e)e.hasOwnProperty(t)&&this.columns.push(new Ot(t,e[t],this))}createRows(){this.rows=[],this.data.forEach((e,t)=>{this.rows.push(new Pt(t,e,this))})}}class At{constructor(e,t){this.createFormShown=!1,this.onSelectRowSource=new o.a,this.onDeselectRowSource=new o.a,this.setSettings(t),this.setSource(e)}detach(){this.sourceOnChangedSubscription&&this.sourceOnChangedSubscription.unsubscribe(),this.sourceOnUpdatedSubscription&&this.sourceOnUpdatedSubscription.unsubscribe()}
1showActionColumn(e){return this.isCurrentActionsPosition(e)&&this.isActionsVisible()}isCurrentActionsPosition(e){return e==this.getSetting("actions.position")}isActionsVisible(){return this.getSetting("actions.add")||this.getSetting("actions.edit")||this.getSetting("actions.delete")||this.getSetting("actions.custom").length}isMultiSelectVisible(){return"multi"===this.getSetting("selectMode")}getNewRow(){return this.dataSet.newRow}setSettings(e){this.settings=e,this.dataSet=new xt([],this.getSetting("columns")),this.source&&this.source.refresh()}getDataSet(){return this.dataSet}setSource(e){this.source=this.prepareSource(e),this.detach(),this.sourceOnChangedSubscription=this.source.onChanged().subscribe(e=>this.processDataChange(e)),this.sourceOnUpdatedSubscription=this.source.onUpdated().subscribe(e=>{this.dataSet.findRowByData(e).setData(e)})}getSetting(e,t){return function(e={},t,n){const i=t.split(".");let r=wt({},e);return i.forEach(e=>{r&&void 0!==r[e]&&(r=r[e])}),void 0===r?n:r}(this.settings,e,t)}getColumns(){return this.dataSet.getColumns()}getRows(){return this.dataSet.getRows()}selectRow(e){this.dataSet.selectRow(e)}multipleSelectRow(e){this.dataSet.multipleSelectRow(e)}onSelectRow(){return this.onSelectRowSource.asObservable()}onDeselectRow(){return this.onDeselectRowSource.asObservable()}edit(e){e.isInEditing=!0}create(e,t){const n=new kt;n.promise.then(t=>{t=t||e.getNewData(),n.resolve.skipAdd?this.createFormShown=!1:this.source.prepend(t).then(()=>{this.createFormShown=!1,this.dataSet.createNewRow()})}).catch(e=>{}
1),this.getSetting("add.confirmCreate")?t.emit({newData:e.getNewData(),source:this.source,confirm:n}):n.resolve()}save(e,t){const n=new kt;n.promise.then(t=>{t=t||e.getNewData(),n.resolve.skipEdit?e.isInEditing=!1:this.source.update(e.getData(),t).then(()=>{e.isInEditing=!1})}).catch(e=>{}),this.getSetting("edit.confirmSave")?t.emit({data:e.getData(),newData:e.getNewData(),source:this.source,confirm:n}):n.resolve()}delete(e,t){const n=new kt;n.promise.then(()=>{this.source.remove(e.getData())}).catch(e=>{}),this.getSetting("delete.confirmDelete")?t.emit({data:e.getData(),source:this.source,confirm:n}):n.resolve()}processDataChange(e){if(this.shouldProcessChange(e)&&(this.dataSet.setData(e.elements),"multi"!==this.getSetting("selectMode"))){const t=this.determineRowToSelect(e);t?this.onSelectRowSource.next(t):this.onDeselectRowSource.next(null)}}shouldProcessChange(e){return-1!==["filter","sort","page","remove","refresh","load","paging"].indexOf(e.action)||-1!==["prepend","append"].indexOf(e.action)&&!this.getSetting("pager.display")}determineRowToSelect(e){if(-1!==["load","page","filter","sort","refresh"].indexOf(e.action))return this.dataSet.select(this.getRowIndexToSelect());if(this.shouldSkipSelection())return null;if("remove"===e.action){if(0!==e.elements.length)return this.dataSet.selectPreviousRow();this.dataSet.willSelectLastRow()}return"append"===e.action&&this.dataSet.willSelectLastRow(),"add"===e.action||"update"===e.action?this.dataSet.selectFirstRow():("prepend"===e.action&&this.dataSet.willSelectFirstRow(),null)}prepareSource(e){const t=this.getInitialSort();return t&&t.field&&t.direction&&e.setSort([t],!1),!0===this.getSetting("pager.display")&&e.setPaging(this.getPageToSelect(e),this.getSetting("pager.perPage"),!1),e.refresh(),e}getInitialSort(){const e={};return this.getColumns().forEach(t=>{t.isSortable&&t.defaultSortDirection&&(e.field=t.id,e.direction=t.defaultSortDirection,e.compare=t.getCompareFunction())}),e}getSelectedRows(){return this.dataSet.getRows().filter(e=>e.isSelected)}selectAllRows(e){this.dataSet.getRows().forEach(t=>t.isSelected=e)}getFirstRow(){return this.dataSet.getFirstRow()}getLastRow(){return this.dataSet.getLastRow()}getSelectionInfo(){const e=this.getSetting("switchPageToSelectedRowPage"),t=Number(this.getSetting("selectedRowIndex",0))||0,{perPage:n,page:i}=this.getSetting("pager");return{perPage:n,page:i,selectedRowIndex:t,switchPageToSelectedRowPage:e}}getRowIndexToSelect(){const{switchPageToSelectedRowPage:e,selectedRowIndex:t,perPage:n}=this.getSelectionInfo(),i=this.source.count();return e&&t<i&&t>=0?t%n:t}getPageToSelect(e){const{switchPageToSelectedRowPage:t,selectedRowIndex:n,perPage:i,page:r}=this.getSelectionInfo();let s=Math.max(1,r);t&&n>=0&&(s=Ct(n,i));const o=Math.ceil(e.count()/i);return o?Math.min(s,o):s}shouldSkipSelection(){return Number(this.getSetting("selectedRowIndex"))<0}}let Et=(()=>{class e{constructor(){this.inputClass="",this.mode="inline",this.isInEditing=!1,this.edited=new i.o}onEdited(e){this.isNew?this.grid.create(this.grid.getNewRow(),this.createConfirm):this.grid.save(this.row,this.editConfirm)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["ng2-smart-table-cell"]],inputs:{inputClass:"inputClass",mode:"mode",isInEditing:"isInEditing",grid:"grid",row:"row",editConfirm:"editConfirm",createConfirm:"createConfirm",isNew:"isNew",cell:"cell"},outputs:{edited:"edited"},decls:2,vars:2,consts:[[3,"cell",4,"ngIf"],[3,"cell","inputClass","edited",4,"ngIf"],[3,"cell"],[3,"cell","inputClass","edited"]],template:function(e,t){1&e&&(i.Oc(0,J,1,1,"table-cell-view-mode",0),i.Oc(1,ee,1,2,"table-cell-edit-mode",1)),2&e&&(i.tc("ngIf",!t.isInEditing),i.Gb(1),i.tc("ngIf",t.isInEditing))},directives:function(){return[r.n,qt,Lt]},encapsulation:2}),e})(),Mt=(()=>{class e{constructor(){this.inputClass="",this.edited=new i.o}onEdited(e){return this.edited.next(e),!1}onStopEditing(){return this.cell.getRow().isInEditing=!1,!1}onClick(e){e.stopPropagation()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["ng-component"]],inputs:{inputClass:"inputClass",cell:"cell"},outputs:{edited:"edited"},decls:0,vars:0,template:function(e,t){},encapsulation:2}),e})(),It=(()=>{class e extends Mt{constructor(e){super(),this.resolver=e}ngOnChanges(e){if(this.cell&&!this.customComponent){const e=this.resolver.resolve
1ComponentFactory(this.cell.getColumn().editor.component);this.customComponent=this.dynamicTarget.createComponent(e),this.customComponent.instance.cell=this.cell,this.customComponent.instance.inputClass=this.inputClass,this.customComponent.instance.onStopEditing.subscribe(()=>this.onStopEditing()),this.customComponent.instance.onEdited.subscribe(e=>this.onEdited(e)),this.customComponent.instance.onClick.subscribe(e=>this.onClick(e))}}ngOnDestroy(){this.customComponent&&this.customComponent.destroy()}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.j))},e.\u0275cmp=i.Nb({type:e,selectors:[["table-cell-custom-editor"]],viewQuery:function(e,t){if(1&e&&i.Vc(te,3,i.U),2&e){let e;i.Ec(e=i.kc())&&(t.dynamicTarget=e.first)}},features:[i.Db,i.Eb],decls:2,vars:0,consts:[["dynamicTarget",""]],template:function(e,t){1&e&&i.Oc(0,ne,0,0,"ng-template",null,0,i.Pc)},encapsulation:2}),e})(),Rt=(()=>{class e extends Mt{constructor(){super()}getEditorType(){return this.cell.getColumn().editor&&this.cell.getColumn().editor.type}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["table-cell-default-editor"]],features:[i.Db],decls:6,vars:5,consts:[[3,"ngSwitch"],[3,"cell","inputClass","onClick","onEdited","onStopEditing",4,"ngSwitchCase"],[3,"cell","inputClass","onClick",4,"ngSwitchCase"],[3,"cell",4,"ngSwitchCase"],[3,"cell","inputClass","onClick","onEdited","onStopEditing",4,"ngSwitchDefault"],[3,"cell","inputClass","onClick","onEdited","onStopEditing"],[3,"cell","inputClass","onClick"],[3,"cell"]],template:function(e,t){1&e&&(i.Zb(0,"div",0),i.Oc(1,ie,1,2,"select-editor",1),i.Oc(2,re,1,2,"textarea-editor",1),i.Oc(3,se,1,2,"checkbox-editor",2),i.Oc(4,oe,1,1,"completer-editor",3),i.Oc(5,ae,1,2,"input-editor",4),i.Yb()),2&e&&(i.tc("ngSwitch",t.getEditorType()),i.Gb(1),i.tc("ngSwitchCase","list"),i.Gb(1),i.tc("ngSwitchCase","textarea"),i.Gb(1),i.tc("ngSwitchCase","checkbox"),i.Gb(1),i.tc("ngSwitchCase","completer"))},directives:function(){return[r.p,r.q,r.r,zt,Ft,jt,Nt,Vt]},encapsulation:2}),e})(),Lt=(()=>{class e{constructor(){this.inputClass="",this.edited=new i.o}onEdited(e){return this.edited.next(e),!1}getEditorType(){return this.cell.getColumn().editor&&this.cell.getColumn().editor.type}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["table-cell-edit-mode"]],inputs:{inputClass:"inputClass",cell:"cell"},outputs:{edited:"edited"},decls:3,vars:2,consts:[[3,"ngSwitch"],[3,"cell","inputClass","edited",4,"ngSwitchCase"],[3,"cell","inputClass","edited",4,"ngSwitchDefault"],[3,"cell","inputClass","edited"]],template:function(e,t){1&e&&(i.Zb(0,"div",0),i.Oc(1,ce,1,2,"table-cell-custom-editor",1),i.Oc(2,le,1,2,"table-cell-default-editor",2),i.Yb()),2&e&&(i.tc("ngSwitch",t.getEditorType()),i.Gb(1),i.tc("ngSwitchCase","custom"))},directives:[r.p,r.q,r.r,It,Rt],encapsulation:2}),e})(),Dt=(()=>{class e{constructor(){this.onStopEditing=new i.o,this.onEdited=new i.o,this.onClick=new i.o}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["ng-component"]],inputs:{cell:"cell",inputClass:"inputClass"},outputs:{onStopEditing:"onStopEditing",onEdited:"onEdited",onClick:"onClick"},decls:0,vars:0,template:function(e,t){},encapsulation:2}),e})(),jt=(()=>{class e extends Dt{constructor(){super()}onChange(e){const t=this.cell.getColumn().getConfig()&&this.cell.getColumn().getConfig().true||!0,n=this.cell.getColumn().getConfig()&&this.cell.getColumn().getConfig().false||!1;this.cell.newValue=e.target.checked?t:n}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["checkbox-editor"]],features:[i.Db],decls:1,vars:4,consts:[["type","checkbox",1,"form-control",3,"ngClass","name","disabled","checked","click","change"]],template:function(e,t){if(1&e&&(i.Zb(0,"input",0),i.jc("click",function(e){return t.onClick.emit(e)})("change",function(e){return t.onChange(e)}),i.Yb()),2&e){let e=null;i.tc("ngClass",t.inputClass)("name",t.cell.getId())("disabled",!t.cell.isEditable())("checked",t.cell.getValue()==((null==(e=t.cell.getColumn().getConfig())?null:e.true)||!0))}},directives:[r.l],styles:[ue]}),e})(),Nt=(()=>{class e extends Dt{constructor(e){super(),this.completerService=e,this.completerStr=""}ngOnInit(){if(this.cell.getColumn().editor&&"completer"===this.cell.getColumn().editor.type){const e=this.cell.getColumn().getConfig().completer;e.dataService=this.completerService.local(e.data,e.searchFields,e.titleField),e.dataService.descriptionField(e.descriptionField)}}onEditedCompleter(e){return this.cell.newValue=e.title,!1}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(R))},e.\u0275cmp=i.Nb({type:e,selectors:[["completer-editor"]],features:[i.Db],decls:1,vars:5,consts:[[3,"ngModel","dataService","minSearchLength","pause","placeholder","ngModelChange","selected"]],template:function(e,t){1&e&&(i.Zb(0,"ng2-completer",0),i.jc("ngModelChange",function(e){return t.completerStr=e})("selected",function(e){return t.onEditedCompleter(e)}),i.Yb()),2&e&&i.tc("ngModel",t.completerStr)("dataService",t.cell.getColumn().getConfig().completer.dataService)("minSearchLength",t.cell.getColumn().getConfig().completer.minSearchLength||0)("pause",t.cell.getColumn().getConfig().completer.pause||0)("placeholder",t.cell.getColumn().getConfig().completer.placeholder||"Start t
1yping...")},directives:[H,s.o,s.r],encapsulation:2}),e})(),Vt=(()=>{class e extends Dt{constructor(){super()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["input-editor"]],features:[i.Db],decls:1,vars:5,consts:[[1,"form-control",3,"ngClass","ngModel","name","placeholder","disabled","ngModelChange","click","keydown.enter","keydown.esc"]],template:function(e,t){1&e&&(i.Zb(0,"input",0),i.jc("ngModelChange",function(e){return t.cell.newValue=e})("click",function(e){return t.onClick.emit(e)})("keydown.enter",function(e){return t.onEdited.emit(e)})("keydown.esc",function(){return t.onStopEditing.emit()}),i.Yb()),2&e&&i.tc("ngClass",t.inputClass)("ngModel",t.cell.newValue)("name",t.cell.getId())("placeholder",t.cell.getTitle())("disabled",!t.cell.isEditable())},directives:[s.b,r.l,s.o,s.r],styles:[ue]}),e})(),zt=(()=>{class e extends Dt{constructor(){super()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["select-editor"]],features:[i.Db],decls:2,vars:5,consts:[[1,"form-control",3,"ngClass","ngModel","name","disabled","ngModelChange","click","keydown.enter","keydown.esc"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(e,t){if(1&e&&(i.Zb(0,"select",0),i.jc("ngModelChange",function(e){return t.cell.newValue=e})("click",function(e){return t.onClick.emit(e)})("keydown.enter",function(e){return t.onEdited.emit(e)})("keydown.esc",function(){return t.onStopEditing.emit()}),i.Oc(1,de,2,3,"option",1),i.Yb()),2&e){let e=null;i.tc("ngClass",t.inputClass)("ngModel",t.cell.newValue)("name",t.cell.getId())("disabled",!t.cell.isEditable()),i.Gb(1),i.tc("ngForOf",null==(e=t.cell.getColumn().getConfig())?null:e.list)}},directives:[s.x,r.l,s.o,s.r,r.m,s.s,s.A],encapsulation:2}),e})(),Ft=(()=>{class e extends Dt{constructor(){super()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["textarea-editor"]],features:[i.Db],decls:2,vars:5,consts:[[1,"form-control",3,"ngClass","ngModel","name","disabled","placeholder","ngModelChange","click","keydown.enter","keydown.esc"]],template:function(e,t){1&e&&(i.Zb(0,"textarea",0),i.jc("ngModelChange",function(e){return t.cell.newValue=e})("click",function(e){return t.onClick.emit(e)})("keydown.enter",function(e){return t.onEdited.emit(e)})("keydown.esc",function(){return t.onStopEditing.emit()}),i.Qc(1," "),i.Yb()),2&e&&i.tc("ngClass",t.inputClass)("ngModel",t.cell.newValue)("name",t.cell.getId())("disabled",!t.cell.isEditable())("placeholder",t.cell.getTitle())},directives:[s.b,r.l,s.o,s.r],styles:[ue]}),e})(),Bt=(()=>{class e{constructor(e){this.resolver=e}ngOnInit(){this.cell&&!this.customComponent&&(this.createCustomComponent(),this.callOnComponentInit(),this.patchInstance())}ngOnDestroy(){this.customComponent&&this.customComponent.destroy()}createCustomComponent(){const e=this.resolver.resolveComponentFactory(this.cell.getColumn().renderComponent);this.customComponent=this.dynamicTarget.createComponent(e)}callOnComponentInit(){const e=this.cell.getColumn().getOnComponentInitFunction();e&&e(this.customComponent.instance)}patchInstance(){Object.assign(this.customComponent.instance,this.getPatch())}getPatch(){return{value:this.cell.getValue(),rowData:this.cell.getRow().getData()}}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.j))},e.\u0275cmp=i.Nb({type:e,selectors:[["custom-view-component"]],viewQuery:function(e,t){if(1&e&&i.Vc(te,3,i.U),2&e){let e;i.Ec(e=i.kc())&&(t.dynamicTarget=e.first)}},inputs:{cell:"cell"},decls:2,vars:0,consts:[["dynamicTarget",""]],template:function(e,t){1&e&&i.Oc(0,he,0,0,"ng-template",null,0,i.Pc)},encapsulation:2}),e})(),qt=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["table-cell-view-mode"]],inputs:{cell:"cell"},decls:4,vars:3,consts:[[3,"ngSwitch"],[3,"cell",4,"ngSwitchCase"],[3,"innerHTML",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"cell"],[3,"innerHTML"]],template:function(e,t){1&e&&(i.Zb(0,"div",0),i.Oc(1,pe,1,1,"custom-view-component",1),i.Oc(2,fe,1,1,"div",2),i.Oc(3,ge,2,1,"div",3),i.Yb()),2&e&&(i.tc("ngSwitch",t.cell.getColumn().type),i.Gb(1),i.tc("ngSwitchCase","custom"),i.Gb(1),i.tc("ngSwitchCase","html"))},directives:[r.p,r.q,r.r,Bt],encapsulation:2,changeDetection:0}),e})(),Ut=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}
1),e.\u0275inj=i.Qb({imports:[[r.c,s.i,Y]]}),e})();class Ht{constructor(){this.onChangedSource=new o.a,this.onAddedSource=new o.a,this.onUpdatedSource=new o.a,this.onRemovedSource=new o.a}refresh(){this.emitOnChanged("refresh")}load(e){return this.emitOnChanged("load"),Promise.resolve()}onChanged(){return this.onChangedSource.asObservable()}onAdded(){return this.onAddedSource.asObservable()}onUpdated(){return this.onUpdatedSource.asObservable()}onRemoved(){return this.onRemovedSource.asObservable()}prepend(e){return this.emitOnAdded(e),this.emitOnChanged("prepend"),Promise.resolve()}append(e){return this.emitOnAdded(e),this.emitOnChanged("append"),Promise.resolve()}add(e){return this.emitOnAdded(e),this.emitOnChanged("add"),Promise.resolve()}remove(e){return this.emitOnRemoved(e),this.emitOnChanged("remove"),Promise.resolve()}update(e,t){return this.emitOnUpdated(e),this.emitOnChanged("update"),Promise.resolve()}empty(){return this.emitOnChanged("empty"),Promise.resolve()}setSort(e,t){t&&this.emitOnChanged("sort")}setFilter(e,t,n){n&&this.emitOnChanged("filter")}addFilter(e,t,n){n&&this.emitOnChanged("filter")}setPaging(e,t,n){n&&this.emitOnChanged("paging")}setPage(e,t){t&&this.emitOnChanged("page")}emitOnRemoved(e){this.onRemovedSource.next(e)}emitOnUpdated(e){this.onUpdatedSource.next(e)}emitOnAdded(e){this.onAddedSource.next(e)}emitOnChanged(e){this.getElements().then(t=>this.onChangedSource.next({action:e,elements:t,paging:this.getPaging(),filter:this.getFilter(),sort:this.getSort()}))}}let Wt=(()=>{class e{constructor(){this.inputClass="",this.filter=new i.o,this.query=""}onFilter(e){this.source.addFilter({field:this.column.id,search:e,filter:this.column.getFilterFunction()})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["ng-component"]],inputs:{inputClass:"inputClass",column:"column",source:"source"},outputs:{filter:"filter"},decls:0,vars:0,template:function(e,t){},encapsulation:2}),e})(),Gt=(()=>{class e extends Wt{constructor(){super(...arguments),this.query=""}ngOnChanges(e){e.source&&(e.source.firstChange||this.dataChangedSub.unsubscribe(),this.dataChangedSub=this.source.onChanged().subscribe(e=>{const t=this.source.getFilter();t&&t.filters&&0===t.filters.length?this.query="":t&&t.filters&&t.filters.length>0&&t.filters.forEach((e,t)=>{e.field==this.column.id&&(this.query=e.search)})}))}}return e.\u0275fac=function(t){return Yt(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["ng2-smart-table-filter"]],features:[i.Db,i.Eb],decls:1,vars:1,consts:[["class","ng2-smart-filter",3,"ngSwitch",4,"ngIf"],[1,"ng2-smart-filter",3,"ngSwitch"],[3,"query","column","source","inputClass","filter",4,"ngSwitchCase"],[3,"query","column","source","inputClass","filter",4,"ngSwitchDefault"],[3,"query","column","source","inputClass","filter"]],template:function(e,t){1&e&&i.Oc(0,ye,3,2,"div",0),2&e&&i.tc("ngIf",t.column.isFilterable)},directives:function(){return[r.n,r.p,r.q,r.r,Qt,$t]},styles:["[_nghost-%COMP%] .ng2-smart-filter[_ngcontent-%COMP%] input, [_nghost-%COMP%] .ng2-smart-filter[_ngcontent-%COMP%] select{font-weight:400;line-height:normal;padding:.375em .75em;width:100%}[_nghost-%COMP%] .ng2-smart-filter[_ngcontent-%COMP%] input[type=search]{box-sizing:inherit}[_nghost-%COMP%] .ng2-smart-filter[_ngcontent-%COMP%] .completer-dropdown-holder, [_nghost-%COMP%] .ng2-smart-filter[_ngcontent-%COMP%] a{font-weight:400}"]}),e})();const Yt=i.bc(Gt);let $t=(()=>{class e extends Wt{}return e.\u0275fac=function(t){return Zt(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["default-table-filter"]],inputs:{query:"query"},features:[i.Db],decls:5,vars:4,consts:[[3,"ngSwitch"],[3,"query","ngClass","column","filter",4,"ngSwitchCase"],[3,"query","ngClass","column","filter",4,"ngSwitchDefault"],[3,"query","ngClass","column","filter"]],template:function(e,t){1&e&&(i.Xb(0,0),i.Oc(1,ve,1,3,"select-filter",1),i.Oc(2,_e,1,3,"checkbox-filter",1),i.Oc(3,we,1,3,"completer-filter",1),i.Oc(4,ke,1,3,"input-filter",2),i.Wb()),2&e&&(i.tc("ngSwitch",t.column.getFilterType()),i.Gb(1),i.tc("ngSwitchCase","list"),i.Gb(1),i.tc("ngSwitchCase","checkbox"),i.Gb(1),i.tc("ngSwitchCase","completer"))},directives:function(){return[r.p,r.q,r.r,tn,r.l,Kt,Jt,en]},encapsulation:2}),e})();const Zt=i.bc($t);let Qt=(()=>{class e extends Wt{constructor(e){super(),this.resolver=e}ngOnChanges(e){if(this.column&&!this.customComponent){const e=this.resolver.resolve
1ComponentFactory(this.column.filter.component);this.customComponent=this.dynamicTarget.createComponent(e),this.customComponent.instance.query=this.query,this.customComponent.instance.column=this.column,this.customComponent.instance.source=this.source,this.customComponent.instance.inputClass=this.inputClass,this.customComponent.instance.filter.subscribe(e=>this.onFilter(e))}this.customComponent&&this.customComponent.instance.ngOnChanges(e)}ngOnDestroy(){this.customComponent&&this.customComponent.destroy()}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.j))},e.\u0275cmp=i.Nb({type:e,selectors:[["custom-table-filter"]],viewQuery:function(e,t){if(1&e&&i.Vc(te,3,i.U),2&e){let e;i.Ec(e=i.kc())&&(t.dynamicTarget=e.first)}},inputs:{query:"query"},features:[i.Db,i.Eb],decls:2,vars:0,consts:[["dynamicTarget",""]],template:function(e,t){1&e&&i.Oc(0,Ce,0,0,"ng-template",null,0,i.Pc)},encapsulation:2}),e})(),Xt=(()=>{class e{constructor(){this.delay=300,this.filter=new i.o}ngOnDestroy(){this.changesSubscription&&this.changesSubscription.unsubscribe()}setFilter(){this.filter.emit(this.query)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["ng-component"]],inputs:{query:"query",inputClass:"inputClass",column:"column"},outputs:{filter:"filter"},decls:0,vars:0,template:function(e,t){},encapsulation:2}),e})(),Kt=(()=>{class e extends Xt{constructor(){super(),this.filterActive=!1,this.inputControl=new s.d}ngOnInit(){this.changesSubscription=this.inputControl.valueChanges.pipe(Object(Z.a)(this.delay)).subscribe(e=>{this.filterActive=!0;const t=this.column.getFilterConfig()&&this.column.getFilterConfig().true||!0,n=this.column.getFilterConfig()&&this.column.getFilterConfig().false||!1;this.query=e?t:n,this.setFilter()})}resetFilter(e){e.preventDefault(),this.query="",this.inputControl.setValue(!1,{emitEvent:!1}),this.filterActive=!1,this.setFilter()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["checkbox-filter"]],features:[i.Db],decls:2,vars:3,consts:[["type","checkbox",1,"form-control",3,"formControl","ngClass"],["href","#",3,"click",4,"ngIf"],["href","#",3,"click"]],template:function(e,t){1&e&&(i.Ub(0,"input",0),i.Oc(1,Se,2,1,"a",1)),2&e&&(i.tc("formControl",t.inputControl)("ngClass",t.inputClass),i.Gb(1),i.tc("ngIf",t.filterActive))},directives:[s.a,s.o,s.e,r.l,r.n],encapsulation:2}),e})(),Jt=(()=>{class e extends Xt{constructor(e){super(),this.completerService=e,this.completerContent=new o.a}ngOnInit(){const e=this.column.getFilterConfig().completer;e.dataService=this.completerService.local(e.data,e.searchFields,e.titleField),e.dataService.descriptionField(e.descriptionField),this.changesSubscription=this.completerContent.pipe(Object(u.a)(e=>e&&e.title||e||""),Object(Q.a)(),Object(Z.a)(this.delay)).subscribe(e=>{this.query=e,this.setFilter()})}inputTextChanged(e){""===e&&this.completerContent.next(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(R))},e.\u0275cmp=i.Nb({type:e,selectors:[["completer-filter"]],features:[i.Db],decls:1,vars:5,consts:[[3,"ngModel","dataService","minSearchLength","pause","placeholder","ngModelChange","selected"]],template:function(e,t){1&e&&(i.Zb(0,"ng2-completer",0),i.jc("ngModelChange",function(e){return t.query=e})("ngModelChange",function(e){return t.inputTextChanged(e)})("selected",function(e){return t.completerContent.next(e)}),i.Yb()),2&e&&i.tc("ngModel",t.query)("dataService",t.column.getFilterConfig().completer.dataService)("minSearchLength",t.column.getFilterConfig().completer.minSearchLength||0)("pause",t.column.getFilterConfig().completer.pause||0)("placeholder",t.column.getFilterConfig().completer.placeholder||"Start typing...")},directives:[H,s.o,s.r],encapsulation:2}),e})(),en=(()=>{class e extends Xt{constructor(){super(),this.inputControl=new s.d}ngOnInit(){this.query&&this.inputControl.setValue(this.query),this.inputControl.valueChanges.pipe(Object(Q.a)(),Object(Z.a)(this.delay)).subscribe(e=>{this.query=this.inputControl.value,this.setFilter()})}ngOnChanges(e){e.query&&this.inputControl.setValue(this.query)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["input-filter"]],features:[i.Db,i.Eb],decls:1,vars:3,consts:[["type","text",1,"form-control",3,"ngClass","formControl","placeholder"]],template:function(e,t){1&e&&i.Ub(0,"input",0),2&e&&(i.uc("placeholder",t.column.title),i.tc("ngClass",t.inputClass)("formControl",t.inputControl))},directives:[s.b,r.l,s.o,s.e],encapsulation:2}),e})(),tn=(()=>{class e extends Xt{constructor(){super()}ngOnInit(){this.inputControl.valueChanges.pipe(Object(X.a)(1),Object(Q.a)(),Object(Z.a)(this.delay)).subscribe(e=>this.setFilter())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["select-filter"]],viewQuery:function(e,t){if(1&e&&i.Vc(Te,3,s.n),2&e){let e;i.Ec(e=i.kc())&&(t.inputControl=e.first)}},features:[i.Db],decls:5,vars:4,consts:[[1,"form-control",3,"ngClass","ngModel","ngModelChange"],["inputControl",""],["value",""],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,t){1&e&&(i.Zb(0,"select",0,1
1),i.jc("ngModelChange",function(e){return t.query=e}),i.Zb(2,"option",2),i.Qc(3),i.Yb(),i.Oc(4,Pe,2,2,"option",3),i.Yb()),2&e&&(i.tc("ngClass",t.inputClass)("ngModel",t.query),i.Gb(3),i.Rc(t.column.getFilterConfig().selectText),i.Gb(1),i.tc("ngForOf",t.column.getFilterConfig().list))},directives:[s.x,r.l,s.o,s.r,s.s,s.A,r.m],encapsulation:2}),e})(),nn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[r.c,s.i,s.v,Y]]}),e})(),rn=(()=>{class e{constructor(){this.perPageSelect=[],this.changePage=new i.o,this.count=0}ngOnChanges(e){e.source&&(e.source.firstChange||this.dataChangedSub.unsubscribe(),this.dataChangedSub=this.source.onChanged().subscribe(e=>{this.page=this.source.getPaging().page,this.perPage=this.source.getPaging().perPage,this.currentPerPage=this.perPage,this.count=this.source.count(),this.isPageOutOfBounce()&&this.source.setPage(--this.page),this.processPageChange(e),this.initPages()}))}processPageChange(e){"prepend"===e.action&&this.source.setPage(1),"append"===e.action&&this.source.setPage(this.getLast())}shouldShow(){return this.source.count()>this.perPage}paginate(e){return this.source.setPage(e),this.page=e,this.changePage.emit({page:e}),!1}next(){return this.paginate(this.getPage()+1)}prev(){return this.paginate(this.getPage()-1)}getPage(){return this.page}getPages(){return this.pages}getLast(){return Math.ceil(this.count/this.perPage)}isPageOutOfBounce(){return this.page*this.perPage>=this.count+this.perPage&&this.page>1}initPages(){const e=this.getLast();let t=4;if(t=e<t?e:t,this.pages=[],this.shouldShow()){let n=Math.ceil(t/2);n=this.page>=n?this.page:n;let i=n+Math.floor(t/2);i=i>=e?e:i;for(let e=i-t+1;e<=i;e++)this.pages.push(e)}}onChangePerPage(e){this.currentPerPage&&("string"==typeof this.currentPerPage&&"all"===this.currentPerPage.toLowerCase()?this.source.getPaging().perPage=null:(this.source.getPaging().perPage=1*this.currentPerPage,this.source.refresh()),this.initPages())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["ng2-smart-table-pager"]],inputs:{perPageSelect:"perPageSelect",source:"source"},outputs:{changePage:"changePage"},features:[i.Eb],decls:2,vars:2,consts:[["class","ng2-smart-pagination-nav",4,"ngIf"],["class","ng2-smart-pagination-per-page",4,"ngIf"],[1,"ng2-smart-pagination-nav"],[1,"ng2-smart-pagination","pagination"],[1,"ng2-smart-page-item","page-item",3,"ngClass"],["href","#","aria-label","First",1,"ng2-smart-page-link","page-link",3,"click"],["aria-hidden","true"],[1,"sr-only"],["href","#","aria-label","Prev",1,"ng2-smart-page-link","page-link","page-link-prev",3,"click"],["class","ng2-smart-page-item page-item",3,"ngClass",4,"ngFor","ngForOf"],["href","#","aria-label","Next",1,"ng2-smart-page-link","page-link","page-link-next",3,"click"],["href","#","aria-label","Last",1,"ng2-smart-page-link","page-link",3,"click"],["class","ng2-smart-page-link page-link",4,"ngIf"],["class","ng2-smart-page-link page-link","href","#",3,"click",4,"ngIf"],[1,"ng2-smart-page-link","page-link"],["href","#",1,"ng2-smart-page-link","page-link",3,"click"],[1,"ng2-smart-pagination-per-page"],["for","per-page"],["id","per-page",3,"ngModel","change","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,t){1&e&&(i.Oc(0,Ie,27,13,"nav",0),i.Oc(1,Le,5,2,"nav",1)),2&e&&(i.tc("ngIf",t.shouldShow()),i.Gb(1),i.tc("ngIf",t.perPageSelect&&t.perPageSelect.length>0))},directives:[r.n,r.l,r.m,s.x,s.o,s.r,s.s,s.A],styles:[".ng2-smart-pagination[_ngcontent-%COMP%]{display:inline-flex;font-size:.875em;padding:0}.ng2-smart-pagination[_ngcontent-%COMP%] .sr-only[_ngcontent-%COMP%]{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ng2-smart-pagination[_ngcontent-%COMP%] .ng2-smart-page-item[_ngcontent-%COMP%]{display:inline}.ng2-smart-pagination[_ngcontent-%COMP%] .page-link-next[_ngcontent-%COMP%], .ng2-smart-pagination[_ngcontent-%COMP%] .page-link-prev[_ngcontent-%COMP%]{font-size:10px}[_nghost-%COMP%]{display:flex;justify-content:space-between}[_nghost-%COMP%] label[_ngcontent-%COMP%], [_nghost-%COMP%] select[_ngcontent-%COMP%]{margin:1rem 0 1rem 1rem}[_nghost-%COMP%] label[_ngcontent-%COMP%]{line-height:2.5rem}"]}),e})(),sn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[r.c,s.i]]}),e})(),on=(()=>
1{class e{constructor(){this.save=new i.o,this.cancel=new i.o,this.edit=new i.o,this.delete=new i.o,this.custom=new i.o,this.edited=new i.o,this.userSelectRow=new i.o,this.editRowSelect=new i.o,this.multipleSelectRow=new i.o,this.rowHover=new i.o}get tableColumnsCount(){const e=this.isActionAdd||this.isActionEdit||this.isActionDelete?1:0;return this.grid.getColumns().length+e}ngOnChanges(){this.isMultiSelectVisible=this.grid.isMultiSelectVisible(),this.showActionColumnLeft=this.grid.showActionColumn("left"),this.mode=this.grid.getSetting("mode"),this.editInputClass=this.grid.getSetting("edit.inputClass"),this.showActionColumnRight=this.grid.showActionColumn("right"),this.isActionAdd=this.grid.getSetting("actions.add"),this.isActionEdit=this.grid.getSetting("actions.edit"),this.isActionDelete=this.grid.getSetting("actions.delete"),this.noDataMessage=this.grid.getSetting("noDataMessage")}getVisibleCells(e){return(e||[]).filter(e=>!e.getColumn().hide)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["","ng2-st-tbody",""]],inputs:{grid:"grid",source:"source",deleteConfirm:"deleteConfirm",editConfirm:"editConfirm",rowClassFunction:"rowClassFunction"},outputs:{save:"save",cancel:"cancel",edit:"edit",delete:"delete",custom:"custom",edited:"edited",userSelectRow:"userSelectRow",editRowSelect:"editRowSelect",multipleSelectRow:"multipleSelectRow",rowHover:"rowHover"},features:[i.Eb],attrs:De,decls:2,vars:2,consts:[["class","ng2-smart-row",3,"className","ngClass","click","mouseover",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"ng2-smart-row",3,"className","ngClass","click","mouseover"],["class","ng2-smart-actions ng2-smart-action-multiple-select",3,"click",4,"ngIf"],["class","ng2-smart-actions",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"ng2-smart-actions","ng2-smart-action-multiple-select",3,"click"],["type","checkbox",1,"form-control",3,"ngModel"],[1,"ng2-smart-actions"],[3,"grid","row","source","custom"],[3,"grid","deleteConfirm","editConfirm","row","source","edit","delete","editRowSelect"],[3,"grid","row","editConfirm"],[3,"cell","grid","row","isNew","mode","editConfirm","inputClass","isInEditing"]],template:function(e,t){1&e&&(i.Oc(0,Ue,7,10,"tr",0),i.Oc(1,He,3,2,"tr",1)),2&e&&(i.tc("ngForOf",t.grid.getRows()),i.Gb(1),i.tc("ngIf",0==t.grid.getRows().length))},directives:function(){return[r.m,r.n,r.l,s.a,s.o,s.r,ln,cn,an,Et]},styles:["[_nghost-%COMP%] .ng2-smart-row.selected[_ngcontent-%COMP%]{background:rgba(0,0,0,.05)}[_nghost-%COMP%] .ng2-smart-row[_ngcontent-%COMP%] .ng2-smart-actions.ng2-smart-action-multiple-select[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%] ng2-st-tbody-create-cancel a:first-child, [_nghost-%COMP%] ng2-st-tbody-edit-delete a:first-child{margin-right:.25rem}"]}),e})(),an=(()=>{class e{onSave(e){e.preventDefault(),e.stopPropagation(),this.grid.save(this.row,this.editConfirm)}onCancelEdit(e){e.preventDefault(),e.stopPropagation(),this.row.isInEditing=!1}ngOnChanges(){this.saveButtonContent=this.grid.getSetting("edit.saveButtonContent"),this.cancelButtonContent=this.grid.getSetting("edit.cancelButtonContent")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["ng2-st-tbody-create-cancel"]],inputs:{grid:"grid",row:"row",editConfirm:"editConfirm"},features:[i.Eb],decls:2,vars:2,consts:[["href","#",1,"ng2-smart-action","ng2-smart-action-edit-save",3,"innerHTML","click"],["href","#",1,"ng2-smart-action","ng2-smart-action-edit-cancel",3,"innerHTML","click"]],template:function(e,t){1&e&&(i.Zb(0,"a",0),i.jc("click",function(e){return t.onSave(e)}),i.Yb(),i.Zb(1,"a",1),i.jc("click",function(e){return t.onCancelEdit(e)}),i.Yb()),2&e&&(i.tc("innerHTML",t.saveButtonContent,i.Ic),i.Gb(1),i.tc("innerHTML",t.cancelButtonContent,i.Ic))},encapsulation:2}),e})(),cn=(()=>{class e{constructor(){this.edit=new i.o,this.delete=new i.o,this.editRowSelect=new i.o}onEdit(e){e.preventDefault(),e.stopPropagation(),this.editRowSelect.emit(this.row),"external"===this.grid.getSetting("mode")?this.edit.emit({data:this.row.getData(),source:this.source}):this.grid.edit(this.row)}onDelete(e){e.preventDefault(),e.stopPropagation(),"external"===this.grid.getSetting("mode")?this.delete.emit({data:this.row.getData(),source:this.source}):this.grid.delete(this.row,this.deleteConfirm)}ngOnChanges(){this.isActionEdit=this.grid.getSetting("actions.edit"),this.isActionDelete=this.grid.getSetting("actions.delete"),this.editRowButtonContent=this.grid.getSetting("edit.editButtonContent"),this.deleteRowButtonContent=this.grid.getSetting("delete.deleteButtonContent")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["ng2-st-tbody-edit-delete"]],inputs:{grid:"grid",row:"row",source:"source",deleteConfirm:"deleteConfirm",editConfirm:"editConfirm"},outputs:{edit:"edit",delete:"delete",editRowSelect:"editRowSelect"},features:[i.Eb],decls:2,vars:2,consts:[["href","#","class","ng2-smart-action ng2-smart-action-edit-edit",3,"innerHTML","click",4,"ngIf"],["href","#","class","ng2-smart-action ng2-smart-action-delete-delete",3,"innerHTML","click",4,"ngIf"],["href","#",1,"ng2-smart-action","ng2-smart-action-edit-edit",3,"innerHTML","click"],["href","#",1,"ng2-smart-action","ng2-smart-action-delete-delete",3,"innerHTML","click"]],template:function(e,t){1&e&&(i.Oc(0,We,1,1,"a",0),i.Oc(1,Ge,1,1,"a",1)),2&e&&(i.tc("ngIf",t.isActionEdit),i.Gb(1),i.tc("ngIf",t.isActionDelete))},directives:[r.n],encapsulation:2,changeDetection:0}),e})(),ln=(()=>{class e{constructor(){this.custom=new i.o}onCustom(e,t){t.preventDefault(),t.stopPropagation(),this.custom.emit({action:e.name,data:this.row.getData(),source:this.source})}}return e.\u0275fac=function(t){return new(t||e)}
1,e.\u0275cmp=i.Nb({type:e,selectors:[["ng2-st-tbody-custom"]],inputs:{grid:"grid",row:"row",source:"source"},outputs:{custom:"custom"},decls:1,vars:1,consts:[["href","#","class","ng2-smart-action ng2-smart-action-custom-custom",3,"innerHTML","click",4,"ngFor","ngForOf"],["href","#",1,"ng2-smart-action","ng2-smart-action-custom-custom",3,"innerHTML","click"]],template:function(e,t){1&e&&i.Oc(0,Ye,1,1,"a",0),2&e&&i.tc("ngForOf",t.grid.getSetting("actions.custom"))},directives:[r.m],encapsulation:2,changeDetection:0}),e})(),un=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[r.c,s.i,Ut]]}),e})(),dn=(()=>{class e{constructor(){this.sort=new i.o,this.selectAllRows=new i.o,this.create=new i.o,this.filter=new i.o}ngOnChanges(){this.isHideHeader=this.grid.getSetting("hideHeader"),this.isHideSubHeader=this.grid.getSetting("hideSubHeader")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["","ng2-st-thead",""]],inputs:{grid:"grid",source:"source",isAllSelected:"isAllSelected",createConfirm:"createConfirm"},outputs:{sort:"sort",selectAllRows:"selectAllRows",create:"create",filter:"filter"},features:[i.Eb],attrs:$e,decls:3,vars:3,consts:[["ng2-st-thead-titles-row","","class","ng2-smart-titles",3,"grid","isAllSelected","source","sort","selectAllRows",4,"ngIf"],["ng2-st-thead-filters-row","","class","ng2-smart-filters",3,"grid","source","create","filter",4,"ngIf"],["ng2-st-thead-form-row","",3,"grid","createConfirm",4,"ngIf"],["ng2-st-thead-titles-row","",1,"ng2-smart-titles",3,"grid","isAllSelected","source","sort","selectAllRows"],["ng2-st-thead-filters-row","",1,"ng2-smart-filters",3,"grid","source","create","filter"],["ng2-st-thead-form-row","",3,"grid","createConfirm"]],template:function(e,t){1&e&&(i.Oc(0,Ze,1,3,"tr",0),i.Oc(1,Qe,1,2,"tr",1),i.Oc(2,Xe,1,2,"tr",2)),2&e&&(i.tc("ngIf",!t.isHideHeader),i.Gb(1),i.tc("ngIf",!t.isHideSubHeader),i.Gb(1),i.tc("ngIf",t.grid.createFormShown))},directives:function(){return[r.n,_n,yn,vn]},encapsulation:2}),e})(),hn=(()=>{class e{constructor(){this.create=new i.o}ngOnChanges(){this.createButtonContent=this.grid.getSetting("add.createButtonContent"),this.cancelButtonContent=this.grid.getSetting("add.cancelButtonContent")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["ng2-st-actions"]],inputs:{grid:"grid"},outputs:{create:"create"},features:[i.Eb],decls:2,vars:2,consts:[["href","#",1,"ng2-smart-action","ng2-smart-action-add-create",3,"innerHTML","click"],["href","#",1,"ng2-smart-action","ng2-smart-action-add-cancel",3,"innerHTML","click"]],template:function(e,t){1&e&&(i.Zb(0,"a",0),i.jc("click",function(e){return e.preventDefault(),t.create.emit(e)}),i.Yb(),i.Zb(1,"a",1),i.jc("click",function(e){return e.preventDefault(),t.grid.createFormShown=!1}),i.Yb()),2&e&&(i.tc("innerHTML",t.createButtonContent,i.Ic),i.Gb(1),i.tc("innerHTML",t.cancelButtonContent,i.Ic))},encapsulation:2}),e})(),pn=(()=>{class e{constructor(e){this.ref=e}ngAfterViewInit(){this.ref.nativeElement.classList.add("ng2-smart-actions")}ngOnChanges(){this.actionsColumnTitle=this.grid.getSetting("actions.columnTitle")}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l))},e.\u0275cmp=i.Nb({type:e,selectors:[["","ng2-st-actions-title",""]],inputs:{grid:"grid"},features:[i.Eb],attrs:Ke,decls:2,vars:1,consts:[[1,"ng2-smart-title"]],template:function(e,t){1&e&&(i.Zb(0,"div",0),i.Qc(1),i.Yb()),2&e&&(i.Gb(1),i.Rc(t.actionsColumnTitle))},encapsulation:2}),e})(),fn=(()=>{class e{constructor(e){this.ref=e,this.create=new i.o}ngAfterViewInit(){this.ref.nativeElement.classList.add("ng2-smart-actions-title","ng2-smart-actions-title-add")}ngOnChanges(){this.isActionAdd=this.grid.getSetting("actions.add"),this.addNewButtonContent=this.grid.getSetting("add.addButtonContent")}onAdd(e){e.preventDefault(),e.stopPropagation(),"external"===this.grid.getSetting("mode")?this.create.emit({source:this.source}):this.grid.createFormShown=!0}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l))},e.\u0275cmp=i.Nb({type:e,selectors:[["","ng2-st-add-button",""]],inputs:{grid:"grid",source:"source"},outputs:{create:"create"},features:[i.Eb],attrs:Je,decls:1,vars:1,consts:[["href","#","class","ng2-smart-action ng2-smart-action-add-add",3,"innerHTML","click",4,"ngIf"],["href","#",1,"ng2-smart-action","ng2-smart-action-add-add",3,"innerHTML","click"]],template:function(e,t){1&e&&i.Oc(0,et,1,1,"a",0),2&e&&i.tc("ngIf",t.isActionAdd)},directives:[r.n],encapsulation:2}),e})(),gn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["","ng2-st-checkbox-select-all",""]],inputs:{grid:"grid",source:"source",isAllSelected:"isAllSelected"},attrs:tt,decls:1,vars:1,consts:[["type","checkbox",3,"ngModel"]],template:function(e,t){1&e&&i.Ub(0,"input",0),2&e&&i.tc("ngModel",t.isAllSelected)},directives:[s.a,s.o,s.r],encapsulation:2}),e})(),mn=(()=>{class e{constructor(){this.sort=new i.o}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["ng2-st-column-title"]],inputs:{column:"column",source:"source"},outputs:{sort:"sort"},decls:2,vars:2,consts:[[1,"ng2-smart-title"],[3,"source","column","sort"]],template:function(e,t){1&e&&(i.Zb(0,"div",0),i.Zb(1,"ng2-smart-table-title",1),i.jc("sort",function(e){return t.sort.emit(e)}),i.Yb(),i.Yb()),2&e&&(i.Gb(1),i.tc("source",t.source)("column",t.column))},directives:function(){return[bn]},encapsulation:2}),e})(),bn=(()=>{class e{constructor(){this.currentDirection="",this.sort=new i.o}ngOnChanges(e){e.source&&(e.source.firstChange||this.dataChangedSub.unsubscribe(),this.dataChangedSub=this.source.onChanged().subscribe(e=>{const t=this.source.getSort();this.currentDirection=t.length>
10&&t[0].field===this.column.id?t[0].direction:"",t.forEach(e=>{})}))}_sort(e){e.preventDefault(),this.changeSortDirection(),this.source.setSort([{field:this.column.id,direction:this.currentDirection,compare:this.column.getCompareFunction()}]),this.sort.emit(null)}changeSortDirection(){return this.currentDirection=this.currentDirection?"asc"===this.currentDirection?"desc":"asc":this.column.sortDirection,this.currentDirection}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["ng2-smart-table-title"]],inputs:{column:"column",source:"source"},outputs:{sort:"sort"},features:[i.Eb],decls:2,vars:2,consts:[["href","#","class","ng2-smart-sort-link sort",3,"ngClass","click",4,"ngIf"],["class","ng2-smart-sort",4,"ngIf"],["href","#",1,"ng2-smart-sort-link","sort",3,"ngClass","click"],[1,"ng2-smart-sort"]],template:function(e,t){1&e&&(i.Oc(0,nt,2,2,"a",0),i.Oc(1,it,2,1,"span",1)),2&e&&(i.tc("ngIf",t.column.isSortable),i.Gb(1),i.tc("ngIf",!t.column.isSortable))},directives:[r.n,r.l],styles:['a.sort.asc[_ngcontent-%COMP%], a.sort.desc[_ngcontent-%COMP%]{font-weight:700}a.sort.asc[_ngcontent-%COMP%]:after, a.sort.desc[_ngcontent-%COMP%]:after{border:4px solid transparent;border-bottom-color:rgba(0,0,0,.3);content:"";display:inline-block;height:0;margin-bottom:2px;width:0}a.sort.desc[_ngcontent-%COMP%]:after{margin-bottom:-2px;transform:rotate(-180deg)}']}),e})(),yn=(()=>{class e{constructor(){this.create=new i.o,this.filter=new i.o}ngOnChanges(){this.isMultiSelectVisible=this.grid.isMultiSelectVisible(),this.showActionColumnLeft=this.grid.showActionColumn("left"),this.showActionColumnRight=this.grid.showActionColumn("right"),this.filterInputClass=this.grid.getSetting("filter.inputClass")}getVisibleColumns(e){return(e||[]).filter(e=>!e.hide)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["","ng2-st-thead-filters-row",""]],inputs:{grid:"grid",source:"source"},outputs:{create:"create",filter:"filter"},features:[i.Eb],attrs:rt,decls:4,vars:4,consts:[[4,"ngIf"],["ng2-st-add-button","",3,"grid","create",4,"ngIf"],[3,"class",4,"ngFor","ngForOf"],["ng2-st-add-button","",3,"grid","source","create",4,"ngIf"],["ng2-st-add-button","",3,"grid","create"],[3,"source","column","inputClass","filter"],["ng2-st-add-button","",3,"grid","source","create"]],template:function(e,t){1&e&&(i.Oc(0,st,1,0,"th",0),i.Oc(1,ot,1,1,"th",1),i.Oc(2,at,2,6,"th",2),i.Oc(3,ct,1,2,"th",3)),2&e&&(i.tc("ngIf",t.isMultiSelectVisible),i.Gb(1),i.tc("ngIf",t.showActionColumnLeft),i.Gb(1),i.tc("ngForOf",t.getVisibleColumns(t.grid.getColumns())),i.Gb(1),i.tc("ngIf",t.showActionColumnRight))},directives:[r.n,r.m,fn,Gt],encapsulation:2}),e})(),vn=(()=>{class e{constructor(){this.create=new i.o}onCreate(e){e.stopPropagation(),this.grid.create(this.grid.getNewRow(),this.createConfirm)}ngOnChanges(){this.isMultiSelectVisible=this.grid.isMultiSelectVisible(),this.showActionColumnLeft=this.grid.showActionColumn("left"),this.showActionColumnRight=this.grid.showActionColumn("right"),this.addInputClass=this.grid.getSetting("add.inputClass")}getVisibleCells(e){return(e||[]).filter(e=>!e.getColumn().hide)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["","ng2-st-thead-form-row",""]],inputs:{grid:"grid",row:"row",createConfirm:"createConfirm"},outputs:{create:"create"},features:[i.Eb],attrs:lt,decls:4,vars:3,consts:[[4,"ngIf"],["class","ng2-smart-actions",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"ng2-smart-actions"],[3,"grid","create"],[3,"cell","grid","isNew","createConfirm","inputClass","isInEditing","edited"]],template:function(e,t){1&e&&(i.Oc(0,ut,1,0,"td",0),i.Oc(1,dt,2,1,"td",1),i.Oc(2,ht,2,6,"td",2),i.Oc(3,pt,2,1,"td",1)),2&e&&(i.Gb(1),i.tc("ngIf",t.showActionColumnLeft),i.Gb(1),i.tc("ngForOf",t.getVisibleCells(t.grid.getNewRow().getCells())),i.Gb(1),i.tc("ngIf",t.showActionColumnRight))},directives:[r.n,r.m,hn,Et],encapsulation:2}),e})(),_n=(()=>{class e{constructor(){this.sort=new i.o,this.selectAllRows=new i.o}ngOnChanges(){this.isMultiSelectVisible=this.grid.isMultiSelectVisible(),this.showActionColumnLeft=this.grid.showActionColumn("left"),this.showActionColumnRight=this.grid.showActionColumn("right")}getVisibleColumns(e){return(e||[]).filter(e=>!e.hide)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["","ng2-st-thead-titles-row",""]],inputs:{grid:"grid",isAllSelected:"isAllSelected",source:"source"},outputs:{sort:"sort",selectAllRows:"selectAllRows"},features:[i.Eb],attrs:ft,decls:4,vars:4,consts:[["ng2-st-checkbox-select-all","",3,"grid","source","isAllSelected","click",4,"ngIf"],["ng2-st-actions-title","",3,"grid",4,"ngIf"],[3,"class","ngClass","width",4,"ngFor","ngForOf"],["ng2-st-checkbox-select-all","",3,"grid","source","isAllSelected","click"],["ng2-st-actions-title","",3,"grid"],[3,"ngClass"],[3,"source","column","sort"]],template:function(e,t){1&e&&(i.Oc(0,gt,1,3,"th",0),i.Oc(1,mt,1,1,"th",1),i.Oc(2,bt,2,8,"th",2),i.Oc(3,yt,1,1,"th",1)),2&e&&(i.tc("ngIf",t.isMultiSelectVisible),i.Gb(1),i.tc("ngIf",t.showActionColumnLeft),i.Gb(1),i.tc("ngForOf",t.getVisibleColumns(t.grid.getColumns())),i.Gb(1),i.tc("ngIf",t.showActionColumnRight))},directives:[r.n,r.m,gn,pn,r.l,mn],encapsulation:2}),e})(),wn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[r.c,s.i,nn,Ut]]}),e})();function kn(e,t,n){return t<n?-1*e:t>n?e:0}class Cn{static sort(e,t,n,i){const r="asc"===n?1:-1,s=i||kn;return e.sort((e,n)=>s.call(null,r,e[t],n[t]))}}function Sn(e,t){return e.toString().toLowerCase().includes(t.toString().toLowerCase())}class Tn{static filter(e,t,n,i){const r=i||Sn;return e.filter(e=>r.call(null,null==e[t]?"":e[t],n))}}class Pn{static paginate(e,t,n){return e.slice(n*(t-1),n*t)}}class On extends Ht{constructor(e=[]){super(),this.data=[],this.filteredAndSorted=[],this.sortConf=[],this.filterConf={filters:[],andOperator:!0},this.pagingConf={},this.data=e}load(e){return this.data=e,super.load(e)}prepend(e){return this.reset(!0),this.data.unshift(e),super.prepend(e)}append(e){return this.reset(!0),this.data.push(e),super.append(e)}add(e){return this.data.push(e),super.add(e)}remove(e){return this.data=this.data.filter(t=>t!==e),super.remove(e)}update(e,t){return new Promise((n,i)=>{this.find(e).then(e=>{e=wt(e,t),super.update(e,t).then(n).catch(i)}).catch(i)})}find(e){const t=this.data.find(t=>t===e);
1return t?Promise.resolve(t):Promise.reject(new Error("Element was not found in the dataset"))}getElements(){const e=this.data.slice(0);return Promise.resolve(this.prepareData(e))}getFilteredAndSorted(){let e=this.data.slice(0);return this.prepareData(e),Promise.resolve(this.filteredAndSorted)}getAll(){const e=this.data.slice(0);return Promise.resolve(e)}reset(e=!1){e?(this.filterConf={filters:[],andOperator:!0},this.sortConf=[],this.pagingConf.page=1):(this.setFilter([],!0,!1),this.setSort([],!1),this.setPage(1))}empty(){return this.data=[],super.empty()}count(){return this.filteredAndSorted.length}setSort(e,t=!0){return null!==e&&(e.forEach(e=>{if(!e.field||void 0===e.direction)throw new Error("Sort configuration object is not valid")}),this.sortConf=e),super.setSort(e,t),this}setFilter(e,t=!0,n=!0){return e&&e.length>0?e.forEach(e=>{this.addFilter(e,t,!1)}):this.filterConf={filters:[],andOperator:!0},this.filterConf.andOperator=t,this.pagingConf.page=1,super.setFilter(e,t,n),this}addFilter(e,t=!0,n=!0){if(!e.field||void 0===e.search)throw new Error("Filter configuration object is not valid");let i=!1;return this.filterConf.filters.forEach((t,n)=>{t.field===e.field&&(this.filterConf.filters[n]=e,i=!0)}),i||this.filterConf.filters.push(e),this.filterConf.andOperator=t,super.addFilter(e,t,n),this}setPaging(e,t,n=!0){return this.pagingConf.page=e,this.pagingConf.perPage=t,super.setPaging(e,t,n),this}setPage(e,t=!0){return this.pagingConf.page=e,super.setPage(e,t),this}getSort(){return this.sortConf}getFilter(){return this.filterConf}getPaging(){return this.pagingConf}prepareData(e){return e=this.filter(e),e=this.sort(e),this.filteredAndSorted=e.slice(0),this.paginate(e)}sort(e){return this.sortConf&&this.sortConf.forEach(t=>{e=Cn.sort(e,t.field,t.direction,t.compare)}),e}filter(e){if(this.filterConf.filters)if(this.filterConf.andOperator)this.filterConf.filters.forEach(t=>{t.search.length>0&&(e=Tn.filter(e,t.field,t.search,t.filter))});else{let t=[];this.filterConf.filters.forEach(n=>{n.search.length>0&&(t=t.concat(Tn.filter(e,n.field,n.search,n.filter)))}),e=t.filter((e,t,n)=>n.indexOf(e)===t)}return e}paginate(e){return this.pagingConf&&this.pagingConf.page&&this.pagingConf.perPage&&(e=Pn.paginate(e,this.pagingConf.page,this.pagingConf.perPage)),e}}let xn=(()=>{class e{constructor(){this.settings={},this.rowSelect=new i.o,this.rowDeselect=new i.o,this.userRowSelect=new i.o,this.delete=new i.o,this.edit=new i.o,this.create=new i.o,this.custom=new i.o,this.deleteConfirm=new i.o,this.editConfirm=new i.o,this.createConfirm=new i.o,this.rowHover=new i.o,this.defaultSettings={mode:"inline",selectMode:"single",selectedRowIndex:0,switchPageToSelectedRowPage:!1,hideHeader:!1,hideSubHeader:!1,actions:{columnTitle:"Actions",add:!0,edit:!0,delete:!0,custom:[],position:"left"},filter:{inputClass:""},edit:{inputClass:"",editButtonContent:"Edit",saveButtonContent:"Update",cancelButtonContent:"Cancel",confirmSave:!1},add:{inputClass:"",addButtonContent:"Add New",createButtonContent:"Create",cancelButtonContent:"Cancel",confirmCreate:!1},delete:{deleteButtonContent:"Delete",confirmDelete:!1},attr:{id:"",class:""},noDataMessage:"No data found",columns:{},pager:{display:!0,page:1,perPage:10},rowClassFunction:()=>""},this.isAllSelected=!1,this.destroyed$=new o.a}ngOnChanges(e){this.grid?(e.settings&&this.grid.setSettings(this.prepareSettings()),e.source&&(this.source=this.prepareSource(),this.grid.setSource(this.source))):this.initGrid(),this.tableId=this.grid.getSetting("attr.id"),this.tableClass=this.grid.getSetting("attr.class"),this.isHideHeader=this.grid.getSetting("hideHeader"),this.isHideSubHeader=this.grid.getSetting("hideSubHeader"),this.isPagerDisplay=this.grid.getSetting("pager.display"),this.isPagerDisplay=this.grid.getSetting("pager.display"),this.perPageSelect=this.grid.getSetting("pager.perPageSelect"),this.rowClassFunction=this.grid.getSetting("rowClassFunction")}ngOnDestroy(){this.destroyed$.next()}selectRow(e,t=this.grid.getSetting("switchPageToSelectedRowPage")){if(!this.grid)return;if(this.grid.settings.selectedRowIndex=e,this.isIndexOutOfRange(e))return void this.deselectAllRows();if(t){const t=this.source,n=t.getPaging(),i=Ct(e,n.perPage);if(this.grid.settings.selectedRowIndex=e%=n.perPage,i!==n.page)return void t.setPage(i)}const n=this.grid.getRows()[e];n?this.onSelectRow(n):this.deselectAllRows()}deselectAllRows(){this.grid.dataSet.deselectAll(),this.emitDeselectRow(null)}editRowSelect(e){"multi"===this.grid.getSetting("selectMode")?this.onMultipleSelectRow(e):this.onSelectRow(e)}onUserSelectRow(e){"multi"!==this.grid.getSetting("selectMode")&&(this.grid.selectRow(e),this.emitUserSelectRow(e),this.emitSelectRow(e))}
1onRowHover(e){this.rowHover.emit(e)}multipleSelectRow(e){this.grid.multipleSelectRow(e),this.emitUserSelectRow(e),this.emitSelectRow(e)}onSelectAllRows(e){this.isAllSelected=!this.isAllSelected,this.grid.selectAllRows(this.isAllSelected),this.emitUserSelectRow(null),this.emitSelectRow(null)}onSelectRow(e){this.grid.selectRow(e),this.emitSelectRow(e)}onMultipleSelectRow(e){this.emitSelectRow(e)}initGrid(){this.source=this.prepareSource(),this.grid=new At(this.source,this.prepareSettings()),this.subscribeToOnSelectRow(),this.subscribeToOnDeselectRow()}prepareSource(){return this.source instanceof Ht?this.source:this.source instanceof Array?new On(this.source):new On}prepareSettings(){return wt({},this.defaultSettings,this.settings)}changePage(e){this.resetAllSelector()}sort(e){this.resetAllSelector()}filter(e){this.resetAllSelector()}resetAllSelector(){this.isAllSelected=!1}emitUserSelectRow(e){const t=this.grid.getSelectedRows();this.userRowSelect.emit({data:e?e.getData():null,isSelected:e?e.getIsSelected():null,source:this.source,selected:t&&t.length?t.map(e=>e.getData()):[]})}emitSelectRow(e){const t={data:e?e.getData():null,isSelected:e?e.getIsSelected():null,source:this.source};this.rowSelect.emit(t),(null==e?void 0:e.isSelected)||this.rowDeselect.emit(t)}emitDeselectRow(e){this.rowDeselect.emit({data:e?e.getData():null,isSelected:e?e.getIsSelected():null,source:this.source})}isIndexOutOfRange(e){var t;const n=null===(t=this.source)||void 0===t?void 0:t.count();return e<0||"number"==typeof n&&e>=n}subscribeToOnSelectRow(){this.onSelectRowSubscription&&this.onSelectRowSubscription.unsubscribe(),this.onSelectRowSubscription=this.grid.onSelectRow().pipe(Object(K.a)(this.destroyed$)).subscribe(e=>{this.emitSelectRow(e)})}subscribeToOnDeselectRow(){this.onDeselectRowSubscription&&this.onDeselectRowSubscription.unsubscribe(),this.onDeselectRowSubscription=this.grid.onDeselectRow().pipe(Object(K.a)(this.destroyed$)).subscribe(e=>{this.emitDeselectRow(e)})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["ng2-smart-table"]],inputs:{settings:"settings",source:"source"},outputs:{rowSelect:"rowSelect",rowDeselect:"rowDeselect",userRowSelect:"userRowSelect",delete:"delete",edit:"edit",create:"create",custom:"custom",deleteConfirm:"deleteConfirm",editConfirm:"editConfirm",createConfirm:"createConfirm",rowHover:"rowHover"},features:[i.Eb],decls:4,vars:9,consts:[[3,"id","ngClass"],["ng2-st-thead","",3,"grid","isAllSelected","source","createConfirm","create","selectAllRows","sort","filter",4,"ngIf"],["ng2-st-tbody","",3,"grid","source","deleteConfirm","editConfirm","rowClassFunction","edit","delete","custom","userSelectRow","editRowSelect","multipleSelectRow","rowHover"],[3,"source","perPageSelect","changePage",4,"ngIf"],["ng2-st-thead","",3,"grid","isAllSelected","source","createConfirm","create","selectAllRows","sort","filter"],[3,"source","perPageSelect","changePage"]],template:function(e,t){1&e&&(i.Zb(0,"table",0),i.Oc(1,vt,1,4,"thead",1),i.Zb(2,"tbody",2),i.jc("edit",function(e){return t.edit.emit(e)})("delete",function(e){return t.delete.emit(e)})("custom",function(e){return t.custom.emit(e)})("userSelectRow",function(e){return t.onUserSelectRow(e)})("editRowSelect",function(e){return t.editRowSelect(e)})("multipleSelectRow",function(e){return t.multipleSelectRow(e)})("rowHover",function(e){return t.onRowHover(e)}),i.Yb(),i.Yb(),i.Oc(3,_t,1,2,"ng2-smart-table-pager",3)),2&e&&(i.tc("id",t.tableId)("ngClass",t.tableClass),i.Gb(1),i.tc("ngIf",!t.isHideHeader||!t.isHideSubHeader),i.Gb(1),i.tc("grid",t.grid)("source",t.source)("deleteConfirm",t.deleteConfirm)("editConfirm",t.editConfirm)("rowClassFunction",t.rowClassFunction),i.Gb(1),i.tc("ngIf",t.isPagerDisplay))},directives:[r.l,r.n,on,dn,rn],styles:["[_nghost-%COMP%]{font-size:1rem}[_nghost-%COMP%] *{box-sizing:border-box}[_nghost-%COMP%] button, [_nghost-%COMP%] input, [_nghost-%COMP%] optgroup, [_nghost-%COMP%] select, [_nghost-%COMP%] textarea{color:inherit;font:inherit;margin:0}[_nghost-%COMP%] table{border-collapse:collapse;border-spacing:0;display:table;line-height:1.5em;max-width:100%;overflow:auto;width:100%;word-break:normal;word-break:keep-all}[_nghost-%COMP%] table tr th{font-weight:700}[_nghost-%COMP%] table tr section{font-size:.75em;font-weight:700}[_nghost-%COMP%] table tr td, [_nghost-%COMP%] table tr th{font-size:.875em;margin:0;padding:.5em 1em}[_nghost-%COMP%] a{color:#1e6bb8;text-decoration:none}[_nghost-%COMP%] a:hover{text-decoration:underline}"]}),e})(),An=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[r.c,s.i,s.v,Ut,nn,sn,un,wn]]}),e})()},Rb7d:function(e,t){function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");
1if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");const n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});const t=e.width&&e.width>=21?e.width:void 0;return{width:t,scale:t?4:e.scale||4,margin:null==e.margin||e.margin<0?4:e.margin,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){const i=t.getScale(e,n);return Math.floor((e+2*n.margin)*i)},t.qrToImageData=function(e,n,i){const r=n.modules.size,s=n.modules.data,o=t.getScale(r,i),a=Math.floor((r+2*i.margin)*o),c=i.margin*o,l=[i.color.light,i.color.dark];for(let t=0;t<a;t++)for(let n=0;n<a;n++){let u=4*(t*a+n),d=i.color.light;t>=c&&n>=c&&t<a-c&&n<a-c&&(d=l[s[Math.floor((t-c)/o)*r+Math.floor((n-c)/o)]?1:0]),e[u++]=d.r,e[u++]=d.g,e[u++]=d.b,e[u]=d.a}}},Rhp1:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"CoreRole"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"CoreRole",plural:"CoreRoles",path:"CoreRoles",idName:"id",properties:{id:{name:"id",type:"any"},name:{name:"name",type:"string"},description:{name:"description",type:"string"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{principals:{name:"principals",type:"any[]",model:"",relationType:"hasMany",keyFrom:"id",keyTo:"roleId"}}}}}},S7rW:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n("1M8x")},S9ev:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiInstitutes/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}getUniversity(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiInstitutes/university",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countUniversity(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiInstitutes/university/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}getHospital(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiInstitutes/hospital",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countHospital(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiInstitutes/hospital/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}getClinic(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiInstitutes/clinic",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countClinic(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiInstitutes/clinic/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}getSurgery(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiInstitutes/surgery",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countSurgery(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiInstitutes/surgery/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}getOther(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiInstitutes/other",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countOther(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiInstitutes/other/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}getModelName(){return"SimiInstitute"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},SMod:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getEvent(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressMaterials/:id/event",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressMaterials/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}uploadresource(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressMaterials/:id/upload/resource";return this.request("POST",n,{id:e},{},{},null,t)}setRemoteResource(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressMaterials/:id/resource/set",r={id:e},s={};return null!=t&&(s.url=t),this.request("POST",i,r,s,{},null,n)}downloadresource(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressMaterials/:id/resource/:filename";return this.request("GET",i,{id:e,filename:t},{},{},null,n)}getModelName(){return"CongressMaterial"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},SPA5:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiSurveySubmission"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiSurveySubmission",plural:"SimiSurveySubmissions",path:"SimiSurveySubmissions",idName:"id",properties:{userId:{name:"userId",type:"any"},surveyId:{name:"surveyId",type:"any"},status:{name:"status",type:"string",default:"pending"},answers:{name:"answers",type:"Array<any>"},submitted:{name:"submitted",type:"Date"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{survey:{name:"survey",type:"SimiSurvey",model:"SimiSurvey",relationType:"belongsTo",keyFrom:"surveyId",keyTo:"id"},user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}}
1,SeVD:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("ngJS"),r=n("NJ4a"),s=n("Lhse"),o=n("kJWO"),a=n("I55L"),c=n("c2HN"),l=n("XoHu");const u=e=>{if(e&&"function"==typeof e[o.a])return u=e,e=>{const t=u[o.a]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(Object(a.a)(e))return Object(i.a)(e);if(Object(c.a)(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,r.a),e);if(e&&"function"==typeof e[s.a])return t=e,e=>{const n=t[s.a]();for(;;){let t;try{t=n.next()}catch(i){return e.error(i),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};{const t=Object(l.a)(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,n,u}},SksO:function(e,t){function n(t,i){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,i)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},SpAZ:function(e,t,n){"use strict";function i(e){return e}n.d(t,"a",function(){return i})},SxV6:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("sVev"),r=n("pLZG"),s=n("IzEk"),o=n("xbPD"),a=n("XDbj"),c=n("SpAZ");function l(e,t){const n=arguments.length>=2;return l=>l.pipe(e?Object(r.a)((t,n)=>e(t,n,l)):c.a,Object(s.a)(1),n?Object(o.a)(t):Object(a.a)(()=>new i.a))}},T2BX:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiElection"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiElection",plural:"SimiElections",path:"SimiElections",idName:"id",properties:{year:{name:"year",type:"number"},type:{name:"type",type:"string"},sezione_regionale:{name:"sezione_regionale",type:"string"},status:{name:"status",type:"string",default:"inactive"},name:{name:"name",type:"string"},description:{name:"description",type:"string"},settings:{name:"settings",type:"any"},candidate_settings:{name:"candidate_settings",type:"any",default:null},vote_settings:{name:"vote_settings",type:"any",default:null},registration:{name:"registration",type:"boolean"},result:{name:"result",type:"any"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{candidates:{name:"candidates",type:"SimiElectionCandidate[]",model:"SimiElectionCandidate",relationType:"hasMany",keyFrom:"id",keyTo:"electionId"},votes:{name:"votes",type:"any[]",model:"",relationType:"hasMany",keyFrom:"id",keyTo:"electionId"}}}}}},TOXt:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiEventRole"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiEventRole",plural:"SimiEventRoles",path:"SimiEventRoles",idName:"id",properties:{eventId:{name:"eventId",type:"any"},userId:{name:"userId",type:"any"},role:{name:"role",type:"string"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{event:{name:"event",type:"Events",model:"Events",relationType:"belongsTo",keyFrom:"eventId",keyTo:"id"},user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},Tay8:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiSponsors/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiSponsors/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}uploadlogo(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiSponsors/:id/upload/logo";return this.request("POST",n,{id:e},{},{},null,t)}setuserId(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiSponsors/:id/userId",r={id:e},s={};return null!=t&&(s.value=t),this.request("POST",i,r,s,{},null,n)}getModelName(){return"SimiSponsor"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},Tswa:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getCompiler(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyAccesses/:id/compiler",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getSurvey(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyAccesses/:id/survey",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}findByIdSubmissions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyAccesses/:id/submissions/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdSubmissions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyAccesses/:id/submissions/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdSubmissions(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyAccesses/:id/submissions/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}getSubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyAccesses/:id/submissions",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createSubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyAccesses/:id/submissions";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteSubmissions(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyAccesses/:id/submissions";return this.request("DELETE",n,{id:e},{},{},null,t)}countSubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyAccesses/:id/submissions/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyAccesses/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}createManySubmissions(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyAccesses/:id/submissions";return this.request("POST",i,{id:e},{},{data:t},null,n)}getModelName(){return"SurveyAccess"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},UOn2:function(e,t,n){"use strict";n.d(t,"a",function(){return o}
1),n.d(t,"b",function(){return l});var i=n("l7P3"),r=n("wQ+c");const s={loaded:!1,loading:!1,user:null},o={currentUser:function(e=s,t){switch(t.type){case r.a.GetCurrentUser:return Object.assign(Object.assign({},e),{loading:!0});case r.a.GetCurrentUserSuccess:return{loaded:!0,loading:!1,user:t.payload};case r.a.Logout:return{user:void 0,loading:!1,loaded:!1};default:return e}}},a=Object(i.h)("auth"),c=Object(i.i)(a,e=>e.currentUser),l=Object(i.i)(c,e=>e.user)},UXun:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("jtHE");function r(e,t,n){let r;return r=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},e=>e.lift(function({bufferSize:e=Number.POSITIVE_INFINITY,windowTime:t=Number.POSITIVE_INFINITY,refCount:n,scheduler:r}){let s,o,a=0,c=!1,l=!1;return function(u){let d;a++,!s||c?(c=!1,s=new i.a(e,t,r),d=s.subscribe(this),o=u.subscribe({next(e){s.next(e)},error(e){c=!0,s.error(e)},complete(){l=!0,o=void 0,s.complete()}})):d=s.subscribe(this),this.add(()=>{a--,d.unsubscribe(),o&&!l&&n&&0===a&&(o.unsubscribe(),o=void 0,s=void 0)})}}(r))}},Ubnm:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"CoreApplication"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"CoreApplication",plural:"CoreApplications",path:"CoreApplications",idName:"id",properties:{id:{name:"id",type:"string"},realm:{name:"realm",type:"string"},name:{name:"name",type:"string"},description:{name:"description",type:"string"},icon:{name:"icon",type:"string"},owner:{name:"owner",type:"string"},collaborators:{name:"collaborators",type:"Array<any>"},email:{name:"email",type:"string"},emailVerified:{name:"emailVerified",type:"boolean"},url:{name:"url",type:"string"},callbackUrls:{name:"callbackUrls",type:"Array<any>"},permissions:{name:"permissions",type:"Array<any>"},key:{name:"key",type:"string"},pushSettings:{name:"pushSettings",type:"any"},authenticationSchemes:{name:"authenticationSchemes",type:"Array<any>"},status:{name:"status",type:"string",default:"enabled"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{}}}}},V35J:function(e,t){function n(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}n.prototype.set=function(e,t,n,i){const r=e*this.size+t;this.data[r]=n,i&&(this.reservedBit[r]=!0)},n.prototype.get=function(e,t){return this.data[e*this.size+t]},n.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},n.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=n},V5ut:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getSettings(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/settings",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}createSettings(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/settings";return this.request("POST",i,{id:e},{},{data:t},null,n)}updateSettings(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/settings";return this.request("PUT",i,{id:e},{},{data:t},null,n)}destroySettings(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/settings";return this.request("DELETE",n,{id:e},{},{},null,t)}findByIdLinks(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/links/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdLinks(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/links/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdLinks(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/links/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}getQuality_survey(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/quality_survey",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getEcm_survey(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/ecm_survey",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getExam(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/exam",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}
1findByIdSponsors(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/sponsors/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}linkSponsors(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/sponsors/rel/:fk";return this.request("PUT",i,{id:e,fk:t},{},{},null,n)}unlinkSponsors(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/sponsors/rel/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}existsSponsors(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/sponsors/rel/:fk";return this.request("HEAD",i,{id:e,fk:t},{},{},null,n)}findByIdRoles(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/roles/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdRoles(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/roles/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdRoles(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/roles/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}findByIdThreads(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/threads/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdThreads(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/threads/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdThreads(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/threads/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}findByIdSubscriptions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/subscriptions/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}findByIdMaterials(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/materials/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}findByIdLives(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/lives/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdLives(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/lives/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdLives(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/lives/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}getLogbook(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/logbook",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getLinks(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/links",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createLinks(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/links";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteLinks(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/links";return this.request("DELETE",n,{id:e},{},{},null,t)}countLinks(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/links/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getSponsors(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/sponsors",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}countSponsors(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/sponsors/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getRoles(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/roles",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createRoles(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/roles";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteRoles(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/roles";return this.request("DELETE",n,{id:e},{},{},null,t)}countRoles(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/roles/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getThreads(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/threads",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createThreads(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/threads";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteThreads(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/threads";return this.request("DELETE",n,{id:e},{},{},null,t)}countThreads(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/threads/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getSubscriptions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/subscriptions",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}countSubscriptions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/subscriptions/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getMaterials(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/materials",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}countMaterials(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/materials/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getLives(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/lives",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createLives(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/lives";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteLives(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/lives";return this.request("DELETE",n,{id:e},{},{},null,t)}countLives(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/lives/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}addToCalendar(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/user-calendar";return this.request("POST",n,{id:e},{},{},null,t)}removeFromCalendar(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/user-calendar";return this.request("DELETE",n,{id:e},{},{},null,t)}acceptSubscriptions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/subscriptions/:fk/accept";return this.request("POST",i,{id:e,fk:t},{},{},null,n)}cancelSubscriptions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/subscriptions/:fk/cancel";return this.request("POST",i,{id:e,fk:t},{},{},null,n)}blockSubscriptions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/subscriptions/:fk/block";return this.request("POST",i,{id:e,fk:t},{},{},null,n)}subscribe(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/subscribe";return this.request("POST",n,{id:e},{},{},null,t)}invite(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/invite",r={id:e},s={};return null!=t&&(s.email=t),this.request("POST",i,r,s,{},null,n)}refreshData(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/refresh";return this.request("POST",n,{id:e},{},{},null,t)}uploadpicture(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/upload/picture";return this.request("POST",n,{id:e},{},{},null,t)}getActive(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/active",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countActive(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/active/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}linkedEventsLinks(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/links/linkedEvents",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}downloadReport(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/report";return this.request("GET",n,{id:e},{},{},null,t)}downloadParticipants(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/participants";return this.request("GET",n,{id:e},{},{},null,t)}getStats(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/getStats",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}generateCertificatesPassed(e,t={},n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/certificates/passed",s={id:e},a={};return null!=t&&(a.query=t),null!=n&&(a.settings=n),this.request("POST",r,s,a,{},null,i)}generateCertificatesLogbook(e,t={},n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/certificates/logbook",s={id:e},a={};return null!=t&&(a.query=t),null!=n&&(a.settings=n),this.request("POST",r,s,a,{},null,i)}generateCertificatesParticipation(e,t={},n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/certificates/participation",s={id:e},a={};return null!=t&&(a.query=t),null!=n&&(a.settings=n),this.request("POST",r,s,a,{},null,i)}deleteCertificates(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/certificates",r={id:e},s={};return null!=t&&(s.query=t),this.request("DELETE",i,r,s,{},null,n)}verify_progresses(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/progress/verify",r={id:e},s={};return null!=t&&(s.query=t),this.request("POST",i,r,s,{},null,n)}uploadprogram(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/upload/program";return this.request("POST",n,{id:e},{},{},null,t)}uploadheader(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/upload/header";return this.request("POST",n,{id:e},{},{},null,t)}generateSurveyReport(e,t={},n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/survey-report/:name",s={id:e,name:t},a={};return null!=n&&(a.info=n),this.request("POST",r,s,a,{},null,i)}createManySettings(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/sett
1ings";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyLinks(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/links";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyRoles(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/roles";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyThreads(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/threads";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyLives(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Courses/:id/lives";return this.request("POST",i,{id:e},{},{data:t},null,n)}getModelName(){return"Course"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},VFot:function(e,t,n){"use strict";n.d(t,"a",function(){return S}),n.d(t,"b",function(){return k}),n.d(t,"c",function(){return _});var i=n("ofXK"),r=n("fXoL"),s=n("mrSG"),o=n("pLZG"),a=n("SxV6"),c=n("lJxs"),l=n("eIep"),u=n("2Vo4"),d=n("Cfvw");const h=["stripeElementRef"],p=new r.t("Stripe Publishable Key"),f=new r.t("Stripe Options"),g=new r.t("NGX_STRIPE_VERSION");let m=(()=>{class e{constructor(e){this.platformId=e}getNativeWindow(){return Object(i.E)(this.platformId)?window:{}}}return e.\u0275fac=function(t){return new(t||e)(r.gc(r.E))},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})(),b=(()=>{class e{constructor(e){this.platformId=e}getNativeDocument(){return Object(i.E)(this.platformId)?document:{}}}return e.\u0275fac=function(t){return new(t||e)(r.gc(r.E))},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})(),y=(()=>{class e{constructor(e,t,n){this.platformId=e,this.window=t,this.document=n,this.status=new u.a({error:!1,loaded:!1,loading:!1})}asStream(){return this.load(),this.status.asObservable()}isReady(){return this.status.getValue().loaded}load(){if(Object(i.F)(this.platformId))return;const e=this.status.getValue();if(this.window.getNativeWindow().hasOwnProperty("Stripe"))this.status.next({error:!1,loaded:!0,loading:!1});else if(!e.loaded&&!e.loading){this.status.next(Object.assign(Object.assign({},e),{loading:!0}));const t=this.document.getNativeDocument().createElement("script");t.type="text/javascript",t.async=!0,t.defer=!0,t.src="https://js.stripe.com/v3/",t.onload=()=>{this.status.next({error:!1,loaded:!0,loading:!1})},t.onerror=()=>{this.status.next({error:!0,loaded:!1,loading:!1})},this.document.getNativeDocument().body.appendChild(t)}}}return e.\u0275fac=function(t){return new(t||e)(r.gc(r.E),r.gc(m),r.gc(b))},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})();class v{constructor(e,t,n,i,r){this.version=e,this.loader=t,this.window=n,this.key=i,this.options=r,this.stripe$=new u.a(void 0),this.stripe=this.stripe$.asObservable().pipe(Object(o.a)(e=>Boolean(e))),this.loader.asStream().pipe(Object(o.a)(e=>!0===e.loaded),Object(a.a)(),Object(c.a)(()=>this.window.getNativeWindow().Stripe)).subscribe(e=>{const t=this.options?e(this.key,this.options):e(this.key);t.registerAppInfo(this.getNgxStripeAppInfo(this.version)),this.stripe$.next(t)})}getInstance(){return this.stripe$.getValue()}elements(e){return this.stripe$.asObservable().pipe(Object(o.a)(e=>Boolean(e)),Object(c.a)(t=>t.elements(e)),Object(a.a)())}redirectToCheckout(e){return this.stripe.pipe(Object(l.a)(t=>Object(d.a)(t.redirectToCheckout(e))),Object(a.a)())}confirmPayment(e){return this.stripe.pipe(Object(l.a)(t=>Object(d.a)(t.confirmPayment(e))),Object(a.a)())}confirmAcssDebitPayment(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.confirmAcssDebitPayment(e,t,n))),Object(a.a)())}confirmUsBankAccountPayment(e,t){return this.stripe.pipe(Object(l.a)(n=>Object(d.a)(n.confirmUsBankAccountPayment(e,t))),Object(a.a)())}confirmAlipayPayment(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.confirmAlipayPayment(e,t,n))),Object(a.a)())}confirmAuBecsDebitPayment(e,t){return this.stripe.pipe(Object(l.a)(n=>Object(d.a)(n.confirmAuBecsDebitPayment(e,t))),Object(a.a)())}confirmBancontactPayment(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.confirmBancontactPayment(e,t,n))),Object(a.a)())}confirmBoletoPayment(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.confirmBoletoPayment(e,t,n))),Object(a.a)())}confirmCardPayment(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.confirmCardPayment(e,t,n))),Object(a.a)())}confirmCustomerBalancePayment(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.confirmCustomerBalancePayment(e,t,n))),Object(a.a)())}confirmEpsPayment(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.confirmEpsPayment(e,t,n))),Object(a.a)())}confirmFpxPayment(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.confirmFpxPayment(e,t,n))),Object(a.a)())}confirmGiropayPayment(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.confirmGiropayPayment(e,t,n))),Object(a.a)())}confirmGrabPayPayment(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.confirmGrabPayPayment(e,t,n))),Object(a.a)())}confirmIdealPayment(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.confirmIdealPayment(e,t,n))),Object(a.a)())}confirmKlarnaPayment(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.confirmKlarnaPayment(e,t,n))),Object(a.a)())}confirmKonbiniPayment(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.confirmKonbiniPayment(e,t,n))),Object(a.a)())}confirmOxxoPayment(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.confirmOxxoPayment(e,t,n))),Object(a.a)())}confirmP24Payment(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.confirmP24Payment(e,t,n))),Object(a.a)())}confirmPayNowPayment(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.confirmPayNowPayment(e,t,n))),Object(a.a)())}confirmPayPalPayment(e,t){return this.stripe.pipe(Object(l.a)(n=>Object(d.a)(n.confirmPayPalPayment(e,t))),Object(a.a)())}confirmPromptPayPayment(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.confirmPromptPayPayment(e,t,n))),Object(a.a)())}confirmSepaDebitPayment(e,t){return this.stripe.pipe(Object(l.a)(n=>Object(d.a)(n.confirmSepaDebitPayment(e,t))),Object(a.a)())}confirmSofortPayment(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.confirmSofortPayment(e,t,n))),Object(a.a)())}confirmWechatPayPayment(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.confirmWechatPayPayment(e,t,n))),Object(a.a)())}handleCardAction(e){return this.stripe.pipe(Object(l.a)(t=>Object(d.a)(t.handleCardAction(e))),Object(a.a)())}verifyMicrodepositsForPayment(e,t){return this.stripe.pipe(Object(l.a)(n=>Object(d.a)(n.verifyMicrodepositsForPayment(e,t))),Object(a.a)())}collectBankAccountForPayment(e){return this.stripe.pipe(Object(l.a)(t=>Object(d.a)(t.collectBankAccountForPayment(e))),Object(a.a)())}createPaymentMethod(e){return this.stripe.pipe(Object(l.a)(t=>Object(d.a)(t.createPaymentMethod(e))),Object(a.a)())}retrievePaymentIntent(e){return this.stripe.pipe(Object(l.a)(t=>Object(d.a)(t.retrievePaymentIntent(e))),Object(a.a)())}confirmSetup(e){return this.stripe.pipe(Object(l.a)(t=>Object(d.a)(t.confirmSetup(e))),Object(a.a)())}confirmAcssDebitSetup(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.confirmAcssDebitSetup(e,t,n))),Object(a.a)())}confirmUsBankAccountSetup(e,t){return this.stripe.pipe(Object(l.a)(n=>Object(d.a)(n.confirmUsBankAccountSetup(e,t))),Object(a.a)())}confirmAuBecsDebitSetup(e,t){return this.stripe.pipe(Object(l.a)(n=>Object(d.a)(n.confirmAuBecsDebitSetup(e,t))),Object(a.a)())}confirmBacsDebitSetup(e,t){return this.stripe.pipe(Object(l.a)(n=>Object(d.a)(n.confirmBacsDebitSetup(e,t))),Object(a.a)())}confirmBancontactSetup(e,t){return this.stripe.pipe(Object(l.a)(n=>Object(d.a)(n.confirmBancontactSetup(e,t))),Object(a.a)())}confirmCardSetup(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.confirmCardSetup(e,t,n))),Object(a.a)())}confirmIdealSetup(e,t){return this.stripe.pipe(Object(l.a)(n=>Object(d.a)(n.confirmIdealSetup(e,t))),Object(a.a)())}confirmPayPalSetup(e,t){return this.stripe.pipe(Object(l.a)(n=>Object(d.a)(n.confirmPayPalSetup(e,t))),Object(a.a)())}confirmSepaDebitSetup(e,t){return this.stripe.pipe(Object(l.a)(n=>Object(d.a)(n.confirmSepaDebitSetup(e,t))),Object(a.a)())}confirmSofortSetup(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.confirmSofortSetup(e,t,n))),Object(a.a)())}confirmAffirmPayment(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.confirmAffirmPayment(e,t,n))),Object(a.a)())}confirmAfterpayClearpayPayment(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.confirmAfterpayClearpayPayment(e,t,n))),Object(a.a)())}verifyMicrodepositsForSetup(e,t){return this.stripe.pipe(Object(l.a)(n=>Object(d.a)(n.verifyMicrodepositsForSetup(e,t))),Object(a.a)())}collectBankAccountForSetup(e){return this.stripe.pipe(Object(l.a)(t=>Object(d.a)(t.collectBankAccountForSetup(e))),Object(a.a)())}retrieveSetupIntent(e){return this.stripe.pipe(Object(l.a)(t=>Object(d.a)(t.retrieveSetupIntent(e))),Object(a.a)())}paymentRequest(e){const t=this.getInstance();return t?t.paymentRequest(e):void 0}createToken(e,t){return this.stripe.pipe(Object(l.a)(n=>Object(d.a)(n.createToken(e,t))),Object(a.a)())}createSource(e,t){return this.stripe.pipe(Object(l.a)(n=>Object(d.a)(n.createSource(e,t))),Object(a.a)())}retrieveSource(e){return this.stripe.pipe(Object(l.a)(t=>Object(d.a)(t.retrieveSource(e))),Object(a.a)())}verifyIdentity(e){return this.stripe.pipe(Object(l.a)(t=>Object(d.a)(t.verifyIdentity(e))),Object(a.a)())}handleCardPayment(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.handleCardPayment(e,t,n))),Object(a.a)())}confirmPaymentIntent(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.confirmPaymentIntent(e,t,n))),Object(a.a)())}handleCardSetup(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.handleCardSetup(e,t,n))),Object(a.a)())}confirmSetupIntent(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.confirmSetupIntent(e,t,n))),Object(a.a)())}handleFpxPayment(e,t,n){return this.stripe.pipe(Object(l.a)(i=>Object(d.a)(i.handleFpxPayment(e,t,n))),Object(a.a)())}getNgxStripeAppInfo(e){return{name:"ngx-stripe",url:"https://ngx-stripe.dev",partner_id:"pp_partner_JR4l1rmvUoPP4V",version:e}}}let _=(()=>{class e{constructor(e,t,n,i,r){this.version=e,this.key=t,this.options=n,this.loader=i,this.window=r,t&&(this.stripe=new v(this.version,this.loader,this.window,t,n))}getStripeReference(){return this.loader.asStream().pipe(Object(o.a)(e=>!0===e.loaded),Object(c.a)(()=>this.window.getNativeWindow().Stripe))}getInstance(){return this.stripe.getInstance()}setKey(e,t){return this.changeKey(e,t)}changeKey(e,t){return this.stripe=new v(this.version,this.loader,this.window,e,t),this.stripe}elements(e){return this.stripe.elements(e)}redirectToCheckout(e){return this.stripe.redirectToCheckout(e)}confirmPayment(e){return this.stripe.confirmPayment(e)}confirmAcssDebitPayment(e,t,n){return this.stripe.confirmAcssDebitPayment(e,t,n)}confirmUsBankAccountPayment(e,t){return this.stripe.confirmUsBankAccountPayment(e,t)}confirmAlipayPayment(e,t,n){return this.stripe.confirmAlipayPayment(e,t,n)}confirmAuBecsDebitPayment(e,t){return this.stripe.confirmAuBecsDebitPayment(e,t)}confirmBancontactPayment(e,t,n){return this.stripe.confirmBancontactPayment(e,t,n)}confirmBoletoPayment(e,t,n){return this.stripe.confirmBoletoPayment(e,t,n)}confirmCardPayment(e,t,n){return this.stripe.confirmCardPayment(e,t,n)}confirmCustomerBalancePayment(e,t,n){return this.stripe.confirmCustomerBalancePayment(e,t,n)}confirmEpsPayment(e,t,n){return this.stripe.confirmEpsPayment(e,t,n)}confirmFpxPayment(e,t,n){return this.stripe.confirmFpxPayment(e,t,n)}confirmGiropayPayment(e,t,n){return this.stripe.confirmGiropayPayment(e,t,n)}confirmGrabPayPayment(e,t,n){return this.stripe.confirmGrabPayPayment(e,t,n)}confirmIdealPayment(e,t,n){return this.stripe.confirmIdealPayment(e,t,n)}confirmKlarnaPayment(e,t,n){return this.stripe.confirmKlarnaPayment(e,t,n)}confirmKonbiniPayment(e,t,n){return this.stripe.confirmKonbiniPayment(e,t,n)}confirmOxxoPayment(e,t,n){return this.stripe.confirmOxxoPayment(e,t,n)}confirmP24Payment(e,t,n){return this.stripe.confirmP24Payment(e,t,n)}confirmPayNowPayment(e,t,n){return this.stripe.confirmPayNowPayment(e,t,n)}confirmPayPalPayment(e,t){return this.stripe.confirmPayPalPayment(e,t)}confirmPromptPayPayment(e,t,n){return this.stripe.confirmPromptPayPayment(e,t,n)}confirmSepaDebitPayment(e,t){return this.stripe.confirmSepaDebitPayment(e,t)}confirmSofortPayment(e,t,n){return this.stripe.confirmSofortPayment(e,t,n)}confirmWechatPayPayment(e,t,n){return this.stripe.confirmWechatPayPayment(e,t,n)}handleCardAction(e){return this.stripe.handleCardAction(e)}verifyMicrodepositsForPayment(e,t){return this.stripe.verifyMicrodepositsForPayment(e,t)}collectBankAccountForPayment(e){return this.stripe.collectBankAccountForPayment(e)}createPaymentMethod(e){return this.stripe.createPaymentMethod(e)}retrievePaymentIntent(e){return this.stripe.retrievePaymentIntent(e)}confirmSetup(e){return this.stripe.confirmSetup(e)}confirmAcssDebitSetup(e,t,n){return this.stripe.confirmAcssDebitSetup(e,t,n)}confirmUsBankAccountSetup(e,t){return this.stripe.confirmUsBankAccountSetup(e,t)}confirmAuBecsDebitSetup(e,t){return this.stripe.confirmAuBecsDebitSetup(e,t)}confirmBacsDebitSetup(e,t){return this.stripe.confirmBacsDebitSetup(e,t)}confirmBancontactSetup(e,t){return this.stripe.confirmBancontactSetup(e,t)}confirmCardSetup(e,t,n){return this.stripe.confirmCardSetup(e,t,n)}confirmIdealSetup(e,t){return this.stripe.confirmIdealSetup(e,t)}confirmPayPalSetup(e,t){return this.stripe.confirmPayPalSetup(e,t)}confirmSepaDebitSetup(e,t){return this.stripe.confirmSepaDebitSetup(e,t)}confirmSofortSetup(e,t,n){return this.stripe.confirmSofortSetup(e,t,n)}confirmAffirmPayment(e,t,n){return this.stripe.confirmAffirmPayment(e,t,n)}confirmAfterpayClearpayPayment(e,t,n){return this.stripe.confirmAfterpayClearpayPayment(e,t,n)}verifyMicrodepositsForSetup(e,t){return this.stripe.verifyMicrodepositsForSetup(e,t)}collectBankAccountForSetup(e){return this.stripe.collectBankAccountForSetup(e)}retrieveSetupIntent(e){return this.stripe.retrieveSetupIntent(e)}paymentRequest(e){return this.stripe.paymentRequest(e)}createToken(e,t){return this.stripe.createToken(e,t)}createSource(e,t){return this.stripe.createSource(e,t)}retrieveSource(e){return this.stripe.retrieveSource(e)}verifyIdentity(e){return this.stripe.verifyIdentity(e)}handleCardPayment(e,t,n){return this.stripe.handleCardPayment(e,t,n)}confirmPaymentIntent(e,t,n){return this.stripe.confirmPaymentIntent(e,t,n)}handleCardSetup(e,t,n){return this.stripe.handleCardSetup(e,t,n)}confirmSetupIntent(e,t,n){return this.stripe.confirmSetupIntent(e,t,n)}handleFpxPayment(e,t,n){return this.stripe.handleFpxPayment(e,t,n)}}return e.\u0275fac=function(t){return new(t||e)(r.gc(g),r.gc(p),r.gc(f),r.gc(y),r.gc(m))},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})(),w=(()=>{class e{constructor(e){this.stripeService=e}elements(e,t={}){return e?Object.keys(t).length>0?e.elements(t):e.elements():Object.keys(t).length>0?this.stripeService.elements(t):this.stripeService.elements()}paymentRequest(e,t){return e?e.paymentRequest(t):this.stripeService.paymentRequest(t)}mergeOptions(e,t){return!t||e&&e.classes||e&&e.classes?e||{}:Object.assign(Object.assign({},e||{}),{classes:{base:t,complete:`${t}--complete`,empty:`${t}--empty`,focus:`${t}--focus`,invalid:`${t}--invalid`,webkitAutoFill:`${t}--webkit-autoFill`}})}}return e.\u0275fac=function(t){return new(t||e)(r.gc(_))},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})(),k=(()=>{class e{constructor(e){this.stripeElementsService=e,this.doNotCreateUntilClientSecretIsSet=!1,this.load=new r.o,this.blur=new r.o,this.change=new r.o,this.focus=new r.o,this.ready=new r.o,this.escape=new r.o,this.state="notready"}ngOnChanges(e){return Object(s.a)(this,void 0,void 0,function*(){this.state="starting";const t=this.stripeElementsService.mergeOptions(this.options,this.containerClass);let n=!1;(e.elementsOptions||e.stripe||e.clientSecret||e.appearance||!this.elements)&&(this.elements=yield this.stripeElementsService.elements(this.stripe,Object.assign(Object.assign(Object.assign({},this.elementsOptions||{}),this.appearance?{appearance:this.appearance}:{}),this.clien
1tSecret?{clientSecret:this.clientSecret}:{})).toPromise(),n=!0),(e.options||e.containerClass||!this.element||n)&&(this.element&&!n?this.update(t):this.elements&&n&&this.createElement(t)),this.state="ready"})}ngOnDestroy(){this.element&&this.element.destroy()}update(e){return this.element.update(e)}collapse(){return this.element.collapse()}createElement(e={}){try{this.element=this.elements.create("payment",e)}catch(t){throw this.elements=null,t}this.element.on("change",e=>this.change.emit(e)),this.element.on("blur",()=>this.blur.emit()),this.element.on("focus",()=>this.focus.emit()),this.element.on("ready",()=>this.ready.emit()),this.element.on("escape",()=>this.escape.emit()),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit(this.element)}}return e.\u0275fac=function(t){return new(t||e)(r.Tb(w))},e.\u0275cmp=r.Nb({type:e,selectors:[["ngx-stripe-payment"]],viewQuery:function(e,t){if(1&e&&r.Vc(h,1),2&e){let e;r.Ec(e=r.kc())&&(t.stripeElementRef=e.first)}},inputs:{doNotCreateUntilClientSecretIsSet:"doNotCreateUntilClientSecretIsSet",containerClass:"containerClass",options:"options",elementsOptions:"elementsOptions",stripe:"stripe",appearance:"appearance",clientSecret:"clientSecret"},outputs:{load:"load",blur:"blur",change:"change",focus:"focus",ready:"ready",escape:"escape"},features:[r.Eb],decls:2,vars:0,consts:[[1,"field"],["stripeElementRef",""]],template:function(e,t){1&e&&r.Ub(0,"div",0,1)},encapsulation:2}),e})(),C=(()=>{class e{constructor(e,t,n,i,r){this.version=e,this.baseKey=t,this.baseOptions=n,this.loader=i,this.window=r}create(e,t){return e||this.baseKey?new v(this.version,this.loader,this.window,e||this.baseKey,t||this.baseOptions):null}}return e.\u0275fac=function(t){return new(t||e)(r.gc(g),r.gc(p),r.gc(f),r.gc(y),r.gc(m))},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})(),S=(()=>{class e{static forRoot(t,n){return{ngModule:e,providers:[y,_,C,w,m,b,{provide:p,useValue:t},{provide:f,useValue:n},{provide:g,useValue:"10.3.0"}]}}static forChild(t,n){return{ngModule:e,providers:[y,_,C,w,m,b,{provide:p,useValue:t},{provide:f,useValue:n},{provide:g,useValue:"10.3.0"}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Rb({type:e}),e.\u0275inj=r.Qb({imports:[[i.c]]}),e})()},VRyK:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("HDdC"),r=n("z+Ro"),s=n("bHdf"),o=n("yCtX");function a(...e){let t=Number.POSITIVE_INFINITY,n=null,a=e[e.length-1];return Object(r.a)(a)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof a&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof i.a?e[0]:Object(s.a)(t)(Object(o.a)(e,n))}},VYMQ:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("D/fu"),r=n("F/Ng"),s=n("qf2y"),o=n("fXoL");let a=(()=>{class e{constructor(e,t,n){this.userApi=e,this.storage=t,this.auth=n,this.redirectUrl="",i.p.setBaseURL(s.b),i.p.setApiVersion(s.a),i.p.setRequestOptionsCredentials(!0),i.y.prototype.logout=function(e){const t=i.p.getPath()+"/"+i.p.getApiVersion()+"/Users/logout";return this.auth.clear(),console.log(this.auth.getAccessTokenId()),this.request("POST",t,{},{},{},null,e)},r.a.prototype.save=function(){return!1}}me(){return this.userApi.me()}isAuthenticated(){return this.userApi.isAuthenticated()}authenticate(e,t,n){return this.userApi.login(e)}register(e){return this.userApi.create(e)}requestPassword(e){return console.log(e),this.userApi.resetPassword(e)}resetPassword(e,t){return this.userApi.setPassword(e,t)}changePassword(e,t){return this.userApi.changePassword(e,t)}logout(e){return this.userApi.logout()}verifyEmail(e){return this.userApi.verify(e)}unauthenticate(){this.auth.setToken(null),this.logout()}}return e.\u0275fac=function(t){return new(t||e)(o.gc(i.y),o.gc(i.n),o.gc(r.a))},e.\u0275prov=o.Pb({token:e,factory:e.\u0275fac}),e})()},VbXa:function(e,t,n){var i=n("SksO");e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},VhLf:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getEvent(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/event",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}
1findByIdPayments(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/payments/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}findByIdRecordings(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/recordings/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdRecordings(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/recordings/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdRecordings(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/recordings/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}findByIdSurveySubmissions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/surveySubmissions/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdSurveySubmissions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/surveySubmissions/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdSurveySubmissions(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/surveySubmissions/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}findByIdExamSubmissions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/examSubmissions/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdExamSubmissions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/examSubmissions/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdExamSubmissions(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/examSubmissions/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}getLogbookSubscription(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/logbookSubscription",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}createLogbookSubscription(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/logbookSubscription";return this.request("POST",i,{id:e},{},{data:t},null,n)}updateLogbookSubscription(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/logbookSubscription";return this.request("PUT",i,{id:e},{},{data:t},null,n)}destroyLogbookSubscription(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/logbookSubscription";return this.request("DELETE",n,{id:e},{},{},null,t)}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getPayments(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/payments",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}countPayments(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/payments/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getRecordings(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/recordings",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createRecordings(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/recordings";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteRecordings(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/recordings";return this.request("DELETE",n,{id:e},{},{},null,t)}countRecordings(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/recordings/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getSurveySubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/surveySubmissions",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createSurveySubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/surveySubmissions";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteSurveySubmissions(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/surveySubmissions";return this.request("DELETE",n,{id:e},{},{},null,t)}countSurveySubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/surveySubmissions/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}
1getExamSubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/examSubmissions",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createExamSubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/examSubmissions";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteExamSubmissions(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/examSubmissions";return this.request("DELETE",n,{id:e},{},{},null,t)}countExamSubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/examSubmissions/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}submit(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/submit";return this.request("POST",n,{id:e},{},{},null,t)}attended(e={},t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/result/attended",r={};return null!=e&&(r.where=e),null!=t&&(r.amount=t),this.request("POST",i,{},r,{},null,n)}passed(e={},t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/result/passed",r={};return null!=e&&(r.where=e),null!=t&&(r.data_acquisizione=t),this.request("POST",i,{},r,{},null,n)}failed(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/result/failed",i={};return null!=e&&(i.where=e),this.request("POST",n,{},i,{},null,t)}set_role(e={},t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/role",r={};return null!=e&&(r.subscriptionId=e),null!=t&&(r.role=t),this.request("POST",i,{},r,{},null,n)}startSurvey(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/start-survey",r={id:e},s={};return null!=t&&(s.name=t),this.request("POST",i,r,s,{},null,n)}startExam(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/start-exam";return this.request("POST",n,{id:e},{},{},null,t)}evaluate(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/evaluate";return this.request("POST",n,{id:e},{},{},null,t)}generateCertificatePassed(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/certificate-passed";return this.request("POST",n,{id:e},{},{},null,t)}generateCertificateLogbook(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/certificate-logbook";return this.request("POST",n,{id:e},{},{},null,t)}generateCertificateParticipation(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/certificate-participation";return this.request("POST",n,{id:e},{},{},null,t)}progress_material(e,t={},n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/progress-material",s={id:e},a={};return null!=t&&(a.materialId=t),null!=n&&(a.progress=n),this.request("POST",r,s,a,{},null,i)}verify_progress(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/progress/verify";return this.request("POST",n,{id:e},{},{},null,t)}reset_progress(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/progress/reset";return this.request("POST",n,{id:e},{},{},null,t)}uploadrequest_doc(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/upload/request_doc";return this.request("POST",n,{id:e},{},{},null,t)}downloadrequest_doc(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/request_doc/:filename";return this.request("GET",i,{id:e,filename:t},{},{},null,n)}downloadcertificate(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/certificate/:filename";return this.request("GET",i,{id:e,filename:t},{},{},null,n)}downloadparticipation(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/participation/:filename";return this.request("GET",i,{id:e,filename:t},{},{},null,n)}downloadlogbook_certificate(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/logbook_certificate/:filename";return this.request("GET",i,{id:e,filename:t},{},{},null,n)}getIdCode(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/code";return this.request("GET",n,{id:e},{},{},null,t)}verifyIdCode(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/code/verify";return this.request("POST",n,{},{},{code:e},null,t)}payment(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/payment",r={id:e},s={};return null!=t&&(s.amount=t),this.request("POST",i,r,s,{},null,n)}createManyLogbookSubscription(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/logbookSubscription";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyRecordings(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/recordings";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManySurveySubmissions(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/surveySubmissions";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyExamSubmissions(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSubscriptions/:id/examSubmissions";return this.request("POST",i,{id:e},{},{data:t},null,n)}getModelName(){return"CourseSubscription"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},WMd4:function(e,t,n){"use strict";n.d(t,"b",function(){return o}
vendor: 1,341 bytes, line 1
1),n.d(t,"a",function(){return a});var i=n("EY2u"),r=n("LRne"),s=n("z6cu"),o=function(e){return e.NEXT="N",e.ERROR="E",e.COMPLETE="C",e}({});let a=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return Object(r.a)(this.value);case"E":return Object(s.a)(this.error);case"C":return Object(i.b)()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})()},WOAq:function(e,t,n){"use strict";(function(e){var i=n("Ju5/"),r=n("L3Qv"),s="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=s&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===s?i.a.Buffer:void 0;t.a=(a?a.isBuffer:void 0)||r.a}).call(this,n("3UD+")(e))}
1,WOIe:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getSurvey(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriterMappings/:id/survey",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getWriter(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriterMappings/:id/writer",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriterMappings/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}addPermissions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriterMappings/:id/addPermissions",r={id:e},s={};return null!=t&&(s.permissions=t),this.request("POST",i,r,s,{},null,n)}removePermissions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriterMappings/:id/removePermissions",r={id:e},s={};return null!=t&&(s.permissions=t),this.request("DELETE",i,r,s,{},null,n)}getModelName(){return"SurveyWriterMapping"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},WqWh:function(e,t,n){"use strict";var i=n("HiID");n.d(t,"B",function(){return i.a});var r=n("aQkB");n.d(t,"q",function(){return r.a}),n("ZAa1");var s=n("S9ev");n.d(t,"u",function(){return s.a});var o=n("mwqi");n.d(t,"v",function(){return o.a}),n("CkpO"),n("297U");var a=n("Tay8");n.d(t,"y",function(){return a.a}),n("YJJE"),n("x2L9"),n("Yqxh"),n("/EUI"),n("IIog"),n("gwhv"),n("gR38"),n("q6L4"),n("E+C+"),n("KPoR"),n("5E0y"),n("rpR/"),n("qy9N"),n("4Uw3"),n("73JB"),n("jjGg"),n("aJv/"),n("QUy1"),n("h2bF");var c=n("BwjC");n.d(t,"A",function(){return c.a});var l=n("ZkRv");n.d(t,"w",function(){return l.a});var u=n("4FZV");n.d(t,"x",function(){return u.a}),n("Gtye"),n("tiT6"),n("0Jqp"),n("02tb"),n("Ko1m"),n("Tswa"),n("dmrq"),n("XULj"),n("WOIe"),n("iNuQ"),n("aE8l"),n("tcjf"),n("8MBb"),n("wtl+");var d=n("CN4m");n.d(t,"s",function(){return d.a});var h=n("Z2ef");n.d(t,"r",function(){return h.a});var p=n("NYyb");n.d(t,"t",function(){return p.a}),n("9xGf"),n("NAvl"),n("+5j6");var f=n("Npty");n.d(t,"b",function(){return f.a});var g=n("4/HM");n.d(t,"g",function(){return g.a});var m=n("/Gct");n.d(t,"a",function(){return m.a});var b=n("fD28");n.d(t,"k",function(){return b.a});var y=n("6xty");n.d(t,"i",function(){return y.a});var v=n("p3SZ");n.d(t,"j",function(){return v.a});var _=n("SMod");n.d(t,"f",function(){return _.a});var w=n("NQ+2");n.d(t,"e",function(){return w.a});var k=n("1Qjk");n.d(t,"c",function(){return k.a});var C=n("rpDa");n.d(t,"l",function(){return C.a});var S=n("yvWd");n.d(t,"h",function(){return S.a});var T=n("ESDr");n.d(t,"m",function(){return T.a});var P=n("7MCs");n.d(t,"d",function(){return P.a});var O=n("V5ut");n.d(t,"n",function(){return O.a});var x=n("VhLf");n.d(t,"o",function(){return x.a}),n("QagM"),n("Ojyw"),n("r9BH");var A=n("tVOf");n.d(t,"p",function(){return A.a}),n("oscR"),n("zPie"),n("wm+Y"),n("sujq"),n("iqoP"),n("K4mn"),n("xRy2"),n("oh6q");var E=n("6feL");n.d(t,"z",function(){return E.a}),n("Zvzv"),n("80r4")},Wr5T:function(e,t){!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=window.document,t=[];i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i.prototype.observe=function(e){if(!this._observationTargets.some(function(t){return t.element==e})){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},i.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},i.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},i.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]})},i.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map(function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},i.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(r(window,"resize",this._checkForIntersections,!0),r(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},i.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,s(window,"resize",this._checkForIntersections,!0),s(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},i.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};
1this._observationTargets.forEach(function(i){var r=i.element,s=o(r),a=this._rootContainsTarget(r),c=i.entry,l=e&&a&&this._computeTargetAndRootIntersection(r,t),u=i.entry=new n({time:window.performance&&performance.now&&performance.now(),target:r,boundingClientRect:s,rootBounds:t,intersectionRect:l});c?e&&a?this._hasCrossedThreshold(c,u)&&this._queuedEntries.push(u):c&&c.isIntersecting&&this._queuedEntries.push(u):this._queuedEntries.push(u)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},i.prototype._computeTargetAndRootIntersection=function(t,n){if("none"!=window.getComputedStyle(t).display){for(var i,r,s,a,l,u,d,h,p=o(t),f=c(t),g=!1;!g;){var m=null,b=1==f.nodeType?window.getComputedStyle(f):{};if("none"==b.display)return;if(f==this.root||f==e?(g=!0,m=n):f!=e.body&&f!=e.documentElement&&"visible"!=b.overflow&&(m=o(f)),m&&(i=m,r=p,s=Math.max(i.top,r.top),a=Math.min(i.bottom,r.bottom),l=Math.max(i.left,r.left),h=a-s,!(p=(d=(u=Math.min(i.right,r.right))-l)>=0&&h>=0&&{top:s,bottom:a,left:l,right:u,width:d,height:h})))break;f=c(f)}return p}},i.prototype._getRootRect=function(){var t;if(this.root)t=o(this.root);else{var n=e.documentElement,i=e.body;t={top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(t)},i.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map(function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100}),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},i.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,i=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==i)for(var r=0;r<this.thresholds.length;r++){var s=this.thresholds[r];if(s==n||s==i||s<n!=s<i)return!0}},i.prototype._rootIsInDom=function(){return!this.root||a(e,this.root)},i.prototype._rootContainsTarget=function(t){return a(this.root||e,t)},i.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},i.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=i,window.IntersectionObserverEntry=n}function n(e){this.time=e.time,this.target=e.target,this.rootBounds=e.rootBounds,this.boundingClientRect=e.boundingClientRect,this.intersectionRect=e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0},this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,i=this.intersectionRect;this.intersectionRatio=n?Number((i.width*i.height/n).toFixed(4)):this.isIntersecting?1:0}function i(e,t){var n,i,r,s=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(s.root&&1!=s.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),i=this.THROTTLE_TIMEOUT,r=null,function(){r||(r=setTimeout(function(){n(),r=null},i))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(s.rootMargin),this.thresholds=this._initThresholds(s.threshold),this.root=s.root||null,this.rootMargin=this._rootMarginValues.map(function(e){return e.value+e.unit}).join(" ")}function r(e,t,n,i){"function"==typeof e.addEventListener?e.addEventListener(t,n,i||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function s(e,t,n,i){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,i||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function o(e){var t;try{t=e.getBoundingClientRect()}catch(n){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function a(e,t){for(var n=t;n;){if(n==e)return!0;n=c(n)}return!1}function c(e){var t=e.parentNode;return t&&11==t.nodeType&&t.host?t.host:t&&t.assignedSlot?t.assignedSlot.parentNode:t}}()},XDbj:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("sVev"),r=n("7o/Q");function s(e=c){return t=>t.lift(new o(e))}class o{constructor(e){this.errorFactory=e}
1call(e,t){return t.subscribe(new a(e,this.errorFactory))}}class a extends r.a{constructor(e,t){super(e),this.errorFactory=t,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function c(){return new i.a}},XNiG:function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"a",function(){return u});var i=n("HDdC"),r=n("7o/Q"),s=n("quSY"),o=n("9ppp"),a=n("Ylt2"),c=n("2QA8");class l extends r.a{constructor(e){super(e),this.destination=e}}let u=(()=>{class e extends i.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.a](){return new l(this)}lift(e){const t=new d(this,this);return t.operator=e,t}next(e){if(this.closed)throw new o.a;if(!this.isStopped){const{observers:t}=this,n=t.length,i=t.slice();for(let r=0;r<n;r++)i[r].next(e)}}error(e){if(this.closed)throw new o.a;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,i=t.slice();for(let r=0;r<n;r++)i[r].error(e);this.observers.length=0}complete(){if(this.closed)throw new o.a;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let i=0;i<t;i++)n[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new o.a;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new o.a;return this.hasError?(e.error(this.thrownError),s.a.EMPTY):this.isStopped?(e.complete(),s.a.EMPTY):(this.observers.push(e),new a.a(this,e))}asObservable(){const e=new i.a;return e.source=this,e}}return e.create=(e,t)=>new d(e,t),e})();class d extends u{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):s.a.EMPTY}}},XULj:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}findByIdSurveys(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdSurveys(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdSurveys(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}linkSurveys(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/rel/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}unlinkSurveys(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/rel/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}existsSurveys(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/rel/:fk";return this.request("HEAD",i,{id:e,fk:t},{},{},null,n)}findByIdMappings(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/mappings/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdMappings(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/mappings/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdMappings(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/mappings/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getSurveys(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createSurveys(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteSurveys(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys";return this.request("DELETE",n,{id:e},{},{},null,t)}countSurveys(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getMappings(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/mappings",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createMappings(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/mappings";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteMappings(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/mappings";return this.request("DELETE",n,{id:e},{},{},null,t)}countMappings(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/mappings/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}me(e){let t=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/me";return this.request("GET",t,{},{},{},null,e)}checkPermissions(e,t,n,i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/c
1heckPermissions/:surveyId",s={id:e},a={};return null!=t&&(a.surveyId=t),null!=n&&(a.permissions=n),this.request("GET",r,s,a,{},null,i)}addPermissions(e,t,n,i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/addPermissions",s={};return null!=e&&(s.writerId=e),null!=t&&(s.surveyId=t),null!=n&&(s.permissions=n),this.request("POST",r,{},s,{},null,i)}removePermissions(e,t,n,i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/removePermissions",s={};return null!=e&&(s.writerId=e),null!=t&&(s.surveyId=t),null!=n&&(s.permissions=n),this.request("DELETE",r,{},s,{},null,i)}setSubscription(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/setSubscription",r={};return null!=e&&(r.writerId=e),null!=t&&(r.subscription=t),this.request("POST",i,{},r,{},null,n)}getDashboard(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/dashboard";return this.request("GET",n,{id:e},{},{},null,t)}findByIdSurveysAccesses(e,t,n,i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/accesses/:fk";return this.request("GET",r,{id:e,nk:t,fk:n},{},{},null,i)}destroyByIdSurveysAccesses(e,t,n,i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/accesses/:fk";return this.request("DELETE",r,{id:e,nk:t,fk:n},{},{},null,i)}updateByIdSurveysAccesses(e,t,n,i={},r){let s=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/accesses/:fk";return this.request("PUT",s,{id:e,nk:t,fk:n},{},{data:i},null,r)}findByIdSurveysCompilers(e,t,n,i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/compilers/:fk";return this.request("GET",r,{id:e,nk:t,fk:n},{},{},null,i)}destroyByIdSurveysCompilers(e,t,n,i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/compilers/:fk";return this.request("DELETE",r,{id:e,nk:t,fk:n},{},{},null,i)}updateByIdSurveysCompilers(e,t,n,i={},r){let s=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/compilers/:fk";return this.request("PUT",s,{id:e,nk:t,fk:n},{},{data:i},null,r)}linkSurveysCompilers(e,t,n,i={},r){let s=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/compilers/rel/:fk";return this.request("PUT",s,{id:e,nk:t,fk:n},{},{data:i},null,r)}unlinkSurveysCompilers(e,t,n,i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/compilers/rel/:fk";return this.request("DELETE",r,{id:e,nk:t,fk:n},{},{},null,i)}existsSurveysCompilers(e,t,n,i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/compilers/rel/:fk";return this.request("HEAD",r,{id:e,nk:t,fk:n},{},{},null,i)}findByIdSurveysSubmissions(e,t,n,i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/submissions/:fk";return this.request("GET",r,{id:e,nk:t,fk:n},{},{},null,i)}destroyByIdSurveysSubmissions(e,t,n,i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/submissions/:fk";return this.request("DELETE",r,{id:e,nk:t,fk:n},{},{},null,i)}updateByIdSurveysSubmissions(e,t,n,i={},r){let s=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/submissions/:fk";return this.request("PUT",s,{id:e,nk:t,fk:n},{},{data:i},null,r)}findByIdSurveysWriters(e,t,n,i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/writers/:fk";return this.request("GET",r,{id:e,nk:t,fk:n},{},{},null,i)}destroyByIdSurveysWriters(e,t,n,i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/writers/:fk";return this.request("DELETE",r,{id:e,nk:t,fk:n},{},{},null,i)}updateByIdSurveysWriters(e,t,n,i={},r){let s=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/writers/:fk";return this.request("PUT",s,{id:e,nk:t,fk:n},{},{data:i},null,r)}linkSurveysWriters(e,t,n,i={},r){let s=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/writers/rel/:fk";return this.request("PUT",s,{id:e,nk:t,fk:n},{},{data:i},null,r)}unlinkSurveysWriters(e,t,n,i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/writers/rel/:f
1k";return this.request("DELETE",r,{id:e,nk:t,fk:n},{},{},null,i)}existsSurveysWriters(e,t,n,i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/writers/rel/:fk";return this.request("HEAD",r,{id:e,nk:t,fk:n},{},{},null,i)}findByIdSurveysRequests(e,t,n,i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/requests/:fk";return this.request("GET",r,{id:e,nk:t,fk:n},{},{},null,i)}destroyByIdSurveysRequests(e,t,n,i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/requests/:fk";return this.request("DELETE",r,{id:e,nk:t,fk:n},{},{},null,i)}updateByIdSurveysRequests(e,t,n,i={},r){let s=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/requests/:fk";return this.request("PUT",s,{id:e,nk:t,fk:n},{},{data:i},null,r)}getSurveysAccesses(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/accesses",s={id:e,nk:t},a={};return null!=n&&(a.filter=n),this.request("GET",r,s,a,{},null,i)}createSurveysAccesses(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/accesses";return this.request("POST",r,{id:e,nk:t},{},{data:n},null,i)}deleteSurveysAccesses(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/accesses";return this.request("DELETE",i,{id:e,nk:t},{},{},null,n)}countSurveysAccesses(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/accesses/count",s={id:e,nk:t},a={};return null!=n&&(a.where=n),this.request("GET",r,s,a,{},null,i)}getSurveysCompilers(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/compilers",s={id:e,nk:t},a={};return null!=n&&(a.filter=n),this.request("GET",r,s,a,{},null,i)}createSurveysCompilers(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/compilers";return this.request("POST",r,{id:e,nk:t},{},{data:n},null,i)}deleteSurveysCompilers(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/compilers";return this.request("DELETE",i,{id:e,nk:t},{},{},null,n)}countSurveysCompilers(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/compilers/count",s={id:e,nk:t},a={};return null!=n&&(a.where=n),this.request("GET",r,s,a,{},null,i)}getSurveysSubmissions(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/submissions",s={id:e,nk:t},a={};return null!=n&&(a.filter=n),this.request("GET",r,s,a,{},null,i)}createSurveysSubmissions(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/submissions";return this.request("POST",r,{id:e,nk:t},{},{data:n},null,i)}deleteSurveysSubmissions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/submissions";return this.request("DELETE",i,{id:e,nk:t},{},{},null,n)}countSurveysSubmissions(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/submissions/count",s={id:e,nk:t},a={};return null!=n&&(a.where=n),this.request("GET",r,s,a,{},null,i)}getSurveysWriters(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/writers",s={id:e,nk:t},a={};return null!=n&&(a.filter=n),this.request("GET",r,s,a,{},null,i)}createSurveysWriters(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/writers";return this.request("POST",r,{id:e,nk:t},{},{data:n},null,i)}deleteSurveysWriters(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/writers";return this.request("DELETE",i,{id:e,nk:t},{},{},null,n)}countSurveysWriters(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/writers/count",s={id:e,nk:t},a={};return null!=n&&(a.where=n),this.request("GET",r,s,a,{},null,i)}getSurveysRequests(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/requests",s={id:e,nk:t},a={};return null!=n&&(a.filter=n),this.request("GET",r,s,a,{},null,i)}createSurveysRequests(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/requests";return this.request("POST",r,{id:e,nk:t},{},{data:n},null,i)}
1deleteSurveysRequests(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/requests";return this.request("DELETE",i,{id:e,nk:t},{},{},null,n)}countSurveysRequests(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/requests/count",s={id:e,nk:t},a={};return null!=n&&(a.where=n),this.request("GET",r,s,a,{},null,i)}inviteWriterSurveys(e,t,n,i,r={},s){let a=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/inviteWriter",c={id:e,nk:t},l={};return null!=n&&(l.email=n),null!=i&&(l.writerData=i),null!=r&&(l.permissions=r),this.request("POST",a,c,l,{},null,s)}inviteCompilerSurveys(e,t,n,i,r){let s=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/inviteCompiler",a={id:e,nk:t},c={};return null!=n&&(c.email=n),null!=i&&(c.accessData=i),this.request("POST",s,a,c,{},null,r)}getStatsSurveys(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/getStats",s={id:e,nk:t},a={};return null!=n&&(a.filter=n),this.request("GET",r,s,a,{},null,i)}downloadSubmissionsSurveys(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/downloadSubmissions",s={id:e,nk:t},a={};return null!=n&&(a.query=n),this.request("GET",r,s,a,{},null,i)}uploadSchemaSurveys(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/uploadSchema";return this.request("POST",i,{id:e,nk:t},{},{},null,n)}uploadLogoSurveys(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/uploadLogo";return this.request("POST",i,{id:e,nk:t},{},{},null,n)}getByIdSurveysFull(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/full",s={id:e,nk:t},a={};return null!=n&&(a.filter=n),this.request("GET",r,s,a,{},null,i)}confirmSurveysRequests(e,t,n,i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/requests/:fk/confirm";return this.request("PUT",r,{id:e,nk:t,fk:n},{},{},null,i)}hideSurveysRequests(e,t,n,i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/requests/:fk/hide";return this.request("PUT",r,{id:e,nk:t,fk:n},{},{},null,i)}createManySurveys(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyMappings(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/mappings";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManySurveysAccesses(e,t,n=[],i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/accesses";return this.request("POST",r,{id:e,nk:t},{},{data:n},null,i)}createManySurveysCompilers(e,t,n=[],i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/compilers";return this.request("POST",r,{id:e,nk:t},{},{data:n},null,i)}createManySurveysSubmissions(e,t,n=[],i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/submissions";return this.request("POST",r,{id:e,nk:t},{},{data:n},null,i)}createManySurveysWriters(e,t,n=[],i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/writers";return this.request("POST",r,{id:e,nk:t},{},{data:n},null,i)}createManySurveysRequests(e,t,n=[],i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyWriters/:id/surveys/:nk/requests";return this.request("POST",r,{id:e,nk:t},{},{data:n},null,i)}getModelName(){return"SurveyWriter"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},XVbR:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiInstituteMapping"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiInstituteMapping",plural:"SimiInstituteMappings",path:"SimiInstituteMappings",idName:"id",properties:{instituteId:{name:"instituteId",type:"any"},centerId:{name:"centerId",type:"any"},userId:{name:"userId",type:"any"},qualifiche:{name:"qualifiche",type:"Array<any>"},specializzazione:{name:"specializzazione",type:"string"},anno_specializzazione:{name:"anno_specializzazione",type:"number"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{institute:{name:"institute",type:"SimiInstitute",model:"SimiInstitute",relationType:"belongsTo",keyFrom:"instituteId",keyTo:"id"}
1,center:{name:"center",type:"SimiCenter",model:"SimiCenter",relationType:"belongsTo",keyFrom:"centerId",keyTo:"id"},user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},XdDp:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("pGcS"),r=n("5V3d"),s=n("fXoL");let o=(()=>{class e{constructor(e){this.storage=e,this.token=new r.a,this.prefix="$LoopBackSDK$",this.token.id=this.load("id"),this.token.user=this.load("user"),this.token.userId=this.load("userId"),this.token.created=this.load("created"),this.token.ttl=this.load("ttl"),this.token.rememberMe=this.load("rememberMe")}setRememberMe(e){this.token.rememberMe=e}setUser(e){this.token.user=e,this.save()}setToken(e){this.token=Object.assign({},this.token,e),this.save()}getToken(){return this.token}getAccessTokenId(){return this.token.id}getCurrentUserId(){return this.token.userId}getCurrentUserData(){return"string"==typeof this.token.user?JSON.parse(this.token.user):this.token.user}save(){let e=new Date,t=new Date(e.getTime()+1e3*this.token.ttl);return this.persist("id",this.token.id,t),this.persist("user",this.token.user,t),this.persist("userId",this.token.userId,t),this.persist("created",this.token.created,t),this.persist("ttl",this.token.ttl,t),this.persist("rememberMe",this.token.rememberMe,t),!0}load(e){return this.storage.get(`${this.prefix}${e}`)}clear(){Object.keys(this.token).forEach(e=>this.storage.remove(`${this.prefix}${e}`)),this.token=new r.a}persist(e,t,n){try{this.storage.set(`${this.prefix}${e}`,"object"==typeof t?JSON.stringify(t):t,this.token.rememberMe?n:null)}catch(i){console.error("Cannot access local/session storage:",i)}}}return e.\u0275fac=function(t){return new(t||e)(s.gc(i.a))},e.\u0275prov=s.Pb({token:e,factory:e.\u0275fac}),e})()},Xk39:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("kU1M");t._catch=function(e){return i.catchError(e)(this)}},XoHu:function(e,t,n){"use strict";function i(e){return null!==e&&"object"==typeof e}n.d(t,"a",function(){return i})},XqMk:function(e,t,n){"use strict";var i="object"==typeof global&&global&&global.Object===Object&&global;t.a=i},XqQ8:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("lJxs"),r=n("Cfvw"),s=n("zx2A");function o(e,t){return t?n=>n.pipe(o((n,s)=>Object(r.a)(e(n,s)).pipe(Object(i.a)((e,i)=>t(n,e,s,i))))):t=>t.lift(new a(e))}class a{constructor(e){this.project=e}call(e,t){return t.subscribe(new c(e,this.project))}}class c extends s.b{constructor(e,t){super(e),this.project=t,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(e){this.hasSubscription||this.tryNext(e)}tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(t)}_innerSub(e){const t=new s.a(this),n=this.destination;n.add(t);const i=Object(s.c)(e,t);i!==t&&n.add(i)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}},Xuvu:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"Congress"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"Congress",plural:"Congresses",path:"Congresses",idName:"id",properties:{abstract_mode:{name:"abstract_mode",type:"number"},abstract_lang:{name:"abstract_lang",type:"string"},submissions_start:{name:"submissions_start",type:"Date"},submissions_end:{name:"submissions_end",type:"Date"},reviews_start:{name:"reviews_start",type:"Date"},reviews_end:{name:"reviews_end",type:"Date"},fields:{name:"fields",type:"Array<any>"},scores:{name:"scores",type:"Array<any>"},progressive_number:{name:"progressive_number",type:"number",default:0},ecm:{name:"ecm",type:"any"},payment_details:{name:"payment_details",type:"string"},payment_data:{name:"payment_data",type:"any"},program:{name:"program",type:"string"},sezione_regionale:{name:"sezione_regionale",type:"string",default:"null"},fad:{name:"fad",type:"number"},webinar:{name:"webinar",type:"any"},quality_surveyId:{name:"quality_surveyId",type:"any"},ecm_surveyId:{name:"ecm_surveyId",type:"any"},examId:{name:"examId",type:"any"},days:{name:"days",type:"Array<any>"},demo:{name:"demo",type:"boolean"},sponsorIds:{name:"sponsorIds",type:"Array<any>",default:[]},header:{name:"header",type:"any"},logbookId:{name:"logbookId",type:"string"},progress_mode:{name:"progress_mode",type:"number"},name:{name:"name",type:"string"},edition:{name:"edition",type:"number"},type:{name:"type",type:"string"},date_start:{name:"date_start",type:"Date"},date_end:{name:"date_end",type:"Date"},sede:{name:"sede",type:"string"},address:{name:"address",type:"any"},description:{name:"description",type:"string"},picture:{name:"picture",type:"any"},status:{name:"status",type:"string",default:"pending"},tags:{name:"tags",type:"Array<any>"},subscriptions_end:{name:"subscriptions_end",type:"Date"},subscriptions_max:{name:"subscriptions_max",type:"number"},subscriptions_count:{name:"subscriptions_count",type:"number"},access_level:{name:"access_level",type:"number",default:0},public_name:{name:"public_name",type:"string"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{settings:{name:"settings",type:"any",model:"",relationType:"hasOne",keyFrom:"id",keyTo:"eventId"},links:{name:"links",type:"any[]",model:"",relationType:"hasMany",keyFrom:"id",keyTo:"eventId"},quality_survey:{name:"quality_survey",type:"SimiEventSurvey",model:"SimiEventSurvey",relationType:"belongsTo",keyFrom:"quality_surveyId",keyTo:"id"},ecm_survey:{name:"ecm_survey",type:"SimiEventSurvey",model:"SimiEventSurvey",relationType:"belongsTo",keyFrom:"ecm_surveyId",keyTo:"id"},exam:{name:"exam",type:"SimiEventExam",model:"SimiEventExam",relationType:"belongsTo",keyFrom:"examId",keyTo:"id"},sponsors:{name:"sponsors",type:"SimiSponsor[]",model:"SimiSponsor",relationType:"referencesMany",keyFrom:"sponsorIds",keyTo:"id"},roles:{name:"roles",type:"SimiEventRole[]",model:"SimiEventRole",relationType:"hasMany",keyFrom:"id",keyTo:"eventId"},threads:{name:"threads",type:"SimiEventThread[]",model:"SimiEventThread",relationType:"hasMany",keyFrom:"id",keyTo:"eventId"},accesses:{name:"accesses",type:"CongressAccess[]",model:"CongressAccess",relationType:"hasMany",keyFrom:"id",keyTo:"congressId"},submissions:{name:"submissions",type:"CongressSubmission[]",model:"CongressSubmission",relationType:"hasMany",keyFrom:"id",keyTo:"congressId"},reviews:{name:"reviews",type:"CongressReview[]",model:"CongressReview",relationType:"hasMany",keyFrom:"id",keyTo:"congressId"}
1,assignments:{name:"assignments",type:"CongressReviewAssignment[]",model:"CongressReviewAssignment",relationType:"hasMany",keyFrom:"id",keyTo:"congressId"},materials:{name:"materials",type:"CongressMaterial[]",model:"CongressMaterial",relationType:"hasMany",keyFrom:"id",keyTo:"eventId"},lives:{name:"lives",type:"CongressLive[]",model:"CongressLive",relationType:"hasMany",keyFrom:"id",keyTo:"eventId"},events:{name:"events",type:"CongressEvent[]",model:"CongressEvent",relationType:"hasMany",keyFrom:"id",keyTo:"congressId"},subscriptions:{name:"subscriptions",type:"CongressSubscription[]",model:"CongressSubscription",relationType:"hasMany",keyFrom:"id",keyTo:"eventId"}}}}}},"Y/cZ":function(e,t,n){"use strict";n.d(t,"a",function(){return i});let i=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})()},Y6u4:function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=(()=>{function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e})()},Y7HM:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("DH7j");function r(e){return!Object(i.a)(e)&&e-parseFloat(e)+1>=0}},YBtx:function(e,t,n){"use strict";var i={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"pi\xf9 di un anno",other:"pi\xf9 di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},r=n("zMQz"),s={date:Object(r.a)({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:Object(r.a)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Object(r.a)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},o=n("jIYg"),a=n("1vjI");function c(e,t,n){Object(o.a)(2,arguments);var i=Object(a.a)(e,n),r=Object(a.a)(t,n);return i.getTime()===r.getTime()}var l=["domenica","luned\xec","marted\xec","mercoled\xec","gioved\xec","venerd\xec","sabato"];function u(e){return"'"+l[e]+" alle' p"}var d={lastWeek:function(e,t,n){var i=e.getUTCDay();return c(e,t,n)?u(i):function(e){return 0===e?"'domenica scorsa alle' p":"'"+l[e]+" scorso alle' p"}(i)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(e,t,n){var i=e.getUTCDay();return c(e,t,n)?u(i):function(e){return 0===e?"'domenica prossima alle' p":"'"+l[e]+" prossimo alle' p"}(i)},other:"P"},h=n("ku8+"),p={ordinalNumber:function(e,t){var n=Number(e);return String(n)},era:Object(h.a)({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:Object(h.a)({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Object(h.a)({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:Object(h.a)({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","luned\xec","marted\xec","mercoled\xec","gioved\xec","venerd\xec","sabato"]},defaultWidth:"wide"}),dayPeriod:Object(h.a)({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}}
1,defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})},f=n("wzM+"),g=n("vRX4"),m={ordinalNumber:Object(g.a)({matchPattern:/^(\d+)(\xba)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:Object(f.a)({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:"any"}),quarter:Object(f.a)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](\xba)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Object(f.a)({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Object(f.a)({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|\xec]|marted[i|\xec]|mercoled[i|\xec]|gioved[i|\xec]|venerd[i|\xec]|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:Object(f.a)({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:"any"})};t.a={code:"it",formatDistance:function(e,t,n){var r,s=i[e];return r="string"==typeof s?s:1===t?s.one:s.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"tra "+r:r+" fa":r},formatLong:s,formatRelative:function(e,t,n,i){var r=d[e];return"function"==typeof r?r(t,n,i):r},localize:p,match:m,options:{weekStartsOn:1,firstWeekContainsDate:4}}},YJJE:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getPresident(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiSections/:id/president",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiSections/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}sendEmail(e,t={},n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiSections/send-email",s={};return null!=e&&(s.sezione_regionale=e),null!=t&&(s.email=t),null!=n&&(s.query=n),this.request("POST",r,{},s,{},null,i)}getAssociates(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiSections/associates",r={};return null!=e&&(r.sezione_regionale=e),null!=t&&(r.query=t),this.request("GET",i,{},r,{},null,n)}getModelName(){return"SimiSection"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},YUvt:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiEventThread"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiEventThread",plural:"SimiEventThreads",path:"SimiEventThreads",i
1dName:"id",properties:{eventId:{name:"eventId",type:"any"},name:{name:"name",type:"string"},description:{name:"description",type:"string"},access:{name:"access",type:"number"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{event:{name:"event",type:"SimiEvent",model:"SimiEvent",relationType:"belongsTo",keyFrom:"eventId",keyTo:"id"},comments:{name:"comments",type:"SimiEventThreadComment[]",model:"SimiEventThreadComment",relationType:"hasMany",keyFrom:"id",keyTo:"threadId"}}}}}},YcCt:function(e,t,n){"use strict";function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,r){n=n||"=";var s={};if("string"!=typeof e||0===e.length)return s;var o=/\+/g;e=e.split(t=t||"&");var a=1e3;r&&"number"==typeof r.maxKeys&&(a=r.maxKeys);var c=e.length;a>0&&c>a&&(c=a);for(var l=0;l<c;++l){var u,d,h,p,f=e[l].replace(o,"%20"),g=f.indexOf(n);g>=0?(u=f.substr(0,g),d=f.substr(g+1)):(u=f,d=""),h=decodeURIComponent(u),p=decodeURIComponent(d),i(s,h)?Array.isArray(s[h])?s[h].push(p):s[h]=[s[h],p]:s[h]=p}return s}},"Ye2+":function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiSponsor"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiSponsor",plural:"SimiSponsors",path:"SimiSponsors",idName:"id",properties:{userId:{name:"userId",type:"any"},name:{name:"name",type:"string"},description:{name:"description",type:"string"},url:{name:"url",type:"string"},logo:{name:"logo",type:"any"},contacts:{name:"contacts",type:"Array<any>"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},Ylt2:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("quSY");class r extends i.a{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},Yqxh:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}findByIdAccessTokens(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CoreUserDevices/:id/accessTokens/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdAccessTokens(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CoreUserDevices/:id/accessTokens/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdAccessTokens(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/CoreUserDevices/:id/accessTokens/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CoreUserDevices/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getAccessTokens(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CoreUserDevices/:id/accessTokens",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createAccessTokens(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CoreUserDevices/:id/accessTokens";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteAccessTokens(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CoreUserDevices/:id/accessTokens";return this.request("DELETE",n,{id:e},{},{},null,t)}countAccessTokens(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CoreUserDevices/:id/accessTokens/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CoreUserDevices/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}info(e){let t=o.a.getPath()+"/"+o.a.getApiVersion()+"/CoreUserDevices/info";return this.request("GET",t,{},{},{},null,e)}register(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CoreUserDevices/register";return this.request("POST",n,{},{},{data:e},null,t)}createManyAccessTokens(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CoreUserDevices/:id/accessTokens";return this.request("POST",i,{id:e},{},{data:t},null,n)}getModelName(){return"CoreUserDevice"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},YuTi: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}},YwnE:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiSection"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiSection",plural:"SimiSections",path:"SimiSections",idName:"id",properties:{name:{name:"name",type:"string"},regions:{name:"regions",type:"Array<any>"},email:{name:"email",type:"string"},presidentId:{name:"presidentId",type:"any"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{president:{name:"president",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"presidentId",keyTo:"id"}}}}}},Z2ef:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getEvent(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventExams/:id/event",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventExams/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}activate(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventExams/:id/activate";return this.request("POST",n,{id:e},{},{},null,t)}close(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventExams/:id/close";return this.request("POST",n,{id:e},{},{},null,t)}checkValidity(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventExams/:id/c
1heck-validity";return this.request("GET",n,{id:e},{},{},null,t)}get_details(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventExams/:id/details";return this.request("GET",n,{id:e},{},{},null,t)}uploadattachments(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEventExams/:id/upload/attachments";return this.request("POST",n,{id:e},{},{},null,t)}getModelName(){return"SimiEventExam"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},Z92M:function(e,t){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},ZAa1:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEntities/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}getInstitute(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEntities/institute",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countInstitute(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEntities/institute/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}createInstitute(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEntities/institute";return this.request("POST",n,{},{},{data:e},null,t)}updateAllInstitute(e={},t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEntities/institute",r={data:t},s={};return null!=e&&(s.where=e),this.request("PATCH",i,{},s,r,null,n)}destroyAllInstitute(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEntities/institute",i={};return null!=e&&(i.where=e),this.request("DELETE",n,{},i,{},null,t)}getCategory(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEntities/category",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countCategory(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEntities/category/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}createCategory(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEntities/category";return this.request("POST",n,{},{},{data:e},null,t)}updateAllCategory(e={},t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEntities/category",r={data:t},s={};return null!=e&&(s.where=e),this.request("PATCH",i,{},s,r,null,n)}destroyAllCategory(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEntities/category",i={};return null!=e&&(i.where=e),this.request("DELETE",n,{},i,{},null,t)}getQualification(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEntities/qualification",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countQualification(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEntities/qualification/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}createQualification(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEntities/qualification";return this.request("POST",n,{},{},{data:e},null,t)}updateAllQualification(e={},t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEntities/qualification",r={data:t},s={};return null!=e&&(s.where=e),this.request("PATCH",i,{},s,r,null,n)}destroyAllQualification(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEntities/qualification",i={};return null!=e&&(i.where=e),this.request("DELETE",n,{},i,{},null,t)}getSpecialization(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEntities/specialization",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countSpecialization(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEntities/specialization/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}createSpecialization(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEntities/specialization";return this.request("POST",n,{},{},{data:e},null,t)}updateAllSpecialization(e={},t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEntities/specialization",r={data:t},s={};return null!=e&&(s.where=e),this.request("PATCH",i,{},s,r,null,n)}destroyAllSpecialization(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEntities/specialization",i={};return null!=e&&(i.where=e),this.request("DELETE",n,{},i,{},null,t)}createManyInstitute(e=[],t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEntities/institute";return this.request("POST",n,{},{},{data:e},null,t)}createManyCategory(e=[],t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEntities/category";return this.request("POST",n,{},{},{data:e},null,t)}createManyQualification(e=[],t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEntities/qualification";return this.request("POST",n,{},{},{data:e},null,t)}createManySpecialization(e=[],t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiEntities/specialization";return this.request("POST",n,{},{},{data:e},null,t)}getModelName(){return"SimiEntity"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},ZOsW:function(e,t,n){"use strict";n.d(t,"a",function(){return Me}),n.d(t,"b",function(){return Le}),n.d(t,"c",function(){return ce}),n.d(t,"d",function(){return le}),n.d(t,"e",function(){return ue}),n.d(t,"f",function(){return de}),n.d(t,"g",function(){return be});var i=n("fXoL"),r=n("3Pt+"),s=n("1G5W"),o=n("3UWI"),a=n("JX91"),c=n("v
1kgz"),l=n("Kj3r"),u=n("pLZG"),d=n("lJxs"),h=n("eNwd"),p=n("7Hc7"),f=n("XNiG"),g=n("xgIS"),m=n("VRyK"),b=n("ofXK");const y=["content"],v=["scroll"],_=["padding"],w=function(e){return{searchTerm:e}};function k(e,t){if(1&e&&(i.Zb(0,"div",6),i.Vb(1,7),i.Yb()),2&e){const e=i.nc();i.Gb(1),i.tc("ngTemplateOutlet",e.headerTemplate)("ngTemplateOutletContext",i.yc(2,w,e.filterValue))}}function C(e,t){if(1&e&&(i.Zb(0,"div",8),i.Vb(1,7),i.Yb()),2&e){const e=i.nc();i.Gb(1),i.tc("ngTemplateOutlet",e.footerTemplate)("ngTemplateOutletContext",i.yc(2,w,e.filterValue))}}const S=["*"],T=["searchInput"];function P(e,t){if(1&e){const e=i.ac();i.Zb(0,"span",15),i.jc("click",function(){i.Hc(e);const t=i.nc().$implicit;return i.nc(2).unselect(t)}),i.Qc(1,"\xd7"),i.Yb(),i.Ub(2,"span",16)}if(2&e){const e=i.nc().$implicit,t=i.nc(2);i.Gb(2),i.tc("ngItemLabel",e.label)("escape",t.escapeHTML)}}function O(e,t){}const x=function(e,t,n){return{item:e,clear:t,label:n}};function A(e,t){if(1&e&&(i.Zb(0,"div",12),i.Oc(1,P,3,2,"ng-template",null,13,i.Pc),i.Oc(3,O,0,0,"ng-template",14),i.Yb()),2&e){const e=t.$implicit,n=i.Fc(2),r=i.nc(2);i.Lb("ng-value-disabled",e.disabled),i.Gb(3),i.tc("ngTemplateOutlet",r.labelTemplate||n)("ngTemplateOutletContext",i.Ac(4,x,e.value,r.clearItem,e.label))}}function E(e,t){if(1&e&&(i.Xb(0),i.Oc(1,A,4,8,"div",11),i.Wb()),2&e){const e=i.nc();i.Gb(1),i.tc("ngForOf",e.selectedItems)("ngForTrackBy",e.trackByOption)}}function M(e,t){}const I=function(e,t){return{items:e,clear:t}};function R(e,t){if(1&e&&i.Oc(0,M,0,0,"ng-template",14),2&e){const e=i.nc();i.tc("ngTemplateOutlet",e.multiLabelTemplate)("ngTemplateOutletContext",i.zc(2,I,e.selectedValues,e.clearItem))}}function L(e,t){1&e&&i.Ub(0,"div",19)}function D(e,t){}function j(e,t){if(1&e&&(i.Xb(0),i.Oc(1,L,1,0,"ng-template",null,17,i.Pc),i.Oc(3,D,0,0,"ng-template",18),i.Wb()),2&e){const e=i.Fc(2),t=i.nc();i.Gb(3),i.tc("ngTemplateOutlet",t.loadingSpinnerTemplate||e)}}function N(e,t){if(1&e&&(i.Zb(0,"span",20),i.Zb(1,"span",21),i.Qc(2,"\xd7"),i.Yb(),i.Yb()),2&e){const e=i.nc();i.uc("title",e.clearAllText)}}function V(e,t){if(1&e&&i.Ub(0,"span",27),2&e){const e=i.nc().$implicit,t=i.nc(2);i.tc("ngItemLabel",e.label)("escape",t.escapeHTML)}}function z(e,t){}const F=function(e,t,n,i){return{item:e,item$:t,index:n,searchTerm:i}};function B(e,t){if(1&e){const e=i.ac();i.Zb(0,"div",25),i.jc("click",function(){i.Hc(e);const n=t.$implicit;return i.nc(2).toggleItem(n)})("mouseover",function(){i.Hc(e);const n=t.$implicit;return i.nc(2).onItemHover(n)}),i.Oc(1,V,1,2,"ng-template",null,26,i.Pc),i.Oc(3,z,0,0,"ng-template",14),i.Yb()}if(2&e){const e=t.$implicit,n=i.Fc(2),r=i.nc(2);i.Lb("ng-option-disabled",e.disabled)("ng-option-selected",e.selected)("ng-optgroup",e.children)("ng-option",!e.children)("ng-option-child",!!e.parent)("ng-option-marked",e===r.itemsList.markedItem),i.Hb("role",e.children?"group":"option")("aria-selected",e.selected)("id",null==e?null:e.htmlId),i.Gb(3),i.tc("ngTemplateOutlet",e.children?r.optgroupTemplate||n:r.optionTemplate||n)("ngTemplateOutletContext",i.Bc(17,F,e.value,e,e.index,r.searchTerm))}}function q(e,t){if(1&e&&(i.Zb(0,"span"),i.Zb(1,"span",30),i.Qc(2),i.Yb(),i.Qc(3),i.Yb()),2&e){const e=i.nc(3);i.Gb(2),i.Rc(e.addTagText),i.Gb(1),i.Sc('"',e.searchTerm,'"')}}function U(e,t){}function H(e,t){if(1&e){const e=i.ac();i.Zb(0,"div",28),i.jc("mouseover",function(){return i.Hc(e),i.nc(2).itemsList.unmarkItem()})("click",function(){return i.Hc(e),i.nc(2).selectTag()}),i.Oc(1,q,4,2,"ng-template",null,29,i.Pc),i.Oc(3,U,0,0,"ng-template",14),i.Yb()}if(2&e){const e=i.Fc(2),t=i.nc(2);i.Lb("ng-option-marked",!t.itemsList.markedItem),i.Gb(3),i.tc("ngTemplateOutlet",t.tagTemplate||e)("ngTemplateOutletContext",i.yc(4,w,t.searchTerm))}}function W(e,t){if(1&e&&(i.Zb(0,"div",32),i.Qc(1),i.Yb()),2&e){const e=i.nc(3);i.Gb(1),i.Rc(e.notFoundText)}}function G(e,t){}function Y(e,t){if(1&e&&(i.Xb(0),i.Oc(1,W,2,1,"ng-template",null,31,i.Pc),i.Oc(3,G,0,0,"ng-template",14),i.Wb()),2&e){const e=i.Fc(2),t=i.nc(2);i.Gb(3),i.tc("ngTemplateOutlet",t.notFoundTemplate||e)("ngTemplateOutletContext",i.yc(2,w,t.searchTerm))}}function $(e,t){if(1&e&&(i.Zb(0,"div",32),i.Qc(1),i.Yb()),2&e){const e=i.nc(3);i.Gb(1),i.Rc(e.typeToSearchText)}}function Z(e,t){}
1function Q(e,t){if(1&e&&(i.Xb(0),i.Oc(1,$,2,1,"ng-template",null,33,i.Pc),i.Oc(3,Z,0,0,"ng-template",18),i.Wb()),2&e){const e=i.Fc(2),t=i.nc(2);i.Gb(3),i.tc("ngTemplateOutlet",t.typeToSearchTemplate||e)}}function X(e,t){if(1&e&&(i.Zb(0,"div",32),i.Qc(1),i.Yb()),2&e){const e=i.nc(3);i.Gb(1),i.Rc(e.loadingText)}}function K(e,t){}function J(e,t){if(1&e&&(i.Xb(0),i.Oc(1,X,2,1,"ng-template",null,34,i.Pc),i.Oc(3,K,0,0,"ng-template",14),i.Wb()),2&e){const e=i.Fc(2),t=i.nc(2);i.Gb(3),i.tc("ngTemplateOutlet",t.loadingTextTemplate||e)("ngTemplateOutletContext",i.yc(2,w,t.searchTerm))}}function ee(e,t){if(1&e){const e=i.ac();i.Zb(0,"ng-dropdown-panel",22),i.jc("update",function(t){return i.Hc(e),i.nc().viewPortItems=t})("scroll",function(t){return i.Hc(e),i.nc().scroll.emit(t)})("scrollToEnd",function(t){return i.Hc(e),i.nc().scrollToEnd.emit(t)})("outsideClick",function(){return i.Hc(e),i.nc().close()}),i.Xb(1),i.Oc(2,B,4,22,"div",23),i.Oc(3,H,4,6,"div",24),i.Wb(),i.Oc(4,Y,4,4,"ng-container",3),i.Oc(5,Q,4,1,"ng-container",3),i.Oc(6,J,4,4,"ng-container",3),i.Yb()}if(2&e){const e=i.nc();i.Lb("ng-select-multiple",e.multiple),i.tc("virtualScroll",e.virtualScroll)("bufferAmount",e.bufferAmount)("appendTo",e.appendTo)("position",e.dropdownPosition)("headerTemplate",e.headerTemplate)("footerTemplate",e.footerTemplate)("filterValue",e.searchTerm)("items",e.itemsList.filteredItems)("markedItem",e.itemsList.markedItem)("ngClass",e.appendTo?e.classes:null)("id",e.dropdownId),i.Gb(2),i.tc("ngForOf",e.viewPortItems)("ngForTrackBy",e.trackByOption),i.Gb(1),i.tc("ngIf",e.showAddTag),i.Gb(1),i.tc("ngIf",e.showNoItemsFound()),i.Gb(1),i.tc("ngIf",e.showTypeToSearch()),i.Gb(1),i.tc("ngIf",e.loading&&0===e.itemsList.filteredItems.length)}}const te=/[&<>"']/g,ne=RegExp(te.source),ie={"&":"&","<":"<",">":">",'"':""","'":"'"};function re(e){return null!=e}function se(e){return"object"==typeof e&&re(e)}function oe(e){return e instanceof Function}let ae=(()=>{class e{constructor(e){this.element=e,this.escape=!0}ngOnChanges(e){var t;this.element.nativeElement.innerHTML=this.escape?(t=this.ngItemLabel)&&ne.test(t)?t.replace(te,e=>ie[e]):t:this.ngItemLabel}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l))},e.\u0275dir=i.Ob({type:e,selectors:[["","ngItemLabel",""]],inputs:{escape:"escape",ngItemLabel:"ngItemLabel"},features:[i.Eb]}),e})(),ce=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.Q))},e.\u0275dir=i.Ob({type:e,selectors:[["","ng-option-tmp",""]]}),e})(),le=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.Q))},e.\u0275dir=i.Ob({type:e,selectors:[["","ng-optgroup-tmp",""]]}),e})(),ue=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.Q))},e.\u0275dir=i.Ob({type:e,selectors:[["","ng-label-tmp",""]]}),e})(),de=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.Q))},e.\u0275dir=i.Ob({type:e,selectors:[["","ng-multi-label-tmp",""]]}),e})(),he=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.Q))},e.\u0275dir=i.Ob({type:e,selectors:[["","ng-header-tmp",""]]}),e})(),pe=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.Q))},e.\u0275dir=i.Ob({type:e,selectors:[["","ng-footer-tmp",""]]}),e})(),fe=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.Q))},e.\u0275dir=i.Ob({type:e,selectors:[["","ng-notfound-tmp",""]]}),e})(),ge=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.Q))},e.\u0275dir=i.Ob({type:e,selectors:[["","ng-typetosearch-tmp",""]]}),e})(),me=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.Q))},e.\u0275dir=i.Ob({type:e,selectors:[["","ng-loadingtext-tmp",""]]}),e})(),be=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.Q))},e.\u0275dir=i.Ob({type:e,selectors:[["","ng-tag-tmp",""]]}),e})(),ye=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.Q))},e.\u0275dir=i.Ob({type:e,selectors:[["","ng-loadingspinner-tmp",""]]}),e})(),ve=(()=>{class e{warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Pb)({factory:function(){return new e},token:e,providedIn:"root"}),e})();function _e(){return"axxxxxxxxxxx".replace(/[x]/g,function(e){return(16*Math.random()|0).toString(16)})}const we={"\u24b6":"A","\uff21":"A","\xc0":"A","\xc1":"A","\xc2":"A","\u1ea6":"A","\u1ea4":"A","\u1eaa":"A","\u1ea8":"A","\xc3":"A","\u0100":"A","\u0102":"A","\u1eb0":"A","\u1eae":"A","\u1eb4":"A","\u1eb2":"A","\u0226":"A","\u01e0":"A","\xc4":"A","\u01de":"A","\u1ea2":"A","\xc5":"A","\u01fa":"A","\u01cd":"A","\u0200":"A","\u0202":"A","\u1ea0":"A","\u1eac":"A","\u1eb6":"A","\u1e00":"A","\u0104":"A","\u023a":"A","\u2c6f":"A","\ua732":"AA","\xc6":"AE","\u01fc":"AE","\u01e2":"AE","\ua734":"AO","\ua736":"AU","\ua738":"AV","\ua73a":"AV","\ua73c":"AY","\u24b7":"B","\uff22":"B","\u1e02":"B","\u1e04":"B","\u1e06":"B","\u0243":"B","\u0182":"B","\u0181":"B","\u24b8":"C","\uff23":"C","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\xc7":"C","\u1e08":"C","\u0187":"C","\u023b":"C","\ua73e":"C","\u24b9":"D","\uff24":"D","\u1e0a":"D","\u010e":"D","\u1e0c":"D","\u1e10":"D","\u1e12":"D","\u1e0e":"D","\u0110":"D","\u018b":"D","\u018a":"D","\u0189":"D","\ua779":"D","\u01f1":"DZ","\u01c4":"DZ","\u01f2":"Dz","\u01c5":"Dz","\u24ba":"E","\uff25":"E","\xc8":"E","\xc9":"E","\xca":"E","\u1ec0":"E","\u1ebe":"E","\u1ec4":"E","\u1ec2":"E","\u1ebc":"E","\u0112":"E","\u1e14":"E","\u1e16":"E","\u0114":"E","\u0116":"E","\xcb":"E","\u1eba":"E","\u011a":"E","\u0204":"E","\u0206":"E","\u1eb8":"E","\u1ec6":"E","\u0228":"E","\u1e1c":"E","\u0118":"E","\u1e18":"E","\u1e1a":"E","\u0190":"E","\u018e":"E","\u24bb":"F","\uff26":"F","\u1e1e":"F","\u0191":"F","\ua77b":"F","\u24bc":"G","\uff27":"G","\u01f4":"G","\u011c":"G","\u1e20":"G","\u011e":"G","\u0120":"G","\u01e6":"G","\u0122":"G","\u01e4":"G","\u0193":"G","\ua7a0":"G","\ua77d":"G","\ua77e":"G","\u24bd":"H","\uff28":"H","\u0124":"H","\u1e22":"H","\u1e26":"H","\u021e":"H","\u1e24":"H","\u1e28":"H","\u1e2a":"H","\u0126":"H","\u2c67":"H","\u2c75":"H","\ua78d":"H","\u24be":"I","\uff29":"I","\xcc":"I","\xcd":"I","\xce":"I","\u0128":"I","\u012a":"I","\u012c":"I","\u0130":"I","\xcf":"I","\u1e2e":"I","\u1ec8":"I","\u01cf":"I","\u0208":"I","\u020a":"I","\u1eca":"I","\u012e":"I","\u1e2c":"I","\u0197":"I","\u24bf":"J","\uff2a":"J","\u0134":"J","\u0248":"J","\u24c0":"K","\uff2b":"K","\u1e30":"K","\u01e8":"K","\u1e32":"K","\u0136":"K","\u1e34":"K","\u0198":"K","\u2c69":"K","\ua740":"K","\ua742":"K","\ua744":"K","\ua7a2":"K","\u24c1":"L","\uff2c":"L","\u013f"
1:"L","\u0139":"L","\u013d":"L","\u1e36":"L","\u1e38":"L","\u013b":"L","\u1e3c":"L","\u1e3a":"L","\u0141":"L","\u023d":"L","\u2c62":"L","\u2c60":"L","\ua748":"L","\ua746":"L","\ua780":"L","\u01c7":"LJ","\u01c8":"Lj","\u24c2":"M","\uff2d":"M","\u1e3e":"M","\u1e40":"M","\u1e42":"M","\u2c6e":"M","\u019c":"M","\u24c3":"N","\uff2e":"N","\u01f8":"N","\u0143":"N","\xd1":"N","\u1e44":"N","\u0147":"N","\u1e46":"N","\u0145":"N","\u1e4a":"N","\u1e48":"N","\u0220":"N","\u019d":"N","\ua790":"N","\ua7a4":"N","\u01ca":"NJ","\u01cb":"Nj","\u24c4":"O","\uff2f":"O","\xd2":"O","\xd3":"O","\xd4":"O","\u1ed2":"O","\u1ed0":"O","\u1ed6":"O","\u1ed4":"O","\xd5":"O","\u1e4c":"O","\u022c":"O","\u1e4e":"O","\u014c":"O","\u1e50":"O","\u1e52":"O","\u014e":"O","\u022e":"O","\u0230":"O","\xd6":"O","\u022a":"O","\u1ece":"O","\u0150":"O","\u01d1":"O","\u020c":"O","\u020e":"O","\u01a0":"O","\u1edc":"O","\u1eda":"O","\u1ee0":"O","\u1ede":"O","\u1ee2":"O","\u1ecc":"O","\u1ed8":"O","\u01ea":"O","\u01ec":"O","\xd8":"O","\u01fe":"O","\u0186":"O","\u019f":"O","\ua74a":"O","\ua74c":"O","\u01a2":"OI","\ua74e":"OO","\u0222":"OU","\u24c5":"P","\uff30":"P","\u1e54":"P","\u1e56":"P","\u01a4":"P","\u2c63":"P","\ua750":"P","\ua752":"P","\ua754":"P","\u24c6":"Q","\uff31":"Q","\ua756":"Q","\ua758":"Q","\u024a":"Q","\u24c7":"R","\uff32":"R","\u0154":"R","\u1e58":"R","\u0158":"R","\u0210":"R","\u0212":"R","\u1e5a":"R","\u1e5c":"R","\u0156":"R","\u1e5e":"R","\u024c":"R","\u2c64":"R","\ua75a":"R","\ua7a6":"R","\ua782":"R","\u24c8":"S","\uff33":"S","\u1e9e":"S","\u015a":"S","\u1e64":"S","\u015c":"S","\u1e60":"S","\u0160":"S","\u1e66":"S","\u1e62":"S","\u1e68":"S","\u0218":"S","\u015e":"S","\u2c7e":"S","\ua7a8":"S","\ua784":"S","\u24c9":"T","\uff34":"T","\u1e6a":"T","\u0164":"T","\u1e6c":"T","\u021a":"T","\u0162":"T","\u1e70":"T","\u1e6e":"T","\u0166":"T","\u01ac":"T","\u01ae":"T","\u023e":"T","\ua786":"T","\ua728":"TZ","\u24ca":"U","\uff35":"U","\xd9":"U","\xda":"U","\xdb":"U","\u0168":"U","\u1e78":"U","\u016a":"U","\u1e7a":"U","\u016c":"U","\xdc":"U","\u01db":"U","\u01d7":"U","\u01d5":"U","\u01d9":"U","\u1ee6":"U","\u016e":"U","\u0170":"U","\u01d3":"U","\u0214":"U","\u0216":"U","\u01af":"U","\u1eea":"U","\u1ee8":"U","\u1eee":"U","\u1eec":"U","\u1ef0":"U","\u1ee4":"U","\u1e72":"U","\u0172":"U","\u1e76":"U","\u1e74":"U","\u0244":"U","\u24cb":"V","\uff36":"V","\u1e7c":"V","\u1e7e":"V","\u01b2":"V","\ua75e":"V","\u0245":"V","\ua760":"VY","\u24cc":"W","\uff37":"W","\u1e80":"W","\u1e82":"W","\u0174":"W","\u1e86":"W","\u1e84":"W","\u1e88":"W","\u2c72":"W","\u24cd":"X","\uff38":"X","\u1e8a":"X","\u1e8c":"X","\u24ce":"Y","\uff39":"Y","\u1ef2":"Y","\xdd":"Y","\u0176":"Y","\u1ef8":"Y","\u0232":"Y","\u1e8e":"Y","\u0178":"Y","\u1ef6":"Y","\u1ef4":"Y","\u01b3":"Y","\u024e":"Y","\u1efe":"Y","\u24cf":"Z","\uff3a":"Z","\u0179":"Z","\u1e90":"Z","\u017b":"Z","\u017d":"Z","\u1e92":"Z","\u1e94":"Z","\u01b5":"Z","\u0224":"Z","\u2c7f":"Z","\u2c6b":"Z","\ua762":"Z","\u24d0":"a","\uff41":"a","\u1e9a":"a","\xe0":"a","\xe1":"a","\xe2":"a","\u1ea7":"a","\u1ea5":"a","\u1eab":"a","\u1ea9":"a","\xe3":"a","\u0101":"a","\u0103":"a","\u1eb1":"a","\u1eaf":"a","\u1eb5":"a","\u1eb3":"a","\u0227":"a","\u01e1":"a","\xe4":"a","\u01df":"a","\u1ea3":"a","\xe5":"a","\u01fb":"a","\u01ce":"a","\u0201":"a","\u0203":"a","\u1ea1":"a","\u1ead":"a","\u1eb7":"a","\u1e01":"a","\u0105":"a","\u2c65":"a","\u0250":"a","\ua733":"aa","\xe6":"ae","\u01fd":"ae","\u01e3":"ae","\ua735":"ao","\ua737":"au","\ua739":"av","\ua73b":"av","\ua73d":"ay","\u24d1":"b","\uff42":"b","\u1e03":"b","\u1e05":"b","\u1e07":"b","\u0180":"b","\u0183":"b","\u0253":"b","\u24d2":"c","\uff43":"c","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\xe7":"c","\u1e09":"c","\u0188":"c","\u023c":"c","\ua73f":"c","\u2184":"c","\u24d3":"d","\uff44":"d","\u1e0b":"d","\u010f":"d","\u1e0d":"d","\u1e11":"d","\u1e13":"d","\u1e0f":"d","\u0111":"d","\u018c":"d","\u0256":"d","\u0257":"d","\ua77a":"d","\u01f3":"dz","\u01c6":"dz","\u24d4":"e","\uff45":"e","\xe8":"e","\xe9":"e","\xea":"e","\u1ec1":"e","\u1ebf":"e","\u1ec5":"e","\u1ec3":"e","\u1ebd":"e","\u0113":"e","\u1e15":"e","\u1e17":"e","\u0115":"e","\u0117":"e","\xeb":"e","\u1ebb":"e","\u011b":"e","\u0205":"e","\u0207":"e","\u1eb9":"e","\u1ec7":"e","\u0229":"e","\u1e1d":"e","\u0119":"e","\u1e19":"e","\u1e1b":"e","\u0247":"e","\u025b":"e","\u01dd":"e","\u24d5":"f","\uff46":"f","\u1e1f":"f","\u0192":"f","\ua77c":"f","\u24d6":"g","\uff47":"g","\u01f5":"g","\u011d":"g","\u1e21":"g","\u011f":"g","\u0121":"g","\u01e7":"g","\u0123":"g","\u01e5":"g","\u0260":"g","\ua7a1":"g","\u1d79":"g","\ua77f":"g","\u24d7":"h","\uff48":"h","\u0125":"h","\u1e23":"h","\u1e27":"h","\u021f":"h","\u1e25":"h","\u1e29":"h","\u1e2b":"h","\u1e96":"h","\u0127":"h","\u2c68":"h","\u2c76":"h","\u0265":"h","\u0195":"hv","\u24d8":"i","\uff49":"i","\xec":"i","\xed":"i","\xee":"i","\u0129":"i","\u012b":"i","\u012d":"i","\xef":"i","\u1e2f"
1:"i","\u1ec9":"i","\u01d0":"i","\u0209":"i","\u020b":"i","\u1ecb":"i","\u012f":"i","\u1e2d":"i","\u0268":"i","\u0131":"i","\u24d9":"j","\uff4a":"j","\u0135":"j","\u01f0":"j","\u0249":"j","\u24da":"k","\uff4b":"k","\u1e31":"k","\u01e9":"k","\u1e33":"k","\u0137":"k","\u1e35":"k","\u0199":"k","\u2c6a":"k","\ua741":"k","\ua743":"k","\ua745":"k","\ua7a3":"k","\u24db":"l","\uff4c":"l","\u0140":"l","\u013a":"l","\u013e":"l","\u1e37":"l","\u1e39":"l","\u013c":"l","\u1e3d":"l","\u1e3b":"l","\u017f":"l","\u0142":"l","\u019a":"l","\u026b":"l","\u2c61":"l","\ua749":"l","\ua781":"l","\ua747":"l","\u01c9":"lj","\u24dc":"m","\uff4d":"m","\u1e3f":"m","\u1e41":"m","\u1e43":"m","\u0271":"m","\u026f":"m","\u24dd":"n","\uff4e":"n","\u01f9":"n","\u0144":"n","\xf1":"n","\u1e45":"n","\u0148":"n","\u1e47":"n","\u0146":"n","\u1e4b":"n","\u1e49":"n","\u019e":"n","\u0272":"n","\u0149":"n","\ua791":"n","\ua7a5":"n","\u01cc":"nj","\u24de":"o","\uff4f":"o","\xf2":"o","\xf3":"o","\xf4":"o","\u1ed3":"o","\u1ed1":"o","\u1ed7":"o","\u1ed5":"o","\xf5":"o","\u1e4d":"o","\u022d":"o","\u1e4f":"o","\u014d":"o","\u1e51":"o","\u1e53":"o","\u014f":"o","\u022f":"o","\u0231":"o","\xf6":"o","\u022b":"o","\u1ecf":"o","\u0151":"o","\u01d2":"o","\u020d":"o","\u020f":"o","\u01a1":"o","\u1edd":"o","\u1edb":"o","\u1ee1":"o","\u1edf":"o","\u1ee3":"o","\u1ecd":"o","\u1ed9":"o","\u01eb":"o","\u01ed":"o","\xf8":"o","\u01ff":"o","\u0254":"o","\ua74b":"o","\ua74d":"o","\u0275":"o","\u01a3":"oi","\u0223":"ou","\ua74f":"oo","\u24df":"p","\uff50":"p","\u1e55":"p","\u1e57":"p","\u01a5":"p","\u1d7d":"p","\ua751":"p","\ua753":"p","\ua755":"p","\u24e0":"q","\uff51":"q","\u024b":"q","\ua757":"q","\ua759":"q","\u24e1":"r","\uff52":"r","\u0155":"r","\u1e59":"r","\u0159":"r","\u0211":"r","\u0213":"r","\u1e5b":"r","\u1e5d":"r","\u0157":"r","\u1e5f":"r","\u024d":"r","\u027d":"r","\ua75b":"r","\ua7a7":"r","\ua783":"r","\u24e2":"s","\uff53":"s","\xdf":"s","\u015b":"s","\u1e65":"s","\u015d":"s","\u1e61":"s","\u0161":"s","\u1e67":"s","\u1e63":"s","\u1e69":"s","\u0219":"s","\u015f":"s","\u023f":"s","\ua7a9":"s","\ua785":"s","\u1e9b":"s","\u24e3":"t","\uff54":"t","\u1e6b":"t","\u1e97":"t","\u0165":"t","\u1e6d":"t","\u021b":"t","\u0163":"t","\u1e71":"t","\u1e6f":"t","\u0167":"t","\u01ad":"t","\u0288":"t","\u2c66":"t","\ua787":"t","\ua729":"tz","\u24e4":"u","\uff55":"u","\xf9":"u","\xfa":"u","\xfb":"u","\u0169":"u","\u1e79":"u","\u016b":"u","\u1e7b":"u","\u016d":"u","\xfc":"u","\u01dc":"u","\u01d8":"u","\u01d6":"u","\u01da":"u","\u1ee7":"u","\u016f":"u","\u0171":"u","\u01d4":"u","\u0215":"u","\u0217":"u","\u01b0":"u","\u1eeb":"u","\u1ee9":"u","\u1eef":"u","\u1eed":"u","\u1ef1":"u","\u1ee5":"u","\u1e73":"u","\u0173":"u","\u1e77":"u","\u1e75":"u","\u0289":"u","\u24e5":"v","\uff56":"v","\u1e7d":"v","\u1e7f":"v","\u028b":"v","\ua75f":"v","\u028c":"v","\ua761":"vy","\u24e6":"w","\uff57":"w","\u1e81":"w","\u1e83":"w","\u0175":"w","\u1e87":"w","\u1e85":"w","\u1e98":"w","\u1e89":"w","\u2c73":"w","\u24e7":"x","\uff58":"x","\u1e8b":"x","\u1e8d":"x","\u24e8":"y","\uff59":"y","\u1ef3":"y","\xfd":"y","\u0177":"y","\u1ef9":"y","\u0233":"y","\u1e8f":"y","\xff":"y","\u1ef7":"y","\u1e99":"y","\u1ef5":"y","\u01b4":"y","\u024f":"y","\u1eff":"y","\u24e9":"z","\uff5a":"z","\u017a":"z","\u1e91":"z","\u017c":"z","\u017e":"z","\u1e93":"z","\u1e95":"z","\u01b6":"z","\u0225":"z","\u0240":"z","\u2c6c":"z","\ua763":"z","\u0386":"\u0391","\u0388":"\u0395","\u0389":"\u0397","\u038a":"\u0399","\u03aa":"\u0399","\u038c":"\u039f","\u038e":"\u03a5","\u03ab":"\u03a5","\u038f":"\u03a9","\u03ac":"\u03b1","\u03ad":"\u03b5","\u03ae":"\u03b7","\u03af":"\u03b9","\u03ca":"\u03b9","\u0390":"\u03b9","\u03cc":"\u03bf","\u03cd":"\u03c5","\u03cb":"\u03c5","\u03b0":"\u03c5","\u03c9":"\u03c9","\u03c2":"\u03c3"};
1function ke(e){return e.replace(/[^\u0000-\u007E]/g,e=>we[e]||e)}class Ce{constructor(e,t){this._ngSelect=e,this._selectionModel=t,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let e=this.selectedItems.length-1;for(;e>=0;e--){let t=this.selectedItems[e];if(!t.disabled)return t}return null}setItems(e){this._items=e.map((e,t)=>this.mapItem(e,t)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(e){if(e.selected||this.maxItemsSelected)return;const t=this._ngSelect.multiple;t||this.clearSelected(),this._selectionModel.select(e,t,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(e)}unselect(e){e.selected&&(this._selectionModel.unselect(e,this._ngSelect.multiple),this._ngSelect.hideSelected&&re(e.index)&&this._ngSelect.multiple&&this._showSelected(e))}findItem(e){let t;return t=this._ngSelect.compareWith?t=>this._ngSelect.compareWith(t.value,e):this._ngSelect.bindValue?t=>!t.children&&this.resolveNested(t.value,this._ngSelect.bindValue)===e:t=>t.value===e||!t.children&&t.label&&t.label===this.resolveNested(e,this._ngSelect.bindLabel),this._items.find(e=>t(e))}addItem(e){const t=this.mapItem(e,this._items.length);return this._items.push(t),this._filteredItems.push(t),t}clearSelected(e=!1){this._selectionModel.clear(e),this._items.forEach(t=>{t.selected=e&&t.selected&&t.disabled,t.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(e){return e=ke(e).toLocaleLowerCase(),this.filteredItems.find(t=>ke(t.label).toLocaleLowerCase().substr(0,e.length)===e)}filter(e){if(!e)return void this.resetFilteredItems();this._filteredItems=[],e=this._ngSelect.searchFn?e:ke(e).toLocaleLowerCase();const t=this._ngSelect.searchFn||this._defaultSearchFn,n=this._ngSelect.hideSelected;for(const i of Array.from(this._groups.keys())){const r=[];for(const s of this._groups.get(i))n&&(s.parent&&s.parent.selected||s.selected)||t(e,this._ngSelect.searchFn?s.value:s)&&r.push(s);if(r.length>0){const[e]=r.slice(-1);if(e.parent){const t=this._items.find(t=>t===e.parent);this._filteredItems.push(t)}this._filteredItems.push(...r)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(e=>!e.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(e){this._markedIndex=this._filteredItems.indexOf(e)}markSelectedOrDefault(e){if(0===this._filteredItems.length)return;const t=this._getLastMarkedIndex();this._markedIndex=t>-1?t:e?this.filteredItems.findIndex(e=>!e.disabled):-1}resolveNested(e,t){if(!se(e))return e;if(-1===t.indexOf("."))return e[t];{let n=t.split("."),i=e;for(let e=0,t=n.length;e<t;++e){if(null==i)return null;i=i[n[e]]}return i}}mapItem(e,t){const n=re(e.$ngOptionLabel)?e.$ngOptionLabel:this.resolveNested(e,this._ngSelect.bindLabel),i=re(e.$ngOptionValue)?e.$ngOptionValue:e;return{index:t,label:re(n)?n.toString():"",value:i,disabled:e.disabled,htmlId:`${this._ngSelect.dropdownId}-${t}`}}mapSelectedItems(){const e=this._ngSelect.multiple;for(const t of this.selectedItems){const n=this._ngSelect.bindValue?this.resolveNested(t.value,this._ngSelect.bindValue):t.value,i=re(n)?this.findItem(n):null;this._selectionModel.unselect(t,e),this._selectionModel.select(i||t,e,this._ngSelect.selectableGroupAsModel)}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(e=>-1===this.selectedItems.indexOf(e)))}_showSelected(e){if(this._filteredItems.push(e),e.parent){const t=e.parent;this._filteredItems.find(e=>e===t)||this._filteredItems.push(t)}else if(e.children)for(const t of e.children)t.selected=!1,this._filteredItems.push(t);this._filteredItems=[...this._filteredItems.sort((e,t)=>
1e.index-t.index)]}_hideSelected(e){this._filteredItems=this._filteredItems.filter(t=>t!==e),e.parent?e.parent.children.every(e=>e.selected)&&(this._filteredItems=this._filteredItems.filter(t=>t!==e.parent)):e.children&&(this._filteredItems=this.filteredItems.filter(t=>t.parent!==e))}_defaultSearchFn(e,t){return ke(t.label).toLocaleLowerCase().indexOf(e)>-1}_getNextItemIndex(e){return e>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(e){0===this._filteredItems.length||this._filteredItems.every(e=>e.disabled)||(this._markedIndex=this._getNextItemIndex(e),this.markedItem.disabled&&this._stepToItem(e))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected)return-1;if(this._markedIndex>-1&&void 0===this.markedItem)return-1;const e=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&e<0?-1:Math.max(this.markedIndex,e)}_groupBy(e,t){const n=new Map;if(0===e.length)return n;if(Array.isArray(e[0].value[t])){for(const i of e){const e=(i.value[t]||[]).map((e,t)=>this.mapItem(e,t));n.set(i,e)}return n}const i=oe(this._ngSelect.groupBy),r=e=>{let n=i?t(e.value):e.value[t];return re(n)?n:void 0};for(const s of e){let e=r(s);const t=n.get(e);t?t.push(s):n.set(e,[s])}return n}_flatten(e){const t=oe(this._ngSelect.groupBy),n=[];for(const i of Array.from(e.keys())){let r=n.length;if(void 0===i){const t=e.get(void 0)||[];n.push(...t.map(e=>(e.index=r++,e)));continue}const s=se(i),o={label:s?"":String(i),children:void 0,parent:null,index:r++,disabled:!this._ngSelect.selectableGroup,htmlId:_e()},a=t?this._ngSelect.bindLabel:this._ngSelect.groupBy,c=this._ngSelect.groupValue||(()=>s?i.value:{[a]:i}),l=e.get(i).map(e=>(e.parent=o,e.children=void 0,e.index=r++,e));o.children=l,o.value=c(i,l.map(e=>e.value)),n.push(o),n.push(...l)}return n}}var Se=function(e){return e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Esc=27]="Esc",e[e.Space=32]="Space",e[e.ArrowUp=38]="ArrowUp",e[e.ArrowDown=40]="ArrowDown",e[e.Backspace=8]="Backspace",e}({});let Te=(()=>{class e{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(e,t,n){const i=this._dimensions,r=i.itemHeight*t,s=Math.max(0,e)/r*t;let o=Math.min(t,Math.ceil(s)+(i.itemsPerViewport+1));const a=Math.max(0,o-i.itemsPerViewport);let c=Math.min(a,Math.floor(s)),l=i.itemHeight*Math.ceil(c)-i.itemHeight*Math.min(c,n);return l=isNaN(l)?0:l,c=isNaN(c)?-1:c,o=isNaN(o)?-1:o,c-=n,c=Math.max(0,c),o+=n,o=Math.min(t,o),{topPadding:l,scrollHeight:r,start:c,end:o}}setDimensions(e,t){const n=Math.max(1,Math.floor(t/e));this._dimensions={itemHeight:e,panelHeight:t,itemsPerViewport:n}}getScrollTo(e,t,n){const{panelHeight:i}=this.dimensions,r=e+t,s=n+i;return i>=r&&n===e?null:r>s?n+r-s:e<=n?e:null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();const Pe="undefined"!=typeof requestAnimationFrame?h.b:p.b;let Oe=(()=>{class e{constructor(e,t,n,r,s){this._renderer=e,this._zone=t,this._panelService=n,this._document=s,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new i.o,this.scroll=new i.o,this.scrollToEnd=new i.o,this.outsideClick=new i.o,this._destroy$=new f.a,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=r.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(e){e!==this._itemsLength&&(this._itemsLength=e,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:e,panelHeight:t}=this._panelService.dimensions,n=this.markedItem.index*e;return t>n?0:n}return 0}handleMousedown(e){"INPUT"!==e.target.tagName&&e.preventDefault()}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown()}ngOnChanges(e){if(e.items){const t=e.items;this._onItemsChange(t.currentValue,t.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(e,t=!1){if(!e)return;const n=this.items.indexOf(e);if(n<0||n>=this.itemsLength)return;let i;if(this.virtualScroll){const e=this._panelService.dimensions.itemHeight;i=this._panelService.getScrollTo(n*e,e,this._lastScrollPosition)}else{const n=this._dropdown.querySelector(`#${e.htmlId}`);i=this._panelService.getScrollTo(n.offsetTop,n.clientHeight,t?n.offsetTop:this._lastScrollPosition)}re(i)&&(this._scrollablePanel.scrollTop=i)}scrollToTag(){const e=this._scrollablePanel;e.scrollTop=e.scrollHeight-e.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),"top"===this._currentPosition?(this._renderer.addClass(this._dropdown,"ng-select-top"),this._renderer.removeClass(this._dropdown,"ng-select-bottom"),this._renderer.addClass(this._select,"ng-select-top"),this._renderer.removeClass(this._select,"ng-select-bottom")):(this._renderer.addClass(this._dropdown,"ng-select-bottom"),this._renderer.removeClass(this._dropdown,"ng-select-top"),this._renderer.addClass(this._select,"ng-select-bottom"),this._renderer.removeClass(this._select,"ng-select-top")),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_handleScroll(){this._zone.runOutsideAngular(()=>{Object(g.a)(this.scrollElementRef.nativeElement,"scroll").pipe(Object(s.a)(this._destroy$),Object(o.a)(0,Pe)).subscribe(e=>{const t=e.path||e.composedPath&&e.composedPath();this._onContentScrolled(t&&0!==t.length?t[0].scrollTop:e.target.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{Object(m.a)(Object(g.a)(this._document,"touchstart",{capture:!0}),Object(g.a)(this._document,"mousedown",{capture:!0})).pipe(Object(s.a)(this._destroy$)).subscribe(e=>this._checkToClose(e))})}_checkToClose(e){if(this._select.contains(e.target)||this._dropdown.contains(e.target))return;const t=e.path||e.composedPath&&e.composedPath();e.target&&e.target.shadowRoot&&t&&t[0]&&this._select.contains(t[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(e,t){this.items=e||[],this._scrollToEndFired=!1,this.itemsLength=e.length,this.virtualScroll?this._updateItemsRange(t):(this._setVirtualHeight(),this._updateItems(t))}_updateItems(e){this.update.emit(this.items),!1!==e&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._panelService.setDimensions(0,this._scrollablePanel.clientHeight),this._handleDropdownPosition(),this.scrollTo(this.markedItem,e)})})}_updateItemsRange(e){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{e?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(e){this.virtualScroll&&this._renderItemsRange(e),this._lastScrollPosition=e,this._fireScrollToEnd(e)}_updateVirtualHeight(e){this._updateScrollHeight&&(this._virtualPadding.style.height=`${e}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(e=null){if(e&&this._lastScrollPosition===e)return;const t=this._panelService.calculateItems(e=e||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(t.scrollHeight),this._contentPanel.style.transform=`translateY(${t.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(t.start,t.end)),this.scroll.emit({start:t.start,end:t.end})}),re(e)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=e,this._lastScrollPosition=e)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[e]=this.items;return this.update.emit([e]),Promise.resolve().then(()=>{const t=this._dropdown.querySelector(`#${e.htmlId}`).clientHeight;return this._virtualPadding.style.height=t*this.itemsLength+"px",this._panelService.setDimensions(t,this._scrollablePanel.clientHeight),this._panelService.dimensions})}_fireScrollToEnd(e){this._scrollToEndFired||0===e||e+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(e){if("auto"!==this.position)return this.position;const t=this._select.getBoundingClientRect(),n=document.documentElement.scrollTop||document.body.scrollTop;return t.top+window.pageYOffset+t.height+e.getBoundingClientRect().height>n+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){const e=this._select.getBoundingClientRect(),t=this._parent.getBoundingClientRect();this._dropdown.style.left=e.left-t.left+"px",this._dropdown.style.width=e.width+"px",this._dropdown.style.minWidth=e.width+"px"}_updateYPosition(){const e=this._select.getBoundingClientRect(),t=this._parent.getBoundingClientRect(),n=e.height;"top"===this._currentPosition?(this._dropdown.style.bottom=t.bottom-e.bottom+n+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=e.top-t.top+n+"px",this._dropdown.style.bottom="auto")}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.H),i.Tb(i.C),i.Tb(Te),i.Tb(i.l),i.Tb(b.d,8))},e.\u0275cmp=i.Nb({type:e,selectors:[["ng-dropdown-panel"]],viewQuery:function(e,t){if(1&e&&(i.Vc(y,3,i.l),i.Vc(v,3,i.l),i.Vc(_,3,i.l)),2&e){let e;i.Ec(e=i.kc())&&(t.contentElementRef=e.first),i.Ec(e=i.kc())&&(t.scrollElementRef=e.first),i.Ec(e=i.kc())&&(t.paddingElementRef=e.first)}},hostBindings:function(e,t){1&e&&i.jc("mousedown",function(e){return t.handleMousedown(e)})},inputs:{items:"items",position:"position",virtualScroll:"virtualScroll",filterValue:"filterValue",markedItem:"markedItem",appendTo:"appendTo",bufferAmount:"bufferAmount",headerTemplate:"headerTemplate",footerTemplate:"footerTemplate"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[i.Eb],ngContentSelectors:S,decls:9,vars:6,consts:[["class","ng-dropdown-header",4,"ngIf"],[1,"ng-dropdown-panel-items","scroll-host"],["scroll",""],["padding",""],["content",""],["class","ng-dropdown-footer",4,"ngIf"],[1,"ng-dropdown-header"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-dropdown-footer"]],template:function(e,t){1&e&&(i.sc(),i.Oc(0,k,2,4,"div",0),i.Zb(1,"div",1,2),i.Ub(3,"div",null,3),i.Zb(5,"div",null,4),i.rc(7),i.Yb(),i.Yb(),i.Oc(8,C,2,4,"div",5)),2&e&&(i.tc("ngIf",t.headerTemplate),i.Gb(3),i.Lb("total-padding",t.virtualScroll),i.Gb(2),i.Lb("scrollable-content",t.virtualScroll&&t.items.length),i.Gb(3),i.tc("ngIf",t.footerTemplate))},directives:[b.n,b.s],encapsulation:2,changeDetection:0}),e})(),xe=(()=>{class e{constructor(e){this.elementRef=e,this.stateChange$=new f.a,this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=this._isDisabled(e)}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(e){e.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this._disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}_isDisabled(e){return null!=e&&"false"!=`${e}`}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l))},e.\u0275cmp=i.Nb({type:e,selectors:[["ng-option"]],inputs:{disabled:"disabled",value:"value"},features:[i.Eb],ngContentSelectors:S,decls:1,vars:0,template:function(e,t){1&e&&(i.sc(),i.rc(0))},encapsulation:2,changeDetection:0}),e})(),Ae=(()=>{class e{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Pb)({factory:function(){return new e},token:e,providedIn:"root"}),e})();const Ee=new i.t("ng-select-selection-model");let Me=(()=>{class e{constructor(e,t,n,r,s,o,a){this.classes=e,this.autoFocus=t,this._cd=o,this._console=a,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=e=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=ne
1w i.o,this.focusEvent=new i.o,this.changeEvent=new i.o,this.openEvent=new i.o,this.closeEvent=new i.o,this.searchEvent=new i.o,this.clearEvent=new i.o,this.addEvent=new i.o,this.removeEvent=new i.o,this.scroll=new i.o,this.scrollToEnd=new i.o,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=_e(),this.escapeHTML=!0,this.useDefaultClass=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new f.a,this._keyPress$=new f.a,this._onChange=e=>{},this._onTouched=()=>{},this.clearItem=e=>{const t=this.selectedItems.find(t=>t.value===e);this.unselect(t)},this.trackByOption=(e,t)=>this.trackByFn?this.trackByFn(t.value):t,this._mergeGlobalConfig(n),this.itemsList=new Ce(this,r()),this.element=s.nativeElement}get items(){return this._items}set items(e){this._itemsAreUsed=!0,this._items=e}get compareWith(){return this._compareWith}set compareWith(e){if(null!=e&&!oe(e))throw Error("`compareWith` must be a function.");this._compareWith=e}get clearSearchOnAdd(){return re(this._clearSearchOnAdd)?this._clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(e){this._clearSearchOnAdd=e}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(e=>e.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(e){e.multiple&&this.itemsList.clearSelected(),e.items&&this._setItems(e.items.currentValue||[]),e.isOpen&&(this._manualOpen=re(e.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),re(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(e){if(Se[e.which]){if(!1===this.keyDownFn(e))return;this.handleKeyCode(e)}else e.key&&1===e.key.length&&this._keyPress$.next(e.key.toLocaleLowerCase())}handleKeyCode(e){switch(e.which){case Se.ArrowDown:this._handleArrowDown(e);break;case Se.ArrowUp:this._handleArrowUp(e);break;case Se.Space:this._handleSpace(e);break;case Se.Enter:this._handleEnter(e);break;case Se.Tab:this._handleTab(e);break;case Se.Esc:this.close(),e.preventDefault();break;case Se.Backspace:this._handleBackspace()}}handleMousedown(e){const t=e.target;"INPUT"!==t.tagName&&e.preventDefault(),t.classList.contains("ng-clear-wrapper")?this.handleClearClick():t.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():t.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(e){this.itemsList.clearSelected(),this._handleWriteValue(e),this._cd.markForCheck()}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._disabled=e,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this.itemsList.maxItemsSelected||this._manualOpen||(this._isTypeahead||this.addTag||!this.itemsList.noItemsToSelect)&&(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){this.isOpen&&!this._manualOpen&&(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(e){!e||e.disabled||this.disabled||(this.multiple&&e.selected?this.unselect(e):this.select(e),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(e){e.selected||(this.itemsList.select(e),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(e.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(e){e&&(this.itemsList.unselect(e),this.focus(),this._updateNgModel(),this.removeEvent.emit(e))}selectTag(){let e;e=oe(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const t=e=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(e,null):this.itemsList.addItem(e);e instanceof Promise?e.then(e=>this.select(t(e))).catch(()=>{}):e&&this.select(t(e))}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}
1get showAddTag(){if(!this._validTerm)return!1;const e=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(t=>t.label.toLowerCase()===e)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(t=>t.label.toLowerCase()===e))&&!this.loading}showNoItemsFound(){const e=0===this.itemsList.filteredItems.length;return(e&&!this._isTypeahead&&!this.loading||e&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(e){this._isComposing=!1,this.searchWhileComposing||this.filter(e)}filter(e){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=e,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(e),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:e,items:this.itemsList.filteredItems.map(e=>e.value)}),this.open())}onInputFocus(e){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(e),this.focused=!0)}onInputBlur(e){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(e),this.isOpen||this.disabled||this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(e){e.disabled||this.itemsList.markItem(e)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const e=this.selectedItems&&this.selectedItems[0];this.searchTerm=e&&e.label||null}_setItems(e){const t=e[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=re(t)?!se(t):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(e),e.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&re(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const e=e=>{this.items=e.map(e=>({$ngOptionValue:e.value,$ngOptionLabel:e.elementRef.nativeElement.innerHTML,disabled:e.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},t=()=>{const e=Object(m.a)(this.ngOptions.changes,this._destroy$);Object(m.a)(...this.ngOptions.map(e=>e.stateChange$)).pipe(Object(s.a)(e)).subscribe(e=>{const t=this.itemsList.findItem(e.value);t.disabled=e.disabled,t.label=e.label||t.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe(Object(a.a)(this.ngOptions),Object(s.a)(this._destroy$)).subscribe(n=>{this.bindLabel=this._defaultLabel,e(n),t()})}_isValidWriteValue(e){if(!re(e)||this.multiple&&""===e||Array.isArray(e)&&0===e.length)return!1;const t=e=>!(!re(this.compareWith)&&se(e)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(e)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(e)?e.every(e=>t(e)):(this._console.warn("Multiple select ngModel should be array."),!1):t(e)}_handleWriteValue(e){if(!this._isValidWriteValue(e))return;const t=e=>{let t=this.itemsList.findItem(e);if(t)this.itemsList.select(t);else{const n=se(e);n||!n&&!this.bindValue?this.itemsList.select(this.itemsList.mapItem(e,null)):this.bindValue&&(t={[this.bindLabel]:null,[this.bindValue]:e},this.itemsList.select(this.itemsList.mapItem(t,null)))}};this.multiple?e.forEach(e=>t(e)):t(e)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe(Object(s.a)(this._destroy$),Object(c.a)(e=>this._pressedKeys.push(e)),Object(l.a)(200),Object(u.a)(()=>this._pressedKeys.length>0),Object(d.a)(()=>this._pressedKeys.join(""))).subscribe(e=>{const t=this.itemsList.findByLabel(e);t&&(this.isOpen?(this.itemsList.markItem(t),this._scrollToMarked(),this._cd.markForCheck()):this.select(t)),this._pressedKeys=[]})}_setInputAttributes(){const e=this.searchInput.nativeElement,t=Object.assign({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId},this.inputAttrs);for(const n of Object.keys(t))e.setAttribute(n,t[n])}_updateNgModel(){const e=[];for(const n of this.selectedItems)if(this.bindValue){let t=null;t=n.children?n.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(n.value,this.bindValue),e.push(t)}else e.push(n.value);const t=this.selectedItems.map(e=>e.value);this.multiple?(this._onChange(e),this.changeEvent.emit(t)):(this._onChange(re(e[0])?e[0]:null),this.changeEvent.emit(t[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(e){this.searchTerm=e,this._isTypeahead&&this.typeahead.next(e)}_scrollToMarked(){this.isOpen&&this.dropdownPanel&&this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){this.isOpen&&this.dropdownPanel&&this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.multiple&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(e){(!1!==this.isOpen||this.addTag)&&(this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),e.preventDefault()):this.showAddTag?(this.selectTag(),e.preventDefault()):this.close():this.close())}_handleEnter(e){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}e.preventDefault()}_handleSpace(e){this.isOpen||this._manualOpen||(this.open(),e.preventDefault())}_handleArrowDown(e){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),e.preventDefault()}_handleArrowUp(e){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),e.preventDefault())}_nextItemIsTag(e){const t=this.itemsList.markedIndex+e;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(t<0||t===this.itemsList.filteredItems.length)}_handleBackspace(){!this.searchTerm&&this.clearable&&this.clearOnBackspace&&this.hasValue&&(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){const e=this.searchTerm&&this.searchTerm.trim();return e&&e.length>=this.minTermLength}_mergeGlobalConfig(e){this.placeholder=this.placeholder||e.placeholder,this.notFoundText=this.notFoundText||e.notFoundText,this.typeToSearchText=this.typeToSearchText||e.typeToSearchText,this.addTagText=this.addTagText||e.addTagText,this.loadingText=this.loadingText||e.loadingText,this.clearAllText=this.clearAllText||e.clearAllText,this.virtualScroll=re(this.virtualScroll)?this.virtualScroll:!!re(e.disableVirtualScroll)&&!e.disableVirtualScroll,this.openOnEnter=re(this.openOnEnter)?this.openOnEnter:e.openOnEnter,this.appendTo=this.appendTo||e.a
1ppendTo,this.bindValue=this.bindValue||e.bindValue,this.bindLabel=this.bindLabel||e.bindLabel,this.appearance=this.appearance||e.appearance}}return e.\u0275fac=function(t){return new(t||e)(i.hc("class"),i.hc("autofocus"),i.Tb(Ae),i.Tb(Ee),i.Tb(i.l),i.Tb(i.h),i.Tb(ve))},e.\u0275cmp=i.Nb({type:e,selectors:[["ng-select"]],contentQueries:function(e,t,n){if(1&e&&(i.Mb(n,ce,1,i.Q),i.Mb(n,le,1,i.Q),i.Mb(n,ue,1,i.Q),i.Mb(n,de,1,i.Q),i.Mb(n,he,1,i.Q),i.Mb(n,pe,1,i.Q),i.Mb(n,fe,1,i.Q),i.Mb(n,ge,1,i.Q),i.Mb(n,me,1,i.Q),i.Mb(n,be,1,i.Q),i.Mb(n,ye,1,i.Q),i.Mb(n,xe,1)),2&e){let e;i.Ec(e=i.kc())&&(t.optionTemplate=e.first),i.Ec(e=i.kc())&&(t.optgroupTemplate=e.first),i.Ec(e=i.kc())&&(t.labelTemplate=e.first),i.Ec(e=i.kc())&&(t.multiLabelTemplate=e.first),i.Ec(e=i.kc())&&(t.headerTemplate=e.first),i.Ec(e=i.kc())&&(t.footerTemplate=e.first),i.Ec(e=i.kc())&&(t.notFoundTemplate=e.first),i.Ec(e=i.kc())&&(t.typeToSearchTemplate=e.first),i.Ec(e=i.kc())&&(t.loadingTextTemplate=e.first),i.Ec(e=i.kc())&&(t.tagTemplate=e.first),i.Ec(e=i.kc())&&(t.loadingSpinnerTemplate=e.first),i.Ec(e=i.kc())&&(t.ngOptions=e)}},viewQuery:function(e,t){if(1&e&&(i.Vc(Oe,1),i.Vc(T,3)),2&e){let e;i.Ec(e=i.kc())&&(t.dropdownPanel=e.first),i.Ec(e=i.kc())&&(t.searchInput=e.first)}},hostVars:20,hostBindings:function(e,t){1&e&&i.jc("keydown",function(e){return t.handleKeyDown(e)}),2&e&&i.Lb("ng-select",t.useDefaultClass)("ng-select-single",!t.multiple)("ng-select-multiple",t.multiple)("ng-select-taggable",t.addTag)("ng-select-searchable",t.searchable)("ng-select-clearable",t.clearable)("ng-select-opened",t.isOpen)("ng-select-disabled",t.disabled)("ng-select-filtered",t.filtered)("ng-select-typeahead",t.typeahead)},inputs:{markFirst:"markFirst",dropdownPosition:"dropdownPosition",loading:"loading",closeOnSelect:"closeOnSelect",hideSelected:"hideSelected",selectOnTab:"selectOnTab",bufferAmount:"bufferAmount",selectableGroup:"selectableGroup",selectableGroupAsModel:"selectableGroupAsModel",searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:"clearOnBackspace",labelForId:"labelForId",inputAttrs:"inputAttrs",readonly:"readonly",searchWhileComposing:"searchWhileComposing",minTermLength:"minTermLength",editableSearchTerm:"editableSearchTerm",keyDownFn:"keyDownFn",multiple:"multiple",addTag:"addTag",searchable:"searchable",clearable:"clearable",isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",bindLabel:"bindLabel",placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",virtualScroll:"virtualScroll",openOnEnter:"openOnEnter",appendTo:"appendTo",bindValue:"bindValue",appearance:"appearance",maxSelectedItems:"maxSelectedItems",groupBy:"groupBy",groupValue:"groupValue",tabIndex:"tabIndex",typeahead:"typeahead"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[i.Fb([{provide:r.m,useExisting:Object(i.Y)(()=>e),multi:!0},Te]),i.Eb],decls:14,vars:19,consts:[[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[4,"ngIf"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"readOnly","disabled","value","input","compositionstart","compositionend","focus","blur","change"],["searchInput",""],["class","ng-clear-wrapper",3,"title",4,"ngIf"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["class","ng-dropdown-panel","role","listbox","aria-label","Options list",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","update","scroll","scrollToEnd","outsideClick",4,"ngIf"],["class","ng-value",3,"ng-value-disabled",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ng-value"],["defaultLabelTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],["defaultLoadingSpinnerTemplate",""],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],[1,"ng-clear-wrapper",3,"title"],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id","update","scroll","scrollToEnd","outsideClick"],["class","ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked","click","mouseover",4,"ngFor","ngForOf","ngForTrackBy"],["class","ng-option","role","option",3,"ng-option-marked","mouseover","click",4,"ngIf"],[1,"ng-option",3,"click","mouseover"],["defaultOptionTemplate",""],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],["defaultTagTemplate",""],[1,"ng-tag-label"],["defaultNotFoundTemplate",""],[1,"ng-option","ng-option-disabled"],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""]],template:function(e,t){if(1&e){const e=i.ac();i.Zb(0,"div",0),i.jc("mousedown",function(e){return t.handleMousedown(e)}),i.Zb(1,"div",1),i.Zb(2,"div",2),i.Qc(3),i.Yb(),i.Oc(4,E,2,2,"ng-container",3),i.Oc(5,R,1,5,void 0,3),i.Zb(6,"div",4),i.Zb(7,"input",5,6),i.jc("input",function(){i.Hc(e);const n=i.Fc(8);return t.filter(n.value)})("compositionstart",function(){return t.onCompositionStart()})("compositionend",function(){i.Hc(e);const n=i.Fc(8);return t.onCompositionEnd(n.value)})("focus",function(e){return t.onInputFocus(e)})("blur",function(e){return t.onInputBlur(e)})("change",function(e){return e.stopPropagation()}),i.Yb(),i.Yb(),i.Yb(),i.Oc(9,j,4,1,"ng-container",3),i.Oc(10,N,3,1,"span",7),i.Zb(11,"span",8),i.Ub(12,"span",9),i.Yb(),i.Yb(),i.Oc(13,ee,7,19,"ng-dropdown-panel",10)}2&e&&(i.Lb("ng-appearance-outline","outline"===t.appearance)("ng-has-value",t.hasValue),i.Gb(3),i.Rc(t.placeholder),i.Gb(1),i.tc("ngIf",(!t.multiLabelTemplate||!t.multiple)&&t.selectedItems.length>0),i.Gb(1),i.tc("ngIf",t.multiple&&t.multiLabelTemplate&&t.selectedValues.length>0),i.Gb(1),i.Hb("aria-expanded",t.isOpen)("aria-owns",t.isOpen?t.dropdownId:null),i.Gb(1),i.tc("readOnly",!t.searchable||t.itemsList.maxItemsSelected)("disabled",t.disabled)("value",t.searchTerm?t.searchTerm:""),i.Hb("id",t.labelForId)("tabindex",t.tabIndex)("aria-activedescendant",t.isOpen?null==t.itemsList||null==t.itemsList.markedItem?null:t.itemsList.markedItem.htmlId:null)("aria-controls",t.isOpen?t.dropdownId:null),i.Gb(2),i.tc("ngIf",t.loading),i.Gb(1),i.tc("ngIf",t.showClear()),i.Gb(3),i.tc("ngIf",t.isOpen))},directives:[b.n,b.m,b.s,ae,Oe,b.l],styles:['.ng-select{display:block;position:relative}.ng-select,.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:default;user-select:none}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}
1.ng-select .ng-select-container .ng-value-container .ng-input>input{background:none transparent;border:0;box-shadow:none;box-sizing:content-box;cursor:default;outline:none;padding:0;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;padding:0;user-select:none;width:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{left:0;position:absolute;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:pointer;position:relative;user-select:none;width:17px}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{-webkit-animation:load8 .8s linear infinite;animation:load8 .8s linear infinite;border:2px solid rgba(66,66,66,.2);border-left-color:#424242;border-radius:50%;font-size:10px;height:17px;margin-right:5px;position:relative;text-indent:-9999em;transform:translateZ(0);width:17px}.ng-select .ng-spinner-loader:after{border-radius:50%;height:17px;width:17px}@-webkit-keyframes load8{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes load8{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ng-select .ng-arrow-wrapper{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:pointer;position:relative;text-align:center;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{display:inline-block;height:0;pointer-events:none;position:relative;width:0}.ng-dropdown-panel{-webkit-overflow-scrolling:touch;box-sizing:border-box;opacity:0;position:absolute;width:100%;z-index:1050}.ng-dropdown-panel .ng-dropdown-panel-items{box-sizing:border-box;display:block;height:auto;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{-webkit-overflow-scrolling:touch;display:block;overflow:hidden;overflow-y:auto;position:relative}.ng-dropdown-panel .scrollable-content{height:100%;left:0;position:absolute;top:0;width:100%}.ng-dropdown-panel .total-padding{opacity:0;width:1px}'],encapsulation:2,changeDetection:0}),e})();class Ie{constructor(){this._selected=[]}get value(){return this._selected}select(e,t,n){if(e.selected=!0,(!e.children||!t&&n)&&this._selected.push(e),t)if(e.parent){const t=e.parent.children.length,n=e.parent.children.filter(e=>e.selected).length;e.parent.selected=t===n}else e.children&&(this._setChildrenSelectedState(e.children,!0),this._removeChildren(e),this._selected=n&&this._activeChildren(e)?[...this._selected.filter(t=>t.parent!==e),e]:[...this._selected,...e.children.filter(e=>!e.disabled)])}unselect(e,t){if(this._selected=this._selected.filter(t=>t!==e),e.selected=!1,t)if(e.parent&&e.parent.selected){const t=e.parent.children;this._removeParent(e.parent),this._removeChildren(e.parent),this._selected.push(...t.filter(t=>t!==e&&!t.disabled)),e.parent.selected=!1}else e.children&&(this._setChildrenSelectedState(e.children,!1),this._removeChildren(e))}clear(e){this._selected=e?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(e,t){for(const n of e)n.disabled||(n.selected=t)}_removeChildren(e){this._selected=[...this._selected.filter(t=>t.parent!==e),...e.children.filter(t=>t.parent===e&&t.disabled&&t.selected)]}_removeParent(e){this._selected=this._selected.filter(t=>t!==e)}_activeChildren(e){return e.children.every(e=>!e.disabled||e.selected)}}const Re=function(){return new Ie};let Le=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({providers:[{provide:Ee,useValue:Re}],imports:[[b.c]]}),e})()},ZUHj:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("7o/Q");class r extends i.a{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var s=n("SeVD"),o=n("HDdC");
1function a(e,t,n,i,a=new r(e,n,i)){if(!a.closed)return t instanceof o.a?t.subscribe(a):Object(s.a)(t)(a)}},Zfcy:function(e,t,n){"use strict";n.d(t,"a",function(){return i});let i=(()=>{class e{static setApiVersion(t="api"){e.version=t}static getApiVersion(){return e.version}static setBaseURL(t="/"){e.path=t}static getPath(){return e.path}static setAuthPrefix(t=""){e.authPrefix=t}static getAuthPrefix(){return e.authPrefix}static setDebugMode(t){e.debug=t}static debuggable(){return e.debug}static filterOnUrl(){e.filterOn="url"}static filterOnHeaders(){e.filterOn="headers"}static whereOnUrl(){e.whereOn="url"}static whereOnHeaders(){e.whereOn="headers"}static isHeadersFilteringSet(){return"headers"===e.filterOn}static isHeadersWhereSet(){return"headers"===e.whereOn}static setSecureWebSockets(){e.secure=!0}static unsetSecureWebSockets(){e.secure=!1}static isSecureWebSocketsSet(){return e.secure}static setRequestOptionsCredentials(t=!1){e.withCredentials=t}static getRequestOptionsCredentials(){return e.withCredentials}}return e.path="//0.0.0.0:3000",e.version="api",e.authPrefix="",e.debug=!0,e.filterOn="headers",e.whereOn="headers",e.secure=!1,e.withCredentials=!1,e})()},ZkRv:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getAssociate(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPayments/:id/associate",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}findByIdTransactions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPayments/:id/transactions/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdTransactions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPayments/:id/transactions/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdTransactions(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPayments/:id/transactions/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPayments/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getTransactions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPayments/:id/transactions",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createTransactions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPayments/:id/transactions";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteTransactions(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPayments/:id/transactions";return this.request("DELETE",n,{id:e},{},{},null,t)}countTransactions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPayments/:id/transactions/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPayments/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}process(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPayments/:id/process";return this.request("POST",n,{id:e},{},{},null,t)}update_sezione(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPayments/update/sezione",i={};return null!=e&&(i.where=e),this.request("POST",n,{},i,{},null,t)}printSimpleReceipt(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPayments/:id/print/receipt";return this.request("GET",n,{id:e},{},{},null,t)}getCompleted(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPayments/completed",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countCompleted(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPayments/completed/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}getRegistered(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPayments/registered",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countRegistered(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPayments/registered/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}createManyTransactions(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiPayments/:id/transactions";return this.request("POST",i,{id:e},{},{data:t},null,n)}getModelName(){return"SimiPayment"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},ZtdT:function(e,t,n){var i;"undefined"!=typeof self&&self,i=function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i,l:!1,exports:{}};
vendor: 847 bytes, line 1
1return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,(function(t){return e[t]}).bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./package/src/index.js")}({
vendor: 3,061 bytes, line 1
1"./node_modules/classnames/dedupe.js":function(e,t,n){var i;!function(){"use strict";var n=function(){function e(){}function t(e,t){for(var n=t.length,i=0;i<n;++i)r(e,t[i])}e.prototype=Object.create(null);var n={}.hasOwnProperty,i=/\s+/;function r(e,r){if(r){var s=typeof r;"string"===s?function(e,t){for(var n=t.split(i),r=n.length,s=0;s<r;++s)e[n[s]]=!0}(e,r):Array.isArray(r)?t(e,r):"object"===s?function(e,t){for(var i in t)n.call(t,i)&&(e[i]=!!t[i])}(e,r):"number"===s&&function(e,t){e[t]=!0}(e,r)}}return function(){for(var n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];var s=new e;t(s,i);var o=[];for(var a in s)s[a]&&o.push(a);return o.join(" ")}}();void 0!==e&&e.exports?(n.default=n,e.exports=n):void 0===(i=(function(){return n}).apply(t,[]))||(e.exports=i)}()},"./node_modules/css-loader/index.js!./node_modules/sass-loader/lib/loader.js!./package/src/animation.scss":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")(!1)).push([e.i,"/**\n * @license\n * Copyright Akveo. All Rights Reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n */\n.eva-animation {\n animation-duration: 1s;\n animation-fill-mode: both; }\n\n.eva-infinite {\n animation-iteration-count: infinite; }\n\n.eva-icon-shake {\n animation-name: eva-shake; }\n\n.eva-icon-zoom {\n animation-name: eva-zoomIn; }\n\n.eva-icon-pulse {\n animation-name: eva-pulse; }\n\n.eva-icon-flip {\n animation-name: eva-flipInY; }\n\n.eva-hover {\n display: inline-block; }\n\n.eva-hover:hover .eva-icon-hover-shake, .eva-parent-hover:hover .eva-icon-hover-shake {\n animation-name: eva-shake; }\n\n.eva-hover:hover .eva-icon-hover-zoom, .eva-parent-hover:hover .eva-icon-hover-zoom {\n animation-name: eva-zoomIn; }\n\n.eva-hover:hover .eva-icon-hover-pulse, .eva-parent-hover:hover .eva-icon-hover-pulse {\n animation-name: eva-pulse; }\n\n.eva-hover:hover .eva-icon-hover-flip, .eva-parent-hover:hover .eva-icon-hover-flip {\n animation-name: eva-flipInY; }\n\n@keyframes eva-flipInY {\n from {\n transform: perspective(400px) rotate3d(0, 1, 0, 90deg);\n animation-timing-function: ease-in;\n opacity: 0; }\n 40% {\n transform: perspective(400px) rotate3d(0, 1, 0, -20deg);\n animation-timing-function: ease-in; }\n 60% {\n transform: perspective(400px) rotate3d(0, 1, 0, 10deg);\n opacity: 1; }\n 80% {\n transform: perspective(400px) rotate3d(0, 1, 0, -5deg); }\n to {\n transform: perspective(400px); } }\n\n@keyframes eva-shake {\n from,\n to {\n transform: translate3d(0, 0, 0); }\n 10%,\n 30%,\n 50%,\n 70%,\n 90% {\n transform: translate3d(-3px, 0, 0); }\n 20%,\n 40%,\n 60%,\n 80% {\n transform: translate3d(3px, 0, 0); } }\n\n@keyframes eva-pulse {\n from {\n transform: scale3d(1, 1, 1); }\n 50% {\n transform: scale3d(1.2, 1.2, 1.2); }\n to {\n transform: scale3d(1, 1, 1); } }\n\n@keyframes eva-zoomIn {\n from {\n opacity: 1;\n transform: scale3d(0.5, 0.5, 0.5); }\n 50% {\n opacity: 1; } }\n",""])},
vendor: 837 bytes, line 1
1"./node_modules/css-loader/lib/css-base.js":function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var r="/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */",s=i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"});return[n].concat(s).concat([r]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},r=0;r<this.length;r++){var s=this[r][0];"number"==typeof s&&(i[s]=!0)}for(r=0;r<e.length;r++){var o=e[r];"number"==typeof o[0]&&i[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),t.push(o))}},t}},
vendor: 1,059 bytes, line 1
1"./node_modules/isomorphic-style-loader/insertCss.js":function(e,t,n){"use strict";var i={};function r(e){e.forEach(function(e){if(--i[e]<=0){var t=document.getElementById(e);t&&t.parentNode.removeChild(t)}})}e.exports=function(e,t){for(var n,s=void 0===t?{}:t,o=s.replace,a=void 0!==o&&o,c=s.prepend,l=void 0!==c&&c,u=s.prefix,d=void 0===u?"s":u,h=[],p=0;p<e.length;p++){var f=e[p],g=f[1],m=f[2],b=f[3],y=""+d+f[0]+"-"+p;if(h.push(y),!i[y]||a){i[y]=1;var v=document.getElementById(y),_=!1;v||(_=!0,(v=document.createElement("style")).setAttribute("type","text/css"),v.id=y,m&&v.setAttribute("media",m));var w=g;b&&"function"==typeof btoa&&(w+="\n/*# sourceMappingURL=data:application/json;base64,"+(n=JSON.stringify(b),btoa(encodeURIComponent(n).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode("0x"+t)}))+"*/"),w+="\n/*# sourceURL="+b.file+"?"+y+"*/"),"textContent"in v?v.textContent=w:v.styleSheet.cssText=w,_&&(l?document.head.insertBefore(v,document.head.childNodes[0]):document.head.appendChild(v))}else i[y]++}return r.bind(null,h)}},
1"./package-build/eva-icons.json":function(e){e
vendor: 214,295 bytes, line 1
1.exports={activity:'<g data-name="Layer 2"><g data-name="activity"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M14.33 20h-.21a2 2 0 0 1-1.76-1.58L9.68 6l-2.76 6.4A1 1 0 0 1 6 13H3a1 1 0 0 1 0-2h2.34l2.51-5.79a2 2 0 0 1 3.79.38L14.32 18l2.76-6.38A1 1 0 0 1 18 11h3a1 1 0 0 1 0 2h-2.34l-2.51 5.79A2 2 0 0 1 14.33 20z"/></g></g>',"alert-circle":'<g data-name="Layer 2"><g data-name="alert-circle"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 15a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm1-4a1 1 0 0 1-2 0V8a1 1 0 0 1 2 0z"/></g></g>',"alert-triangle":'<g data-name="Layer 2"><g data-name="alert-triangle"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M22.56 16.3L14.89 3.58a3.43 3.43 0 0 0-5.78 0L1.44 16.3a3 3 0 0 0-.05 3A3.37 3.37 0 0 0 4.33 21h15.34a3.37 3.37 0 0 0 2.94-1.66 3 3 0 0 0-.05-3.04zM12 17a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm1-4a1 1 0 0 1-2 0V9a1 1 0 0 1 2 0z"/></g></g>',archive:'<g data-name="Layer 2"><g data-name="archive"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M18 3H6a3 3 0 0 0-2 5.22V18a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V8.22A3 3 0 0 0 18 3zm-3 10.13a.87.87 0 0 1-.87.87H9.87a.87.87 0 0 1-.87-.87v-.26a.87.87 0 0 1 .87-.87h4.26a.87.87 0 0 1 .87.87zM18 7H6a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2z"/></g></g>',"arrow-back":'<g data-name="Layer 2"><g data-name="arrow-back"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M19 11H7.14l3.63-4.36a1 1 0 1 0-1.54-1.28l-5 6a1.19 1.19 0 0 0-.09.15c0 .05 0 .08-.07.13A1 1 0 0 0 4 12a1 1 0 0 0 .07.36c0 .05 0 .08.07.13a1.19 1.19 0 0 0 .09.15l5 6A1 1 0 0 0 10 19a1 1 0 0 0 .64-.23 1 1 0 0 0 .13-1.41L7.14 13H19a1 1 0 0 0 0-2z"/></g></g>',"arrow-circle-down":'<g data-name="Layer 2"><g data-name="arrow-circle-down"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm3.69 11.86l-3 2.86a.49.49 0 0 1-.15.1.54.54 0 0 1-.16.1.94.94 0 0 1-.76 0 1 1 0 0 1-.33-.21l-3-3a1 1 0 0 1 1.42-1.42l1.29 1.3V8a1 1 0 0 1 2 0v5.66l1.31-1.25a1 1 0 0 1 1.38 1.45z"/></g></g>',"arrow-circle-left":'<g data-name="Layer 2"><g data-name="arrow-circle-left"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M22 12a10 10 0 1 0-10 10 10 10 0 0 0 10-10zm-11.86 3.69l-2.86-3a.49.49 0 0 1-.1-.15.54.54 0 0 1-.1-.16.94.94 0 0 1 0-.76 1 1 0 0 1 .21-.33l3-3a1 1 0 0 1 1.42 1.42L10.41 11H16a1 1 0 0 1 0 2h-5.66l1.25 1.31a1 1 0 0 1-1.45 1.38z"/></g></g>',"arrow-circle-right":'<g data-name="Layer 2"><g data-name="arrow-circle-right"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M2 12A10 10 0 1 0 12 2 10 10 0 0 0 2 12zm11.86-3.69l2.86 3a.49.49 0 0 1 .1.15.54.54 0 0 1 .1.16.94.94 0 0 1 0 .76 1 1 0 0 1-.21.33l-3 3a1 1 0 0 1-1.42-1.42l1.3-1.29H8a1 1 0 0 1 0-2h5.66l-1.25-1.31a1 1 0 0 1 1.45-1.38z"/></g></g>',"arrow-circle-up":'<g data-name="Layer 2"><g data-name="arrow-circle-up"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M12 22A10 10 0 1 0 2 12a10 10 0 0 0 10 10zM8.31 10.14l3-2.86a.49.49 0 0 1 .15-.1.54.54 0 0 1 .16-.1.94.94 0 0 1 .76 0 1 1 0 0 1 .33.21l3 3a1 1 0 0 1-1.42 1.42L13 10.41V16a1 1 0 0 1-2 0v-5.66l-1.31 1.25a1 1 0 0 1-1.38-1.45z"/></g></g>',"arrow-down":'<g data-name="Layer 2"><g data-name="arrow-downward"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M12 17a1.72 1.72 0 0 1-1.33-.64l-4.21-5.1a2.1 2.1 0 0 1-.26-2.21A1.76 1.76 0 0 1 7.79 8h8.42a1.76 1.76 0 0 1 1.59 1.05 2.1 2.1 0 0 1-.26 2.21l-4.21 5.1A1.72 1.72 0 0 1 12 17z"/></g></g>',"arrow-downward":'<g data-name="Layer 2"><g data-name="arrow-down"><rect width="24" height="24" opacity="0"/><path d="M18.77 13.36a1 1 0 0 0-1.41-.13L13 16.86V5a1 1 0 0 0-2 0v11.86l-4.36-3.63a1 1 0 1 0-1.28 1.54l6 5 .15.09.13.07a1 1 0 0 0 .72 0l.13-.07.15-.09 6-5a1 1 0 0 0 .13-1.41z"/></g></g>',"arrow-forward":'<g data-name="Layer 2"><g data-name="arrow-forward"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M5 13h11.86l-3.63 4.36a1 1 0 0 0 1.54 1.28l5-6a1.19 1.19 0 0 0 .09-.15c0-.05.05-.08.07-.13A1 1 0 0 0 20 12a1 1 0 0 0-.07-.36c0-.05-.05-.08-.07-.13a1.19 1.19 0 0 0-.09-.15l-5-6A1 1 0 0 0 14 5a1 1 0 0 0-.64.23 1 1 0 0 0-.13 1.41L16.86 11H5a1 1 0 0 0 0 2z"/></g></g>',"arrow-ios-back":'<g data-name="Layer 2"><g data-name="arrow-ios-back"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M13.83 19a1 1 0 0 1-.78-.37l-4.83-6a1 1 0 0 1 0-1.27l5-6a1 1 0 0 1 1.54 1.28L10.29 12l4.32 5.36a1 1 0 0 1-.78 1.64z"/></g></g>',"arrow-ios-downward":'<g data-name="Layer 2"><g data-name="arrow-ios-downward"><rect width="24" height="24" opacity="0"/><path d="M12 16a1 1 0 0 1-.64-.23l-6-5a1 1 0 1 1 1.28-1.54L12 13.71l5.36-4.32a1 1 0 0 1 1.41.15 1 1 0 0 1-.14 1.46l-6 4.83A1 1 0 0 1 12 16z"/></g></g>',"arrow-ios-forward":'<g data-name="Layer 2"><g data-name="arrow-ios-forward"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M10 19a1 1 0 0 1-.64-.23 1 1 0 0 1-.13-1.41L13.71 12 9.39 6.63a1 1 0 0 1 .15-1.41 1 1 0 0 1 1.46.15l4.83 6a1 1 0 0 1 0 1.27l-5 6A1 1 0 0 1 10 19z"/></g></g>',"arrow-ios-upward":'<g data-name="Layer 2"><g data-name="arrow-ios-upward"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18 15a1 1 0 0 1-.64-.23L12 10.29l-5.37 4.32a1 1 0 0 1-1.41-.15 1 1 0 0 1 .15-1.41l6-4.83a1 1 0 0 1 1.27 0l6 5a1 1 0 0 1 .13 1.41A1 1 0 0 1 18 15z"/></g></g>',"arrow-left":'<g data-name="Layer 2"><g data-name="arrow-left"><rect width="24" height="24" opacity="0"/><path d="M13.54 18a2.06 2.06 0 0 1-1.3-.46l-5.1-4.21a1.7 1.7 0 0 1 0-2.66l5.1-4.21a2.1 2.1 0 0 1 2.21-.26 1.76 1.76 0 0 1 1.05 1.59v8.42a1.76 1.76 0 0 1-1.05 1.59 2.23 2.23 0 0 1-.91.2z"/></g></g>',"arrow-right":'<g data-name="Layer 2"><g data-name="arrow-right"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M10.46 18a2.23 2.23 0 0 1-.91-.2 1.76 1.76 0 0 1-1.05-1.59V7.79A1.76 1.76 0 0 1 9.55 6.2a2.1 2.1 0 0 1 2.21.26l5.1 4.21a1.7 1.7 0 0 1 0 2.66l-5.1 4.21a2.06 2.06 0 0 1-1.3.46z"/></g></g>',"arrow-up":'<g data-name="Layer 2"><g data-name="arrow-up"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M16.21 16H7.79a1.76 1.76 0 0 1-1.59-1 2.1 2.1 0 0 1 .26-2.21l4.21-5.1a1.76 1.76 0 0 1 2.66 0l4.21 5.1A2.1 2.1 0 0 1 17.8 15a1.76 1.76 0 0 1-1.59 1z"/></g></g>',"arrow-upward":'<g data-name="Layer 2"><g data-name="arrow-upward"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M5.23 10.64a1 1 0 0 0 1.41.13L11 7.14V19a1 1 0 0 0 2 0V7.14l4.36 3.63a1 1 0 1 0 1.28-1.54l-6-5-.15-.09-.13-.07a1 1 0 0 0-.72 0l-.13.07-.15.09-6 5a1 1 0 0 0-.13 1.41z"/></g></g>',"arrowhead-down":'<g data-name="Layer 2"><g data-name="arrowhead-down"><rect width="24" height="24" opacity="0"/><path d="M17.37 12.39L12 16.71l-5.36-4.48a1 1 0 1 0-1.28 1.54l6 5a1 1 0 0 0 1.27 0l6-4.83a1 1 0 0 0 .15-1.41 1 1 0 0 0-1.41-.14z"/><path d="M11.36 11.77a1 1 0 0 0 1.27 0l6-4.83a1 1 0 0 0 .15-1.41 1 1 0 0 0-1.41-.15L12 9.71 6.64 5.23a1 1 0 0 0-1.28 1.54z"/></g></g>',"arrowhead-left":'<g data-name="Layer 2"><g data-name="arrowhead-left"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M11.64 5.23a1 1 0 0 0-1.41.13l-5 6a1 1 0 0 0 0 1.27l4.83 6a1 1 0 0 0 .78.37 1 1 0 0 0 .78-1.63L7.29 12l4.48-5.37a1 1 0 0 0-.13-1.4z"/><path d="M14.29 12l4.48-5.37a1 1 0 0 0-1.54-1.28l-5 6a1 1 0 0 0 0 1.27l4.83 6a1 1 0 0 0 .78.37 1 1 0 0 0 .78-1.63z"/></g></g>',"arrowhead-right":'<g data-name="Layer 2"><g data-name="arrowhead-right"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M18.78 11.37l-4.78-6a1 1 0 0 0-1.41-.15 1 1 0 0 0-.15 1.41L16.71 12l-4.48 5.37a1 1 0 0 0 .13 1.41A1 1 0 0 0 13 19a1 1 0 0 0 .77-.36l5-6a1 1 0 0 0 .01-1.27z"/><path d="M7 5.37a1 1 0 0 0-1.61 1.26L9.71 12l-4.48 5.36a1 1 0 0 0 .13 1.41A1 1 0 0 0 6 19a1 1 0 0 0 .77-.36l5-6a1 1 0 0 0 0-1.27z"/></g></g>',"arrowhead-up":'<g data-name="Layer 2"><g data-name="arrowhead-up"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M6.63 11.61L12 7.29l5.37 4.48A1 1 0 0 0 18 12a1 1 0 0 0 .77-.36 1 1 0 0 0-.13-1.41l-6-5a1 1 0 0 0-1.27 0l-6 4.83a1 1 0 0 0-.15 1.41 1 1 0 0 0 1.41.14z"/><path d="M12.64 12.23a1 1 0 0 0-1.27 0l-6 4.83a1 1 0 0 0-.15 1.41 1 1 0 0 0 1.41.15L12 14.29l5.37 4.48A1 1 0 0 0 18 19a1 1 0 0 0 .77-.36 1 1 0 0 0-.13-1.41z"/></g></g>',at:'<g data-name="Layer 2"><g data-name="at"><rect width="24" height="24" opacity="0"/><path d="M13 2a10 10 0 0 0-5 19.1 10.15 10.15 0 0 0 4 .9 10 10 0 0 0 6.08-2.06 1 1 0 0 0 .19-1.4 1 1 0 0 0-1.41-.19A8 8 0 1 1 12.77 4 8.17 8.17 0 0 1 20 12.22v.68a1.71 1.71 0 0 1-1.78 1.7 1.82 1.82 0 0 1-1.62-1.88V8.4a1 1 0 0 0-1-1 1 1 0 0 0-1 .87 5 5 0 0 0-3.44-1.36A5.09 5.09 0 1 0 15.31 15a3.6 3.6 0 0 0 5.55.61A3.67 3.67 0 0 0 22 12.9v-.68A10.2 10.2 0 0 0 13 2zm-1.82 13.09A3.09 3.09 0 1 1 14.27 12a3.1 3.1 0 0 1-3.09 3.09z"/></g></g>',"attach-2":'<g data-name="Layer 2"><g data-name="attach-2"><rect width="24" height="24" opacity="0"/><path d="M12 22a5.86 5.86 0 0 1-6-5.7V6.13A4.24 4.24 0 0 1 10.33 2a4.24 4.24 0 0 1 4.34 4.13v10.18a2.67 2.67 0 0 1-5.33 0V6.92a1 1 0 0 1 1-1 1 1 0 0 1 1 1v9.39a.67.67 0 0 0 1.33 0V6.13A2.25 2.25 0 0 0 10.33 4 2.25 2.25 0 0 0 8 6.13V16.3a3.86 3.86 0 0 0 4 3.7 3.86 3.86 0 0 0 4-3.7V6.13a1 1 0 1 1 2 0V16.3a5.86 5.86 0 0 1-6 5.7z"/></g></g>',attach:'<g data-name="Layer 2"><g data-name="attach"><rect width="24" height="24" opacity="0"/><path d="M9.29 21a6.23 6.23 0 0 1-4.43-1.88 6 6 0 0 1-.22-8.49L12 3.2A4.11 4.11 0 0 1 15 2a4.48 4.48 0 0 1 3.19 1.35 4.36 4.36 0 0 1 .15 6.13l-7.4 7.43a2.54 2.54 0 0 1-1.81.75 2.72 2.72 0 0 1-1.95-.82 2.68 2.68 0 0 1-.08-3.77l6.83-6.86a1 1 0 0 1 1.37 1.41l-6.83 6.86a.68.68 0 0 0 .08.95.78.78 0 0 0 .53.23.56.56 0 0 0 .4-.16l7.39-7.43a2.36 2.36 0 0 0-.15-3.31 2.38 2.38 0 0 0-3.27-.15L6.06 12a4 4 0 0 0 .22 5.67 4.22 4.22 0 0 0 3 1.29 3.67 3.67 0 0 0 2.61-1.06l7.39-7.43a1 1 0 1 1 1.42 1.41l-7.39 7.43A5.65 5.65 0 0 1 9.29 21z"/></g></g>',award:'<g data-name="Layer 2"><g data-name="award"><rect width="24" height="24" opacity="0"/><path d="M19 20.75l-2.31-9A5.94 5.94 0 0 0 18 8 6 6 0 0 0 6 8a5.94 5.94 0 0 0 1.34 3.77L5 20.75a1 1 0 0 0 1.48 1.11l5.33-3.13 5.68 3.14A.91.91 0 0 0 18 22a1 1 0 0 0 1-1.25zM12 4a4 4 0 1 1-4 4 4 4 0 0 1 4-4z"/></g></g>',backspace:'<g data-name="Layer 2"><g data-name="backspace"><rect width="24" height="24" opacity="0"/><path d="M20.14 4h-9.77a3 3 0 0 0-2 .78l-.1.11-6 7.48a1 1 0 0 0 .11 1.37l6 5.48a3 3 0 0 0 2 .78h9.77A1.84 1.84 0 0 0 22 18.18V5.82A1.84 1.84 0 0 0 20.14 4zm-3.43 9.29a1 1 0 0 1 0 1.42 1 1 0 0 1-1.42 0L14 13.41l-1.29 1.3a1 1 0 0 1-1.42 0 1 1 0 0 1 0-1.42l1.3-1.29-1.3-1.29a1 1 0 0 1 1.42-1.42l1.29 1.3 1.29-1.3a1 1 0 0 1 1.42 1.42L15.41 12z"/></g></g>',"bar-chart-2":'<g data-name="Layer 2"><g data-name="bar-chart-2"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M12 8a1 1 0 0 0-1 1v11a1 1 0 0 0 2 0V9a1 1 0 0 0-1-1z"/><path d="M19 4a1 1 0 0 0-1 1v15a1 1 0 0 0 2 0V5a1 1 0 0 0-1-1z"/><path d="M5 12a1 1 0 0 0-1 1v7a1 1 0 0 0 2 0v-7a1 1 0 0 0-1-1z"/></g></g>',"bar-chart":'<g data-name="Layer 2"><g data-name="bar-chart"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M12 4a1 1 0 0 0-1 1v15a1 1 0 0 0 2 0V5a1 1 0 0 0-1-1z"/><path d="M19 12a1 1 0 0 0-1 1v7a1 1 0 0 0 2 0v-7a1 1 0 0 0-1-1z"/><path d="M5 8a1 1 0 0 0-1 1v11a1 1 0 0 0 2 0V9a1 1 0 0 0-1-1z"/></g></g>',battery:'<g data-name="Layer 2"><g data-name="battery"><rect width="24" height="24" opacity="0"/><path d="M15.83 6H4.17A2.31 2.31 0 0 0 2 8.43v7.14A2.31 2.31 0 0 0 4.17 18h11.66A2.31 2.31 0 0 0 18 15.57V8.43A2.31 2.31 0 0 0 15.83 6z"/><path d="M21 9a1 1 0 0 0-1 1v4a1 1 0 0 0 2 0v-4a1 1 0 0 0-1-1z"/></g></g>',behance:'<g data-name="Layer 2"><g data-name="behance"><rect width="24" height="24" opacity="0"/><path d="M14.76 11.19a1 1 0 0 0-1 1.09h2.06a1 1 0 0 0-1.06-1.09z"/><path d="M9.49 12.3H8.26v1.94h1c1 0 1.44-.33 1.44-1s-.46-.94-1.21-.94z"/><path d="M10.36 10.52c0-.53-.35-.85-.95-.85H8.26v1.74h.85c.89 0 1.25-.32 1.25-.89z"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zM9.7 15.2H7V8.7h2.7c1.17 0 1.94.61 1.94 1.6a1.4 1.4 0 0 1-1.12 1.43A1.52 1.52 0 0 1 12 13.37c0 1.16-1 1.83-2.3 1.83zm3.55-6h3v.5h-3zM17 13.05h-3.3v.14a1.07 1.07 0 0 0 1.09 1.19.9.9 0 0 0 1-.63H17a2 2 0 0 1-2.17 1.55 2.15 2.15 0 0 1-2.36-2.3v-.44a2.11 2.11 0 0 1 2.28-2.25A2.12 2.12 0 0 1 17 12.58z"/></g></g>',"bell-off":'<g data-name="Layer 2"><g data-name="bell-off"><rect width="24" height="24" opacity="0"/><path d="M15.88 18.71l-.59-.59L14 16.78l-.07-.07L6.58 9.4 5.31 8.14a5.68 5.68 0 0 0 0 .59v4.67l-1.8 1.81A1.64 1.64 0 0 0 4.64 18H8v.34A3.84 3.84 0 0 0 12 22a3.88 3.88 0 0 0 4-3.22zM14 18.34A1.88 1.88 0 0 1 12 20a1.88 1.88 0 0 1-2-1.66V18h4z"/><path d="M7.13 4.3l1.46 1.46 9.53 9.53 2 2 .31.3a1.58 1.58 0 0 0 .45-.6 1.62 1.62 0 0 0-.35-1.78l-1.8-1.81V8.94a6.86 6.86 0 0 0-5.83-6.88 6.71 6.71 0 0 0-5.32 1.61 6.88 6.88 0 0 0-.58.54z"/><path d="M20.71 19.29L19.41 18l-2-2-9.52-9.53L6.42 5 4.71 3.29a1 1 0 0 0-1.42 1.42L5.53 7l1.75 1.7 7.31 7.3.07.07L16 17.41l.59.59 2.7 2.71a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g>',bell:'<g data-name="Layer 2"><g data-name="bell"><rect width="24" height="24" opacity="0"/><path d="M20.52 15.21l-1.8-1.81V8.94a6.86 6.86 0 0 0-5.82-6.88 6.74 6.74 0 0 0-7.62 6.67v4.67l-1.8 1.81A1.64 1.64 0 0 0 4.64 18H8v.34A3.84 3.84 0 0 0 12 22a3.84 3.84 0 0 0 4-3.66V18h3.36a1.64 1.64 0 0 0 1.16-2.79zM14 18.34A1.88 1.88 0 0 1 12 20a1.88 1.88 0 0 1-2-1.66V18h4z"/></g></g>',bluetooth:'<g data-name="Layer 2"><g data-name="bluetooth"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M13.63 12l4-3.79a1.14 1.14 0 0 0-.13-1.77l-4.67-3.23a1.17 1.17 0 0 0-1.21-.08 1.15 1.15 0 0 0-.62 1v6.2l-3.19-4a1 1 0 0 0-1.56 1.3L9.72 12l-3.5 4.43a1 1 0 0 0 .16 1.4A1 1 0 0 0 7 18a1 1 0 0 0 .78-.38L11 13.56v6.29A1.16 1.16 0 0 0 12.16 21a1.16 1.16 0 0 0 .67-.21l4.64-3.18a1.17 1.17 0 0 0 .49-.85 1.15 1.15 0 0 0-.34-.91zM13 5.76l2.5 1.73L13 9.85zm0 12.49v-4.07l2.47 2.38z"/></g></g>',"book-open":'<g data-name="Layer 2"><g data-name="book-open"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M21 4.34a1.24 1.24 0 0 0-1.08-.23L13 5.89v14.27l7.56-1.94A1.25 1.25 0 0 0 21.5 17V5.32a1.25 1.25 0 0 0-.5-.98z"/><path d="M11 5.89L4.06 4.11A1.27 1.27 0 0 0 3 4.34a1.25 1.25 0 0 0-.48 1V17a1.25 1.25 0 0 0 .94 1.21L11 20.16z"/></g></g>',book:'<g data-name="Layer 2"><g data-name="book"><rect width="24" height="24" opacity="0"/><path d="M19 3H7a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zM7 19a1 1 0 0 1 0-2h11v2z"/></g></g>',bookmark:'<g data-name="Layer 2"><g data-name="bookmark"><rect width="24" height="24" opacity="0"/><path d="M6 21a1 1 0 0 1-.49-.13A1 1 0 0 1 5 20V5.33A2.28 2.28 0 0 1 7.2 3h9.6A2.28 2.28 0 0 1 19 5.33V20a1 1 0 0 1-.5.86 1 1 0 0 1-1 0l-5.67-3.21-5.33 3.2A1 1 0 0 1 6 21z"/></g></g>',briefcase:'<g data-name="Layer 2"><g data-name="briefcase"><rect width="24" height="24" opacity="0"/><path d="M7 21h10V7h-1V5.5A2.5 2.5 0 0 0 13.5 3h-3A2.5 2.5 0 0 0 8 5.5V7H7zm3-15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5V7h-4z"/><path d="M19 7v14a3 3 0 0 0 3-3v-8a3 3 0 0 0-3-3z"/><path d="M5 7a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3z"/></g></g>',browser:'<g data-name="Layer 2"><g data-name="browser"><rect width="24" height="24" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm-6 3a1 1 0 1 1-1 1 1 1 0 0 1 1-1zM8 6a1 1 0 1 1-1 1 1 1 0 0 1 1-1zm11 12a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-7h14z"/></g></g>',brush:'<g data-name="Layer 2"><g data-name="brush"><rect width="24" height="24" opacity="0"/><path d="M7.12 12.55a4 4 0 0 0-3.07 3.86v3.11a.47.47 0 0 0 .48.48l3.24-.06a3.78 3.78 0 0 0 3.44-2.2 3.65 3.65 0 0 0-4.09-5.19z"/><path d="M19.26 4.46a2.14 2.14 0 0 0-2.88.21L10 11.08a.47.47 0 0 0 0 .66L12.25 14a.47.47 0 0 0 .66 0l6.49-6.47a2.06 2.06 0 0 0 .6-1.47 2 2 0 0 0-.74-1.6z"/></g></g>',bulb:'<g data-name="Layer 2"><g data-name="bulb"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M12 7a5 5 0 0 0-3 9v4a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-4a5 5 0 0 0-3-9z"/><path d="M12 6a1 1 0 0 0 1-1V3a1 1 0 0 0-2 0v2a1 1 0 0 0 1 1z"/><path d="M21 11h-2a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2z"/><path d="M5 11H3a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2z"/><path d="M7.66 6.42L6.22 5a1 1 0 0 0-1.39 1.47l1.44 1.39a1 1 0 0 0 .73.28 1 1 0 0 0 .72-.31 1 1 0 0 0-.06-1.41z"/><path d="M19.19 5.05a1 1 0 0 0-1.41 0l-1.44 1.37a1 1 0 0 0 0 1.41 1 1 0 0 0 .72.31 1 1 0 0 0 .69-.28l1.44-1.39a1 1 0 0 0 0-1.42z"/></g></g>',calendar:'<g data-name="Layer 2"><g data-name="calendar"><rect width="24" height="24" opacity="0"/><path d="M18 4h-1V3a1 1 0 0 0-2 0v1H9V3a1 1 0 0 0-2 0v1H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3zM8 17a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm8 0h-4a1 1 0 0 1 0-2h4a1 1 0 0 1 0 2zm3-6H5V7a1 1 0 0 1 1-1h1v1a1 1 0 0 0 2 0V6h6v1a1 1 0 0 0 2 0V6h1a1 1 0 0 1 1 1z"/></g></g>',camera:'<g data-name="Layer 2"><g data-name="camera"><rect width="24" height="24" opacity="0"/><circle cx="12" cy="14" r="1.5"/><path d="M19 7h-3V5.5A2.5 2.5 0 0 0 13.5 3h-3A2.5 2.5 0 0 0 8 5.5V7H5a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-8a3 3 0 0 0-3-3zm-9-1.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5V7h-4zm2 12a3.5 3.5 0 1 1 3.5-3.5 3.5 3.5 0 0 1-3.5 3.5z"/></g></g>',car:'<g data-name="Layer 2"><g data-name="car"><rect width="24" height="24" opacity="0"/><path d="M21.6 11.22L17 7.52V5a1.91 1.91 0 0 0-1.81-2H3.79A1.91 1.91 0 0 0 2 5v10a2 2 0 0 0 1.2 1.88 3 3 0 1 0 5.6.12h6.36a3 3 0 1 0 5.64 0h.2a1 1 0 0 0 1-1v-4a1 1 0 0 0-.4-.78zM20 12.48V15h-3v-4.92zM7 18a1 1 0 1 1-1-1 1 1 0 0 1 1 1zm12 0a1 1 0 1 1-1-1 1 1 0 0 1 1 1z"/></g></g>',cast:'<g data-name="Layer 2"><g data-name="cast"><polyline points="24 24 0 24 0 0" opacity="0"/><path d="M18.4 3H5.6A2.7 2.7 0 0 0 3 5.78V7a1 1 0 0 0 2 0V5.78A.72.72 0 0 1 5.6 5h12.8a.72.72 0 0 1 .6.78v12.44a.72.72 0 0 1-.6.78H17a1 1 0 0 0 0 2h1.4a2.7 2.7 0 0 0 2.6-2.78V5.78A2.7 2.7 0 0 0 18.4 3z"/><path d="M3.86 14A1 1 0 0 0 3 15.17a1 1 0 0 0 1.14.83 2.49 2.49 0 0 1 2.12.72 2.52 2.52 0 0 1 .51 2.84 1 1 0 0 0 .48 1.33 1.06 1.06 0 0 0 .42.09 1 1 0 0 0 .91-.58A4.52 4.52 0 0 0 3.86 14z"/><path d="M3.86 10.08a1 1 0 0 0 .28 2 6 6 0 0 1 5.09 1.71 6 6 0 0 1 1.53 5.95 1 1 0 0 0 .68 1.26.9.9 0 0 0 .28 0 1 1 0 0 0 1-.72 8 8 0 0 0-8.82-10.2z"/><circle cx="4" cy="19" r="1"/></g></g>',charging:'<g data-name="Layer 2"><g data-name="charging"><rect width="24" height="24" opacity="0"/><path d="M11.28 13H7a1 1 0 0 1-.86-.5 1 1 0 0 1 0-1L9.28 6H4.17A2.31 2.31 0 0 0 2 8.43v7.14A2.31 2.31 0 0 0 4.17 18h4.25z"/><path d="M15.83 6h-4.25l-2.86 5H13a1 1 0 0 1 .86.5 1 1 0 0 1 0 1L10.72 18h5.11A2.31 2.31 0 0 0 18 15.57V8.43A2.31 2.31 0 0 0 15.83 6z"/><path d="M21 9a1 1 0 0 0-1 1v4a1 1 0 0 0 2 0v-4a1 1 0 0 0-1-1z"/></g></g>',"checkmark-circle-2":'<g data-name="Layer 2"><g data-name="checkmark-circle-2"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm4.3 7.61l-4.57 6a1 1 0 0 1-.79.39 1 1 0 0 1-.79-.38l-2.44-3.11a1 1 0 0 1 1.58-1.23l1.63 2.08 3.78-5a1 1 0 1 1 1.6 1.22z"/></g></g>',"checkmark-circle":'<g data-name="Layer 2"><g data-name="checkmark-circle"><rect width="24" height="24" opacity="0"/><path d="M9.71 11.29a1 1 0 0 0-1.42 1.42l3 3A1 1 0 0 0 12 16a1 1 0 0 0 .72-.34l7-8a1 1 0 0 0-1.5-1.32L12 13.54z"/><path d="M21 11a1 1 0 0 0-1 1 8 8 0 0 1-8 8A8 8 0 0 1 6.33 6.36 7.93 7.93 0 0 1 12 4a8.79 8.79 0 0 1 1.9.22 1 1 0 1 0 .47-1.94A10.54 10.54 0 0 0 12 2a10 10 0 0 0-7 17.09A9.93 9.93 0 0 0 12 22a10 10 0 0 0 10-10 1 1 0 0 0-1-1z"/></g></g>',"checkmark-square-2":'<g data-name="Layer 2"><g data-name="checkmark-square-2"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm-1.7 6.61l-4.57 6a1 1 0 0 1-.79.39 1 1 0 0 1-.79-.38l-2.44-3.11a1 1 0 0 1 1.58-1.23l1.63 2.08 3.78-5a1 1 0 1 1 1.6 1.22z"/></g></g>',"checkmark-square":'<g data-name="Layer 2"><g data-name="checkmark-square"><rect width="24" height="24" opacity="0"/><path d="M20 11.83a1 1 0 0 0-1 1v5.57a.6.6 0 0 1-.6.6H5.6a.6.6 0 0 1-.6-.6V5.6a.6.6 0 0 1 .6-.6h9.57a1 1 0 1 0 0-2H5.6A2.61 2.61 0 0 0 3 5.6v12.8A2.61 2.61 0 0 0 5.6 21h12.8a2.61 2.61 0 0 0 2.6-2.6v-5.57a1 1 0 0 0-1-1z"/><path d="M10.72 11a1 1 0 0 0-1.44 1.38l2.22 2.33a1 1 0 0 0 .72.31 1 1 0 0 0 .72-.3l6.78-7a1 1 0 1 0-1.44-1.4l-6.05 6.26z"/></g></g>',checkmark:'<g data-name="Layer 2"><g data-name="checkmark"><rect width="24" height="24" opacity="0"/><path d="M9.86 18a1 1 0 0 1-.73-.32l-4.86-5.17a1 1 0 1 1 1.46-1.37l4.12 4.39 8.41-9.2a1 1 0 1 1 1.48 1.34l-9.14 10a1 1 0 0 1-.73.33z"/></g></g>',"chevron-down":'<g data-name="Layer 2"><g data-name="chevron-down"><rect width="24" height="24" opacity="0"/><path d="M12 15.5a1 1 0 0 1-.71-.29l-4-4a1 1 0 1 1 1.42-1.42L12 13.1l3.3-3.18a1 1 0 1 1 1.38 1.44l-4 3.86a1 1 0 0 1-.68.28z"/></g></g>',"chevron-left":'<g data-name="Layer 2"><g data-name="chevron-left"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M13.36 17a1 1 0 0 1-.72-.31l-3.86-4a1 1 0 0 1 0-1.4l4-4a1 1 0 1 1 1.42 1.42L10.9 12l3.18 3.3a1 1 0 0 1 0 1.41 1 1 0 0 1-.72.29z"/></g></g>',"chevron-right":'<g data-name="Layer 2"><g data-name="chevron-right"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M10.5 17a1 1 0 0 1-.71-.29 1 1 0 0 1 0-1.42L13.1 12 9.92 8.69a1 1 0 0 1 0-1.41 1 1 0 0 1 1.42 0l3.86 4a1 1 0 0 1 0 1.4l-4 4a1 1 0 0 1-.7.32z"/></g></g>',"chevron-up":'<g data-name="Layer 2"><g data-name="chevron-up"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M16 14.5a1 1 0 0 1-.71-.29L12 10.9l-3.3 3.18a1 1 0 0 1-1.41 0 1 1 0 0 1 0-1.42l4-3.86a1 1 0 0 1 1.4 0l4 4a1 1 0 0 1 0 1.42 1 1 0 0 1-.69.28z"/></g></g>',clipboard:'<g data-name="Layer 2"><g data-name="clipboard"><rect width="24" height="24" opacity="0"/><path d="M18 4v3a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V4a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3z"/><rect x="7" y="2" width="10" height="6" rx="1" ry="1"/></g></g>',clock:'<g data-name="Layer 2"><g data-name="clock"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm4 11h-4a1 1 0 0 1-1-1V8a1 1 0 0 1 2 0v3h3a1 1 0 0 1 0 2z"/></g></g>',"close-circle":'<g data-name="Layer 2"><g data-name="close-circle"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm2.71 11.29a1 1 0 0 1 0 1.42 1 1 0 0 1-1.42 0L12 13.41l-1.29 1.3a1 1 0 0 1-1.42 0 1 1 0 0 1 0-1.42l1.3-1.29-1.3-1.29a1 1 0 0 1 1.42-1.42l1.29 1.3 1.29-1.3a1 1 0 0 1 1.42 1.42L13.41 12z"/></g></g>',"close-square":'<g data-name="Layer 2"><g data-name="close-square"><rect width="24" height="24" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm-3.29 10.29a1 1 0 0 1 0 1.42 1 1 0 0 1-1.42 0L12 13.41l-1.29 1.3a1 1 0 0 1-1.42 0 1 1 0 0 1 0-1.42l1.3-1.29-1.3-1.29a1 1 0 0 1 1.42-1.42l1.29 1.3 1.29-1.3a1 1 0 0 1 1.42 1.42L13.41 12z"/></g></g>',close:'<g data-name="Layer 2"><g data-name="close"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M13.41 12l4.3-4.29a1 1 0 1 0-1.42-1.42L12 10.59l-4.29-4.3a1 1 0 0 0-1.42 1.42l4.3 4.29-4.3 4.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l4.29-4.3 4.29 4.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g>',"cloud-download":'<g data-name="Layer 2"><g data-name="cloud-download"><rect width="24" height="24" opacity="0"/><path d="M21.9 11c0-.11-.06-.22-.09-.33a4.17 4.17 0 0 0-.18-.57c-.05-.12-.12-.24-.18-.37s-.15-.3-.24-.44S21 9.08 21 9s-.2-.25-.31-.37-.21-.2-.32-.3L20 8l-.36-.24a3.68 3.68 0 0 0-.44-.23l-.39-.18a4.13 4.13 0 0 0-.5-.15 3 3 0 0 0-.41-.09h-.18A6 6 0 0 0 6.33 7h-.18a3 3 0 0 0-.41.09 4.13 4.13 0 0 0-.5.15l-.39.18a3.68 3.68 0 0 0-.44.23L4.05 8l-.37.31c-.11.1-.22.19-.32.3s-.21.25-.31.37-.18.23-.26.36-.16.29-.24.44-.13.25-.18.37a4.17 4.17 0 0 0-.18.57c0 .11-.07.22-.09.33A5.23 5.23 0 0 0 2 12a5.5 5.5 0 0 0 .09.91c0 .1.05.19.07.29a5.58 5.58 0 0 0 .18.58l.12.29a5 5 0 0 0 .3.56l.14.22a.56.56 0 0 0 .05.08L3 15a5 5 0 0 0 4 2 2 2 0 0 1 .59-1.41A2 2 0 0 1 9 15a1.92 1.92 0 0 1 1 .27V12a2 2 0 0 1 4 0v3.37a2 2 0 0 1 1-.27 2.05 2.05 0 0 1 1.44.61A2 2 0 0 1 17 17a5 5 0 0 0 4-2l.05-.05a.56.56 0 0 0 .05-.08l.14-.22a5 5 0 0 0 .3-.56l.12-.29a5.58 5.58 0 0 0 .18-.58c0-.1.05-.19.07-.29A5.5 5.5 0 0 0 22 12a5.23 5.23 0 0 0-.1-1z"/><path d="M14.31 16.38L13 17.64V12a1 1 0 0 0-2 0v5.59l-1.29-1.3a1 1 0 0 0-1.42 1.42l3 3A1 1 0 0 0 12 21a1 1 0 0 0 .69-.28l3-2.9a1 1 0 1 0-1.38-1.44z"/><rect width="24" height="24" opacity="0"/><path d="M21.9 11c0-.11-.06-.22-.09-.33a4.17 4.17 0 0 0-.18-.57c-.05-.12-.12-.24-.18-.37s-.15-.3-.24-.44S21 9.08 21 9s-.2-.25-.31-.37-.21-.2-.32-.3L20 8l-.36-.24a3.68 3.68 0 0 0-.44-.23l-.39-.18a4.13 4.13 0 0 0-.5-.15 3 3 0 0 0-.41-.09h-.18A6 6 0 0 0 6.33 7h-.18a3 3 0 0 0-.41.09 4.13 4.13 0 0 0-.5.15l-.39.18a3.68 3.68 0 0 0-.44.23L4.05 8l-.37.31c-.11.1-.22.19-.32.3s-.21.25-.31.37-.18.23-.26.36-.16.29-.24.44-.13.25-.18.37a4.17 4.17 0 0 0-.18.57c0 .11-.07.22-.09.33A5.23 5.23 0 0 0 2 12a5.5 5.5 0 0 0 .09.91c0 .1.05.19.07.29a5.58 5.58 0 0 0 .18.58l.12.29a5 5 0 0 0 .3.56l.14.22a.56.56 0 0 0 .05.08L3 15a5 5 0 0 0 4 2 2 2 0 0 1 .59-1.41A2 2 0 0 1 9 15a1.92 1.92 0 0 1 1 .27V12a2 2 0 0 1 4 0v3.37a2 2 0 0 1 1-.27 2.05 2.05 0 0 1 1.44.61A2 2 0 0 1 17 17a5 5 0 0 0 4-2l.05-.05a.56.56 0 0 0 .05-.08l.14-.22a5 5 0 0 0 .3-.56l.12-.29a5.58 5.58 0 0 0 .18-.58c0-.1.05-.19.07-.29A5.5 5.5 0 0 0 22 12a5.23 5.23 0 0 0-.1-1z"/><path d="M14.31 16.38L13 17.64V12a1 1 0 0 0-2 0v5.59l-1.29-1.3a1 1 0 0 0-1.42 1.42l3 3A1 1 0 0 0 12 21a1 1 0 0 0 .69-.28l3-2.9a1 1 0 1 0-1.38-1.44z"/></g></g>',"cloud-upload":'<g data-name="Layer 2"><g data-name="cloud-upload"><rect width="24" height="24" opacity="0"/><path d="M21.9 12c0-.11-.06-.22-.09-.33a4.17 4.17 0 0 0-.18-.57c-.05-.12-.12-.24-.18-.37s-.15-.3-.24-.44S21 10.08 21 10s-.2-.25-.31-.37-.21-.2-.32-.3L20 9l-.36-.24a3.68 3.68 0 0 0-.44-.23l-.39-.18a4.13 4.13 0 0 0-.5-.15 3 3 0 0 0-.41-.09L17.67 8A6 6 0 0 0 6.33 8l-.18.05a3 3 0 0 0-.41.09 4.13 4.13 0 0 0-.5.15l-.39.18a3.68 3.68 0 0 0-.44.23l-.36.3-.37.31c-.11.1-.22.19-.32.3s-.21.25-.31.37-.18.23-.26.36-.16.29-.24.44-.13.25-.18.37a4.17 4.17 0 0 0-.18.57c0 .11-.07.22-.09.33A5.23 5.23 0 0 0 2 13a5.5 5.5 0 0 0 .09.91c0 .1.05.19.07.29a5.58 5.58 0 0 0 .18.58l.12.29a5 5 0 0 0 .3.56l.14.22a.56.56 0 0 0 .05.08L3 16a5 5 0 0 0 4 2h3v-1.37a2 2 0 0 1-1 .27 2.05 2.05 0 0 1-1.44-.61 2 2 0 0 1 .05-2.83l3-2.9A2 2 0 0 1 12 10a2 2 0 0 1 1.41.59l3 3a2 2 0 0 1 0 2.82A2 2 0 0 1 15 17a1.92 1.92 0 0 1-1-.27V18h3a5 5 0 0 0 4-2l.05-.05a.56.56 0 0 0 .05-.08l.14-.22a5 5 0 0 0 .3-.56l.12-.29a5.58 5.58 0 0 0 .18-.58c0-.1.05-.19.07-.29A5.5 5.5 0 0 0 22 13a5.23 5.23 0 0 0-.1-1z"/><path d="M12.71 11.29a1 1 0 0 0-1.4 0l-3 2.9a1 1 0 1 0 1.38 1.44L11 14.36V20a1 1 0 0 0 2 0v-5.59l1.29 1.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g>',"code-download":'<g data-name="Layer 2"><g data-name="code-download"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M4.29 12l4.48-5.36a1 1 0 1 0-1.54-1.28l-5 6a1 1 0 0 0 0 1.27l4.83 6a1 1 0 0 0 .78.37 1 1 0 0 0 .78-1.63z"/><path d="M21.78 11.37l-4.78-6a1 1 0 0 0-1.56 1.26L19.71 12l-4.48 5.37a1 1 0 0 0 .13 1.41A1 1 0 0 0 16 19a1 1 0 0 0 .77-.36l5-6a1 1 0 0 0 .01-1.27z"/><path d="M15.72 11.41a1 1 0 0 0-1.41 0L13 12.64V8a1 1 0 0 0-2 0v4.59l-1.29-1.3a1 1 0 0 0-1.42 1.42l3 3A1 1 0 0 0 12 16a1 1 0 0 0 .69-.28l3-2.9a1 1 0 0 0 .03-1.41z"/></g></g>',code:'<g data-name="Layer 2"><g data-name="code"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M8.64 5.23a1 1 0 0 0-1.41.13l-5 6a1 1 0 0 0 0 1.27l4.83 6a1 1 0 0 0 .78.37 1 1 0 0 0 .78-1.63L4.29 12l4.48-5.36a1 1 0 0 0-.13-1.41z"/><path d="M21.78 11.37l-4.78-6a1 1 0 0 0-1.41-.15 1 1 0 0 0-.15 1.41L19.71 12l-4.48 5.37a1 1 0 0 0 .13 1.41A1 1 0 0 0 16 19a1 1 0 0 0 .77-.36l5-6a1 1 0 0 0 .01-1.27z"/></g></g>',collapse:'<g data-name="Layer 2"><g data-name="collapse"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M19 9h-2.58l3.29-3.29a1 1 0 1 0-1.42-1.42L15 7.57V5a1 1 0 0 0-1-1 1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 0-2z"/><path d="M10 13H5a1 1 0 0 0 0 2h2.57l-3.28 3.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0L9 16.42V19a1 1 0 0 0 1 1 1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1z"/></g></g>',"color-palette":'<g data-name="Layer 2"><g data-name="color-palette"><rect width="24" height="24" opacity="0"/><path d="M19.54 5.08A10.61 10.61 0 0 0 11.91 2a10 10 0 0 0-.05 20 2.58 2.58 0 0 0 2.53-1.89 2.52 2.52 0 0 0-.57-2.28.5.5 0 0 1 .37-.83h1.65A6.15 6.15 0 0 0 22 11.33a8.48 8.48 0 0 0-2.46-6.25zm-12.7 9.66a1.5 1.5 0 1 1 .4-2.08 1.49 1.49 0 0 1-.4 2.08zM8.3 9.25a1.5 1.5 0 1 1-.55-2 1.5 1.5 0 0 1 .55 2zM11 7a1.5 1.5 0 1 1 1.5-1.5A1.5 1.5 0 0 1 11 7zm5.75.8a1.5 1.5 0 1 1 .55-2 1.5 1.5 0 0 1-.55 2z"/></g></g>',"color-picker":'<g data-name="Layer 2"><g data-name="color-picker"><rect width="24" height="24" opacity="0"/><path d="M19.4 7.34L16.66 4.6A1.92 1.92 0 0 0 14 4.53l-2 2-1.29-1.24a1 1 0 0 0-1.42 1.42L10.53 8 5 13.53a2 2 0 0 0-.57 1.21L4 18.91a1 1 0 0 0 .29.8A1 1 0 0 0 5 20h.09l4.17-.38a2 2 0 0 0 1.21-.57l5.58-5.58 1.24 1.24a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42l-1.24-1.24 2-2a1.92 1.92 0 0 0-.07-2.71zm-13 7.6L12 9.36l2.69 2.7-2.79 2.79"/></g></g>',compass:'<g data-name="Layer 2"><g data-name="compass"><rect width="24" height="24" opacity="0"/><polygon points="10.8 13.21 12.49 12.53 13.2 10.79 11.51 11.47 10.8 13.21"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm3.93 7.42l-1.75 4.26a1 1 0 0 1-.55.55l-4.21 1.7A1 1 0 0 1 9 16a1 1 0 0 1-.71-.31h-.05a1 1 0 0 1-.18-1l1.75-4.26a1 1 0 0 1 .55-.55l4.21-1.7a1 1 0 0 1 1.1.25 1 1 0 0 1 .26.99z"/></g></g>',copy:'<g data-name="Layer 2"><g data-name="copy"><rect width="24" height="24" opacity="0"/><path d="M18 9h-3V5.67A2.68 2.68 0 0 0 12.33 3H5.67A2.68 2.68 0 0 0 3 5.67v6.66A2.68 2.68 0 0 0 5.67 15H9v3a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3v-6a3 3 0 0 0-3-3zm-9 3v1H5.67a.67.67 0 0 1-.67-.67V5.67A.67.67 0 0 1 5.67 5h6.66a.67.67 0 0 1 .67.67V9h-1a3 3 0 0 0-3 3z"/></g></g>',"corner-down-left":'<g data-name="Layer 2"><g data-name="corner-down-left"><rect x=".05" y=".05" width="24" height="24" transform="rotate(-89.76 12.05 12.05)" opacity="0"/><path d="M20 6a1 1 0 0 0-1-1 1 1 0 0 0-1 1v5a1 1 0 0 1-.29.71A1 1 0 0 1 17 12H8.08l2.69-3.39a1 1 0 0 0-1.52-1.17l-4 5a1 1 0 0 0 0 1.25l4 5a1 1 0 0 0 .78.37 1 1 0 0 0 .62-.22 1 1 0 0 0 .15-1.41l-2.66-3.36h8.92a3 3 0 0 0 3-3z"/></g></g>',"corner-down-right":'<g data-name="Layer 2"><g data-name="corner-down-right"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M19.78 12.38l-4-5a1 1 0 0 0-1.56 1.24l2.7 3.38H8a1 1 0 0 1-1-1V6a1 1 0 0 0-2 0v5a3 3 0 0 0 3 3h8.92l-2.7 3.38a1 1 0 0 0 .16 1.4A1 1 0 0 0 15 19a1 1 0 0 0 .78-.38l4-5a1 1 0 0 0 0-1.24z"/></g></g>',"corner-left-down":'<g data-name="Layer 2"><g data-name="corner-left-down"><rect width="24" height="24" opacity="0"/><path d="M18 5h-5a3 3 0 0 0-3 3v8.92l-3.38-2.7a1 1 0 0 0-1.24 1.56l5 4a1 1 0 0 0 1.24 0l5-4a1 1 0 1 0-1.24-1.56L12 16.92V8a1 1 0 0 1 1-1h5a1 1 0 0 0 0-2z"/></g></g>',"corner-left-up":'<g data-name="Layer 2"><g data-name="corner-left-up"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18 17h-5a1 1 0 0 1-1-1V7.08l3.38 2.7A1 1 0 0 0 16 10a1 1 0 0 0 .78-.38 1 1 0 0 0-.16-1.4l-5-4a1 1 0 0 0-1.24 0l-5 4a1 1 0 0 0 1.24 1.56L10 7.08V16a3 3 0 0 0 3 3h5a1 1 0 0 0 0-2z"/></g></g>',"corner-right-down":'<g data-name="Layer 2"><g data-name="corner-right-down"><rect width="24" height="24" opacity="0"/><path d="M18.78 14.38a1 1 0 0 0-1.4-.16L14 16.92V8a3 3 0 0 0-3-3H6a1 1 0 0 0 0 2h5a1 1 0 0 1 1 1v8.92l-3.38-2.7a1 1 0 0 0-1.24 1.56l5 4a1 1 0 0 0 1.24 0l5-4a1 1 0 0 0 .16-1.4z"/></g></g>',"corner-right-up":'<g data-name="Layer 2"><g data-name="corner-right-up"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18.62 8.22l-5-4a1 1 0 0 0-1.24 0l-5 4a1 1 0 0 0 1.24 1.56L12 7.08V16a1 1 0 0 1-1 1H6a1 1 0 0 0 0 2h5a3 3 0 0 0 3-3V7.08l3.38 2.7A1 1 0 0 0 18 10a1 1 0 0 0 .78-.38 1 1 0 0 0-.16-1.4z"/></g></g>',"corner-up-left":'<g data-name="Layer 2"><g data-name="corner-up-left"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M16 10H7.08l2.7-3.38a1 1 0 1 0-1.56-1.24l-4 5a1 1 0 0 0 0 1.24l4 5A1 1 0 0 0 9 17a1 1 0 0 0 .62-.22 1 1 0 0 0 .16-1.4L7.08 12H16a1 1 0 0 1 1 1v5a1 1 0 0 0 2 0v-5a3 3 0 0 0-3-3z"/></g></g>',"corner-up-right":'<g data-name="Layer 2"><g data-name="corner-up-right"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M19.78 10.38l-4-5a1 1 0 0 0-1.56 1.24l2.7 3.38H8a3 3 0 0 0-3 3v5a1 1 0 0 0 2 0v-5a1 1 0 0 1 1-1h8.92l-2.7 3.38a1 1 0 0 0 .16 1.4A1 1 0 0 0 15 17a1 1 0 0 0 .78-.38l4-5a1 1 0 0 0 0-1.24z"/></g></g>',"credit-card":'<g data-name="Layer 2"><g data-name="credit-card"><rect width="24" height="24" opacity="0"/><path d="M19 5H5a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V8a3 3 0 0 0-3-3zm-8 10H7a1 1 0 0 1 0-2h4a1 1 0 0 1 0 2zm6 0h-2a1 1 0 0 1 0-2h2a1 1 0 0 1 0 2zm3-6H4V8a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1z"/></g></g>',crop:'<g data-name="Layer 2"><g data-name="crop"><rect width="24" height="24" opacity="0"/><path d="M21 16h-3V8.56A2.56 2.56 0 0 0 15.44 6H8V3a1 1 0 0 0-2 0v3H3a1 1 0 0 0 0 2h3v7.44A2.56 2.56 0 0 0 8.56 18H16v3a1 1 0 0 0 2 0v-3h3a1 1 0 0 0 0-2zM8.56 16a.56.56 0 0 1-.56-.56V8h7.44a.56.56 0 0 1 .56.56V16z"/></g></g>',cube:'<g data-name="Layer 2"><g data-name="cube"><rect width="24" height="24" opacity="0"/><path d="M11.25 11.83L3 8.36v7.73a1.69 1.69 0 0 0 1 1.52L11.19 21h.06z"/><path d="M12 10.5l8.51-3.57a1.62 1.62 0 0 0-.51-.38l-7.2-3.37a1.87 1.87 0 0 0-1.6 0L4 6.55a1.62 1.62 0 0 0-.51.38z"/><path d="M12.75 11.83V21h.05l7.2-3.39a1.69 1.69 0 0 0 1-1.51V8.36z"/></g></g>',"diagonal-arrow-left-down":'<g data-name="Layer 2"><g data-name="diagonal-arrow-left-down"><rect width="24" height="24" opacity="0"/><path d="M17.71 6.29a1 1 0 0 0-1.42 0L8 14.59V9a1 1 0 0 0-2 0v8a1 1 0 0 0 1 1h8a1 1 0 0 0 0-2H9.41l8.3-8.29a1 1 0 0 0 0-1.42z"/></g></g>',"diagonal-arrow-left-up":'<g data-name="Layer 2"><g data-name="diagonal-arrow-left-up"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M17.71 16.29L9.42 8H15a1 1 0 0 0 0-2H7.05a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1H7a1 1 0 0 0 1-1V9.45l8.26 8.26a1 1 0 0 0 1.42 0 1 1 0 0 0 .03-1.42z"/></g></g>',"diagonal-arrow-right-down":'<g data-name="Layer 2"><g data-name="diagonal-arrow-right-down"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M17 8a1 1 0 0 0-1 1v5.59l-8.29-8.3a1 1 0 0 0-1.42 1.42l8.3 8.29H9a1 1 0 0 0 0 2h8a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1z"/></g></g>',"diagonal-arrow-right-up":'<g data-name="Layer 2"><g data-name="diagonal-arrow-right-up"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18 7.05a1 1 0 0 0-1-1L9 6a1 1 0 0 0 0 2h5.56l-8.27 8.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0L16 9.42V15a1 1 0 0 0 1 1 1 1 0 0 0 1-1z"/></g></g>',"done-all":'<g data-name="Layer 2"><g data-name="done-all"><rect width="24" height="24" opacity="0"/><path d="M16.62 6.21a1 1 0 0 0-1.41.17l-7 9-3.43-4.18a1 1 0 1 0-1.56 1.25l4.17 5.18a1 1 0 0 0 .78.37 1 1 0 0 0 .83-.38l7.83-10a1 1 0 0 0-.21-1.41z"/><path d="M21.62 6.21a1 1 0 0 0-1.41.17l-7 9-.61-.75-1.26 1.62 1.1 1.37a1 1 0 0 0 .78.37 1 1 0 0 0 .78-.38l7.83-10a1 1 0 0 0-.21-1.4z"/><path d="M8.71 13.06L10 11.44l-.2-.24a1 1 0 0 0-1.43-.2 1 1 0 0 0-.15 1.41z"/></g></g>',download:'<g data-name="Layer 2"><g data-name="download"><rect width="24" height="24" opacity="0"/><rect x="4" y="18" width="16" height="2" rx="1" ry="1"/><rect x="3" y="17" width="4" height="2" rx="1" ry="1" transform="rotate(-90 5 18)"/><rect x="17" y="17" width="4" height="2" rx="1" ry="1" transform="rotate(-90 19 18)"/><path d="M12 15a1 1 0 0 1-.58-.18l-4-2.82a1 1 0 0 1-.24-1.39 1 1 0 0 1 1.4-.24L12 12.76l3.4-2.56a1 1 0 0 1 1.2 1.6l-4 3a1 1 0 0 1-.6.2z"/><path d="M12 13a1 1 0 0 1-1-1V4a1 1 0 0 1 2 0v8a1 1 0 0 1-1 1z"/></g></g>',"droplet-off":'<g data-name="Layer 2"><g data-name="droplet-off"><rect width="24" height="24" opacity="0"/><path d="M19 16.14A7.73 7.73 0 0 0 17.34 8l-4.56-4.69a1 1 0 0 0-.71-.31 1 1 0 0 0-.72.3L8.74 5.92z"/><path d="M6 8.82a7.73 7.73 0 0 0 .64 9.9A7.44 7.44 0 0 0 11.92 21a7.34 7.34 0 0 0 4.64-1.6z"/><path d="M20.71 19.29l-16-16a1 1 0 0 0-1.42 1.42l16 16a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g>',droplet:'<g data-name="Layer 2"><g data-name="droplet"><rect x=".1" y=".1" width="24" height="24" transform="rotate(.48 11.987 11.887)" opacity="0"/><path d="M12 21.1a7.4 7.4 0 0 1-5.28-2.28 7.73 7.73 0 0 1 .1-10.77l4.64-4.65a.94.94 0 0 1 .71-.3 1 1 0 0 1 .71.31l4.56 4.72a7.73 7.73 0 0 1-.09 10.77A7.33 7.33 0 0 1 12 21.1z"/></g></g>',"edit-2":'<g data-name="Layer 2"><g data-name="edit-2"><rect width="24" height="24" opacity="0"/><path d="M19 20H5a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2z"/><path d="M5 18h.09l4.17-.38a2 2 0 0 0 1.21-.57l9-9a1.92 1.92 0 0 0-.07-2.71L16.66 2.6A2 2 0 0 0 14 2.53l-9 9a2 2 0 0 0-.57 1.21L4 16.91a1 1 0 0 0 .29.8A1 1 0 0 0 5 18zM15.27 4L18 6.73l-2 1.95L13.32 6z"/></g></g>',edit:'<g data-name="Layer 2"><g data-name="edit"><rect width="24" height="24" opacity="0"/><path d="M19.4 7.34L16.66 4.6A2 2 0 0 0 14 4.53l-9 9a2 2 0 0 0-.57 1.21L4 18.91a1 1 0 0 0 .29.8A1 1 0 0 0 5 20h.09l4.17-.38a2 2 0 0 0 1.21-.57l9-9a1.92 1.92 0 0 0-.07-2.71zM16 10.68L13.32 8l1.95-2L18 8.73z"/></g></g>',email:'<g data-name="Layer 2"><g data-name="email"><rect width="24" height="24" opacity="0"/><path d="M19 4H5a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3zm0 2l-6.5 4.47a1 1 0 0 1-1 0L5 6z"/></g></g>',expand:'<g data-name="Layer 2"><g data-name="expand"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M20 5a1 1 0 0 0-1-1h-5a1 1 0 0 0 0 2h2.57l-3.28 3.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0L18 7.42V10a1 1 0 0 0 1 1 1 1 0 0 0 1-1z"/><path d="M10.71 13.29a1 1 0 0 0-1.42 0L6 16.57V14a1 1 0 0 0-1-1 1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 0-2H7.42l3.29-3.29a1 1 0 0 0 0-1.42z"/></g></g>',"external-link":'<g data-name="Layer 2"><g data-name="external-link"><rect width="24" height="24" opacity="0"/><path d="M20 11a1 1 0 0 0-1 1v6a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h6a1 1 0 0 0 0-2H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3v-6a1 1 0 0 0-1-1z"/><path d="M16 5h1.58l-6.29 6.28a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0L19 6.42V8a1 1 0 0 0 1 1 1 1 0 0 0 1-1V4a1 1 0 0 0-1-1h-4a1 1 0 0 0 0 2z"/></g></g>',"eye-off-2":'<g data-name="Layer 2"><g data-name="eye-off-2"><rect width="24" height="24" opacity="0"/><path d="M17.81 13.39A8.93 8.93 0 0 0 21 7.62a1 1 0 1 0-2-.24 7.07 7.07 0 0 1-14 0 1 1 0 1 0-2 .24 8.93 8.93 0 0 0 3.18 5.77l-2.3 2.32a1 1 0 0 0 1.41 1.41l2.61-2.6a9.06 9.06 0 0 0 3.1.92V19a1 1 0 0 0 2 0v-3.56a9.06 9.06 0 0 0 3.1-.92l2.61 2.6a1 1 0 0 0 1.41-1.41z"/></g></g>',"eye-off":'<g data-name="Layer 2"><g data-name="eye-off"><rect width="24" height="24" opacity="0"/><circle cx="12" cy="12" r="1.5"/><path d="M15.29 18.12L14 16.78l-.07-.07-1.27-1.27a4.07 4.07 0 0 1-.61.06A3.5 3.5 0 0 1 8.5 12a4.07 4.07 0 0 1 .06-.61l-2-2L5 7.87a15.89 15.89 0 0 0-2.87 3.63 1 1 0 0 0 0 1c.63 1.09 4 6.5 9.89 6.5h.25a9.48 9.48 0 0 0 3.23-.67z"/><path d="M8.59 5.76l2.8 2.8A4.07 4.07 0 0 1 12 8.5a3.5 3.5 0 0 1 3.5 3.5 4.07 4.07 0 0 1-.06.61l2.68 2.68.84.84a15.89 15.89 0 0 0 2.91-3.63 1 1 0 0 0 0-1c-.64-1.11-4.16-6.68-10.14-6.5a9.48 9.48 0 0 0-3.23.67z"/><path d="M20.71 19.29L19.41 18l-2-2-9.52-9.53L6.42 5 4.71 3.29a1 1 0 0 0-1.42 1.42L5.53 7l1.75 1.7 7.31 7.3.07.07L16 17.41l.59.59 2.7 2.71a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g>',eye:'<g data-name="Layer 2"><g data-name="eye"><rect width="24" height="24" opacity="0"/><circle cx="12" cy="12" r="1.5"/><path d="M21.87 11.5c-.64-1.11-4.16-6.68-10.14-6.5-5.53.14-8.73 5-9.6 6.5a1 1 0 0 0 0 1c.63 1.09 4 6.5 9.89 6.5h.25c5.53-.14 8.74-5 9.6-6.5a1 1 0 0 0 0-1zm-9.87 4a3.5 3.5 0 1 1 3.5-3.5 3.5 3.5 0 0 1-3.5 3.5z"/></g></g>',facebook:'<g data-name="Layer 2"><g data-name="facebook"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M17 3.5a.5.5 0 0 0-.5-.5H14a4.77 4.77 0 0 0-5 4.5v2.7H6.5a.5.5 0 0 0-.5.5v2.6a.5.5 0 0 0 .5.5H9v6.7a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-6.7h2.62a.5.5 0 0 0 .49-.37l.72-2.6a.5.5 0 0 0-.48-.63H13V7.5a1 1 0 0 1 1-.9h2.5a.5.5 0 0 0 .5-.5z"/></g></g>',"file-add":'<g data-name="Layer 2"><g data-name="file-add"><rect width="24" height="24" opacity="0"/><path d="M19.74 7.33l-4.44-5a1 1 0 0 0-.74-.33h-8A2.53 2.53 0 0 0 4 4.5v15A2.53 2.53 0 0 0 6.56 22h10.88A2.53 2.53 0 0 0 20 19.5V8a1 1 0 0 0-.26-.67zM14 15h-1v1a1 1 0 0 1-2 0v-1h-1a1 1 0 0 1 0-2h1v-1a1 1 0 0 1 2 0v1h1a1 1 0 0 1 0 2zm.71-7a.79.79 0 0 1-.71-.85V4l3.74 4z"/></g></g>',"file-remove":'<g data-name="Layer 2"><g data-name="file-remove"><rect width="24" height="24" opacity="0"/><path d="M19.74 7.33l-4.44-5a1 1 0 0 0-.74-.33h-8A2.53 2.53 0 0 0 4 4.5v15A2.53 2.53 0 0 0 6.56 22h10.88A2.53 2.53 0 0 0 20 19.5V8a1 1 0 0 0-.26-.67zM14 15h-4a1 1 0 0 1 0-2h4a1 1 0 0 1 0 2zm.71-7a.79.79 0 0 1-.71-.85V4l3.74 4z"/></g></g>',"file-text":'<g data-name="Layer 2"><g data-name="file-text"><rect width="24" height="24" opacity="0"/><path d="M19.74 7.33l-4.44-5a1 1 0 0 0-.74-.33h-8A2.53 2.53 0 0 0 4 4.5v15A2.53 2.53 0 0 0 6.56 22h10.88A2.53 2.53 0 0 0 20 19.5V8a1 1 0 0 0-.26-.67zM9 12h3a1 1 0 0 1 0 2H9a1 1 0 0 1 0-2zm6 6H9a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2zm-.29-10a.79.79 0 0 1-.71-.85V4l3.74 4z"/></g></g>',file:'<g data-name="Layer 2"><g data-name="file"><rect width="24" height="24" opacity="0"/><path d="M19.74 7.33l-4.44-5a1 1 0 0 0-.74-.33h-8A2.53 2.53 0 0 0 4 4.5v15A2.53 2.53 0 0 0 6.56 22h10.88A2.53 2.53 0 0 0 20 19.5V8a1 1 0 0 0-.26-.67zM14 4l3.74 4h-3a.79.79 0 0 1-.74-.85z"/></g></g>',film:'<g data-name="Layer 2"><g data-name="film"><rect width="24" height="24" opacity="0"/><path d="M18.26 3H5.74A2.74 2.74 0 0 0 3 5.74v12.52A2.74 2.74 0 0 0 5.74 21h12.52A2.74 2.74 0 0 0 21 18.26V5.74A2.74 2.74 0 0 0 18.26 3zM7 11H5V9h2zm-2 2h2v2H5zm14-2h-2V9h2zm-2 2h2v2h-2zm2-7.26V7h-2V5h1.26a.74.74 0 0 1 .74.74zM5.74 5H7v2H5V5.74A.74.74 0 0 1 5.74 5zM5 18.26V17h2v2H5.74a.74.74 0 0 1-.74-.74zm14 0a.74.74 0 0 1-.74.74H17v-2h2z"/></g></g>',flag:'<g data-name="Layer 2"><g data-name="flag"><polyline points="24 24 0 24 0 0" opacity="0"/><path d="M19.27 4.68a1.79 1.79 0 0 0-1.6-.25 7.53 7.53 0 0 1-2.17.28 8.54 8.54 0 0 1-3.13-.78A10.15 10.15 0 0 0 8.5 3c-2.89 0-4 1-4.2 1.14a1 1 0 0 0-.3.72V20a1 1 0 0 0 2 0v-4.3a6.28 6.28 0 0 1 2.5-.41 8.54 8.54 0 0 1 3.13.78 10.15 10.15 0 0 0 3.87.93 7.66 7.66 0 0 0 3.5-.7 1.74 1.74 0 0 0 1-1.55V6.11a1.77 1.77 0 0 0-.73-1.43z"/></g></g>',"flash-off":'<g data-name="Layer 2"><g data-name="flash-off"><rect width="24" height="24" opacity="0"/><path d="M17.33 14.5l2.5-3.74A1 1 0 0 0 19 9.2h-5.89l.77-7.09a1 1 0 0 0-.65-1 1 1 0 0 0-1.17.38L8.94 6.11z"/><path d="M6.67 9.5l-2.5 3.74A1 1 0 0 0 5 14.8h5.89l-.77 7.09a1 1 0 0 0 .65 1.05 1 1 0 0 0 .34.06 1 1 0 0 0 .83-.44l3.12-4.67z"/><path d="M20.71 19.29l-16-16a1 1 0 0 0-1.42 1.42l16 16a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g>',flash:'<g data-name="Layer 2"><g data-name="flash"><rect width="24" height="24" opacity="0"/><path d="M11.11 23a1 1 0 0 1-.34-.06 1 1 0 0 1-.65-1.05l.77-7.09H5a1 1 0 0 1-.83-1.56l7.89-11.8a1 1 0 0 1 1.17-.38 1 1 0 0 1 .65 1l-.77 7.14H19a1 1 0 0 1 .83 1.56l-7.89 11.8a1 1 0 0 1-.83.44z"/></g></g>',"flip-2":'<g data-name="Layer 2"><g data-name="flip-2"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M6.09 19h12l-1.3 1.29a1 1 0 0 0 1.42 1.42l3-3a1 1 0 0 0 0-1.42l-3-3a1 1 0 0 0-1.42 0 1 1 0 0 0 0 1.42l1.3 1.29h-12a1.56 1.56 0 0 1-1.59-1.53V13a1 1 0 0 0-2 0v2.47A3.56 3.56 0 0 0 6.09 19z"/><path d="M5.79 9.71a1 1 0 1 0 1.42-1.42L5.91 7h12a1.56 1.56 0 0 1 1.59 1.53V11a1 1 0 0 0 2 0V8.53A3.56 3.56 0 0 0 17.91 5h-12l1.3-1.29a1 1 0 0 0 0-1.42 1 1 0 0 0-1.42 0l-3 3a1 1 0 0 0 0 1.42z"/></g></g>',flip:'<g data-name="Layer 2"><g data-name="flip-in"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M5 6.09v12l-1.29-1.3a1 1 0 0 0-1.42 1.42l3 3a1 1 0 0 0 1.42 0l3-3a1 1 0 0 0 0-1.42 1 1 0 0 0-1.42 0L7 18.09v-12A1.56 1.56 0 0 1 8.53 4.5H11a1 1 0 0 0 0-2H8.53A3.56 3.56 0 0 0 5 6.09z"/><path d="M14.29 5.79a1 1 0 0 0 1.42 1.42L17 5.91v12a1.56 1.56 0 0 1-1.53 1.59H13a1 1 0 0 0 0 2h2.47A3.56 3.56 0 0 0 19 17.91v-12l1.29 1.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42l-3-3a1 1 0 0 0-1.42 0z"/></g></g>',"folder-add":'<g data-name="Layer 2"><g data-name="folder-add"><rect width="24" height="24" opacity="0"/><path d="M19.5 7.05h-7L9.87 3.87a1 1 0 0 0-.77-.37H4.5A2.47 2.47 0 0 0 2 5.93v12.14a2.47 2.47 0 0 0 2.5 2.43h15a2.47 2.47 0 0 0 2.5-2.43V9.48a2.47 2.47 0 0 0-2.5-2.43zM14 15h-1v1a1 1 0 0 1-2 0v-1h-1a1 1 0 0 1 0-2h1v-1a1 1 0 0 1 2 0v1h1a1 1 0 0 1 0 2z"/></g></g>',"folder-remove":'<g data-name="Layer 2"><g data-name="folder-remove"><rect width="24" height="24" opacity="0"/><path d="M19.5 7.05h-7L9.87 3.87a1 1 0 0 0-.77-.37H4.5A2.47 2.47 0 0 0 2 5.93v12.14a2.47 2.47 0 0 0 2.5 2.43h15a2.47 2.47 0 0 0 2.5-2.43V9.48a2.47 2.47 0 0 0-2.5-2.43zM14 15h-4a1 1 0 0 1 0-2h4a1 1 0 0 1 0 2z"/></g></g>',folder:'<g data-name="Layer 2"><g data-name="folder"><rect width="24" height="24" opacity="0"/><path d="M19.5 20.5h-15A2.47 2.47 0 0 1 2 18.07V5.93A2.47 2.47 0 0 1 4.5 3.5h4.6a1 1 0 0 1 .77.37l2.6 3.18h7A2.47 2.47 0 0 1 22 9.48v8.59a2.47 2.47 0 0 1-2.5 2.43z"/></g></g>',funnel:'<g data-name="Layer 2"><g data-name="funnel"><rect width="24" height="24" opacity="0"/><path d="M13.9 22a1 1 0 0 1-.6-.2l-4-3.05a1 1 0 0 1-.39-.8v-3.27l-4.8-9.22A1 1 0 0 1 5 4h14a1 1 0 0 1 .86.49 1 1 0 0 1 0 1l-5 9.21V21a1 1 0 0 1-.55.9 1 1 0 0 1-.41.1z"/></g></g>',gift:'<g data-name="Layer 2"><g data-name="gift"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M4.64 15.27v4.82a.92.92 0 0 0 .92.91h5.62v-5.73z"/><path d="M12.82 21h5.62a.92.92 0 0 0 .92-.91v-4.82h-6.54z"/><path d="M20.1 7.09h-1.84a2.82 2.82 0 0 0 .29-1.23A2.87 2.87 0 0 0 15.68 3 4.21 4.21 0 0 0 12 5.57 4.21 4.21 0 0 0 8.32 3a2.87 2.87 0 0 0-2.87 2.86 2.82 2.82 0 0 0 .29 1.23H3.9c-.5 0-.9.59-.9 1.31v3.93c0 .72.4 1.31.9 1.31h7.28V7.09h1.64v6.55h7.28c.5 0 .9-.59.9-1.31V8.4c0-.72-.4-1.31-.9-1.31zm-11.78 0a1.23 1.23 0 1 1 0-2.45c1.4 0 2.19 1.44 2.58 2.45zm7.36 0H13.1c.39-1 1.18-2.45 2.58-2.45a1.23 1.23 0 1 1 0 2.45z"/></g></g>',github:'<g data-name="Layer 2"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M12 1A10.89 10.89 0 0 0 1 11.77 10.79 10.79 0 0 0 8.52 22c.55.1.75-.23.75-.52v-1.83c-3.06.65-3.71-1.44-3.71-1.44a2.86 2.86 0 0 0-1.22-1.58c-1-.66.08-.65.08-.65a2.31 2.31 0 0 1 1.68 1.11 2.37 2.37 0 0 0 3.2.89 2.33 2.33 0 0 1 .7-1.44c-2.44-.27-5-1.19-5-5.32a4.15 4.15 0 0 1 1.11-2.91 3.78 3.78 0 0 1 .11-2.84s.93-.29 3 1.1a10.68 10.68 0 0 1 5.5 0c2.1-1.39 3-1.1 3-1.1a3.78 3.78 0 0 1 .11 2.84A4.15 4.15 0 0 1 19 11.2c0 4.14-2.58 5.05-5 5.32a2.5 2.5 0 0 1 .75 2v2.95c0 .35.2.63.75.52A10.8 10.8 0 0 0 23 11.77 10.89 10.89 0 0 0 12 1" data-name="github"/></g>',"globe-2":'<g data-name="Layer 2"><g data-name="globe-2"><rect width="24" height="24" opacity="0"/><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 2a8.19 8.19 0 0 1 1.79.21 2.61 2.61 0 0 1-.78 1c-.22.17-.46.31-.7.46a4.56 4.56 0 0 0-1.85 1.67 6.49 6.49 0 0 0-.62 3.3c0 1.36 0 2.16-.95 2.87-1.37 1.07-3.46.47-4.76-.07A8.33 8.33 0 0 1 4 12a8 8 0 0 1 8-8zm4.89 14.32a6.79 6.79 0 0 0-.63-1.14c-.11-.16-.22-.32-.32-.49-.39-.68-.25-1 .38-2l.1-.17a4.77 4.77 0 0 0 .58-2.43 5.42 5.42 0 0 1 .09-1c.16-.73 1.71-.93 2.67-1a7.94 7.94 0 0 1-2.86 8.28z"/></g></g>',"globe-3":'<g data-name="Layer 2"><g data-name="globe-3"><rect width="24" height="24" opacity="0"/><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zM5 15.8a8.42 8.42 0 0 0 2 .27 5 5 0 0 0 3.14-1c1.71-1.34 1.71-3.06 1.71-4.44a4.76 4.76 0 0 1 .37-2.34 2.86 2.86 0 0 1 1.12-.91 9.75 9.75 0 0 0 .92-.61 4.55 4.55 0 0 0 1.4-1.87A8 8 0 0 1 19 8.12c-1.43.2-3.46.67-3.86 2.53A7 7 0 0 0 15 12a2.93 2.93 0 0 1-.29 1.47l-.1.17c-.65 1.08-1.38 2.31-.39 4 .12.21.25.41.38.61a2.29 2.29 0 0 1 .52 1.08A7.89 7.89 0 0 1 12 20a8 8 0 0 1-7-4.2z"/></g></g>',globe:'<g data-name="Layer 2"><g data-name="globe"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M22 12A10 10 0 0 0 12 2a10 10 0 0 0 0 20 10 10 0 0 0 10-10zm-2.07-1H17a12.91 12.91 0 0 0-2.33-6.54A8 8 0 0 1 19.93 11zM9.08 13H15a11.44 11.44 0 0 1-3 6.61A11 11 0 0 1 9.08 13zm0-2A11.4 11.4 0 0 1 12 4.4a11.19 11.19 0 0 1 3 6.6zm.36-6.57A13.18 13.18 0 0 0 7.07 11h-3a8 8 0 0 1 5.37-6.57zM4.07 13h3a12.86 12.86 0 0 0 2.35 6.56A8 8 0 0 1 4.07 13zm10.55 6.55A13.14 13.14 0 0 0 17 13h2.95a8 8 0 0 1-5.33 6.55z"/></g></g>',google:'<g data-name="Layer 2"><g data-name="google"><polyline points="0 0 24 0 24 24 0 24" opacity="0"/><path d="M17.5 14a5.51 5.51 0 0 1-4.5 3.93 6.15 6.15 0 0 1-7-5.45A6 6 0 0 1 12 6a6.12 6.12 0 0 1 2.27.44.5.5 0 0 0 .64-.21l1.44-2.65a.52.52 0 0 0-.23-.7A10 10 0 0 0 2 12.29 10.12 10.12 0 0 0 11.57 22 10 10 0 0 0 22 12.52v-2a.51.51 0 0 0-.5-.5h-9a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h5"/></g></g>',grid:'<g data-name="Layer 2"><g data-name="grid"><rect width="24" height="24" opacity="0"/><path d="M9 3H5a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2z"/><path d="M19 3h-4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2z"/><path d="M9 13H5a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2z"/><path d="M19 13h-4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2z"/></g></g>',"hard-drive":'<g data-name="Layer 2"><g data-name="hard-drive"><rect width="24" height="24" opacity="0"/><path d="M20.79 11.34l-3.34-6.68A3 3 0 0 0 14.76 3H9.24a3 3 0 0 0-2.69 1.66l-3.34 6.68a2 2 0 0 0-.21.9V18a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3v-5.76a2 2 0 0 0-.21-.9zM8 17a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm8 0h-4a1 1 0 0 1 0-2h4a1 1 0 0 1 0 2zM5.62 11l2.72-5.45a1 1 0 0 1 .9-.55h5.52a1 1 0 0 1 .9.55L18.38 11z"/></g></g>',hash:'<g data-name="Layer 2"><g data-name="hash"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M20 14h-4.3l.73-4H20a1 1 0 0 0 0-2h-3.21l.69-3.81A1 1 0 0 0 16.64 3a1 1 0 0 0-1.22.82L14.67 8h-3.88l.69-3.81A1 1 0 0 0 10.64 3a1 1 0 0 0-1.22.82L8.67 8H4a1 1 0 0 0 0 2h4.3l-.73 4H4a1 1 0 0 0 0 2h3.21l-.69 3.81A1 1 0 0 0 7.36 21a1 1 0 0 0 1.22-.82L9.33 16h3.88l-.69 3.81a1 1 0 0 0 .84 1.19 1 1 0 0 0 1.22-.82l.75-4.18H20a1 1 0 0 0 0-2zM9.7 14l.73-4h3.87l-.73 4z"/></g></g>',headphones:'<g data-name="Layer 2"><g data-name="headphones"><rect width="24" height="24" opacity="0"/><path d="M12 2A10.2 10.2 0 0 0 2 12.37V17a4 4 0 1 0 4-4 3.91 3.91 0 0 0-2 .56v-1.19A8.2 8.2 0 0 1 12 4a8.2 8.2 0 0 1 8 8.37v1.19a3.91 3.91 0 0 0-2-.56 4 4 0 1 0 4 4v-4.63A10.2 10.2 0 0 0 12 2z"/></g></g>',heart:'<g data-name="Layer 2"><g data-name="heart"><rect width="24" height="24" opacity="0"/><path d="M12 21a1 1 0 0 1-.71-.29l-7.77-7.78a5.26 5.26 0 0 1 0-7.4 5.24 5.24 0 0 1 7.4 0L12 6.61l1.08-1.08a5.24 5.24 0 0 1 7.4 0 5.26 5.26 0 0 1 0 7.4l-7.77 7.78A1 1 0 0 1 12 21z"/></g></g>',home:'<g data-name="Layer 2"><g data-name="home"><rect width="24" height="24" opacity="0"/><rect x="10" y="14" width="4" height="7"/><path d="M20.42 10.18L12.71 2.3a1 1 0 0 0-1.42 0l-7.71 7.89A2 2 0 0 0 3 11.62V20a2 2 0 0 0 1.89 2H8v-9a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v9h3.11A2 2 0 0 0 21 20v-8.38a2.07 2.07 0 0 0-.58-1.44z"/></g></g>',"image-2":'<g data-name="Layer 2"><g data-name="image-2"><rect width="24" height="24" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zM8 7a1.5 1.5 0 1 1-1.5 1.5A1.5 1.5 0 0 1 8 7zm11 10.83A1.09 1.09 0 0 1 18 19H6l7.57-6.82a.69.69 0 0 1 .93 0l4.5 4.48z"/></g></g>',image:'<g data-name="Layer 2"><g data-name="image"><rect width="24" height="24" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zM6 5h12a1 1 0 0 1 1 1v8.36l-3.2-2.73a2.77 2.77 0 0 0-3.52 0L5 17.7V6a1 1 0 0 1 1-1z"/><circle cx="8" cy="8.5" r="1.5"/></g></g>',inbox:'<g data-name="Layer 2"><g data-name="inbox"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M20.79 11.34l-3.34-6.68A3 3 0 0 0 14.76 3H9.24a3 3 0 0 0-2.69 1.66l-3.34 6.68a2 2 0 0 0-.21.9V18a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3v-5.76a2 2 0 0 0-.21-.9zM8.34 5.55a1 1 0 0 1 .9-.55h5.52a1 1 0 0 1 .9.55L18.38 11H16a1 1 0 0 0-1 1v2a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-2a1 1 0 0 0-1-1H5.62z"/></g></g>',info:'<g data-name="Layer 2"><g data-name="info"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm1 14a1 1 0 0 1-2 0v-5a1 1 0 0 1 2 0zm-1-7a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/></g></g>',keypad:'<g data-name="Layer 2"><g data-name="keypad"><rect width="24" height="24" opacity="0"/><path d="M5 2a3 3 0 1 0 3 3 3 3 0 0 0-3-3z"/><path d="M12 2a3 3 0 1 0 3 3 3 3 0 0 0-3-3z"/><path d="M19 8a3 3 0 1 0-3-3 3 3 0 0 0 3 3z"/><path d="M5 9a3 3 0 1 0 3 3 3 3 0 0 0-3-3z"/><path d="M12 9a3 3 0 1 0 3 3 3 3 0 0 0-3-3z"/><path d="M19 9a3 3 0 1 0 3 3 3 3 0 0 0-3-3z"/><path d="M5 16a3 3 0 1 0 3 3 3 3 0 0 0-3-3z"/><path d="M12 16a3 3 0 1 0 3 3 3 3 0 0 0-3-3z"/><path d="M19 16a3 3 0 1 0 3 3 3 3 0 0 0-3-3z"/></g></g>',layers:'<g data-name="Layer 2"><g data-name="layers"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M3.24 7.29l8.52 4.63a.51.51 0 0 0 .48 0l8.52-4.63a.44.44 0 0 0-.05-.81L12.19 3a.5.5 0 0 0-.38 0L3.29 6.48a.44.44 0 0 0-.05.81z"/><path d="M20.71 10.66l-1.83-.78-6.64 3.61a.51.51 0 0 1-.48 0L5.12 9.88l-1.83.78a.48.48 0 0 0 0 .85l8.52 4.9a.46.46 0 0 0 .48 0l8.52-4.9a.48.48 0 0 0-.1-.85z"/><path d="M20.71 15.1l-1.56-.68-6.91 3.76a.51.51 0 0 1-.48 0l-6.91-3.76-1.56.68a.49.49 0 0 0 0 .87l8.52 5a.51.51 0 0 0 .48 0l8.52-5a.49.49 0 0 0-.1-.87z"/></g></g>',layout:'<g data-name="Layer 2"><g data-name="layout"><rect width="24" height="24" opacity="0"/><path d="M21 8V6a3 3 0 0 0-3-3H6a3 3 0 0 0-3 3v2z"/><path d="M3 10v8a3 3 0 0 0 3 3h5V10z"/><path d="M13 10v11h5a3 3 0 0 0 3-3v-8z"/></g></g>',"link-2":'<g data-name="Layer 2"><g data-name="link-2"><rect width="24" height="24" opacity="0"/><path d="M13.29 9.29l-4 4a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l4-4a1 1 0 0 0-1.42-1.42z"/><path d="M12.28 17.4L11 18.67a4.2 4.2 0 0 1-5.58.4 4 4 0 0 1-.27-5.93l1.42-1.43a1 1 0 0 0 0-1.42 1 1 0 0 0-1.42 0l-1.27 1.28a6.15 6.15 0 0 0-.67 8.07 6.06 6.06 0 0 0 9.07.6l1.42-1.42a1 1 0 0 0-1.42-1.42z"/><path d="M19.66 3.22a6.18 6.18 0 0 0-8.13.68L10.45 5a1.09 1.09 0 0 0-.17 1.61 1 1 0 0 0 1.42 0L13 5.3a4.17 4.17 0 0 1 5.57-.4 4 4 0 0 1 .27 5.95l-1.42 1.43a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l1.42-1.42a6.06 6.06 0 0 0-.6-9.06z"/></g></g>',link:'<g data-name="Layer 2"><g data-name="link"><rect width="24" height="24" opacity="0"/><path d="M8 12a1 1 0 0 0 1 1h6a1 1 0 0 0 0-2H9a1 1 0 0 0-1 1z"/><path d="M9 16H7.21A4.13 4.13 0 0 1 3 12.37 4 4 0 0 1 7 8h2a1 1 0 0 0 0-2H7.21a6.15 6.15 0 0 0-6.16 5.21A6 6 0 0 0 7 18h2a1 1 0 0 0 0-2z"/><path d="M23 11.24A6.16 6.16 0 0 0 16.76 6h-1.51C14.44 6 14 6.45 14 7a1 1 0 0 0 1 1h1.79A4.13 4.13 0 0 1 21 11.63 4 4 0 0 1 17 16h-2a1 1 0 0 0 0 2h2a6 6 0 0 0 6-6.76z"/></g></g>',linkedin:'<g data-name="Layer 2"><g data-name="linkedin"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M15.15 8.4a5.83 5.83 0 0 0-5.85 5.82v5.88a.9.9 0 0 0 .9.9h2.1a.9.9 0 0 0 .9-.9v-5.88a1.94 1.94 0 0 1 2.15-1.93 2 2 0 0 1 1.75 2v5.81a.9.9 0 0 0 .9.9h2.1a.9.9 0 0 0 .9-.9v-5.88a5.83 5.83 0 0 0-5.85-5.82z"/><rect x="3" y="9.3" width="4.5" height="11.7" rx=".9" ry=".9"/><circle cx="5.25" cy="5.25" r="2.25"/></g></g>',list:'<g data-name="Layer 2"><g data-name="list"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><circle cx="4" cy="7" r="1"/><circle cx="4" cy="12" r="1"/><circle cx="4" cy="17" r="1"/><rect x="7" y="11" width="14" height="2" rx=".94" ry=".94"/><rect x="7" y="16" width="14" height="2" rx=".94" ry=".94"/><rect x="7" y="6" width="14" height="2" rx=".94" ry=".94"/></g></g>',lock:'<g data-name="Layer 2"><g data-name="lock"><rect width="24" height="24" opacity="0"/><circle cx="12" cy="15" r="1"/><path d="M17 8h-1V6.11a4 4 0 1 0-8 0V8H7a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3v-8a3 3 0 0 0-3-3zm-7-1.89A2.06 2.06 0 0 1 12 4a2.06 2.06 0 0 1 2 2.11V8h-4zM12 18a3 3 0 1 1 3-3 3 3 0 0 1-3 3z"/></g></g>',"log-in":'<g data-name="Layer 2"><g data-name="log-in"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M19 4h-2a1 1 0 0 0 0 2h1v12h-1a1 1 0 0 0 0 2h2a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1z"/><path d="M11.8 7.4a1 1 0 0 0-1.6 1.2L12 11H4a1 1 0 0 0 0 2h8.09l-1.72 2.44a1 1 0 0 0 .24 1.4 1 1 0 0 0 .58.18 1 1 0 0 0 .81-.42l2.82-4a1 1 0 0 0 0-1.18z"/></g></g>',"log-out":'<g data-name="Layer 2"><g data-name="log-out"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M7 6a1 1 0 0 0 0-2H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h2a1 1 0 0 0 0-2H6V6z"/><path d="M20.82 11.42l-2.82-4a1 1 0 0 0-1.39-.24 1 1 0 0 0-.24 1.4L18.09 11H10a1 1 0 0 0 0 2h8l-1.8 2.4a1 1 0 0 0 .2 1.4 1 1 0 0 0 .6.2 1 1 0 0 0 .8-.4l3-4a1 1 0 0 0 .02-1.18z"/></g></g>',map:'<g data-name="Layer 2"><g data-name="map"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M20.41 5.89l-4-1.8H15.59L12 5.7 8.41 4.09h-.05L8.24 4h-.6l-4 1.8a1 1 0 0 0-.64 1V19a1 1 0 0 0 .46.84A1 1 0 0 0 4 20a1 1 0 0 0 .41-.09L8 18.3l3.59 1.61h.05a.85.85 0 0 0 .72 0h.05L16 18.3l3.59 1.61A1 1 0 0 0 20 20a1 1 0 0 0 .54-.16A1 1 0 0 0 21 19V6.8a1 1 0 0 0-.59-.91zM9 6.55l2 .89v10l-2-.89zm10 10.9l-2-.89v-10l2 .89z"/></g></g>',maximize:'<g data-name="Layer 2"><g data-name="maximize"><rect width="24" height="24" opacity="0"/><path d="M20.71 19.29l-3.4-3.39A7.92 7.92 0 0 0 19 11a8 8 0 1 0-8 8 7.92 7.92 0 0 0 4.9-1.69l3.39 3.4a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM13 12h-1v1a1 1 0 0 1-2 0v-1H9a1 1 0 0 1 0-2h1V9a1 1 0 0 1 2 0v1h1a1 1 0 0 1 0 2z"/></g></g>',"menu-2":'<g data-name="Layer 2"><g data-name="menu-2"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><circle cx="4" cy="12" r="1"/><rect x="7" y="11" width="14" height="2" rx=".94" ry=".94"/><rect x="3" y="16" width="18" height="2" rx=".94" ry=".94"/><rect x="3" y="6" width="18" height="2" rx=".94" ry=".94"/></g></g>',"menu-arrow":'<g data-name="Layer 2"><g data-name="menu-arrow"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M20.05 11H5.91l1.3-1.29a1 1 0 0 0-1.42-1.42l-3 3a1 1 0 0 0 0 1.42l3 3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42L5.91 13h14.14a1 1 0 0 0 .95-.95V12a1 1 0 0 0-.95-1z"/><rect x="3" y="17" width="18" height="2" rx=".95" ry=".95"/><rect x="3" y="5" width="18" height="2" rx=".95" ry=".95"/></g></g>',menu:'<g data-name="Layer 2"><g data-name="menu"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><rect x="3" y="11" width="18" height="2" rx=".95" ry=".95"/><rect x="3" y="16" width="18" height="2" rx=".95" ry=".95"/><rect x="3" y="6" width="18" height="2" rx=".95" ry=".95"/></g></g>',"message-circle":'<g data-name="Layer 2"><g data-name="message-circle"><rect width="24" height="24" opacity="0"/><path d="M19.07 4.93a10 10 0 0 0-16.28 11 1.06 1.06 0 0 1 .09.64L2 20.8a1 1 0 0 0 .27.91A1 1 0 0 0 3 22h.2l4.28-.86a1.26 1.26 0 0 1 .64.09 10 10 0 0 0 11-16.28zM8 13a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm4 0a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm4 0a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/></g></g>',"message-square":'<g data-name="Layer 2"><g data-name="message-square"><rect width="24" height="24" opacity="0"/><path d="M19 3H5a3 3 0 0 0-3 3v15a1 1 0 0 0 .51.87A1 1 0 0 0 3 22a1 1 0 0 0 .51-.14L8 19.14a1 1 0 0 1 .55-.14H19a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zM8 12a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm4 0a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm4 0a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/></g></g>',"mic-off":'<g data-name="Layer 2"><g data-name="mic-off"><rect width="24" height="24" opacity="0"/><path d="M15.58 12.75A4 4 0 0 0 16 11V6a4 4 0 0 0-7.92-.75"/><path d="M19 11a1 1 0 0 0-2 0 4.86 4.86 0 0 1-.69 2.48L17.78 15A7 7 0 0 0 19 11z"/><path d="M12 15h.16L8 10.83V11a4 4 0 0 0 4 4z"/><path d="M20.71 19.29l-16-16a1 1 0 0 0-1.42 1.42l16 16a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/><path d="M15 20h-2v-2.08a7 7 0 0 0 1.65-.44l-1.6-1.6A4.57 4.57 0 0 1 12 16a5 5 0 0 1-5-5 1 1 0 0 0-2 0 7 7 0 0 0 6 6.92V20H9a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2z"/></g></g>',mic:'<g data-name="Layer 2"><g data-name="mic"><rect width="24" height="24" opacity="0"/><path d="M12 15a4 4 0 0 0 4-4V6a4 4 0 0 0-8 0v5a4 4 0 0 0 4 4z"/><path d="M19 11a1 1 0 0 0-2 0 5 5 0 0 1-10 0 1 1 0 0 0-2 0 7 7 0 0 0 6 6.92V20H8.89a.89.89 0 0 0-.89.89v.22a.89.89 0 0 0 .89.89h6.22a.89.89 0 0 0 .89-.89v-.22a.89.89 0 0 0-.89-.89H13v-2.08A7 7 0 0 0 19 11z"/></g></g>',minimize:'<g data-name="Layer 2"><g data-name="minimize"><rect width="24" height="24" opacity="0"/><path d="M20.71 19.29l-3.4-3.39A7.92 7.92 0 0 0 19 11a8 8 0 1 0-8 8 7.92 7.92 0 0 0 4.9-1.69l3.39 3.4a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM13 12H9a1 1 0 0 1 0-2h4a1 1 0 0 1 0 2z"/></g></g>',"minus-circle":'<g data-name="Layer 2"><g data-name="minus-circle"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm3 11H9a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2z"/></g></g>',"minus-square":'<g data-name="Layer 2"><g data-name="minus-square"><rect width="24" height="24" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm-3 10H9a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2z"/></g></g>',minus:'<g data-name="Layer 2"><g data-name="minus"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M19 13H5a1 1 0 0 1 0-2h14a1 1 0 0 1 0 2z"/></g></g>',monitor:'<g data-name="Layer 2"><g data-name="monitor"><rect width="24" height="24" opacity="0"/><path d="M19 3H5a3 3 0 0 0-3 3v5h20V6a3 3 0 0 0-3-3z"/><path d="M2 14a3 3 0 0 0 3 3h6v2H7a1 1 0 0 0 0 2h10a1 1 0 0 0 0-2h-4v-2h6a3 3 0 0 0 3-3v-1H2z"/></g></g>',moon:'<g data-name="Layer 2"><g data-name="moon"><rect width="24" height="24" opacity="0"/><path d="M12.3 22h-.1a10.31 10.31 0 0 1-7.34-3.15 10.46 10.46 0 0 1-.26-14 10.13 10.13 0 0 1 4-2.74 1 1 0 0 1 1.06.22 1 1 0 0 1 .24 1 8.4 8.4 0 0 0 1.94 8.81 8.47 8.47 0 0 0 8.83 1.94 1 1 0 0 1 1.27 1.29A10.16 10.16 0 0 1 19.6 19a10.28 10.28 0 0 1-7.3 3z"/></g></g>',"more-horizontal":'<g data-name="Layer 2"><g data-name="more-horizotnal"><rect width="24" height="24" opacity="0"/><circle cx="12" cy="12" r="2"/><circle cx="19" cy="12" r="2"/><circle cx="5" cy="12" r="2"/></g></g>',"more-vertical":'<g data-name="Layer 2"><g data-name="more-vertical"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><circle cx="12" cy="12" r="2"/><circle cx="12" cy="5" r="2"/><circle cx="12" cy="19" r="2"/></g></g>',move:'<g data-name="Layer 2"><g data-name="move"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M21.71 11.31l-3-3a1 1 0 0 0-1.42 1.42L18.58 11H13V5.41l1.29 1.3A1 1 0 0 0 15 7a1 1 0 0 0 .71-.29 1 1 0 0 0 0-1.42l-3-3A1 1 0 0 0 12 2a1 1 0 0 0-.7.29l-3 3a1 1 0 0 0 1.41 1.42L11 5.42V11H5.41l1.3-1.29a1 1 0 0 0-1.42-1.42l-3 3A1 1 0 0 0 2 12a1 1 0 0 0 .29.71l3 3A1 1 0 0 0 6 16a1 1 0 0 0 .71-.29 1 1 0 0 0 0-1.42L5.42 13H11v5.59l-1.29-1.3a1 1 0 0 0-1.42 1.42l3 3A1 1 0 0 0 12 22a1 1 0 0 0 .7-.29l3-3a1 1 0 0 0-1.42-1.42L13 18.58V13h5.59l-1.3 1.29a1 1 0 0 0 0 1.42A1 1 0 0 0 18 16a1 1 0 0 0 .71-.29l3-3A1 1 0 0 0 22 12a1 1 0 0 0-.29-.69z"/></g></g>',music:'<g data-name="Layer 2"><g data-name="music"><rect width="24" height="24" opacity="0"/><path d="M19 15V4a1 1 0 0 0-.38-.78 1 1 0 0 0-.84-.2l-9 2A1 1 0 0 0 8 6v8.34a3.49 3.49 0 1 0 2 3.18 4.36 4.36 0 0 0 0-.52V6.8l7-1.55v7.09a3.49 3.49 0 1 0 2 3.17 4.57 4.57 0 0 0 0-.51z"/></g></g>',"navigation-2":'<g data-name="Layer 2"><g data-name="navigation-2"><rect width="24" height="24" opacity="0"/><path d="M13.67 22h-.06a1 1 0 0 1-.92-.8l-1.54-7.57a1 1 0 0 0-.78-.78L2.8 11.31a1 1 0 0 1-.12-1.93l16-5.33A1 1 0 0 1 20 5.32l-5.33 16a1 1 0 0 1-1 .68z"/></g></g>',navigation:'<g data-name="Layer 2"><g data-name="navigation"><rect width="24" height="24" opacity="0"/><path d="M20 20a.94.94 0 0 1-.55-.17l-6.9-4.56a1 1 0 0 0-1.1 0l-6.9 4.56a1 1 0 0 1-1.44-1.28l8-16a1 1 0 0 1 1.78 0l8 16a1 1 0 0 1-.23 1.2A1 1 0 0 1 20 20z"/></g></g>',npm:'<g data-name="Layer 2"><g data-name="npm"><rect width="24" height="24" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h7V11h4v10h1a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3z"/></g></g>',"options-2":'<g data-name="Layer 2"><g data-name="options-2"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M19 9a3 3 0 0 0-2.82 2H3a1 1 0 0 0 0 2h13.18A3 3 0 1 0 19 9z"/><path d="M3 7h1.18a3 3 0 0 0 5.64 0H21a1 1 0 0 0 0-2H9.82a3 3 0 0 0-5.64 0H3a1 1 0 0 0 0 2z"/><path d="M21 17h-7.18a3 3 0 0 0-5.64 0H3a1 1 0 0 0 0 2h5.18a3 3 0 0 0 5.64 0H21a1 1 0 0 0 0-2z"/></g></g>',options:'<g data-name="Layer 2"><g data-name="options"><rect width="24" height="24" opacity="0"/><path d="M7 14.18V3a1 1 0 0 0-2 0v11.18a3 3 0 0 0 0 5.64V21a1 1 0 0 0 2 0v-1.18a3 3 0 0 0 0-5.64z"/><path d="M21 13a3 3 0 0 0-2-2.82V3a1 1 0 0 0-2 0v7.18a3 3 0 0 0 0 5.64V21a1 1 0 0 0 2 0v-5.18A3 3 0 0 0 21 13z"/><path d="M15 5a3 3 0 1 0-4 2.82V21a1 1 0 0 0 2 0V7.82A3 3 0 0 0 15 5z"/></g></g>',pantone:'<g data-name="Layer 2"><g data-name="pantone"><rect width="24" height="24" opacity="0"/><path d="M20 13.18h-2.7l-1.86 2L11.88 19l-1.41 1.52L10 21h10a1 1 0 0 0 1-1v-5.82a1 1 0 0 0-1-1z"/><path d="M18.19 9.3l-4.14-3.86a.89.89 0 0 0-.71-.26 1 1 0 0 0-.7.31l-.82.89v10.71a5.23 5.23 0 0 1-.06.57l6.48-6.95a1 1 0 0 0-.05-1.41z"/><path d="M10.82 4a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v13.09a3.91 3.91 0 0 0 7.82 0zm-2 13.09a1.91 1.91 0 0 1-3.82 0V15h3.82zm0-4.09H5v-3h3.82zm0-5H5V5h3.82z"/></g></g>',"paper-plane":'<g data-name="Layer 2"><g data-name="paper-plane"><rect width="24" height="24" opacity="0"/><path d="M21 4a1.31 1.31 0 0 0-.06-.27v-.09a1 1 0 0 0-.2-.3 1 1 0 0 0-.29-.19h-.09a.86.86 0 0 0-.31-.15H20a1 1 0 0 0-.3 0l-18 6a1 1 0 0 0 0 1.9l8.53 2.84 2.84 8.53a1 1 0 0 0 1.9 0l6-18A1 1 0 0 0 21 4zm-4.7 2.29l-5.57 5.57L5.16 10zM14 18.84l-1.86-5.57 5.57-5.57z"/></g></g>',"pause-circle":'<g data-name="Layer 2"><g data-name="pause-circle"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm-2 13a1 1 0 0 1-2 0V9a1 1 0 0 1 2 0zm6 0a1 1 0 0 1-2 0V9a1 1 0 0 1 2 0z"/></g></g>',people:'<g data-name="Layer 2"><g data-name="people"><rect width="24" height="24" opacity="0"/><path d="M9 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4z"/><path d="M17 13a3 3 0 1 0-3-3 3 3 0 0 0 3 3z"/><path d="M21 20a1 1 0 0 0 1-1 5 5 0 0 0-8.06-3.95A7 7 0 0 0 2 20a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1"/></g></g>',percent:'<g data-name="Layer 2"><g data-name="percent"><rect width="24" height="24" opacity="0"/><path d="M8 11a3.5 3.5 0 1 0-3.5-3.5A3.5 3.5 0 0 0 8 11zm0-5a1.5 1.5 0 1 1-1.5 1.5A1.5 1.5 0 0 1 8 6z"/><path d="M16 14a3.5 3.5 0 1 0 3.5 3.5A3.5 3.5 0 0 0 16 14zm0 5a1.5 1.5 0 1 1 1.5-1.5A1.5 1.5 0 0 1 16 19z"/><path d="M19.74 4.26a.89.89 0 0 0-1.26 0L4.26 18.48a.91.91 0 0 0-.26.63.89.89 0 0 0 1.52.63L19.74 5.52a.89.89 0 0 0 0-1.26z"/></g></g>',"person-add":'<g data-name="Layer 2"><g data-name="person-add"><rect width="24" height="24" opacity="0"/><path d="M21 6h-1V5a1 1 0 0 0-2 0v1h-1a1 1 0 0 0 0 2h1v1a1 1 0 0 0 2 0V8h1a1 1 0 0 0 0-2z"/><path d="M10 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4z"/><path d="M16 21a1 1 0 0 0 1-1 7 7 0 0 0-14 0 1 1 0 0 0 1 1"/></g></g>',"person-delete":'<g data-name="Layer 2"><g data-name="person-delete"><rect width="24" height="24" opacity="0"/><path d="M20.47 7.5l.73-.73a1 1 0 0 0-1.47-1.47L19 6l-.73-.73a1 1 0 0 0-1.47 1.5l.73.73-.73.73a1 1 0 0 0 1.47 1.47L19 9l.73.73a1 1 0 0 0 1.47-1.5z"/><path d="M10 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4z"/><path d="M16 21a1 1 0 0 0 1-1 7 7 0 0 0-14 0 1 1 0 0 0 1 1z"/></g></g>',"person-done":'<g data-name="Layer 2"><g data-name="person-done"><rect width="24" height="24" opacity="0"/><path d="M21.66 4.25a1 1 0 0 0-1.41.09l-1.87 2.15-.63-.71a1 1 0 0 0-1.5 1.33l1.39 1.56a1 1 0 0 0 .75.33 1 1 0 0 0 .74-.34l2.61-3a1 1 0 0 0-.08-1.41z"/><path d="M10 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4z"/><path d="M16 21a1 1 0 0 0 1-1 7 7 0 0 0-14 0 1 1 0 0 0 1 1"/></g></g>',"person-remove":'<g data-name="Layer 2"><g data-name="person-remove"><rect width="24" height="24" opacity="0"/><path d="M21 6h-4a1 1 0 0 0 0 2h4a1 1 0 0 0 0-2z"/><path d="M10 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4z"/><path d="M16 21a1 1 0 0 0 1-1 7 7 0 0 0-14 0 1 1 0 0 0 1 1"/></g></g>',person:'<g data-name="Layer 2"><g data-name="person"><rect width="24" height="24" opacity="0"/><path d="M12 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4z"/><path d="M18 21a1 1 0 0 0 1-1 7 7 0 0 0-14 0 1 1 0 0 0 1 1z"/></g></g>',"phone-call":'<g data-name="Layer 2"><g data-name="phone-call"><rect width="24" height="24" opacity="0"/><path d="M13 8a3 3 0 0 1 3 3 1 1 0 0 0 2 0 5 5 0 0 0-5-5 1 1 0 0 0 0 2z"/><path d="M13 4a7 7 0 0 1 7 7 1 1 0 0 0 2 0 9 9 0 0 0-9-9 1 1 0 0 0 0 2z"/><path d="M21.75 15.91a1 1 0 0 0-.72-.65l-6-1.37a1 1 0 0 0-.92.26c-.14.13-.15.14-.8 1.38a9.91 9.91 0 0 1-4.87-4.89C9.71 10 9.72 10 9.85 9.85a1 1 0 0 0 .26-.92L8.74 3a1 1 0 0 0-.65-.72 3.79 3.79 0 0 0-.72-.18A3.94 3.94 0 0 0 6.6 2 4.6 4.6 0 0 0 2 6.6 15.42 15.42 0 0 0 17.4 22a4.6 4.6 0 0 0 4.6-4.6 4.77 4.77 0 0 0-.06-.76 4.34 4.34 0 0 0-.19-.73z"/></g></g>',"phone-missed":'<g data-name="Layer 2"><g data-name="phone-missed"><rect width="24" height="24" opacity="0"/><path d="M21.94 16.64a4.34 4.34 0 0 0-.19-.73 1 1 0 0 0-.72-.65l-6-1.37a1 1 0 0 0-.92.26c-.14.13-.15.14-.8 1.38a10 10 0 0 1-4.88-4.89C9.71 10 9.72 10 9.85 9.85a1 1 0 0 0 .26-.92L8.74 3a1 1 0 0 0-.65-.72 3.79 3.79 0 0 0-.72-.18A3.94 3.94 0 0 0 6.6 2 4.6 4.6 0 0 0 2 6.6 15.42 15.42 0 0 0 17.4 22a4.6 4.6 0 0 0 4.6-4.6 4.77 4.77 0 0 0-.06-.76z"/><path d="M15.8 8.7a1.05 1.05 0 0 0 1.47 0L18 8l.73.73a1 1 0 0 0 1.47-1.5l-.73-.73.73-.73a1 1 0 0 0-1.47-1.47L18 5l-.73-.73a1 1 0 0 0-1.47 1.5l.73.73-.73.73a1.05 1.05 0 0 0 0 1.47z"/></g></g>',"phone-off":'<g data-name="Layer 2"><g data-name="phone-off"><rect width="24" height="24" opacity="0"/><path d="M9.27 12.06a10.37 10.37 0 0 1-.8-1.42C9.71 10 9.72 10 9.85 9.85a1 1 0 0 0 .26-.92L8.74 3a1 1 0 0 0-.65-.72 3.79 3.79 0 0 0-.72-.18A3.94 3.94 0 0 0 6.6 2 4.6 4.6 0 0 0 2 6.6a15.33 15.33 0 0 0 3.27 9.46z"/><path d="M21.94 16.64a4.34 4.34 0 0 0-.19-.73 1 1 0 0 0-.72-.65l-6-1.37a1 1 0 0 0-.92.26c-.14.13-.15.14-.8 1.38a10.88 10.88 0 0 1-1.41-.8l-4 4A15.33 15.33 0 0 0 17.4 22a4.6 4.6 0 0 0 4.6-4.6 4.77 4.77 0 0 0-.06-.76z"/><path d="M19.74 4.26a.89.89 0 0 0-1.26 0L4.26 18.48a.91.91 0 0 0-.26.63.89.89 0 0 0 1.52.63L19.74 5.52a.89.89 0 0 0 0-1.26z"/></g></g>',phone:'<g data-name="Layer 2"><g data-name="phone"><rect width="24" height="24" opacity="0"/><path d="M17.4 22A15.42 15.42 0 0 1 2 6.6 4.6 4.6 0 0 1 6.6 2a3.94 3.94 0 0 1 .77.07 3.79 3.79 0 0 1 .72.18 1 1 0 0 1 .65.75l1.37 6a1 1 0 0 1-.26.92c-.13.14-.14.15-1.37.79a9.91 9.91 0 0 0 4.87 4.89c.65-1.24.66-1.25.8-1.38a1 1 0 0 1 .92-.26l6 1.37a1 1 0 0 1 .72.65 4.34 4.34 0 0 1 .19.73 4.77 4.77 0 0 1 .06.76A4.6 4.6 0 0 1 17.4 22z"/></g></g>',"pie-chart-2":'<g data-name="Layer 2"><g data-name="pie-chart-2"><rect width="24" height="24" opacity="0"/><path d="M14.5 10.33h6.67A.83.83 0 0 0 22 9.5 7.5 7.5 0 0 0 14.5 2a.83.83 0 0 0-.83.83V9.5a.83.83 0 0 0 .83.83zm.83-6.6a5.83 5.83 0 0 1 4.94 4.94h-4.94z"/><path d="M21.08 12h-8.15a.91.91 0 0 1-.91-.91V2.92A.92.92 0 0 0 11 2a10 10 0 1 0 11 11 .92.92 0 0 0-.92-1z"/></g></g>',"pie-chart":'<g data-name="Layer 2"><g data-name="pie-chart"><rect width="24" height="24" opacity="0"/><path d="M14.5 10.33h6.67A.83.83 0 0 0 22 9.5 7.5 7.5 0 0 0 14.5 2a.83.83 0 0 0-.83.83V9.5a.83.83 0 0 0 .83.83z"/><path d="M21.08 12h-8.15a.91.91 0 0 1-.91-.91V2.92A.92.92 0 0 0 11 2a10 10 0 1 0 11 11 .92.92 0 0 0-.92-1z"/></g></g>',pin:'<g data-name="Layer 2"><g data-name="pin"><rect width="24" height="24" opacity="0"/><circle cx="12" cy="9.5" r="1.5"/><path d="M12 2a8 8 0 0 0-8 7.92c0 5.48 7.05 11.58 7.35 11.84a1 1 0 0 0 1.3 0C13 21.5 20 15.4 20 9.92A8 8 0 0 0 12 2zm0 11a3.5 3.5 0 1 1 3.5-3.5A3.5 3.5 0 0 1 12 13z"/></g></g>',"play-circle":'<g data-name="Layer 2"><g data-name="play-circle"><rect width="24" height="24" opacity="0"/><polygon points="11.5 14.6 14.31 12 11.5 9.4 11.5 14.6"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm4 11.18l-3.64 3.37a1.74 1.74 0 0 1-1.16.45 1.68 1.68 0 0 1-.69-.15 1.6 1.6 0 0 1-1-1.48V8.63a1.6 1.6 0 0 1 1-1.48 1.7 1.7 0 0 1 1.85.3L16 10.82a1.6 1.6 0 0 1 0 2.36z"/></g></g>',"plus-circle":'<g data-name="Layer 2"><g data-name="plus-circle"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm3 11h-2v2a1 1 0 0 1-2 0v-2H9a1 1 0 0 1 0-2h2V9a1 1 0 0 1 2 0v2h2a1 1 0 0 1 0 2z"/></g></g>',"plus-square":'<g data-name="Layer 2"><g data-name="plus-square"><rect width="24" height="24" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm-3 10h-2v2a1 1 0 0 1-2 0v-2H9a1 1 0 0 1 0-2h2V9a1 1 0 0 1 2 0v2h2a1 1 0 0 1 0 2z"/></g></g>',plus:'<g data-name="Layer 2"><g data-name="plus"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M19 11h-6V5a1 1 0 0 0-2 0v6H5a1 1 0 0 0 0 2h6v6a1 1 0 0 0 2 0v-6h6a1 1 0 0 0 0-2z"/></g></g>',power:'<g data-name="Layer 2"><g data-name="power"><rect width="24" height="24" opacity="0"/><path d="M12 13a1 1 0 0 0 1-1V2a1 1 0 0 0-2 0v10a1 1 0 0 0 1 1z"/><path d="M16.59 3.11a1 1 0 0 0-.92 1.78 8 8 0 1 1-7.34 0 1 1 0 1 0-.92-1.78 10 10 0 1 0 9.18 0z"/></g></g>',pricetags:'<g data-name="Layer 2"><g data-name="pricetags"><rect width="24" height="24" opacity="0"/><path d="M21.47 11.58l-6.42-6.41a1 1 0 0 0-.61-.29L5.09 4a1 1 0 0 0-.8.29 1 1 0 0 0-.29.8l.88 9.35a1 1 0 0 0 .29.61l6.41 6.42a1.84 1.84 0 0 0 1.29.53 1.82 1.82 0 0 0 1.28-.53l7.32-7.32a1.82 1.82 0 0 0 0-2.57zm-9.91 0a1.5 1.5 0 1 1 0-2.12 1.49 1.49 0 0 1 0 2.1z"/></g></g>',printer:'<g data-name="Layer 2"><g data-name="printer"><rect width="24" height="24" opacity="0"/><path d="M19.36 7H18V5a1.92 1.92 0 0 0-1.83-2H7.83A1.92 1.92 0 0 0 6 5v2H4.64A2.66 2.66 0 0 0 2 9.67v6.66A2.66 2.66 0 0 0 4.64 19h.86a2 2 0 0 0 2 2h9a2 2 0 0 0 2-2h.86A2.66 2.66 0 0 0 22 16.33V9.67A2.66 2.66 0 0 0 19.36 7zM8 5h8v2H8zm-.5 14v-4h9v4z"/></g></g>',"question-mark-circle":'<g data-name="Layer 2"><g data-name="menu-arrow-circle"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 16a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm1-5.16V14a1 1 0 0 1-2 0v-2a1 1 0 0 1 1-1 1.5 1.5 0 1 0-1.5-1.5 1 1 0 0 1-2 0 3.5 3.5 0 1 1 4.5 3.34z"/></g></g>',"question-mark":'<g data-name="Layer 2"><g data-name="menu-arrow"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M17 9A5 5 0 0 0 7 9a1 1 0 0 0 2 0 3 3 0 1 1 3 3 1 1 0 0 0-1 1v2a1 1 0 0 0 2 0v-1.1A5 5 0 0 0 17 9z"/><circle cx="12" cy="19" r="1"/></g></g>',"radio-button-off":'<g data-name="Layer 2"><g data-name="radio-button-off"><rect width="24" height="24" opacity="0"/><path d="M12 22a10 10 0 1 1 10-10 10 10 0 0 1-10 10zm0-18a8 8 0 1 0 8 8 8 8 0 0 0-8-8z"/></g></g>',"radio-button-on":'<g data-name="Layer 2"><g data-name="radio-button-on"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M12 7a5 5 0 1 0 5 5 5 5 0 0 0-5-5z"/></g></g>',radio:'<g data-name="Layer 2"><g data-name="radio"><rect width="24" height="24" opacity="0"/><path d="M12 8a3 3 0 0 0-1 5.83 1 1 0 0 0 0 .17v6a1 1 0 0 0 2 0v-6a1 1 0 0 0 0-.17A3 3 0 0 0 12 8z"/><path d="M3.5 11a6.87 6.87 0 0 1 2.64-5.23 1 1 0 1 0-1.28-1.54A8.84 8.84 0 0 0 1.5 11a8.84 8.84 0 0 0 3.36 6.77 1 1 0 1 0 1.28-1.54A6.87 6.87 0 0 1 3.5 11z"/><path d="M16.64 6.24a1 1 0 0 0-1.28 1.52A4.28 4.28 0 0 1 17 11a4.28 4.28 0 0 1-1.64 3.24A1 1 0 0 0 16 16a1 1 0 0 0 .64-.24A6.2 6.2 0 0 0 19 11a6.2 6.2 0 0 0-2.36-4.76z"/><path d="M8.76 6.36a1 1 0 0 0-1.4-.12A6.2 6.2 0 0 0 5 11a6.2 6.2 0 0 0 2.36 4.76 1 1 0 0 0 1.4-.12 1 1 0 0 0-.12-1.4A4.28 4.28 0 0 1 7 11a4.28 4.28 0 0 1 1.64-3.24 1 1 0 0 0 .12-1.4z"/><path d="M19.14 4.23a1 1 0 1 0-1.28 1.54A6.87 6.87 0 0 1 20.5 11a6.87 6.87 0 0 1-2.64 5.23 1 1 0 0 0 1.28 1.54A8.84 8.84 0 0 0 22.5 11a8.84 8.84 0 0 0-3.36-6.77z"/></g></g>',recording:'<g data-name="Layer 2"><g data-name="recording"><rect width="24" height="24" opacity="0"/><path d="M18 8a4 4 0 0 0-4 4 3.91 3.91 0 0 0 .56 2H9.44a3.91 3.91 0 0 0 .56-2 4 4 0 1 0-4 4h12a4 4 0 0 0 0-8z"/></g></g>',refresh:'<g data-name="Layer 2"><g data-name="refresh"><rect width="24" height="24" opacity="0"/><path d="M20.3 13.43a1 1 0 0 0-1.25.65A7.14 7.14 0 0 1 12.18 19 7.1 7.1 0 0 1 5 12a7.1 7.1 0 0 1 7.18-7 7.26 7.26 0 0 1 4.65 1.67l-2.17-.36a1 1 0 0 0-1.15.83 1 1 0 0 0 .83 1.15l4.24.7h.17a1 1 0 0 0 .34-.06.33.33 0 0 0 .1-.06.78.78 0 0 0 .2-.11l.09-.11c0-.05.09-.09.13-.15s0-.1.05-.14a1.34 1.34 0 0 0 .07-.18l.75-4a1 1 0 0 0-2-.38l-.27 1.45A9.21 9.21 0 0 0 12.18 3 9.1 9.1 0 0 0 3 12a9.1 9.1 0 0 0 9.18 9A9.12 9.12 0 0 0 21 14.68a1 1 0 0 0-.7-1.25z"/></g></g>',repeat:'<g data-name="Layer 2"><g data-name="repeat"><rect width="24" height="24" opacity="0"/><path d="M17.91 5h-12l1.3-1.29a1 1 0 0 0-1.42-1.42l-3 3a1 1 0 0 0 0 1.42l3 3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42L5.91 7h12a1.56 1.56 0 0 1 1.59 1.53V11a1 1 0 0 0 2 0V8.53A3.56 3.56 0 0 0 17.91 5z"/><path d="M18.21 14.29a1 1 0 0 0-1.42 1.42l1.3 1.29h-12a1.56 1.56 0 0 1-1.59-1.53V13a1 1 0 0 0-2 0v2.47A3.56 3.56 0 0 0 6.09 19h12l-1.3 1.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l3-3a1 1 0 0 0 0-1.42z"/></g></g>',"rewind-left":'<g data-name="Layer 2"><g data-name="rewind-left"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18.45 6.2a2.1 2.1 0 0 0-2.21.26l-4.74 3.92V7.79a1.76 1.76 0 0 0-1.05-1.59 2.1 2.1 0 0 0-2.21.26l-5.1 4.21a1.7 1.7 0 0 0 0 2.66l5.1 4.21a2.06 2.06 0 0 0 1.3.46 2.23 2.23 0 0 0 .91-.2 1.76 1.76 0 0 0 1.05-1.59v-2.59l4.74 3.92a2.06 2.06 0 0 0 1.3.46 2.23 2.23 0 0 0 .91-.2 1.76 1.76 0 0 0 1.05-1.59V7.79a1.76 1.76 0 0 0-1.05-1.59z"/></g></g>',"rewind-right":'<g data-name="Layer 2"><g data-name="rewind-right"><rect width="24" height="24" opacity="0"/><path d="M20.86 10.67l-5.1-4.21a2.1 2.1 0 0 0-2.21-.26 1.76 1.76 0 0 0-1.05 1.59v2.59L7.76 6.46a2.1 2.1 0 0 0-2.21-.26 1.76 1.76 0 0 0-1 1.59v8.42a1.76 1.76 0 0 0 1 1.59 2.23 2.23 0 0 0 .91.2 2.06 2.06 0 0 0 1.3-.46l4.74-3.92v2.59a1.76 1.76 0 0 0 1.05 1.59 2.23 2.23 0 0 0 .91.2 2.06 2.06 0 0 0 1.3-.46l5.1-4.21a1.7 1.7 0 0 0 0-2.66z"/></g></g>',save:'<g data-name="Layer 2"><g data-name="save"><rect width="24" height="24" opacity="0"/><rect x="10" y="17" width="4" height="4"/><path d="M20.12 8.71l-4.83-4.83A3 3 0 0 0 13.17 3H10v6h5a1 1 0 0 1 0 2H9a1 1 0 0 1-1-1V3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h2v-4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v4h2a3 3 0 0 0 3-3v-7.17a3 3 0 0 0-.88-2.12z"/></g></g>',scissors:'<g data-name="Layer 2"><g data-name="scissors"><rect width="24" height="24" opacity="0"/><path d="M20.21 5.71a1 1 0 1 0-1.42-1.42l-6.28 6.31-3.3-3.31A3 3 0 0 0 9.5 6a3 3 0 1 0-3 3 3 3 0 0 0 1.29-.3L11.1 12l-3.29 3.3A3 3 0 0 0 6.5 15a3 3 0 1 0 3 3 3 3 0 0 0-.29-1.26zM6.5 7a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm0 12a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/><path d="M15.21 13.29a1 1 0 0 0-1.42 1.42l5 5a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g>',search:'<g data-name="Layer 2"><g data-name="search"><rect width="24" height="24" opacity="0"/><path d="M20.71 19.29l-3.4-3.39A7.92 7.92 0 0 0 19 11a8 8 0 1 0-8 8 7.92 7.92 0 0 0 4.9-1.69l3.39 3.4a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM5 11a6 6 0 1 1 6 6 6 6 0 0 1-6-6z"/></g></g>',"settings-2":'<g data-name="Layer 2"><g data-name="settings-2"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><circle cx="12" cy="12" r="1.5"/><path d="M20.32 9.37h-1.09c-.14 0-.24-.11-.3-.26a.34.34 0 0 1 0-.37l.81-.74a1.63 1.63 0 0 0 .5-1.18 1.67 1.67 0 0 0-.5-1.19L18.4 4.26a1.67 1.67 0 0 0-2.37 0l-.77.74a.38.38 0 0 1-.41 0 .34.34 0 0 1-.22-.29V3.68A1.68 1.68 0 0 0 13 2h-1.94a1.69 1.69 0 0 0-1.69 1.68v1.09c0 .14-.11.24-.26.3a.34.34 0 0 1-.37 0L8 4.26a1.72 1.72 0 0 0-1.19-.5 1.65 1.65 0 0 0-1.18.5L4.26 5.6a1.67 1.67 0 0 0 0 2.4l.74.74a.38.38 0 0 1 0 .41.34.34 0 0 1-.29.22H3.68A1.68 1.68 0 0 0 2 11.05v1.89a1.69 1.69 0 0 0 1.68 1.69h1.09c.14 0 .24.11.3.26a.34.34 0 0 1 0 .37l-.81.74a1.72 1.72 0 0 0-.5 1.19 1.66 1.66 0 0 0 .5 1.19l1.34 1.36a1.67 1.67 0 0 0 2.37 0l.77-.74a.38.38 0 0 1 .41 0 .34.34 0 0 1 .22.29v1.09A1.68 1.68 0 0 0 11.05 22h1.89a1.69 1.69 0 0 0 1.69-1.68v-1.09c0-.14.11-.24.26-.3a.34.34 0 0 1 .37 0l.76.77a1.72 1.72 0 0 0 1.19.5 1.65 1.65 0 0 0 1.18-.5l1.34-1.34a1.67 1.67 0 0 0 0-2.37l-.73-.73a.34.34 0 0 1 0-.37.34.34 0 0 1 .29-.22h1.09A1.68 1.68 0 0 0 22 13v-1.94a1.69 1.69 0 0 0-1.68-1.69zM12 15.5a3.5 3.5 0 1 1 3.5-3.5 3.5 3.5 0 0 1-3.5 3.5z"/></g></g>',settings:'<g data-name="Layer 2"><g data-name="settings"><rect width="24" height="24" opacity="0"/><circle cx="12" cy="12" r="1.5"/><path d="M21.89 10.32L21.1 7.8a2.26 2.26 0 0 0-2.88-1.51l-.34.11a1.74 1.74 0 0 1-1.59-.26l-.11-.08a1.76 1.76 0 0 1-.69-1.43v-.28a2.37 2.37 0 0 0-.68-1.68 2.26 2.26 0 0 0-1.6-.67h-2.55a2.32 2.32 0 0 0-2.29 2.33v.24a1.94 1.94 0 0 1-.73 1.51l-.13.1a1.93 1.93 0 0 1-1.78.29 2.14 2.14 0 0 0-1.68.12 2.18 2.18 0 0 0-1.12 1.33l-.82 2.6a2.34 2.34 0 0 0 1.48 2.94h.16a1.83 1.83 0 0 1 1.12 1.22l.06.16a2.06 2.06 0 0 1-.23 1.86 2.37 2.37 0 0 0 .49 3.3l2.07 1.57a2.25 2.25 0 0 0 1.35.43A2 2 0 0 0 9 22a2.25 2.25 0 0 0 1.47-1l.23-.33a1.8 1.8 0 0 1 1.43-.77 1.75 1.75 0 0 1 1.5.78l.12.17a2.24 2.24 0 0 0 3.22.53L19 19.86a2.38 2.38 0 0 0 .5-3.23l-.26-.38A2 2 0 0 1 19 14.6a1.89 1.89 0 0 1 1.21-1.28l.2-.07a2.36 2.36 0 0 0 1.48-2.93zM12 15.5a3.5 3.5 0 1 1 3.5-3.5 3.5 3.5 0 0 1-3.5 3.5z"/></g></g>',shake:'<g data-name="Layer 2"><g data-name="shake"><rect width="24" height="24" opacity="0"/><path d="M5.5 18a1 1 0 0 1-.64-.24A8.81 8.81 0 0 1 1.5 11a8.81 8.81 0 0 1 3.36-6.76 1 1 0 1 1 1.28 1.52A6.9 6.9 0 0 0 3.5 11a6.9 6.9 0 0 0 2.64 5.24 1 1 0 0 1 .13 1.4 1 1 0 0 1-.77.36z"/><path d="M12 7a4.09 4.09 0 0 1 1 .14V3a1 1 0 0 0-2 0v4.14A4.09 4.09 0 0 1 12 7z"/><path d="M12 15a4.09 4.09 0 0 1-1-.14V20a1 1 0 0 0 2 0v-5.14a4.09 4.09 0 0 1-1 .14z"/><path d="M16 16a1 1 0 0 1-.77-.36 1 1 0 0 1 .13-1.4A4.28 4.28 0 0 0 17 11a4.28 4.28 0 0 0-1.64-3.24 1 1 0 1 1 1.28-1.52A6.2 6.2 0 0 1 19 11a6.2 6.2 0 0 1-2.36 4.76A1 1 0 0 1 16 16z"/><path d="M8 16a1 1 0 0 1-.64-.24A6.2 6.2 0 0 1 5 11a6.2 6.2 0 0 1 2.36-4.76 1 1 0 1 1 1.28 1.52A4.28 4.28 0 0 0 7 11a4.28 4.28 0 0 0 1.64 3.24 1 1 0 0 1 .13 1.4A1 1 0 0 1 8 16z"/><path d="M18.5 18a1 1 0 0 1-.77-.36 1 1 0 0 1 .13-1.4A6.9 6.9 0 0 0 20.5 11a6.9 6.9 0 0 0-2.64-5.24 1 1 0 1 1 1.28-1.52A8.81 8.81 0 0 1 22.5 11a8.81 8.81 0 0 1-3.36 6.76 1 1 0 0 1-.64.24z"/><path d="M12 12a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm0-1zm0 0zm0 0zm0 0zm0 0zm0 0zm0 0z"/></g></g>',share:'<g data-name="Layer 2"><g data-name="share"><rect width="24" height="24" opacity="0"/><path d="M18 15a3 3 0 0 0-2.1.86L8 12.34V12v-.33l7.9-3.53A3 3 0 1 0 15 6v.34L7.1 9.86a3 3 0 1 0 0 4.28l7.9 3.53V18a3 3 0 1 0 3-3z"/></g></g>',"shield-off":'<g data-name="Layer 2"><g data-name="shield-off"><rect width="24" height="24" opacity="0"/><path d="M3.73 6.56A2 2 0 0 0 3 8.09v.14a15.17 15.17 0 0 0 7.72 13.2l.3.17a2 2 0 0 0 2 0l.3-.17a15.22 15.22 0 0 0 3-2.27z"/><path d="M18.84 16A15.08 15.08 0 0 0 21 8.23v-.14a2 2 0 0 0-1-1.75L13 2.4a2 2 0 0 0-2 0L7.32 4.49z"/><path d="M4.71 3.29a1 1 0 0 0-1.42 1.42l16 16a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g>',shield:'<g data-name="Layer 2"><g data-name="shield"><rect width="24" height="24" opacity="0"/><path d="M12 21.85a2 2 0 0 1-1-.25l-.3-.17A15.17 15.17 0 0 1 3 8.23v-.14a2 2 0 0 1 1-1.75l7-3.94a2 2 0 0 1 2 0l7 3.94a2 2 0 0 1 1 1.75v.14a15.17 15.17 0 0 1-7.72 13.2l-.3.17a2 2 0 0 1-.98.25z"/></g></g>',"shopping-bag":'<g data-name="Layer 2"><g data-name="shopping-bag"><rect width="24" height="24" opacity="0"/><path d="M20.12 6.71l-2.83-2.83A3 3 0 0 0 15.17 3H8.83a3 3 0 0 0-2.12.88L3.88 6.71A3 3 0 0 0 3 8.83V18a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V8.83a3 3 0 0 0-.88-2.12zM12 16a4 4 0 0 1-4-4 1 1 0 0 1 2 0 2 2 0 0 0 4 0 1 1 0 0 1 2 0 4 4 0 0 1-4 4zM6.41 7l1.71-1.71A1.05 1.05 0 0 1 8.83 5h6.34a1.05 1.05 0 0 1 .71.29L17.59 7z"/></g></g>',"shopping-cart":'<g data-name="Layer 2"><g data-name="shopping-cart"><rect width="24" height="24" opacity="0"/><path d="M21.08 7a2 2 0 0 0-1.7-1H6.58L6 3.74A1 1 0 0 0 5 3H3a1 1 0 0 0 0 2h1.24L7 15.26A1 1 0 0 0 8 16h9a1 1 0 0 0 .89-.55l3.28-6.56A2 2 0 0 0 21.08 7z"/><circle cx="7.5" cy="19.5" r="1.5"/><circle cx="17.5" cy="19.5" r="1.5"/></g></g>',"shuffle-2":'<g data-name="Layer 2"><g data-name="shuffle-2"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18.71 14.29a1 1 0 0 0-1.42 1.42l.29.29H16a4 4 0 0 1 0-8h1.59l-.3.29a1 1 0 0 0 0 1.42A1 1 0 0 0 18 10a1 1 0 0 0 .71-.29l2-2A1 1 0 0 0 21 7a1 1 0 0 0-.29-.71l-2-2a1 1 0 0 0-1.42 1.42l.29.29H16a6 6 0 0 0-5 2.69A6 6 0 0 0 6 6H4a1 1 0 0 0 0 2h2a4 4 0 0 1 0 8H4a1 1 0 0 0 0 2h2a6 6 0 0 0 5-2.69A6 6 0 0 0 16 18h1.59l-.3.29a1 1 0 0 0 0 1.42A1 1 0 0 0 18 20a1 1 0 0 0 .71-.29l2-2A1 1 0 0 0 21 17a1 1 0 0 0-.29-.71z"/></g></g>',shuffle:'<g data-name="Layer 2"><g data-name="shuffle"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18 9.31a1 1 0 0 0 1 1 1 1 0 0 0 1-1V5a1 1 0 0 0-1-1h-4.3a1 1 0 0 0-1 1 1 1 0 0 0 1 1h1.89L12 10.59 6.16 4.76a1 1 0 0 0-1.41 1.41L10.58 12l-6.29 6.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0L18 7.42z"/><path d="M19 13.68a1 1 0 0 0-1 1v1.91l-2.78-2.79a1 1 0 0 0-1.42 1.42L16.57 18h-1.88a1 1 0 0 0 0 2H19a1 1 0 0 0 1-1.11v-4.21a1 1 0 0 0-1-1z"/></g></g>',"skip-back":'<g data-name="Layer 2"><g data-name="skip-back"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M16.45 6.2a2.1 2.1 0 0 0-2.21.26l-5.1 4.21-.14.15V7a1 1 0 0 0-2 0v10a1 1 0 0 0 2 0v-3.82l.14.15 5.1 4.21a2.06 2.06 0 0 0 1.3.46 2.23 2.23 0 0 0 .91-.2 1.76 1.76 0 0 0 1.05-1.59V7.79a1.76 1.76 0 0 0-1.05-1.59z"/></g></g>',"skip-forward":'<g data-name="Layer 2"><g data-name="skip-forward"><rect width="24" height="24" opacity="0"/><path d="M16 6a1 1 0 0 0-1 1v3.82l-.14-.15-5.1-4.21a2.1 2.1 0 0 0-2.21-.26 1.76 1.76 0 0 0-1 1.59v8.42a1.76 1.76 0 0 0 1 1.59 2.23 2.23 0 0 0 .91.2 2.06 2.06 0 0 0 1.3-.46l5.1-4.21.14-.15V17a1 1 0 0 0 2 0V7a1 1 0 0 0-1-1z"/></g></g>',slash:'<g data-name="Layer 2"><g data-name="slash"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm8 10a7.92 7.92 0 0 1-1.69 4.9L7.1 5.69A7.92 7.92 0 0 1 12 4a8 8 0 0 1 8 8zM4 12a7.92 7.92 0 0 1 1.69-4.9L16.9 18.31A7.92 7.92 0 0 1 12 20a8 8 0 0 1-8-8z"/></g></g>',smartphone:'<g data-name="Layer 2"><g data-name="smartphone"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M17 2H7a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3zm-5 16a1.5 1.5 0 1 1 1.5-1.5A1.5 1.5 0 0 1 12 18zm2.5-10h-5a1 1 0 0 1 0-2h5a1 1 0 0 1 0 2z"/></g></g>',"smiling-face":'<defs><style/></defs><g id="Layer_2" data-name="Layer 2"><g id="smiling-face"><g id="smiling-face" data-name="smiling-face"><rect width="24" height="24" opacity="0"/><path d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm5 9a5 5 0 0 1-10 0z" id="🎨-Icon-Сolor"/></g></g></g>',speaker:'<g data-name="Layer 2"><g data-name="speaker"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><circle cx="12" cy="15.5" r="1.5"/><circle cx="12" cy="8" r="1"/><path d="M17 2H7a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3zm-5 3a3 3 0 1 1-3 3 3 3 0 0 1 3-3zm0 14a3.5 3.5 0 1 1 3.5-3.5A3.5 3.5 0 0 1 12 19z"/></g></g>',square:'<g data-name="Layer 2"><g data-name="square"><rect width="24" height="24" opacity="0"/><path d="M18 21H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3zM6 5a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1z"/></g></g>',star:'<g data-name="Layer 2"><g data-name="star"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M17.56 21a1 1 0 0 1-.46-.11L12 18.22l-5.1 2.67a1 1 0 0 1-1.45-1.06l1-5.63-4.12-4a1 1 0 0 1-.25-1 1 1 0 0 1 .81-.68l5.7-.83 2.51-5.13a1 1 0 0 1 1.8 0l2.54 5.12 5.7.83a1 1 0 0 1 .81.68 1 1 0 0 1-.25 1l-4.12 4 1 5.63a1 1 0 0 1-.4 1 1 1 0 0 1-.62.18z"/></g></g>',"stop-circle":'<g data-name="Layer 2"><g data-name="stop-circle"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm4 12.75A1.25 1.25 0 0 1 14.75 16h-5.5A1.25 1.25 0 0 1 8 14.75v-5.5A1.25 1.25 0 0 1 9.25 8h5.5A1.25 1.25 0 0 1 16 9.25z"/><rect x="10" y="10" width="4" height="4"/></g></g>',sun:'<g data-name="Layer 2"><g data-name="sun"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M12 6a1 1 0 0 0 1-1V3a1 1 0 0 0-2 0v2a1 1 0 0 0 1 1z"/><path d="M21 11h-2a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2z"/><path d="M6 12a1 1 0 0 0-1-1H3a1 1 0 0 0 0 2h2a1 1 0 0 0 1-1z"/><path d="M6.22 5a1 1 0 0 0-1.39 1.47l1.44 1.39a1 1 0 0 0 .73.28 1 1 0 0 0 .72-.31 1 1 0 0 0 0-1.41z"/><path d="M17 8.14a1 1 0 0 0 .69-.28l1.44-1.39A1 1 0 0 0 17.78 5l-1.44 1.42a1 1 0 0 0 0 1.41 1 1 0 0 0 .66.31z"/><path d="M12 18a1 1 0 0 0-1 1v2a1 1 0 0 0 2 0v-2a1 1 0 0 0-1-1z"/><path d="M17.73 16.14a1 1 0 0 0-1.39 1.44L17.78 19a1 1 0 0 0 .69.28 1 1 0 0 0 .72-.3 1 1 0 0 0 0-1.42z"/><path d="M6.27 16.14l-1.44 1.39a1 1 0 0 0 0 1.42 1 1 0 0 0 .72.3 1 1 0 0 0 .67-.25l1.44-1.39a1 1 0 0 0-1.39-1.44z"/><path d="M12 8a4 4 0 1 0 4 4 4 4 0 0 0-4-4z"/></g></g>',swap:'<g data-name="Layer 2"><g data-name="swap"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M4 9h13l-1.6 1.2a1 1 0 0 0-.2 1.4 1 1 0 0 0 .8.4 1 1 0 0 0 .6-.2l4-3a1 1 0 0 0 0-1.59l-3.86-3a1 1 0 0 0-1.23 1.58L17.08 7H4a1 1 0 0 0 0 2z"/><path d="M20 16H7l1.6-1.2a1 1 0 0 0-1.2-1.6l-4 3a1 1 0 0 0 0 1.59l3.86 3a1 1 0 0 0 .61.21 1 1 0 0 0 .79-.39 1 1 0 0 0-.17-1.4L6.92 18H20a1 1 0 0 0 0-2z"/></g></g>',sync:'<g data-name="Layer 2"><g data-name="sync"><rect width="24" height="24" opacity="0"/><path d="M21.66 10.37a.62.62 0 0 0 .07-.19l.75-4a1 1 0 0 0-2-.36l-.37 2a9.22 9.22 0 0 0-16.58.84 1 1 0 0 0 .55 1.3 1 1 0 0 0 1.31-.55A7.08 7.08 0 0 1 12.07 5a7.17 7.17 0 0 1 6.24 3.58l-1.65-.27a1 1 0 1 0-.32 2l4.25.71h.16a.93.93 0 0 0 .34-.06.33.33 0 0 0 .1-.06.78.78 0 0 0 .2-.11l.08-.1a1.07 1.07 0 0 0 .14-.16.58.58 0 0 0 .05-.16z"/><path d="M19.88 14.07a1 1 0 0 0-1.31.56A7.08 7.08 0 0 1 11.93 19a7.17 7.17 0 0 1-6.24-3.58l1.65.27h.16a1 1 0 0 0 .16-2L3.41 13a.91.91 0 0 0-.33 0H3a1.15 1.15 0 0 0-.32.14 1 1 0 0 0-.18.18l-.09.1a.84.84 0 0 0-.07.19.44.44 0 0 0-.07.17l-.75 4a1 1 0 0 0 .8 1.22h.18a1 1 0 0 0 1-.82l.37-2a9.22 9.22 0 0 0 16.58-.83 1 1 0 0 0-.57-1.28z"/></g></g>',text:'<g data-name="Layer 2"><g data-name="text"><rect width="24" height="24" opacity="0"/><path d="M20 4H4a1 1 0 0 0-1 1v3a1 1 0 0 0 2 0V6h6v13H9a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2h-2V6h6v2a1 1 0 0 0 2 0V5a1 1 0 0 0-1-1z"/></g></g>',"thermometer-minus":'<g data-name="Layer 2"><g data-name="thermometer-minus"><rect width="24" height="24" opacity="0"/><rect x="2" y="5" width="6" height="2" rx="1" ry="1"/><path d="M14 22a5 5 0 0 1-3-9V5a3 3 0 0 1 3-3 3 3 0 0 1 3 3v8a5 5 0 0 1-3 9zm1-12.46V5a.93.93 0 0 0-.29-.69A1 1 0 0 0 14 4a1 1 0 0 0-1 1v4.54z"/></g></g>',"thermometer-plus":'<g data-name="Layer 2"><g data-name="thermometer-plus"><rect width="24" height="24" opacity="0"/><rect x="2" y="5" width="6" height="2" rx="1" ry="1"/><rect x="2" y="5" width="6" height="2" rx="1" ry="1" transform="rotate(-90 5 6)"/><path d="M14 22a5 5 0 0 1-3-9V5a3 3 0 0 1 3-3 3 3 0 0 1 3 3v8a5 5 0 0 1-3 9zm1-12.46V5a.93.93 0 0 0-.29-.69A1 1 0 0 0 14 4a1 1 0 0 0-1 1v4.54z"/></g></g>',thermometer:'<g data-name="Layer 2"><g data-name="thermometer"><rect width="24" height="24" opacity="0"/><path d="M12 22a5 5 0 0 1-3-9V5a3 3 0 0 1 3-3 3 3 0 0 1 3 3v8a5 5 0 0 1-3 9zm1-12.46V5a.93.93 0 0 0-.29-.69A1 1 0 0 0 12 4a1 1 0 0 0-1 1v4.54z"/></g></g>',"toggle-left":'<g data-name="Layer 2"><g data-name="toggle-left"><rect x=".02" y=".02" width="23.97" height="23.97" transform="rotate(179.92 12.002 11.998)" opacity="0"/><path d="M15 5H9a7 7 0 0 0 0 14h6a7 7 0 0 0 0-14zM9 15a3 3 0 1 1 3-3 3 3 0 0 1-3 3z"/><path d="M9 11a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"/></g></g>',"toggle-right":'<g data-name="Layer 2"><g data-name="toggle-right"><rect width="24" height="24" opacity="0"/><circle cx="15" cy="12" r="1"/><path d="M15 5H9a7 7 0 0 0 0 14h6a7 7 0 0 0 0-14zm0 10a3 3 0 1 1 3-3 3 3 0 0 1-3 3z"/></g></g>',"trash-2":'<g data-name="Layer 2"><g data-name="trash-2"><rect width="24" height="24" opacity="0"/><path d="M21 6h-5V4.33A2.42 2.42 0 0 0 13.5 2h-3A2.42 2.42 0 0 0 8 4.33V6H3a1 1 0 0 0 0 2h1v11a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V8h1a1 1 0 0 0 0-2zM10 16a1 1 0 0 1-2 0v-4a1 1 0 0 1 2 0zm0-11.67c0-.16.21-.33.5-.33h3c.29 0 .5.17.5.33V6h-4zM16 16a1 1 0 0 1-2 0v-4a1 1 0 0 1 2 0z"/></g></g>',trash:'<g data-name="Layer 2"><g data-name="trash"><rect width="24" height="24" opacity="0"/><path d="M21 6h-5V4.33A2.42 2.42 0 0 0 13.5 2h-3A2.42 2.42 0 0 0 8 4.33V6H3a1 1 0 0 0 0 2h1v11a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V8h1a1 1 0 0 0 0-2zM10 4.33c0-.16.21-.33.5-.33h3c.29 0 .5.17.5.33V6h-4z"/></g></g>',"trending-down":'<g data-name="Layer 2"><g data-name="trending-down"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M21 12a1 1 0 0 0-2 0v2.3l-4.24-5a1 1 0 0 0-1.27-.21L9.22 11.7 4.77 6.36a1 1 0 1 0-1.54 1.28l5 6a1 1 0 0 0 1.28.22l4.28-2.57 4 4.71H15a1 1 0 0 0 0 2h5a1.1 1.1 0 0 0 .36-.07l.14-.08a1.19 1.19 0 0 0 .15-.09.75.75 0 0 0 .14-.17 1.1 1.1 0 0 0 .09-.14.64.64 0 0 0 .05-.17A.78.78 0 0 0 21 17z"/></g></g>',"trending-up":'<g data-name="Layer 2"><g data-name="trending-up"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M21 7a.78.78 0 0 0 0-.21.64.64 0 0 0-.05-.17 1.1 1.1 0 0 0-.09-.14.75.75 0 0 0-.14-.17l-.12-.07a.69.69 0 0 0-.19-.1h-.2A.7.7 0 0 0 20 6h-5a1 1 0 0 0 0 2h2.83l-4 4.71-4.32-2.57a1 1 0 0 0-1.28.22l-5 6a1 1 0 0 0 .13 1.41A1 1 0 0 0 4 18a1 1 0 0 0 .77-.36l4.45-5.34 4.27 2.56a1 1 0 0 0 1.27-.21L19 9.7V12a1 1 0 0 0 2 0V7z"/></g></g>',tv:'<g data-name="Layer 2"><g data-name="tv"><rect width="24" height="24" opacity="0"/><path d="M18 6h-3.59l2.3-2.29a1 1 0 1 0-1.42-1.42L12 5.59l-3.29-3.3a1 1 0 1 0-1.42 1.42L9.59 6H6a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3zm1 13a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-7a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1z"/></g></g>',twitter:'<g data-name="Layer 2"><g data-name="twitter"><polyline points="0 0 24 0 24 24 0 24" opacity="0"/><path d="M8.08 20A11.07 11.07 0 0 0 19.52 9 8.09 8.09 0 0 0 21 6.16a.44.44 0 0 0-.62-.51 1.88 1.88 0 0 1-2.16-.38 3.89 3.89 0 0 0-5.58-.17A4.13 4.13 0 0 0 11.49 9C8.14 9.2 5.84 7.61 4 5.43a.43.43 0 0 0-.75.24 9.68 9.68 0 0 0 4.6 10.05A6.73 6.73 0 0 1 3.38 18a.45.45 0 0 0-.14.84A11 11 0 0 0 8.08 20"/></g></g>',umbrella:'<g data-name="Layer 2"><g data-name="umbrella"><rect width="24" height="24" opacity="0"/><path d="M12 2A10 10 0 0 0 2 12a1 1 0 0 0 1 1h8v6a3 3 0 0 0 6 0 1 1 0 0 0-2 0 1 1 0 0 1-2 0v-6h8a1 1 0 0 0 1-1A10 10 0 0 0 12 2z"/></g></g>',undo:'<g data-name="Layer 2"><g data-name="undo"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M20.22 21a1 1 0 0 1-1-.76 8.91 8.91 0 0 0-7.8-6.69v1.12a1.78 1.78 0 0 1-1.09 1.64A2 2 0 0 1 8.18 16l-5.06-4.41a1.76 1.76 0 0 1 0-2.68l5.06-4.42a2 2 0 0 1 2.18-.3 1.78 1.78 0 0 1 1.09 1.64V7A10.89 10.89 0 0 1 21.5 17.75a10.29 10.29 0 0 1-.31 2.49 1 1 0 0 1-1 .76z"/></g></g>',unlock:'<g data-name="Layer 2"><g data-name="unlock"><rect width="24" height="24" opacity="0"/><circle cx="12" cy="15" r="1"/><path d="M17 8h-7V6a2 2 0 0 1 4 0 1 1 0 0 0 2 0 4 4 0 0 0-8 0v2H7a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3v-8a3 3 0 0 0-3-3zm-5 10a3 3 0 1 1 3-3 3 3 0 0 1-3 3z"/></g></g>',upload:'<g data-name="Layer 2"><g data-name="upload"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><rect x="4" y="4" width="16" height="2" rx="1" ry="1" transform="rotate(180 12 5)"/><rect x="17" y="5" width="4" height="2" rx="1" ry="1" transform="rotate(90 19 6)"/><rect x="3" y="5" width="4" height="2" rx="1" ry="1" transform="rotate(90 5 6)"/><path d="M8 14a1 1 0 0 1-.8-.4 1 1 0 0 1 .2-1.4l4-3a1 1 0 0 1 1.18 0l4 2.82a1 1 0 0 1 .24 1.39 1 1 0 0 1-1.4.24L12 11.24 8.6 13.8a1 1 0 0 1-.6.2z"/><path d="M12 21a1 1 0 0 1-1-1v-8a1 1 0 0 1 2 0v8a1 1 0 0 1-1 1z"/></g></g>',"video-off":'<g data-name="Layer 2"><g data-name="video-off"><rect width="24" height="24" opacity="0"/><path d="M14.22 17.05L4.88 7.71 3.12 6 3 5.8A3 3 0 0 0 2 8v8a3 3 0 0 0 3 3h9a2.94 2.94 0 0 0 1.66-.51z"/><path d="M21 7.15a1.7 1.7 0 0 0-1.85.3l-2.15 2V8a3 3 0 0 0-3-3H7.83l1.29 1.29 6.59 6.59 2 2 2 2a1.73 1.73 0 0 0 .6.11 1.68 1.68 0 0 0 .69-.15 1.6 1.6 0 0 0 1-1.48V8.63a1.6 1.6 0 0 0-1-1.48z"/><path d="M17 15.59l-2-2L8.41 7l-2-2-1.7-1.71a1 1 0 0 0-1.42 1.42l.54.53L5.59 7l9.34 9.34 1.46 1.46 2.9 2.91a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g>',video:'<g data-name="Layer 2"><g data-name="video"><rect width="24" height="24" opacity="0"/><path d="M21 7.15a1.7 1.7 0 0 0-1.85.3l-2.15 2V8a3 3 0 0 0-3-3H5a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h9a3 3 0 0 0 3-3v-1.45l2.16 2a1.74 1.74 0 0 0 1.16.45 1.68 1.68 0 0 0 .69-.15 1.6 1.6 0 0 0 1-1.48V8.63A1.6 1.6 0 0 0 21 7.15z"/></g></g>',"volume-down":'<g data-name="Layer 2"><g data-name="volume-down"><rect width="24" height="24" opacity="0"/><path d="M20.78 8.37a1 1 0 1 0-1.56 1.26 4 4 0 0 1 0 4.74A1 1 0 0 0 20 16a1 1 0 0 0 .78-.37 6 6 0 0 0 0-7.26z"/><path d="M16.47 3.12a1 1 0 0 0-1 0L9 7.57H4a1 1 0 0 0-1 1v6.86a1 1 0 0 0 1 1h5l6.41 4.4A1.06 1.06 0 0 0 16 21a1 1 0 0 0 1-1V4a1 1 0 0 0-.53-.88z"/></g></g>',"volume-mute":'<g data-name="Layer 2"><g data-name="volume-mute"><rect width="24" height="24" opacity="0"/><path d="M17 21a1.06 1.06 0 0 1-.57-.17L10 16.43H5a1 1 0 0 1-1-1V8.57a1 1 0 0 1 1-1h5l6.41-4.4A1 1 0 0 1 18 4v16a1 1 0 0 1-1 1z"/></g></g>',"volume-off":'<g data-name="Layer 2"><g data-name="volume-off"><rect width="24" height="24" opacity="0"/><path d="M16.91 14.08l1.44 1.44a6 6 0 0 0-.07-7.15 1 1 0 1 0-1.56 1.26 4 4 0 0 1 .19 4.45z"/><path d="M21 12a6.51 6.51 0 0 1-1.78 4.39l1.42 1.42A8.53 8.53 0 0 0 23 12a8.75 8.75 0 0 0-3.36-6.77 1 1 0 1 0-1.28 1.54A6.8 6.8 0 0 1 21 12z"/><path d="M15 12.17V4a1 1 0 0 0-1.57-.83L9 6.2z"/><path d="M4.74 7.57H2a1 1 0 0 0-1 1v6.86a1 1 0 0 0 1 1h5l6.41 4.4A1.06 1.06 0 0 0 14 21a1 1 0 0 0 1-1v-2.17z"/><path d="M4.71 3.29a1 1 0 0 0-1.42 1.42l16 16a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g>',"volume-up":'<g data-name="Layer 2"><g data-name="volume-up"><rect width="24" height="24" opacity="0"/><path d="M18.28 8.37a1 1 0 1 0-1.56 1.26 4 4 0 0 1 0 4.74A1 1 0 0 0 17.5 16a1 1 0 0 0 .78-.37 6 6 0 0 0 0-7.26z"/><path d="M19.64 5.23a1 1 0 1 0-1.28 1.54A6.8 6.8 0 0 1 21 12a6.8 6.8 0 0 1-2.64 5.23 1 1 0 0 0-.13 1.41A1 1 0 0 0 19 19a1 1 0 0 0 .64-.23A8.75 8.75 0 0 0 23 12a8.75 8.75 0 0 0-3.36-6.77z"/><path d="M14.47 3.12a1 1 0 0 0-1 0L7 7.57H2a1 1 0 0 0-1 1v6.86a1 1 0 0 0 1 1h5l6.41 4.4A1.06 1.06 0 0 0 14 21a1 1 0 0 0 1-1V4a1 1 0 0 0-.53-.88z"/></g></g>',"wifi-off":'<g data-name="Layer 2"><g data-name="wifi-off"><rect width="24" height="24" opacity="0"/><circle cx="12" cy="19" r="1"/><path d="M12.44 11l-1.9-1.89-2.46-2.44-1.55-1.55-1.82-1.83a1 1 0 0 0-1.42 1.42l1.38 1.37 1.46 1.46 2.23 2.24 1.55 1.54 2.74 2.74 2.79 2.8 3.85 3.85a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/><path d="M21.72 7.93A13.93 13.93 0 0 0 12 4a14.1 14.1 0 0 0-4.44.73l1.62 1.62a11.89 11.89 0 0 1 11.16 3 1 1 0 0 0 .69.28 1 1 0 0 0 .72-.31 1 1 0 0 0-.03-1.39z"/><path d="M3.82 6.65a14.32 14.32 0 0 0-1.54 1.28 1 1 0 0 0 1.38 1.44 13.09 13.09 0 0 1 1.6-1.29z"/><path d="M17 13.14a1 1 0 0 0 .71.3 1 1 0 0 0 .72-1.69A9 9 0 0 0 12 9h-.16l2.35 2.35A7 7 0 0 1 17 13.14z"/><path d="M7.43 10.26a8.8 8.8 0 0 0-1.9 1.49A1 1 0 0 0 7 13.14a7.3 7.3 0 0 1 2-1.41z"/><path d="M8.53 15.4a1 1 0 1 0 1.39 1.44 3.06 3.06 0 0 1 3.84-.25l-2.52-2.52a5 5 0 0 0-2.71 1.33z"/></g></g>',wifi:'<g data-name="Layer 2"><g data-name="wifi"><rect width="24" height="24" opacity="0"/><circle cx="12" cy="19" r="1"/><path d="M12 14a5 5 0 0 0-3.47 1.4 1 1 0 1 0 1.39 1.44 3.08 3.08 0 0 1 4.16 0 1 1 0 1 0 1.39-1.44A5 5 0 0 0 12 14z"/><path d="M12 9a9 9 0 0 0-6.47 2.75A1 1 0 0 0 7 13.14a7 7 0 0 1 10.08 0 1 1 0 0 0 .71.3 1 1 0 0 0 .72-1.69A9 9 0 0 0 12 9z"/><path d="M21.72 7.93a14 14 0 0 0-19.44 0 1 1 0 0 0 1.38 1.44 12 12 0 0 1 16.68 0 1 1 0 0 0 .69.28 1 1 0 0 0 .72-.31 1 1 0 0 0-.03-1.41z"/></g></g>',"activity-outline":'<g data-name="Layer 2"><g data-name="activity"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M14.33 20h-.21a2 2 0 0 1-1.76-1.58L9.68 6l-2.76 6.4A1 1 0 0 1 6 13H3a1 1 0 0 1 0-2h2.34l2.51-5.79a2 2 0 0 1 3.79.38L14.32 18l2.76-6.38A1 1 0 0 1 18 11h3a1 1 0 0 1 0 2h-2.34l-2.51 5.79A2 2 0 0 1 14.33 20z"/></g></g>',"alert-circle-outline":'<g data-name="Layer 2"><g data-name="alert-circle"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><circle cx="12" cy="16" r="1"/><path d="M12 7a1 1 0 0 0-1 1v5a1 1 0 0 0 2 0V8a1 1 0 0 0-1-1z"/></g></g>',"alert-triangle-outline":'<g data-name="Layer 2"><g data-name="alert-triangle"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M22.56 16.3L14.89 3.58a3.43 3.43 0 0 0-5.78 0L1.44 16.3a3 3 0 0 0-.05 3A3.37 3.37 0 0 0 4.33 21h15.34a3.37 3.37 0 0 0 2.94-1.66 3 3 0 0 0-.05-3.04zm-1.7 2.05a1.31 1.31 0 0 1-1.19.65H4.33a1.31 1.31 0 0 1-1.19-.65 1 1 0 0 1 0-1l7.68-12.73a1.48 1.48 0 0 1 2.36 0l7.67 12.72a1 1 0 0 1 .01 1.01z"/><circle cx="12" cy="16" r="1"/><path d="M12 8a1 1 0 0 0-1 1v4a1 1 0 0 0 2 0V9a1 1 0 0 0-1-1z"/></g></g>',"archive-outline":'<g data-name="Layer 2"><g data-name="archive"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M21 6a3 3 0 0 0-3-3H6a3 3 0 0 0-2 5.22V18a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V8.22A3 3 0 0 0 21 6zM6 5h12a1 1 0 0 1 0 2H6a1 1 0 0 1 0-2zm12 13a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V9h12z"/><rect x="9" y="12" width="6" height="2" rx=".87" ry=".87"/></g></g>',"arrow-back-outline":'<g data-name="Layer 2"><g data-name="arrow-back"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M19 11H7.14l3.63-4.36a1 1 0 1 0-1.54-1.28l-5 6a1.19 1.19 0 0 0-.09.15c0 .05 0 .08-.07.13A1 1 0 0 0 4 12a1 1 0 0 0 .07.36c0 .05 0 .08.07.13a1.19 1.19 0 0 0 .09.15l5 6A1 1 0 0 0 10 19a1 1 0 0 0 .64-.23 1 1 0 0 0 .13-1.41L7.14 13H19a1 1 0 0 0 0-2z"/></g></g>',"arrow-circle-down-outline":'<g data-name="Layer 2"><g data-name="arrow-circle-down"><rect width="24" height="24" opacity="0"/><path d="M14.31 12.41L13 13.66V8a1 1 0 0 0-2 0v5.59l-1.29-1.3a1 1 0 0 0-1.42 1.42l3 3a1 1 0 0 0 .33.21.94.94 0 0 0 .76 0 .54.54 0 0 0 .16-.1.49.49 0 0 0 .15-.1l3-2.86a1 1 0 0 0-1.38-1.45z"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/></g></g>',"arrow-circle-left-outline":'<g data-name="Layer 2"><g data-name="arrow-circle-left"><rect width="24" height="24" opacity="0"/><path d="M16 11h-5.66l1.25-1.31a1 1 0 0 0-1.45-1.38l-2.86 3a1 1 0 0 0-.09.13.72.72 0 0 0-.11.19.88.88 0 0 0-.06.28L7 12a1 1 0 0 0 .08.38 1 1 0 0 0 .21.32l3 3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42L10.41 13H16a1 1 0 0 0 0-2z"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/></g></g>',"arrow-circle-right-outline":'<g data-name="Layer 2"><g data-name="arrow-circle-right"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M17 12v-.09a.88.88 0 0 0-.06-.28.72.72 0 0 0-.11-.19 1 1 0 0 0-.09-.13l-2.86-3a1 1 0 0 0-1.45 1.38L13.66 11H8a1 1 0 0 0 0 2h5.59l-1.3 1.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l3-3a1 1 0 0 0 .21-.32A1 1 0 0 0 17 12z"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/></g></g>',"arrow-circle-up-outline":'<g data-name="Layer 2"><g data-name="arrow-circle-up"><rect width="24" height="24" opacity="0"/><path d="M12.71 7.29a1 1 0 0 0-.32-.21A1 1 0 0 0 12 7h-.1a.82.82 0 0 0-.27.06.72.72 0 0 0-.19.11 1 1 0 0 0-.13.09l-3 2.86a1 1 0 0 0 1.38 1.45L11 10.34V16a1 1 0 0 0 2 0v-5.59l1.29 1.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/></g></g>',"arrow-down-outline":'<g data-name="Layer 2"><g data-name="arrow-down"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M12 17a1.72 1.72 0 0 1-1.33-.64l-4.21-5.1a2.1 2.1 0 0 1-.26-2.21A1.76 1.76 0 0 1 7.79 8h8.42a1.76 1.76 0 0 1 1.59 1.05 2.1 2.1 0 0 1-.26 2.21l-4.21 5.1A1.72 1.72 0 0 1 12 17zm-3.91-7L12 14.82 16 10z"/></g></g>',"arrow-downward-outline":'<g data-name="Layer 2"><g data-name="arrow-downward"><rect width="24" height="24" opacity="0"/><path d="M18.77 13.36a1 1 0 0 0-1.41-.13L13 16.86V5a1 1 0 0 0-2 0v11.86l-4.36-3.63a1 1 0 1 0-1.28 1.54l6 5 .15.09.13.07a1 1 0 0 0 .72 0l.13-.07.15-.09 6-5a1 1 0 0 0 .13-1.41z"/></g></g>',"arrow-forward-outline":'<g data-name="Layer 2"><g data-name="arrow-forward"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M5 13h11.86l-3.63 4.36a1 1 0 0 0 1.54 1.28l5-6a1.19 1.19 0 0 0 .09-.15c0-.05.05-.08.07-.13A1 1 0 0 0 20 12a1 1 0 0 0-.07-.36c0-.05-.05-.08-.07-.13a1.19 1.19 0 0 0-.09-.15l-5-6A1 1 0 0 0 14 5a1 1 0 0 0-.64.23 1 1 0 0 0-.13 1.41L16.86 11H5a1 1 0 0 0 0 2z"/></g></g>',"arrow-ios-back-outline":'<g data-name="Layer 2"><g data-name="arrow-ios-back"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M13.83 19a1 1 0 0 1-.78-.37l-4.83-6a1 1 0 0 1 0-1.27l5-6a1 1 0 0 1 1.54 1.28L10.29 12l4.32 5.36a1 1 0 0 1-.78 1.64z"/></g></g>',"arrow-ios-downward-outline":'<g data-name="Layer 2"><g data-name="arrow-ios-downward"><rect width="24" height="24" opacity="0"/><path d="M12 16a1 1 0 0 1-.64-.23l-6-5a1 1 0 1 1 1.28-1.54L12 13.71l5.36-4.32a1 1 0 0 1 1.41.15 1 1 0 0 1-.14 1.46l-6 4.83A1 1 0 0 1 12 16z"/></g></g>',"arrow-ios-forward-outline":'<g data-name="Layer 2"><g data-name="arrow-ios-forward"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M10 19a1 1 0 0 1-.64-.23 1 1 0 0 1-.13-1.41L13.71 12 9.39 6.63a1 1 0 0 1 .15-1.41 1 1 0 0 1 1.46.15l4.83 6a1 1 0 0 1 0 1.27l-5 6A1 1 0 0 1 10 19z"/></g></g>',"arrow-ios-upward-outline":'<g data-name="Layer 2"><g data-name="arrow-ios-upward"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18 15a1 1 0 0 1-.64-.23L12 10.29l-5.37 4.32a1 1 0 0 1-1.41-.15 1 1 0 0 1 .15-1.41l6-4.83a1 1 0 0 1 1.27 0l6 5a1 1 0 0 1 .13 1.41A1 1 0 0 1 18 15z"/></g></g>',"arrow-left-outline":'<g data-name="Layer 2"><g data-name="arrow-left"><rect width="24" height="24" opacity="0"/><path d="M13.54 18a2.06 2.06 0 0 1-1.3-.46l-5.1-4.21a1.7 1.7 0 0 1 0-2.66l5.1-4.21a2.1 2.1 0 0 1 2.21-.26 1.76 1.76 0 0 1 1.05 1.59v8.42a1.76 1.76 0 0 1-1.05 1.59 2.23 2.23 0 0 1-.91.2zm-4.86-6l4.82 4V8.09z"/></g></g>',"arrow-right-outline":'<g data-name="Layer 2"><g data-name="arrow-right"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M10.46 18a2.23 2.23 0 0 1-.91-.2 1.76 1.76 0 0 1-1.05-1.59V7.79A1.76 1.76 0 0 1 9.55 6.2a2.1 2.1 0 0 1 2.21.26l5.1 4.21a1.7 1.7 0 0 1 0 2.66l-5.1 4.21a2.06 2.06 0 0 1-1.3.46zm0-10v7.9l4.86-3.9z"/></g></g>',"arrow-up-outline":'<g data-name="Layer 2"><g data-name="arrow-up"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M16.21 16H7.79a1.76 1.76 0 0 1-1.59-1 2.1 2.1 0 0 1 .26-2.21l4.21-5.1a1.76 1.76 0 0 1 2.66 0l4.21 5.1A2.1 2.1 0 0 1 17.8 15a1.76 1.76 0 0 1-1.59 1zM8 14h7.9L12 9.18z"/></g></g>',"arrow-upward-outline":'<g data-name="Layer 2"><g data-name="arrow-upward"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M5.23 10.64a1 1 0 0 0 1.41.13L11 7.14V19a1 1 0 0 0 2 0V7.14l4.36 3.63a1 1 0 1 0 1.28-1.54l-6-5-.15-.09-.13-.07a1 1 0 0 0-.72 0l-.13.07-.15.09-6 5a1 1 0 0 0-.13 1.41z"/></g></g>',"arrowhead-down-outline":'<g data-name="Layer 2"><g data-name="arrowhead-down"><rect width="24" height="24" opacity="0"/><path d="M17.37 12.39L12 16.71l-5.36-4.48a1 1 0 1 0-1.28 1.54l6 5a1 1 0 0 0 1.27 0l6-4.83a1 1 0 0 0 .15-1.41 1 1 0 0 0-1.41-.14z"/><path d="M11.36 11.77a1 1 0 0 0 1.27 0l6-4.83a1 1 0 0 0 .15-1.41 1 1 0 0 0-1.41-.15L12 9.71 6.64 5.23a1 1 0 0 0-1.28 1.54z"/></g></g>',"arrowhead-left-outline":'<g data-name="Layer 2"><g data-name="arrowhead-left"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M11.64 5.23a1 1 0 0 0-1.41.13l-5 6a1 1 0 0 0 0 1.27l4.83 6a1 1 0 0 0 .78.37 1 1 0 0 0 .78-1.63L7.29 12l4.48-5.37a1 1 0 0 0-.13-1.4z"/><path d="M14.29 12l4.48-5.37a1 1 0 0 0-1.54-1.28l-5 6a1 1 0 0 0 0 1.27l4.83 6a1 1 0 0 0 .78.37 1 1 0 0 0 .78-1.63z"/></g></g>',"arrowhead-right-outline":'<g data-name="Layer 2"><g data-name="arrowhead-right"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M18.78 11.37l-4.78-6a1 1 0 0 0-1.41-.15 1 1 0 0 0-.15 1.41L16.71 12l-4.48 5.37a1 1 0 0 0 .13 1.41A1 1 0 0 0 13 19a1 1 0 0 0 .77-.36l5-6a1 1 0 0 0 .01-1.27z"/><path d="M7 5.37a1 1 0 0 0-1.61 1.26L9.71 12l-4.48 5.36a1 1 0 0 0 .13 1.41A1 1 0 0 0 6 19a1 1 0 0 0 .77-.36l5-6a1 1 0 0 0 0-1.27z"/></g></g>',"arrowhead-up-outline":'<g data-name="Layer 2"><g data-name="arrowhead-up"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M6.63 11.61L12 7.29l5.37 4.48A1 1 0 0 0 18 12a1 1 0 0 0 .77-.36 1 1 0 0 0-.13-1.41l-6-5a1 1 0 0 0-1.27 0l-6 4.83a1 1 0 0 0-.15 1.41 1 1 0 0 0 1.41.14z"/><path d="M12.64 12.23a1 1 0 0 0-1.27 0l-6 4.83a1 1 0 0 0-.15 1.41 1 1 0 0 0 1.41.15L12 14.29l5.37 4.48A1 1 0 0 0 18 19a1 1 0 0 0 .77-.36 1 1 0 0 0-.13-1.41z"/></g></g>',"at-outline":'<g data-name="Layer 2"><g data-name="at"><rect width="24" height="24" opacity="0"/><path d="M13 2a10 10 0 0 0-5 19.1 10.15 10.15 0 0 0 4 .9 10 10 0 0 0 6.08-2.06 1 1 0 0 0 .19-1.4 1 1 0 0 0-1.41-.19A8 8 0 1 1 12.77 4 8.17 8.17 0 0 1 20 12.22v.68a1.71 1.71 0 0 1-1.78 1.7 1.82 1.82 0 0 1-1.62-1.88V8.4a1 1 0 0 0-1-1 1 1 0 0 0-1 .87 5 5 0 0 0-3.44-1.36A5.09 5.09 0 1 0 15.31 15a3.6 3.6 0 0 0 5.55.61A3.67 3.67 0 0 0 22 12.9v-.68A10.2 10.2 0 0 0 13 2zm-1.82 13.09A3.09 3.09 0 1 1 14.27 12a3.1 3.1 0 0 1-3.09 3.09z"/></g></g>',"attach-2-outline":'<g data-name="Layer 2"><g data-name="attach-2"><rect width="24" height="24" opacity="0"/><path d="M12 22a5.86 5.86 0 0 1-6-5.7V6.13A4.24 4.24 0 0 1 10.33 2a4.24 4.24 0 0 1 4.34 4.13v10.18a2.67 2.67 0 0 1-5.33 0V6.92a1 1 0 0 1 1-1 1 1 0 0 1 1 1v9.39a.67.67 0 0 0 1.33 0V6.13A2.25 2.25 0 0 0 10.33 4 2.25 2.25 0 0 0 8 6.13V16.3a3.86 3.86 0 0 0 4 3.7 3.86 3.86 0 0 0 4-3.7V6.13a1 1 0 1 1 2 0V16.3a5.86 5.86 0 0 1-6 5.7z"/></g></g>',"attach-outline":'<g data-name="Layer 2"><g data-name="attach"><rect width="24" height="24" opacity="0"/><path d="M9.29 21a6.23 6.23 0 0 1-4.43-1.88 6 6 0 0 1-.22-8.49L12 3.2A4.11 4.11 0 0 1 15 2a4.48 4.48 0 0 1 3.19 1.35 4.36 4.36 0 0 1 .15 6.13l-7.4 7.43a2.54 2.54 0 0 1-1.81.75 2.72 2.72 0 0 1-1.95-.82 2.68 2.68 0 0 1-.08-3.77l6.83-6.86a1 1 0 0 1 1.37 1.41l-6.83 6.86a.68.68 0 0 0 .08.95.78.78 0 0 0 .53.23.56.56 0 0 0 .4-.16l7.39-7.43a2.36 2.36 0 0 0-.15-3.31 2.38 2.38 0 0 0-3.27-.15L6.06 12a4 4 0 0 0 .22 5.67 4.22 4.22 0 0 0 3 1.29 3.67 3.67 0 0 0 2.61-1.06l7.39-7.43a1 1 0 1 1 1.42 1.41l-7.39 7.43A5.65 5.65 0 0 1 9.29 21z"/></g></g>',"award-outline":'<g data-name="Layer 2"><g data-name="award"><rect width="24" height="24" opacity="0"/><path d="M19 20.75l-2.31-9A5.94 5.94 0 0 0 18 8 6 6 0 0 0 6 8a5.94 5.94 0 0 0 1.34 3.77L5 20.75a1 1 0 0 0 1.48 1.11l5.33-3.13 5.68 3.14A.91.91 0 0 0 18 22a1 1 0 0 0 1-1.25zM12 4a4 4 0 1 1-4 4 4 4 0 0 1 4-4zm.31 12.71a1 1 0 0 0-1 0l-3.75 2.2L9 13.21a5.94 5.94 0 0 0 5.92 0L16.45 19z"/></g></g>',"backspace-outline":'<g data-name="Layer 2"><g data-name="backspace"><rect width="24" height="24" opacity="0"/><path d="M20.14 4h-9.77a3 3 0 0 0-2 .78l-.1.11-6 7.48a1 1 0 0 0 .11 1.37l6 5.48a3 3 0 0 0 2 .78h9.77A1.84 1.84 0 0 0 22 18.18V5.82A1.84 1.84 0 0 0 20.14 4zM20 18h-9.63a1 1 0 0 1-.67-.26l-5.33-4.85 5.38-6.67a1 1 0 0 1 .62-.22H20z"/><path d="M11.29 14.71a1 1 0 0 0 1.42 0l1.29-1.3 1.29 1.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42L15.41 12l1.3-1.29a1 1 0 0 0-1.42-1.42L14 10.59l-1.29-1.3a1 1 0 0 0-1.42 1.42l1.3 1.29-1.3 1.29a1 1 0 0 0 0 1.42z"/></g></g>',"bar-chart-2-outline":'<g data-name="Layer 2"><g data-name="bar-chart-2"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M12 8a1 1 0 0 0-1 1v11a1 1 0 0 0 2 0V9a1 1 0 0 0-1-1z"/><path d="M19 4a1 1 0 0 0-1 1v15a1 1 0 0 0 2 0V5a1 1 0 0 0-1-1z"/><path d="M5 12a1 1 0 0 0-1 1v7a1 1 0 0 0 2 0v-7a1 1 0 0 0-1-1z"/></g></g>',"bar-chart-outline":'<g data-name="Layer 2"><g data-name="bar-chart"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M12 4a1 1 0 0 0-1 1v15a1 1 0 0 0 2 0V5a1 1 0 0 0-1-1z"/><path d="M19 12a1 1 0 0 0-1 1v7a1 1 0 0 0 2 0v-7a1 1 0 0 0-1-1z"/><path d="M5 8a1 1 0 0 0-1 1v11a1 1 0 0 0 2 0V9a1 1 0 0 0-1-1z"/></g></g>',"battery-outline":'<g data-name="Layer 2"><g data-name="battery"><rect width="24" height="24" opacity="0"/><path d="M15.83 6H4.17A2.31 2.31 0 0 0 2 8.43v7.14A2.31 2.31 0 0 0 4.17 18h11.66A2.31 2.31 0 0 0 18 15.57V8.43A2.31 2.31 0 0 0 15.83 6zm.17 9.57a.52.52 0 0 1-.17.43H4.18a.5.5 0 0 1-.18-.43V8.43A.53.53 0 0 1 4.17 8h11.65a.5.5 0 0 1 .18.43z"/><path d="M21 9a1 1 0 0 0-1 1v4a1 1 0 0 0 2 0v-4a1 1 0 0 0-1-1z"/></g></g>',"behance-outline":'<g data-name="Layer 2"><g data-name="behance"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M10.52 11.78a1.4 1.4 0 0 0 1.12-1.43c0-1-.77-1.6-1.94-1.6H7v6.5h2.7c1.3-.05 2.3-.72 2.3-1.88a1.52 1.52 0 0 0-1.48-1.59zM8.26 9.67h1.15c.6 0 .95.32.95.85s-.38.89-1.25.89h-.85zm1 4.57h-1V12.3h1.23c.75 0 1.17.38 1.17 1s-.42.94-1.44.94z"/><path d="M14.75 10.3a2.11 2.11 0 0 0-2.28 2.25V13a2.15 2.15 0 0 0 2.34 2.31A2 2 0 0 0 17 13.75h-1.21a.9.9 0 0 1-1 .63 1.07 1.07 0 0 1-1.09-1.19v-.14H17v-.47a2.12 2.12 0 0 0-2.25-2.28zm1 2h-2.02a1 1 0 0 1 1-1.09 1 1 0 0 1 1 1.09z"/><rect x="13.25" y="9.2" width="3" height=".5"/></g></g>',"bell-off-outline":'<g data-name="Layer 2"><g data-name="bell-off"><rect width="24" height="24" opacity="0"/><path d="M8.9 5.17A4.67 4.67 0 0 1 12.64 4a4.86 4.86 0 0 1 4.08 4.9v4.5a1.92 1.92 0 0 0 .1.59l3.6 3.6a1.58 1.58 0 0 0 .45-.6 1.62 1.62 0 0 0-.35-1.78l-1.8-1.81V8.94a6.86 6.86 0 0 0-5.82-6.88 6.71 6.71 0 0 0-5.32 1.61 6.88 6.88 0 0 0-.58.54l1.47 1.43a4.79 4.79 0 0 1 .43-.47z"/><path d="M14 16.86l-.83-.86H5.51l1.18-1.18a2 2 0 0 0 .59-1.42v-3.29l-2-2a5.68 5.68 0 0 0 0 .59v4.7l-1.8 1.81A1.63 1.63 0 0 0 4.64 18H8v.34A3.84 3.84 0 0 0 12 22a3.88 3.88 0 0 0 4-3.22l-.83-.78zM12 20a1.88 1.88 0 0 1-2-1.66V18h4v.34A1.88 1.88 0 0 1 12 20z"/><path d="M20.71 19.29L19.41 18l-2-2-9.52-9.53L6.42 5 4.71 3.29a1 1 0 0 0-1.42 1.42L5.53 7l1.75 1.7 7.31 7.3.07.07L16 17.41l.59.59 2.7 2.71a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g>',"bell-outline":'<g data-name="Layer 2"><g data-name="bell"><rect width="24" height="24" opacity="0"/><path d="M20.52 15.21l-1.8-1.81V8.94a6.86 6.86 0 0 0-5.82-6.88 6.74 6.74 0 0 0-7.62 6.67v4.67l-1.8 1.81A1.64 1.64 0 0 0 4.64 18H8v.34A3.84 3.84 0 0 0 12 22a3.84 3.84 0 0 0 4-3.66V18h3.36a1.64 1.64 0 0 0 1.16-2.79zM14 18.34A1.88 1.88 0 0 1 12 20a1.88 1.88 0 0 1-2-1.66V18h4zM5.51 16l1.18-1.18a2 2 0 0 0 .59-1.42V8.73A4.73 4.73 0 0 1 8.9 5.17 4.67 4.67 0 0 1 12.64 4a4.86 4.86 0 0 1 4.08 4.9v4.5a2 2 0 0 0 .58 1.42L18.49 16z"/></g></g>',"bluetooth-outline":'<g data-name="Layer 2"><g data-name="bluetooth"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M13.63 12l4-3.79a1.14 1.14 0 0 0-.13-1.77l-4.67-3.23a1.17 1.17 0 0 0-1.21-.08 1.15 1.15 0 0 0-.62 1v6.2l-3.19-4a1 1 0 0 0-1.56 1.3L9.72 12l-3.5 4.43a1 1 0 0 0 .16 1.4A1 1 0 0 0 7 18a1 1 0 0 0 .78-.38L11 13.56v6.29A1.16 1.16 0 0 0 12.16 21a1.16 1.16 0 0 0 .67-.21l4.64-3.18a1.17 1.17 0 0 0 .49-.85 1.15 1.15 0 0 0-.34-.91zM13 5.76l2.5 1.73L13 9.85zm0 12.49v-4.07l2.47 2.38z"/></g></g>',"book-open-outline":'<g data-name="Layer 2"><g data-name="book-open"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M20.62 4.22a1 1 0 0 0-.84-.2L12 5.77 4.22 4A1 1 0 0 0 3 5v12.2a1 1 0 0 0 .78 1l8 1.8h.44l8-1.8a1 1 0 0 0 .78-1V5a1 1 0 0 0-.38-.78zM5 6.25l6 1.35v10.15L5 16.4zM19 16.4l-6 1.35V7.6l6-1.35z"/></g></g>',"book-outline":'<g data-name="Layer 2"><g data-name="book"><rect width="24" height="24" opacity="0"/><path d="M19 3H7a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zM7 5h11v10H7a3 3 0 0 0-1 .18V6a1 1 0 0 1 1-1zm0 14a1 1 0 0 1 0-2h11v2z"/></g></g>',"bookmark-outline":'<g data-name="Layer 2"><g data-name="bookmark"><rect width="24" height="24" opacity="0"/><path d="M6.09 21.06a1 1 0 0 1-1-1L4.94 5.4a2.26 2.26 0 0 1 2.18-2.35L16.71 3a2.27 2.27 0 0 1 2.23 2.31l.14 14.66a1 1 0 0 1-.49.87 1 1 0 0 1-1 0l-5.7-3.16-5.29 3.23a1.2 1.2 0 0 1-.51.15zm5.76-5.55a1.11 1.11 0 0 1 .5.12l4.71 2.61-.12-12.95c0-.2-.13-.34-.21-.33l-9.6.09c-.08 0-.19.13-.19.33l.12 12.9 4.28-2.63a1.06 1.06 0 0 1 .51-.14z"/></g></g>',"briefcase-outline":'<g data-name="Layer 2"><g data-name="briefcase"><rect width="24" height="24" opacity="0"/><path d="M19 7h-3V5.5A2.5 2.5 0 0 0 13.5 3h-3A2.5 2.5 0 0 0 8 5.5V7H5a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-8a3 3 0 0 0-3-3zm-4 2v10H9V9zm-5-3.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5V7h-4zM4 18v-8a1 1 0 0 1 1-1h2v10H5a1 1 0 0 1-1-1zm16 0a1 1 0 0 1-1 1h-2V9h2a1 1 0 0 1 1 1z"/></g></g>',"browser-outline":'<g data-name="Layer 2"><g data-name="browser"><rect width="24" height="24" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm1 15a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-7h14zM5 9V6a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3z"/><circle cx="8" cy="7.03" r="1"/><circle cx="12" cy="7.03" r="1"/></g></g>',"brush-outline":'<g data-name="Layer 2"><g data-name="brush"><rect width="24" height="24" opacity="0"/><path d="M20 6.83a2.76 2.76 0 0 0-.82-2 2.89 2.89 0 0 0-4 0l-6.6 6.6h-.22a4.42 4.42 0 0 0-4.3 4.31L4 19a1 1 0 0 0 .29.73A1.05 1.05 0 0 0 5 20l3.26-.06a4.42 4.42 0 0 0 4.31-4.3v-.23l6.61-6.6A2.74 2.74 0 0 0 20 6.83zM8.25 17.94L6 18v-2.23a2.4 2.4 0 0 1 2.4-2.36 2.15 2.15 0 0 1 2.15 2.19 2.4 2.4 0 0 1-2.3 2.34zm9.52-10.55l-5.87 5.87a4.55 4.55 0 0 0-.52-.64 3.94 3.94 0 0 0-.64-.52l5.87-5.86a.84.84 0 0 1 1.16 0 .81.81 0 0 1 .23.59.79.79 0 0 1-.23.56z"/></g></g>',"bulb-outline":'<g data-name="Layer 2"><g data-name="bulb"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M12 7a5 5 0 0 0-3 9v4a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-4a5 5 0 0 0-3-9zm1.5 7.59a1 1 0 0 0-.5.87V20h-2v-4.54a1 1 0 0 0-.5-.87A3 3 0 0 1 9 12a3 3 0 0 1 6 0 3 3 0 0 1-1.5 2.59z"/><path d="M12 6a1 1 0 0 0 1-1V3a1 1 0 0 0-2 0v2a1 1 0 0 0 1 1z"/><path d="M21 11h-2a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2z"/><path d="M5 11H3a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2z"/><path d="M7.66 6.42L6.22 5a1 1 0 0 0-1.39 1.47l1.44 1.39a1 1 0 0 0 .73.28 1 1 0 0 0 .72-.31 1 1 0 0 0-.06-1.41z"/><path d="M19.19 5.05a1 1 0 0 0-1.41 0l-1.44 1.37a1 1 0 0 0 0 1.41 1 1 0 0 0 .72.31 1 1 0 0 0 .69-.28l1.44-1.39a1 1 0 0 0 0-1.42z"/></g></g>',"calendar-outline":'<g data-name="Layer 2"><g data-name="calendar"><rect width="24" height="24" opacity="0"/><path d="M18 4h-1V3a1 1 0 0 0-2 0v1H9V3a1 1 0 0 0-2 0v1H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3zM6 6h1v1a1 1 0 0 0 2 0V6h6v1a1 1 0 0 0 2 0V6h1a1 1 0 0 1 1 1v4H5V7a1 1 0 0 1 1-1zm12 14H6a1 1 0 0 1-1-1v-6h14v6a1 1 0 0 1-1 1z"/><circle cx="8" cy="16" r="1"/><path d="M16 15h-4a1 1 0 0 0 0 2h4a1 1 0 0 0 0-2z"/></g></g>',"camera-outline":'<g data-name="Layer 2"><g data-name="camera"><rect width="24" height="24" opacity="0"/><path d="M19 7h-3V5.5A2.5 2.5 0 0 0 13.5 3h-3A2.5 2.5 0 0 0 8 5.5V7H5a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-8a3 3 0 0 0-3-3zm-9-1.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5V7h-4zM20 18a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1z"/><path d="M12 10.5a3.5 3.5 0 1 0 3.5 3.5 3.5 3.5 0 0 0-3.5-3.5zm0 5a1.5 1.5 0 1 1 1.5-1.5 1.5 1.5 0 0 1-1.5 1.5z"/></g></g>',"car-outline":'<g data-name="Layer 2"><g data-name="car"><rect width="24" height="24" opacity="0"/><path d="M21.6 11.22L17 7.52V5a1.91 1.91 0 0 0-1.81-2H3.79A1.91 1.91 0 0 0 2 5v10a2 2 0 0 0 1.2 1.88 3 3 0 1 0 5.6.12h6.36a3 3 0 1 0 5.64 0h.2a1 1 0 0 0 1-1v-4a1 1 0 0 0-.4-.78zM20 12.48V15h-3v-4.92zM7 18a1 1 0 1 1-1-1 1 1 0 0 1 1 1zm5-3H4V5h11v10zm7 3a1 1 0 1 1-1-1 1 1 0 0 1 1 1z"/></g></g>',"cast-outline":'<g data-name="Layer 2"><g data-name="cast"><polyline points="24 24 0 24 0 0" opacity="0"/><path d="M18.4 3H5.6A2.7 2.7 0 0 0 3 5.78V7a1 1 0 0 0 2 0V5.78A.72.72 0 0 1 5.6 5h12.8a.72.72 0 0 1 .6.78v12.44a.72.72 0 0 1-.6.78H17a1 1 0 0 0 0 2h1.4a2.7 2.7 0 0 0 2.6-2.78V5.78A2.7 2.7 0 0 0 18.4 3z"/><path d="M3.86 14A1 1 0 0 0 3 15.17a1 1 0 0 0 1.14.83 2.49 2.49 0 0 1 2.12.72 2.52 2.52 0 0 1 .51 2.84 1 1 0 0 0 .48 1.33 1.06 1.06 0 0 0 .42.09 1 1 0 0 0 .91-.58A4.52 4.52 0 0 0 3.86 14z"/><path d="M3.86 10.08a1 1 0 0 0 .28 2 6 6 0 0 1 5.09 1.71 6 6 0 0 1 1.53 5.95 1 1 0 0 0 .68 1.26.9.9 0 0 0 .28 0 1 1 0 0 0 1-.72 8 8 0 0 0-8.82-10.2z"/><circle cx="4" cy="19" r="1"/></g></g>',"charging-outline":'<g data-name="Layer 2"><g data-name="charging"><rect width="24" height="24" opacity="0"/><path d="M21 9a1 1 0 0 0-1 1v4a1 1 0 0 0 2 0v-4a1 1 0 0 0-1-1z"/><path d="M15.83 6h-3.1l-1.14 2h4.23a.5.5 0 0 1 .18.43v7.14a.52.52 0 0 1-.17.43H13l-1.15 2h4A2.31 2.31 0 0 0 18 15.57V8.43A2.31 2.31 0 0 0 15.83 6z"/><path d="M4 15.57V8.43A.53.53 0 0 1 4.17 8H7l1.13-2h-4A2.31 2.31 0 0 0 2 8.43v7.14A2.31 2.31 0 0 0 4.17 18h3.1l1.14-2H4.18a.5.5 0 0 1-.18-.43z"/><path d="M9 20a1 1 0 0 1-.87-1.5l3.15-5.5H7a1 1 0 0 1-.86-.5 1 1 0 0 1 0-1l4-7a1 1 0 0 1 1.74 1L8.72 11H13a1 1 0 0 1 .86.5 1 1 0 0 1 0 1l-4 7A1 1 0 0 1 9 20z"/></g></g>',"checkmark-circle-2-outline":'<g data-name="Layer 2"><g data-name="checkmark-circle-2"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M14.7 8.39l-3.78 5-1.63-2.11a1 1 0 0 0-1.58 1.23l2.43 3.11a1 1 0 0 0 .79.38 1 1 0 0 0 .79-.39l4.57-6a1 1 0 1 0-1.6-1.22z"/></g></g>',"checkmark-circle-outline":'<g data-name="Layer 2"><g data-name="checkmark-circle"><rect width="24" height="24" opacity="0"/><path d="M9.71 11.29a1 1 0 0 0-1.42 1.42l3 3A1 1 0 0 0 12 16a1 1 0 0 0 .72-.34l7-8a1 1 0 0 0-1.5-1.32L12 13.54z"/><path d="M21 11a1 1 0 0 0-1 1 8 8 0 0 1-8 8A8 8 0 0 1 6.33 6.36 7.93 7.93 0 0 1 12 4a8.79 8.79 0 0 1 1.9.22 1 1 0 1 0 .47-1.94A10.54 10.54 0 0 0 12 2a10 10 0 0 0-7 17.09A9.93 9.93 0 0 0 12 22a10 10 0 0 0 10-10 1 1 0 0 0-1-1z"/></g></g>',"checkmark-outline":'<g data-name="Layer 2"><g data-name="checkmark"><rect width="24" height="24" opacity="0"/><path d="M9.86 18a1 1 0 0 1-.73-.32l-4.86-5.17a1 1 0 1 1 1.46-1.37l4.12 4.39 8.41-9.2a1 1 0 1 1 1.48 1.34l-9.14 10a1 1 0 0 1-.73.33z"/></g></g>',"checkmark-square-2-outline":'<g data-name="Layer 2"><g data-name="checkmark-square-2"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm1 15a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1z"/><path d="M14.7 8.39l-3.78 5-1.63-2.11a1 1 0 0 0-1.58 1.23l2.43 3.11a1 1 0 0 0 .79.38 1 1 0 0 0 .79-.39l4.57-6a1 1 0 1 0-1.6-1.22z"/></g></g>',"checkmark-square-outline":'<g data-name="Layer 2"><g data-name="checkmark-square"><rect width="24" height="24" opacity="0"/><path d="M20 11.83a1 1 0 0 0-1 1v5.57a.6.6 0 0 1-.6.6H5.6a.6.6 0 0 1-.6-.6V5.6a.6.6 0 0 1 .6-.6h9.57a1 1 0 1 0 0-2H5.6A2.61 2.61 0 0 0 3 5.6v12.8A2.61 2.61 0 0 0 5.6 21h12.8a2.61 2.61 0 0 0 2.6-2.6v-5.57a1 1 0 0 0-1-1z"/><path d="M10.72 11a1 1 0 0 0-1.44 1.38l2.22 2.33a1 1 0 0 0 .72.31 1 1 0 0 0 .72-.3l6.78-7a1 1 0 1 0-1.44-1.4l-6.05 6.26z"/></g></g>',"chevron-down-outline":'<g data-name="Layer 2"><g data-name="chevron-down"><rect width="24" height="24" opacity="0"/><path d="M12 15.5a1 1 0 0 1-.71-.29l-4-4a1 1 0 1 1 1.42-1.42L12 13.1l3.3-3.18a1 1 0 1 1 1.38 1.44l-4 3.86a1 1 0 0 1-.68.28z"/></g></g>',"chevron-left-outline":'<g data-name="Layer 2"><g data-name="chevron-left"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M13.36 17a1 1 0 0 1-.72-.31l-3.86-4a1 1 0 0 1 0-1.4l4-4a1 1 0 1 1 1.42 1.42L10.9 12l3.18 3.3a1 1 0 0 1 0 1.41 1 1 0 0 1-.72.29z"/></g></g>',"chevron-right-outline":'<g data-name="Layer 2"><g data-name="chevron-right"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M10.5 17a1 1 0 0 1-.71-.29 1 1 0 0 1 0-1.42L13.1 12 9.92 8.69a1 1 0 0 1 0-1.41 1 1 0 0 1 1.42 0l3.86 4a1 1 0 0 1 0 1.4l-4 4a1 1 0 0 1-.7.32z"/></g></g>',"chevron-up-outline":'<g data-name="Layer 2"><g data-name="chevron-up"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M16 14.5a1 1 0 0 1-.71-.29L12 10.9l-3.3 3.18a1 1 0 0 1-1.41 0 1 1 0 0 1 0-1.42l4-3.86a1 1 0 0 1 1.4 0l4 4a1 1 0 0 1 0 1.42 1 1 0 0 1-.69.28z"/></g></g>',"clipboard-outline":'<g data-name="Layer 2"><g data-name="clipboard"><rect width="24" height="24" opacity="0"/><path d="M18 5V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v1a3 3 0 0 0-3 3v11a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V8a3 3 0 0 0-3-3zM8 4h8v4H8V4zm11 15a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1v1a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7a1 1 0 0 1 1 1z"/></g></g>',"clock-outline":'<g data-name="Layer 2"><g data-name="clock"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M16 11h-3V8a1 1 0 0 0-2 0v4a1 1 0 0 0 1 1h4a1 1 0 0 0 0-2z"/></g></g>',"close-circle-outline":'<g data-name="Layer 2"><g data-name="close-circle"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M14.71 9.29a1 1 0 0 0-1.42 0L12 10.59l-1.29-1.3a1 1 0 0 0-1.42 1.42l1.3 1.29-1.3 1.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l1.29-1.3 1.29 1.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42L13.41 12l1.3-1.29a1 1 0 0 0 0-1.42z"/></g></g>',"close-outline":'<g data-name="Layer 2"><g data-name="close"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M13.41 12l4.3-4.29a1 1 0 1 0-1.42-1.42L12 10.59l-4.29-4.3a1 1 0 0 0-1.42 1.42l4.3 4.29-4.3 4.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l4.29-4.3 4.29 4.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g>',"close-square-outline":'<g data-name="Layer 2"><g data-name="close-square"><rect width="24" height="24" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm1 15a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1z"/><path d="M14.71 9.29a1 1 0 0 0-1.42 0L12 10.59l-1.29-1.3a1 1 0 0 0-1.42 1.42l1.3 1.29-1.3 1.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l1.29-1.3 1.29 1.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42L13.41 12l1.3-1.29a1 1 0 0 0 0-1.42z"/></g></g>',"cloud-download-outline":'<g data-name="Layer 2"><g data-name="cloud-download"><rect width="24" height="24" opacity="0"/><path d="M14.31 16.38L13 17.64V12a1 1 0 0 0-2 0v5.59l-1.29-1.3a1 1 0 0 0-1.42 1.42l3 3A1 1 0 0 0 12 21a1 1 0 0 0 .69-.28l3-2.9a1 1 0 1 0-1.38-1.44z"/><path d="M17.67 7A6 6 0 0 0 6.33 7a5 5 0 0 0-3.08 8.27A1 1 0 1 0 4.75 14 3 3 0 0 1 7 9h.1a1 1 0 0 0 1-.8 4 4 0 0 1 7.84 0 1 1 0 0 0 1 .8H17a3 3 0 0 1 2.25 5 1 1 0 0 0 .09 1.42 1 1 0 0 0 .66.25 1 1 0 0 0 .75-.34A5 5 0 0 0 17.67 7z"/></g></g>',"cloud-upload-outline":'<g data-name="Layer 2"><g data-name="cloud-upload"><rect width="24" height="24" opacity="0"/><path d="M12.71 11.29a1 1 0 0 0-1.4 0l-3 2.9a1 1 0 1 0 1.38 1.44L11 14.36V20a1 1 0 0 0 2 0v-5.59l1.29 1.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/><path d="M17.67 7A6 6 0 0 0 6.33 7a5 5 0 0 0-3.08 8.27A1 1 0 1 0 4.75 14 3 3 0 0 1 7 9h.1a1 1 0 0 0 1-.8 4 4 0 0 1 7.84 0 1 1 0 0 0 1 .8H17a3 3 0 0 1 2.25 5 1 1 0 0 0 .09 1.42 1 1 0 0 0 .66.25 1 1 0 0 0 .75-.34A5 5 0 0 0 17.67 7z"/></g></g>',"code-download-outline":'<g data-name="Layer 2"><g data-name="code-download"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M4.29 12l4.48-5.36a1 1 0 1 0-1.54-1.28l-5 6a1 1 0 0 0 0 1.27l4.83 6a1 1 0 0 0 .78.37 1 1 0 0 0 .78-1.63z"/><path d="M21.78 11.37l-4.78-6a1 1 0 0 0-1.56 1.26L19.71 12l-4.48 5.37a1 1 0 0 0 .13 1.41A1 1 0 0 0 16 19a1 1 0 0 0 .77-.36l5-6a1 1 0 0 0 .01-1.27z"/><path d="M15.72 11.41a1 1 0 0 0-1.41 0L13 12.64V8a1 1 0 0 0-2 0v4.59l-1.29-1.3a1 1 0 0 0-1.42 1.42l3 3A1 1 0 0 0 12 16a1 1 0 0 0 .69-.28l3-2.9a1 1 0 0 0 .03-1.41z"/></g></g>',"code-outline":'<g data-name="Layer 2"><g data-name="code"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M8.64 5.23a1 1 0 0 0-1.41.13l-5 6a1 1 0 0 0 0 1.27l4.83 6a1 1 0 0 0 .78.37 1 1 0 0 0 .78-1.63L4.29 12l4.48-5.36a1 1 0 0 0-.13-1.41z"/><path d="M21.78 11.37l-4.78-6a1 1 0 0 0-1.41-.15 1 1 0 0 0-.15 1.41L19.71 12l-4.48 5.37a1 1 0 0 0 .13 1.41A1 1 0 0 0 16 19a1 1 0 0 0 .77-.36l5-6a1 1 0 0 0 .01-1.27z"/></g></g>',"collapse-outline":'<g data-name="Layer 2"><g data-name="collapse"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M19 9h-2.58l3.29-3.29a1 1 0 1 0-1.42-1.42L15 7.57V5a1 1 0 0 0-1-1 1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 0-2z"/><path d="M10 13H5a1 1 0 0 0 0 2h2.57l-3.28 3.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0L9 16.42V19a1 1 0 0 0 1 1 1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1z"/></g></g>',"color-palette-outline":'<g data-name="Layer 2"><g data-name="color-palette"><rect width="24" height="24" opacity="0"/><path d="M19.54 5.08A10.61 10.61 0 0 0 11.91 2a10 10 0 0 0-.05 20 2.58 2.58 0 0 0 2.53-1.89 2.52 2.52 0 0 0-.57-2.28.5.5 0 0 1 .37-.83h1.65A6.15 6.15 0 0 0 22 11.33a8.48 8.48 0 0 0-2.46-6.25zM15.88 15h-1.65a2.49 2.49 0 0 0-1.87 4.15.49.49 0 0 1 .12.49c-.05.21-.28.34-.59.36a8 8 0 0 1-7.82-9.11A8.1 8.1 0 0 1 11.92 4H12a8.47 8.47 0 0 1 6.1 2.48 6.5 6.5 0 0 1 1.9 4.77A4.17 4.17 0 0 1 15.88 15z"/><circle cx="12" cy="6.5" r="1.5"/><path d="M15.25 7.2a1.5 1.5 0 1 0 2.05.55 1.5 1.5 0 0 0-2.05-.55z"/><path d="M8.75 7.2a1.5 1.5 0 1 0 .55 2.05 1.5 1.5 0 0 0-.55-2.05z"/><path d="M6.16 11.26a1.5 1.5 0 1 0 2.08.4 1.49 1.49 0 0 0-2.08-.4z"/></g></g>',"color-picker-outline":'<g data-name="Layer 2"><g data-name="color-picker"><rect width="24" height="24" opacity="0"/><path d="M19.4 7.34L16.66 4.6A1.92 1.92 0 0 0 14 4.53l-2 2-1.29-1.24a1 1 0 0 0-1.42 1.42L10.53 8 5 13.53a2 2 0 0 0-.57 1.21L4 18.91a1 1 0 0 0 .29.8A1 1 0 0 0 5 20h.09l4.17-.38a2 2 0 0 0 1.21-.57l5.58-5.58 1.24 1.24a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42l-1.24-1.24 2-2a1.92 1.92 0 0 0-.07-2.71zM9.08 17.62l-3 .28.27-3L12 9.36l2.69 2.7zm7-7L13.36 8l1.91-2L18 8.73z"/></g></g>',"compass-outline":'<g data-name="Layer 2"><g data-name="compass"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M15.68 8.32a1 1 0 0 0-1.1-.25l-4.21 1.7a1 1 0 0 0-.55.55l-1.75 4.26a1 1 0 0 0 .18 1h.05A1 1 0 0 0 9 16a1 1 0 0 0 .38-.07l4.21-1.7a1 1 0 0 0 .55-.55l1.75-4.26a1 1 0 0 0-.21-1.1zm-4.88 4.89l.71-1.74 1.69-.68-.71 1.74z"/></g></g>',"copy-outline":'<g data-name="Layer 2"><g data-name="copy"><rect width="24" height="24" opacity="0"/><path d="M18 21h-6a3 3 0 0 1-3-3v-6a3 3 0 0 1 3-3h6a3 3 0 0 1 3 3v6a3 3 0 0 1-3 3zm-6-10a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1z"/><path d="M9.73 15H5.67A2.68 2.68 0 0 1 3 12.33V5.67A2.68 2.68 0 0 1 5.67 3h6.66A2.68 2.68 0 0 1 15 5.67V9.4h-2V5.67a.67.67 0 0 0-.67-.67H5.67a.67.67 0 0 0-.67.67v6.66a.67.67 0 0 0 .67.67h4.06z"/></g></g>',"corner-down-left-outline":'<g data-name="Layer 2"><g data-name="corner-down-left"><rect x=".05" y=".05" width="24" height="24" transform="rotate(-89.76 12.05 12.05)" opacity="0"/><path d="M20 6a1 1 0 0 0-1-1 1 1 0 0 0-1 1v5a1 1 0 0 1-.29.71A1 1 0 0 1 17 12H8.08l2.69-3.39a1 1 0 0 0-1.52-1.17l-4 5a1 1 0 0 0 0 1.25l4 5a1 1 0 0 0 .78.37 1 1 0 0 0 .62-.22 1 1 0 0 0 .15-1.41l-2.66-3.36h8.92a3 3 0 0 0 3-3z"/></g></g>',"corner-down-right-outline":'<g data-name="Layer 2"><g data-name="corner-down-right"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M19.78 12.38l-4-5a1 1 0 0 0-1.56 1.24l2.7 3.38H8a1 1 0 0 1-1-1V6a1 1 0 0 0-2 0v5a3 3 0 0 0 3 3h8.92l-2.7 3.38a1 1 0 0 0 .16 1.4A1 1 0 0 0 15 19a1 1 0 0 0 .78-.38l4-5a1 1 0 0 0 0-1.24z"/></g></g>',"corner-left-down-outline":'<g data-name="Layer 2"><g data-name="corner-left-down"><rect width="24" height="24" opacity="0"/><path d="M18 5h-5a3 3 0 0 0-3 3v8.92l-3.38-2.7a1 1 0 0 0-1.24 1.56l5 4a1 1 0 0 0 1.24 0l5-4a1 1 0 1 0-1.24-1.56L12 16.92V8a1 1 0 0 1 1-1h5a1 1 0 0 0 0-2z"/></g></g>',"corner-left-up-outline":'<g data-name="Layer 2"><g data-name="corner-left-up"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18 17h-5a1 1 0 0 1-1-1V7.08l3.38 2.7A1 1 0 0 0 16 10a1 1 0 0 0 .78-.38 1 1 0 0 0-.16-1.4l-5-4a1 1 0 0 0-1.24 0l-5 4a1 1 0 0 0 1.24 1.56L10 7.08V16a3 3 0 0 0 3 3h5a1 1 0 0 0 0-2z"/></g></g>',"corner-right-down-outline":'<g data-name="Layer 2"><g data-name="corner-right-down"><rect width="24" height="24" opacity="0"/><path d="M18.78 14.38a1 1 0 0 0-1.4-.16L14 16.92V8a3 3 0 0 0-3-3H6a1 1 0 0 0 0 2h5a1 1 0 0 1 1 1v8.92l-3.38-2.7a1 1 0 0 0-1.24 1.56l5 4a1 1 0 0 0 1.24 0l5-4a1 1 0 0 0 .16-1.4z"/></g></g>',"corner-right-up-outline":'<g data-name="Layer 2"><g data-name="corner-right-up"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18.62 8.22l-5-4a1 1 0 0 0-1.24 0l-5 4a1 1 0 0 0 1.24 1.56L12 7.08V16a1 1 0 0 1-1 1H6a1 1 0 0 0 0 2h5a3 3 0 0 0 3-3V7.08l3.38 2.7A1 1 0 0 0 18 10a1 1 0 0 0 .78-.38 1 1 0 0 0-.16-1.4z"/></g></g>',"corner-up-left-outline":'<g data-name="Layer 2"><g data-name="corner-up-left"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M16 10H7.08l2.7-3.38a1 1 0 1 0-1.56-1.24l-4 5a1 1 0 0 0 0 1.24l4 5A1 1 0 0 0 9 17a1 1 0 0 0 .62-.22 1 1 0 0 0 .16-1.4L7.08 12H16a1 1 0 0 1 1 1v5a1 1 0 0 0 2 0v-5a3 3 0 0 0-3-3z"/></g></g>',"corner-up-right-outline":'<g data-name="Layer 2"><g data-name="corner-up-right"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M19.78 10.38l-4-5a1 1 0 0 0-1.56 1.24l2.7 3.38H8a3 3 0 0 0-3 3v5a1 1 0 0 0 2 0v-5a1 1 0 0 1 1-1h8.92l-2.7 3.38a1 1 0 0 0 .16 1.4A1 1 0 0 0 15 17a1 1 0 0 0 .78-.38l4-5a1 1 0 0 0 0-1.24z"/></g></g>',"credit-card-outline":'<g data-name="Layer 2"><g data-name="credit-card"><rect width="24" height="24" opacity="0"/><path d="M19 5H5a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V8a3 3 0 0 0-3-3zM4 8a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v1H4zm16 8a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-5h16z"/><path d="M7 15h4a1 1 0 0 0 0-2H7a1 1 0 0 0 0 2z"/><path d="M15 15h2a1 1 0 0 0 0-2h-2a1 1 0 0 0 0 2z"/></g></g>',"crop-outline":'<g data-name="Layer 2"><g data-name="crop"><rect width="24" height="24" opacity="0"/><path d="M21 16h-3V8.56A2.56 2.56 0 0 0 15.44 6H8V3a1 1 0 0 0-2 0v3H3a1 1 0 0 0 0 2h3v7.44A2.56 2.56 0 0 0 8.56 18H16v3a1 1 0 0 0 2 0v-3h3a1 1 0 0 0 0-2zM8.56 16a.56.56 0 0 1-.56-.56V8h7.44a.56.56 0 0 1 .56.56V16z"/></g></g>',"cube-outline":'<g data-name="Layer 2"><g data-name="cube"><rect width="24" height="24" opacity="0"/><path d="M20.66 7.26c0-.07-.1-.14-.15-.21l-.09-.1a2.5 2.5 0 0 0-.86-.68l-6.4-3a2.7 2.7 0 0 0-2.26 0l-6.4 3a2.6 2.6 0 0 0-.86.68L3.52 7a1 1 0 0 0-.15.2A2.39 2.39 0 0 0 3 8.46v7.06a2.49 2.49 0 0 0 1.46 2.26l6.4 3a2.7 2.7 0 0 0 2.27 0l6.4-3A2.49 2.49 0 0 0 21 15.54V8.46a2.39 2.39 0 0 0-.34-1.2zm-8.95-2.2a.73.73 0 0 1 .58 0l5.33 2.48L12 10.15 6.38 7.54zM5.3 16a.47.47 0 0 1-.3-.43V9.1l6 2.79v6.72zm13.39 0L13 18.61v-6.72l6-2.79v6.44a.48.48 0 0 1-.31.46z"/></g></g>',"diagonal-arrow-left-down-outline":'<g data-name="Layer 2"><g data-name="diagonal-arrow-left-down"><rect width="24" height="24" opacity="0"/><path d="M17.71 6.29a1 1 0 0 0-1.42 0L8 14.59V9a1 1 0 0 0-2 0v8a1 1 0 0 0 1 1h8a1 1 0 0 0 0-2H9.41l8.3-8.29a1 1 0 0 0 0-1.42z"/></g></g>',"diagonal-arrow-left-up-outline":'<g data-name="Layer 2"><g data-name="diagonal-arrow-left-up"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M17.71 16.29L9.42 8H15a1 1 0 0 0 0-2H7.05a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1H7a1 1 0 0 0 1-1V9.45l8.26 8.26a1 1 0 0 0 1.42 0 1 1 0 0 0 .03-1.42z"/></g></g>',"diagonal-arrow-right-down-outline":'<g data-name="Layer 2"><g data-name="diagonal-arrow-right-down"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M17 8a1 1 0 0 0-1 1v5.59l-8.29-8.3a1 1 0 0 0-1.42 1.42l8.3 8.29H9a1 1 0 0 0 0 2h8a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1z"/></g></g>',"diagonal-arrow-right-up-outline":'<g data-name="Layer 2"><g data-name="diagonal-arrow-right-up"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18 7.05a1 1 0 0 0-1-1L9 6a1 1 0 0 0 0 2h5.56l-8.27 8.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0L16 9.42V15a1 1 0 0 0 1 1 1 1 0 0 0 1-1z"/></g></g>',"done-all-outline":'<g data-name="Layer 2"><g data-name="done-all"><rect width="24" height="24" opacity="0"/><path d="M16.62 6.21a1 1 0 0 0-1.41.17l-7 9-3.43-4.18a1 1 0 1 0-1.56 1.25l4.17 5.18a1 1 0 0 0 .78.37 1 1 0 0 0 .83-.38l7.83-10a1 1 0 0 0-.21-1.41z"/><path d="M21.62 6.21a1 1 0 0 0-1.41.17l-7 9-.61-.75-1.26 1.62 1.1 1.37a1 1 0 0 0 .78.37 1 1 0 0 0 .78-.38l7.83-10a1 1 0 0 0-.21-1.4z"/><path d="M8.71 13.06L10 11.44l-.2-.24a1 1 0 0 0-1.43-.2 1 1 0 0 0-.15 1.41z"/></g></g>',"download-outline":'<g data-name="Layer 2"><g data-name="download"><rect width="24" height="24" opacity="0"/><rect x="4" y="18" width="16" height="2" rx="1" ry="1"/><rect x="3" y="17" width="4" height="2" rx="1" ry="1" transform="rotate(-90 5 18)"/><rect x="17" y="17" width="4" height="2" rx="1" ry="1" transform="rotate(-90 19 18)"/><path d="M12 15a1 1 0 0 1-.58-.18l-4-2.82a1 1 0 0 1-.24-1.39 1 1 0 0 1 1.4-.24L12 12.76l3.4-2.56a1 1 0 0 1 1.2 1.6l-4 3a1 1 0 0 1-.6.2z"/><path d="M12 13a1 1 0 0 1-1-1V4a1 1 0 0 1 2 0v8a1 1 0 0 1-1 1z"/></g></g>',"droplet-off-outline":'<g data-name="Layer 2"><g data-name="droplet-off-outline"><rect width="24" height="24" opacity="0"/><path d="M12 19a5.4 5.4 0 0 1-3.88-1.64 5.73 5.73 0 0 1-.69-7.11L6 8.82a7.74 7.74 0 0 0 .7 9.94A7.37 7.37 0 0 0 12 21a7.36 7.36 0 0 0 4.58-1.59L15.15 18A5.43 5.43 0 0 1 12 19z"/><path d="M12 5.43l3.88 4a5.71 5.71 0 0 1 1.49 5.15L19 16.15A7.72 7.72 0 0 0 17.31 8l-4.6-4.7A1 1 0 0 0 12 3a1 1 0 0 0-.72.3L8.73 5.9l1.42 1.42z"/><path d="M20.71 19.29l-16-16a1 1 0 0 0-1.42 1.42l16 16a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g>',"droplet-outline":'<g data-name="Layer 2"><g data-name="droplet-outline"><rect x=".1" y=".1" width="24" height="24" transform="rotate(.48 11.987 11.887)" opacity="0"/><path d="M12 21.1a7.4 7.4 0 0 1-5.28-2.28 7.73 7.73 0 0 1 .1-10.77l4.64-4.65a.94.94 0 0 1 .71-.3 1 1 0 0 1 .71.31l4.56 4.72a7.73 7.73 0 0 1-.09 10.77A7.33 7.33 0 0 1 12 21.1zm.13-15.57L8.24 9.45a5.74 5.74 0 0 0-.07 8A5.43 5.43 0 0 0 12 19.1a5.42 5.42 0 0 0 3.9-1.61 5.72 5.72 0 0 0 .06-8z"/></g></g>',"edit-2-outline":'<g data-name="Layer 2"><g data-name="edit-2"><rect width="24" height="24" opacity="0"/><path d="M19 20H5a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2z"/><path d="M5 18h.09l4.17-.38a2 2 0 0 0 1.21-.57l9-9a1.92 1.92 0 0 0-.07-2.71L16.66 2.6A2 2 0 0 0 14 2.53l-9 9a2 2 0 0 0-.57 1.21L4 16.91a1 1 0 0 0 .29.8A1 1 0 0 0 5 18zM15.27 4L18 6.73l-2 1.95L13.32 6zm-8.9 8.91L12 7.32l2.7 2.7-5.6 5.6-3 .28z"/></g></g>',"edit-outline":'<g data-name="Layer 2"><g data-name="edit"><rect width="24" height="24" opacity="0"/><path d="M19.4 7.34L16.66 4.6A2 2 0 0 0 14 4.53l-9 9a2 2 0 0 0-.57 1.21L4 18.91a1 1 0 0 0 .29.8A1 1 0 0 0 5 20h.09l4.17-.38a2 2 0 0 0 1.21-.57l9-9a1.92 1.92 0 0 0-.07-2.71zM9.08 17.62l-3 .28.27-3L12 9.32l2.7 2.7zM16 10.68L13.32 8l1.95-2L18 8.73z"/></g></g>',"email-outline":'<g data-name="Layer 2"><g data-name="email"><rect width="24" height="24" opacity="0"/><path d="M19 4H5a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3zm-.67 2L12 10.75 5.67 6zM19 18H5a1 1 0 0 1-1-1V7.25l7.4 5.55a1 1 0 0 0 .6.2 1 1 0 0 0 .6-.2L20 7.25V17a1 1 0 0 1-1 1z"/></g></g>',"expand-outline":'<g data-name="Layer 2"><g data-name="expand"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M20 5a1 1 0 0 0-1-1h-5a1 1 0 0 0 0 2h2.57l-3.28 3.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0L18 7.42V10a1 1 0 0 0 1 1 1 1 0 0 0 1-1z"/><path d="M10.71 13.29a1 1 0 0 0-1.42 0L6 16.57V14a1 1 0 0 0-1-1 1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 0-2H7.42l3.29-3.29a1 1 0 0 0 0-1.42z"/></g></g>',"external-link-outline":'<g data-name="Layer 2"><g data-name="external-link"><rect width="24" height="24" opacity="0"/><path d="M20 11a1 1 0 0 0-1 1v6a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h6a1 1 0 0 0 0-2H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3v-6a1 1 0 0 0-1-1z"/><path d="M16 5h1.58l-6.29 6.28a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0L19 6.42V8a1 1 0 0 0 1 1 1 1 0 0 0 1-1V4a1 1 0 0 0-1-1h-4a1 1 0 0 0 0 2z"/></g></g>',"eye-off-2-outline":'<g data-name="Layer 2"><g data-name="eye-off-2"><rect width="24" height="24" opacity="0"/><path d="M17.81 13.39A8.93 8.93 0 0 0 21 7.62a1 1 0 1 0-2-.24 7.07 7.07 0 0 1-14 0 1 1 0 1 0-2 .24 8.93 8.93 0 0 0 3.18 5.77l-2.3 2.32a1 1 0 0 0 1.41 1.41l2.61-2.6a9.06 9.06 0 0 0 3.1.92V19a1 1 0 0 0 2 0v-3.56a9.06 9.06 0 0 0 3.1-.92l2.61 2.6a1 1 0 0 0 1.41-1.41z"/></g></g>',"eye-off-outline":'<g data-name="Layer 2"><g data-name="eye-off"><rect width="24" height="24" opacity="0"/><path d="M4.71 3.29a1 1 0 0 0-1.42 1.42l5.63 5.63a3.5 3.5 0 0 0 4.74 4.74l5.63 5.63a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM12 13.5a1.5 1.5 0 0 1-1.5-1.5v-.07l1.56 1.56z"/><path d="M12.22 17c-4.3.1-7.12-3.59-8-5a13.7 13.7 0 0 1 2.24-2.72L5 7.87a15.89 15.89 0 0 0-2.87 3.63 1 1 0 0 0 0 1c.63 1.09 4 6.5 9.89 6.5h.25a9.48 9.48 0 0 0 3.23-.67l-1.58-1.58a7.74 7.74 0 0 1-1.7.25z"/><path d="M21.87 11.5c-.64-1.11-4.17-6.68-10.14-6.5a9.48 9.48 0 0 0-3.23.67l1.58 1.58a7.74 7.74 0 0 1 1.7-.25c4.29-.11 7.11 3.59 8 5a13.7 13.7 0 0 1-2.29 2.72L19 16.13a15.89 15.89 0 0 0 2.91-3.63 1 1 0 0 0-.04-1z"/></g></g>',"eye-outline":'<g data-name="Layer 2"><g data-name="eye"><rect width="24" height="24" opacity="0"/><path d="M21.87 11.5c-.64-1.11-4.16-6.68-10.14-6.5-5.53.14-8.73 5-9.6 6.5a1 1 0 0 0 0 1c.63 1.09 4 6.5 9.89 6.5h.25c5.53-.14 8.74-5 9.6-6.5a1 1 0 0 0 0-1zM12.22 17c-4.31.1-7.12-3.59-8-5 1-1.61 3.61-4.9 7.61-5 4.29-.11 7.11 3.59 8 5-1.03 1.61-3.61 4.9-7.61 5z"/><path d="M12 8.5a3.5 3.5 0 1 0 3.5 3.5A3.5 3.5 0 0 0 12 8.5zm0 5a1.5 1.5 0 1 1 1.5-1.5 1.5 1.5 0 0 1-1.5 1.5z"/></g></g>',"facebook-outline":'<g data-name="Layer 2"><g data-name="facebook"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M13 22H9a1 1 0 0 1-1-1v-6.2H6a1 1 0 0 1-1-1v-3.6a1 1 0 0 1 1-1h2V7.5A5.77 5.77 0 0 1 14 2h3a1 1 0 0 1 1 1v3.6a1 1 0 0 1-1 1h-3v1.6h3a1 1 0 0 1 .8.39 1 1 0 0 1 .16.88l-1 3.6a1 1 0 0 1-1 .73H14V21a1 1 0 0 1-1 1zm-3-2h2v-6.2a1 1 0 0 1 1-1h2.24l.44-1.6H13a1 1 0 0 1-1-1V7.5a2 2 0 0 1 2-1.9h2V4h-2a3.78 3.78 0 0 0-4 3.5v2.7a1 1 0 0 1-1 1H7v1.6h2a1 1 0 0 1 1 1z"/></g></g>',"file-add-outline":'<g data-name="Layer 2"><g data-name="file-add"><rect width="24" height="24" opacity="0"/><path d="M19.74 8.33l-5.44-6a1 1 0 0 0-.74-.33h-7A2.53 2.53 0 0 0 4 4.5v15A2.53 2.53 0 0 0 6.56 22h10.88A2.53 2.53 0 0 0 20 19.5V9a1 1 0 0 0-.26-.67zM14 5l2.74 3h-2a.79.79 0 0 1-.74-.85zm3.44 15H6.56a.53.53 0 0 1-.56-.5v-15a.53.53 0 0 1 .56-.5H12v3.15A2.79 2.79 0 0 0 14.71 10H18v9.5a.53.53 0 0 1-.56.5z"/><path d="M14 13h-1v-1a1 1 0 0 0-2 0v1h-1a1 1 0 0 0 0 2h1v1a1 1 0 0 0 2 0v-1h1a1 1 0 0 0 0-2z"/></g></g>',"file-outline":'<g data-name="Layer 2"><g data-name="file"><rect width="24" height="24" opacity="0"/><path d="M19.74 8.33l-5.44-6a1 1 0 0 0-.74-.33h-7A2.53 2.53 0 0 0 4 4.5v15A2.53 2.53 0 0 0 6.56 22h10.88A2.53 2.53 0 0 0 20 19.5V9a1 1 0 0 0-.26-.67zM17.65 9h-3.94a.79.79 0 0 1-.71-.85V4h.11zm-.21 11H6.56a.53.53 0 0 1-.56-.5v-15a.53.53 0 0 1 .56-.5H11v4.15A2.79 2.79 0 0 0 13.71 11H18v8.5a.53.53 0 0 1-.56.5z"/></g></g>',"file-remove-outline":'<g data-name="Layer 2"><g data-name="file-remove"><rect width="24" height="24" opacity="0"/><path d="M19.74 8.33l-5.44-6a1 1 0 0 0-.74-.33h-7A2.53 2.53 0 0 0 4 4.5v15A2.53 2.53 0 0 0 6.56 22h10.88A2.53 2.53 0 0 0 20 19.5V9a1 1 0 0 0-.26-.67zM14 5l2.74 3h-2a.79.79 0 0 1-.74-.85zm3.44 15H6.56a.53.53 0 0 1-.56-.5v-15a.53.53 0 0 1 .56-.5H12v3.15A2.79 2.79 0 0 0 14.71 10H18v9.5a.53.53 0 0 1-.56.5z"/><path d="M14 13h-4a1 1 0 0 0 0 2h4a1 1 0 0 0 0-2z"/></g></g>',"file-text-outline":'<g data-name="Layer 2"><g data-name="file-text"><rect width="24" height="24" opacity="0"/><path d="M15 16H9a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2z"/><path d="M9 14h3a1 1 0 0 0 0-2H9a1 1 0 0 0 0 2z"/><path d="M19.74 8.33l-5.44-6a1 1 0 0 0-.74-.33h-7A2.53 2.53 0 0 0 4 4.5v15A2.53 2.53 0 0 0 6.56 22h10.88A2.53 2.53 0 0 0 20 19.5V9a1 1 0 0 0-.26-.67zM14 5l2.74 3h-2a.79.79 0 0 1-.74-.85zm3.44 15H6.56a.53.53 0 0 1-.56-.5v-15a.53.53 0 0 1 .56-.5H12v3.15A2.79 2.79 0 0 0 14.71 10H18v9.5a.53.53 0 0 1-.56.5z"/></g></g>',"film-outline":'<g data-name="Layer 2"><g data-name="film"><rect width="24" height="24" opacity="0"/><path d="M18.26 3H5.74A2.74 2.74 0 0 0 3 5.74v12.52A2.74 2.74 0 0 0 5.74 21h12.52A2.74 2.74 0 0 0 21 18.26V5.74A2.74 2.74 0 0 0 18.26 3zM7 11H5V9h2zm-2 2h2v2H5zm4-8h6v14H9zm10 6h-2V9h2zm-2 2h2v2h-2zm2-7.26V7h-2V5h1.26a.74.74 0 0 1 .74.74zM5.74 5H7v2H5V5.74A.74.74 0 0 1 5.74 5zM5 18.26V17h2v2H5.74a.74.74 0 0 1-.74-.74zm14 0a.74.74 0 0 1-.74.74H17v-2h2z"/></g></g>',"flag-outline":'<g data-name="Layer 2"><g data-name="flag"><polyline points="24 24 0 24 0 0" opacity="0"/><path d="M19.27 4.68a1.79 1.79 0 0 0-1.6-.25 7.53 7.53 0 0 1-2.17.28 8.54 8.54 0 0 1-3.13-.78A10.15 10.15 0 0 0 8.5 3c-2.89 0-4 1-4.2 1.14a1 1 0 0 0-.3.72V20a1 1 0 0 0 2 0v-4.3a6.28 6.28 0 0 1 2.5-.41 8.54 8.54 0 0 1 3.13.78 10.15 10.15 0 0 0 3.87.93 7.66 7.66 0 0 0 3.5-.7 1.74 1.74 0 0 0 1-1.55V6.11a1.77 1.77 0 0 0-.73-1.43zM18 14.59a6.32 6.32 0 0 1-2.5.41 8.36 8.36 0 0 1-3.13-.79 10.34 10.34 0 0 0-3.87-.92 9.51 9.51 0 0 0-2.5.29V5.42A6.13 6.13 0 0 1 8.5 5a8.36 8.36 0 0 1 3.13.79 10.34 10.34 0 0 0 3.87.92 9.41 9.41 0 0 0 2.5-.3z"/></g></g>',"flash-off-outline":'<g data-name="Layer 2"><g data-name="flash-off"><rect width="24" height="24" opacity="0"/><path d="M20.71 19.29l-16-16a1 1 0 0 0-1.42 1.42l16 16a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/><path d="M12.54 18.06l.27-2.42L10 12.8H6.87l1.24-1.86L6.67 9.5l-2.5 3.74A1 1 0 0 0 5 14.8h5.89l-.77 7.09a1 1 0 0 0 .65 1.05 1 1 0 0 0 .34.06 1 1 0 0 0 .83-.44l3.12-4.67-1.44-1.44z"/><path d="M11.46 5.94l-.27 2.42L14 11.2h3.1l-1.24 1.86 1.44 1.44 2.5-3.74A1 1 0 0 0 19 9.2h-5.89l.77-7.09a1 1 0 0 0-.65-1 1 1 0 0 0-1.17.38L8.94 6.11l1.44 1.44z"/></g></g>',"flash-outline":'<g data-name="Layer 2"><g data-name="flash"><rect width="24" height="24" opacity="0"/><path d="M11.11 23a1 1 0 0 1-.34-.06 1 1 0 0 1-.65-1.05l.77-7.09H5a1 1 0 0 1-.83-1.56l7.89-11.8a1 1 0 0 1 1.17-.38 1 1 0 0 1 .65 1l-.77 7.14H19a1 1 0 0 1 .83 1.56l-7.89 11.8a1 1 0 0 1-.83.44zM6.87 12.8H12a1 1 0 0 1 .74.33 1 1 0 0 1 .25.78l-.45 4.15 4.59-6.86H12a1 1 0 0 1-1-1.11l.45-4.15z"/></g></g>',"flip-2-outline":'<g data-name="Layer 2"><g data-name="flip-2"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M6.09 19h12l-1.3 1.29a1 1 0 0 0 1.42 1.42l3-3a1 1 0 0 0 0-1.42l-3-3a1 1 0 0 0-1.42 0 1 1 0 0 0 0 1.42l1.3 1.29h-12a1.56 1.56 0 0 1-1.59-1.53V13a1 1 0 0 0-2 0v2.47A3.56 3.56 0 0 0 6.09 19z"/><path d="M5.79 9.71a1 1 0 1 0 1.42-1.42L5.91 7h12a1.56 1.56 0 0 1 1.59 1.53V11a1 1 0 0 0 2 0V8.53A3.56 3.56 0 0 0 17.91 5h-12l1.3-1.29a1 1 0 0 0 0-1.42 1 1 0 0 0-1.42 0l-3 3a1 1 0 0 0 0 1.42z"/></g></g>',"flip-outline":'<g data-name="Layer 2"><g data-name="flip-in"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M5 6.09v12l-1.29-1.3a1 1 0 0 0-1.42 1.42l3 3a1 1 0 0 0 1.42 0l3-3a1 1 0 0 0 0-1.42 1 1 0 0 0-1.42 0L7 18.09v-12A1.56 1.56 0 0 1 8.53 4.5H11a1 1 0 0 0 0-2H8.53A3.56 3.56 0 0 0 5 6.09z"/><path d="M14.29 5.79a1 1 0 0 0 1.42 1.42L17 5.91v12a1.56 1.56 0 0 1-1.53 1.59H13a1 1 0 0 0 0 2h2.47A3.56 3.56 0 0 0 19 17.91v-12l1.29 1.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42l-3-3a1 1 0 0 0-1.42 0z"/></g></g>',"folder-add-outline":'<g data-name="Layer 2"><g data-name="folder-add"><rect width="24" height="24" opacity="0"/><path d="M14 13h-1v-1a1 1 0 0 0-2 0v1h-1a1 1 0 0 0 0 2h1v1a1 1 0 0 0 2 0v-1h1a1 1 0 0 0 0-2z"/><path d="M19.5 7.05h-7L9.87 3.87a1 1 0 0 0-.77-.37H4.5A2.47 2.47 0 0 0 2 5.93v12.14a2.47 2.47 0 0 0 2.5 2.43h15a2.47 2.47 0 0 0 2.5-2.43V9.48a2.47 2.47 0 0 0-2.5-2.43zm.5 11a.46.46 0 0 1-.5.43h-15a.46.46 0 0 1-.5-.43V5.93a.46.46 0 0 1 .5-.43h4.13l2.6 3.18a1 1 0 0 0 .77.37h7.5a.46.46 0 0 1 .5.43z"/></g></g>',"folder-outline":'<g data-name="Layer 2"><g data-name="folder"><rect width="24" height="24" opacity="0"/><path d="M19.5 20.5h-15A2.47 2.47 0 0 1 2 18.07V5.93A2.47 2.47 0 0 1 4.5 3.5h4.6a1 1 0 0 1 .77.37l2.6 3.18h7A2.47 2.47 0 0 1 22 9.48v8.59a2.47 2.47 0 0 1-2.5 2.43zM4 13.76v4.31a.46.46 0 0 0 .5.43h15a.46.46 0 0 0 .5-.43V9.48a.46.46 0 0 0-.5-.43H12a1 1 0 0 1-.77-.37L8.63 5.5H4.5a.46.46 0 0 0-.5.43z"/></g></g>',"folder-remove-outline":'<g data-name="Layer 2"><g data-name="folder-remove"><rect width="24" height="24" opacity="0"/><path d="M14 13h-4a1 1 0 0 0 0 2h4a1 1 0 0 0 0-2z"/><path d="M19.5 7.05h-7L9.87 3.87a1 1 0 0 0-.77-.37H4.5A2.47 2.47 0 0 0 2 5.93v12.14a2.47 2.47 0 0 0 2.5 2.43h15a2.47 2.47 0 0 0 2.5-2.43V9.48a2.47 2.47 0 0 0-2.5-2.43zm.5 11a.46.46 0 0 1-.5.43h-15a.46.46 0 0 1-.5-.43V5.93a.46.46 0 0 1 .5-.43h4.13l2.6 3.18a1 1 0 0 0 .77.37h7.5a.46.46 0 0 1 .5.43z"/></g></g>',"funnel-outline":'<g data-name="Layer 2"><g data-name="funnel"><rect width="24" height="24" opacity="0"/><path d="M13.9 22a1 1 0 0 1-.6-.2l-4-3.05a1 1 0 0 1-.39-.8v-3.27l-4.8-9.22A1 1 0 0 1 5 4h14a1 1 0 0 1 .86.49 1 1 0 0 1 0 1l-5 9.21V21a1 1 0 0 1-.55.9 1 1 0 0 1-.41.1zm-3-4.54l2 1.53v-4.55A1 1 0 0 1 13 14l4.3-8H6.64l4.13 8a1 1 0 0 1 .11.46z"/></g></g>',"gift-outline":'<g data-name="Layer 2"><g data-name="gift"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M19.2 7h-.39A3 3 0 0 0 19 6a3.08 3.08 0 0 0-3.14-3A4.46 4.46 0 0 0 12 5.4 4.46 4.46 0 0 0 8.14 3 3.08 3.08 0 0 0 5 6a3 3 0 0 0 .19 1H4.8A2 2 0 0 0 3 9.2v3.6A2.08 2.08 0 0 0 4.5 15v4.37A1.75 1.75 0 0 0 6.31 21h11.38a1.75 1.75 0 0 0 1.81-1.67V15a2.08 2.08 0 0 0 1.5-2.2V9.2A2 2 0 0 0 19.2 7zM19 9.2v3.6a.56.56 0 0 1 0 .2h-6V9h6a.56.56 0 0 1 0 .2zM15.86 5A1.08 1.08 0 0 1 17 6a1.08 1.08 0 0 1-1.14 1H13.4a2.93 2.93 0 0 1 2.46-2zM7 6a1.08 1.08 0 0 1 1.14-1 2.93 2.93 0 0 1 2.45 2H8.14A1.08 1.08 0 0 1 7 6zM5 9.2A.56.56 0 0 1 5 9h6v4H5a.56.56 0 0 1 0-.2zM6.5 15H11v4H6.5zm6.5 4v-4h4.5v4z"/></g></g>',"github-outline":'<g data-name="Layer 2"><rect width="24" height="24" opacity="0"/><path d="M16.24 22a1 1 0 0 1-1-1v-2.6a2.15 2.15 0 0 0-.54-1.66 1 1 0 0 1 .61-1.67C17.75 14.78 20 14 20 9.77a4 4 0 0 0-.67-2.22 2.75 2.75 0 0 1-.41-2.06 3.71 3.71 0 0 0 0-1.41 7.65 7.65 0 0 0-2.09 1.09 1 1 0 0 1-.84.15 10.15 10.15 0 0 0-5.52 0 1 1 0 0 1-.84-.15 7.4 7.4 0 0 0-2.11-1.09 3.52 3.52 0 0 0 0 1.41 2.84 2.84 0 0 1-.43 2.08 4.07 4.07 0 0 0-.67 2.23c0 3.89 1.88 4.93 4.7 5.29a1 1 0 0 1 .82.66 1 1 0 0 1-.21 1 2.06 2.06 0 0 0-.55 1.56V21a1 1 0 0 1-2 0v-.57a6 6 0 0 1-5.27-2.09 3.9 3.9 0 0 0-1.16-.88 1 1 0 1 1 .5-1.94 4.93 4.93 0 0 1 2 1.36c1 1 2 1.88 3.9 1.52a3.89 3.89 0 0 1 .23-1.58c-2.06-.52-5-2-5-7a6 6 0 0 1 1-3.33.85.85 0 0 0 .13-.62 5.69 5.69 0 0 1 .33-3.21 1 1 0 0 1 .63-.57c.34-.1 1.56-.3 3.87 1.2a12.16 12.16 0 0 1 5.69 0c2.31-1.5 3.53-1.31 3.86-1.2a1 1 0 0 1 .63.57 5.71 5.71 0 0 1 .33 3.22.75.75 0 0 0 .11.57 6 6 0 0 1 1 3.34c0 5.07-2.92 6.54-5 7a4.28 4.28 0 0 1 .22 1.67V21a1 1 0 0 1-.94 1z"/></g>',"globe-2-outline":'<g data-name="Layer 2"><g data-name="globe-2"><rect width="24" height="24" opacity="0"/><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 2a8.19 8.19 0 0 1 1.79.21 2.61 2.61 0 0 1-.78 1c-.22.17-.46.31-.7.46a4.56 4.56 0 0 0-1.85 1.67 6.49 6.49 0 0 0-.62 3.3c0 1.36 0 2.16-.95 2.87-1.37 1.07-3.46.47-4.76-.07A8.33 8.33 0 0 1 4 12a8 8 0 0 1 8-8zM5 15.8a8.42 8.42 0 0 0 2 .27 5 5 0 0 0 3.14-1c1.71-1.34 1.71-3.06 1.71-4.44a4.76 4.76 0 0 1 .37-2.34 2.86 2.86 0 0 1 1.12-.91 9.75 9.75 0 0 0 .92-.61 4.55 4.55 0 0 0 1.4-1.87A8 8 0 0 1 19 8.12c-1.43.2-3.46.67-3.86 2.53A7 7 0 0 0 15 12a2.93 2.93 0 0 1-.29 1.47l-.1.17c-.65 1.08-1.38 2.31-.39 4 .12.21.25.41.38.61a2.29 2.29 0 0 1 .52 1.08A7.89 7.89 0 0 1 12 20a8 8 0 0 1-7-4.2zm11.93 2.52a6.79 6.79 0 0 0-.63-1.14c-.11-.16-.22-.32-.32-.49-.39-.68-.25-1 .38-2l.1-.17a4.77 4.77 0 0 0 .54-2.43 5.42 5.42 0 0 1 .09-1c.16-.73 1.71-.93 2.67-1a7.94 7.94 0 0 1-2.86 8.28z"/></g></g>',"globe-outline":'<g data-name="Layer 2"><g data-name="globe"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M22 12A10 10 0 0 0 12 2a10 10 0 0 0 0 20 10 10 0 0 0 10-10zm-2.07-1H17a12.91 12.91 0 0 0-2.33-6.54A8 8 0 0 1 19.93 11zM9.08 13H15a11.44 11.44 0 0 1-3 6.61A11 11 0 0 1 9.08 13zm0-2A11.4 11.4 0 0 1 12 4.4a11.19 11.19 0 0 1 3 6.6zm.36-6.57A13.18 13.18 0 0 0 7.07 11h-3a8 8 0 0 1 5.37-6.57zM4.07 13h3a12.86 12.86 0 0 0 2.35 6.56A8 8 0 0 1 4.07 13zm10.55 6.55A13.14 13.14 0 0 0 17 13h2.95a8 8 0 0 1-5.33 6.55z"/></g></g>',"google-outline":'<g data-name="Layer 2"><g data-name="google"><polyline points="0 0 24 0 24 24 0 24" opacity="0"/><path d="M12 22h-.43A10.16 10.16 0 0 1 2 12.29a10 10 0 0 1 14.12-9.41 1.48 1.48 0 0 1 .77.86 1.47 1.47 0 0 1-.1 1.16L15.5 7.28a1.44 1.44 0 0 1-1.83.64A4.5 4.5 0 0 0 8.77 9a4.41 4.41 0 0 0-1.16 3.34 4.36 4.36 0 0 0 1.66 3 4.52 4.52 0 0 0 3.45 1 3.89 3.89 0 0 0 2.63-1.57h-2.9A1.45 1.45 0 0 1 11 13.33v-2.68a1.45 1.45 0 0 1 1.45-1.45h8.1A1.46 1.46 0 0 1 22 10.64v1.88A10 10 0 0 1 12 22zm0-18a8 8 0 0 0-8 8.24A8.12 8.12 0 0 0 11.65 20 8 8 0 0 0 20 12.42V11.2h-7v1.58h5.31l-.41 1.3a6 6 0 0 1-4.9 4.25A6.58 6.58 0 0 1 8 17a6.33 6.33 0 0 1-.72-9.3A6.52 6.52 0 0 1 14 5.91l.77-1.43A7.9 7.9 0 0 0 12 4z"/></g></g>',"grid-outline":'<g data-name="Layer 2"><g data-name="grid"><rect width="24" height="24" opacity="0"/><path d="M9 3H5a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zM5 9V5h4v4z"/><path d="M19 3h-4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm-4 6V5h4v4z"/><path d="M9 13H5a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2zm-4 6v-4h4v4z"/><path d="M19 13h-4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2zm-4 6v-4h4v4z"/></g></g>',"hard-drive-outline":'<g data-name="Layer 2"><g data-name="hard-drive"><rect width="24" height="24" opacity="0"/><path d="M20.79 11.34l-3.34-6.68A3 3 0 0 0 14.76 3H9.24a3 3 0 0 0-2.69 1.66l-3.34 6.68a2 2 0 0 0-.21.9V18a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3v-5.76a2 2 0 0 0-.21-.9zM8.34 5.55a1 1 0 0 1 .9-.55h5.52a1 1 0 0 1 .9.55L18.38 11H5.62zM18 19H6a1 1 0 0 1-1-1v-5h14v5a1 1 0 0 1-1 1z"/><path d="M16 15h-4a1 1 0 0 0 0 2h4a1 1 0 0 0 0-2z"/><circle cx="8" cy="16" r="1"/></g></g>',"hash-outline":'<g data-name="Layer 2"><g data-name="hash"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M20 14h-4.3l.73-4H20a1 1 0 0 0 0-2h-3.21l.69-3.81A1 1 0 0 0 16.64 3a1 1 0 0 0-1.22.82L14.67 8h-3.88l.69-3.81A1 1 0 0 0 10.64 3a1 1 0 0 0-1.22.82L8.67 8H4a1 1 0 0 0 0 2h4.3l-.73 4H4a1 1 0 0 0 0 2h3.21l-.69 3.81A1 1 0 0 0 7.36 21a1 1 0 0 0 1.22-.82L9.33 16h3.88l-.69 3.81a1 1 0 0 0 .84 1.19 1 1 0 0 0 1.22-.82l.75-4.18H20a1 1 0 0 0 0-2zM9.7 14l.73-4h3.87l-.73 4z"/></g></g>',"headphones-outline":'<g data-name="Layer 2"><g data-name="headphones"><rect width="24" height="24" opacity="0"/><path d="M12 2A10.2 10.2 0 0 0 2 12.37V17a4 4 0 1 0 4-4 3.91 3.91 0 0 0-2 .56v-1.19A8.2 8.2 0 0 1 12 4a8.2 8.2 0 0 1 8 8.37v1.19a3.91 3.91 0 0 0-2-.56 4 4 0 1 0 4 4v-4.63A10.2 10.2 0 0 0 12 2zM6 15a2 2 0 1 1-2 2 2 2 0 0 1 2-2zm12 4a2 2 0 1 1 2-2 2 2 0 0 1-2 2z"/></g></g>',"heart-outline":'<g data-name="Layer 2"><g data-name="heart"><rect width="24" height="24" opacity="0"/><path d="M12 21a1 1 0 0 1-.71-.29l-7.77-7.78a5.26 5.26 0 0 1 0-7.4 5.24 5.24 0 0 1 7.4 0L12 6.61l1.08-1.08a5.24 5.24 0 0 1 7.4 0 5.26 5.26 0 0 1 0 7.4l-7.77 7.78A1 1 0 0 1 12 21zM7.22 6a3.2 3.2 0 0 0-2.28.94 3.24 3.24 0 0 0 0 4.57L12 18.58l7.06-7.07a3.24 3.24 0 0 0 0-4.57 3.32 3.32 0 0 0-4.56 0l-1.79 1.8a1 1 0 0 1-1.42 0L9.5 6.94A3.2 3.2 0 0 0 7.22 6z"/></g></g>',"home-outline":'<g data-name="Layer 2"><g data-name="home"><rect width="24" height="24" opacity="0"/><path d="M20.42 10.18L12.71 2.3a1 1 0 0 0-1.42 0l-7.71 7.89A2 2 0 0 0 3 11.62V20a2 2 0 0 0 1.89 2h14.22A2 2 0 0 0 21 20v-8.38a2.07 2.07 0 0 0-.58-1.44zM10 20v-6h4v6zm9 0h-3v-7a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v7H5v-8.42l7-7.15 7 7.19z"/></g></g>',"image-outline":'<g data-name="Layer 2"><g data-name="image"><rect width="24" height="24" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zM6 5h12a1 1 0 0 1 1 1v8.36l-3.2-2.73a2.77 2.77 0 0 0-3.52 0L5 17.7V6a1 1 0 0 1 1-1zm12 14H6.56l7-5.84a.78.78 0 0 1 .93 0L19 17v1a1 1 0 0 1-1 1z"/><circle cx="8" cy="8.5" r="1.5"/></g></g>',"inbox-outline":'<g data-name="Layer 2"><g data-name="inbox"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M20.79 11.34l-3.34-6.68A3 3 0 0 0 14.76 3H9.24a3 3 0 0 0-2.69 1.66l-3.34 6.68a2 2 0 0 0-.21.9V18a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3v-5.76a2 2 0 0 0-.21-.9zM8.34 5.55a1 1 0 0 1 .9-.55h5.52a1 1 0 0 1 .9.55L18.38 11H16a1 1 0 0 0-1 1v3H9v-3a1 1 0 0 0-1-1H5.62zM18 19H6a1 1 0 0 1-1-1v-5h2v3a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-3h2v5a1 1 0 0 1-1 1z"/></g></g>',"info-outline":'<g data-name="Layer 2"><g data-name="info"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><circle cx="12" cy="8" r="1"/><path d="M12 10a1 1 0 0 0-1 1v5a1 1 0 0 0 2 0v-5a1 1 0 0 0-1-1z"/></g></g>',"keypad-outline":'<g data-name="Layer 2"><g data-name="keypad"><rect width="24" height="24" opacity="0"/><path d="M5 2a3 3 0 1 0 3 3 3 3 0 0 0-3-3zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/><path d="M12 2a3 3 0 1 0 3 3 3 3 0 0 0-3-3zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/><path d="M19 8a3 3 0 1 0-3-3 3 3 0 0 0 3 3zm0-4a1 1 0 1 1-1 1 1 1 0 0 1 1-1z"/><path d="M5 9a3 3 0 1 0 3 3 3 3 0 0 0-3-3zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/><path d="M12 9a3 3 0 1 0 3 3 3 3 0 0 0-3-3zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/><path d="M19 9a3 3 0 1 0 3 3 3 3 0 0 0-3-3zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/><path d="M5 16a3 3 0 1 0 3 3 3 3 0 0 0-3-3zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/><path d="M12 16a3 3 0 1 0 3 3 3 3 0 0 0-3-3zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/><path d="M19 16a3 3 0 1 0 3 3 3 3 0 0 0-3-3zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/></g></g>',"layers-outline":'<g data-name="Layer 2"><g data-name="layers"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M21 11.35a1 1 0 0 0-.61-.86l-2.15-.92 2.26-1.3a1 1 0 0 0 .5-.92 1 1 0 0 0-.61-.86l-8-3.41a1 1 0 0 0-.78 0l-8 3.41a1 1 0 0 0-.61.86 1 1 0 0 0 .5.92l2.26 1.3-2.15.92a1 1 0 0 0-.61.86 1 1 0 0 0 .5.92l2.26 1.3-2.15.92a1 1 0 0 0-.61.86 1 1 0 0 0 .5.92l8 4.6a1 1 0 0 0 1 0l8-4.6a1 1 0 0 0 .5-.92 1 1 0 0 0-.61-.86l-2.15-.92 2.26-1.3a1 1 0 0 0 .5-.92zm-9-6.26l5.76 2.45L12 10.85 6.24 7.54zm-.5 7.78a1 1 0 0 0 1 0l3.57-2 1.69.72L12 14.85l-5.76-3.31 1.69-.72zm6.26 2.67L12 18.85l-5.76-3.31 1.69-.72 3.57 2.05a1 1 0 0 0 1 0l3.57-2.05z"/></g></g>',"layout-outline":'<g data-name="Layer 2"><g data-name="layout"><rect width="24" height="24" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zM6 5h12a1 1 0 0 1 1 1v2H5V6a1 1 0 0 1 1-1zM5 18v-8h6v9H6a1 1 0 0 1-1-1zm13 1h-5v-9h6v8a1 1 0 0 1-1 1z"/></g></g>',"link-2-outline":'<g data-name="Layer 2"><g data-name="link-2"><rect width="24" height="24" opacity="0"/><path d="M13.29 9.29l-4 4a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l4-4a1 1 0 0 0-1.42-1.42z"/><path d="M12.28 17.4L11 18.67a4.2 4.2 0 0 1-5.58.4 4 4 0 0 1-.27-5.93l1.42-1.43a1 1 0 0 0 0-1.42 1 1 0 0 0-1.42 0l-1.27 1.28a6.15 6.15 0 0 0-.67 8.07 6.06 6.06 0 0 0 9.07.6l1.42-1.42a1 1 0 0 0-1.42-1.42z"/><path d="M19.66 3.22a6.18 6.18 0 0 0-8.13.68L10.45 5a1.09 1.09 0 0 0-.17 1.61 1 1 0 0 0 1.42 0L13 5.3a4.17 4.17 0 0 1 5.57-.4 4 4 0 0 1 .27 5.95l-1.42 1.43a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l1.42-1.42a6.06 6.06 0 0 0-.6-9.06z"/></g></g>',"link-outline":'<g data-name="Layer 2"><g data-name="link"><rect width="24" height="24" opacity="0"/><path d="M8 12a1 1 0 0 0 1 1h6a1 1 0 0 0 0-2H9a1 1 0 0 0-1 1z"/><path d="M9 16H7.21A4.13 4.13 0 0 1 3 12.37 4 4 0 0 1 7 8h2a1 1 0 0 0 0-2H7.21a6.15 6.15 0 0 0-6.16 5.21A6 6 0 0 0 7 18h2a1 1 0 0 0 0-2z"/><path d="M23 11.24A6.16 6.16 0 0 0 16.76 6h-1.51C14.44 6 14 6.45 14 7a1 1 0 0 0 1 1h1.79A4.13 4.13 0 0 1 21 11.63 4 4 0 0 1 17 16h-2a1 1 0 0 0 0 2h2a6 6 0 0 0 6-6.76z"/></g></g>',"linkedin-outline":'<g data-name="Layer 2"><g data-name="linkedin"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M20 22h-1.67a2 2 0 0 1-2-2v-5.37a.92.92 0 0 0-.69-.93.84.84 0 0 0-.67.19.85.85 0 0 0-.3.65V20a2 2 0 0 1-2 2H11a2 2 0 0 1-2-2v-5.46a6.5 6.5 0 1 1 13 0V20a2 2 0 0 1-2 2zm-4.5-10.31a3.73 3.73 0 0 1 .47 0 2.91 2.91 0 0 1 2.36 2.9V20H20v-5.46a4.5 4.5 0 1 0-9 0V20h1.67v-5.46a2.85 2.85 0 0 1 2.83-2.85z"/><path d="M6 22H4a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2zM4 10v10h2V10z"/><path d="M5 7a3 3 0 1 1 3-3 3 3 0 0 1-3 3zm0-4a1 1 0 1 0 1 1 1 1 0 0 0-1-1z"/></g></g>',"list-outline":'<g data-name="Layer 2"><g data-name="list"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><circle cx="4" cy="7" r="1"/><circle cx="4" cy="12" r="1"/><circle cx="4" cy="17" r="1"/><rect x="7" y="11" width="14" height="2" rx=".94" ry=".94"/><rect x="7" y="16" width="14" height="2" rx=".94" ry=".94"/><rect x="7" y="6" width="14" height="2" rx=".94" ry=".94"/></g></g>',"loader-outline":'<g data-name="Layer 2"><g data-name="loader"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M12 2a1 1 0 0 0-1 1v2a1 1 0 0 0 2 0V3a1 1 0 0 0-1-1z"/><path d="M21 11h-2a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2z"/><path d="M6 12a1 1 0 0 0-1-1H3a1 1 0 0 0 0 2h2a1 1 0 0 0 1-1z"/><path d="M6.22 5a1 1 0 0 0-1.39 1.47l1.44 1.39a1 1 0 0 0 .73.28 1 1 0 0 0 .72-.31 1 1 0 0 0 0-1.41z"/><path d="M17 8.14a1 1 0 0 0 .69-.28l1.44-1.39A1 1 0 0 0 17.78 5l-1.44 1.42a1 1 0 0 0 0 1.41 1 1 0 0 0 .66.31z"/><path d="M12 18a1 1 0 0 0-1 1v2a1 1 0 0 0 2 0v-2a1 1 0 0 0-1-1z"/><path d="M17.73 16.14a1 1 0 0 0-1.39 1.44L17.78 19a1 1 0 0 0 .69.28 1 1 0 0 0 .72-.3 1 1 0 0 0 0-1.42z"/><path d="M6.27 16.14l-1.44 1.39a1 1 0 0 0 0 1.42 1 1 0 0 0 .72.3 1 1 0 0 0 .67-.25l1.44-1.39a1 1 0 0 0-1.39-1.44z"/></g></g>',"lock-outline":'<g data-name="Layer 2"><g data-name="lock"><rect width="24" height="24" opacity="0"/><path d="M17 8h-1V6.11a4 4 0 1 0-8 0V8H7a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3v-8a3 3 0 0 0-3-3zm-7-1.89A2.06 2.06 0 0 1 12 4a2.06 2.06 0 0 1 2 2.11V8h-4zM18 19a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1z"/><path d="M12 12a3 3 0 1 0 3 3 3 3 0 0 0-3-3zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/></g></g>',"log-in-outline":'<g data-name="Layer 2"><g data-name="log-in"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M19 4h-2a1 1 0 0 0 0 2h1v12h-1a1 1 0 0 0 0 2h2a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1z"/><path d="M11.8 7.4a1 1 0 0 0-1.6 1.2L12 11H4a1 1 0 0 0 0 2h8.09l-1.72 2.44a1 1 0 0 0 .24 1.4 1 1 0 0 0 .58.18 1 1 0 0 0 .81-.42l2.82-4a1 1 0 0 0 0-1.18z"/></g></g>',"log-out-outline":'<g data-name="Layer 2"><g data-name="log-out"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M7 6a1 1 0 0 0 0-2H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h2a1 1 0 0 0 0-2H6V6z"/><path d="M20.82 11.42l-2.82-4a1 1 0 0 0-1.39-.24 1 1 0 0 0-.24 1.4L18.09 11H10a1 1 0 0 0 0 2h8l-1.8 2.4a1 1 0 0 0 .2 1.4 1 1 0 0 0 .6.2 1 1 0 0 0 .8-.4l3-4a1 1 0 0 0 .02-1.18z"/></g></g>',"map-outline":'<g data-name="Layer 2"><g data-name="map"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M20.41 5.89l-4-1.8H15.59L12 5.7 8.41 4.09h-.05L8.24 4h-.6l-4 1.8a1 1 0 0 0-.64 1V19a1 1 0 0 0 .46.84A1 1 0 0 0 4 20a1 1 0 0 0 .41-.09L8 18.3l3.59 1.61h.05a.85.85 0 0 0 .72 0h.05L16 18.3l3.59 1.61A1 1 0 0 0 20 20a1 1 0 0 0 .54-.16A1 1 0 0 0 21 19V6.8a1 1 0 0 0-.59-.91zM5 7.44l2-.89v10l-2 .89zm4-.89l2 .89v10l-2-.89zm4 .89l2-.89v10l-2 .89zm6 10l-2-.89v-10l2 .89z"/></g></g>',"maximize-outline":'<g data-name="Layer 2"><g data-name="maximize"><rect width="24" height="24" opacity="0"/><path d="M20.71 19.29l-3.4-3.39A7.92 7.92 0 0 0 19 11a8 8 0 1 0-8 8 7.92 7.92 0 0 0 4.9-1.69l3.39 3.4a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM5 11a6 6 0 1 1 6 6 6 6 0 0 1-6-6z"/><path d="M13 10h-1V9a1 1 0 0 0-2 0v1H9a1 1 0 0 0 0 2h1v1a1 1 0 0 0 2 0v-1h1a1 1 0 0 0 0-2z"/></g></g>',"menu-2-outline":'<g data-name="Layer 2"><g data-name="menu-2"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><circle cx="4" cy="12" r="1"/><rect x="7" y="11" width="14" height="2" rx=".94" ry=".94"/><rect x="3" y="16" width="18" height="2" rx=".94" ry=".94"/><rect x="3" y="6" width="18" height="2" rx=".94" ry=".94"/></g></g>',"menu-arrow-outline":'<g data-name="Layer 2"><g data-name="menu-arrow"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M20.05 11H5.91l1.3-1.29a1 1 0 0 0-1.42-1.42l-3 3a1 1 0 0 0 0 1.42l3 3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42L5.91 13h14.14a1 1 0 0 0 .95-.95V12a1 1 0 0 0-.95-1z"/><rect x="3" y="17" width="18" height="2" rx=".95" ry=".95"/><rect x="3" y="5" width="18" height="2" rx=".95" ry=".95"/></g></g>',"menu-outline":'<g data-name="Layer 2"><g data-name="menu"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><rect x="3" y="11" width="18" height="2" rx=".95" ry=".95"/><rect x="3" y="16" width="18" height="2" rx=".95" ry=".95"/><rect x="3" y="6" width="18" height="2" rx=".95" ry=".95"/></g></g>',"message-circle-outline":'<g data-name="Layer 2"><g data-name="message-circle"><circle cx="12" cy="12" r="1"/><circle cx="16" cy="12" r="1"/><circle cx="8" cy="12" r="1"/><path d="M19.07 4.93a10 10 0 0 0-16.28 11 1.06 1.06 0 0 1 .09.64L2 20.8a1 1 0 0 0 .27.91A1 1 0 0 0 3 22h.2l4.28-.86a1.26 1.26 0 0 1 .64.09 10 10 0 0 0 11-16.28zm.83 8.36a8 8 0 0 1-11 6.08 3.26 3.26 0 0 0-1.25-.26 3.43 3.43 0 0 0-.56.05l-2.82.57.57-2.82a3.09 3.09 0 0 0-.21-1.81 8 8 0 0 1 6.08-11 8 8 0 0 1 9.19 9.19z"/><rect width="24" height="24" opacity="0"/></g></g>',"message-square-outline":'<g data-name="Layer 2"><g data-name="message-square"><rect width="24" height="24" opacity="0"/><circle cx="12" cy="11" r="1"/><circle cx="16" cy="11" r="1"/><circle cx="8" cy="11" r="1"/><path d="M19 3H5a3 3 0 0 0-3 3v15a1 1 0 0 0 .51.87A1 1 0 0 0 3 22a1 1 0 0 0 .51-.14L8 19.14a1 1 0 0 1 .55-.14H19a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm1 13a1 1 0 0 1-1 1H8.55a3 3 0 0 0-1.55.43l-3 1.8V6a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1z"/></g></g>',"mic-off-outline":'<g data-name="Layer 2"><g data-name="mic-off"><rect width="24" height="24" opacity="0"/><path d="M10 6a2 2 0 0 1 4 0v5a1 1 0 0 1 0 .16l1.6 1.59A4 4 0 0 0 16 11V6a4 4 0 0 0-7.92-.75L10 7.17z"/><path d="M19 11a1 1 0 0 0-2 0 4.86 4.86 0 0 1-.69 2.48L17.78 15A7 7 0 0 0 19 11z"/><path d="M12 15h.16L8 10.83V11a4 4 0 0 0 4 4z"/><path d="M20.71 19.29l-16-16a1 1 0 0 0-1.42 1.42l16 16a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/><path d="M15 20h-2v-2.08a7 7 0 0 0 1.65-.44l-1.6-1.6A4.57 4.57 0 0 1 12 16a5 5 0 0 1-5-5 1 1 0 0 0-2 0 7 7 0 0 0 6 6.92V20H9a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2z"/></g></g>',"mic-outline":'<g data-name="Layer 2"><g data-name="mic"><rect width="24" height="24" opacity="0"/><path d="M12 15a4 4 0 0 0 4-4V6a4 4 0 0 0-8 0v5a4 4 0 0 0 4 4zm-2-9a2 2 0 0 1 4 0v5a2 2 0 0 1-4 0z"/><path d="M19 11a1 1 0 0 0-2 0 5 5 0 0 1-10 0 1 1 0 0 0-2 0 7 7 0 0 0 6 6.92V20H8.89a.89.89 0 0 0-.89.89v.22a.89.89 0 0 0 .89.89h6.22a.89.89 0 0 0 .89-.89v-.22a.89.89 0 0 0-.89-.89H13v-2.08A7 7 0 0 0 19 11z"/></g></g>',"minimize-outline":'<g data-name="Layer 2"><g data-name="minimize"><rect width="24" height="24" opacity="0"/><path d="M20.71 19.29l-3.4-3.39A7.92 7.92 0 0 0 19 11a8 8 0 1 0-8 8 7.92 7.92 0 0 0 4.9-1.69l3.39 3.4a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM5 11a6 6 0 1 1 6 6 6 6 0 0 1-6-6z"/><path d="M13 10H9a1 1 0 0 0 0 2h4a1 1 0 0 0 0-2z"/></g></g>',"minus-circle-outline":'<g data-name="Layer 2"><g data-name="minus-circle"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M15 11H9a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2z"/></g></g>',"minus-outline":'<g data-name="Layer 2"><g data-name="minus"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M19 13H5a1 1 0 0 1 0-2h14a1 1 0 0 1 0 2z"/></g></g>',"minus-square-outline":'<g data-name="Layer 2"><g data-name="minus-square"><rect width="24" height="24" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm1 15a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1z"/><path d="M15 11H9a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2z"/></g></g>',"monitor-outline":'<g data-name="Layer 2"><g data-name="monitor"><rect width="24" height="24" opacity="0"/><path d="M19 3H5a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h6v2H7a1 1 0 0 0 0 2h10a1 1 0 0 0 0-2h-4v-2h6a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm1 11a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1z"/></g></g>',"moon-outline":'<g data-name="Layer 2"><g data-name="moon"><rect width="24" height="24" opacity="0"/><path d="M12.3 22h-.1a10.31 10.31 0 0 1-7.34-3.15 10.46 10.46 0 0 1-.26-14 10.13 10.13 0 0 1 4-2.74 1 1 0 0 1 1.06.22 1 1 0 0 1 .24 1 8.4 8.4 0 0 0 1.94 8.81 8.47 8.47 0 0 0 8.83 1.94 1 1 0 0 1 1.27 1.29A10.16 10.16 0 0 1 19.6 19a10.28 10.28 0 0 1-7.3 3zM7.46 4.92a7.93 7.93 0 0 0-1.37 1.22 8.44 8.44 0 0 0 .2 11.32A8.29 8.29 0 0 0 12.22 20h.08a8.34 8.34 0 0 0 6.78-3.49A10.37 10.37 0 0 1 7.46 4.92z"/></g></g>',"more-horizontal-outline":'<g data-name="Layer 2"><g data-name="more-horizotnal"><rect width="24" height="24" opacity="0"/><circle cx="12" cy="12" r="2"/><circle cx="19" cy="12" r="2"/><circle cx="5" cy="12" r="2"/></g></g>',"more-vertical-outline":'<g data-name="Layer 2"><g data-name="more-vertical"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><circle cx="12" cy="12" r="2"/><circle cx="12" cy="5" r="2"/><circle cx="12" cy="19" r="2"/></g></g>',"move-outline":'<g data-name="Layer 2"><g data-name="move"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M21.71 11.31l-3-3a1 1 0 0 0-1.42 1.42L18.58 11H13V5.41l1.29 1.3A1 1 0 0 0 15 7a1 1 0 0 0 .71-.29 1 1 0 0 0 0-1.42l-3-3A1 1 0 0 0 12 2a1 1 0 0 0-.7.29l-3 3a1 1 0 0 0 1.41 1.42L11 5.42V11H5.41l1.3-1.29a1 1 0 0 0-1.42-1.42l-3 3A1 1 0 0 0 2 12a1 1 0 0 0 .29.71l3 3A1 1 0 0 0 6 16a1 1 0 0 0 .71-.29 1 1 0 0 0 0-1.42L5.42 13H11v5.59l-1.29-1.3a1 1 0 0 0-1.42 1.42l3 3A1 1 0 0 0 12 22a1 1 0 0 0 .7-.29l3-3a1 1 0 0 0-1.42-1.42L13 18.58V13h5.59l-1.3 1.29a1 1 0 0 0 0 1.42A1 1 0 0 0 18 16a1 1 0 0 0 .71-.29l3-3A1 1 0 0 0 22 12a1 1 0 0 0-.29-.69z"/></g></g>',"music-outline":'<g data-name="Layer 2"><g data-name="music"><rect width="24" height="24" opacity="0"/><path d="M19 15V4a1 1 0 0 0-.38-.78 1 1 0 0 0-.84-.2l-9 2A1 1 0 0 0 8 6v8.34a3.49 3.49 0 1 0 2 3.18 4.36 4.36 0 0 0 0-.52V6.8l7-1.55v7.09a3.49 3.49 0 1 0 2 3.17 4.57 4.57 0 0 0 0-.51zM6.54 19A1.49 1.49 0 1 1 8 17.21a1.53 1.53 0 0 1 0 .3A1.49 1.49 0 0 1 6.54 19zm9-2A1.5 1.5 0 1 1 17 15.21a1.53 1.53 0 0 1 0 .3A1.5 1.5 0 0 1 15.51 17z"/></g></g>',"navigation-2-outline":'<g data-name="Layer 2"><g data-name="navigation-2"><rect width="24" height="24" opacity="0"/><path d="M13.67 22h-.06a1 1 0 0 1-.92-.8L11 13l-8.2-1.69a1 1 0 0 1-.12-1.93l16-5.33A1 1 0 0 1 20 5.32l-5.33 16a1 1 0 0 1-1 .68zm-6.8-11.9l5.19 1.06a1 1 0 0 1 .79.78l1.05 5.19 3.52-10.55z"/></g></g>',"navigation-outline":'<g data-name="Layer 2"><g data-name="navigation"><rect width="24" height="24" opacity="0"/><path d="M20 20a.94.94 0 0 1-.55-.17L12 14.9l-7.45 4.93a1 1 0 0 1-1.44-1.28l8-16a1 1 0 0 1 1.78 0l8 16a1 1 0 0 1-.23 1.2A1 1 0 0 1 20 20zm-8-7.3a1 1 0 0 1 .55.17l4.88 3.23L12 5.24 6.57 16.1l4.88-3.23a1 1 0 0 1 .55-.17z"/></g></g>',"npm-outline":'<g data-name="Layer 2"><g data-name="npm"><rect width="24" height="24" opacity="0"/><path d="M18 21H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3zM6 5a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1z"/><rect x="12" y="9" width="4" height="10"/></g></g>',"options-2-outline":'<g data-name="Layer 2"><g data-name="options-2"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M19 9a3 3 0 0 0-2.82 2H3a1 1 0 0 0 0 2h13.18A3 3 0 1 0 19 9zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/><path d="M3 7h1.18a3 3 0 0 0 5.64 0H21a1 1 0 0 0 0-2H9.82a3 3 0 0 0-5.64 0H3a1 1 0 0 0 0 2zm4-2a1 1 0 1 1-1 1 1 1 0 0 1 1-1z"/><path d="M21 17h-7.18a3 3 0 0 0-5.64 0H3a1 1 0 0 0 0 2h5.18a3 3 0 0 0 5.64 0H21a1 1 0 0 0 0-2zm-10 2a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/></g></g>',"options-outline":'<g data-name="Layer 2"><g data-name="options"><rect width="24" height="24" opacity="0"/><path d="M7 14.18V3a1 1 0 0 0-2 0v11.18a3 3 0 0 0 0 5.64V21a1 1 0 0 0 2 0v-1.18a3 3 0 0 0 0-5.64zM6 18a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/><path d="M21 13a3 3 0 0 0-2-2.82V3a1 1 0 0 0-2 0v7.18a3 3 0 0 0 0 5.64V21a1 1 0 0 0 2 0v-5.18A3 3 0 0 0 21 13zm-3 1a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/><path d="M15 5a3 3 0 1 0-4 2.82V21a1 1 0 0 0 2 0V7.82A3 3 0 0 0 15 5zm-3 1a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/></g></g>',"pantone-outline":'<g data-name="Layer 2"><g data-name="pantone"><rect width="24" height="24" opacity="0"/><path d="M20 13.18h-4.06l2.3-2.47a1 1 0 0 0 0-1.41l-4.19-3.86a.93.93 0 0 0-.71-.26 1 1 0 0 0-.7.31l-1.82 2V4a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v13.09A3.91 3.91 0 0 0 6.91 21H20a1 1 0 0 0 1-1v-5.82a1 1 0 0 0-1-1zm-6.58-5.59l2.67 2.49-5.27 5.66v-5.36zM8.82 10v3H5v-3zm0-5v3H5V5zM5 17.09V15h3.82v2.09a1.91 1.91 0 0 1-3.82 0zM19 19h-8.49l3.56-3.82H19z"/></g></g>',"paper-plane-outline":'<g data-name="Layer 2"><g data-name="paper-plane"><rect width="24" height="24" opacity="0"/><path d="M21 4a1.31 1.31 0 0 0-.06-.27v-.09a1 1 0 0 0-.2-.3 1 1 0 0 0-.29-.19h-.09a.86.86 0 0 0-.31-.15H20a1 1 0 0 0-.3 0l-18 6a1 1 0 0 0 0 1.9l8.53 2.84 2.84 8.53a1 1 0 0 0 1.9 0l6-18A1 1 0 0 0 21 4zm-4.7 2.29l-5.57 5.57L5.16 10zM14 18.84l-1.86-5.57 5.57-5.57z"/></g></g>',"pause-circle-outline":'<g data-name="Layer 2"><g data-name="pause-circle"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M15 8a1 1 0 0 0-1 1v6a1 1 0 0 0 2 0V9a1 1 0 0 0-1-1z"/><path d="M9 8a1 1 0 0 0-1 1v6a1 1 0 0 0 2 0V9a1 1 0 0 0-1-1z"/></g></g>',"people-outline":'<g data-name="Layer 2"><g data-name="people"><rect width="24" height="24" opacity="0"/><path d="M9 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0-6a2 2 0 1 1-2 2 2 2 0 0 1 2-2z"/><path d="M17 13a3 3 0 1 0-3-3 3 3 0 0 0 3 3zm0-4a1 1 0 1 1-1 1 1 1 0 0 1 1-1z"/><path d="M17 14a5 5 0 0 0-3.06 1.05A7 7 0 0 0 2 20a1 1 0 0 0 2 0 5 5 0 0 1 10 0 1 1 0 0 0 2 0 6.9 6.9 0 0 0-.86-3.35A3 3 0 0 1 20 19a1 1 0 0 0 2 0 5 5 0 0 0-5-5z"/></g></g>',"percent-outline":'<g data-name="Layer 2"><g data-name="percent"><rect width="24" height="24" opacity="0"/><path d="M8 11a3.5 3.5 0 1 0-3.5-3.5A3.5 3.5 0 0 0 8 11zm0-5a1.5 1.5 0 1 1-1.5 1.5A1.5 1.5 0 0 1 8 6z"/><path d="M16 14a3.5 3.5 0 1 0 3.5 3.5A3.5 3.5 0 0 0 16 14zm0 5a1.5 1.5 0 1 1 1.5-1.5A1.5 1.5 0 0 1 16 19z"/><path d="M19.74 4.26a.89.89 0 0 0-1.26 0L4.26 18.48a.91.91 0 0 0-.26.63.89.89 0 0 0 1.52.63L19.74 5.52a.89.89 0 0 0 0-1.26z"/></g></g>',"person-add-outline":'<g data-name="Layer 2"><g data-name="person-add"><rect width="24" height="24" opacity="0"/><path d="M21 6h-1V5a1 1 0 0 0-2 0v1h-1a1 1 0 0 0 0 2h1v1a1 1 0 0 0 2 0V8h1a1 1 0 0 0 0-2z"/><path d="M10 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0-6a2 2 0 1 1-2 2 2 2 0 0 1 2-2z"/><path d="M10 13a7 7 0 0 0-7 7 1 1 0 0 0 2 0 5 5 0 0 1 10 0 1 1 0 0 0 2 0 7 7 0 0 0-7-7z"/></g></g>',"person-delete-outline":'<g data-name="Layer 2"><g data-name="person-delete"><rect width="24" height="24" opacity="0"/><path d="M20.47 7.5l.73-.73a1 1 0 0 0-1.47-1.47L19 6l-.73-.73a1 1 0 0 0-1.47 1.5l.73.73-.73.73a1 1 0 0 0 1.47 1.47L19 9l.73.73a1 1 0 0 0 1.47-1.5z"/><path d="M10 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0-6a2 2 0 1 1-2 2 2 2 0 0 1 2-2z"/><path d="M10 13a7 7 0 0 0-7 7 1 1 0 0 0 2 0 5 5 0 0 1 10 0 1 1 0 0 0 2 0 7 7 0 0 0-7-7z"/></g></g>',"person-done-outline":'<g data-name="Layer 2"><g data-name="person-done"><rect width="24" height="24" opacity="0"/><path d="M21.66 4.25a1 1 0 0 0-1.41.09l-1.87 2.15-.63-.71a1 1 0 0 0-1.5 1.33l1.39 1.56a1 1 0 0 0 .75.33 1 1 0 0 0 .74-.34l2.61-3a1 1 0 0 0-.08-1.41z"/><path d="M10 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0-6a2 2 0 1 1-2 2 2 2 0 0 1 2-2z"/><path d="M10 13a7 7 0 0 0-7 7 1 1 0 0 0 2 0 5 5 0 0 1 10 0 1 1 0 0 0 2 0 7 7 0 0 0-7-7z"/></g></g>',"person-outline":'<g data-name="Layer 2"><g data-name="person"><rect width="24" height="24" opacity="0"/><path d="M12 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0-6a2 2 0 1 1-2 2 2 2 0 0 1 2-2z"/><path d="M12 13a7 7 0 0 0-7 7 1 1 0 0 0 2 0 5 5 0 0 1 10 0 1 1 0 0 0 2 0 7 7 0 0 0-7-7z"/></g></g>',"person-remove-outline":'<g data-name="Layer 2"><g data-name="person-remove"><rect width="24" height="24" opacity="0"/><path d="M21 6h-4a1 1 0 0 0 0 2h4a1 1 0 0 0 0-2z"/><path d="M10 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0-6a2 2 0 1 1-2 2 2 2 0 0 1 2-2z"/><path d="M10 13a7 7 0 0 0-7 7 1 1 0 0 0 2 0 5 5 0 0 1 10 0 1 1 0 0 0 2 0 7 7 0 0 0-7-7z"/></g></g>',"phone-call-outline":'<g data-name="Layer 2"><g data-name="phone-call"><rect width="24" height="24" opacity="0"/><path d="M13 8a3 3 0 0 1 3 3 1 1 0 0 0 2 0 5 5 0 0 0-5-5 1 1 0 0 0 0 2z"/><path d="M13 4a7 7 0 0 1 7 7 1 1 0 0 0 2 0 9 9 0 0 0-9-9 1 1 0 0 0 0 2z"/><path d="M21.75 15.91a1 1 0 0 0-.72-.65l-6-1.37a1 1 0 0 0-.92.26c-.14.13-.15.14-.8 1.38a9.91 9.91 0 0 1-4.87-4.89C9.71 10 9.72 10 9.85 9.85a1 1 0 0 0 .26-.92L8.74 3a1 1 0 0 0-.65-.72 3.79 3.79 0 0 0-.72-.18A3.94 3.94 0 0 0 6.6 2 4.6 4.6 0 0 0 2 6.6 15.42 15.42 0 0 0 17.4 22a4.6 4.6 0 0 0 4.6-4.6 4.77 4.77 0 0 0-.06-.76 4.34 4.34 0 0 0-.19-.73zM17.4 20A13.41 13.41 0 0 1 4 6.6 2.61 2.61 0 0 1 6.6 4h.33L8 8.64l-.54.28c-.86.45-1.54.81-1.18 1.59a11.85 11.85 0 0 0 7.18 7.21c.84.34 1.17-.29 1.62-1.16l.29-.55L20 17.07v.33a2.61 2.61 0 0 1-2.6 2.6z"/></g></g>',"phone-missed-outline":'<g data-name="Layer 2"><g data-name="phone-missed"><rect width="24" height="24" opacity="0"/><path d="M21.94 16.64a4.34 4.34 0 0 0-.19-.73 1 1 0 0 0-.72-.65l-6-1.37a1 1 0 0 0-.92.26c-.14.13-.15.14-.8 1.38a10 10 0 0 1-4.88-4.89C9.71 10 9.72 10 9.85 9.85a1 1 0 0 0 .26-.92L8.74 3a1 1 0 0 0-.65-.72 3.79 3.79 0 0 0-.72-.18A3.94 3.94 0 0 0 6.6 2 4.6 4.6 0 0 0 2 6.6 15.42 15.42 0 0 0 17.4 22a4.6 4.6 0 0 0 4.6-4.6 4.77 4.77 0 0 0-.06-.76zM17.4 20A13.41 13.41 0 0 1 4 6.6 2.61 2.61 0 0 1 6.6 4h.33L8 8.64l-.55.29c-.87.45-1.5.78-1.17 1.58a11.85 11.85 0 0 0 7.18 7.21c.84.34 1.17-.29 1.62-1.16l.29-.55L20 17.07v.33a2.61 2.61 0 0 1-2.6 2.6z"/><path d="M15.8 8.7a1.05 1.05 0 0 0 1.47 0L18 8l.73.73a1 1 0 0 0 1.47-1.5l-.73-.73.73-.73a1 1 0 0 0-1.47-1.47L18 5l-.73-.73a1 1 0 0 0-1.47 1.5l.73.73-.73.73a1.05 1.05 0 0 0 0 1.47z"/></g></g>',"phone-off-outline":'<g data-name="Layer 2"><g data-name="phone-off"><rect width="24" height="24" opacity="0"/><path d="M19.74 4.26a.89.89 0 0 0-1.26 0L4.26 18.48a.91.91 0 0 0-.26.63.89.89 0 0 0 1.52.63L19.74 5.52a.89.89 0 0 0 0-1.26z"/><path d="M6.7 14.63A13.29 13.29 0 0 1 4 6.6 2.61 2.61 0 0 1 6.6 4h.33L8 8.64l-.55.29c-.87.45-1.5.78-1.17 1.58a11.57 11.57 0 0 0 1.57 3l1.43-1.42a10.37 10.37 0 0 1-.8-1.42C9.71 10 9.72 10 9.85 9.85a1 1 0 0 0 .26-.92L8.74 3a1 1 0 0 0-.65-.72 3.79 3.79 0 0 0-.72-.18A3.94 3.94 0 0 0 6.6 2 4.6 4.6 0 0 0 2 6.6a15.33 15.33 0 0 0 3.27 9.46z"/><path d="M21.94 16.64a4.34 4.34 0 0 0-.19-.73 1 1 0 0 0-.72-.65l-6-1.37a1 1 0 0 0-.92.26c-.14.13-.15.14-.8 1.38a10.88 10.88 0 0 1-1.41-.8l-1.43 1.43a11.52 11.52 0 0 0 2.94 1.56c.84.34 1.17-.29 1.62-1.16l.29-.55L20 17.07v.33a2.61 2.61 0 0 1-2.6 2.6 13.29 13.29 0 0 1-8-2.7l-1.46 1.43A15.33 15.33 0 0 0 17.4 22a4.6 4.6 0 0 0 4.6-4.6 4.77 4.77 0 0 0-.06-.76z"/></g></g>',"phone-outline":'<g data-name="Layer 2"><g data-name="phone"><rect width="24" height="24" opacity="0"/><path d="M17.4 22A15.42 15.42 0 0 1 2 6.6 4.6 4.6 0 0 1 6.6 2a3.94 3.94 0 0 1 .77.07 3.79 3.79 0 0 1 .72.18 1 1 0 0 1 .65.75l1.37 6a1 1 0 0 1-.26.92c-.13.14-.14.15-1.37.79a9.91 9.91 0 0 0 4.87 4.89c.65-1.24.66-1.25.8-1.38a1 1 0 0 1 .92-.26l6 1.37a1 1 0 0 1 .72.65 4.34 4.34 0 0 1 .19.73 4.77 4.77 0 0 1 .06.76A4.6 4.6 0 0 1 17.4 22zM6.6 4A2.61 2.61 0 0 0 4 6.6 13.41 13.41 0 0 0 17.4 20a2.61 2.61 0 0 0 2.6-2.6v-.33L15.36 16l-.29.55c-.45.87-.78 1.5-1.62 1.16a11.85 11.85 0 0 1-7.18-7.21c-.36-.78.32-1.14 1.18-1.59L8 8.64 6.93 4z"/></g></g>',"pie-chart-outline":'<g data-name="Layer 2"><g data-name="pie-chart"><rect width="24" height="24" opacity="0"/><path d="M13 2a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1 9 9 0 0 0-9-9zm1 8V4.07A7 7 0 0 1 19.93 10z"/><path d="M20.82 14.06a1 1 0 0 0-1.28.61A8 8 0 1 1 9.33 4.46a1 1 0 0 0-.66-1.89 10 10 0 1 0 12.76 12.76 1 1 0 0 0-.61-1.27z"/></g></g>',"pin-outline":'<g data-name="Layer 2"><g data-name="pin"><rect width="24" height="24" opacity="0"/><path d="M12 2a8 8 0 0 0-8 7.92c0 5.48 7.05 11.58 7.35 11.84a1 1 0 0 0 1.3 0C13 21.5 20 15.4 20 9.92A8 8 0 0 0 12 2zm0 17.65c-1.67-1.59-6-6-6-9.73a6 6 0 0 1 12 0c0 3.7-4.33 8.14-6 9.73z"/><path d="M12 6a3.5 3.5 0 1 0 3.5 3.5A3.5 3.5 0 0 0 12 6zm0 5a1.5 1.5 0 1 1 1.5-1.5A1.5 1.5 0 0 1 12 11z"/></g></g>',"play-circle-outline":'<g data-name="Layer 2"><g data-name="play-circle"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M12.34 7.45a1.7 1.7 0 0 0-1.85-.3 1.6 1.6 0 0 0-1 1.48v6.74a1.6 1.6 0 0 0 1 1.48 1.68 1.68 0 0 0 .69.15 1.74 1.74 0 0 0 1.16-.45L16 13.18a1.6 1.6 0 0 0 0-2.36zm-.84 7.15V9.4l2.81 2.6z"/></g></g>',"plus-circle-outline":'<g data-name="Layer 2"><g data-name="plus-circle"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M15 11h-2V9a1 1 0 0 0-2 0v2H9a1 1 0 0 0 0 2h2v2a1 1 0 0 0 2 0v-2h2a1 1 0 0 0 0-2z"/></g></g>',"plus-outline":'<g data-name="Layer 2"><g data-name="plus"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M19 11h-6V5a1 1 0 0 0-2 0v6H5a1 1 0 0 0 0 2h6v6a1 1 0 0 0 2 0v-6h6a1 1 0 0 0 0-2z"/></g></g>',"plus-square-outline":'<g data-name="Layer 2"><g data-name="plus-square"><rect width="24" height="24" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm1 15a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1z"/><path d="M15 11h-2V9a1 1 0 0 0-2 0v2H9a1 1 0 0 0 0 2h2v2a1 1 0 0 0 2 0v-2h2a1 1 0 0 0 0-2z"/></g></g>',"power-outline":'<g data-name="Layer 2"><g data-name="power"><rect width="24" height="24" opacity="0"/><path d="M12 13a1 1 0 0 0 1-1V2a1 1 0 0 0-2 0v10a1 1 0 0 0 1 1z"/><path d="M16.59 3.11a1 1 0 0 0-.92 1.78 8 8 0 1 1-7.34 0 1 1 0 1 0-.92-1.78 10 10 0 1 0 9.18 0z"/></g></g>',"pricetags-outline":'<g data-name="Layer 2"><g data-name="pricetags"><rect width="24" height="24" opacity="0"/><path d="M12.87 22a1.84 1.84 0 0 1-1.29-.53l-6.41-6.42a1 1 0 0 1-.29-.61L4 5.09a1 1 0 0 1 .29-.8 1 1 0 0 1 .8-.29l9.35.88a1 1 0 0 1 .61.29l6.42 6.41a1.82 1.82 0 0 1 0 2.57l-7.32 7.32a1.82 1.82 0 0 1-1.28.53zm-6-8.11l6 6 7.05-7.05-6-6-7.81-.73z"/><circle cx="10.5" cy="10.5" r="1.5"/></g></g>',"printer-outline":'<g data-name="Layer 2"><g data-name="printer"><rect width="24" height="24" opacity="0"/><path d="M19.36 7H18V5a1.92 1.92 0 0 0-1.83-2H7.83A1.92 1.92 0 0 0 6 5v2H4.64A2.66 2.66 0 0 0 2 9.67v6.66A2.66 2.66 0 0 0 4.64 19h.86a2 2 0 0 0 2 2h9a2 2 0 0 0 2-2h.86A2.66 2.66 0 0 0 22 16.33V9.67A2.66 2.66 0 0 0 19.36 7zM8 5h8v2H8zm-.5 14v-4h9v4zM20 16.33a.66.66 0 0 1-.64.67h-.86v-2a2 2 0 0 0-2-2h-9a2 2 0 0 0-2 2v2h-.86a.66.66 0 0 1-.64-.67V9.67A.66.66 0 0 1 4.64 9h14.72a.66.66 0 0 1 .64.67z"/></g></g>',"question-mark-circle-outline":'<g data-name="Layer 2"><g data-name="menu-arrow-circle"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M12 6a3.5 3.5 0 0 0-3.5 3.5 1 1 0 0 0 2 0A1.5 1.5 0 1 1 12 11a1 1 0 0 0-1 1v2a1 1 0 0 0 2 0v-1.16A3.49 3.49 0 0 0 12 6z"/><circle cx="12" cy="17" r="1"/></g></g>',"question-mark-outline":'<g data-name="Layer 2"><g data-name="question-mark"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M17 9A5 5 0 0 0 7 9a1 1 0 0 0 2 0 3 3 0 1 1 3 3 1 1 0 0 0-1 1v2a1 1 0 0 0 2 0v-1.1A5 5 0 0 0 17 9z"/><circle cx="12" cy="19" r="1"/></g></g>',"radio-button-off-outline":'<g data-name="Layer 2"><g data-name="radio-button-off"><rect width="24" height="24" opacity="0"/><path d="M12 22a10 10 0 1 1 10-10 10 10 0 0 1-10 10zm0-18a8 8 0 1 0 8 8 8 8 0 0 0-8-8z"/></g></g>',"radio-button-on-outline":'<g data-name="Layer 2"><g data-name="radio-button-on"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M12 7a5 5 0 1 0 5 5 5 5 0 0 0-5-5zm0 8a3 3 0 1 1 3-3 3 3 0 0 1-3 3z"/></g></g>',"radio-outline":'<g data-name="Layer 2"><g data-name="radio"><rect width="24" height="24" opacity="0"/><path d="M12 8a3 3 0 0 0-1 5.83 1 1 0 0 0 0 .17v6a1 1 0 0 0 2 0v-6a1 1 0 0 0 0-.17A3 3 0 0 0 12 8zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/><path d="M3.5 11a6.87 6.87 0 0 1 2.64-5.23 1 1 0 1 0-1.28-1.54A8.84 8.84 0 0 0 1.5 11a8.84 8.84 0 0 0 3.36 6.77 1 1 0 1 0 1.28-1.54A6.87 6.87 0 0 1 3.5 11z"/><path d="M16.64 6.24a1 1 0 0 0-1.28 1.52A4.28 4.28 0 0 1 17 11a4.28 4.28 0 0 1-1.64 3.24A1 1 0 0 0 16 16a1 1 0 0 0 .64-.24A6.2 6.2 0 0 0 19 11a6.2 6.2 0 0 0-2.36-4.76z"/><path d="M8.76 6.36a1 1 0 0 0-1.4-.12A6.2 6.2 0 0 0 5 11a6.2 6.2 0 0 0 2.36 4.76 1 1 0 0 0 1.4-.12 1 1 0 0 0-.12-1.4A4.28 4.28 0 0 1 7 11a4.28 4.28 0 0 1 1.64-3.24 1 1 0 0 0 .12-1.4z"/><path d="M19.14 4.23a1 1 0 1 0-1.28 1.54A6.87 6.87 0 0 1 20.5 11a6.87 6.87 0 0 1-2.64 5.23 1 1 0 0 0 1.28 1.54A8.84 8.84 0 0 0 22.5 11a8.84 8.84 0 0 0-3.36-6.77z"/></g></g>',"recording-outline":'<g data-name="Layer 2"><g data-name="recording"><rect width="24" height="24" opacity="0"/><path d="M18 8a4 4 0 0 0-4 4 3.91 3.91 0 0 0 .56 2H9.44a3.91 3.91 0 0 0 .56-2 4 4 0 1 0-4 4h12a4 4 0 0 0 0-8zM4 12a2 2 0 1 1 2 2 2 2 0 0 1-2-2zm14 2a2 2 0 1 1 2-2 2 2 0 0 1-2 2z"/></g></g>',"refresh-outline":'<g data-name="Layer 2"><g data-name="refresh"><rect width="24" height="24" opacity="0"/><path d="M20.3 13.43a1 1 0 0 0-1.25.65A7.14 7.14 0 0 1 12.18 19 7.1 7.1 0 0 1 5 12a7.1 7.1 0 0 1 7.18-7 7.26 7.26 0 0 1 4.65 1.67l-2.17-.36a1 1 0 0 0-1.15.83 1 1 0 0 0 .83 1.15l4.24.7h.17a1 1 0 0 0 .34-.06.33.33 0 0 0 .1-.06.78.78 0 0 0 .2-.11l.09-.11c0-.05.09-.09.13-.15s0-.1.05-.14a1.34 1.34 0 0 0 .07-.18l.75-4a1 1 0 0 0-2-.38l-.27 1.45A9.21 9.21 0 0 0 12.18 3 9.1 9.1 0 0 0 3 12a9.1 9.1 0 0 0 9.18 9A9.12 9.12 0 0 0 21 14.68a1 1 0 0 0-.7-1.25z"/></g></g>',"repeat-outline":'<g data-name="Layer 2"><g data-name="repeat"><rect width="24" height="24" opacity="0"/><path d="M17.91 5h-12l1.3-1.29a1 1 0 0 0-1.42-1.42l-3 3a1 1 0 0 0 0 1.42l3 3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42L5.91 7h12a1.56 1.56 0 0 1 1.59 1.53V11a1 1 0 0 0 2 0V8.53A3.56 3.56 0 0 0 17.91 5z"/><path d="M18.21 14.29a1 1 0 0 0-1.42 1.42l1.3 1.29h-12a1.56 1.56 0 0 1-1.59-1.53V13a1 1 0 0 0-2 0v2.47A3.56 3.56 0 0 0 6.09 19h12l-1.3 1.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l3-3a1 1 0 0 0 0-1.42z"/></g></g>',"rewind-left-outline":'<g data-name="Layer 2"><g data-name="rewind-left"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18.45 6.2a2.1 2.1 0 0 0-2.21.26l-4.74 3.92V7.79a1.76 1.76 0 0 0-1.05-1.59 2.1 2.1 0 0 0-2.21.26l-5.1 4.21a1.7 1.7 0 0 0 0 2.66l5.1 4.21a2.06 2.06 0 0 0 1.3.46 2.23 2.23 0 0 0 .91-.2 1.76 1.76 0 0 0 1.05-1.59v-2.59l4.74 3.92a2.06 2.06 0 0 0 1.3.46 2.23 2.23 0 0 0 .91-.2 1.76 1.76 0 0 0 1.05-1.59V7.79a1.76 1.76 0 0 0-1.05-1.59zM9.5 16l-4.82-4L9.5 8.09zm8 0l-4.82-4 4.82-3.91z"/></g></g>',"rewind-right-outline":'<g data-name="Layer 2"><g data-name="rewind-right"><rect width="24" height="24" opacity="0"/><path d="M20.86 10.67l-5.1-4.21a2.1 2.1 0 0 0-2.21-.26 1.76 1.76 0 0 0-1.05 1.59v2.59L7.76 6.46a2.1 2.1 0 0 0-2.21-.26 1.76 1.76 0 0 0-1 1.59v8.42a1.76 1.76 0 0 0 1 1.59 2.23 2.23 0 0 0 .91.2 2.06 2.06 0 0 0 1.3-.46l4.74-3.92v2.59a1.76 1.76 0 0 0 1.05 1.59 2.23 2.23 0 0 0 .91.2 2.06 2.06 0 0 0 1.3-.46l5.1-4.21a1.7 1.7 0 0 0 0-2.66zM6.5 15.91V8l4.82 4zm8 0V8l4.82 4z"/></g></g>',"save-outline":'<g data-name="Layer 2"><g data-name="save"><rect width="24" height="24" opacity="0"/><path d="M20.12 8.71l-4.83-4.83A3 3 0 0 0 13.17 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3v-7.17a3 3 0 0 0-.88-2.12zM10 19v-2h4v2zm9-1a1 1 0 0 1-1 1h-2v-3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h2v5a1 1 0 0 0 1 1h4a1 1 0 0 0 0-2h-3V5h3.17a1.05 1.05 0 0 1 .71.29l4.83 4.83a1 1 0 0 1 .29.71z"/></g></g>',"scissors-outline":'<g data-name="Layer 2"><g data-name="scissors"><rect width="24" height="24" opacity="0"/><path d="M20.21 5.71a1 1 0 1 0-1.42-1.42l-6.28 6.31-3.3-3.31A3 3 0 0 0 9.5 6a3 3 0 1 0-3 3 3 3 0 0 0 1.29-.3L11.1 12l-3.29 3.3A3 3 0 0 0 6.5 15a3 3 0 1 0 3 3 3 3 0 0 0-.29-1.26zM6.5 7a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm0 12a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/><path d="M15.21 13.29a1 1 0 0 0-1.42 1.42l5 5a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g>',"search-outline":'<g data-name="Layer 2"><g data-name="search"><rect width="24" height="24" opacity="0"/><path d="M20.71 19.29l-3.4-3.39A7.92 7.92 0 0 0 19 11a8 8 0 1 0-8 8 7.92 7.92 0 0 0 4.9-1.69l3.39 3.4a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM5 11a6 6 0 1 1 6 6 6 6 0 0 1-6-6z"/></g></g>',"settings-2-outline":'<g data-name="Layer 2"><g data-name="settings-2"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M12.94 22h-1.89a1.68 1.68 0 0 1-1.68-1.68v-1.09a.34.34 0 0 0-.22-.29.38.38 0 0 0-.41 0l-.74.8a1.67 1.67 0 0 1-2.37 0L4.26 18.4a1.66 1.66 0 0 1-.5-1.19 1.72 1.72 0 0 1 .5-1.21l.74-.74a.34.34 0 0 0 0-.37c-.06-.15-.16-.26-.3-.26H3.68A1.69 1.69 0 0 1 2 12.94v-1.89a1.68 1.68 0 0 1 1.68-1.68h1.09a.34.34 0 0 0 .29-.22.38.38 0 0 0 0-.41L4.26 8a1.67 1.67 0 0 1 0-2.37L5.6 4.26a1.65 1.65 0 0 1 1.18-.5 1.72 1.72 0 0 1 1.22.5l.74.74a.34.34 0 0 0 .37 0c.15-.06.26-.16.26-.3V3.68A1.69 1.69 0 0 1 11.06 2H13a1.68 1.68 0 0 1 1.68 1.68v1.09a.34.34 0 0 0 .22.29.38.38 0 0 0 .41 0l.69-.8a1.67 1.67 0 0 1 2.37 0l1.37 1.34a1.67 1.67 0 0 1 .5 1.19 1.63 1.63 0 0 1-.5 1.21l-.74.74a.34.34 0 0 0 0 .37c.06.15.16.26.3.26h1.09A1.69 1.69 0 0 1 22 11.06V13a1.68 1.68 0 0 1-1.68 1.68h-1.09a.34.34 0 0 0-.29.22.34.34 0 0 0 0 .37l.77.77a1.67 1.67 0 0 1 0 2.37l-1.31 1.33a1.65 1.65 0 0 1-1.18.5 1.72 1.72 0 0 1-1.19-.5l-.77-.74a.34.34 0 0 0-.37 0c-.15.06-.26.16-.26.3v1.09A1.69 1.69 0 0 1 12.94 22zm-1.57-2h1.26v-.77a2.33 2.33 0 0 1 1.46-2.14 2.36 2.36 0 0 1 2.59.47l.54.54.88-.88-.54-.55a2.34 2.34 0 0 1-.48-2.56 2.33 2.33 0 0 1 2.14-1.45H20v-1.29h-.77a2.33 2.33 0 0 1-2.14-1.46 2.36 2.36 0 0 1 .47-2.59l.54-.54-.88-.88-.55.54a2.39 2.39 0 0 1-4-1.67V4h-1.3v.77a2.33 2.33 0 0 1-1.46 2.14 2.36 2.36 0 0 1-2.59-.47l-.54-.54-.88.88.54.55a2.39 2.39 0 0 1-1.67 4H4v1.26h.77a2.33 2.33 0 0 1 2.14 1.46 2.36 2.36 0 0 1-.47 2.59l-.54.54.88.88.55-.54a2.39 2.39 0 0 1 4 1.67z" data-name="<Group>"/><path d="M12 15.5a3.5 3.5 0 1 1 3.5-3.5 3.5 3.5 0 0 1-3.5 3.5zm0-5a1.5 1.5 0 1 0 1.5 1.5 1.5 1.5 0 0 0-1.5-1.5z"/></g></g>',"settings-outline":'<g data-name="Layer 2"><g data-name="settings"><rect width="24" height="24" opacity="0"/><path d="M8.61 22a2.25 2.25 0 0 1-1.35-.46L5.19 20a2.37 2.37 0 0 1-.49-3.22 2.06 2.06 0 0 0 .23-1.86l-.06-.16a1.83 1.83 0 0 0-1.12-1.22h-.16a2.34 2.34 0 0 1-1.48-2.94L2.93 8a2.18 2.18 0 0 1 1.12-1.41 2.14 2.14 0 0 1 1.68-.12 1.93 1.93 0 0 0 1.78-.29l.13-.1a1.94 1.94 0 0 0 .73-1.51v-.24A2.32 2.32 0 0 1 10.66 2h2.55a2.26 2.26 0 0 1 1.6.67 2.37 2.37 0 0 1 .68 1.68v.28a1.76 1.76 0 0 0 .69 1.43l.11.08a1.74 1.74 0 0 0 1.59.26l.34-.11A2.26 2.26 0 0 1 21.1 7.8l.79 2.52a2.36 2.36 0 0 1-1.46 2.93l-.2.07A1.89 1.89 0 0 0 19 14.6a2 2 0 0 0 .25 1.65l.26.38a2.38 2.38 0 0 1-.5 3.23L17 21.41a2.24 2.24 0 0 1-3.22-.53l-.12-.17a1.75 1.75 0 0 0-1.5-.78 1.8 1.8 0 0 0-1.43.77l-.23.33A2.25 2.25 0 0 1 9 22a2 2 0 0 1-.39 0zM4.4 11.62a3.83 3.83 0 0 1 2.38 2.5v.12a4 4 0 0 1-.46 3.62.38.38 0 0 0 0 .51L8.47 20a.25.25 0 0 0 .37-.07l.23-.33a3.77 3.77 0 0 1 6.2 0l.12.18a.3.3 0 0 0 .18.12.25.25 0 0 0 .19-.05l2.06-1.56a.36.36 0 0 0 .07-.49l-.26-.38A4 4 0 0 1 17.1 14a3.92 3.92 0 0 1 2.49-2.61l.2-.07a.34.34 0 0 0 .19-.44l-.78-2.49a.35.35 0 0 0-.2-.19.21.21 0 0 0-.19 0l-.34.11a3.74 3.74 0 0 1-3.43-.57L15 7.65a3.76 3.76 0 0 1-1.49-3v-.31a.37.37 0 0 0-.1-.26.31.31 0 0 0-.21-.08h-2.54a.31.31 0 0 0-.29.33v.25a3.9 3.9 0 0 1-1.52 3.09l-.13.1a3.91 3.91 0 0 1-3.63.59.22.22 0 0 0-.14 0 .28.28 0 0 0-.12.15L4 11.12a.36.36 0 0 0 .22.45z" data-name="<Group>"/><path d="M12 15.5a3.5 3.5 0 1 1 3.5-3.5 3.5 3.5 0 0 1-3.5 3.5zm0-5a1.5 1.5 0 1 0 1.5 1.5 1.5 1.5 0 0 0-1.5-1.5z"/></g></g>',"shake-outline":'<g data-name="Layer 2"><g data-name="shake"><rect width="24" height="24" opacity="0"/><path d="M5.5 18a1 1 0 0 1-.64-.24A8.81 8.81 0 0 1 1.5 11a8.81 8.81 0 0 1 3.36-6.76 1 1 0 1 1 1.28 1.52A6.9 6.9 0 0 0 3.5 11a6.9 6.9 0 0 0 2.64 5.24 1 1 0 0 1 .13 1.4 1 1 0 0 1-.77.36z"/><path d="M12 7a4.09 4.09 0 0 1 1 .14V3a1 1 0 0 0-2 0v4.14A4.09 4.09 0 0 1 12 7z"/><path d="M12 15a4.09 4.09 0 0 1-1-.14V20a1 1 0 0 0 2 0v-5.14a4.09 4.09 0 0 1-1 .14z"/><path d="M16 16a1 1 0 0 1-.77-.36 1 1 0 0 1 .13-1.4A4.28 4.28 0 0 0 17 11a4.28 4.28 0 0 0-1.64-3.24 1 1 0 1 1 1.28-1.52A6.2 6.2 0 0 1 19 11a6.2 6.2 0 0 1-2.36 4.76A1 1 0 0 1 16 16z"/><path d="M8 16a1 1 0 0 1-.64-.24A6.2 6.2 0 0 1 5 11a6.2 6.2 0 0 1 2.36-4.76 1 1 0 1 1 1.28 1.52A4.28 4.28 0 0 0 7 11a4.28 4.28 0 0 0 1.64 3.24 1 1 0 0 1 .13 1.4A1 1 0 0 1 8 16z"/><path d="M18.5 18a1 1 0 0 1-.77-.36 1 1 0 0 1 .13-1.4A6.9 6.9 0 0 0 20.5 11a6.9 6.9 0 0 0-2.64-5.24 1 1 0 1 1 1.28-1.52A8.81 8.81 0 0 1 22.5 11a8.81 8.81 0 0 1-3.36 6.76 1 1 0 0 1-.64.24z"/><path d="M12 12a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm0-1zm0 0zm0 0zm0 0zm0 0zm0 0zm0 0z"/></g></g>',"share-outline":'<g data-name="Layer 2"><g data-name="share"><rect width="24" height="24" opacity="0"/><path d="M18 15a3 3 0 0 0-2.1.86L8 12.34V12v-.33l7.9-3.53A3 3 0 1 0 15 6v.34L7.1 9.86a3 3 0 1 0 0 4.28l7.9 3.53V18a3 3 0 1 0 3-3zm0-10a1 1 0 1 1-1 1 1 1 0 0 1 1-1zM5 13a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm13 6a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/></g></g>',"shield-off-outline":'<g data-name="Layer 2"><g data-name="shield-off"><rect width="24" height="24" opacity="0"/><path d="M4.71 3.29a1 1 0 0 0-1.42 1.42l16 16a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/><path d="M12.3 19.68l-.3.17-.3-.17A13.15 13.15 0 0 1 5 8.23v-.14L5.16 8 3.73 6.56A2 2 0 0 0 3 8.09v.14a15.17 15.17 0 0 0 7.72 13.2l.3.17a2 2 0 0 0 2 0l.3-.17a15.22 15.22 0 0 0 3-2.27l-1.42-1.42a12.56 12.56 0 0 1-2.6 1.94z"/><path d="M20 6.34L13 2.4a2 2 0 0 0-2 0L7.32 4.49 8.78 6 12 4.15l7 3.94v.14a13 13 0 0 1-1.63 6.31L18.84 16A15.08 15.08 0 0 0 21 8.23v-.14a2 2 0 0 0-1-1.75z"/></g></g>',"shield-outline":'<g data-name="Layer 2"><g data-name="shield"><rect width="24" height="24" opacity="0"/><path d="M12 21.85a2 2 0 0 1-1-.25l-.3-.17A15.17 15.17 0 0 1 3 8.23v-.14a2 2 0 0 1 1-1.75l7-3.94a2 2 0 0 1 2 0l7 3.94a2 2 0 0 1 1 1.75v.14a15.17 15.17 0 0 1-7.72 13.2l-.3.17a2 2 0 0 1-.98.25zm0-17.7L5 8.09v.14a13.15 13.15 0 0 0 6.7 11.45l.3.17.3-.17A13.15 13.15 0 0 0 19 8.23v-.14z"/></g></g>',"shopping-bag-outline":'<g data-name="Layer 2"><g data-name="shopping-bag"><rect width="24" height="24" opacity="0"/><path d="M20.12 6.71l-2.83-2.83A3 3 0 0 0 15.17 3H8.83a3 3 0 0 0-2.12.88L3.88 6.71A3 3 0 0 0 3 8.83V18a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V8.83a3 3 0 0 0-.88-2.12zm-12-1.42A1.05 1.05 0 0 1 8.83 5h6.34a1.05 1.05 0 0 1 .71.29L17.59 7H6.41zM18 19H6a1 1 0 0 1-1-1V9h14v9a1 1 0 0 1-1 1z"/><path d="M15 11a1 1 0 0 0-1 1 2 2 0 0 1-4 0 1 1 0 0 0-2 0 4 4 0 0 0 8 0 1 1 0 0 0-1-1z"/></g></g>',"shopping-cart-outline":'<g data-name="Layer 2"><g data-name="shopping-cart"><rect width="24" height="24" opacity="0"/><path d="M21.08 7a2 2 0 0 0-1.7-1H6.58L6 3.74A1 1 0 0 0 5 3H3a1 1 0 0 0 0 2h1.24L7 15.26A1 1 0 0 0 8 16h9a1 1 0 0 0 .89-.55l3.28-6.56A2 2 0 0 0 21.08 7zm-4.7 7H8.76L7.13 8h12.25z"/><circle cx="7.5" cy="19.5" r="1.5"/><circle cx="17.5" cy="19.5" r="1.5"/></g></g>',"shuffle-2-outline":'<g data-name="Layer 2"><g data-name="shuffle-2"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18.71 14.29a1 1 0 0 0-1.42 1.42l.29.29H16a4 4 0 0 1 0-8h1.59l-.3.29a1 1 0 0 0 0 1.42A1 1 0 0 0 18 10a1 1 0 0 0 .71-.29l2-2A1 1 0 0 0 21 7a1 1 0 0 0-.29-.71l-2-2a1 1 0 0 0-1.42 1.42l.29.29H16a6 6 0 0 0-5 2.69A6 6 0 0 0 6 6H4a1 1 0 0 0 0 2h2a4 4 0 0 1 0 8H4a1 1 0 0 0 0 2h2a6 6 0 0 0 5-2.69A6 6 0 0 0 16 18h1.59l-.3.29a1 1 0 0 0 0 1.42A1 1 0 0 0 18 20a1 1 0 0 0 .71-.29l2-2A1 1 0 0 0 21 17a1 1 0 0 0-.29-.71z"/></g></g>',"shuffle-outline":'<g data-name="Layer 2"><g data-name="shuffle"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18 9.31a1 1 0 0 0 1 1 1 1 0 0 0 1-1V5a1 1 0 0 0-1-1h-4.3a1 1 0 0 0-1 1 1 1 0 0 0 1 1h1.89L12 10.59 6.16 4.76a1 1 0 0 0-1.41 1.41L10.58 12l-6.29 6.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0L18 7.42z"/><path d="M19 13.68a1 1 0 0 0-1 1v1.91l-2.78-2.79a1 1 0 0 0-1.42 1.42L16.57 18h-1.88a1 1 0 0 0 0 2H19a1 1 0 0 0 1-1.11v-4.21a1 1 0 0 0-1-1z"/></g></g>',"skip-back-outline":'<g data-name="Layer 2"><g data-name="skip-back"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M16.45 6.2a2.1 2.1 0 0 0-2.21.26l-5.1 4.21-.14.15V7a1 1 0 0 0-2 0v10a1 1 0 0 0 2 0v-3.82l.14.15 5.1 4.21a2.06 2.06 0 0 0 1.3.46 2.23 2.23 0 0 0 .91-.2 1.76 1.76 0 0 0 1.05-1.59V7.79a1.76 1.76 0 0 0-1.05-1.59zM15.5 16l-4.82-4 4.82-3.91z"/></g></g>',"skip-forward-outline":'<g data-name="Layer 2"><g data-name="skip-forward"><rect width="24" height="24" opacity="0"/><path d="M16 6a1 1 0 0 0-1 1v3.82l-.14-.15-5.1-4.21a2.1 2.1 0 0 0-2.21-.26 1.76 1.76 0 0 0-1 1.59v8.42a1.76 1.76 0 0 0 1 1.59 2.23 2.23 0 0 0 .91.2 2.06 2.06 0 0 0 1.3-.46l5.1-4.21.14-.15V17a1 1 0 0 0 2 0V7a1 1 0 0 0-1-1zm-7.5 9.91V8l4.82 4z"/></g></g>',"slash-outline":'<g data-name="Layer 2"><g data-name="slash"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm8 10a7.92 7.92 0 0 1-1.69 4.9L7.1 5.69A7.92 7.92 0 0 1 12 4a8 8 0 0 1 8 8zM4 12a7.92 7.92 0 0 1 1.69-4.9L16.9 18.31A7.92 7.92 0 0 1 12 20a8 8 0 0 1-8-8z"/></g></g>',"smartphone-outline":'<g data-name="Layer 2"><g data-name="smartphone"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M17 2H7a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3zm1 17a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1z"/><circle cx="12" cy="16.5" r="1.5"/><path d="M14.5 6h-5a1 1 0 0 0 0 2h5a1 1 0 0 0 0-2z"/></g></g>',"smiling-face-outline":'<defs><style/></defs><g id="Layer_2" data-name="Layer 2"><g id="smiling-face"><g id="smiling-face" data-name="smiling-face"><rect width="24" height="24" opacity="0"/><path d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm5 9a5 5 0 0 1-10 0z" id="🎨-Icon-Сolor"/></g></g></g>',"speaker-outline":'<g data-name="Layer 2"><g data-name="speaker"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M12 11a3 3 0 1 0-3-3 3 3 0 0 0 3 3zm0-4a1 1 0 1 1-1 1 1 1 0 0 1 1-1z"/><path d="M12 12a3.5 3.5 0 1 0 3.5 3.5A3.5 3.5 0 0 0 12 12zm0 5a1.5 1.5 0 1 1 1.5-1.5A1.5 1.5 0 0 1 12 17z"/><path d="M17 2H7a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3zm1 17a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1z"/></g></g>',"square-outline":'<g data-name="Layer 2"><g data-name="square"><rect width="24" height="24" opacity="0"/><path d="M18 21H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3zM6 5a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1z"/></g></g>',"star-outline":'<g data-name="Layer 2"><g data-name="star"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M17.56 21a1 1 0 0 1-.46-.11L12 18.22l-5.1 2.67a1 1 0 0 1-1.45-1.06l1-5.63-4.12-4a1 1 0 0 1-.25-1 1 1 0 0 1 .81-.68l5.7-.83 2.51-5.13a1 1 0 0 1 1.8 0l2.54 5.12 5.7.83a1 1 0 0 1 .81.68 1 1 0 0 1-.25 1l-4.12 4 1 5.63a1 1 0 0 1-.4 1 1 1 0 0 1-.62.18zM12 16.1a.92.92 0 0 1 .46.11l3.77 2-.72-4.21a1 1 0 0 1 .29-.89l3-2.93-4.2-.62a1 1 0 0 1-.71-.56L12 5.25 10.11 9a1 1 0 0 1-.75.54l-4.2.62 3 2.93a1 1 0 0 1 .29.89l-.72 4.16 3.77-2a.92.92 0 0 1 .5-.04z"/></g></g>',"stop-circle-outline":'<g data-name="Layer 2"><g data-name="stop-circle"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M14.75 8h-5.5A1.25 1.25 0 0 0 8 9.25v5.5A1.25 1.25 0 0 0 9.25 16h5.5A1.25 1.25 0 0 0 16 14.75v-5.5A1.25 1.25 0 0 0 14.75 8zM14 14h-4v-4h4z"/></g></g>',"sun-outline":'<g data-name="Layer 2"><g data-name="sun"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M12 6a1 1 0 0 0 1-1V3a1 1 0 0 0-2 0v2a1 1 0 0 0 1 1z"/><path d="M21 11h-2a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2z"/><path d="M6 12a1 1 0 0 0-1-1H3a1 1 0 0 0 0 2h2a1 1 0 0 0 1-1z"/><path d="M6.22 5a1 1 0 0 0-1.39 1.47l1.44 1.39a1 1 0 0 0 .73.28 1 1 0 0 0 .72-.31 1 1 0 0 0 0-1.41z"/><path d="M17 8.14a1 1 0 0 0 .69-.28l1.44-1.39A1 1 0 0 0 17.78 5l-1.44 1.42a1 1 0 0 0 0 1.41 1 1 0 0 0 .66.31z"/><path d="M12 18a1 1 0 0 0-1 1v2a1 1 0 0 0 2 0v-2a1 1 0 0 0-1-1z"/><path d="M17.73 16.14a1 1 0 0 0-1.39 1.44L17.78 19a1 1 0 0 0 .69.28 1 1 0 0 0 .72-.3 1 1 0 0 0 0-1.42z"/><path d="M6.27 16.14l-1.44 1.39a1 1 0 0 0 0 1.42 1 1 0 0 0 .72.3 1 1 0 0 0 .67-.25l1.44-1.39a1 1 0 0 0-1.39-1.44z"/><path d="M12 8a4 4 0 1 0 4 4 4 4 0 0 0-4-4zm0 6a2 2 0 1 1 2-2 2 2 0 0 1-2 2z"/></g></g>',"swap-outline":'<g data-name="Layer 2"><g data-name="swap"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M4 9h13l-1.6 1.2a1 1 0 0 0-.2 1.4 1 1 0 0 0 .8.4 1 1 0 0 0 .6-.2l4-3a1 1 0 0 0 0-1.59l-3.86-3a1 1 0 0 0-1.23 1.58L17.08 7H4a1 1 0 0 0 0 2z"/><path d="M20 16H7l1.6-1.2a1 1 0 0 0-1.2-1.6l-4 3a1 1 0 0 0 0 1.59l3.86 3a1 1 0 0 0 .61.21 1 1 0 0 0 .79-.39 1 1 0 0 0-.17-1.4L6.92 18H20a1 1 0 0 0 0-2z"/></g></g>',"sync-outline":'<g data-name="Layer 2"><g data-name="sync"><rect width="24" height="24" opacity="0"/><path d="M21.66 10.37a.62.62 0 0 0 .07-.19l.75-4a1 1 0 0 0-2-.36l-.37 2a9.22 9.22 0 0 0-16.58.84 1 1 0 0 0 .55 1.3 1 1 0 0 0 1.31-.55A7.08 7.08 0 0 1 12.07 5a7.17 7.17 0 0 1 6.24 3.58l-1.65-.27a1 1 0 1 0-.32 2l4.25.71h.16a.93.93 0 0 0 .34-.06.33.33 0 0 0 .1-.06.78.78 0 0 0 .2-.11l.08-.1a1.07 1.07 0 0 0 .14-.16.58.58 0 0 0 .05-.16z"/><path d="M19.88 14.07a1 1 0 0 0-1.31.56A7.08 7.08 0 0 1 11.93 19a7.17 7.17 0 0 1-6.24-3.58l1.65.27h.16a1 1 0 0 0 .16-2L3.41 13a.91.91 0 0 0-.33 0H3a1.15 1.15 0 0 0-.32.14 1 1 0 0 0-.18.18l-.09.1a.84.84 0 0 0-.07.19.44.44 0 0 0-.07.17l-.75 4a1 1 0 0 0 .8 1.22h.18a1 1 0 0 0 1-.82l.37-2a9.22 9.22 0 0 0 16.58-.83 1 1 0 0 0-.57-1.28z"/></g></g>',"text-outline":'<g data-name="Layer 2"><g data-name="text"><rect width="24" height="24" opacity="0"/><path d="M20 4H4a1 1 0 0 0-1 1v3a1 1 0 0 0 2 0V6h6v13H9a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2h-2V6h6v2a1 1 0 0 0 2 0V5a1 1 0 0 0-1-1z"/></g></g>',"thermometer-minus-outline":'<g data-name="Layer 2"><g data-name="thermometer-minus"><rect width="24" height="24" opacity="0"/><rect x="2" y="5" width="6" height="2" rx="1" ry="1"/><path d="M14 22a5 5 0 0 1-3-9V5a3 3 0 0 1 3-3 3 3 0 0 1 3 3v8a5 5 0 0 1-3 9zm0-18a1 1 0 0 0-1 1v8.54a1 1 0 0 1-.5.87A3 3 0 0 0 11 17a3 3 0 0 0 6 0 3 3 0 0 0-1.5-2.59 1 1 0 0 1-.5-.87V5a.93.93 0 0 0-.29-.69A1 1 0 0 0 14 4z"/></g></g>',"thermometer-outline":'<g data-name="Layer 2"><g data-name="thermometer"><rect width="24" height="24" opacity="0"/><path d="M12 22a5 5 0 0 1-3-9V5a3 3 0 0 1 3-3 3 3 0 0 1 3 3v8a5 5 0 0 1-3 9zm0-18a1 1 0 0 0-1 1v8.54a1 1 0 0 1-.5.87A3 3 0 0 0 9 17a3 3 0 0 0 6 0 3 3 0 0 0-1.5-2.59 1 1 0 0 1-.5-.87V5a.93.93 0 0 0-.29-.69A1 1 0 0 0 12 4z"/></g></g>',"thermometer-plus-outline":'<g data-name="Layer 2"><g data-name="thermometer-plus"><rect width="24" height="24" opacity="0"/><rect x="2" y="5" width="6" height="2" rx="1" ry="1"/><rect x="2" y="5" width="6" height="2" rx="1" ry="1" transform="rotate(-90 5 6)"/><path d="M14 22a5 5 0 0 1-3-9V5a3 3 0 0 1 3-3 3 3 0 0 1 3 3v8a5 5 0 0 1-3 9zm0-18a1 1 0 0 0-1 1v8.54a1 1 0 0 1-.5.87A3 3 0 0 0 11 17a3 3 0 0 0 6 0 3 3 0 0 0-1.5-2.59 1 1 0 0 1-.5-.87V5a.93.93 0 0 0-.29-.69A1 1 0 0 0 14 4z"/></g></g>',"toggle-left-outline":'<g data-name="Layer 2"><g data-name="toggle-left"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M15 5H9a7 7 0 0 0 0 14h6a7 7 0 0 0 0-14zm0 12H9A5 5 0 0 1 9 7h6a5 5 0 0 1 0 10z"/><path d="M9 9a3 3 0 1 0 3 3 3 3 0 0 0-3-3zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/></g></g>',"toggle-right-outline":'<g data-name="Layer 2"><g data-name="toggle-right"><rect width="24" height="24" opacity="0"/><path d="M15 5H9a7 7 0 0 0 0 14h6a7 7 0 0 0 0-14zm0 12H9A5 5 0 0 1 9 7h6a5 5 0 0 1 0 10z"/><path d="M15 9a3 3 0 1 0 3 3 3 3 0 0 0-3-3zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/></g></g>',"trash-2-outline":'<g data-name="Layer 2"><g data-name="trash-2"><rect width="24" height="24" opacity="0"/><path d="M21 6h-5V4.33A2.42 2.42 0 0 0 13.5 2h-3A2.42 2.42 0 0 0 8 4.33V6H3a1 1 0 0 0 0 2h1v11a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V8h1a1 1 0 0 0 0-2zM10 4.33c0-.16.21-.33.5-.33h3c.29 0 .5.17.5.33V6h-4zM18 19a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V8h12z"/><path d="M9 17a1 1 0 0 0 1-1v-4a1 1 0 0 0-2 0v4a1 1 0 0 0 1 1z"/><path d="M15 17a1 1 0 0 0 1-1v-4a1 1 0 0 0-2 0v4a1 1 0 0 0 1 1z"/></g></g>',"trash-outline":'<g data-name="Layer 2"><g data-name="trash"><rect width="24" height="24" opacity="0"/><path d="M21 6h-5V4.33A2.42 2.42 0 0 0 13.5 2h-3A2.42 2.42 0 0 0 8 4.33V6H3a1 1 0 0 0 0 2h1v11a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V8h1a1 1 0 0 0 0-2zM10 4.33c0-.16.21-.33.5-.33h3c.29 0 .5.17.5.33V6h-4zM18 19a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V8h12z"/></g></g>',"trending-down-outline":'<g data-name="Layer 2"><g data-name="trending-down"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M21 12a1 1 0 0 0-2 0v2.3l-4.24-5a1 1 0 0 0-1.27-.21L9.22 11.7 4.77 6.36a1 1 0 1 0-1.54 1.28l5 6a1 1 0 0 0 1.28.22l4.28-2.57 4 4.71H15a1 1 0 0 0 0 2h5a1.1 1.1 0 0 0 .36-.07l.14-.08a1.19 1.19 0 0 0 .15-.09.75.75 0 0 0 .14-.17 1.1 1.1 0 0 0 .09-.14.64.64 0 0 0 .05-.17A.78.78 0 0 0 21 17z"/></g></g>',"trending-up-outline":'<g data-name="Layer 2"><g data-name="trending-up"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M21 7a.78.78 0 0 0 0-.21.64.64 0 0 0-.05-.17 1.1 1.1 0 0 0-.09-.14.75.75 0 0 0-.14-.17l-.12-.07a.69.69 0 0 0-.19-.1h-.2A.7.7 0 0 0 20 6h-5a1 1 0 0 0 0 2h2.83l-4 4.71-4.32-2.57a1 1 0 0 0-1.28.22l-5 6a1 1 0 0 0 .13 1.41A1 1 0 0 0 4 18a1 1 0 0 0 .77-.36l4.45-5.34 4.27 2.56a1 1 0 0 0 1.27-.21L19 9.7V12a1 1 0 0 0 2 0V7z"/></g></g>',"tv-outline":'<g data-name="Layer 2"><g data-name="tv"><rect width="24" height="24" opacity="0"/><path d="M18 6h-3.59l2.3-2.29a1 1 0 1 0-1.42-1.42L12 5.59l-3.29-3.3a1 1 0 1 0-1.42 1.42L9.59 6H6a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3zm1 13a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1z"/></g></g>',"twitter-outline":'<g data-name="Layer 2"><g data-name="twitter"><polyline points="0 0 24 0 24 24 0 24" opacity="0"/><path d="M8.51 20h-.08a10.87 10.87 0 0 1-4.65-1.09A1.38 1.38 0 0 1 3 17.47a1.41 1.41 0 0 1 1.16-1.18 6.63 6.63 0 0 0 2.54-.89 9.49 9.49 0 0 1-3.51-9.07 1.41 1.41 0 0 1 1-1.15 1.35 1.35 0 0 1 1.43.41 7.09 7.09 0 0 0 4.88 2.75 4.5 4.5 0 0 1 1.41-3.1 4.47 4.47 0 0 1 6.37.19.7.7 0 0 0 .78.1A1.39 1.39 0 0 1 21 7.13a6.66 6.66 0 0 1-1.28 2.6A10.79 10.79 0 0 1 8.51 20zm0-2h.08a8.79 8.79 0 0 0 9.09-8.59 1.32 1.32 0 0 1 .37-.85 5.19 5.19 0 0 0 .62-1 2.56 2.56 0 0 1-1.91-.85A2.45 2.45 0 0 0 15 6a2.5 2.5 0 0 0-1.79.69 2.53 2.53 0 0 0-.72 2.42l.26 1.14-1.17.08a8.3 8.3 0 0 1-6.54-2.4 7.12 7.12 0 0 0 3.73 6.46l.95.54-.63.9a5.62 5.62 0 0 1-2.68 1.92A8.34 8.34 0 0 0 8.5 18zM19 6.65z"/></g></g>',"umbrella-outline":'<g data-name="Layer 2"><g data-name="umbrella"><rect width="24" height="24" opacity="0"/><path d="M12 2A10 10 0 0 0 2 12a1 1 0 0 0 1 1h8v6a3 3 0 0 0 6 0 1 1 0 0 0-2 0 1 1 0 0 1-2 0v-6h8a1 1 0 0 0 1-1A10 10 0 0 0 12 2zm-7.94 9a8 8 0 0 1 15.88 0z"/></g></g>',"undo-outline":'<g data-name="Layer 2"><g data-name="undo"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M20.22 21a1 1 0 0 1-1-.76 8.91 8.91 0 0 0-7.8-6.69v1.12a1.78 1.78 0 0 1-1.09 1.64A2 2 0 0 1 8.18 16l-5.06-4.41a1.76 1.76 0 0 1 0-2.68l5.06-4.42a2 2 0 0 1 2.18-.3 1.78 1.78 0 0 1 1.09 1.64V7A10.89 10.89 0 0 1 21.5 17.75a10.29 10.29 0 0 1-.31 2.49 1 1 0 0 1-1 .76zm-9.77-9.5a11.07 11.07 0 0 1 8.81 4.26A9 9 0 0 0 10.45 9a1 1 0 0 1-1-1V6.08l-4.82 4.17 4.82 4.21v-2a1 1 0 0 1 1-.96z"/></g></g>',"unlock-outline":'<g data-name="Layer 2"><g data-name="unlock"><rect width="24" height="24" opacity="0"/><path d="M17 8h-7V6a2 2 0 0 1 4 0 1 1 0 0 0 2 0 4 4 0 0 0-8 0v2H7a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3v-8a3 3 0 0 0-3-3zm1 11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1z"/><path d="M12 12a3 3 0 1 0 3 3 3 3 0 0 0-3-3zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/></g></g>',"upload-outline":'<g data-name="Layer 2"><g data-name="upload"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><rect x="4" y="4" width="16" height="2" rx="1" ry="1" transform="rotate(180 12 5)"/><rect x="17" y="5" width="4" height="2" rx="1" ry="1" transform="rotate(90 19 6)"/><rect x="3" y="5" width="4" height="2" rx="1" ry="1" transform="rotate(90 5 6)"/><path d="M8 14a1 1 0 0 1-.8-.4 1 1 0 0 1 .2-1.4l4-3a1 1 0 0 1 1.18 0l4 2.82a1 1 0 0 1 .24 1.39 1 1 0 0 1-1.4.24L12 11.24 8.6 13.8a1 1 0 0 1-.6.2z"/><path d="M12 21a1 1 0 0 1-1-1v-8a1 1 0 0 1 2 0v8a1 1 0 0 1-1 1z"/></g></g>',"video-off-outline":'<g data-name="Layer 2"><g data-name="video-off"><rect width="24" height="24" opacity="0"/><path d="M17 15.59l-2-2L8.41 7l-2-2-1.7-1.71a1 1 0 0 0-1.42 1.42l.54.53L5.59 7l9.34 9.34 1.46 1.46 2.9 2.91a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/><path d="M14 17H5a1 1 0 0 1-1-1V8a1 1 0 0 1 .4-.78L3 5.8A3 3 0 0 0 2 8v8a3 3 0 0 0 3 3h9a2.94 2.94 0 0 0 1.66-.51L14.14 17a.7.7 0 0 1-.14 0z"/><path d="M21 7.15a1.7 1.7 0 0 0-1.85.3l-2.15 2V8a3 3 0 0 0-3-3H7.83l2 2H14a1 1 0 0 1 1 1v4.17l4.72 4.72a1.73 1.73 0 0 0 .6.11 1.68 1.68 0 0 0 .69-.15 1.6 1.6 0 0 0 1-1.48V8.63A1.6 1.6 0 0 0 21 7.15zm-1 7.45L17.19 12 20 9.4z"/></g></g>',"video-outline":'<g data-name="Layer 2"><g data-name="video"><rect width="24" height="24" opacity="0"/><path d="M21 7.15a1.7 1.7 0 0 0-1.85.3l-2.15 2V8a3 3 0 0 0-3-3H5a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h9a3 3 0 0 0 3-3v-1.45l2.16 2a1.74 1.74 0 0 0 1.16.45 1.68 1.68 0 0 0 .69-.15 1.6 1.6 0 0 0 1-1.48V8.63A1.6 1.6 0 0 0 21 7.15zM15 16a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1zm5-1.4L17.19 12 20 9.4z"/></g></g>',"volume-down-outline":'<g data-name="Layer 2"><g data-name="volume-down"><rect width="24" height="24" opacity="0"/><path d="M20.78 8.37a1 1 0 1 0-1.56 1.26 4 4 0 0 1 0 4.74A1 1 0 0 0 20 16a1 1 0 0 0 .78-.37 6 6 0 0 0 0-7.26z"/><path d="M16.47 3.12a1 1 0 0 0-1 0L9 7.57H4a1 1 0 0 0-1 1v6.86a1 1 0 0 0 1 1h5l6.41 4.4A1.06 1.06 0 0 0 16 21a1 1 0 0 0 1-1V4a1 1 0 0 0-.53-.88zM15 18.1l-5.1-3.5a1 1 0 0 0-.57-.17H5V9.57h4.33a1 1 0 0 0 .57-.17L15 5.9z"/></g></g>',"volume-mute-outline":'<g data-name="Layer 2"><g data-name="volume-mute"><rect width="24" height="24" opacity="0"/><path d="M17 21a1.06 1.06 0 0 1-.57-.17L10 16.43H5a1 1 0 0 1-1-1V8.57a1 1 0 0 1 1-1h5l6.41-4.4A1 1 0 0 1 18 4v16a1 1 0 0 1-1 1zM6 14.43h4.33a1 1 0 0 1 .57.17l5.1 3.5V5.9l-5.1 3.5a1 1 0 0 1-.57.17H6z"/></g></g>',"volume-off-outline":'<g data-name="Layer 2"><g data-name="volume-off"><rect width="24" height="24" opacity="0"/><path d="M4.71 3.29a1 1 0 0 0-1.42 1.42l16 16a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/><path d="M16.91 14.08l1.44 1.44a6 6 0 0 0-.07-7.15 1 1 0 1 0-1.56 1.26 4 4 0 0 1 .19 4.45z"/><path d="M21 12a6.51 6.51 0 0 1-1.78 4.39l1.42 1.42A8.53 8.53 0 0 0 23 12a8.75 8.75 0 0 0-3.36-6.77 1 1 0 1 0-1.28 1.54A6.8 6.8 0 0 1 21 12z"/><path d="M13.5 18.1l-5.1-3.5a1 1 0 0 0-.57-.17H3.5V9.57h3.24l-2-2H2.5a1 1 0 0 0-1 1v6.86a1 1 0 0 0 1 1h5l6.41 4.4a1.06 1.06 0 0 0 .57.17 1 1 0 0 0 1-1v-1.67l-2-2z"/><path d="M13.5 5.9v4.77l2 2V4a1 1 0 0 0-1.57-.83L9.23 6.4l1.44 1.44z"/></g></g>',"volume-up-outline":'<g data-name="Layer 2"><g data-name="volume-up"><rect width="24" height="24" opacity="0"/><path d="M18.28 8.37a1 1 0 1 0-1.56 1.26 4 4 0 0 1 0 4.74A1 1 0 0 0 17.5 16a1 1 0 0 0 .78-.37 6 6 0 0 0 0-7.26z"/><path d="M19.64 5.23a1 1 0 1 0-1.28 1.54A6.8 6.8 0 0 1 21 12a6.8 6.8 0 0 1-2.64 5.23 1 1 0 0 0-.13 1.41A1 1 0 0 0 19 19a1 1 0 0 0 .64-.23A8.75 8.75 0 0 0 23 12a8.75 8.75 0 0 0-3.36-6.77z"/><path d="M15 3.12a1 1 0 0 0-1 0L7.52 7.57h-5a1 1 0 0 0-1 1v6.86a1 1 0 0 0 1 1h5l6.41 4.4a1.06 1.06 0 0 0 .57.17 1 1 0 0 0 1-1V4a1 1 0 0 0-.5-.88zm-1.47 15L8.4 14.6a1 1 0 0 0-.57-.17H3.5V9.57h4.33a1 1 0 0 0 .57-.17l5.1-3.5z"/></g></g>',"wifi-off-outline":'<g data-name="Layer 2"><g data-name="wifi-off"><rect width="24" height="24" opacity="0"/><circle cx="12" cy="19" r="1"/><path d="M12.44 11l-1.9-1.89-2.46-2.44-1.55-1.55-1.82-1.83a1 1 0 0 0-1.42 1.42l1.38 1.37 1.46 1.46 2.23 2.24 1.55 1.54 2.74 2.74 2.79 2.8 3.85 3.85a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/><path d="M21.72 7.93A13.93 13.93 0 0 0 12 4a14.1 14.1 0 0 0-4.44.73l1.62 1.62a11.89 11.89 0 0 1 11.16 3 1 1 0 0 0 .69.28 1 1 0 0 0 .72-.31 1 1 0 0 0-.03-1.39z"/><path d="M3.82 6.65a14.32 14.32 0 0 0-1.54 1.28 1 1 0 0 0 1.38 1.44 13.09 13.09 0 0 1 1.6-1.29z"/><path d="M17 13.14a1 1 0 0 0 .71.3 1 1 0 0 0 .72-1.69A9 9 0 0 0 12 9h-.16l2.35 2.35A7 7 0 0 1 17 13.14z"/><path d="M7.43 10.26a8.8 8.8 0 0 0-1.9 1.49A1 1 0 0 0 7 13.14a7.3 7.3 0 0 1 2-1.41z"/><path d="M8.53 15.4a1 1 0 1 0 1.39 1.44 3.06 3.06 0 0 1 3.84-.25l-2.52-2.52a5 5 0 0 0-2.71 1.33z"/></g></g>',"wifi-outline":'<g data-name="Layer 2"><g data-name="wifi"><rect width="24" height="24" opacity="0"/><circle cx="12" cy="19" r="1"/><path d="M12 14a5 5 0 0 0-3.47 1.4 1 1 0 1 0 1.39 1.44 3.08 3.08 0 0 1 4.16 0 1 1 0 1 0 1.39-1.44A5 5 0 0 0 12 14z"/><path d="M12 9a9 9 0 0 0-6.47 2.75A1 1 0 0 0 7 13.14a7 7 0 0 1 10.08 0 1 1 0 0 0 .71.3 1 1 0 0 0 .72-1.69A9 9 0 0 0 12 9z"/><path d="M21.72 7.93a14 14 0 0 0-19.44 0 1 1 0 0 0 1.38 1.44 12 12 0 0 1 16.68 0 1 1 0 0 0 .69.28 1 1 0 0 0 .72-.31 1 1 0 0 0-.03-1.41z"/></g></g>'}},"./package/src/animation.scss":
1function(e,t,n){var i=n("./node_modules/css-loader/index.js!./node_modules/sass-loader/lib/loader.js!./package/src/animation.scss"),r=n("./node_modules/isomorphic-style-loader/insertCss.js"),s="string"==typeof i?[[e.i,i,""]]:i;(t=e.exports=i.locals||{})._getContent=function(){return s},t._getCss=function(){return""+i},t._insertCss=function(e){return r(s,e)}},
1"./package/src/default-attrs.json":function(e){e.exports={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"}},
1"./package/src/icon.js":function(e,t,n){"use strict";n.r(t);var i=n("./node_modules/classnames/dedupe.js"),r=n.n(i),s=n("./package/src/default-attrs.json");function o(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},s=Object.keys(e);for(i=0;i<s.length;i++)t.indexOf(n=s[i])>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)t.indexOf(n=s[i])>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){c(e,t,n[t])})}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l={hover:!0},u=function(e){return"string"==typeof e||e instanceof String},d=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.contents=n,this.attrs=a({},s,{class:"eva eva-".concat(t)})}var t;return t=[{key:"toSvg",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.animation,n=o(e,["animation"]),i=h(t),s=i?i.class:"",c=a({},this.attrs,n,{class:r()(this.attrs.class,e.class,s)}),l="<svg ".concat(p(c),">").concat(this.contents,"</svg>");return i&&i.hover?'<i class="eva-hover">'.concat(l,"</i>"):l}},{key:"toString",value:function(){return this.contents}}],t&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(e.prototype,t),e}();function h(e){if(!e)return null;e.hover&&(e.hover=u(e.hover)?JSON.parse(e.hover):e.hover);var t=a({},l,e),n=t.hover?"eva-icon-hover-".concat(t.type):"eva-icon-".concat(t.type);return t.class=r()({"eva-animation":!0,"eva-infinite":u(e.infinite)?JSON.parse(e.infinite):e.infinite},n),t}function p(e){return Object.keys(e).map(function(t){return"".concat(t,'="').concat(e[t],'"')}).join(" ")}t.default=d},
1"./package/src/icons.js":function(e,t,n){"use strict";n.r(t);var i=n("./package/src/icon.js"),r=n("./package-build/eva-icons.json");t.default=Object.keys(r).map(function(e){return new i.default(e,r[e])}).reduce(function(e,t){return e[t.name]=t,e},{})},
1"./package/src/index.js":function(e,t,n){"use strict";n.r(t);var i=n("./package/src/icons.js");n.d(t,"icons",function(){return i.default});var r=n("./package/src/replace.js");n.d(t,"replace",function(){return r.default});var s=n("./package/src/animation.scss");"undefined"!=typeof window&&n.n(s).a._insertCss()},
1"./package/src/replace.js":function(e,t,n){"use strict";n.r(t);var i=n("./node_modules/classnames/dedupe.js"),r=n.n(i),s=n("./package/src/icons.js");function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){a(e,t,n[t])})}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},s=Object.keys(e);for(i=0;i<s.length;i++)t.indexOf(n=s[i])>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)t.indexOf(n=s[i])>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var l={"data-eva-animation":"type","data-eva-hover":"hover","data-eva-infinite":"infinite"},u={"data-eva":"name","data-eva-width":"width","data-eva-height":"height","data-eva-fill":"fill"};function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=h(e),i=n.name,a=c(n,["name"]),l=s.default[i].toSvg(o({},t,a,{animation:p(t.animation,a.animation)},{class:r()(t.class,a.class)})),u=(new DOMParser).parseFromString(l,"text/html"),d=u.querySelector(".eva-hover")||u.querySelector("svg");e.parentNode.replaceChild(d,e)}function h(e){return Array.from(e.attributes).reduce(function(e,t){return l[t.name]?e.animation=o({},e.animation,a({},l[t.name],t.value)):e=o({},e,function(e){return a({},u[e.name]?u[e.name]:e.name,e.value)}(t)),e},{})}function p(e,t){return e||t?o({},e,t):null}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("undefined"==typeof document)throw new Error("`eva.replace()` only works in a browser environment.");var t=document.querySelectorAll("[data-eva]");Array.from(t).forEach(function(t){return d(t,e)})}}
1})},e.exports=i()},Zvzv:function(e,t,n){"use strict";n.d(t,"a",function(){return xe});var i=n("MVeA"),r=n("IHbA"),s=n("tEF2"),o=n("8zjW"),a=n("XVbR"),c=n("+zCx"),l=n("02LL"),u=n("Ye2+"),d=n("YwnE"),h=n("Rhp1"),p=n("lK6t"),f=n("vYFQ"),g=n("yrWc"),m=n("Fb9H"),b=n("Ubnm"),y=n("wwwC"),v=n("dPoE"),_=n("ipaP"),w=n("T2BX"),k=n("+tEU"),C=n("pFv7"),S=n("eNo3"),T=n("6fYL"),P=n("1Hcg"),O=n("SPA5"),x=n("IvGc"),A=n("cLov"),E=n("jHrq"),M=n("6it1"),I=n("oaRb"),R=n("sk6X"),L=n("RIvq"),D=n("wdnR"),j=n("ahnh"),N=n("PsMQ"),V=n("aoL+"),z=n("2FL7"),F=n("eMMX"),B=n("9w3a"),q=n("dN2r"),U=n("90wG"),H=n("x6sH"),W=n("uST9"),G=n("cV6W"),Y=n("F4l4"),$=n("PjgR"),Z=n("7XEM"),Q=n("TOXt"),X=n("YUvt"),K=n("QV3V"),J=n("Xuvu"),ee=n("MK3I"),te=n("zHbR"),ne=n("pwNt"),ie=n("uca9"),re=n("sSfP"),se=n("xS+Q"),oe=n("blbF"),ae=n("Pd6T"),ce=n("AzWD"),le=n("z20w"),ue=n("5m5N"),de=n("3tV1"),he=n("Kr+R"),pe=n("NCX1"),fe=n("kEdI"),ge=n("s8/3"),me=n("eniD"),be=n("j/Xo"),ye=n("/Fee"),ve=n("DTmZ"),_e=n("rNOo"),we=n("1Zip"),ke=n("lZs6"),Ce=n("tDC8"),Se=n("JmXh"),Te=n("L/9K"),Pe=n("budB"),Oe=n("fXoL");let xe=(()=>{class e{constructor(){this.models={Template:i.a,SimiAssociate:r.a,SimiEntity:s.a,SimiInstitute:o.a,SimiInstituteMapping:a.a,SimiCenter:c.a,SimiUserCalendar:l.a,SimiSponsor:u.a,SimiSection:d.a,CoreRole:h.a,CoreUserDevice:p.a,Notification:f.a,Report:g.a,Webhook:m.a,CoreApplication:b.a,SystemMessage:y.a,Auth:v.a,Resource:_.a,SimiElection:w.a,SimiElectionCandidate:k.a,SimiElectionVote:C.a,SimiPodcast:S.a,SimiPodcastProgress:T.a,SimiSurvey:P.a,SimiSurveySubmission:O.a,SimiBoard:x.a,SimiBoardMember:A.a,SimiYear:E.a,SimiPayment:M.a,SimiPaymentFee:I.a,SimiPaymentTransaction:R.a,SimiAdmission:L.a,SimiAdminEvent:D.a,Survey:j.a,SurveyCompiler:N.a,SurveyAccess:V.a,SurveySubmission:z.a,SurveyWriter:F.a,SurveyWriterMapping:B.a,SurveyStatistics:q.a,SurveyRequest:U.a,Score:H.a,SimiEvent:W.a,Events:G.a,SimiEventPayment:Y.a,SimiEventExam:$.a,SimiEventSurvey:Z.a,SimiEventRole:Q.a,SimiEventThread:X.a,SimiEventThreadComment:K.a,Congress:J.a,CongressProfile:ee.a,CongressAccess:te.a,CongressSubmission:ne.a,CongressReview:ie.a,CongressReviewAssignment:re.a,CongressMaterial:se.a,CongressLive:oe.a,CongressEvent:ae.a,CongressSubscription:ce.a,CongressRecording:le.a,CongressSurveySubmission:ue.a,CongressExamSubmission:de.a,Course:he.a,CourseSubscription:pe.a,CourseMaterial:fe.a,CourseLive:ge.a,CourseRecording:me.a,CourseSurveySubmission:be.a,CourseExamSubmission:ye.a,CourseLogbook:ve.a,CourseLogbookSubscription:_e.a,CourseLogbookEntry:we.a,Campaign:ke.a,CampaignTarget:Ce.a,CampaignRecord:Se.a,TrackerEvents:Te.a,SimiUser:Pe.a}}get(e){return this.models[e]}getAll(){return this.models}getModelNames(){return Object.keys(this.models)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Oe.Pb({token:e,factory:e.\u0275fac}),e})()},Zx8I:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("fXoL");let r,s;"undefined"==typeof window||(r=n("lRFz"),s=n("louq"),r.verbosity=r.VerbosityLevel.ERRORS);let o={DISABLED:0,ENABLED:1,ENHANCED:2};o[o.DISABLED]="DISABLED",o[o.ENABLED]="ENABLED",o[o.ENHANCED]="ENHANCED";let a=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({}),e})()},Zy1z:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(){return e=>e.lift(new s)}class s{call(e,t){return t.subscribe(new o(e))}}class o extends i.a{constructor(e){super(e),this.hasPrev=!1}_next(e){let t;this.hasPrev?t=[this.prev,e]:this.hasPrev=!0,this.prev=e,t&&this.destination.next(t)}}},aE8l:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getCompiler(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyRequests/:id/compiler",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getSurvey(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyRequests/:id/survey",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyRequests/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}confirm(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyRequests/:id/confirm";return this.request("PUT",n,{id:e},{},{},null,t)}hide(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyRequests/:id/hide";return this.request("PUT",n,{id:e},{},{},null,t)}getPending(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyRequests/pending",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countPending(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyRequests/pending/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}getByIdPending(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyRequests/:id/pending",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}getConfirmed(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyRequests/confirmed",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countConfirmed(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyRequests/confirmed/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}getByIdConfirmed(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyRequests/:id/confirmed",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}getHidden(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyRequests/hidden",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countHidden(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyRequests/hidden/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}getByIdHidden(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyRequests/:id/hidden",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}getModelName(){return"SurveyRequest"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},"aJv/":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getSurvey(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiSurveySubmissions/:id/survey",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiSurveySubmissions/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiSurveySubmissions/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}answer(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiSurveySubmissions/:id/answer",r={id:e},s={};return null!=t&&(s.answers=t),this.request("POST",i,r,s,{},null,n)}submit(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiSurveySubmissions/:id/submit";return this.request("POST",n,{id:e},{},{},null,t)}getModelName(){return"SimiSurveySubmission"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},aQkB:function(e,t,n){"use strict";n.d(t,"a",function(){return h});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("lJxs"),u=n("IHbA"),d=n("fXoL");let h=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getInstitute(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/:id/institute",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getSection(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/:id/section",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}
1findByIdPayments(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/:id/payments/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdPayments(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/:id/payments/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdPayments(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/:id/payments/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}findByIdFees(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/:id/fees/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdFees(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/:id/fees/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdFees(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/:id/fees/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getPayments(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/:id/payments",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createPayments(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/:id/payments";return this.request("POST",i,{id:e},{},{data:t},null,n)}deletePayments(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/:id/payments";return this.request("DELETE",n,{id:e},{},{},null,t)}countPayments(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/:id/payments/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getFees(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/:id/fees",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createFees(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/:id/fees";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteFees(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/:id/fees";return this.request("DELETE",n,{id:e},{},{},null,t)}countFees(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/:id/fees/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}destroyAll(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates",i={};return null!=e&&(i.where=e),this.request("DELETE",n,{},i,{},null,t)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}groupBy(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/groupBy",r={};return null!=e&&(r.property=e),null!=t&&(r.query=t),this.request("GET",i,{},r,{},null,n)}getBase(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/base",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}getByIdBase(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/:id/base",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}getByIdFull(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/:id/full",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}clearBalance(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/:id/clearBalance",r={id:e},s={};return null!=t&&(s.executed_date=t),this.request("PUT",i,r,s,{},null,n)}refresh(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/:id/refresh";return this.request("POST",n,{id:e},{},{},null,t)}extractData(e={},t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/extract",r={};return null!=e&&(r.query=e),null!=t&&(r.transform=t),this.request("GET",i,{},r,{},null,n)}findAdvanced(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/findAdvanced",i={};return null!=e&&(i.query=e),this.request("GET",n,{},i,{},null,t).pipe(Object(l.a)(e=>e.map(e=>new u.a(e))))}countAdvanced(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/findAdvanced/count",i={};return null!=e&&(i.query=e),this.request("GET",n,{},i,{},null,t)}generateCertificate(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/:id/certificate";return this.request("GET",n,{id:e},{},{},null,t)}payment(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/:id/payment";return this.request("POST",n,{id:e},{},{},null,t)}getDeleted(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/deleted",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countDeleted(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/deleted/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}getByIdDeleted(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/deleted/:id",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}forceDelete(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/force",i={};return null!=e&&(i.where=e),this.request("DELETE",n,{},i,{},null,t)}deleteDeleted(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/deleted",i={};return null!=e&&(i.where=e),this.request("DELETE",n,{},i,{},null,t)}destroyByIdDeleted(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/deleted/:id";return this.request("DELETE",n,{id:e},{},{},null,t)}restoreDeleted(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/deleted/restore",i={};return null!=e&&(i.where=e),this.request("PATCH",n,{},i,{},null,t)}restoreByIdDeleted(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/deleted/restore/:id";return this.request("PATCH",n,{id:e},{},{},null,t)}createManyPayments(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/:id/payments";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyFees(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAssociates/:id/fees";return this.request("POST",i,{id:e},{},{data:t},null,n)}getModelName(){return"SimiAssociate"}}return e.\u0275fac=function(t){return new(t||e)(d.gc(i.b),d.gc(r.a),d.gc(a.a),d.gc(c.a,8))},e.\u0275prov=d.Pb({token:e,factory:e.\u0275fac}),e})()},aZ40:function(e,t){const n=new Uint8Array(512),i=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)n[t]=e,i[e]=t,e<<=1,256&e&&(e^=285);for(let t=255;t<512;t++)n[t]=n[t-255]}(),t.log=function(e){if(e<1)throw new Error("log("+e+")");return i[e]},t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[i[e]+i[t]]}},aceb:function(e,t,n){"use strict";n.d(t,"B",function(){return uo}),n.d(t,"cb",function(){return Ls}),n.d(t,"A",function(){return ms}),n.d(t,"bb",function(){return Ao}),n.d(t,"qb",function(){return Bo}),n.d(t,"b",function(){return Oi}),n.d(t,"Cb",function(){return Zr}),n.d(t,"Db",function(){return Ri}),n.d(t,"Y",function(){return Ii}),n.d(t,"Q",function(){return Di}),n.d(t,"R",function(){return Ni}),n.d(t,"v",function(){return cs}),n.d(t,"u",function(){return rs}),n.d(t,"r",function(){return ss}),n.d(t,"t",function(){return os}),n.d(t,"s",function(){return as}),n.d(t,"q",function(){return Bs}),n.d(t,"U",function(){return vo}),n.d(t,"P",function(){return go}),n.d(t,"O",function(){return mo}),n.d(t,"T",function(){return bo}),n.d(t,"S",function(){return yo}),n.d(t,"ab",function(){return No}),n.d(t,"Z",function(){return Ro}),n.d(t,"jb",function(){return Vo}),n.d(t,"pb",function(){return Wo}),n.d(t,"ob",function(){return qo}),n.d(t,"nb",function(){return Uo}),n.d(t,"zb",function(){return $o}),n.d(t,"xb",function(){return Go}),n.d(t,"yb",function(){return Yo}),n.d(t,"Mb",function(){return Qo}),n.d(t,"Lb",function(){return Zo}),n.d(t,"j",function(){return Jo}),n.d(t,"h",function(){return Xo}),n.d(t,"i",function(){return Ko}),n.d(t,"kb",function(){return ta}),n.d(t,"x",function(){return na}),n.d(t,"y",function(){return ia}),n.d(t,"m",function(){return Lo}),n.d(t,"n",function(){return Do}),n.d(t,"eb",function(){return la}),n.d(t,"fb",function(){return ua}),n.d(t,"z",function(){return da}),n.d(t,"k",function(){return ha}),n.d(t,"l",function(){return pa}),n.d(t,"w",function(){return va}),n.d(t,"sb",function(){return ka}),n.d(t,"rb",function(){return wa}),n.d(t,"ub",function(){return Ca}),n.d(t,"vb",function(){return Sa}),n.d(t,"tb",function(){return Ta}),n.d(t,"c",function(){return Pa}),n.d(t,"e",function(){return Oa}),n.d(t,"d",function(){return Aa}),n.d(t,"f",function(){return Ea}),n.d(t,"g",function(){return Ma}),n.d(t,"o",function(){return fs}),n.d(t,"p",function(){return gs}),n.d(t,"V",function(){return Ia}),n.d(t,"W",function(){return Ra}),n.d(t,"X",function(){return La}),n.d(t,"M",function(){return ba}),n.d(t,"N",function(){return ya}),n.d(t,"G",function(){return za}),n.d(t,"F",function(){return Fa}),n.d(t,"Fb",function(){return Xa}),n.d(t,"Gb",function(){return Qa}),n.d(t,"Kb",function(){return ec}),n.d(t,"Jb",function(){return Ja}),n.d(t,"mb",function(){return lc}),n.d(t,"lb",function(){return oc}),n.d(t,"db",function(){return ic}),n.d(t,"Eb",function(){return dc}),n.d(t,"E",function(){return gc}),n.d(t,"a",function(){return no}),n.d(t,"D",function(){return io}),n.d(t,"C",function(){return oo}),n.d(t,"ib",function(){return yc}),n.d(t,"hb",function(){return bc}),n.d(t,"gb",function(){return mc}),n.d(t,"Bb",function(){return wc}),n.d(t,"Ab",function(){return _c}),n.d(t,"L",function(){return is}),n.d(t,"J",function(){return ns}),n.d(t,"wb",function(){return Kr}),n.d(t,"K",function(){return ts}),n.d(t,"Ib",function(){return Cc}),n.d(t,"Hb",function(){return kc}),n.d(t,"I",function(){return Oc}),n.d(t,"H",function(){return Pc});var i=n("fXoL"),r=n("ofXK"),s=n("jtHE"),o=n("XNiG"),a=n("HDdC"),c=n("xgIS"),l=n("VRyK"),u=n("EY2u"),d=n("2Vo4"),h=n("LRne"),p=n("Cfvw"),f=(n("l5mm"),n("PqYM"),n("cp0P"),n("itXk")),g=n("lJxs"),m=n("JX91"),b=n("Zy1z"),y=n("pLZG"),v=n("/uUt"),_=n("w1tV"),w=n("1G5W"),k=n("3E0/"),C=n("/d8p"),S=n("eIep"),T=n("Kj3r"),P=n("GJmQ"),O=n("IzEk"),x=n("vkgz"),A=n("x+ZX"),E=n("zP0r"),M=n("nYR2"),I=n("3Pt+"),R=n("tyNb"),L=n("quSY");function D(e){return Array.isArray(e)?e:[e]}function j(e){return null==e?"":"string"==typeof e?e:`${e}px`}function N(e){return e instanceof i.l?e.nativeElement:e}let V;try{V="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(xc){V=!1}let z,F,B,q=(()=>{class e{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Object(r.E)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(m
1sie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!V)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return e.\u0275fac=function(t){return new(t||e)(i.gc(i.E))},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.gc)(i.E))},token:e,providedIn:"root"}),e})(),U=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({}),e})();function H(e){return function(){if(null==z&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>z=!0}))}finally{z=z||!1}return z}()?e:!!e.capture}function W(){if(null==F){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return F=!1,F;if("scrollBehavior"in document.documentElement.style)F=!0;else{const e=Element.prototype.scrollTo;F=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return F}class G{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new o.a,this._typeaheadSubscription=L.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new o.a,this.change=new o.a,e instanceof i.G&&e.changes.subscribe(e=>{if(this._activeItem){const t=e.toArray().indexOf(this._activeItem);t>-1&&t!==this._activeItemIndex&&(this._activeItemIndex=t)}})}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(x.a)(e=>this._pressedLetters.push(e)),Object(T.a)(e),Object(y.a)(()=>this._pressedLetters.length>0),Object(g.a)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let n=1;n<t.length+1;n++){const i=(this._activeItemIndex+n)%t.length,r=t[i];if(!this._skipPredicateFn(r)&&0===r.getLabel().toUpperCase().trim().indexOf(e)){this.setActiveItem(i);break}}this._pressedLetters=[]}),this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}setActiveItem(e){const t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}onKeydown(e){const t=e.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(t=>!e[t]||this._allowedModifierKeys.indexOf(t)>-1);switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical&&n){this.setNextItemActive();break}return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||function(e,...t){return t.length?t.some(t=>e[t]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))))}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){const t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){const t=this._getItemsArray();for(let n=1;n<=t.length;n++){const i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,t){const n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof i.G?this._items.toArray():this._items}}class Y extends G{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}}class $ extends G{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}}let Z=(()=>{class e{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function(e){try{return e.frameElement}catch(xc){return null}}((n=e).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(t){if(-1===X(t))return!1;if(!this.isVisible(t))return!1}let i=e.nodeName.toLowerCase(),r=X(e);return e.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){let t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIRE
1FOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){let t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||Q(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}return e.\u0275fac=function(t){return new(t||e)(i.gc(q))},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.gc)(q))},token:e,providedIn:"root"}),e})();function Q(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;let t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function X(e){if(!Q(e))return null;const t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class K{constructor(e,t,n,i,r=!1){this._element=e,this._checker=t,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}destroy(){const e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement()))})}_getRegionBoundary(e){let t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);for(let n=0;n<t.length;n++)t[n].hasAttribute(`cdk-focus-${e}`)?console.warn(`Found use of deprecated attribute 'cdk-focus-${e}', use 'cdkFocusRegion${e}' instead. The deprecated attribute will be removed in 8.0.0.`,t[n]):t[n].hasAttribute(`cdk-focus-region-${e}`)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${e}', use 'cdkFocusRegion${e}' instead. The deprecated attribute will be removed in 8.0.0.`,t[n]);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return null==t||t.focus(),!!t}return e.focus(),!0}return this.focusFirstTabbableElement()}focusFirstTabbableElement(){const e=this._getRegionBoundary("start");return e&&e.focus(),!!e}focusLastTabbableElement(){const e=this._getRegionBoundary("end");return e&&e.focus(),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children||e.childNodes;for(let n=0;n<t.length;n++){let e=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(e)return e}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children||e.childNodes;for(let n=t.length-1;n>=0;n--){let e=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(e)return e}return null}_createAnchor(){const e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(Object(O.a)(1)).subscribe(e)}}let J=(()=>{class e{constructor(e,t,n){this._checker=e,this._ngZone=t,this._document=n}create(e,t=!1){return new K(e,this._checker,this._ngZone,this._document,t)}}return e.\u0275fac=function(t){return new(t||e)(i.gc(Z),i.gc(i.C),i.gc(r.d))},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.gc)(Z),Object(i.gc)(i.C),Object(i.gc)(r.d))},token:e,providedIn:"root"}),e})();"undefined"!=typeof Element&∈const ee=new i.t("cdk-focus-monitor-default-options"),te=H({passive:!0,capture:!0});let ne=(()=>{class e{constructor(e,t,n,i){this._ngZone=e,this._platform=t,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=e=>{if(!this._lastTouchTarget){const t=function(e){return 0===e.buttons}(e)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=e=>{!function(e){const t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}(e)?(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=ie(e),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)):this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard")},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=e=>{const t=ie(e),n="focus"===e.type?this._onFocus:this._onBlur;for(let i=t;i;i=i.parentElement)n.call(this,e,i)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(e,t=!1){const n=N(e);if(!this._platform.isBrowser||1!==n.nodeType)return Object(h.a)(null);const i=function(e){if(function(){if(null==B){const e="undefined"!=typeof document?document.head:null;B=!(!e||!e.createShadowRoot&&!e.attachShadow)}return B}()){const t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;
1const s={checkChildren:t,subject:new o.a,rootNode:i};return this._elementInfo.set(n,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const t=N(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}focusVia(e,t,n){const i=N(e);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(([e,n])=>this._originChanged(e,t,n)):(this._setOriginForCurrentEventQueue(t),"function"==typeof i.focus&&i.focus(n))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(e,t,n){n?e.classList.add(t):e.classList.remove(t)}_getFocusOrigin(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}_setClasses(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}_setOriginForCurrentEventQueue(e){this._ngZone.runOutsideAngular(()=>{this._origin=e,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(e){const t=ie(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}_onFocus(e,t){const n=this._elementInfo.get(t);n&&(n.checkChildren||t===ie(e))&&this._originChanged(t,this._getFocusOrigin(e),n)}_onBlur(e,t){const n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}_emitOrigin(e,t){this._ngZone.run(()=>e.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,n=this._rootNodeFocusListenerCount.get(t)||0;n||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,te),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,te)}),this._rootNodeFocusListenerCount.set(t,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const e=this._getDocument(),t=this._getWindow();e.addEventListener("keydown",this._documentKeydownListener,te),e.addEventListener("mousedown",this._documentMousedownListener,te),e.addEventListener("touchstart",this._documentTouchstartListener,te),t.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const e=this._rootNodeFocusListenerCount.get(t);e>1?this._rootNodeFocusListenerCount.set(t,e-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,te),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,te),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){const e=this._getDocument(),t=this._getWindow();e.removeEventListener("keydown",this._documentKeydownListener,te),e.removeEventListener("mousedown",this._documentMousedownListener,te),e.removeEventListener("touchstart",this._documentTouchstartListener,te),t.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((n,i)=>{(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}return e.\u0275fac=function(t){return new(t||e)(i.gc(i.C),i.gc(q),i.gc(r.d,8),i.gc(ee,8))},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.gc)(i.C),Object(i.gc)(q),Object(i.gc)(r.d,8),Object(i.gc)(ee,8))},token:e,providedIn:"root"}),e})();function ie(e){return e.composedPath?e.composedPath()[0]:e.target}class re{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class se extends re{constructor(e,t,n,i){super(),this.component=e,this.viewContainerRef
1=t,this.injector=n,this.componentFactoryResolver=i}}class oe extends re{constructor(e,t,n){super(),this.templateRef=e,this.viewContainerRef=t,this.context=n}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class ae extends re{constructor(e){super(),this.element=e instanceof i.l?e.nativeElement:e}}class ce{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof se?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof oe?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof ae?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class le extends ce{constructor(e,t,n,i,r){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=e=>{const t=e.element,n=this._document.createComment("dom-portal");t.parentNode.insertBefore(n,t),this.outletElement.appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(t,n)})},this._document=r}attachComponentPortal(e){const t=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let n;return e.viewContainerRef?(n=e.viewContainerRef.createComponent(t,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=t.create(e.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=e,n}attachTemplatePortal(e){let t=e.viewContainerRef,n=t.createEmbeddedView(e.templateRef,e.context);return n.rootNodes.forEach(e=>this.outletElement.appendChild(e)),n.detectChanges(),this.setDisposeFn(()=>{let e=t.indexOf(n);-1!==e&&t.remove(e)}),this._attachedPortal=e,n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let ue=(()=>{class e extends oe{constructor(e,t){super(e,t)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.Q),i.Tb(i.U))},e.\u0275dir=i.Ob({type:e,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[i.Db]}),e})(),de=(()=>{class e extends ce{constructor(e,t,n){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new i.o,this.attachDomPortal=e=>{const t=e.element,n=this._document.createComment("dom-portal");e.setAttachedHost(this),t.parentNode.insertBefore(n,t),this._getRootNode().appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(t,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),i=t.createComponent(n,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;
1return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.j),i.Tb(i.U),i.Tb(r.d))},e.\u0275dir=i.Ob({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.Db]}),e})(),he=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({}),e})();class pe{constructor(e,t){this._parentInjector=e,this._customTokens=t}get(e,t){const n=this._customTokens.get(e);return void 0!==n?n:this._parentInjector.get(e,t)}}n("eNwd"),n("7Hc7");var fe=(n("7+OI"),n("3UWI"));n("UXun");const ge=new i.t("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(i.Z)(r.d)}});let me=(()=>{class e{constructor(e){if(this.value="ltr",this.change=new i.o,e){const t=(e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null);this.value="ltr"===t||"rtl"===t?t:"ltr"}}ngOnDestroy(){this.change.complete()}}return e.\u0275fac=function(t){return new(t||e)(i.gc(ge,8))},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.gc)(ge,8))},token:e,providedIn:"root"}),e})(),be=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({}),e})(),ye=(()=>{class e{constructor(e,t,n){this._ngZone=e,this._platform=t,this._scrolled=new o.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new a.a(t=>{this._globalSubscription||this._addGlobalListener();const n=e>0?this._scrolled.pipe(Object(fe.a)(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Object(h.a)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(Object(y.a)(e=>!e||n.indexOf(e)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,e)&&t.push(i)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let n=N(t),i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const e=this._getWindow();return Object(c.a)(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return e.\u0275fac=function(t){return new(t||e)(i.gc(i.C),i.gc(q),i.gc(r.d,8))},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.gc)(i.C),Object(i.gc)(q),Object(i.gc)(r.d,8))},token:e,providedIn:"root"}),e})(),ve=(()=>{class e{constructor(e,t,n){this._platform=e,this._change=new o.a,this._changeListener=e=>{this._change.next(e)},this._document=n,t.runOutsideAngular(()=>{if(e.isBrowser){const e=this._getWindow();e.addEventListener("resize",this._changeListener),e.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:n}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+n,right:e.left+t,height:n,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left
1:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Object(fe.a)(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return e.\u0275fac=function(t){return new(t||e)(i.gc(q),i.gc(i.C),i.gc(r.d,8))},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.gc)(q),Object(i.gc)(i.C),Object(i.gc)(r.d,8))},token:e,providedIn:"root"}),e})(),_e=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({}),e})(),we=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[be,U,_e],be,_e]}),e})();const ke=W();class Ce{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=j(-this._previousScrollPosition.left),e.style.top=j(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,t=e.style,n=this._document.body.style,i=t.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),ke&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ke&&(t.scrollBehavior=i,n.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class Se{constructor(e,t,n,i){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Te{enable(){}disable(){}attach(){}}function Pe(e,t){return t.some(t=>e.bottom<t.top||e.top>t.bottom||e.right<t.left||e.left>t.right)}function Oe(e,t){return t.some(t=>e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right)}class xe{constructor(e,t,n,i){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:n}=this._viewportRuler.getViewportSize();Pe(e,[{width:t,height:n,bottom:n,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Ae=(()=>{class e{constructor(e,t,n,i){this._scrollDispatcher=e,this._viewportRuler
1=t,this._ngZone=n,this.noop=()=>new Te,this.close=e=>new Se(this._scrollDispatcher,this._ngZone,this._viewportRuler,e),this.block=()=>new Ce(this._viewportRuler,this._document),this.reposition=e=>new xe(this._scrollDispatcher,this._viewportRuler,this._ngZone,e),this._document=i}}return e.\u0275fac=function(t){return new(t||e)(i.gc(ye),i.gc(ve),i.gc(i.C),i.gc(r.d))},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.gc)(ye),Object(i.gc)(ve),Object(i.gc)(i.C),Object(i.gc)(r.d))},token:e,providedIn:"root"}),e})();class Ee{constructor(e){if(this.scrollStrategy=new Te,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const n of t)void 0!==e[n]&&(this[n]=e[n])}}}class Me{constructor(e,t,n,i,r){this.offsetX=n,this.offsetY=i,this.panelClass=r,this.originX=e.originX,this.originY=e.originY,this.overlayX=t.overlayX,this.overlayY=t.overlayY}}class Ie{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}let Re=(()=>{class e{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return e.\u0275fac=function(t){return new(t||e)(i.gc(r.d))},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.gc)(r.d))},token:e,providedIn:"root"}),e})(),Le=(()=>{class e extends Re{constructor(e){super(e),this._keydownListener=e=>{const t=this._attachedOverlays;for(let n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return e.\u0275fac=function(t){return new(t||e)(i.gc(r.d))},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.gc)(r.d))},token:e,providedIn:"root"}),e})(),De=(()=>{class e extends Re{constructor(e,t){super(e),this._platform=t,this._cursorStyleIsSet=!1,this._clickListener=e=>{const t=e.composedPath?e.composedPath()[0]:e.target,n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const r=n[i];if(!(r._outsidePointerEvents.observers.length<1)&&r.hasAttached()){if(r.overlayElement.contains(t))break;r._outsidePointerEvents.next(e)}}}}add(e){if(super.add(e),!this._isAttached){const e=this._document.body;e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=e.style.cursor,e.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return e.\u0275fac=function(t){return new(t||e)(i.gc(r.d),i.gc(q))},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.gc)(r.d),Object(i.gc)(q))},token:e,providedIn:"root"}),e})();const je=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let Ne=(()=>{class e{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){if(this._platform.isBrowser||je){const e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let t=0;t<e.length;t++)e[t].parentNode.removeChild(e[t])}const e=this._document.createElement("div");e.classList.add("cdk-overlay-container"),je?e.setAttribute("platform","test"):this._platform.isBrowser||e.setAttribute("platform","server"),this._document.body.appendChild(e),this._containerElement=e}}return e.\u0275fac=function(t){return new(t||e)(i.gc(r.d),i.gc(q))},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.gc)(r.d),Ob
1ject(i.gc)(q))},token:e,providedIn:"root"}),e})();class Ve{constructor(e,t,n,i,r,s,a,c,l){this._portalOutlet=e,this._host=t,this._pane=n,this._config=i,this._ngZone=r,this._keyboardDispatcher=s,this._document=a,this._location=c,this._outsideClickDispatcher=l,this._backdropElement=null,this._backdropClick=new o.a,this._attachments=new o.a,this._detachments=new o.a,this._locationChanges=L.a.EMPTY,this._backdropClickHandler=e=>this._backdropClick.next(e),this._keydownEvents=new o.a,this._outsidePointerEvents=new o.a,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){let t=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Object(O.a)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=j(this._config.width),e.height=j(this._config.height),e.minWidth=j(this._config.minWidth),e.minHeight=j(this._config.minHeight),e.maxWidth=j(this._config.maxWidth),e.maxHeight=j(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e,t=this._backdropElement;if(!t)return;let n=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",n),t.parentNode&&t.parentNode.removeChild(t)),this._backdropElement==t&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",n)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(e,t,n){const i=e.classList;
1D(t).forEach(e=>{e&&(n?i.add(e):i.remove(e))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(Object(w.a)(Object(l.a)(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}}const ze=/([A-Za-z%]+)$/;class Fe{constructor(e,t,n,i,r){this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new o.a,this._resizeSubscription=L.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const e=this._originRect,t=this._overlayRect,n=this._viewportRect,i=[];let r;for(let s of this._preferredPositions){let o=this._getOriginPoint(e,s),a=this._getOverlayPoint(o,t,s),c=this._getOverlayFit(a,t,n,s);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,o);this._canFitWithFlexibleDimensions(c,a,n)?i.push({position:s,origin:o,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(o,s)}):(!r||r.overlayFit.visibleArea<c.visibleArea)&&(r={overlayFit:c,overlayPoint:a,originPoint:o,position:s,overlayRect:t})}if(i.length){let e=null,t=-1;for(const n of i){const i=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);i>t&&(t=i,e=n)}return this._isPushed=!1,void this._applyPosition(e.position,e.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(r.position,r.originPoint);this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Be(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t){let n,i;if("center"==t.originX)n=e.left+e.width/2;else{const i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return i="center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom,{x:n,y:i}}_getOverlayPoint(e,t,n){let i,r;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+r}}_getOverlayFit(e,t,n,i){const r=Ue(t);let{x:s,y:o}=e,a=this._getOffset(i,"x"),c=this._getOffset(i,"y");a&&(s+=a),c&&(o+=c);let l=0-o,u=o+r.height-n.height,d=this._subtractOverflows(r.width,0-s,s+r.width-n.width),h=this._subtractOverflows(r.height,l,u),p=d*h;return{visibleArea:p,isCompletelyWithinViewport:r.width*r.height===p,fitsInViewportVertically:h===r.height,fitsInViewportHorizontally:d==r.width}}_canFitWithFlexibleDimensions(e,t,n){if(this._hasFlexibleDimensions){const i=n.bottom-t.y,r=n.right-t.x,s=qe(this._overlayRef.getConfig().minHeight),o=qe(this._overlayRef.getConfig().minWidth);return(e.fitsInViewportVertically||null!=s&&s<=i)&&(e.fitsInViewportHorizontally||null!=o&&o<=r)}return!1}
1_pushOverlayOnScreen(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const i=Ue(t),r=this._viewportRect,s=Math.max(e.x+i.width-r.width,0),o=Math.max(e.y+i.height-r.height,0),a=Math.max(r.top-n.top-e.y,0),c=Math.max(r.left-n.left-e.x,0);let l=0,u=0;return l=i.width<=r.width?c||-s:e.x<this._viewportMargin?r.left-n.left-e.x:0,u=i.height<=r.height?a||-o:e.y<this._viewportMargin?r.top-n.top-e.y:0,this._previousPushAmount={x:l,y:u},{x:e.x+l,y:e.y+u}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){const t=this._getScrollVisibility(),n=new Ie(e,t);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const t=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,i=e.overlayY;n="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let r=0;r<t.length;r++)t[r].style.transformOrigin=`${n} ${i}`}_calculateBoundingBoxRect(e,t){const n=this._viewportRect,i=this._isRtl();let r,s,o,a,c,l;if("top"===t.overlayY)s=e.y,r=n.height-s+this._viewportMargin;else if("bottom"===t.overlayY)o=n.height-e.y+2*this._viewportMargin,r=n.height-o+this._viewportMargin;else{const t=Math.min(n.bottom-e.y+n.top,e.y),i=this._lastBoundingBoxSize.height;r=2*t,s=e.y-t,r>i&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-i/2)}if("end"===t.overlayX&&!i||"start"===t.overlayX&&i)l=n.width-e.x+this._viewportMargin,a=e.x-this._viewportMargin;else if("start"===t.overlayX&&!i||"end"===t.overlayX&&i)c=e.x,a=n.right-e.x;else{const t=Math.min(n.right-e.x+n.left,e.x),i=this._lastBoundingBoxSize.width;a=2*t,c=e.x-t,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(c=e.x-i/2)}return{top:s,left:c,bottom:o,right:l,width:a,height:r}}_setBoundingBoxStyles(e,t){const n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const e=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;i.height=j(n.height),i.top=j(n.top),i.bottom=j(n.bottom),i.width=j(n.width),i.left=j(n.left),i.right=j(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",e&&(i.maxHeight=j(e)),r&&(i.maxWidth=j(r))}this._lastBoundingBoxSize=n,Be(this._boundingBox.style,i)}_resetBoundingBoxStyles(){Be(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Be(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();Be(n,this._getExactOverlayY(t,e,i)),Be(n,this._getExactOverlayX(t,e,i))}else n.position="static";let o="",a=this._getOffset(t,"x"),c=this._getOffset(t,"y");a&&(o+=`translateX(${a}px) `),c&&(o+=`translateY(${c}px)`),n.transform=o.trim(),s.maxHeight&&(i?n.maxHeight=j(s.maxHeight):r&&(n.maxHeight="")),s.maxWidth&&(i?n.maxWidth=j(s.maxWidth):r&&(n.maxWidth="")),Be(this._pane.style,n)}_getExactOverlayY(e,t,n){let i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=s,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=j(r.y),i}_getExactOverlayX(e,t,n){let i,r={left:"",right:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n)),i=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===i?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=j(s.x),r}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(e=>e.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Oe(e,n),isOriginOutsideView:Pe(e,n),isOverlayClipped:Oe(t,n),isOverlayOutsideView:Pe(t,n)}}_subtractOverflows(e,...t){return t.reduce((e,t)=>
1e-Math.max(t,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&D(e).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof i.l)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}}function Be(e,t){for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function qe(e){if("number"!=typeof e&&null!=e){const[t,n]=e.split(ze);return n&&"px"!==n?null:parseFloat(t)}return e||null}function Ue(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}class He{constructor(e,t,n,i,r,s,o){this._preferredPositions=[],this._positionStrategy=new Fe(n,i,r,s,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(e,t),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(e){this._overlayRef=e,this._positionStrategy.attach(e),this._direction&&(e.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(e){this._positionStrategy.withScrollableContainers(e)}withFallbackPosition(e,t,n,i){const r=new Me(e,t,n,i);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this}withOffsetX(e){return this._positionStrategy.withDefaultOffsetX(e),this}withOffsetY(e){return this._positionStrategy.withDefaultOffsetY(e),this}withLockedPosition(e){return this._positionStrategy.withLockedPosition(e),this}withPositions(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(e){return this._positionStrategy.setOrigin(e),this}}class We{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._justifyContent="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}
1apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:r,maxWidth:s,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);e.position=this._cssPosition,e.marginLeft=a?"0":this._leftOffset,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,a?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let Ge=(()=>{class e{constructor(e,t,n,i){this._viewportRuler=e,this._document=t,this._platform=n,this._overlayContainer=i}global(){return new We}connectedTo(e,t,n){return new He(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(e){return new Fe(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return e.\u0275fac=function(t){return new(t||e)(i.gc(ve),i.gc(r.d),i.gc(q),i.gc(Ne))},e.\u0275prov=Object(i.Pb)({factory:function(){return new e(Object(i.gc)(ve),Object(i.gc)(r.d),Object(i.gc)(q),Object(i.gc)(Ne))},token:e,providedIn:"root"}),e})(),Ye=0,$e=(()=>{class e{constructor(e,t,n,i,r,s,o,a,c,l,u){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=r,this._injector=s,this._ngZone=o,this._document=a,this._directionality=c,this._location=l,this._outsideClickDispatcher=u}create(e){const t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new Ee(e);return r.direction=r.direction||this._directionality.value,new Ve(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+Ye++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(i.g)),new le(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return e.\u0275fac=function(t){return new(t||e)(i.gc(Ae),i.gc(Ne),i.gc(i.j),i.gc(Ge),i.gc(Le),i.gc(i.u),i.gc(i.C),i.gc(r.d),i.gc(me),i.gc(r.j),i.gc(De))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();const Ze={provide:new i.t("cdk-connected-overlay-scroll-strategy"),deps:[$e],useFactory:function(e){return()=>e.scrollStrategies.reposition()}};let Qe=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({providers:[$e,Ze],imports:[[be,he,we],we]}),e})();var Xe=n("R0Ic");n("Wr5T");var Ke=n("jhN1");function Je(e,t){if(1&e&&(i.Zb(0,"div",2),i.Qc(1),i.Yb()),2&e){const e=i.nc();i.Gb(1),i.Rc(e.content)}}function et(e,t){}const tt=["*"],nt=[[["nb-card-header"]],[["nb-card-body"]],"*",[["nb-card-footer"]]],it=["nb-card-header","nb-card-body","*","nb-card-footer"],rt=["nbButton",""];function st(e,t){if(1&e&&i.Ub(0,"nb-calendar-week-numbers",4),2&e){const e=i.nc();i.tc("weeks",e.weeks)("size",e.size)("weekNumberSymbol",e.weekNumberSymbol)}}function ot(e,t){if(1&e&&(i.Zb(0,"div",1),i.Qc(1),i.Yb()),2&e){const e=t.$implicit;i.Lb("holiday",e.isHoliday),i.Gb(1),i.Rc(e.name)}}function at(e,t){if(1&e){const e=i.ac();i.Zb(0,"nb-calendar-picker-row",1),i.jc("select",function(t){return i.Hc(e),i.nc().select.emit(t)}),i.Yb()}if(2&e){const e=t.$implicit,n=i.nc();i.tc("row",e)("visibleDate",n.visibleDate)("selectedValue",n.selectedValue)("component",n.cellComponent)("min",n.min)("max",n.max)("filter",n.filter)("size",n.size)}}function ct(e,t){}function lt(e,t){if(1&e&&(i.Zb(0,"div",3),i.Qc(1),i.Yb()),2&e){const e=t.$implicit;i.Gb(1),i.Rc(e)}}const ut="[_nghost-%COMP%]{display:flex;flex-direction:column}";function dt(e,t){if(1&e){const e=i.ac();i.Zb(0,"nb-card-header",5),i.Zb(1,"nb-calendar-view-mode",6),i.jc("changeMode",function(){return i.Hc(e),i.nc().onChangeViewMode()}),i.Yb(),i.Zb(2,"nb-calendar-pageable-navigation",7),i.jc("prev",function(){return i.Hc(e),i.nc().navigatePrev()})("next",function(){return i.Hc(e),i.nc().navigateNext()}),i.Yb(),i.Yb()}if(2&e){const e=i.nc();i.Gb(1),i.tc("date",e.visibleDate)("viewMode",e.activeViewMode)}}function ht(e,t){if(1&e){const e=i.ac();i.Zb(0,"nb-calendar-day-picker",8),i.jc("dateChange",function(t){return i.Hc(e),i.nc().dateChange.emit(t)}),i.Yb()}if(2&e){const e=i.nc();i.tc("boundingMonths",e.boundingMonth)("cellComponent",e.dayCellComponent)("min",e.min)("max",e.max)("filter",e.filter)("visibleDate",e.visibleDate)("size",e.size)("date",e.date)("showWeekNumber",e.showWeekNumber)("weekNumberSymbol",e.weekNumberSymbol)}}function pt(e,t){if(1&e){const e=i.ac();i.Zb(0,"nb-calendar-year-picker",9),i.jc("yearChange",function(t){i.Hc(e);const n=i.nc();
1return n.setVisibleDate(t),n.setViewMode(n.ViewMode.MONTH)}),i.Yb()}if(2&e){const e=i.nc();i.tc("cellComponent",e.yearCellComponent)("date",e.date)("min",e.min)("max",e.max)("filter",e.filter)("size",e.size)("year",e.visibleDate)}}function ft(e,t){if(1&e){const e=i.ac();i.Zb(0,"nb-calendar-month-picker",10),i.jc("monthChange",function(t){i.Hc(e);const n=i.nc();return n.setVisibleDate(t),n.setViewMode(n.ViewMode.DATE)}),i.Yb()}if(2&e){const e=i.nc();i.tc("cellComponent",e.monthCellComponent)("min",e.min)("max",e.max)("filter",e.filter)("size",e.size)("month",e.visibleDate)("date",e.date)}}function gt(e,t){1&e&&(i.Xb(0),i.Zb(1,"div",8),i.Qc(2,"Time"),i.Yb(),i.Wb())}function mt(e,t){if(1&e&&(i.Zb(0,"div",8),i.Qc(1),i.Yb()),2&e){const e=i.nc(3);i.Gb(1),i.Rc(e.secondsText)}}function bt(e,t){if(1&e&&(i.Zb(0,"div",8),i.Qc(1),i.Yb()),2&e){const e=i.nc(3);i.Gb(1),i.Rc(e.ampmText)}}function yt(e,t){if(1&e&&(i.Zb(0,"div",8),i.Qc(1),i.Yb(),i.Zb(2,"div",8),i.Qc(3),i.Yb(),i.Oc(4,mt,2,1,"div",9),i.Oc(5,bt,2,1,"div",9)),2&e){const e=i.nc(2);i.Gb(1),i.Rc(e.hoursText),i.Gb(2),i.Rc(e.minutesText),i.Gb(1),i.tc("ngIf",e.withSeconds),i.Gb(1),i.tc("ngIf",e.twelveHoursFormat)}}function vt(e,t){if(1&e){const e=i.ac();i.Zb(0,"nb-list-item",12),i.Zb(1,"nb-timepicker-cell",13),i.jc("select",function(){i.Hc(e);const n=t.$implicit;return i.nc(3).selectFullTime(n)}),i.Yb(),i.Yb()}if(2&e){const e=t.$implicit,n=i.nc(3);i.Lb("selected",n.isSelectedFullTimeValue(e)),i.Gb(1),i.tc("value",n.getFullTimeString(e))("selected",n.isSelectedFullTimeValue(e))}}function _t(e,t){if(1&e&&(i.Xb(0),i.Zb(1,"nb-list",10),i.Oc(2,vt,2,4,"nb-list-item",11),i.Yb(),i.Wb()),2&e){const e=i.nc(2);i.Gb(2),i.tc("ngForOf",e.fullTimeOptions)("ngForTrackBy",e.trackBySingleColumnValue.bind(e))}}function wt(e,t){if(1&e){const e=i.ac();i.Zb(0,"nb-list-item",12),i.Zb(1,"nb-timepicker-cell",13),i.jc("select",function(){i.Hc(e);const n=t.$implicit;return i.nc(3).setHour(n.value)}),i.Yb(),i.Yb()}if(2&e){const e=t.$implicit,n=i.nc(3);i.Lb("selected",n.isSelectedHour(e.value)),i.Gb(1),i.tc("value",e.text)("selected",n.isSelectedHour(e.value))}}function kt(e,t){if(1&e){const e=i.ac();i.Zb(0,"nb-list-item",12),i.Zb(1,"nb-timepicker-cell",13),i.jc("select",function(){i.Hc(e);const n=t.$implicit;return i.nc(3).setMinute(n.value)}),i.Yb(),i.Yb()}if(2&e){const e=t.$implicit,n=i.nc(3);i.Lb("selected",n.isSelectedMinute(e.value)),i.Gb(1),i.tc("value",e.text)("selected",n.isSelectedMinute(e.value))}}function Ct(e,t){if(1&e){const e=i.ac();i.Zb(0,"nb-list-item",12),i.Zb(1,"nb-timepicker-cell",13),i.jc("select",function(){i.Hc(e);const n=t.$implicit;return i.nc(4).setSecond(n.value)}),i.Yb(),i.Yb()}if(2&e){const e=t.$implicit,n=i.nc(4);i.Lb("selected",n.isSelectedSecond(e.value)),i.Gb(1),i.tc("value",e.text)("selected",n.isSelectedSecond(e.value))}}function St(e,t){if(1&e&&(i.Zb(0,"nb-list",10),i.Oc(1,Ct,2,4,"nb-list-item",11),i.Yb()),2&e){const e=i.nc(3);i.Gb(1),i.tc("ngForOf",e.secondsColumnOptions)("ngForTrackBy",e.trackByTimeValues)}}function Tt(e,t){if(1&e){const e=i.ac();i.Zb(0,"nb-list-item",16),i.Zb(1,"nb-timepicker-cell",13),i.jc("select",function(){i.Hc(e);const n=t.$implicit;return i.nc(4).changeDayPeriod(n)}),i.Yb(),i.Yb()}if(2&e){const e=t.$implicit,n=i.nc(4);i.Lb("selected",n.isSelectedDayPeriod(e)),i.Gb(1),i.tc("value",e)("selected",n.isSelectedDayPeriod(e))}}function Pt(e,t){if(1&e&&(i.Zb(0,"nb-list",10),i.Oc(1,Tt,2,4,"nb-list-item",15),i.Yb()),2&e){const e=i.nc(3);i.Gb(1),i.tc("ngForOf",e.dayPeriodColumnOptions)("ngForTrackBy",e.trackByDayPeriod)}}function Ot(e,t){if(1&e&&(i.Zb(0,"nb-list",10),i.Oc(1,wt,2,4,"nb-list-item",11),i.Yb(),i.Zb(2,"nb-list",10),i.Oc(3,kt,2,4,"nb-list-item",11),i.Yb(),i.Oc(4,St,2,2,"nb-list",14),i.Oc(5,Pt,2,2,"nb-list",14)),2&e){const e=i.nc(2);i.Gb(1),i.tc("ngForOf",e.hoursColumnOptions)("ngForTrackBy",e.trackByTimeValues),i.Gb(2),i.tc("ngForOf",e.minutesColumnOptions)("ngForTrackBy",e.trackByTimeValues),i.Gb(1),i.tc("ngIf",e.showSeconds()),i.Gb(1),i.tc("ngIf",e.twelveHoursFormat)}}function xt(e,t){if(1&e){const e=i.ac();i.Zb(0,"nb-card-footer",17),i.Zb(1,"nb-calendar-actions",18),i.jc("setCurrentTime",function(){return i.Hc(e),i.nc(2).setCurrentTime()})("saveValue",function(){return i.Hc(e),i.nc(2).saveValue()}),i.Yb(),i.Yb()}if(2&e){const e=i.nc(2);i.Gb(1),i.tc("applyButtonText",e.applyButtonText)("currentTimeButtonText",e.currentTimeButtonText)}}function At(e,t){if(1&e&&(i.Zb(0,"nb-card",1),i.Zb(1,"nb-card-header",2),i.Oc(2,gt,3,0,"ng-container",3),i.Oc(3,yt,6,4,"ng-template",null,4,i.Pc),i.Yb(),i.Zb(5,"div",5),i.Oc(6,_t,3,2,"ng-container",3),i.Oc(7,Ot,6,6,"ng-template",null,6,i.Pc),i.Yb(),i.Oc(9,xt,2,2,"nb-card-footer",7),i.Yb()),2&e){const e=i.Fc(4),t=i.Fc(8),n=i.nc();i.Lb("supports-scrollbar-theming",!n.isFirefox()),i.Gb(2),i.tc("ngIf",n.singleColumn)("ngIfElse",e),i.Gb(4),i.tc("ngIf",n.singleColumn)("ngIfElse",t),i.Gb(3),i.tc("ngIf",n.showFooter)}}const Et=["layoutTopDynamicArea"],Mt=["scrollableContainer"],It=["layoutContainer"],Rt=[[["nb-layout-header",3,"subheader",""]],[["nb-sidebar"]],[["nb-layout-header","subheader",""]],[["nb-layout-column"]],[["nb-layout-footer"]]],Lt=["nb-layout-header:not([subheader])","nb-sidebar","nb-layout-header[subheader]","nb-layout-column","nb-layout-footer"],Dt=["nbMenuItem",""];function jt(e,t){if(1&e&&i.Ub(0,"nb-icon",7),2&e){const e=i.nc(2);i.tc("config",e.menuItem.icon)}}function Nt(e,t){if(1&e&&(i.Zb(0,"span"),i.Oc(1,jt,1,1,"nb-icon",6),i.Qc(2),i.Yb()),2&e){const e=i.nc();i.Gb(1),i.tc("ngIf",e.menuItem.icon),i.Gb(1),i.Sc(" ",e.menuItem.title,"\n")}}function Vt(e,t){if(1&e&&i.Ub(0,"nb-icon",7),2&e){const e=i.nc(2);i.tc("config",e.menuItem.icon)}}function zt(e,t){if(1&e&&i.Vb(0,11),2&e){i.nc(2);const e=i.Fc(7);i.tc("ngTemplateOutlet",e)}}function Ft(e,t){if(1&e){const e=i.ac();i.Zb(0,"a",8),i.jc("mouseenter",function(){i.Hc(e);const t=i.nc();return t.onHoverItem(t.menuItem)})("click",function(){i.Hc(e);const t=i.nc();return t.onItemClick(t.menuItem)}),i.Oc(1,Vt,1,1,"nb-icon",6),i.Zb(2,"span",9),i.Qc(3),i.Yb(),i.Oc(4,zt,1,1,"ng-container",10),i.Yb()}if(2&e){const e=i.nc();i.Lb("active",e.menuItem.selected),i.tc("routerLink",e.menuItem.link)("queryParams",e.menuItem.queryParams)("fragment",e.menuItem.fragment)("queryParamsHandling",e.menuItem.queryParamsHandling)("preserveFragment",e.menuItem.preserveFragment)("skipLocationChange",e.menuItem.skipLocationChange),i.Hb("target",e.menuItem.target)("title",e.menuItem.title),i.Gb(1),i.tc("ngIf",e.menuItem.icon),i.Gb(2),i.Rc(e.menuItem.title),i.Gb(1),i.tc("ngIf",e.badge)}}function Bt(e,t){if(1&e&&i.Ub(0,"nb-icon",7),2&e){const e=i.nc(2);i.tc("config",e.menuItem.icon)}}function qt(e,t){if(1&e&&i.Vb(0,11),2&e){i.nc(2);const e=i.Fc(7);i.tc("ngTemplateOutlet",e)}}function Ut(e,t){if(1&e){const e=i.ac();i.Zb(0,"a",12),i.jc("mouseenter",function(){i.Hc(e);const t=i.nc();return t.onHoverItem(t.menuItem)})("click",function(){i.Hc(e);const t=i.nc();return t.onSelectItem(t.menuItem)}),i.Oc(1,Bt,1,1,"nb-icon",6),i.Zb(2,"span",9),i.Qc(3),i.Yb(),i.Oc(4,qt,1,1,"ng-container",10),i.Yb()}if(2&e){const e=i.nc();i.Lb("active",e.menuItem.selected),i.Hb("href",e.menuItem.url,i.Jc)("target",e.menuItem.target)("title",e.menuItem.title),i.Gb(1),i.tc("ngIf",e.menuItem.icon),i.Gb(2),i.Rc(e.menuItem.title),i.Gb(1),i.tc("ngIf",e.badge)}}function Ht(e,t){if(1&e&&i.Ub(0,"nb-icon",7),2&e){const e=i.nc(2);i.tc("config",e.menuItem.icon)}}function Wt(e,t){if(1&e&&i.Vb(0,11),2&e){i.nc(2);const e=i.Fc(7);i.tc("ngTemplateOutlet",e)}}function Gt(e,t){if(1&e){const e=i.ac();i.Zb(0,"a",12),i.jc("mouseenter",function(){i.Hc(e);const t=i.nc();return t.onHoverItem(t.menuItem)})("click",function(t){i.Hc(e);const n=i.nc();return t.preventDefault(),n.onItemClick(n.menuItem)}),i.Oc(1,Ht,1,1,"nb-icon",6),i.Zb(2,"span",9),i.Qc(3),i.Yb(),i.Oc(4,Wt,1,1,"ng-container",10),i.Yb()}if(2&e){const e=i.nc();i.Lb("active",e.menuItem.selected),i.Hb("target",e.menuItem.target)("title",e.menuItem.title),i.Gb(1),i.tc("ngIf",e.menuItem.icon),i.Gb(2),i.Rc(e.menuItem.title),i.Gb(1),i.tc("ngIf",e.badge)}}function Yt(e,t){if(1&e&&i.Ub(0,"nb-icon",7),2&e){const e=i.nc(2);i.tc("config",e.menuItem.icon)}}function $t(e,t){if(1&e&&i.Vb(0,11),2&e){i.nc(2);const e=i.Fc(7);i.tc("ngTemplateOutlet",e)}}function Zt(e,t){if(1&e){const e=i.ac();i.Zb(0,"a",13),i.jc("click",function(t){i.Hc(e);const n=i.nc();return t.preventDefault(),n.onToggleSubMenu(n.menuItem)})("mouseenter",function(){i.Hc(e);const t=i.nc();return t.onHoverItem(t.menuItem)}),i.Oc(1,Yt,1,1,"nb-icon",6),i.Zb(2,"span",9),i.Qc(3),i.Yb(),i.Oc(4,$t,1,1,"ng-container",10),i.Ub(5,"nb-icon",14),i.Yb()}if(2&e){const e=i.nc();i.Lb("active",e.menuItem.selected),i.Hb("target",e.menuItem.target)("title",e.menuItem.title),i.Gb(1),i.tc("ngIf",e.menuItem.icon),i.Gb(2),i.Rc(e.menuItem.title),i.Gb(1),i.tc("ngIf",e.badge),i.Gb(1),i.tc("icon",e.getExpandStateIcon())}}function Qt(e,t){if(1&e){const e=i.ac();i.Zb(0,"li",18),i.jc("hoverItem",function(t){return i.Hc(e),i.nc(3).onHoverItem(t)})("toggleSubMenu",function(t){return i.Hc(e),i.nc(3).onToggleSubMenu(t)})("selectItem",function(t){return i.Hc(e),i.nc(3).onSelectItem(t)})("itemClick",function(t){return i.Hc(e),i.nc(3).onItemClick(t)}),i.Yb()}if(2&e){const e=i.nc().$implicit;i.Lb("menu-group",e.group),i.tc("menuItem",e)("badge",e.badge)}}
1function Xt(e,t){if(1&e&&(i.Xb(0),i.Oc(1,Qt,1,4,"li",17),i.Wb()),2&e){const e=t.$implicit;i.Gb(1),i.tc("ngIf",!e.hidden)}}function Kt(e,t){if(1&e&&(i.Zb(0,"ul",15),i.Oc(1,Xt,2,1,"ng-container",16),i.Yb()),2&e){const e=i.nc();i.Lb("collapsed",!(e.menuItem.children&&e.menuItem.expanded))("expanded",e.menuItem.expanded),i.tc("@toggle",e.toggleState),i.Gb(1),i.tc("ngForOf",e.menuItem.children)}}function Jt(e,t){if(1&e&&i.Ub(0,"nb-badge",19),2&e){const e=i.nc();i.tc("text",e.badge.text)("dotMode",e.badge.dotMode)("status",e.badge.status)}}function en(e,t){if(1&e){const e=i.ac();i.Zb(0,"li",3),i.jc("hoverItem",function(t){return i.Hc(e),i.nc(2).onHoverItem(t)})("toggleSubMenu",function(t){return i.Hc(e),i.nc(2).onToggleSubMenu(t)})("selectItem",function(t){return i.Hc(e),i.nc(2).onSelectItem(t)})("itemClick",function(t){return i.Hc(e),i.nc(2).onItemClick(t)}),i.Yb()}if(2&e){const e=i.nc().$implicit;i.Lb("menu-group",e.group),i.tc("menuItem",e)("badge",e.badge)}}function tn(e,t){if(1&e&&(i.Xb(0),i.Oc(1,en,1,4,"li",2),i.Wb()),2&e){const e=t.$implicit;i.Gb(1),i.tc("ngIf",!e.hidden)}}const nn=[[["nb-sidebar-header"]],"*",[["nb-sidebar-footer"]]],rn=["nb-sidebar-header","*","nb-sidebar-footer"];function sn(e,t){1&e&&(i.Xb(0),i.rc(1),i.Wb())}function on(e,t){if(1&e&&i.Ub(0,"nb-icon",7),2&e){const e=i.nc().$implicit;i.tc("config",e.tabIcon)}}function an(e,t){if(1&e&&(i.Zb(0,"span",8),i.Qc(1),i.Yb()),2&e){const e=i.nc().$implicit;i.Gb(1),i.Rc(e.tabTitle)}}function cn(e,t){if(1&e&&i.Ub(0,"nb-badge",9),2&e){const e=i.nc().$implicit;i.tc("text",e.badgeText)("dotMode",e.badgeDot)("status",e.badgeStatus)("position",e.badgePosition)}}function ln(e,t){if(1&e){const e=i.ac();i.Zb(0,"li",2),i.jc("click",function(){i.Hc(e);const n=t.$implicit;return i.nc().selectTab(n)})("keyup.space",function(){i.Hc(e);const n=t.$implicit;return i.nc().selectTab(n)})("keyup.enter",function(){i.Hc(e);const n=t.$implicit;return i.nc().selectTab(n)}),i.Zb(1,"a",3),i.jc("click",function(e){return e.preventDefault()}),i.Oc(2,on,1,1,"nb-icon",4),i.Oc(3,an,2,1,"span",5),i.Yb(),i.Oc(4,cn,1,4,"nb-badge",6),i.Yb()}if(2&e){const e=t.$implicit;i.Lb("responsive",e.responsive)("active",e.active)("disabled",e.disabled),i.Hb("tabindex",e.disabled?-1:0),i.Gb(2),i.tc("ngIf",e.tabIcon),i.Gb(1),i.tc("ngIf",e.tabTitle),i.Gb(1),i.tc("ngIf",e.badgeText||e.badgeDot)}}const un=[[["nb-tab"]]],dn=["nb-tab"];function hn(e,t){if(1&e&&i.Ub(0,"nb-badge",8),2&e){const e=i.nc(2);i.tc("text",e.badgeText)("status",e.badgeStatus)("position",e.badgePosition)}}function pn(e,t){if(1&e&&(i.Zb(0,"div",6),i.Oc(1,hn,1,3,"nb-badge",7),i.Yb()),2&e){const e=i.nc();i.Mc("background-image",e.imageBackgroundStyle),i.Gb(1),i.tc("ngIf",e.badgeText)}}function fn(e,t){if(1&e&&(i.Xb(0),i.Qc(1),i.Wb()),2&e){const e=i.nc(2);i.Gb(1),i.Sc(" ",e.getInitials()," ")}}function gn(e,t){if(1&e&&i.Ub(0,"nb-badge",8),2&e){const e=i.nc(2);i.tc("text",e.badgeText)("status",e.badgeStatus)("position",e.badgePosition)}}function mn(e,t){if(1&e&&(i.Zb(0,"div",9),i.Oc(1,fn,2,1,"ng-container",10),i.Oc(2,gn,1,3,"nb-badge",7),i.Yb()),2&e){const e=i.nc();i.Mc("background-color",e.color),i.Gb(1),i.tc("ngIf",e.showInitials),i.Gb(1),i.tc("ngIf",e.badgeText)}}function bn(e,t){if(1&e&&(i.Zb(0,"div",11),i.Qc(1),i.Yb()),2&e){const e=i.nc();i.Gb(1),i.Rc(e.name)}}function yn(e,t){if(1&e&&(i.Zb(0,"div",12),i.Qc(1),i.Yb()),2&e){const e=i.nc();i.Gb(1),i.Rc(e.title)}}function vn(e,t){if(1&e&&(i.Zb(0,"a",6),i.Ub(1,"nb-icon",7),i.Vb(2,8),i.Yb()),2&e){const e=i.nc(2),t=i.Fc(4);i.tc("routerLink",e.link)("title",e.title),i.Gb(1),i.tc("config",e.icon),i.Gb(1),i.tc("ngTemplateOutlet",t)}}function _n(e,t){if(1&e&&(i.Zb(0,"a",9),i.Ub(1,"nb-icon",7),i.Vb(2,8),i.Yb()),2&e){const e=i.nc(2),t=i.Fc(4);i.tc("href",e.href,i.Jc)("title",e.title),i.Gb(1),i.tc("config",e.icon),i.Gb(1),i.tc("ngTemplateOutlet",t)}}function wn(e,t){if(1&e&&(i.Zb(0,"a",10),i.jc("click",function(e){return e.preventDefault()}),i.Ub(1,"nb-icon",7),i.Vb(2,8),i.Yb()),2&e){const e=i.nc(2),t=i.Fc(4);i.tc("title",e.title),i.Gb(1),i.tc("config",e.icon),i.Gb(1),i.tc("ngTemplateOutlet",t)}}
1function kn(e,t){if(1&e&&(i.Xb(0),i.Oc(1,vn,3,4,"a",3),i.Oc(2,_n,3,4,"a",4),i.Oc(3,wn,3,3,"a",5),i.Wb()),2&e){const e=i.nc();i.Gb(1),i.tc("ngIf",e.link),i.Gb(1),i.tc("ngIf",e.href&&!e.link),i.Gb(1),i.tc("ngIf",!e.href&&!e.link)}}function Cn(e,t){if(1&e&&(i.rc(0),i.Vb(1,8)),2&e){i.nc();const e=i.Fc(4);i.Gb(1),i.tc("ngTemplateOutlet",e)}}function Sn(e,t){if(1&e&&i.Ub(0,"nb-badge",12),2&e){const e=i.nc(2);i.tc("text",e.badgeText)("dotMode",e.badgeDot)("status",e.badgeStatus)("position",e.badgePosition)}}function Tn(e,t){if(1&e&&i.Oc(0,Sn,1,4,"nb-badge",11),2&e){const e=i.nc();i.tc("ngIf",e.badgeText||e.badgeDot)}}const Pn=[[["nb-action"]]],On=["nb-action"];function xn(e,t){1&e&&i.Ub(0,"nb-icon",6)}function An(e,t){1&e&&i.Ub(0,"nb-icon",7)}function En(e,t){if(1&e){const e=i.ac();i.Zb(0,"button",1),i.jc("click",function(){return i.Hc(e),i.nc().onClose()}),i.Zb(1,"span",2),i.Qc(2,"\xd7"),i.Yb(),i.Yb()}}function Mn(e,t){1&e&&i.rc(0)}function In(e,t){1&e&&i.rc(0)}function Rn(e,t){if(1&e&&i.Ub(0,"div",6),2&e){const e=i.nc().index,t=i.nc();i.Lb("connector-past",e<=t.selectedIndex)}}function Ln(e,t){if(1&e&&(i.Zb(0,"span"),i.Qc(1),i.Yb()),2&e){const e=i.nc(2).index;i.Gb(1),i.Rc(e+1)}}function Dn(e,t){1&e&&i.Ub(0,"nb-icon",12)}function jn(e,t){1&e&&i.Vb(0)}function Nn(e,t){if(1&e&&(i.Xb(0),i.Oc(1,jn,1,0,"ng-container",13),i.Wb()),2&e){const e=i.nc(2).$implicit,t=i.nc();i.Gb(1),i.tc("ngTemplateOutlet",t.getStepTemplate(e))}}function Vn(e,t){if(1&e&&(i.Zb(0,"span"),i.Qc(1),i.Yb()),2&e){const e=i.nc(2).$implicit;i.Gb(1),i.Rc(e.label)}}function zn(e,t){if(1&e){const e=i.ac();i.Zb(0,"div",7),i.jc("click",function(){i.Hc(e);const t=i.nc().$implicit;return!i.nc().disableStepNavigation&&t.select()}),i.Zb(1,"div",8),i.Oc(2,Ln,2,1,"span",9),i.Oc(3,Dn,1,0,"nb-icon",10),i.Yb(),i.Zb(4,"div",11),i.Oc(5,Nn,2,1,"ng-container",9),i.Oc(6,Vn,2,1,"span",9),i.Yb(),i.Yb()}if(2&e){const e=i.nc().$implicit,t=i.nc();i.Lb("selected",t.isStepSelected(e))("completed",!t.isStepSelected(e)&&e.completed)("noninteractive",t.disableStepNavigation),i.Gb(2),i.tc("ngIf",!e.completed||t.isStepSelected(e)),i.Gb(1),i.tc("ngIf",!t.isStepSelected(e)&&e.completed),i.Gb(2),i.tc("ngIf",e.isLabelTemplate),i.Gb(1),i.tc("ngIf",!e.isLabelTemplate)}}function Fn(e,t){if(1&e&&(i.Xb(0),i.Oc(1,Rn,1,2,"div",4),i.Oc(2,zn,7,10,"div",5),i.Wb()),2&e){const e=t.$implicit,n=t.first;i.Gb(1),i.tc("ngIf",!n&&!e.hidden),i.Gb(1),i.tc("ngIf",!e.hidden)}}const Bn=[[["nb-step"]]],qn=["nb-step"],Un=[[["nb-accordion-item"]]],Hn=["nb-accordion-item"],Wn=[[["nb-accordion-item-header"]],[["nb-accordion-item-body"]]],Gn=["nb-accordion-item-header","nb-accordion-item-body"],Yn=function(e){return{value:e}};function $n(e,t){if(1&e&&i.Ub(0,"nb-icon",1),2&e){const e=i.nc();i.tc("@expansionIndicator",e.state)}}const Zn=[[["nb-accordion-item-title"]],[["nb-accordion-item-description"]],"*"],Qn=["nb-accordion-item-title","nb-accordion-item-description","*"],Xn=[[["nb-list-item"]]],Kn=["nb-list-item"];function Jn(e,t){}function ei(e,t){if(1&e&&(i.Zb(0,"div",4),i.Ub(1,"nb-icon",5),i.Yb()),2&e){const e=i.nc();i.Gb(1),i.tc("config",e.icon)}}function ti(e,t){if(1&e&&i.Ub(0,"nb-toast",1),2&e){const e=t.$implicit,n=i.nc();i.tc("@fadeIn",n.fadeIn)("toast",e)}}function ni(e,t){if(1&e&&i.Ub(0,"nb-icon",4),2&e){const e=i.nc();i.tc("config",e.context.icon)}}function ii(e,t){if(1&e&&(i.Zb(0,"span"),i.Qc(1),i.Yb()),2&e){const e=i.nc();i.Gb(1),i.Rc(e.content)}}function ri(e,t){if(1&e&&i.Ub(0,"nb-checkbox",1),2&e){const e=i.nc();i.tc("checked",e.selected)("disabled",e.disabled)}}const si=["selectButton"];function oi(e,t){1&e&&(i.Xb(0),i.rc(1),i.Wb())}function ai(e,t){if(1&e&&i.Qc(0),2&e){const e=i.nc(2);i.Rc(e.selectionView)}}function ci(e,t){if(1&e&&(i.Xb(0),i.Oc(1,oi,2,0,"ng-container",2),i.Oc(2,ai,1,1,"ng-template",null,6,i.Pc),i.Wb()),2&e){const e=i.Fc(3),t=i.nc();i.Gb(1),i.tc("ngIf",t.customLabel)("ngIfElse",e)}}function li(e,t){if(1&e&&i.Qc(0),2&e){const e=i.nc();i.Rc(e.placeholder)}}function ui(e,t){if(1&e&&(i.Zb(0,"nb-option-list",7),i.rc(1,1),i.Yb()),2&e){const e=i.nc();i.Mc("width",e.hostWidth,"px"),i.tc("size",e.size)("position",e.overlayPosition)("ngClass",e.optionsListClass)}}const di=[[["nb-select-label"]],[["nb-option"],["nb-option-group"]]],hi=["nb-select-label","nb-option, nb-option-group"],pi=["valueContainer"],fi=["input"],gi=[[["nb-radio"]]],mi=["nb-radio"];function bi(e,t){if(1&e){const e=i.ac();i.Zb(0,"nb-icon",1),i.jc("click",function(){return i.Hc(e),i.nc()._remove()}),i.Yb()}if(2&e){const e=i.nc();i.Jb("nb-tag-remove size-",e.size,"")}}function yi(e,t){1&e&&i.Ub(0,"nb-icon",6)}function vi(e,t){if(1&e&&(i.Zb(0,"div",2),i.oc(1,"async"),i.rc(2,1),i.Yb()),2&e){const e=i.nc();i.tc("ngClass",i.pc(1,1,e.prefixClasses$))}}function _i(e,t){if(1&e&&(i.Zb(0,"div",2),i.oc(1,"async"),i.rc(2,2),i.Yb()),2&e){const e=i.nc();i.tc("ngClass",i.pc(1,1,e.suffixClasses$))}}const wi=["*",[["","nbPrefix",""]],[["","nbSuffix",""]]],ki=["*","[nbPrefix]","[nbSuffix]"],Ci=new i.t("Nebular Theme Options"),Si=new i.t("Nebular Media Breakp
1oints"),Ti=new i.t("Nebular Built-in JS Themes"),Pi=new i.t("Nebular JS Themes"),Oi=new i.t("Window"),xi=new i.t("Document"),Ai=[{name:"default",variables:{fontMain:"Open Sans, sans-serif",fontSecondary:"Raleway, sans-serif",bg:"#ffffff",bg2:"#f7f9fc",bg3:"#edf1f7",bg4:"#e4e9f2",border:"#ffffff",border2:"#f7f9fc",border3:"#edf1f7",border4:"#e4e9f2",border5:"#c5cee0",fg:"#8f9bb3",fgHeading:"#1a2138",fgText:"#1a2138",fgHighlight:"#3366ff",layoutBg:"#f7f9fc",separator:"#edf1f7",primary:"#3366ff",success:"#00d68f",info:"#0095ff",warning:"#ffaa00",danger:"#ff3d71",primaryLight:"#598bff",successLight:"#2ce69b",infoLight:"#42aaff",warningLight:"#ffc94d",dangerLight:"#ff708d"}},{name:"cosmic",variables:{fontMain:"Open Sans, sans-serif",fontSecondary:"Raleway, sans-serif",bg:"#323259",bg2:"#252547",bg3:"#1b1b38",bg4:"#13132b",border:"#323259",border2:"#252547",border3:"#1b1b38",border4:"#13132b",border5:"#13132b",fg:"#b4b4db",fgHeading:"#ffffff",fgText:"#ffffff",fgHighlight:"#a16eff",layoutBg:"#151a30",separator:"#151a30",primary:"#a16eff",success:"#00d68f",info:"#0095ff",warning:"#ffaa00",danger:"#ff3d71",primaryLight:"#b18aff",successLight:"#2ce69b",infoLight:"#42aaff",warningLight:"#ffc94d",dangerLight:"#ff708d"}},{name:"corporate",base:"default",variables:{fontMain:"Open Sans, sans-serif",fontSecondary:"Raleway, sans-serif",bg:"#ffffff",bg2:"#f7f9fc",bg3:"#edf1f7",bg4:"#e4e9f2",border:"#ffffff",border2:"#f7f9fc",border3:"#edf1f7",border4:"#e4e9f2",border5:"#c5cee0",fg:"#8f9bb3",fgHeading:"#1a2138",fgText:"#1a2138",fgHighlight:"#73a1ff",layoutBg:"#f7f9fc",separator:"#edf1f7",primary:"#73a1ff",success:"#5dcfe3",info:"#ba7fec",warning:"#ffa36b",danger:"#ff6b83",primaryLight:"#598bff",successLight:"#2ce69b",infoLight:"#42aaff",warningLight:"#ffc94d",dangerLight:"#ff708d"}},{name:"dark",variables:{fontMain:"Open Sans, sans-serif",fontSecondary:"Raleway, sans-serif",bg:"#222b45",bg2:"#1a2138",bg3:"#151a30",bg4:"#101426",border:"#222b45",border2:"#1a2138",border3:"#151a30",border4:"#101426",border5:"#101426",fg:"#8f9bb3",fgHeading:"#ffffff",fgText:"#ffffff",fgHighlight:"#3366ff",layoutBg:"#1b1b38",separator:"#1b1b38",primary:"#3366ff",success:"#00d68f",info:"#0095ff",warning:"#ffaa00",danger:"#ff3d71",primaryLight:"#598bff",successLight:"#2ce69b",infoLight:"#42aaff",warningLight:"#ffc94d",dangerLight:"#ff708d"}}];let Ei=(()=>{class e{constructor(e,t=[]){this.themes={},this.combineByNames(t,e).forEach(e=>{this.register(e,e.name,e.base)})}register(e,t,n){const i=this.has(n)?this.get(n):{};this.themes[t]=this.mergeDeep({},i,e)}has(e){return!!this.themes[e]}get(e){if(!this.themes[e])throw Error(`NbThemeConfig: no theme '${e}' found registered.`);return JSON.parse(JSON.stringify(this.themes[e]))}combineByNames(e,t){if(e){const n=[];return e.forEach(e=>{const i=t.find(t=>t.name===e.name)||{},r=this.mergeDeep({},i,e);n.push(r)}),t.forEach(e=>{n.find(t=>t.name===e.name)||n.push(e)}),n}return t}isObject(e){return e&&"object"==typeof e&&!Array.isArray(e)}mergeDeep(e,...t){if(!t.length)return e;const n=t.shift();if(this.isObject(e)&&this.isObject(n))for(const i in n)this.isObject(n[i])?(e[i]||Object.assign(e,{[i]:{}}),this.mergeDeep(e[i],n[i])):Object.assign(e,{[i]:n[i]});return this.mergeDeep(e,...t)}}return e.\u0275fac=function(t){return new(t||e)(i.gc(Ti),i.gc(Pi))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();const Mi=[{name:"xs",width:0},{name:"is",width:400},{name:"sm",width:576},{name:"md",width:768},{name:"lg",width:992},{name:"xl",width:1200},{name:"xxl",width:1400},{name:"xxxl",width:1600}];let Ii=(()=>{class e{constructor(e){this.breakpoints=e,this.breakpointsMap=this.breakpoints.reduce((e,t)=>(e[t.name]=t.width,e),{})}getByWidth(e){const t={name:"unknown",width:e},n=this.getBreakpoints();return n.find((t,i)=>{const r=n[i+1];return e>=t.width&&(!r||e<r.width)})||t}getByName(e){return this.getBreakpoints().find(t=>e===t.name)||{name:"unknown",width:NaN}}getBreakpoints(){return this.breakpoints}getBreakpointsMap(){return this.breakpointsMap}}return e.\u0275fac=function(t){return new(t||e)(i.gc(Si))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),Ri=(()=>{class e{constructor(e,t,n){this.options=e,this.breakpointService=t,this.jsThemesRegistry=n,this.themeChanges$=new s.a(1),this.appendLayoutClass$=new o.a,this.removeLayoutClass$=new o.a,this.changeWindowWidth$=new s.a(2),e&&e.name&&this.changeTheme(e.name)}
1changeTheme(e){this.themeChanges$.next({name:e,previous:this.currentTheme}),this.currentTheme=e}changeWindowWidth(e){this.changeWindowWidth$.next(e)}getJsTheme(){return this.onThemeChange().pipe(Object(g.a)(e=>this.jsThemesRegistry.get(e.name)))}onMediaQueryChange(){return this.changeWindowWidth$.pipe(Object(m.a)(void 0),Object(b.a)(),Object(g.a)(([e,t])=>[this.breakpointService.getByWidth(e),this.breakpointService.getByWidth(t)]),Object(y.a)(([e,t])=>e.name!==t.name),Object(v.a)(null,e=>e[0].name+e[1].name),Object(_.a)())}onThemeChange(){return this.themeChanges$.pipe(Object(_.a)())}appendLayoutClass(e){this.appendLayoutClass$.next(e)}onAppendLayoutClass(){return this.appendLayoutClass$.pipe(Object(_.a)())}removeLayoutClass(e){this.removeLayoutClass$.next(e)}onRemoveLayoutClass(){return this.removeLayoutClass$.pipe(Object(_.a)())}}return e.\u0275fac=function(t){return new(t||e)(i.gc(Ci),i.gc(Ii),i.gc(Ei))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),Li=(()=>{class e{constructor(e){this.document=e,this.loaders=[],this.selector="nb-global-spinner"}registerLoader(e){this.loaders.push(e)}clear(){this.loaders=[]}load(){this.showSpinner(),this.executeAll()}executeAll(e=(()=>{})){Promise.all(this.loaders).then(t=>{this.hideSpinner(),e.call(null,t)}).catch(e=>{console.error(e)})}showSpinner(){const e=this.getSpinnerElement();e&&(e.style.display="block")}hideSpinner(){const e=this.getSpinnerElement();e&&(e.style.display="none")}getSpinnerElement(){return this.document.getElementById(this.selector)}}return e.\u0275fac=function(t){return new(t||e)(i.gc(xi))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();var Di=function(e){return e.LTR="ltr",e.RTL="rtl",e}({});const ji=new i.t("Layout direction");let Ni=(()=>{class e{constructor(e=Di.LTR){this.direction=e,this.$directionChange=new s.a(1),this.setDirection(e)}isLtr(){return this.direction===Di.LTR}isRtl(){return this.direction===Di.RTL}getDirection(){return this.direction}setDirection(e){this.direction=e,this.$directionChange.next(e)}onDirectionChange(){return this.$directionChange.pipe(Object(_.a)())}}return e.\u0275fac=function(t){return new(t||e)(i.gc(ji,8))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),Vi=(()=>{class e{constructor(){this.scrollPositionReq$=new o.a,this.manualScroll$=new o.a,this.scroll$=new o.a,this.scrollable$=new o.a}getPosition(){return a.a.create(e=>{const t=new o.a;return t.subscribe(e),this.scrollPositionReq$.next({listener:t}),()=>t.complete()})}scrollTo(e=null,t=null){this.manualScroll$.next({x:e,y:t})}onScroll(){return this.scroll$.pipe(Object(_.a)())}onManualScroll(){return this.manualScroll$.pipe(Object(_.a)())}onGetPosition(){return this.scrollPositionReq$}onScrollableChange(){return this.scrollable$.pipe(Object(_.a)())}fireScrollChange(e){this.scroll$.next(e)}scrollable(e){this.scrollable$.next(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),zi=(()=>{class e{constructor(){this.contentDimensionsReq$=new o.a}getDimensions(){return a.a.create(e=>{const t=new o.a;return t.subscribe(e),this.contentDimensionsReq$.next({listener:t}),()=>t.complete()})}onGetDimensions(){return this.contentDimensionsReq$}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),Fi=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[r.c,I.i,R.g]}),e})();class Bi extends K{constructor(e,t,n,i,r){super(e,t,n,i,r),this.element=e,this.checker=t,this.ngZone=n,this.document=i,this.savePreviouslyFocusedElement()}restoreFocus(){this.previouslyFocusedElement.focus(),this.destroy()}blurPreviouslyFocusedElement(){this.previouslyFocusedElement.blur()}savePreviouslyFocusedElement(){this.previouslyFocusedElement=this.document.activeElement}}let qi=(()=>{class e extends J{constructor(e,t,n){super(e,t,n),this.checker=e,this.ngZone=t,this.document=n}create(e,t){return new Bi(e,this.checker,this.ngZone,this.document,t)}}return e.\u0275fac=function(t){return new(t||e)(i.gc(Z),i.gc(i.C),i.gc(xi))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();class Ui extends ${}class Hi{create(e){return new Ui(e)}}class Wi extends Y{}class Gi{create(e){return new Wi(e)}}let Yi=(()=>{class e extends ne{}return e.\u0275fac=function(t){return $i(t||e)},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();const $i=i.bc(Yi);let Zi=(()=>{class e{static forRoot(){return{ngModule:e,providers:[qi,Hi,Gi,{provide:Yi,useClass:ne}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({}),e})(),Qi=(()=>{class e extends ue{}return e.\u0275fac=function(t){return Xi(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["","nbPortal",""]],features:[i.Db]}),e})();const Xi=i.bc(Qi);let Ki=(()=>{class e extends de{}return e.\u0275fac=function(t){return Ji(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["","nbPortalOutlet",""]],features:[i.Db]}),e})();const Ji=i.bc(Ki);class er extends se{}let tr=(()=>{class e extends $e{}return e.\u0275fac=function(t){return nr(t||e)},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();const nr=i.bc(tr);let ir=(()=>{class e extends Ge{}return e.\u0275fac=function(t){return rr(t||e)},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();const rr=i.bc(ir);class sr extends oe{constructor(e,t,n){super(e,t,n)}}let or=(()=>{class e extends Ne{}return e.\u0275fac=function(t){return ar(t||e)},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();const ar=i.bc(or);class cr extends Fe{}class lr extends pe{}const ur=[Qe,he];let dr=(()=>{class e{static forRoot(){return{ngModule:e,providers:[tr,ir]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[...ur],Qe,he]}),e})(),hr=(()=>{class e extends q{}return e.\u0275fac=function(t){return pr(t||e)},e.\u0275prov=Object(i.Pb)({factory:function(){return new q(Object(i.gc)(i.E))},token:e,providedIn:"root"}),e})();const pr=i.bc(hr);let fr=(()=>{class e extends or{setContainer(e){this.container=e}clearContainer(){this.container=null,this._containerElement=null}_createContainer(){const e=this._document.createElement("div");e.classList.add("cdk-overlay-container"),this.container.appendChild(e),this._containerElement=e}}return e.\u0275fac=function(t){return gr(t||e)},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();const gr=i.bc(fr);let mr=(()=>{class e extends ve{constructor(e,t,n,i,r){super(e,t,r),this.ruler=n,this.scroll=i}getViewportSize(){let e;return this.ruler.getDimensions().pipe(Object(g.a)(e=>({width:e.clientWidth,height:e.clientHeight}))).subscribe(t=>e=t),e}getViewportScrollPosition(){let e;return this.scroll.getPosition().pipe(Object(g.a)(e=>
1({top:e.y,left:e.x}))).subscribe(t=>e=t),e}}return e.\u0275fac=function(t){return new(t||e)(i.gc(hr),i.gc(i.C),i.gc(zi),i.gc(Vi),i.gc(xi))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();var br=function(e){return e.TOP_START="top-start",e.TOP_END="top-end",e.BOTTOM_START="bottom-start",e.BOTTOM_END="bottom-end",e}({}),yr=function(e){return e.TOP_RIGHT="top-right",e.TOP_LEFT="top-left",e.BOTTOM_RIGHT="bottom-right",e.BOTTOM_LEFT="bottom-left",e}({});let vr=(()=>{class e{constructor(e){this.layoutDirection=e}toLogicalPosition(e){return Object.values(br).includes(e)?e:this.layoutDirection.isLtr()?this.toLogicalPositionWhenLtr(e):this.toLogicalPositionWhenRtl(e)}toPhysicalPosition(e){return Object.values(yr).includes(e)?e:this.layoutDirection.isLtr()?this.toPhysicalPositionWhenLtr(e):this.toPhysicalPositionWhenRtl(e)}isTopPosition(e){const t=this.toLogicalPosition(e);return t===br.TOP_END||t===br.TOP_START}isRightPosition(e){const t=this.toPhysicalPosition(e);return t===yr.TOP_RIGHT||t===yr.BOTTOM_RIGHT}toLogicalPositionWhenLtr(e){switch(e){case yr.TOP_RIGHT:return br.TOP_END;case yr.TOP_LEFT:return br.TOP_START;case yr.BOTTOM_RIGHT:return br.BOTTOM_END;case yr.BOTTOM_LEFT:return br.BOTTOM_START}}toLogicalPositionWhenRtl(e){switch(e){case yr.TOP_RIGHT:return br.TOP_START;case yr.TOP_LEFT:return br.TOP_END;case yr.BOTTOM_RIGHT:return br.BOTTOM_START;case yr.BOTTOM_LEFT:return br.BOTTOM_END}}toPhysicalPositionWhenLtr(e){switch(e){case br.TOP_START:return yr.TOP_LEFT;case br.TOP_END:return yr.TOP_RIGHT;case br.BOTTOM_START:return yr.BOTTOM_LEFT;case br.BOTTOM_END:return yr.BOTTOM_RIGHT}}toPhysicalPositionWhenRtl(e){switch(e){case br.TOP_START:return yr.TOP_RIGHT;case br.TOP_END:return yr.TOP_LEFT;case br.BOTTOM_START:return yr.BOTTOM_RIGHT;case br.BOTTOM_END:return yr.BOTTOM_LEFT}}}return e.\u0275fac=function(t){return new(t||e)(i.gc(Ni))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();var _r=function(e){return e.NOOP="noop",e.CLOCKWISE="clockwise",e.COUNTERCLOCKWISE="counterclockwise",e.VERTICAL="vertical",e.HORIZONTAL="horizontal",e}({}),wr=function(e){return e.TOP="top",e.BOTTOM="bottom",e.LEFT="left",e.RIGHT="right",e.START="start",e.END="end",e.TOP_END="top-end",e.TOP_START="top-start",e.BOTTOM_END="bottom-end",e.BOTTOM_START="bottom-start",e.END_TOP="end-top",e.END_BOTTOM="end-bottom",e.START_TOP="start-top",e.START_BOTTOM="start-bottom",e}({});const kr={[wr.RIGHT]:e=>({originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:e}),[wr.BOTTOM]:e=>({originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:e}),[wr.LEFT]:e=>({originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-e}),[wr.TOP]:e=>({originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",offsetY:-e}),[wr.START](e){return this[wr.LEFT](e)},[wr.END](e){return this[wr.RIGHT](e)},[wr.END_TOP]:e=>({originX:"end",originY:"bottom",overlayX:"start",overlayY:"bottom",offsetX:e}),[wr.END_BOTTOM]:e=>({originX:"end",originY:"top",overlayX:"start",overlayY:"top",offsetX:e}),[wr.BOTTOM_START]:e=>({originX:"end",originY:"bottom",overlayX:"end",overlayY:"top",offsetY:e}),[wr.BOTTOM_END]:e=>({originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetY:e}),[wr.START_TOP]:e=>({originX:"start",originY:"bottom",overlayX:"end",overlayY:"bottom",offsetX:-e}),[wr.START_BOTTOM]:e=>({originX:"start",originY:"top",overlayX:"end",overlayY:"top",offsetX:-e}),[wr.TOP_START]:e=>({originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",offsetY:-e}),[wr.TOP_END]:e=>({originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",offsetY:-e})},Cr=[wr.TOP,wr.TOP_END,wr.TOP_START,wr.START,wr.START_TOP,wr.START_BOTTOM,wr.BOTTOM,wr.BOTTOM_START,wr.BOTTOM_END,wr.END,wr.END_BOTTOM,wr.END_TOP],Sr=[wr.TOP,wr.TOP_START,wr.TOP_END,wr.END,wr.END_TOP,wr.END_BOTTOM,wr.BOTTOM,wr.BOTTOM_END,wr.BOTTOM_START,wr.START,wr.START_BOTTOM,wr.START_TOP],Tr=[wr.BOTTOM,wr.TOP],Pr=[wr.START,wr.END];class Or extends cr{constructor(){super(...arguments),this._offset=15,this.positionChange=this.positionChanges.pipe(Object(g.a)(e=>e.connectionPair),Object(g.a)(e=>this.appliedPositions.find(({connectedPosition:t})=>{return(n=t).originX===(i=e).originX&&n.originY===i.originY&&n.overlayX===i.overlayX&&n.overlayY===i.overlayY;var n,i}).key))}attach(e){this.applyPositions(),super.attach(e)}apply(){this.applyPositions(),super.apply()}position(e){return this._position=e,this}adjustment(e){return this._adjustment=e,this}offset(e){return this._offset=e,this}applyPositions(){const e=this.createPositions();
1this.persistChosenPositions(e),this.withPositions(this.appliedPositions.map(({connectedPosition:e})=>e))}createPositions(){switch(this._adjustment){case _r.NOOP:return[this._position];case _r.CLOCKWISE:return this.reorderPreferredPositions(Sr);case _r.COUNTERCLOCKWISE:return this.reorderPreferredPositions(Cr);case _r.HORIZONTAL:return this.reorderPreferredPositions(Pr);case _r.VERTICAL:return this.reorderPreferredPositions(Tr)}}persistChosenPositions(e){this.appliedPositions=e.map(e=>({key:e,connectedPosition:kr[e](this._offset)}))}reorderPreferredPositions(e){const t=e.indexOf(this.mapToLogicalPosition(this._position)),n=e.slice(t),i=e.slice(0,t);return n.concat(i)}mapToLogicalPosition(e){return e===wr.LEFT?wr.START:e===wr.RIGHT?wr.END:e}}class xr extends We{position(e){switch(e){case br.TOP_START:return this.top().left();case br.TOP_END:return this.top().right();case br.BOTTOM_START:return this.bottom().left();case br.BOTTOM_END:return this.bottom().right()}}}let Ar=(()=>{class e{constructor(e,t,n,i,r){this.document=e,this.viewportRuler=t,this.platform=n,this.positionBuilder=i,this.overlayContainer=r}global(){return new xr}connectedTo(e){return new Or(e,this.viewportRuler,this.document,this.platform,this.overlayContainer).withFlexibleDimensions(!1).withPush(!1)}}return e.\u0275fac=function(t){return new(t||e)(i.gc(xi),i.gc(mr),i.gc(hr),i.gc(ir),i.gc(fr))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),Er=(()=>{class e{get top(){return this.position===wr.TOP}get topStart(){return this.position===wr.TOP_START}get topEnd(){return this.position===wr.TOP_END}get right(){return this.position===wr.RIGHT||this.position===wr.END}get endTop(){return this.position===wr.END_TOP}get endBottom(){return this.position===wr.END_BOTTOM}get bottom(){return this.position===wr.BOTTOM}get bottomStart(){return this.position===wr.BOTTOM_START}get bottomEnd(){return this.position===wr.BOTTOM_END}get left(){return this.position===wr.LEFT||this.position===wr.START}get startTop(){return this.position===wr.START_TOP}get startBottom(){return this.position===wr.START_BOTTOM}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["ng-component"]],hostVars:24,hostBindings:function(e,t){2&e&&i.Lb("nb-overlay-top",t.top)("nb-overlay-top-start",t.topStart)("nb-overlay-top-end",t.topEnd)("nb-overlay-right",t.right)("nb-overlay-end-top",t.endTop)("nb-overlay-end-bottom",t.endBottom)("nb-overlay-bottom",t.bottom)("nb-overlay-bottom-start",t.bottomStart)("nb-overlay-bottom-end",t.bottomEnd)("nb-overlay-left",t.left)("nb-overlay-start-top",t.startTop)("nb-overlay-start-bottom",t.startBottom)},inputs:{position:"position"},decls:0,vars:0,template:function(e,t){},encapsulation:2}),e})(),Mr=(()=>{class e{constructor(e,t,n){this.vcr=e,this.injector=t,this.changeDetectorRef=n,this.isAttached=!1}get isStringContent(){return!!this.content}attachComponentPortal(e,t){e.injector=this.createChildInjector(e.componentFactoryResolver);const n=this.portalOutlet.attachComponentPortal(e);return t&&Object.assign(n.instance,t),n.changeDetectorRef.markForCheck(),n.changeDetectorRef.detectChanges(),this.isAttached=!0,n}attachTemplatePortal(e){const t=this.portalOutlet.attachTemplatePortal(e);return t.detectChanges(),this.isAttached=!0,t}attachStringContent(e){this.content=e,this.changeDetectorRef.markForCheck(),this.changeDetectorRef.detectChanges(),this.isAttached=!0}detach(){this.portalOutlet.hasAttached()&&this.portalOutlet.detach(),this.attachStringContent(null),this.isAttached=!1}createChildInjector(e){return new lr(this.injector,new WeakMap([[i.j,e]]))}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.U),i.Tb(i.u),i.Tb(i.h))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-overlay-container"]],viewQuery:function(e,t){if(1&e&&i.Vc(Ki,3),2&e){let e;i.Ec(e=i.kc())&&(t.portalOutlet=e.first)}},decls:2,vars:1,consts:[["class","primitive-overlay",4,"ngIf"],["nbPortalOutlet",""],[1,"primitive-overlay"]],template:function(e,t){1&e&&(i.Oc(0,Je,2,1,"div",0),i.Oc(1,et,0,0,"ng-template",1)),2&e&&i.tc("ngIf",t.isStringContent)},directives:[r.n,Ki],encapsulation:2}),e})();function Ir(e,t){return Object.assign(e.instance,t),e.changeDetectorRef.detectChanges(),e}let Rr=(()=>{class e{constructor(e,t){this.overlay=e,this.layoutDirection=t}get scrollStrategies(){return this.overlay.scrollStrategies}create(e){const t=this.overlay.create(e);return this.layoutDirection.onDirectionChange().subscribe(e=>t.setDirection(e)),t}}return e.\u0275fac=function(t){return new(t||e)(i.gc(tr),i.gc(Ni))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),Lr=(()=>{class e extends ye{constructor(e,t,n,i){super(e,t,i),this.scrollService=n}scrolled(e){return this.scrollService.onScroll()}}return e.\u0275fac=function(t){return new(t||e)(i.gc(i.C),i.gc(hr),i.gc(Vi),i.gc(xi))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),Dr=(()=>{class e extends Ce{constructor(e,t,n){super(t,e),this.scrollService=n}enable(){super.enable(),this.scrollService.scrollable(!1)}disable(){super.disable(),this.scrollService.scrollable(!0)}}return e.\u0275fac=function(t){return new(t||e)(i.gc(xi),i.gc(mr),i.gc(Vi))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),jr=(()=>{class e extends Ae{constructor(e,t,n,i,r){super(t,n,i,r),this.scrollService=e,this.scrollDispatcher=t,this.viewportRuler
1=n,this.ngZone=i,this.document=r,this.block=()=>new Dr(this.document,this.viewportRuler,this.scrollService)}}return e.\u0275fac=function(t){return new(t||e)(i.gc(Vi),i.gc(ye),i.gc(mr),i.gc(i.C),i.gc(xi))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),Nr=(()=>{class e{static forRoot(){return{ngModule:e,providers:[mr,fr,Dr,Lr,jr,{provide:Ne,useExisting:fr},{provide:or,useExisting:fr},{provide:ye,useExisting:Lr},{provide:Ae,useExisting:jr}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({}),e})();var Vr=function(e){return e.NOOP="noop",e.CLICK="click",e.HOVER="hover",e.HINT="hint",e.FOCUS="focus",e}({});class zr{constructor(e,t,n){this.document=e,this.host=t,this.container=n,this.destroyed$=new o.a}destroy(){this.destroyed$.next()}isNotOnHostOrContainer(e){return!this.isOnHost(e)&&!this.isOnContainer(e)}isOnHostOrContainer(e){return this.isOnHost(e)||this.isOnContainer(e)}isOnHost({target:e}){return this.host.contains(e)}isOnContainer({target:e}){return this.container()&&this.container().location.nativeElement.contains(e)}}class Fr extends zr{constructor(){super(...arguments),this.click$=Object(c.a)(this.document,"click").pipe(Object(g.a)(e=>[!this.container()&&this.isOnHost(e),e]),Object(_.a)(),Object(w.a)(this.destroyed$)),this.show$=this.click$.pipe(Object(y.a)(([e])=>e),Object(g.a)(([,e])=>e),Object(w.a)(this.destroyed$)),this.hide$=this.click$.pipe(Object(y.a)(([e,t])=>!e&&!this.isOnContainer(t)),Object(g.a)(([,e])=>e),Object(w.a)(this.destroyed$))}}class Br extends zr{constructor(){super(...arguments),this.show$=Object(c.a)(this.host,"mouseenter").pipe(Object(y.a)(()=>!this.container()),Object(k.a)(100),Object(w.a)(Object(c.a)(this.host,"mouseleave")),Object(C.a)(),Object(w.a)(this.destroyed$)),this.hide$=Object(c.a)(this.host,"mouseleave").pipe(Object(S.a)(()=>Object(c.a)(this.document,"mousemove").pipe(Object(T.a)(100),Object(P.a)(()=>!!this.container()),Object(y.a)(e=>this.isNotOnHostOrContainer(e)))),Object(w.a)(this.destroyed$))}}class qr extends zr{constructor(){super(...arguments),this.show$=Object(c.a)(this.host,"mouseenter").pipe(Object(k.a)(100),Object(w.a)(Object(c.a)(this.host,"mouseleave")),Object(C.a)(),Object(w.a)(this.destroyed$)),this.hide$=Object(c.a)(this.host,"mouseleave").pipe(Object(w.a)(this.destroyed$))}}class Ur extends zr{constructor(){super(...arguments),this.focusOut$=Object(c.a)(this.host,"focusout").pipe(Object(S.a)(()=>Object(c.a)(this.document,"focusin").pipe(Object(P.a)(()=>!!this.container()),Object(y.a)(e=>this.isNotOnHostOrContainer(e)))),Object(w.a)(this.destroyed$)),this.clickIn$=Object(c.a)(this.host,"click").pipe(Object(y.a)(()=>!this.container()),Object(w.a)(this.destroyed$)),this.clickOut$=Object(c.a)(this.document,"click").pipe(Object(y.a)(()=>!!this.container()),Object(y.a)(e=>!!this.isNotOnHostOrContainer(e)&&this.isNotOnHostOrContainer({target:this.document.activeElement})),Object(w.a)(this.destroyed$)),this.tabKeyPress$=Object(c.a)(this.document,"keydown").pipe(Object(y.a)(e=>9===e.keyCode),Object(y.a)(()=>!!this.container()),Object(w.a)(this.destroyed$)),this.show$=Object(l.a)(Object(c.a)(this.host,"focusin"),this.clickIn$).pipe(Object(y.a)(()=>!this.container()),Object(T.a)(100),Object(w.a)(Object(c.a)(this.host,"focusout")),Object(C.a)(),Object(w.a)(this.destroyed$)),this.hide$=Object(l.a)(this.focusOut$,this.tabKeyPress$,this.clickOut$).pipe(Object(w.a)(this.destroyed$))}}class Hr extends zr{constructor(){super(...arguments),this.show$=u.a,this.hide$=u.a}}let Wr=(()=>{class e{constructor(e){this._document=e}trigger(e){return this._trigger=e,this}host(e){return this._host=e,this}container(e){return this._container=e,this}build(){switch(this._trigger){case Vr.CLICK:return new Fr(this._document,this._host,this._container);case Vr.HINT:return new qr(this._document,this._host,this._container);case Vr.HOVER:return new Br(this._document,this._host,this._container);case Vr.FOCUS:return new Ur(this._document,this._host,this._container);case Vr.NOOP:return new Hr(this._document,this._host,this._container);default:throw new Error("Trigger have to be provided")}}}return e.\u0275fac=function(t){return new(t||e)(i.gc(xi))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),Gr=(()=>{class e{static forRoot(){return{ngModule:e,providers:[Ar,Wr,Rr,vr,...dr.forRoot().providers,...Nr.forRoot().providers,...Zi.forRoot().providers]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[dr,Fi],dr,Nr]}),e})(),Yr=(()=>{class e{constructor(){this.coreStatuses=["basic","primary","info","warning","danger","control"]}isCoreStatus(e){return this.coreStatuses.includes(e)}isCustomStatus(e){return!!this.isValidStatusString(e)&&!this.isCoreStatus(e)}getStatusClass(e){if(this.isValidStatusString(e))return`status-${e}`}isValidStatusString(e){return"string"==typeof e&&e.length>0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();function $r(e){if(Object(r.E)(e))return window}
1let Zr=(()=>{class e{static forRoot(t={name:"default"},n,s,o){return{ngModule:e,providers:[{provide:Ci,useValue:t||{}},{provide:Ti,useValue:Ai},{provide:Pi,useValue:n||[]},{provide:Si,useValue:s||Mi},{provide:xi,useExisting:r.d},{provide:Oi,useFactory:$r,deps:[i.E]},Ei,Ri,Ii,Li,{provide:ji,useValue:o||Di.LTR},Ni,Vi,zi,...Gr.forRoot().providers,Yr]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[r.c]]}),e})();var Qr=function(e){return e.SVG="svg",e.FONT="font",e}({});class Xr{constructor(e,t,n={}){this.name=e,this.content=t,this.params=n}getClasses(e){const t=[];return this.params.packClass&&t.push(this.params.packClass),t.push(this.params.iconClassPrefix?`${this.params.iconClassPrefix}-${this.name}`:this.name),t}getContent(e){return this.content}}class Kr{constructor(e,t,n={}){this.name=e,this.content=t,this.params=n}getClasses(e){const t=[];return this.params.packClass&&t.push(this.params.packClass),t}getContent(e){return this.content}}function Jr(e){throw Error(`Icon Pack '${e}' is not registered`)}
1function es(e,t,n){throw Error(`Pack '${e}' is not an '${n}' Pack and its type is '${t}'`)}let ts=(()=>{class e{constructor(){this.packs=new Map}registerSvgPack(e,t,n={}){this.packs.set(e,{name:e,icons:new Map(Object.entries(t)),params:n,type:Qr.SVG})}registerFontPack(e,t={}){this.packs.set(e,{name:e,params:t,icons:new Map,type:Qr.FONT})}getPack(e){return this.packs.get(e)}setDefaultPack(e){this.packs.has(e)||Jr(e),this.defaultPack=this.packs.get(e)}getSvgIcon(e,t){const n=t?this.getPackOrThrow(t):this.getDefaultPackOrThrow();n.type!==Qr.SVG&&es(n.name,n.type,"SVG");const i=this.getIconFromPack(e,n);return i?{name:e,pack:n.name,type:Qr.SVG,icon:this.createSvgIcon(e,i,n.params)}:null}getFontIcon(e,t){const n=t?this.getPackOrThrow(t):this.getDefaultPackOrThrow();n.type!==Qr.FONT&&es(n.name,n.type,"Font");const i=this.getIconFromPack(e,n);return{name:e,pack:n.name,type:Qr.FONT,icon:this.createFontIcon(e,i||"",n.params)}}getIcon(e,t){return(t?this.getPackOrThrow(t):this.getDefaultPackOrThrow()).type===Qr.SVG?this.getSvgIcon(e,t):this.getFontIcon(e,t)}createSvgIcon(e,t,n){return t instanceof Kr?t:new Kr(e,t,n)}createFontIcon(e,t,n){return t instanceof Xr?t:new Xr(e,t,n)}getPackOrThrow(e){const t=this.packs.get(e);return t||Jr(e),t}getDefaultPackOrThrow(){return this.defaultPack||function(){throw Error("Default pack is not registered.")}(),this.defaultPack}getIconFromPack(e,t){return t.icons.has(e)?t.icons.get(e):null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Pb)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),ns=(()=>{class e{constructor(e,t,n,i,r){this.sanitizer=e,this.iconLibrary=t,this.el=n,this.renderer=i,this.statusService=r,this.prevClasses=[],this.html=""}get primary(){return"primary"===this.status}get info(){return"info"===this.status}get success(){return"success"===this.status}get warning(){return"warning"===this.status}get danger(){return"danger"===this.status}get basic(){return"basic"===this.status}get control(){return"control"===this.status}get additionalClasses(){return this.statusService.isCustomStatus(this.status)?[this.statusService.getStatusClass(this.status)]:[]}get config(){return this._config}set config(e){e&&(this._config=e,"string"==typeof e?this.icon=e:(this.icon=e.icon,this.pack=e.pack,this.status=e.status,this.options=e.options))}ngOnInit(){this.iconDef=this.renderIcon(this.icon,this.pack,this.options)}ngOnChanges(){this.iconLibrary.getIcon(this.icon,this.pack)?this.renderIcon(this.icon,this.pack,this.options):this.clearIcon()}renderIcon(e,t,n){const i=this.iconLibrary.getIcon(e,t);if(!i)return;const r=i.icon.getContent(n);return r&&(this.html=this.sanitizer.bypassSecurityTrustHtml(r)),this.assignClasses(i.icon.getClasses(n)),i}clearIcon(){this.html="",this.assignClasses([])}assignClasses(e){this.prevClasses.forEach(e=>{this.renderer.removeClass(this.el.nativeElement,e)}),e.forEach(e=>{this.renderer.addClass(this.el.nativeElement,e)}),this.prevClasses=e}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(Ke.b),i.Tb(ts),i.Tb(i.l),i.Tb(i.H),i.Tb(Yr))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-icon"]],hostVars:17,hostBindings:function(e,t){2&e&&(i.cc("innerHtml",t.html,i.Ic),i.Ib(t.additionalClasses),i.Lb("status-primary",t.primary)("status-info",t.info)("status-success",t.success)("status-warning",t.warning)("status-danger",t.danger)("status-basic",t.basic)("status-control",t.control))},inputs:{config:"config",icon:"icon",pack:"pack",status:"status",options:"options"},features:[i.Eb],decls:0,vars:0,template:function(e,t){},styles:["[_nghost-%COMP%]{display:inline-block}"],changeDetection:0}),e})(),is=(()=>{class e{constructor(e){this.iconsLibrary=e,this.essentialsPackName="nebular-essentials",this.iconsLibrary.getPack(this.essentialsPackName)||this.iconsLibrary.registerSvgPack(this.essentialsPackName,{"chevron-down-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="chevron-down"><rect width="24" height="24" opacity="0"/><path d="M12 15.5a1 1 0 0 1-.71-.29l-4-4a1 1 0 1 1 1.42-1.42L12 13.1l3.3-3.18a1 1 0 1 1 1.38 1.44l-4 3.86a1 1 0 0 1-.68.28z"/></g></g></svg>',"chevron-up-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewB
1ox="0 0 24 24"><g data-name="Layer 2"><g data-name="chevron-up"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M16 14.5a1 1 0 0 1-.71-.29L12 10.9l-3.3 3.18a1 1 0 0 1-1.41 0 1 1 0 0 1 0-1.42l4-3.86a1 1 0 0 1 1.4 0l4 4a1 1 0 0 1 0 1.42 1 1 0 0 1-.69.28z"/></g></g></svg>',"chevron-left-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="chevron-left"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M13.36 17a1 1 0 0 1-.72-.31l-3.86-4a1 1 0 0 1 0-1.4l4-4a1 1 0 1 1 1.42 1.42L10.9 12l3.18 3.3a1 1 0 0 1 0 1.41 1 1 0 0 1-.72.29z"/></g></g></svg>',"chevron-right-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="chevron-right"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M10.5 17a1 1 0 0 1-.71-.29 1 1 0 0 1 0-1.42L13.1 12 9.92 8.69a1 1 0 0 1 0-1.41 1 1 0 0 1 1.42 0l3.86 4a1 1 0 0 1 0 1.4l-4 4a1 1 0 0 1-.7.32z"/></g></g></svg>',"checkmark-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="checkmark"><rect width="24" height="24" opacity="0"/><path d="M9.86 18a1 1 0 0 1-.73-.32l-4.86-5.17a1 1 0 1 1 1.46-1.37l4.12 4.39 8.41-9.2a1 1 0 1 1 1.48 1.34l-9.14 10a1 1 0 0 1-.73.33z"/></g></g></svg>',"paper-plane-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="paper-plane"><rect width="24" height="24" opacity="0"/><path d="M21 4a1.31 1.31 0 0 0-.06-.27v-.09a1 1 0 0 0-.2-.3 1 1 0 0 0-.29-.19h-.09a.86.86 0 0 0-.31-.15H20a1 1 0 0 0-.3 0l-18 6a1 1 0 0 0 0 1.9l8.53 2.84 2.84 8.53a1 1 0 0 0 1.9 0l6-18A1 1 0 0 0 21 4zm-4.7 2.29l-5.57 5.57L5.16 10zM14 18.84l-1.86-5.57 5.57-5.57z"/></g></g></svg>',"file-text-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="file-text"><rect width="24" height="24" opacity="0"/><path d="M15 16H9a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2z"/><path d="M9 14h3a1 1 0 0 0 0-2H9a1 1 0 0 0 0 2z"/><path d="M19.74 8.33l-5.44-6a1 1 0 0 0-.74-.33h-7A2.53 2.53 0 0 0 4 4.5v15A2.53 2.53 0 0 0 6.56 22h10.88A2.53 2.53 0 0 0 20 19.5V9a1 1 0 0 0-.26-.67zM14 5l2.74 3h-2a.79.79 0 0 1-.74-.85zm3.44 15H6.56a.53.53 0 0 1-.56-.5v-15a.53.53 0 0 1 .56-.5H12v3.15A2.79 2.79 0 0 0 14.71 10H18v9.5a.53.53 0 0 1-.56.5z"/></g></g></svg>',"alert-triangle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="alert-triangle"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M22.56 16.3L14.89 3.58a3.43 3.43 0 0 0-5.78 0L1.44 16.3a3 3 0 0 0-.05 3A3.37 3.37 0 0 0 4.33 21h15.34a3.37 3.37 0 0 0 2.94-1.66 3 3 0 0 0-.05-3.04zm-1.7 2.05a1.31 1.31 0 0 1-1.19.65H4.33a1.31 1.31 0 0 1-1.19-.65 1 1 0 0 1 0-1l7.68-12.73a1.48 1.48 0 0 1 2.36 0l7.
167 12.72a1 1 0 0 1 .01 1.01z"/><circle cx="12" cy="16" r="1"/><path d="M12 8a1 1 0 0 0-1 1v4a1 1 0 0 0 2 0V9a1 1 0 0 0-1-1z"/></g></g></svg>',"question-mark-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="question-mark"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M17 9A5 5 0 0 0 7 9a1 1 0 0 0 2 0 3 3 0 1 1 3 3 1 1 0 0 0-1 1v2a1 1 0 0 0 2 0v-1.1A5 5 0 0 0 17 9z"/><circle cx="12" cy="19" r="1"/></g></g></svg>',"email-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="email"><rect width="24" height="24" opacity="0"/><path d="M19 4H5a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3zm-.67 2L12 10.75 5.67 6zM19 18H5a1 1 0 0 1-1-1V7.25l7.4 5.55a1 1 0 0 0 .6.2 1 1 0 0 0 .6-.2L20 7.25V17a1 1 0 0 1-1 1z"/></g></g></svg>',"flash-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="flash"><rect width="24" height="24" opacity="0"/><path d="M11.11 23a1 1 0 0 1-.34-.06 1 1 0 0 1-.65-1.05l.77-7.09H5a1 1 0 0 1-.83-1.56l7.89-11.8a1 1 0 0 1 1.17-.38 1 1 0 0 1 .65 1l-.77 7.14H19a1 1 0 0 1 .83 1.56l-7.89 11.8a1 1 0 0 1-.83.44zM6.87 12.8H12a1 1 0 0 1 .74.33 1 1 0 0 1 .25.78l-.45 4.15 4.59-6.86H12a1 1 0 0 1-1-1.11l.45-4.15z"/></g></g></svg>',"search-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="search"><rect width="24" height="24" opacity="0"/><path d="M20.71 19.29l-3.4-3.39A7.92 7.92 0 0 0 19 11a8 8 0 1 0-8 8 7.92 7.92 0 0 0 4.9-1.69l3.39 3.4a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM5 11a6 6 0 1 1 6 6 6 6 0 0 1-6-6z"/></g></g></svg>',"close-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="close"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M13.41 12l4.3-4.29a1 1 0 1 0-1.42-1.42L12 10.59l-4.29-4.3a1 1 0 0 0-1.42 1.42l4.3 4.29-4.3 4.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l4.29-4.3 4.29 4.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g></svg>',"collapse-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="collapse"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M19 9h-2.58l3.29-3.29a1 1 0 1 0-1.42-1.42L15 7.57V5a1 1 0 0 0-1-1 1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 0-2z"/><path d="M10 13H5a1 1 0 0 0 0 2h2.57l-3.28 3.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0L9 16.42V19a1 1 0 0 0 1 1 1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1z"/></g></g></svg>',"expand-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="expand"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M20 5a1 1 0 0 0-1-1h-5a1 1 0 0 0 0 2h2.57l-3.28 3.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0L18 7.42V10a1 1 0 0 0 1 1 1 1 0 0 0 1-1z"/><path d="M10.71 13.29a1 1 0 0 0-1.42 0L6 16.57V14a1 1 0 0 0-1-1 1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 0-2H7.42l3.29-3.29a1 1 0 0 0 0-1.42z"/></g></g></svg>',"minus-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="minus"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M19 13H5a1 1 0 0 1 0-2h14a1 1 0 0 1 0 2z"/></g></g></svg>',"minus-bold-outline":'<svg xmlns:xlink="http://www.w3.org/1999/xlink" fill="currentColor" viewBox="0 0 8 2" width="100%" height="100%"><defs><rect id="nb-mbo" y="3" width="8" height="2" rx="1"/></defs><use xlink:href="#nb-mbo" transform="translate(0 -3)" fill-rule="evenodd"/></svg>',"checkmark-bold-outline":'<svg xmlns:xlink="http://www.w3.org/1999/xlink" fill="currentColor" viewBox="0 0 8 7" width="100%" height="100%"><defs><path id="nb-cbo" d="M6.039 1.43a1.11 1.11 0 0 1 1.517-.228c.483.342.588.998.234 1.466L4.431 7.1a1 1 0 0 1-1.492.115L.317 4.677a1.023 1.023 0 0 1 .002-1.483 1.113 1.113 0 0 1 1.535.002l1.641 1.59L6.04 1.428z"/></defs><use xlink:href="#nb-cbo" transform="translate(0 -1)" fill-rule="evenodd"/></svg>',"arrow-back":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="arrow-back"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M19 11H7.14l3.63-4.36a1 1 0 1 0-1.54-1.28l-5 6a1.19 1.19 0 0 0-.09.15c0 .05 0 .08-.07.13A1 1 0 0 0 4 12a1 1 0 0 0 .07.36c0 .05 0 .08.07.13a1.19 1.19 0 0 0 .09.15l5 6A1 1 0 0 0 10 19a1 1 0 0 0 .64-.23 1 1 0 0 0 .13-1.41L7.14 13H19a1 1 0 0 0 0-2z"/></g></g></svg>'})}}return e.\u0275fac=function(t){return new(t||e)(i.gc(ts))},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[r.c]]}),e})(),rs=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-card-header"]],ngContentSelectors:tt,decls:1,vars:0,template:function(e,t){1&e&&(i.sc(),i.rc(0))},encapsulation:2}),e})(),ss=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-card-body"]],ngContentSelectors:tt,decls:1,vars:0,template:function(e,t){1&e&&(i.sc(),i.rc(0))},encapsulation:2}),e})(),os=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-card-footer"]],ngContentSelectors:tt,decls:1,vars:0,template:function(e,t){1&e&&(i.sc(),i.rc(0))},encapsulation:2}),e})(),as=(()=>{class e{constructor(e){this.statusService=e,this._size="",this.status="",this.accent=""}get size(){return this._size}set size(e){this._size=e}get tiny(){return"tiny"===this.size}
1get small(){return"small"===this.size}get medium(){return"medium"===this.size}get large(){return"large"===this.size}get giant(){return"giant"===this.size}get primary(){return"primary"===this.status}get info(){return"info"===this.status}get success(){return"success"===this.status}get warning(){return"warning"===this.status}get danger(){return"danger"===this.status}get basic(){return"basic"===this.status}get control(){return"control"===this.status}get hasAccent(){return this.accent}get primaryAccent(){return"primary"===this.accent}get infoAccent(){return"info"===this.accent}get successAccent(){return"success"===this.accent}get warningAccent(){return"warning"===this.accent}get dangerAccent(){return"danger"===this.accent}get basicAccent(){return"basic"===this.accent}get controlAccent(){return"control"===this.accent}get additionalClasses(){return this.statusService.isCustomStatus(this.status)?[this.statusService.getStatusClass(this.status)]:[]}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(Yr))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-card"]],hostVars:42,hostBindings:function(e,t){2&e&&(i.Ib(t.additionalClasses),i.Lb("size-tiny",t.tiny)("size-small",t.small)("size-medium",t.medium)("size-large",t.large)("size-giant",t.giant)("status-primary",t.primary)("status-info",t.info)("status-success",t.success)("status-warning",t.warning)("status-danger",t.danger)("status-basic",t.basic)("status-control",t.control)("accent",t.hasAccent)("accent-primary",t.primaryAccent)("accent-info",t.infoAccent)("accent-success",t.successAccent)("accent-warning",t.warningAccent)("accent-danger",t.dangerAccent)("accent-basic",t.basicAccent)("accent-control",t.controlAccent))},inputs:{status:"status",accent:"accent",size:"size"},ngContentSelectors:it,decls:4,vars:0,template:function(e,t){1&e&&(i.sc(nt),i.rc(0),i.rc(1,1),i.rc(2,2),i.rc(3,3))},styles:[ut]}),e})(),cs=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[Fi,is]]}),e})();var ls=function(e){return e.YEAR="year",e.MONTH="month",e.DATE="date",e}({}),us=function(e){return e.MEDIUM="medium",e.LARGE="large",e}({});function ds(e){return"string"==typeof e?"true"===(e=e.toLowerCase().trim())||""===e:!!e}let hs=(()=>{class e{constructor(){this.boundingMonth=!0,this.startView=ls.DATE,this.size=us.MEDIUM,this.showNavigation=!0,this._showWeekNumber=!1,this.weekNumberSymbol="#",this.dateChange=new i.o}get showWeekNumber(){return this._showWeekNumber}set showWeekNumber(e){this._showWeekNumber=ds(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-calendar"]],inputs:{boundingMonth:"boundingMonth",startView:"startView",size:"size",showNavigation:"showNavigation",weekNumberSymbol:"weekNumberSymbol",showWeekNumber:"showWeekNumber",min:"min",max:"max",filter:"filter",dayCellComponent:"dayCellComponent",monthCellComponent:"monthCellComponent",yearCellComponent:"yearCellComponent",visibleDate:"visibleDate",date:"date"},outputs:{dateChange:"dateChange"},decls:1,vars:14,consts:[[3,"boundingMonth","startView","date","min","max","filter","dayCellComponent","monthCellComponent","yearCellComponent","size","visibleDate","showNavigation","showWeekNumber","weekNumberSymbol","dateChange"]],template:function(e,t){1&e&&(i.Zb(0,"nb-base-calendar",0),i.jc("dateChange",function(e){return t.dateChange.emit(e)}),i.Yb()),2&e&&i.tc("boundingMonth",t.boundingMonth)("startView",t.startView)("date",t.date)("min",t.min)("max",t.max)("filter",t.filter)("dayCellComponent",t.dayCellComponent)("monthCellComponent",t.monthCellComponent)("yearCellComponent",t.yearCellComponent)("size",t.size)("visibleDate",t.visibleDate)("showNavigation",t.showNavigation)("showWeekNumber",t.showWeekNumber)("weekNumberSymbol",t.weekNumberSymbol)},directives:function(){return[zs]},encapsulation:2}),e})(),ps=(()=>{class e{constructor(e,t,n,i,r){this.renderer=e,this.hostElement=t,this.cd=n,this.zone=i,this.statusService=r,this.size="medium",this.status="basic",this.shape="rectangle",this.appearance="filled",this._fullWidth=!1,this._disabled=!1}get filled(){return"filled"===this.appearance}set filled(e){ds(e)&&(this.appearance="filled")}get outline(){return"outline"===this.appearance}set outline(e){ds(e)&&(this.appearance="outline")}get ghost(){return"ghost"===this.appearance}set ghost(e){ds(e)&&(this.appearance="ghost")}get fullWidth(){return this._fullWidth}set fullWidth(e){this._fullWidth=ds(e)}get disabled(){return this._disabled}set disabled(e){this.disabled!==ds(e)&&(this._disabled=!this.disabled,this.renderer.setProperty(this.hostElement.nativeElement,"disabled",this.disabled))}get tabbable(){return this.disabled?"-1":null==this.tabIndex?"0":this.tabIndex.toString()}get tiny(){return"tiny"===this.size}
1get small(){return"small"===this.size}get medium(){return"medium"===this.size}get large(){return"large"===this.size}get giant(){return"giant"===this.size}get rectangle(){return"rectangle"===this.shape}get round(){return"round"===this.shape}get semiRound(){return"semi-round"===this.shape}get iconLeft(){const e=this.iconElement;return!(!e||(t=this.hostElement.nativeElement,Array.from(t.childNodes).filter(e=>e.nodeType!==Node.COMMENT_NODE)[0]!==e));var t}get iconRight(){const e=this.iconElement;return!(!e||function(e){const t=Array.from(e.childNodes).filter(e=>e.nodeType!==Node.COMMENT_NODE);return t[t.length-1]}(this.hostElement.nativeElement)!==e)}get additionalClasses(){return this.statusService.isCustomStatus(this.status)?[this.statusService.getStatusClass(this.status)]:[]}ngAfterViewInit(){this.zone.runOutsideAngular(()=>setTimeout(()=>{this.renderer.addClass(this.hostElement.nativeElement,"nb-transition")}))}updateProperties(e){let t=!1;for(const n in e)e.hasOwnProperty(n)&&this[n]!==e[n]&&(this[n]=e[n],t=!0);t&&this.cd.markForCheck()}get iconElement(){return this.hostElement.nativeElement.querySelector("nb-icon")}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.H),i.Tb(i.l),i.Tb(i.h),i.Tb(i.C),i.Tb(Yr))},e.\u0275dir=i.Ob({type:e,hostVars:34,hostBindings:function(e,t){2&e&&(i.Hb("aria-disabled",t.disabled)("tabindex",t.tabbable),i.Ib(t.additionalClasses),i.Lb("appearance-filled",t.filled)("appearance-outline",t.outline)("appearance-ghost",t.ghost)("full-width",t.fullWidth)("btn-disabled",t.disabled)("size-tiny",t.tiny)("size-small",t.small)("size-medium",t.medium)("size-large",t.large)("size-giant",t.giant)("shape-rectangle",t.rectangle)("shape-round",t.round)("shape-semi-round",t.semiRound)("icon-start",t.iconLeft)("icon-end",t.iconRight))},inputs:{size:"size",status:"status",shape:"shape",appearance:"appearance",filled:"filled",outline:"outline",ghost:"ghost",fullWidth:"fullWidth",disabled:"disabled",tabIndex:"tabIndex"}}),e})(),fs=(()=>{class e extends ps{constructor(e,t,n,i,r){super(e,t,n,i,r),this.renderer=e,this.hostElement=t,this.cd=n,this.zone=i,this.statusService=r}get hero(){return"hero"===this.appearance}set hero(e){ds(e)&&(this.appearance="hero")}get primary(){return"primary"===this.status}get info(){return"info"===this.status}get success(){return"success"===this.status}get warning(){return"warning"===this.status}get danger(){return"danger"===this.status}get basic(){return"basic"===this.status}get control(){return"control"===this.status}onClick(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.H),i.Tb(i.l),i.Tb(i.h),i.Tb(i.C),i.Tb(Yr))},e.\u0275cmp=i.Nb({type:e,selectors:[["button","nbButton",""],["a","nbButton",""],["input","type","button","nbButton",""],["input","type","submit","nbButton",""]],hostVars:16,hostBindings:function(e,t){1&e&&i.jc("click",function(e){return t.onClick(e)}),2&e&&i.Lb("appearance-hero",t.hero)("status-primary",t.primary)("status-info",t.info)("status-success",t.success)("status-warning",t.warning)("status-danger",t.danger)("status-basic",t.basic)("status-control",t.control)},inputs:{hero:"hero"},features:[i.Fb([{provide:ps,useExisting:e}]),i.Db],attrs:rt,ngContentSelectors:tt,decls:1,vars:0,template:function(e,t){1&e&&(i.sc(),i.rc(0))},encapsulation:2,changeDetection:0}),e})(),gs=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[Fi]]}),e})();class ms{constructor(){this.DAYS_IN_WEEK=7,this.HOURS_IN_DAY_PERIOD=12}setLocale(e){this.locale=e}isBetween(e,t,n){return this.compareDates(e,t)>0&&this.compareDates(e,n)<0}isSameDaySafe(e,t){return e&&t&&this.isSameDay(e,t)}isSameMonthSafe(e,t){return e&&t&&this.isSameMonth(e,t)}isSameYearSafe(e,t){return e&&t&&this.isSameYear(e,t)}isSameHourAndMinute(e,t){return this.isSameHour(e,t)&&this.isSameMinute(e,t)}isSameHour(e,t){return this.getHours(e)===this.getHours(t)}isSameMinute(e,t){return this.getMinutes(e)===this.getMinutes(t)}getTwentyFourHoursFormat(){return"HH:mm"}getTwentyFourHoursFormatWithSeconds(){return"HH:mm:ss"}getTwelveHoursFormatWithSeconds(){return"hh:mm:ss a"}getDayPeriod(e){return this.getHours(e)<this.HOURS_IN_DAY_PERIOD?"AM":"PM"}}const bs=(e,t,n=0)=>e.reduce((e,i,r)=>{const s=Math.floor((r+n)/t);return e[s]||(e[s]=[]),e[s].push(i),e},[]),ys=(e,t=0,n=(e=>e))=>{const i=[];for(let r=e;r<t;r++)i.push(n(r));return i},vs=(e,t=(e=>e))=>ys(0,e,t);let _s=(()=>{class e{constructor(e){this.dateService=e}createDaysGrid(e,t=!0){const n=this.createDates(e);return this.withBoundingMonths(n,e,t)}createDates(e){const t=this.createDateRangeForMonth(e),n=this.getStartOfWeekDayDiff(e);return bs(t,this.dateService.DAYS_IN_WEEK,n)}withBoundingMonths(e,t,n){let i=e;return this.isShouldAddPrevBoundingMonth(i)&&(i=this.addPrevBoundingMonth(i,t,n)),this.isShouldAddNextBoundingMonth(i)&&(i=this.addNextBoundingMonth(i,t,n)),i}addPrevBoundingMonth(e,t,n){const i=e.shift();return i.unshift(...this.createPrevBoundingDays(t,n,this.dateService.DAYS_IN_WEEK-i.length)),[i,...e]}addNextBoundingMonth(e,t,n){const i=e.pop();return i.push(...this.createNextBoundingDays(t,n,this.dateService.DAYS_IN_WEEK-i.length)),[...e,i]}createPrevBoundingDays(e,t,n){const i=this.dateService.addMonth(e,-1),r=this.dateService.getNumberOfDaysInMonth(i);return this.createDateRangeForMonth(i).slice(r-n).map(e=>t?e:null)}createNextBoundingDays(e,t,n){const i=this.dateService.addMonth(e,1);return this.createDateRangeForMonth(i).slice(0,n).map(e=>t?e:null)}getStartOfWeekDayDiff(e){const t=this.dateService.getMonthStart(e);return this.getWeekStartDiff(t)}getWeekStartDiff(e){return(7-this.dateService.getFirstDayOfWeek()+this.dateService.getDayOfWeek(e))%7}isShouldAddPrevBoundingMonth(e){return e[0].length<this.dateService.DAYS_IN_WEEK}isShouldAddNextBoundingMonth(e){return e[e.length-1].length<this.dateService.DAYS_IN_WEEK}createDateRangeForMonth(e){const t=this.dateService.getNumberOfDaysInMonth(e);return vs(t,t=>{const n=this.dateService.getYear(e),i=this.dateService.getMonth(e);return this.dateService.createDate(n,i,t+1)})}}return e.\u0275fac=function(t){return new(t||e)(i.gc(ms))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),ws=(()=>{class e{constructor(e){this.dateService=e,this.size=us.MEDIUM,this.select=new i.o(!0),this.dayCellClass=!0}get today(){return this.dateService.isSameDaySafe(this.date,this.dateService.today())}get boundingMonth(){return!this.dateService.isSameMonthSafe(this.date,this.visibleDate)}get selected(){return this.dateService.isSameDaySafe(this.date,this.selectedValue)}get empty(){return!this.date}get disabled(){return this.smallerThanMin()||this.greaterThanMax()||this.dontFitFilter()}get isLarge(){return this.size===us.LARGE}get day(){return this.date&&this.dateService.getDate(this.date)}onClick(){this.disabled||this.empty||this.select.emit(this.date)}smallerThanMin(){return this.date&&this.min&&this.dateService.compareDates(this.date,this.min)<0}greaterThanMax(){return this.date&&this.max&&this.dateService.compareDates(this.date,this.max)>0}dontFitFilter(){return this.date&&this.filter&&!this.filter(this.date)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(ms))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-calendar-day-cell"]],hostVars:14,hostBindings:function(e,t){1&e&&i.jc("click",function(){return t.onClick()}),2&e&&i.Lb("day-cell",t.dayCellClass)("today",t.today)("bounding-month",t.boundingMonth)("selected",t.selected)("empty",t.empty)("disabled",t.disabled)("size-large",t.isLarge)}
1,inputs:{size:"size",date:"date",selectedValue:"selectedValue",visibleDate:"visibleDate",min:"min",max:"max",filter:"filter"},outputs:{select:"select"},decls:2,vars:1,consts:[[1,"cell-content"]],template:function(e,t){1&e&&(i.Zb(0,"div",0),i.Qc(1),i.Yb()),2&e&&(i.Gb(1),i.Sc(" ",t.day," "))},encapsulation:2,changeDetection:0}),e})(),ks=(()=>{class e{constructor(e){this.monthModel=e,this.boundingMonths=!0,this.cellComponent=ws,this.size=us.MEDIUM,this._showWeekNumber=!1,this.dateChange=new i.o}set setCellComponent(e){e&&(this.cellComponent=e)}get showWeekNumber(){return this._showWeekNumber}set showWeekNumber(e){this._showWeekNumber=ds(e)}get large(){return this.size===us.LARGE}ngOnChanges({visibleDate:e,boundingMonths:t}){(e||t)&&(this.weeks=this.monthModel.createDaysGrid(this.visibleDate,this.boundingMonths))}onSelect(e){this.dateChange.emit(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(_s))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-calendar-day-picker"]],hostVars:2,hostBindings:function(e,t){2&e&&i.Lb("size-large",t.large)},inputs:{boundingMonths:"boundingMonths",size:"size",setCellComponent:["cellComponent","setCellComponent"],showWeekNumber:"showWeekNumber",visibleDate:"visibleDate",min:"min",max:"max",filter:"filter",date:"date",weekNumberSymbol:"weekNumberSymbol"},outputs:{dateChange:"dateChange"},features:[i.Eb],decls:4,vars:10,consts:[[3,"weeks","size","weekNumberSymbol",4,"ngIf"],[1,"days-container"],[3,"size"],[3,"data","visibleDate","selectedValue","cellComponent","min","max","filter","size","select"],[3,"weeks","size","weekNumberSymbol"]],template:function(e,t){1&e&&(i.Oc(0,st,1,3,"nb-calendar-week-numbers",0),i.Zb(1,"div",1),i.Ub(2,"nb-calendar-days-names",2),i.Zb(3,"nb-calendar-picker",3),i.jc("select",function(e){return t.onSelect(e)}),i.Yb(),i.Yb()),2&e&&(i.tc("ngIf",t.showWeekNumber),i.Gb(2),i.tc("size",t.size),i.Gb(1),i.tc("data",t.weeks)("visibleDate",t.visibleDate)("selectedValue",t.date)("cellComponent",t.cellComponent)("min",t.min)("max",t.max)("filter",t.filter)("size",t.size))},directives:function(){return[r.n,Cs,As,Rs]},styles:["[_nghost-%COMP%]{display:flex}.days-container[_ngcontent-%COMP%]{width:100%}"],changeDetection:0}),e})(),Cs=(()=>{class e{constructor(e){this.dateService=e}get isLarge(){return this.size===us.LARGE}ngOnInit(){const e=this.createDaysNames();this.days=this.shiftStartOfWeek(e)}createDaysNames(){return this.dateService.getDayOfWeekNames().map(this.markIfHoliday)}shiftStartOfWeek(e){for(let t=0;t<this.dateService.getFirstDayOfWeek();t++)e.push(e.shift());return e}markIfHoliday(e,t){return{name:e,isHoliday:t%6==0}}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(ms))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-calendar-days-names"]],hostVars:2,hostBindings:function(e,t){2&e&&i.Lb("size-large",t.isLarge)},inputs:{size:"size"},decls:1,vars:1,consts:[["class","day",3,"holiday",4,"ngFor","ngForOf"],[1,"day"]],template:function(e,t){1&e&&i.Oc(0,ot,2,3,"div",0),2&e&&i.tc("ngForOf",t.days)},directives:[r.m],styles:["[_nghost-%COMP%]{display:flex;justify-content:space-between}[_nghost-%COMP%] .day[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}"],changeDetection:0}),e})(),Ss=(()=>{class e{constructor(e){this.dateService=e,this.size=us.MEDIUM,this.select=new i.o(!0),this.monthCellClass=!0}get selected(){return this.dateService.isSameMonthSafe(this.date,this.selectedValue)}get today(){return this.dateService.isSameMonthSafe(this.date,this.dateService.today())}get disabled(){return this.smallerThanMin()||this.greaterThanMax()}get isLarge(){return this.size===us.LARGE}get month(){return this.dateService.getMonthName(this.date)}onClick(){this.disabled||this.select.emit(this.date)}smallerThanMin(){return this.date&&this.min&&this.dateService.compareDates(this.monthEnd(),this.min)<0}greaterThanMax(){return this.date&&this.max&&this.dateService.compareDates(this.monthStart(),this.max)>0}monthStart(){return this.dateService.getMonthStart(this.date)}monthEnd(){return this.dateService.getMonthEnd(this.date)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(ms))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-calendar-month-cell"]],hostVars:10,hostBindings:function(e,t){1&e&&i.jc("click",function(){return t.onClick()}),2&e&&i.Lb("month-cell",t.monthCellClass)("selected",t.selected)("today",t.today)("disabled",t.disabled)("size-large",t.isLarge)}
1,inputs:{size:"size",date:"date",selectedValue:"selectedValue",min:"min",max:"max"},outputs:{select:"select"},decls:2,vars:1,consts:[[1,"cell-content"]],template:function(e,t){1&e&&(i.Zb(0,"div",0),i.Qc(1),i.Yb()),2&e&&(i.Gb(1),i.Sc(" ",t.month," "))},encapsulation:2,changeDetection:0}),e})(),Ts=(()=>{class e{constructor(e){this.dateService=e,this.size=us.MEDIUM,this.monthChange=new i.o,this.cellComponent=Ss}set _cellComponent(e){e&&(this.cellComponent=e)}get large(){return this.size===us.LARGE}ngOnChanges(e){e.month&&this.initMonths()}initMonths(){const e=this.dateService.getDate(this.month),t=this.dateService.getYear(this.month),n=this.dateService.createDate(t,0,e),i=[n];for(let r=1;r<12;r++)i.push(this.dateService.addMonth(n,r));this.months=bs(i,4)}onSelect(e){this.monthChange.emit(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(ms))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-calendar-month-picker"]],hostVars:2,hostBindings:function(e,t){2&e&&i.Lb("size-large",t.large)},inputs:{size:"size",_cellComponent:["cellComponent","_cellComponent"],min:"min",max:"max",filter:"filter",month:"month",date:"date"},outputs:{monthChange:"monthChange"},features:[i.Eb],decls:1,vars:8,consts:[[3,"data","min","max","filter","selectedValue","visibleDate","cellComponent","size","select"]],template:function(e,t){1&e&&(i.Zb(0,"nb-calendar-picker",0),i.jc("select",function(e){return t.onSelect(e)}),i.Yb()),2&e&&i.tc("data",t.months)("min",t.min)("max",t.max)("filter",t.filter)("selectedValue",t.date)("visibleDate",t.month)("cellComponent",t.cellComponent)("size",t.size)},directives:function(){return[As]},encapsulation:2,changeDetection:0}),e})(),Ps=(()=>{class e{constructor(e){this.dateService=e,this.yearsInView=12,this.yearsInRow=4}getYearsInView(){return this.yearsInView}getYearsInRow(){return this.yearsInRow}getViewYears(e){const t=this.dateService.getYear(e);let n;n=t>=0?t-t%this.yearsInView:t-(t%this.yearsInView+this.yearsInView);const i=vs(this.yearsInView).map(t=>this.copyWithYear(n+t,e));return bs(i,this.yearsInRow)}copyWithYear(e,t){return this.dateService.createDate(e,this.dateService.getMonth(t),this.dateService.getDate(t))}}return e.\u0275fac=function(t){return new(t||e)(i.gc(ms))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),Os=(()=>{class e{constructor(e,t){this.dateService=e,this.yearModelService=t,this.viewMode=ls.DATE,this.changeMode=new i.o(!0)}getText(){if(!this.date)return"";switch(this.viewMode){case ls.DATE:return`${this.dateService.getMonthName(this.date,r.w.Wide)} ${this.dateService.getYear(this.date)}`;case ls.MONTH:return`${this.dateService.getYear(this.date)}`;case ls.YEAR:return`${this.getFirstYear()} - ${this.getLastYear()}`}}getIcon(){return this.viewMode===ls.DATE?"chevron-down-outline":"chevron-up-outline"}getFirstYear(){const e=this.yearModelService.getViewYears(this.date);return this.dateService.getYear(e[0][0]).toString()}getLastYear(){const e=this.yearModelService.getViewYears(this.date),t=e[e.length-1];return this.dateService.getYear(t[t.length-1]).toString()}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(ms),i.Tb(Ps))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-calendar-view-mode"]],inputs:{viewMode:"viewMode",date:"date"},outputs:{changeMode:"changeMode"},decls:3,vars:2,consts:[["nbButton","","ghost","","status","basic",3,"click"],["pack","nebular-essentials",3,"icon"]],template:function(e,t){1&e&&(i.Zb(0,"button",0),i.jc("click",function(){return t.changeMode.emit()}),i.Qc(1),i.Ub(2,"nb-icon",1),i.Yb()),2&e&&(i.Gb(1),i.Sc(" ",t.getText()," "),i.Gb(1),i.tc("icon",t.getIcon()))},directives:[fs,ns],encapsulation:2,changeDetection:0}),e})(),xs=(()=>{class e{constructor(e){this.directionService=e,this.next=new i.o,this.prev=new i.o}get isLtr(){return this.directionService.isLtr()}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(Ni))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-calendar-pageable-navigation"]],outputs:{next:"next",prev:"prev"},decls:4,vars:2,consts:[["nbButton","","ghost","","status","basic",1,"prev-month",3,"click"],["pack","nebular-essentials",3,"icon"],["nbButton","","ghost","","status","basic",1,"next-month",3,"click"]],template:function(e,t){1&e&&(i.Zb(0,"button",0),i.jc("click",function(){return t.prev.emit()}),i.Ub(1,"nb-icon",1),i.Yb(),i.Zb(2,"button",2),i.jc("click",function(){return t.next.emit()}),i.Ub(3,"nb-icon",1),i.Yb()),2&e&&(i.Gb(1),i.tc("icon",t.isLtr?"chevron-left-outline":"chevron-right-outline"),i.Gb(2),i.tc("icon",t.isLtr?"chevron-right-outline":"chevron-left-outline"))},directives:[fs,ns],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:flex-start}"]}),e})(),As=(()=>{class e{constructor(){this.size=us.MEDIUM,this.select=new i.o}get isLarge(){return this.size===us.LARGE}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-calendar-picker"]],hostVars:2,hostBindings:function(e,t){2&e&&i.Lb("size-large",t.isLarge)}
1,inputs:{size:"size",data:"data",visibleDate:"visibleDate",selectedValue:"selectedValue",cellComponent:"cellComponent",min:"min",max:"max",filter:"filter"},outputs:{select:"select"},decls:1,vars:1,consts:[[3,"row","visibleDate","selectedValue","component","min","max","filter","size","select",4,"ngFor","ngForOf"],[3,"row","visibleDate","selectedValue","component","min","max","filter","size","select"]],template:function(e,t){1&e&&i.Oc(0,at,1,8,"nb-calendar-picker-row",0),2&e&&i.tc("ngForOf",t.data)},directives:function(){return[r.m,Es]},encapsulation:2,changeDetection:0}),e})(),Es=(()=>{class e{constructor(e){this.cfr=e,this.size=us.MEDIUM,this.select=new i.o}ngOnChanges(){const e=this.cfr.resolveComponentFactory(this.component);this.containerRef.clear(),this.row.forEach(t=>{const n=this.containerRef.createComponent(e);this.patchWithContext(n.instance,t),n.changeDetectorRef.detectChanges()})}patchWithContext(e,t){e.visibleDate=this.visibleDate,e.selectedValue=this.selectedValue,e.date=t,e.min=this.min,e.max=this.max,e.filter=this.filter,e.size=this.size,e.select.subscribe(this.select.emit.bind(this.select))}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.j))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-calendar-picker-row"]],viewQuery:function(e,t){if(1&e&&i.Vc(i.Q,3,i.U),2&e){let e;i.Ec(e=i.kc())&&(t.containerRef=e.first)}},inputs:{size:"size",row:"row",selectedValue:"selectedValue",visibleDate:"visibleDate",component:"component",min:"min",max:"max",filter:"filter"},outputs:{select:"select"},features:[i.Eb],decls:1,vars:0,template:function(e,t){1&e&&i.Oc(0,ct,0,0,"ng-template")},styles:["[_nghost-%COMP%] {\n display: flex;\n justify-content: space-between;\n }"],changeDetection:0}),e})(),Ms=(()=>{class e{constructor(e){this.dateService=e,this.size=us.MEDIUM,this.select=new i.o(!0),this.yearCellClass=!0}get selected(){return this.dateService.isSameYearSafe(this.date,this.selectedValue)}get today(){return this.dateService.isSameYearSafe(this.date,this.dateService.today())}get disabled(){return this.smallerThanMin()||this.greaterThanMax()}get isLarge(){return this.size===us.LARGE}get year(){return this.dateService.getYear(this.date)}onClick(){this.disabled||this.select.emit(this.date)}smallerThanMin(){return this.date&&this.min&&this.dateService.compareDates(this.yearEnd(),this.min)<0}greaterThanMax(){return this.date&&this.max&&this.dateService.compareDates(this.yearStart(),this.max)>0}yearStart(){return this.dateService.getYearStart(this.date)}yearEnd(){return this.dateService.getYearEnd(this.date)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(ms))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-calendar-year-cell"]],hostVars:10,hostBindings:function(e,t){1&e&&i.jc("click",function(){return t.onClick()}),2&e&&i.Lb("year-cell",t.yearCellClass)("selected",t.selected)("today",t.today)("disabled",t.disabled)("size-large",t.isLarge)},inputs:{size:"size",date:"date",min:"min",max:"max",selectedValue:"selectedValue"},outputs:{select:"select"},decls:2,vars:1,consts:[[1,"cell-content"]],template:function(e,t){1&e&&(i.Zb(0,"div",0),i.Qc(1),i.Yb()),2&e&&(i.Gb(1),i.Sc(" ",t.year," "))},encapsulation:2,changeDetection:0}),e})(),Is=(()=>{class e{constructor(e,t){this.dateService=e,this.yearModelService=t,this.cellComponent=Ms,this.size=us.MEDIUM,this.yearChange=new i.o}set _cellComponent(e){e&&(this.cellComponent=e)}get large(){return this.size===us.LARGE}ngOnChanges(){this.years=this.yearModelService.getViewYears(this.year)}onSelect(e){this.yearChange.emit(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(ms),i.Tb(Ps))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-calendar-year-picker"]],hostVars:2,hostBindings:function(e,t){2&e&&i.Lb("size-large",t.large)},inputs:{size:"size",_cellComponent:["cellComponent","_cellComponent"],date:"date",min:"min",max:"max",filter:"filter",year:"year"},outputs:{yearChange:"yearChange"},features:[i.Eb],decls:1,vars:8,consts:[[3,"data","min","max","filter","selectedValue","visibleDate","cellComponent","size","select"]],template:function(e,t){1&e&&(i.Zb(0,"nb-calendar-picker",0),i.jc("select",function(e){return t.onSelect(e)}),i.Yb()),2&e&&i.tc("data",t.years)("min",t.min)("max",t.max)("filter",t.filter)("selectedValue",t.date)("visibleDate",t.year)("cellComponent",t.cell
1Component)("size",t.size)},directives:[As],encapsulation:2,changeDetection:0}),e})(),Rs=(()=>{class e{constructor(e){this.dateService=e}get isLarge(){return this.size===us.LARGE}ngOnChanges(e){e.weeks&&(this.weekNumbers=this.getWeeks())}getWeeks(){return this.weeks.map(e=>{const t=[...e].reverse().find(e=>!!e);return this.dateService.getWeekNumber(t)})}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(ms))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-calendar-week-numbers"]],hostVars:2,hostBindings:function(e,t){2&e&&i.Lb("size-large",t.isLarge)},inputs:{weeks:"weeks",size:"size",weekNumberSymbol:"weekNumberSymbol"},features:[i.Eb],decls:4,vars:2,consts:[[1,"sign-container"],[1,"sign"],["class","week-number",4,"ngFor","ngForOf"],[1,"week-number"]],template:function(e,t){1&e&&(i.Zb(0,"div",0),i.Zb(1,"div",1),i.Qc(2),i.Yb(),i.Yb(),i.Oc(3,lt,2,1,"div",2)),2&e&&(i.Gb(2),i.Rc(t.weekNumberSymbol),i.Gb(1),i.tc("ngForOf",t.weekNumbers))},directives:[r.m],styles:[ut],changeDetection:0}),e})(),Ls=(()=>{class e extends ms{constructor(e){super(),this.setLocale(e)}setLocale(e){super.setLocale(e),this.datePipe=new r.e(e)}setHours(e,t){const n=this.clone(e);return n.setHours(t),n}setMinutes(e,t){const n=this.clone(e);return n.setMinutes(t),n}setSeconds(e,t){const n=this.clone(e);return n.setSeconds(t),n}setMilliseconds(e,t){const n=this.clone(e);return n.setMilliseconds(t),n}isValidDateString(e,t){return!isNaN(this.parse(e,t).getTime())}isValidTimeString(e,t){return this.isValidDateString(e,t)}today(){return new Date}getLocaleTimeFormat(){return Object(r.D)(this.locale,r.g.Short)}getDate(e){return e.getDate()}getMonth(e){return e.getMonth()}getYear(e){return e.getFullYear()}getDayOfWeek(e){return e.getDay()}getFirstDayOfWeek(){return Object(r.B)(this.locale)}getMonthName(e,t=r.w.Abbreviated){const n=e.getMonth();return this.getMonthNameByIndex(n,t)}getMonthNameByIndex(e,t=r.w.Abbreviated){return Object(r.C)(this.locale,r.f.Format,t)[e]}getDayOfWeekNames(){return[...Object(r.z)(this.locale,r.f.Format,r.w.Short)]}format(e,t){return this.datePipe.transform(e,t)}parse(e,t){return new Date(Date.parse(e))}addDay(e,t){return this.createDate(e.getFullYear(),e.getMonth(),e.getDate()+t)}addMonth(e,t){const n=this.createDate(e.getFullYear(),e.getMonth()+t,1);return n.setDate(Math.min(e.getDate(),this.getMonthEnd(n).getDate())),n}addMinutes(e,t){const n=new Date(e);return n.setMinutes(e.getMinutes()+t),n}addHours(e,t){const n=new Date(e);return n.setHours(e.getHours()+t),n}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}getMilliseconds(e){return e.getMilliseconds()}addYear(e,t){return this.createDate(e.getFullYear()+t,e.getMonth(),e.getDate())}clone(e){return new Date(e.getTime())}compareDates(e,t){return e.getTime()-t.getTime()}createDate(e,t,n){const i=new Date(e,t,n);return e>=0&&e<100&&i.setFullYear(i.getFullYear()-1900),i}getMonthEnd(e){return this.createDate(e.getFullYear(),e.getMonth()+1,0)}getMonthStart(e){return this.createDate(e.getFullYear(),e.getMonth(),1)}getNumberOfDaysInMonth(e){return this.getMonthEnd(e).getDate()}getYearEnd(e){return this.createDate(e.getFullYear(),11,31)}getYearStart(e){return this.createDate(e.getFullYear(),0,1)}valueOf(e){return e.valueOf()}isSameDay(e,t){return this.isSameMonth(e,t)&&e.getDate()===t.getDate()}isSameMonth(e,t){return this.isSameYear(e,t)&&e.getMonth()===t.getMonth()}isSameYear(e,t){return e.getFullYear()===t.getFullYear()}getId(){return"native"}getWeekNumber(e){return parseInt(this.datePipe.transform(e,"w"),10)}getDateFormat(){return"yyyy-MM-dd"}getTwelveHoursFormat(){return"hh:mm a"}}return e.\u0275fac=function(t){return new(t||e)(i.gc(i.x))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),Ds=(()=>{class e{constructor(e){this.dateService=e,this.MINUTES_AND_SECONDS=60}getHoursRange(e=this.MINUTES_AND_SECONDS){let t=this.getResetTime();const n=this.dateService.addDay(t,1),i=[];for(;this.dateService.compareDates(t,n)<0;)i.push(t),t=this.dateService.addMinutes(t,e);return i}getResetTime(){let e=this.dateService.today();return e=this.dateService.setHours(e,0),e=this.dateService.setMinutes(e,0),e=this.dateService.setSeconds(e,0),e=this.dateService.setMilliseconds(e,0),e}paddToTwoSymbols(e){return e<10?"0"+e:e.toString()}buildDateFormat(e,t=!1){return e?`${this.dateService.getDateFormat()} ${this.dateService.getTwelveHoursFormat()}`:t?`${this.dateService.getDateFormat()} ${this.dateService.getTwentyFourHoursFormatWithSeconds()}`:`${this.dateService.getDateFormat()} ${this.dateService.getTwentyFourHoursFormat()}`}}return e.\u0275fac=function(t){return new(t||e)(i.gc(ms))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),js=(()=>{class e{constructor(){this._applyButtonText="ok",this._currentTimeButtonText="now",this.setCurrentTime=new i.o,this.saveValue=new i.o}set applyButtonText(e){e&&(this._applyButtonText=e)}get applyText(){return this._applyButtonText}set currentTimeButtonText(e){e&&(this._currentTimeButtonText=e)}get currentTimeText(){return this._currentTimeButtonText}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-calendar-actions"]],inputs:{applyButtonText:"applyButtonText",currentTimeButtonText:"currentTimeButtonText"},outputs:{setCurrentTime:"setCurrentTime",saveValue:"saveValue"},decls:4,vars:2,consts:[["nbButton","","ghost","","status","primary","size","small",3,"click"],["nbButton","","status","primary","size","small",3,"click"]],template:function(e,t){1&e&&(i.Zb(0,"button",0),i.jc("click",function(){return t.setCurrentTime.emit()}),i.Qc(1),i.Yb(),i.Zb(2,"button",1),i.jc("click",function(){return t.saveValue.emit()}),i.Qc(3),i.Yb()),2&e&&(i.Gb(1),i.Sc(" ",t.currentTimeText,""),i.Gb(2),i.Sc(" ",t.applyText,""))},directives:[fs],styles:["[_nghost-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0}),e})();const Ns=[{provide:ms,useClass:Ls},r.e,_s,Ps,Ds];let Vs=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({providers:[...Ns],imports:[[Fi,gs,is]]}),e})(),zs=(()=>{class e{constructor(e,t){this.dateService=e,this.yearModelService=t,this.boundingMonth=!0,this.activeViewMode=ls.DATE,this.size=us.MEDIUM,this.showNavigation=!0,this._showWeekNumber=!1,this.dateChange=new i.o,this.ViewMode=ls}get showWeekNumber(){return this._showWeekNumber}set showWeekNumber(e){this._showWeekNumber=ds(e)}ngOnInit(){this.visibleDate||(this.visibleDate=this.dateService.today())}get large(){return this.size===us.LARGE}setViewMode(e){this.activeViewMode=e}setVisibleDate(e){this.visibleDate=e}prevMonth(){this.changeVisibleMonth(-1)}nextMonth(){this.changeVisibleMonth(1)}prevYear(){this.changeVisibleYear(-1)}nextYear(){this.changeVisibleYear(1)}prevYears(){this.changeVisibleYears(-1)}nextYears(){this.changeVisibleYears(1)}navigatePrev(){switch(this.activeViewMode){case ls.DATE:return this.prevMonth();case ls.MONTH:return this.prevYear();case ls.YEAR:return this.prevYears()}}navigateNext(){switch(this.activeViewMode){case ls.DATE:return this.nextMonth();case ls.MONTH:return this.nextYear();case ls.YEAR:return this.nextYears()}}onChangeViewMode(){if(this.activeViewMode===ls.DATE)return this.setViewMode(ls.YEAR);this.setViewMode(ls.DATE)}changeVisibleMonth(e){this.visibleDate=this.dateService.addMonth(this.visibleDate,e)}changeVisibleYear(e){this.visibleDate=this.dateService.addYear(this.visibleDate,e)}changeVisibleYears(e){this.visibleDate=this.dateService.addYear(this.visibleDate,e*this.yearModelService.getYearsInView())}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(ms),i.Tb(Ps))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-base-calendar"]],hostVars:6,hostBindings:function(e,t){2&e&&i.Lb("has-navigation",t.showNavigation)("has-week-number",t.showWeekNumber)("size-large",t.large)},inputs:{boundingMonth:"boundingMonth",activeViewMode:["startView","activeViewMode"],size:"size",showNavigation:"showNavigation",showWeekNumber:"showWeekNumber",visibleDate:"visibleDate",min:"min",max:"max",filter:"filter",dayCellComponent:"dayCellComponent",monthCellComponent:"monthCellComponent",yearCellComponent:"yearCellComponent",date:"date",weekNumberSymbol
1:"weekNumberSymbol"},outputs:{dateChange:"dateChange"},decls:6,vars:5,consts:[["class","calendar-navigation",4,"ngIf"],[3,"ngSwitch"],[3,"boundingMonths","cellComponent","min","max","filter","visibleDate","size","date","showWeekNumber","weekNumberSymbol","dateChange",4,"ngSwitchCase"],[3,"cellComponent","date","min","max","filter","size","year","yearChange",4,"ngSwitchCase"],[3,"cellComponent","min","max","filter","size","month","date","monthChange",4,"ngSwitchCase"],[1,"calendar-navigation"],[3,"date","viewMode","changeMode"],[3,"prev","next"],[3,"boundingMonths","cellComponent","min","max","filter","visibleDate","size","date","showWeekNumber","weekNumberSymbol","dateChange"],[3,"cellComponent","date","min","max","filter","size","year","yearChange"],[3,"cellComponent","min","max","filter","size","month","date","monthChange"]],template:function(e,t){1&e&&(i.Zb(0,"nb-card"),i.Oc(1,dt,3,2,"nb-card-header",0),i.Zb(2,"nb-card-body",1),i.Oc(3,ht,1,10,"nb-calendar-day-picker",2),i.Oc(4,pt,1,7,"nb-calendar-year-picker",3),i.Oc(5,ft,1,7,"nb-calendar-month-picker",4),i.Yb(),i.Yb()),2&e&&(i.Gb(1),i.tc("ngIf",t.showNavigation),i.Gb(1),i.tc("ngSwitch",t.activeViewMode),i.Gb(1),i.tc("ngSwitchCase",t.ViewMode.DATE),i.Gb(1),i.tc("ngSwitchCase",t.ViewMode.YEAR),i.Gb(1),i.tc("ngSwitchCase",t.ViewMode.MONTH))},directives:[as,r.n,ss,r.p,r.q,rs,Os,xs,ks,Is,Ts],encapsulation:2}),e})(),Fs=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[Vs,Fi,cs]]}),e})(),Bs=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[Fs]]}),e})();class qs{get hasRange(){return!!(this.selectedValue&&this.selectedValue.start&&this.selectedValue.end)}}let Us=(()=>{class e extends qs{constructor(e){super(),this.dateService=e,this.size=us.MEDIUM,this.select=new i.o(!0),this.rangeCellClass=!0,this.dayCellClass=!0}get inRange(){return!(!this.date||!this.hasRange)&&this.isInRange(this.date,this.selectedValue)}get start(){return this.date&&this.hasRange&&this.dateService.isSameDay(this.date,this.selectedValue.start)}get end(){return this.date&&this.hasRange&&this.dateService.isSameDay(this.date,this.selectedValue.end)}get today(){return this.date&&this.dateService.isSameDay(this.date,this.dateService.today())}get boundingMonth(){return!this.dateService.isSameMonthSafe(this.date,this.visibleDate)}get selected(){return!!this.inRange||(this.selectedValue?this.dateService.isSameDaySafe(this.date,this.selectedValue.start):void 0)}get empty(){return!this.date}get disabled(){return this.smallerThanMin()||this.greaterThanMax()||this.dontFitFilter()}get isLarge(){return this.size===us.LARGE}get day(){return this.date&&this.dateService.getDate(this.date)}onClick(){this.disabled||this.empty||this.select.emit(this.date)}smallerThanMin(){return this.date&&this.min&&this.dateService.compareDates(this.date,this.min)<0}greaterThanMax(){return this.date&&this.max&&this.dateService.compareDates(this.date,this.max)>0}dontFitFilter(){return this.date&&this.filter&&!this.filter(this.date)}isInRange(e,{start:t,end:n}){const i=this.dateService.compareDates(this.date,t)>=0,r=this.dateService.compareDates(this.date,n)<=0;return i&&r}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(ms))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-calendar-range-day-cell"]],hostVars:22,hostBindings:function(e,t){1&e&&i.jc("click",function(){return t.onClick()}),2&e&&i.Lb("range-cell",t.rangeCellClass)("day-cell",t.dayCellClass)("in-range",t.inRange)("start",t.start)("end",t.end)("today",t.today)("bounding-month",t.boundingMonth)("selected",t.selected)("empty",t.empty)("disabled",t.disabled)("size-large",t.isLarge)},inputs:{size:"size",date:"date",selectedValue:"selectedValue",visibleDate:"visibleDate",min:"min",max:"max",filter:"filter"},outputs:{select:"select"},features:[i.Db],decls:2,vars:1,consts:[[1,"cell-content"]],template:function(e,t){1&e&&(i.Zb(0,"div",0),i.Qc(1),i.Yb()),2&e&&(i.Gb(1),i.Rc(t.day))},encapsulation:2,changeDetection:0}),e})(),Hs=(()=>{class e extends qs{constructor(e){super(),this.dateService=e,this.size=us.MEDIUM,this.select=new i.o(!0),this.yearCellClass=!0,this.rangeCellClass=!0}get inRange(){return this.hasRange&&this.isInRange(this.date,this.selectedValue)}get rangeStart(){return this.hasRange&&this.dateService.isSameYear(this.date,this.selectedValue.start)}get rangeEnd(){return this.hasRange&&this.dateService.isSameYear(this.date,this.selectedValue.end)}get selected(){return!!this.inRange||(this.selectedValue?this.dateService.isSameYearSafe(this.date,this.selectedValue.start):void 0)}get today(){return this.dateService.isSameYear(this.date,this.dateService.today())}get disabled(){return this.smallerThanMin()||this.greaterThanMax()}get isLarge(){return this.size===us.LARGE}get year(){return this.dateService.getYear(this.date)}onClick(){this.disabled||this.select.emit(this.date)}smallerThanMin(){return this.date&&this.min&&this.dateService.compareDates(this.yearEnd(),this.min)<0}greaterThanMax(){return this.date&&this.max&&this.dateService.compareDates(this.yearStart(),this.max)>0}yearStart(){return this.dateService.getYearStart(this.date)}yearEnd(){return this.dateService.getYearEnd(this.date)}isInRange(e,{start:t,end:n}){if(t&&n){const i=this.dateService.getYear(e),r=this.dateService.getYear(t),s=this.dateService.getYear(n);return i>=r&&i<=s}return this.dateService.isSameYear(e,t)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(ms))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-calendar-range-year-cell"]],hostVars:18,hostBindings:function(e,t){1&e&&i.jc("click",function(){return t.onClick()}),2&e&&i.Lb("year-cell",t.yearCellClass)("range-cell",t.rangeCellClass)("in-range",t.inRange)("start",t.rangeStart)("end",t.rangeEnd)("selected",t.selected)("today",t.today)("disabled",t.disabled)("size-large",t.isLarge)}
1,inputs:{size:"size",date:"date",min:"min",max:"max",selectedValue:"selectedValue"},outputs:{select:"select"},features:[i.Db],decls:2,vars:1,consts:[[1,"cell-content"]],template:function(e,t){1&e&&(i.Zb(0,"div",0),i.Qc(1),i.Yb()),2&e&&(i.Gb(1),i.Sc(" ",t.year," "))},encapsulation:2,changeDetection:0}),e})(),Ws=(()=>{class e extends qs{constructor(e){super(),this.dateService=e,this.size=us.MEDIUM,this.select=new i.o(!0),this.monthCellClass=!0,this.rangeCellClass=!0}get month(){return this.dateService.getMonthName(this.date)}get selected(){return!!this.inRange||(this.selectedValue?this.dateService.isSameMonthSafe(this.date,this.selectedValue.start):void 0)}get inRange(){if(this.hasRange)return this.isInRage(this.date,this.selectedValue)}get rangeStart(){if(this.hasRange)return this.dateService.isSameMonth(this.date,this.selectedValue.start)}get rangeEnd(){if(this.hasRange)return this.dateService.isSameMonth(this.date,this.selectedValue.end)}get today(){return this.dateService.isSameMonthSafe(this.date,this.dateService.today())}get disabled(){return this.smallerThanMin()||this.greaterThanMax()}get isLarge(){return this.size===us.LARGE}onClick(){this.disabled||this.select.emit(this.date)}smallerThanMin(){return this.date&&this.min&&this.dateService.compareDates(this.monthEnd(),this.min)<0}greaterThanMax(){return this.date&&this.max&&this.dateService.compareDates(this.monthStart(),this.max)>0}monthStart(){return this.dateService.getMonthStart(this.date)}monthEnd(){return this.dateService.getMonthEnd(this.date)}isInRage(e,t){if(t.start&&t.end){const n=this.dateService.getMonthStart(e),i=this.dateService.getMonthStart(t.start),r=this.dateService.getMonthStart(t.end),s=this.dateService.compareDates(n,i)>=0,o=this.dateService.compareDates(n,r)<=0;return s&&o}return this.dateService.isSameMonth(e,t.start)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(ms))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-calendar-range-month-cell"]],hostVars:18,hostBindings:function(e,t){1&e&&i.jc("click",function(){return t.onClick()}),2&e&&i.Lb("month-cell",t.monthCellClass)("range-cell",t.rangeCellClass)("selected",t.selected)("in-range",t.inRange)("start",t.rangeStart)("end",t.rangeEnd)("today",t.today)("disabled",t.disabled)("size-large",t.isLarge)},inputs:{size:"size",date:"date",visibleDate:"visibleDate",selectedValue:"selectedValue",min:"min",max:"max"},outputs:{select:"select"},features:[i.Db],decls:2,vars:1,consts:[[1,"cell-content"]],template:function(e,t){1&e&&(i.Zb(0,"div",0),i.Qc(1),i.Yb()),2&e&&(i.Gb(1),i.Sc(" ",t.month," "))},encapsulation:2,changeDetection:0}),e})(),Gs=(()=>{class e{constructor(e){this.dateService=e,this.boundingMonth=!0,this.startView=ls.DATE,this.dayCellComponent=Us,this.monthCellComponent=Ws,this.yearCellComponent=Hs,this.size=us.MEDIUM,this.showNavigation=!0,this._showWeekNumber=!1,this.weekNumberSymbol="#",this.rangeChange=new i.o}set _cellComponent(e){e&&(this.dayCellComponent=e)}set _monthCellComponent(e){e&&(this.monthCellComponent=e)}set _yearCellComponent(e){e&&(this.yearCellComponent=e)}get showWeekNumber(){return this._showWeekNumber}set showWeekNumber(e){this._showWeekNumber=ds(e)}onChange(e){this.initDateIfNull(),this.handleSelected(e)}initDateIfNull(){this.range||(this.range={start:null,end:null})}handleSelected(e){this.selectionStarted()?this.selectEnd(e):this.selectStart(e)}selectionStarted(){const{start:e,end:t}=this.range;return e&&!t}selectStart(e){this.selectRange({start:e})}selectEnd(e){const{start:t}=this.range;this.dateService.compareDates(e,t)>0?this.selectRange({start:t,end:e}):this.selectRange({start:e,end:t})}selectRange(e){this.range=e,this.rangeChange.emit(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(ms))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-calendar-range"]],inputs:{boundingMonth:"boundingMonth",startView:"startView",monthCellComponent:"monthCellComponent",size:"size",showNavigation:"showNavigation",weekNumberSymbol:"weekNumberSymbol",_cellComponent:["dayCellComponent","_cellComponent"],_monthCellComponent:["monthCellComponent","_monthCellComponent"],_yearCellComponent:["yearCellComponent","_yearCellComponent"],showWeekNumber:"showWeekNumber",range:"range",min:"min",max:"max",filter:"filter",visibleDate:"visibleDate"},outputs:{rangeChange:"rangeChange"},decls:1,vars:14,consts:[[3,"date","min","max","filter","startView","boun
1dingMonth","dayCellComponent","monthCellComponent","yearCellComponent","visibleDate","showNavigation","size","showWeekNumber","weekNumberSymbol","dateChange"]],template:function(e,t){1&e&&(i.Zb(0,"nb-base-calendar",0),i.jc("dateChange",function(e){return t.onChange(e)}),i.Yb()),2&e&&i.tc("date",t.range)("min",t.min)("max",t.max)("filter",t.filter)("startView",t.startView)("boundingMonth",t.boundingMonth)("dayCellComponent",t.dayCellComponent)("monthCellComponent",t.monthCellComponent)("yearCellComponent",t.yearCellComponent)("visibleDate",t.visibleDate)("showNavigation",t.showNavigation)("size",t.size)("showWeekNumber",t.showWeekNumber)("weekNumberSymbol",t.weekNumberSymbol)},directives:[zs],encapsulation:2}),e})(),Ys=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[Fs]]}),e})();const $s=new i.t("NB_TIME_PICKER_CONFIG");let Zs=(()=>{class e{constructor(e,t,n,r,s,a){this.config=e,this.platformService=t,this.cd=r,this.calendarTimeModelService=s,this.dateService=a,this.blur$=new o.a,this.dayPeriodColumnOptions=["AM","PM"],this.isAM=!0,this.showFooter=!0,this.hoursText="Hr",this.minutesText="Min",this.secondsText="Sec",this.ampmText="Am/Pm",this.onSelectTime=new i.o,this.twelveHoursFormat=e?e.twelveHoursFormat:a.getLocaleTimeFormat().includes("h")}get blur(){return this.blur$.asObservable()}get timeFormat(){return this._timeFormat}set timeFormat(e){this._timeFormat=e}get twelveHoursFormat(){return this._twelveHoursFormat}set twelveHoursFormat(e){this._twelveHoursFormat=ds(e)}get withSeconds(){return this._withSeconds}set withSeconds(e){this._withSeconds=ds(e)}get singleColumn(){return this._singleColumn}set singleColumn(e){this._singleColumn=ds(e)}set step(e){this._step=e}get step(){return this._step}set date(e){this._date=e,this.isAM="AM"===this.dateService.getDayPeriod(this.date),this.buildColumnOptions(),this.cd.markForCheck()}get date(){return this._date}ngOnInit(){this.timeFormat=this.setupTimeFormat()}ngOnChanges({step:e,twelveHoursFormat:t,withSeconds:n,singleColumn:i}){this.timeFormat=this.setupTimeFormat(),!(e||t||n||i)&&this.fullTimeOptions||this.buildColumnOptions()}setHost(e){this.hostRef=e}attach(e){this.hostRef=e}setCurrentTime(){this.date=this.dateService.today(),this.onSelectTime.emit({time:this.date,save:!0})}setHour(e){this.updateValue(this.dateService.setHours(this.date,e))}setMinute(e){this.updateValue(this.dateService.setMinutes(this.date,e))}setSecond(e){this.updateValue(this.dateService.setSeconds(this.date,e))}selectFullTime(e){this.updateValue(e)}changeDayPeriod(e){this.dateService.getDayPeriod(this.date)!==e&&this.updateValue(this.dateService.addHours(this.date,("AM"===e?-1:1)*this.dateService.HOURS_IN_DAY_PERIOD))}updateValue(e){this.onSelectTime.emit({time:e})}saveValue(){this.onSelectTime.emit({time:this.date,save:!0})}trackByTimeValues(e,t){return t.value}trackBySingleColumnValue(e,t){return this.dateService.valueOf(t)}trackByDayPeriod(e,t){return t}showSeconds(){return this.withSeconds&&!this.singleColumn}isSelectedHour(e){return!!this.date&&this.dateService.getHours(this.date)===e}isSelectedMinute(e){return!!this.date&&this.dateService.getMinutes(this.date)===e}isSelectedSecond(e){return!!this.date&&this.dateService.getSeconds(this.date)===e}isSelectedDayPeriod(e){return!!this.date&&e===this.dateService.getDayPeriod(this.date)}getFullTimeString(e){return this.dateService.format(e,this.timeFormat).toUpperCase()}isSelectedFullTimeValue(e){return!!this.date&&this.dateService.isSameHourAndMinute(e,this.date)}buildColumnOptions(){this.timeFormat=this.setupTimeFormat(),this.fullTimeOptions=this.singleColumn?this.calendarTimeModelService.getHoursRange(this.step):[],this.hoursColumnOptions=this.generateHours(),this.minutesColumnOptions=this.generateMinutesOrSeconds(),this.secondsColumnOptions=this.withSeconds?this.generateMinutesOrSeconds():[]}isFirefox(){return this.platformService.FIREFOX}generateHours(){return this.twelveHoursFormat?this.isAM?vs(12,e=>({value:e,text:this.calendarTimeModelService.paddToTwoSymbols(0===e?12:e)})):ys(12,24,e=>({value:e,text:this.calendarTimeModelService.paddToTwoSymbols(12===e?12:e-12)})):vs(24,e=>({value:e,text:this.calendarTimeModelService.paddToTwoSymbols(e)}))}generateMinutesOrSeconds(){return vs(60,e=>({value:e,text:this.calendarTimeModelService.paddToTwoSymbols(e)}))}setupTimeFormat(){return this.timeFormat?this.timeFormat:this.config.format||this.buildTimeFormat()}buildTimeFormat(){return this.twelveHoursFormat?`${this.withSeconds&&!this.singleColumn?this.dateService.getTwelveHoursFormatWithSeconds():this.dateService.getTwelveHoursFormat()}`:`${this.withSeconds&&!this.singleColumn?this.dateService.getTwentyFourHoursFormatWithSeconds():this.dateService.getTwentyFourHoursFormat()}`}}return e.\u0275fac=function(t){return new(t||e)(i.Tb($s),i.Tb(hr),i.Tb(i.x),i.Tb(i.h),i.Tb(Ds),i.Tb(ms))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-timepicker"]],viewQuery:function(e,t){if(1&e&&i.Vc(Qi,3),2&e){let e;i.Ec(e=i.kc())&&(t.portal=e.first)}},inputs:{showFooter:"showFooter",hoursText:"hoursText",minutesText:"minutesText",secondsText:"secondsText",ampmText:"ampmText",twelveHoursFormat:"twelveHoursFormat",timeFormat:"timeFormat",withSeconds:"withSeconds",singleColumn:"singleColumn",step:"step",date:"date",applyButtonText:"applyButtonText",currentTimeButtonText:"currentTimeButtonText"},outputs:{onSelectTime:"onSelectTime"},exportAs:["nbTimepicker"],features:[i.Eb],decls:1,vars:0,consts:[["class","nb-timepicker-container",3,"supp
1orts-scrollbar-theming",4,"nbPortal"],[1,"nb-timepicker-container"],[1,"column-header"],[4,"ngIf","ngIfElse"],["fullTimeHeadersBlock",""],[1,"picker-body"],["fullTimeColumnBlock",""],["class","actions-footer",4,"ngIf"],[1,"header-cell"],["class","header-cell",4,"ngIf"],[1,"values-list"],["class","list-item",3,"selected",4,"ngFor","ngForOf","ngForTrackBy"],[1,"list-item"],[3,"value","selected","select"],["class","values-list",4,"ngIf"],["class","list-item am-pm-item",3,"selected",4,"ngFor","ngForOf","ngForTrackBy"],[1,"list-item","am-pm-item"],[1,"actions-footer"],[3,"applyButtonText","currentTimeButtonText","setCurrentTime","saveValue"]],template:function(e,t){1&e&&i.Oc(0,At,10,7,"nb-card",0)},directives:function(){return[Qi,as,rs,r.n,Ia,r.m,Ra,uc,os,js]},styles:[".nb-timepicker-container[_ngcontent-%COMP%]{overflow:hidden;margin-bottom:0}.values-list[_ngcontent-%COMP%]{width:100%;overflow:hidden;scroll-snap-type:y proximity}.values-list[_ngcontent-%COMP%]:hover{overflow-y:auto}.list-item[_ngcontent-%COMP%]{border:0;padding:0;cursor:pointer}.picker-body[_ngcontent-%COMP%]{display:flex;width:100%;flex:1 0 0;overflow:hidden}.column-header[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between;padding:0}.header-cell[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:center}.actions-footer[_ngcontent-%COMP%]{width:100%}nb-card-header[_ngcontent-%COMP%], nb-card-footer[_ngcontent-%COMP%]{flex:0 0 auto}"],changeDetection:0}),e})(),Qs=(()=>{class e extends hs{constructor(e,t,n){super(),this.dateService=e,this.cd=t,this.calendarTimeModelService=n}ngOnInit(){this.date||(this.date=this.calendarTimeModelService.getResetTime())}ngAfterViewInit(){this.portalOutlet.attachTemplatePortal(this.timepicker.portal)}onDateValueChange(e){const t=this.dateService.getHours(this.date),n=this.dateService.getMinutes(this.date),i=this.dateService.getSeconds(this.date),r=this.dateService.getMilliseconds(this.date);let s=this.dateService.setHours(e,t);s=this.dateService.setMinutes(s,n),s=this.dateService.setMinutes(s,n),s=this.dateService.setSeconds(s,i),s=this.dateService.setMilliseconds(s,r),this.date=s}onTimeChange(e){let t=this.dateService.clone(this.date);t=this.dateService.setHours(t,this.dateService.getHours(e.time)),t=this.dateService.setMinutes(t,this.dateService.getMinutes(e.time)),t=this.dateService.setSeconds(t,this.dateService.getSeconds(e.time)),t=this.dateService.setMilliseconds(t,this.dateService.getMilliseconds(e.time)),this.date=t}saveValue(){this.dateChange.emit(this.date)}saveCurrentTime(){this.dateChange.emit(this.dateService.today())}showSeconds(){return this.withSeconds&&!this.twelveHoursFormat}isLarge(){return this.size===us.LARGE}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(ms),i.Tb(i.h),i.Tb(Ds))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-calendar-with-time"]],viewQuery:function(e,t){if(1&e&&(i.Vc(Ki,1),i.Vc(Zs,1)),2&e){let e;i.Ec(e=i.kc())&&(t.portalOutlet=e.first),i.Ec(e=i.kc())&&(t.timepicker=e.first)}},inputs:{visibleDate:"visibleDate",twelveHoursFormat:"twelveHoursFormat",withSeconds:"withSeconds",singleColumn:"singleColumn",step:"step",timeFormat:"timeFormat",title:"title",applyButtonText:"applyButtonText",currentTimeButtonText:"currentTimeButtonText"},features:[i.Db],decls:10,vars:29,consts:[[1,"calendar-with-time"],[1,"picker-body"],[3,"boundingMonth","startView","date","min","max","filter","dayCellComponent","monthCellComponent","yearCellComponent","size","visibleDate","showNavigation","showWeekNumber","weekNumberSymbol","dateChange"],[1,"timepicker-section"],[1,"picker-title"],[3,"date","twelveHoursFormat","withSeconds","showFooter","singleColumn","step","onSelectTime"],["nbPortalOutlet",""],[1,"picker-footer"],[3,"applyButtonText","currentTimeButtonText","setCurrentTime","saveValue"]],template:function(e,t){1&e&&(i.Zb(0,"nb-card",0),i.Zb(1,"nb-card-body",1),i.Zb(2,"nb-base-calendar",2),i.jc("dateChange",function(e){return t.onDateValueChange(e)}),i.Yb(),i.Zb(3,"div",3),i.Zb(4,"div",4),i.Qc(5),i.Yb(),i.Zb(6,"nb-timepicker",5),i.jc("onSelectTime",function(e){return t.onTimeChange(e)}
1),i.Yb(),i.Vb(7,6),i.Yb(),i.Yb(),i.Zb(8,"nb-card-footer",7),i.Zb(9,"nb-calendar-actions",8),i.jc("setCurrentTime",function(){return t.saveCurrentTime()})("saveValue",function(){return t.saveValue()}),i.Yb(),i.Yb(),i.Yb()),2&e&&(i.Gb(2),i.tc("boundingMonth",t.boundingMonth)("startView",t.startView)("date",t.date)("min",t.min)("max",t.max)("filter",t.filter)("dayCellComponent",t.dayCellComponent)("monthCellComponent",t.monthCellComponent)("yearCellComponent",t.yearCellComponent)("size",t.size)("visibleDate",t.visibleDate)("showNavigation",t.showNavigation)("showWeekNumber",t.showWeekNumber)("weekNumberSymbol",t.weekNumberSymbol),i.Gb(1),i.Lb("size-large",t.isLarge())("timepicker-single-column-width",t.singleColumn)("timepicker-multiple-column-width",!t.singleColumn),i.Gb(2),i.Rc(t.title),i.Gb(1),i.tc("date",t.date)("twelveHoursFormat",t.twelveHoursFormat)("withSeconds",t.showSeconds())("showFooter",!1)("singleColumn",t.singleColumn)("step",t.step),i.Gb(3),i.tc("applyButtonText",t.applyButtonText)("currentTimeButtonText",t.currentTimeButtonText))},directives:[as,ss,zs,Zs,Ki,os,js],styles:["[_nghost-%COMP%] nb-card.nb-timepicker-container{flex:1 0 0;border-radius:0;width:auto;border-right:0;border-bottom:0}[dir=ltr] [_nghost-%COMP%] .picker-footer[_ngcontent-%COMP%]{padding-left:.625rem}[dir=rtl] [_nghost-%COMP%] .picker-footer[_ngcontent-%COMP%]{padding-right:.625rem}.picker-body[_ngcontent-%COMP%]{align-items:stretch;display:flex;padding:0}.picker-body[_ngcontent-%COMP%] nb-base-calendar[_ngcontent-%COMP%] nb-card{border-radius:0}.calendar-with-time[_ngcontent-%COMP%]{overflow:hidden}.timepicker-section[_ngcontent-%COMP%]{display:flex;flex-direction:column}"],changeDetection:0}),e})(),Xs=(()=>{class e extends Er{attach(e){return this.overlayContainer.attachComponentPortal(e)}}return e.\u0275fac=function(t){return Ks(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-datepicker-container"]],viewQuery:function(e,t){if(1&e&&i.Vc(Mr,3),2&e){let e;i.Ec(e=i.kc())&&(t.overlayContainer=e.first)}},features:[i.Db],decls:1,vars:0,template:function(e,t){1&e&&i.Ub(0,"nb-overlay-container")},directives:[Mr],encapsulation:2}),e})();const Ks=i.bc(Xs);class Js{}class eo{}const to=new i.t("Datepicker Adapter"),no=new i.t("Date service options");let io=(()=>{class e{constructor(e,t,n,i,r){this.document=e,this.datepickerAdapters=t,this.hostRef=n,this.dateService=i,this.changeDetector=r,this.destroy$=new o.a,this.isDatepickerReady=!1,this.onChange=()=>{},this.onTouched=()=>{},this.validator=I.y.compose([this.parseValidator,this.minValidator,this.maxValidator,this.filterValidator].map(e=>e.bind(this))),this.subscribeOnInputChange()}set setPicker(e){this.picker=e,this.setupPicker()}get input(){return this.hostRef.nativeElement}get inputValue(){return this.input.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}writeValue(e){this.isDatepickerReady?(this.writePicker(e),this.writeInput(e)):this.queue=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.input.disabled=e}validate(){return this.validator(null)}hidePicker(){this.input.focus(),this.picker.hide()}parseValidator(){return""===this.inputValue||this.datepickerAdapter.isValid(this.inputValue,this.picker.format)?null:{nbDatepickerParse:{value:this.inputValue}}}minValidator(){const e=this.picker.getValidatorConfig(),t=this.datepickerAdapter.parse(this.inputValue,this.picker.format);return!e.min||!t||this.dateService.compareDates(e.min,t)<=0?null:{nbDatepickerMin:{min:e.min,actual:t}}}maxValidator(){const e=this.picker.getValidatorConfig(),t=this.datepickerAdapter.parse(this.inputValue,this.picker.format);return!e.max||!t||this.dateService.compareDates(e.max,t)>=0?null:{nbDatepickerMax:{max:e.max,actual:t}}}filterValidator(){const e=this.picker.getValidatorConfig(),t=this.datepickerAdapter.parse(this.inputValue,this.picker.format);return e.filter&&t&&!e.filter(t)?{nbDatepickerFilter:!0}:null}chooseDatepickerAdapter(){if(this.datepickerAdapter=this.datepickerAdapters.find(({picker:e})=>this.picker instanceof e),this.noDatepickerAdapterProvided())throw new Error("No datepickerAdapter provided for picker")}setupPicker(){this.chooseDatepickerAdapter(),this.picker.attach(this.hostRef),this.inputValue&&(this.picker.value=this.datepickerAdapter.parse(this.inputValue,this.picker.format)),this.isDatepickerReady||this.picker.init.pipe(Object(O.a)(1),Object(x.a)(()=>this.isDatepickerReady=!0),Object(y.a)(()=>!!this.queue),Object(w.a)(this.destroy$)).subscribe(()=>{this.writeValue(this.queue),this.onChange(this.queue),this.changeDetector.detectChanges(),this.queue=void 0}),this.picker.valueChange.pipe(Object(w.a)(this.destroy$)).subscribe(e=>{this.writePicker(e),this.writeInput(e),this.onChange(e),this.picker.shouldHide()&&this.hidePicker()}),Object(l.a)(this.picker.blur,Object(c.a)(this.input,"blur").pipe(Object(y.a)(()=>!this.picker.isShown&&this.document.activeElement!==this.input))).pipe(Object(w.a)(this.destroy$)).subscribe(()=>this.onTouched())}writePicker(e){this.picker.value=e}writeInput(e){const t=this.datepickerAdapter.format(e,this.picker.format);this.hostRef.nativeElement.value=t}noDatepickerAdapterProvided(){return!(this.datepickerAdapter&&this.datepickerAdapter instanceof Js)}subscribeOnInputChange(){Object(c.a)(this.input,"input").pipe(Object(g.a)(()=>this.inputValue),Object(w.a)(this.destroy$)).subscribe(e=>this.handleInputChange(e))}handleInputChange(e){const t=this.parseInputValue(e);this.onChange(t),this.writePicker(t)}parseInputValue(e){return this.datepickerAdapter.isValid(e,this.picker.format)?this.datepickerAdapter.parse(e,this.picker.format):null}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(xi),i.Tb(to),i.Tb(i.l),i.Tb(ms),i.Tb(i.h))},e.\u0275dir=i.Ob({type:e,selectors:[["input","nbDatepicker",""]],inputs:{setPicker:["nbDatepicker","setPicker"]},features:[i.Fb([{provide:I.m,useExisting:Object(i.Y)(()=>e),multi:!0},{provide:I.l,useExisting:Object(i.Y)(()=>e),multi:!0}])]}),e})();class ro extends eo{constructor(e,t,n,i,r,a){super(),this.overlay=e,this.positionBuilder=t,this.triggerStrategyBuilder=n,this.cfr=i,this.dateService=r,this.dateServiceOptions=a,this.size=us.MEDIUM,this.init$=new s.a,this.onChange$=new o.a,this.overlayOffset=8,this.destroy$=new o.a,this.blur$=new o.a}get picker(){return this.pickerRef&&this.pickerRef.instance}get valueChange(){return this.onChange$.asObservable()}get isShown(){return this.ref&&this.ref.hasAttached()}get init(){return this.init$.asObservable()}get blur(){return this.blur$.asObservable()}attach(e){this.hostRef=e,this.subscribeOnTriggers()}getValidatorConfig(){return{min:this.min,max:this.max,filter:this.filter}}show(){this.ref||this.createOverlay(),this.openDatepicker()}shouldHide(){return this.hideOnSelect&&!!this.value}hide(){this.ref&&this.ref.detach(),this.picker&&(this.queue=this.value,this.pickerRef.destroy(),this.pickerRef=null,this.container=null)}createOverlay(){this.positionStrategy=this.createPositionStrategy(),this.ref=this.overlay.create({positionStrategy:this.positionStrategy,scrollStrategy:this.overlay.scrollStrategies.reposition()}),this.subscribeOnPositionChange()}openDatepicker(){this.container=this.ref.attach(new er(Xs,null,null,this.cfr)),this.instantiatePicker(),this.subscribeOnValueChange(),this.writeQueue(),this.patchWithInputs(),this.pickerRef.changeDetectorRef.markForCheck()}createPositionStrategy(){return this.positionBuilder.connectedTo(this.hostRef).position(wr.BOTTOM).offset(this.overlayOffset).adjustment(_r.COUNTERCLOCKWISE)}subscribeOnPositionChange(){this.positionStrategy.positionChange.pipe(Object(w.a)(this.destroy$)).subscribe(e=>Ir(this.container,{position:e}))}createTriggerStrategy(){return this.triggerStrategyBuilder.trigger(Vr.FOCUS).host(this.hostRef.nativeElement).container(()=>this.container).build()}subscribeOnTriggers(){this.triggerStrategy=this.createTriggerStrategy(),this.triggerStrategy.show$.subscribe(()=>this.show()),this.triggerStrategy.hide$.subscribe(()=>{this.blur$.next(),this.hide()})}instantiatePicker(){this.pickerRef=this.container.instance.attach(new er(this.pickerClass,null,null,this.cfr))}subscribeOnValueChange(){this.pickerValueChange.subscribe(e=>{this.onChange$.next(e)})}patchWithInputs(){this.picker.boundingMonth=this.boundingMonth,this.picker.startView=this.startView,this.picker.min=this.min,this.picker.max=this.max,this.picker.filter=this.filter,this.picker._cellComponent=this.dayCellComponent,this.picker._monthCellComponent=this.monthCellComponent,this.picker._yearCellComponent=this.yearCellComponent,this.picker.size=this.size,this.picker.showNavigation=this.showNavigation,this.picker.visibleDate=this.visibleDate,this.picker.showWeekNumber=this.showWeekNumber,this.picker.weekNumberSymbol=this.weekNumberSymbol}checkFormat(){if("native"===this.dateService.getId()&&this.format)throw new Error('Can\'t format native date. To use custom formatting you have to install @nebular/moment or @nebular/date-fns package and import NbMomentDateModule or NbDateFnsDateModule accordingly.More information at "Formatting issue" https://akveo.github.io/nebular/docs/components/datepicker/overview#nbdatepickercomponent');const e=this.format||this.dateServiceOptions&&this.dateServiceOptions.format;if("date-fns"===this.dateService.getId()&&!e)throw new Error("format is required when using NbDateFnsDateModule")}}let so=(()=>{class e extends ro{constructor(e,t,n,i,r,s,o){super(i,t,n,r,s,o),this.boundingMonth=!0,this.startView=ls.DATE,this.size=us.MEDIUM,this.hideOnSelect=!0,this.showNavigation=!0,this.weekNumberSymbol="#",this._showWeekNumber=!1,this.overlayOffset=8}get showWeekNumber(){return this._showWeekNumber}set showWeekNumber(e){this._showWeekNumber=ds(e)}ngOnInit(){this.checkFormat()}ngOnChanges(e){e.format&&!e.format.isFirstChange()&&this.checkFormat()}ngAfterViewInit(){this.init$.next()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.hide(),this.init$.complete(),this.ref&&this.ref.dispose(),this.triggerStrategy&&this.triggerStrategy.destroy()}get pickerValueChange(){}get value(){}set value(e){}writeQueue(){}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(xi),i.Tb(Ar),i.Tb(Wr),i.Tb(Rr),i.Tb(i.j),i.Tb(ms),i.Tb(no,8))},e.\u0275cmp=i.Nb({type:e,selectors:[["ng-component"]],inputs:{boundingMonth:"boundingMonth",startView:"startView",size:"size",hideOnSelect:"hideOnSelect",showNavigation:"showNavigation",weekNumberSymbol
1:"weekNumberSymbol",overlayOffset:"overlayOffset",showWeekNumber:"showWeekNumber",format:"format",min:"min",max:"max",filter:"filter",dayCellComponent:"dayCellComponent",monthCellComponent:"monthCellComponent",yearCellComponent:"yearCellComponent",visibleDate:"visibleDate"},features:[i.Db,i.Eb],decls:0,vars:0,template:function(e,t){},encapsulation:2}),e})(),oo=(()=>{class e extends so{constructor(){super(...arguments),this.pickerClass=hs}set date(e){this.value=e}get dateChange(){return this.valueChange}get value(){return this.picker?this.picker.date:void 0}set value(e){this.picker?e&&(this.visibleDate=e,this.picker.visibleDate=e,this.picker.date=e):this.queue=e}get pickerValueChange(){return this.picker.dateChange}writeQueue(){if(this.queue){const e=this.queue;this.queue=null,this.value=e}}}return e.\u0275fac=function(t){return ao(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-datepicker"]],inputs:{date:"date"},outputs:{dateChange:"dateChange"},features:[i.Db],decls:0,vars:0,template:function(e,t){},encapsulation:2}),e})();const ao=i.bc(oo);let co=(()=>{class e extends so{constructor(){super(...arguments),this.pickerClass=Gs}set range(e){this.value=e}get rangeChange(){return this.valueChange}get value(){return this.picker?this.picker.range:void 0}set value(e){if(this.picker){if(e){const t=e&&e.start;this.visibleDate=t,this.picker.visibleDate=t,this.picker.range=e}}else this.queue=e}get pickerValueChange(){return this.picker.rangeChange}shouldHide(){return super.shouldHide()&&!!(this.value&&this.value.start&&this.value.end)}writeQueue(){if(this.queue){const e=this.queue;this.queue=null,this.value=e}}}return e.\u0275fac=function(t){return lo(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-rangepicker"]],inputs:{range:"range"},outputs:{rangeChange:"rangeChange"},features:[i.Db],decls:0,vars:0,template:function(e,t){},encapsulation:2}),e})();const lo=i.bc(co);let uo=(()=>{class e extends so{constructor(e,t,n,i,r,s,o,a){super(e,t,n,i,r,s,o),this.calendarWithTimeModelService=a,this.pickerClass=Qs}get value(){return this.picker?this.picker.date:void 0}set value(e){this.picker?e&&(this.visibleDate=e,this.picker.visibleDate=e,this.picker.date=e,this.picker.cd.markForCheck()):this.queue=e}get twelveHoursFormat(){return this._twelveHoursFormat}set twelveHoursFormat(e){this._twelveHoursFormat=ds(e)}get withSeconds(){return this._withSeconds}set withSeconds(e){this._withSeconds=ds(e)}get singleColumn(){return this._singleColumn}set singleColumn(e){this._singleColumn=ds(e)}ngOnInit(){this.format=this.format||this.buildTimeFormat()}patchWithInputs(){this.picker.singleColumn=this.singleColumn,this.picker.twelveHoursFormat=this.twelveHoursFormat,this.picker.withSeconds=this.withSeconds,this.picker.step=this.step,this.picker.title=this.title,this.picker.applyButtonText=this.applyButtonText,this.picker.currentTimeButtonText=this.currentTimeButtonText,this.picker.timeFormat=this.twelveHoursFormat?this.dateService.getTwelveHoursFormat():this.withSeconds?this.dateService.getTwentyFourHoursFormatWithSeconds():this.dateService.getTwentyFourHoursFormat(),super.patchWithInputs(),this.picker.cd.markForCheck()}get pickerValueChange(){return this.picker.dateChange}writeQueue(){if(this.queue){const e=this.queue;this.queue=null,this.value=e}}buildTimeFormat(){return this.singleColumn?this.calendarWithTimeModelService.buildDateFormat(this.twelveHoursFormat):this.calendarWithTimeModelService.buildDateFormat(this.twelveHoursFormat,this.withSeconds)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(xi),i.Tb(Ar),i.Tb(Wr),i.Tb(Rr),i.Tb(i.j),i.Tb(ms),i.Tb(no,8),i.Tb(Ds))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-date-timepicker"]],inputs:{twelveHoursFormat:"twelveHoursFormat",withSeconds:"withSeconds",singleColumn:"singleColumn",step:"step",title:"title",applyButtonText:"applyButtonText",currentTimeButtonText:"currentTimeButtonText"},features:[i.Db],decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0}),e})();function ho(e){return e.match(/.*?(?=[?;#]|$)/)[0]}function po(e){const t=e.match(/#(.+)/);return t?t[1]:""}let fo=(()=>{class e{constructor(e){this.router=e}shouldRestore(){return this.router.events.pipe(Object(m.a)(null),Object(y.a)(e=>null===e||e instanceof R.b),Object(b.a)(),Object(g.a)(([e,t])=>this.pageChanged(e,t)),Object(y.a)(e=>!!e))}pageChanged(e,t){return!e||ho(e.url)!==ho(t.url)}}return e.\u0275fac=function(t){return new(t||e)(i.gc(R.c))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),go=(()=>{class e{constructor(e,t,n,i,s,a,c,l,u,h,p,f){this.themeService=e,this.spinnerService=t,this.elementRef=n,this.renderer=i,this.window=s,this.document=a,this.platformId=c,this.layoutDirectionService=l,this.scrollService=u,this.rulerService=h,this.scrollTop=p,this.overlayContainer=f,this.scrollBlockClass="nb-global-scrollblock",this.isScrollBlocked=!1,this.centerValue=!1,this.restoreScrollTopValue=!0,this.windowModeValue=!1,this.withScrollValue=!1,this.withSubheader=!1,this.afterViewInit$=new d.a(null),this.destroy$=new o.a,this.registerAsOverlayContainer(),this.themeService.onThemeChange().pipe(Object(w.a)(this.destroy$)).subscribe(e=>{const t=this.document.getElementsByTagName("body")[0];e.previous&&this.renderer.removeClass(t,`nb-theme-${e.previous}`),this.renderer.addClass(t,`nb-theme-${e.name}`)}),this.themeService.onAppendLayoutClass().pipe(Object(w.a)(this.destroy$)).subscribe(e=>{this.renderer.addClass(this.elementRef.nativeElement,e)}),this.themeService.onRemoveLayoutClass().pipe(Object(w.a)(this.destroy$)).subscribe(e=>{this.renderer.removeClass(this.elementRef.nativeElement,e)}),this.spinnerService.registerLoader(new Promise((e,t)=>
1{this.afterViewInit$.pipe(Object(w.a)(this.destroy$)).subscribe(t=>e())})),this.spinnerService.load(),this.rulerService.onGetDimensions().pipe(Object(w.a)(this.destroy$)).subscribe(({listener:e})=>{e.next(this.getDimensions()),e.complete()}),this.scrollService.onScrollableChange().pipe(Object(y.a)(()=>this.withScrollValue),Object(w.a)(this.destroy$)).subscribe(e=>{e?this.enableScroll():this.blockScroll()}),this.scrollService.onGetPosition().pipe(Object(w.a)(this.destroy$)).subscribe(({listener:e})=>{e.next(this.getScrollPosition()),e.complete()}),Object(r.E)(this.platformId)&&this.themeService.changeWindowWidth(this.window.innerWidth)}set center(e){this.centerValue=ds(e)}set windowMode(e){this.windowModeValue=ds(e),this.withScroll=this.windowModeValue}set withScroll(e){this.withScrollValue=ds(e);const t=this.document.getElementsByTagName("body")[0];this.renderer.setStyle(t,"overflow",this.withScrollValue?"hidden":"initial")}set restoreScrollTop(e){this.restoreScrollTopValue=ds(e)}ngAfterViewInit(){this.scrollTop.shouldRestore().pipe(Object(y.a)(()=>this.restoreScrollTopValue),Object(w.a)(this.destroy$)).subscribe(()=>this.scroll(0,0)),this.layoutDirectionService.onDirectionChange().pipe(Object(w.a)(this.destroy$)).subscribe(e=>this.document.dir=e),this.scrollService.onManualScroll().pipe(Object(w.a)(this.destroy$)).subscribe(({x:e,y:t})=>this.scroll(e,t)),this.afterViewInit$.next(!0)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.unregisterAsOverlayContainer()}onScroll(e){this.scrollService.fireScrollChange(e)}onResize(e){this.themeService.changeWindowWidth(e.target.innerWidth)}getDimensions(){let e,t,n,i=0;if(this.withScrollValue){const r=this.scrollableContainerRef.nativeElement;e=r.clientWidth,t=r.clientHeight,n=r.scrollWidth,i=r.scrollHeight}else{const{documentElement:r,body:s}=this.document;e=r.clientWidth||s.clientWidth,t=r.clientHeight||s.clientHeight,n=r.scrollWidth||s.scrollWidth,i=r.scrollHeight||s.scrollHeight}return{clientWidth:e,clientHeight:t,scrollWidth:n,scrollHeight:i}}getScrollPosition(){if(!Object(r.E)(this.platformId))return{x:0,y:0};if(this.withScrollValue){const e=this.scrollableContainerRef.nativeElement;return{x:e.scrollLeft,y:e.scrollTop}}const e=this.document.documentElement.getBoundingClientRect();return{x:-e.left||this.document.body.scrollLeft||this.window.scrollX||this.document.documentElement.scrollLeft||0,y:-e.top||this.document.body.scrollTop||this.window.scrollY||this.document.documentElement.scrollTop||0}}registerAsOverlayContainer(){this.overlayContainer.setContainer&&this.overlayContainer.setContainer(this.elementRef.nativeElement)}unregisterAsOverlayContainer(){this.overlayContainer.clearContainer&&this.overlayContainer.clearContainer()}scroll(e=null,t=null){const{x:n,y:i}=this.getScrollPosition();if(e=null==e?n:e,t=null==t?i:t,Object(r.E)(this.platformId))if(this.withScrollValue){const n=this.scrollableContainerRef.nativeElement;n.scrollTo?n.scrollTo(e,t):(n.scrollLeft=e,n.scrollTop=t)}else this.window.scrollTo(e,t)}blockScroll(){if(this.isScrollBlocked)return;this.isScrollBlocked=!0,this.renderer.addClass(this.document.documentElement,this.scrollBlockClass);const e=this.scrollableContainerRef.nativeElement,t=this.layoutContainerRef.nativeElement,n=t.clientWidth;this.scrollableContainerOverflowOldValue=e.style.overflow,e.style.overflow="hidden";const i=t.clientWidth-n;i&&(this.layoutPaddingOldValue={left:t.style.paddingLeft,right:t.style.paddingRight},this.layoutDirectionService.isLtr()?t.style.paddingRight=`${i}px`:t.style.paddingLeft=`${i}px`)}enableScroll(){if(this.isScrollBlocked&&(this.isScrollBlocked=!1,this.renderer.removeClass(this.document.documentElement,this.scrollBlockClass),this.scrollableContainerRef.nativeElement.style.overflow=this.scrollableContainerOverflowOldValue,this.layoutPaddingOldValue)){const e=this.layoutContainerRef.nativeElement;e.style.paddingLeft=this.layoutPaddingOldValue.left,e.style.paddingRight=this.layoutPaddingOldValue.right,this.layoutPaddingOldValue=null}}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(Ri),i.Tb(Li),i.Tb(i.l),i.Tb(i.H),i.Tb(Oi),i.Tb(xi),i.Tb(i.E),i.Tb(Ni),i.Tb(Vi),i.Tb(zi),i.Tb(fo),i.Tb(fr))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-layout"]],viewQuery:function(e,t){if(1&e&&(i.Vc(Et,1,i.U),i.Vc(Mt,1,i.l),i.Vc(It,1,i.l)),2&e){let e;i.Ec(e=i.kc())&&(t.veryTopRef=e.first),i.Ec(e=i.kc())&&(t.scrollableContainerRef
1=e.first),i.Ec(e=i.kc())&&(t.layoutContainerRef=e.first)}},hostVars:6,hostBindings:function(e,t){1&e&&i.jc("scroll",function(e){return t.onScroll(e)},!1,i.Gc)("resize",function(e){return t.onResize(e)},!1,i.Gc),2&e&&i.Lb("window-mode",t.windowModeValue)("with-scroll",t.withScrollValue)("with-subheader",t.withSubheader)},inputs:{center:"center",windowMode:"windowMode",withScroll:"withScroll",restoreScrollTop:"restoreScrollTop"},ngContentSelectors:Lt,decls:12,vars:2,consts:[[1,"scrollable-container",3,"scroll"],["scrollableContainer",""],[1,"layout"],["layoutContainer",""],[1,"layout-container"],[1,"content"],[1,"columns"]],template:function(e,t){1&e&&(i.sc(Rt),i.Zb(0,"div",0,1),i.jc("scroll",function(e){return t.onScroll(e)}),i.Zb(2,"div",2,3),i.rc(4),i.Zb(5,"div",4),i.rc(6,1),i.Zb(7,"div",5),i.rc(8,2),i.Zb(9,"div",6),i.rc(10,3),i.Yb(),i.rc(11,4),i.Yb(),i.Yb(),i.Yb(),i.Yb()),2&e&&(i.Gb(7),i.Lb("center",t.centerValue))},styles:["[_nghost-%COMP%]{-webkit-font-smoothing:antialiased}[dir=ltr] [_nghost-%COMP%]{text-align:left}[dir=rtl] [_nghost-%COMP%]{text-align:right}[_nghost-%COMP%] .layout[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] nb-layout-header{display:block}[_nghost-%COMP%] nb-layout-header nav{align-items:center;justify-content:flex-start;display:flex}[_nghost-%COMP%] nb-layout-header.fixed{position:fixed;top:0;left:0;right:0;z-index:1040}[_nghost-%COMP%] .layout-container[_ngcontent-%COMP%]{display:flex;flex:1;-ms-flex:1 1 auto;flex-direction:row}[dir=ltr] [_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] nb-sidebar.left{order:0}[dir=rtl] [_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] nb-sidebar.left{order:2}[dir=ltr] [_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] nb-sidebar.right{order:2}[dir=rtl] [_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] nb-sidebar.right{order:0}[_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] nb-sidebar.end{order:2}[_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] nb-sidebar .fixed{position:fixed;width:100%;overflow-y:auto;height:100%}[_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{display:flex;flex:1;-ms-flex:1 1 auto;flex-direction:column;min-width:0}[_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] .content.center[_ngcontent-%COMP%]{max-width:100%;position:relative;margin-left:auto;margin-right:auto}[_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%]{display:flex;flex:1;-ms-flex:1 1 auto;flex-direction:row;width:100%}[_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] nb-layout-column{order:1;flex:1 0;min-width:0}[dir=ltr] [_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] nb-layout-column.left{order:0}[dir=rtl] [_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] nb-layout-column.left{order:2}[_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] nb-layout-column.start{order:0}[_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] nb-layout-footer{display:block;margin-top:auto}[_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] nb-layout-footer nav{justify-content:center;display:flex}"]}
1),e})(),mo=(()=>{class e{set left(e){this.leftValue=ds(e),this.startValue=!1}set start(e){this.startValue=ds(e),this.leftValue=!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-layout-column"]],hostVars:4,hostBindings:function(e,t){2&e&&i.Lb("left",t.leftValue)("start",t.startValue)},inputs:{left:"left",start:"start"},ngContentSelectors:tt,decls:1,vars:0,template:function(e,t){1&e&&(i.sc(),i.rc(0))},encapsulation:2}),e})(),bo=(()=>{class e{constructor(e){this.layout=e}set fixed(e){this.fixedValue=ds(e)}set subheader(e){this.subheaderValue=ds(e),this.fixedValue=!1,this.layout.withSubheader=this.subheaderValue}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(go))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-layout-header"]],hostVars:4,hostBindings:function(e,t){2&e&&i.Lb("fixed",t.fixedValue)("subheader",t.subheaderValue)},inputs:{fixed:"fixed",subheader:"subheader"},ngContentSelectors:tt,decls:2,vars:2,template:function(e,t){1&e&&(i.sc(),i.Zb(0,"nav"),i.rc(1),i.Yb()),2&e&&i.Lb("fixed",t.fixedValue)},encapsulation:2}),e})(),yo=(()=>{class e{set fixed(e){this.fixedValue=ds(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-layout-footer"]],hostVars:2,hostBindings:function(e,t){2&e&&i.Lb("fixed",t.fixedValue)},inputs:{fixed:"fixed"},ngContentSelectors:tt,decls:2,vars:2,template:function(e,t){1&e&&(i.sc(),i.Zb(0,"nav"),i.rc(1),i.Yb()),2&e&&i.Lb("fixed",t.fixedValue)},encapsulation:2}),e})(),vo=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({providers:[fo],imports:[[Fi]]}),e})();const _o=new o.a,wo=new s.a(1),ko=new s.a(1),Co=new s.a(1),So=new s.a(1),To=new s.a(1),Po=new s.a(1),Oo=new s.a(1);class xo{constructor(){this.pathMatch="full"}static getParents(e){const t=[];let n=e.parent;for(;n;)t.unshift(n),n=n.parent;return t}static isParent(e,t){return!!t.parent&&(t.parent===e||this.isParent(e,t.parent))}}let Ao=(()=>{class e{addItems(e,t){wo.next({tag:t,items:e})}collapseAll(e){Oo.next({tag:e})}navigateHome(e){ko.next({tag:e})}getSelectedItem(e){const t=new d.a(null);return Co.next({tag:e,listener:t}),t.asObservable()}onItemClick(){return _o.pipe(Object(_.a)())}onItemSelect(){return So.pipe(Object(_.a)())}onItemHover(){return To.pipe(Object(_.a)())}onSubmenuToggle(){return Po.pipe(Object(_.a)())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),Eo=(()=>{class e{constructor(e){this.location=e}prepareItems(e){const t=new xo;e.forEach(e=>{this.applyDefaults(e,t),this.setParent(e)})}selectFromUrl(e,t,n=!1){const i=this.findItemByUrl(e);i&&this.selectItem(i,e,n,t)}selectItem(e,t,n=!1,i){const r=this.resetSelection(t),s=n?this.collapseItems(t):[];for(const o of xo.getParents(e)){o.selected=!0,r.includes(o)||this.itemSelect(o,i);const e=!o.expanded;o.expanded=!0;const t=s.indexOf(o);-1===t&&e?this.submenuToggle(o,i):s.splice(t,1)}e.selected=!0,r.includes(e)||this.itemSelect(e,i);for(const o of s)this.submenuToggle(o,i)}collapseAll(e,t,n){const i=this.collapseItems(e,n);for(const r of i)this.submenuToggle(r,t)}onAddItem(){return wo.pipe(Object(_.a)())}onNavigateHome(){return ko.pipe(Object(_.a)())}onCollapseAll(){return Oo.pipe(Object(_.a)())}onGetSelectedItem(){return Co.pipe(Object(_.a)())}itemHover(e,t){To.next({tag:t,item:e})}submenuToggle(e,t){Po.next({tag:t,item:e})}itemSelect(e,t){So.next({tag:t,item:e})}itemClick(e,t){_o.next({tag:t,item:e})}resetSelection(e){const t=[];for(const n of e)n.selected&&t.push(n),n.selected=!1,n.children&&t.push(...this.resetSelection(n.children));return t}collapseItems(e,t){const n=[];for(const i of e)t&&(i===t||xo.isParent(i,t))||(i.expanded&&n.push(i),i.expanded=!1,i.children&&n.push(...this.collapseItems(i.children)));return n}applyDefaults(e,t){const n=Object.assign({},e);Object.assign(e,t,n),e.children&&e.children.forEach(e=>{this.applyDefaults(e,t)})}setParent(e){e.children&&e.children.forEach(t=>{t.parent=e,this.setParent(t)})}findItemByUrl(e){let t;return e.some(e=>(e.children&&(t=this.findItemByUrl(e.children)),!t&&this.isSelectedInUrl(e)&&(t=e),t)),t}isSelectedInUrl(e){const t="full"===e.pathMatch,n=e.link,i=t?function(e,t){return t===ho(e)}(this.location.path(),n):function(e,t){const n=ho(e);return n.startsWith(t)&&-1!==n.slice(t.length).charAt(0).search(/\/|^$/)}(this.location.path(),n);return i&&null!=e.fragment?t?(r=this.location.path(!0),s=e.fragment,po(r)===s):function(e,t){return po(e).includes(t)}(this.location.path(!0),e.fragment):i;var r,s}}return e.\u0275fac=function(t){return new(t||e)(i.gc(r.j))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();var Mo=function(e){return e.Expanded="expanded",e.Collapsed="collapsed",e}({});let Io=(()=>{class e{constructor(e,t){this.menuService=e,this.directionService=t,this.menuItem=null,this.hoverItem=new i.o,this.toggleSubMenu=new i.o,this.selectItem=new i.o,this.itemClick=new i.o,this.destroy$=new o.a}ngDoCheck(){this.toggleState=this.menuItem.expanded?Mo.Expanded:Mo.Collapsed}ngAfterViewInit(){this.menuService.onSubmenuToggle().pipe(Object(y.a)(({item:e})=>e===this.menuItem),Object(g.a)(({item:e})=>e.expanded),Object(w.a)(this.destroy$)).subscribe(e=>this.toggleState=e?Mo.Expanded:Mo.Collapsed)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onToggleSubMenu(e){this.toggleSubMenu.emit(e)}
1onHoverItem(e){this.hoverItem.emit(e)}onSelectItem(e){this.selectItem.emit(e)}onItemClick(e){this.itemClick.emit(e)}getExpandStateIcon(){return this.menuItem.expanded?"chevron-down-outline":this.directionService.isLtr()?"chevron-left-outline":"chevron-right-outline"}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(Ao),i.Tb(Ni))},e.\u0275cmp=i.Nb({type:e,selectors:[["","nbMenuItem",""]],inputs:{menuItem:"menuItem",badge:"badge"},outputs:{hoverItem:"hoverItem",toggleSubMenu:"toggleSubMenu",selectItem:"selectItem",itemClick:"itemClick"},attrs:Dt,decls:8,vars:6,consts:[[4,"ngIf"],[3,"routerLink","queryParams","fragment","queryParamsHandling","preserveFragment","skipLocationChange","active","mouseenter","click",4,"ngIf"],[3,"active","mouseenter","click",4,"ngIf"],["href","#",3,"active","click","mouseenter",4,"ngIf"],["class","menu-items",3,"collapsed","expanded",4,"ngIf"],["badgeTemplate",""],["class","menu-icon",3,"config",4,"ngIf"],[1,"menu-icon",3,"config"],[3,"routerLink","queryParams","fragment","queryParamsHandling","preserveFragment","skipLocationChange","mouseenter","click"],[1,"menu-title"],[3,"ngTemplateOutlet",4,"ngIf"],[3,"ngTemplateOutlet"],[3,"mouseenter","click"],["href","#",3,"click","mouseenter"],["pack","nebular-essentials",1,"expand-state",3,"icon"],[1,"menu-items"],[4,"ngFor","ngForOf"],["nbMenuItem","","class","menu-item",3,"menuItem","badge","menu-group","hoverItem","toggleSubMenu","selectItem","itemClick",4,"ngIf"],["nbMenuItem","",1,"menu-item",3,"menuItem","badge","hoverItem","toggleSubMenu","selectItem","itemClick"],[3,"text","dotMode","status"]],template:function(e,t){1&e&&(i.Oc(0,Nt,3,2,"span",0),i.Oc(1,Ft,5,13,"a",1),i.Oc(2,Ut,5,8,"a",2),i.Oc(3,Gt,5,7,"a",2),i.Oc(4,Zt,6,8,"a",3),i.Oc(5,Kt,2,6,"ul",4),i.Oc(6,Jt,1,3,"ng-template",null,5,i.Pc)),2&e&&(i.tc("ngIf",t.menuItem.group),i.Gb(1),i.tc("ngIf",t.menuItem.link&&!t.menuItem.url&&!t.menuItem.children&&!t.menuItem.group),i.Gb(1),i.tc("ngIf",t.menuItem.url&&!t.menuItem.children&&!t.menuItem.link&&!t.menuItem.group),i.Gb(1),i.tc("ngIf",!(t.menuItem.children||t.menuItem.link||t.menuItem.url||t.menuItem.group)),i.Gb(1),i.tc("ngIf",t.menuItem.children),i.Gb(1),i.tc("ngIf",t.menuItem.children))},directives:function(){return[r.n,ns,R.f,r.s,r.m,e,Lo]},encapsulation:2,data:{animation:[Object(Xe.k)("toggle",[Object(Xe.h)(Mo.Collapsed,Object(Xe.i)({height:"0",margin:"0"})),Object(Xe.h)(Mo.Expanded,Object(Xe.i)({height:"*"})),Object(Xe.j)(`${Mo.Collapsed} <=> ${Mo.Expanded}`,Object(Xe.e)(300))])]}}),e})(),Ro=(()=>{class e{constructor(e,t,n,i){this.window=e,this.platformId=t,this.menuInternalService=n,this.router=i,this._autoCollapse=!1,this.destroy$=new o.a}get autoCollapse(){return this._autoCollapse}set autoCollapse(e){this._autoCollapse=ds(e)}ngOnInit(){this.menuInternalService.prepareItems(this.items),this.menuInternalService.onAddItem().pipe(Object(y.a)(e=>this.compareTag(e.tag)),Object(w.a)(this.destroy$)).subscribe(e=>this.onAddItem(e)),this.menuInternalService.onNavigateHome().pipe(Object(y.a)(e=>this.compareTag(e.tag)),Object(w.a)(this.destroy$)).subscribe(()=>this.navigateHome()),this.menuInternalService.onGetSelectedItem().pipe(Object(y.a)(e=>this.compareTag(e.tag)),Object(w.a)(this.destroy$)).subscribe(e=>{e.listener.next({tag:this.tag,item:this.getSelectedItem(this.items)})}),this.menuInternalService.onCollapseAll().pipe(Object(y.a)(e=>this.compareTag(e.tag)),Object(w.a)(this.destroy$)).subscribe(()=>this.collapseAll()),this.router.events.pipe(Object(y.a)(e=>e instanceof R.b),Object(w.a)(this.destroy$)).subscribe(()=>{this.menuInternalService.selectFromUrl(this.items,this.tag,this.autoCollapse)})}ngAfterViewInit(){setTimeout(()=>this.menuInternalService.selectFromUrl(this.items,this.tag,this.autoCollapse))}onAddItem(e){this.items.push(...e.items),this.menuInternalService.prepareItems(this.items),this.menuInternalService.selectFromUrl(this.items,this.tag,this.autoCollapse)}onHoverItem(e){this.menuInternalService.itemHover(e,this.tag)}onToggleSubMenu(e){this.autoCollapse&&this.menuInternalService.collapseAll(this.items,this.tag,e),e.expanded=!e.expanded,this.menuInternalService.submenuToggle(e,this.tag)}onSelectItem(e){this.menuInternalService.selectItem(e,this.items,this.autoCollapse,this.tag)}onItemClick(e){this.menuInternalService.itemClick(e,this.tag)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}navigateHome(){const e=this.getHomeItem(this.items);e&&(e.link&&this.router.navigate([e.link],{queryParams:e.queryParams,queryParamsHandling:e.queryParamsHandling,fragment:e.fragment,preserveFragment:e.preserveFragment}),e.url&&Object(r.E)(this.platformId)&&(this.window.location.href=e.url))}collapseAll(){this.menuInternalService.collapseAll(this.items,this.tag)}getHomeItem(e){for(const t of e){if(t.home)return t;const e=t.children&&this.getHomeItem(t.children);if(e)return e}}compareTag(e){return!e||e===this.tag}getSelectedItem(e){let t=null;
1return e.forEach(e=>{e.selected&&(t=e),e.selected&&e.children&&e.children.length>0&&(t=this.getSelectedItem(e.children))}),t}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(Oi),i.Tb(i.E),i.Tb(Eo),i.Tb(R.c))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-menu"]],inputs:{autoCollapse:"autoCollapse",tag:"tag",items:"items"},decls:2,vars:1,consts:[[1,"menu-items"],[4,"ngFor","ngForOf"],["nbMenuItem","","class","menu-item",3,"menuItem","badge","menu-group","hoverItem","toggleSubMenu","selectItem","itemClick",4,"ngIf"],["nbMenuItem","",1,"menu-item",3,"menuItem","badge","hoverItem","toggleSubMenu","selectItem","itemClick"]],template:function(e,t){1&e&&(i.Zb(0,"ul",0),i.Oc(1,tn,2,1,"ng-container",1),i.Yb()),2&e&&(i.Gb(1),i.tc("ngForOf",t.items))},directives:[r.m,r.n,Io],styles:["[_nghost-%COMP%] {display:block}[_nghost-%COMP%] .menu-items, [_nghost-%COMP%] .menu-item>.menu-items{list-style-type:none;overflow:hidden}[_nghost-%COMP%] .menu-item a{display:flex;text-decoration:none;align-items:center}[_nghost-%COMP%] .menu-item a .menu-title{flex:1 0 auto}[dir=rtl] [_nghost-%COMP%] .menu-item a .menu-title{text-align:right}[_nghost-%COMP%] .menu-item nb-badge{position:static}[_nghost-%COMP%] .menu-group span{display:flex}"]}
1),e})(),Lo=(()=>{class e{constructor(e){this.statusService=e,this.text="",this._defaultPosition="top right",this._position=this._defaultPosition,this.status="basic"}get position(){return this._position}set position(e){this._position=e||this._defaultPosition}get dotMode(){return this._dotMode}set dotMode(e){this._dotMode=ds(e)}get additionalClasses(){return this.statusService.isCustomStatus(this.status)?[this.statusService.getStatusClass(this.status)]:[]}get primary(){return"primary"===this.status}get success(){return"success"===this.status}get info(){return"info"===this.status}get warning(){return"warning"===this.status}get danger(){return"danger"===this.status}get basic(){return"basic"===this.status}get control(){return"control"===this.status}get top(){return this.position.includes("top")}get right(){return this.position.includes("right")}get bottom(){return this.position.includes("bottom")}get left(){return this.position.includes("left")}get start(){return this.position.includes("start")}get end(){return this.position.includes("end")}get center(){return this.position.includes("center")}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(Yr))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-badge"]],hostVars:32,hostBindings:function(e,t){2&e&&(i.Ib(t.additionalClasses),i.Lb("dot-mode",t.dotMode)("status-primary",t.primary)("status-success",t.success)("status-info",t.info)("status-warning",t.warning)("status-danger",t.danger)("status-basic",t.basic)("status-control",t.control)("position-top",t.top)("position-right",t.right)("position-bottom",t.bottom)("position-left",t.left)("position-start",t.start)("position-end",t.end)("position-center",t.center))},inputs:{text:"text",status:"status",position:"position",dotMode:"dotMode"},decls:1,vars:1,template:function(e,t){1&e&&i.Qc(0),2&e&&i.Rc(t.dotMode?"":t.text)},styles:["[_nghost-%COMP%]{position:absolute;text-align:center;white-space:nowrap;vertical-align:baseline}.position-top[_nghost-%COMP%]{top:0}.position-right[_nghost-%COMP%]{right:0}.position-bottom[_nghost-%COMP%]{bottom:0}.position-left[_nghost-%COMP%]{left:0}.position-center[_nghost-%COMP%]{top:50%;transform:translateY(-50%)}[dir=ltr] .position-start[_nghost-%COMP%]{left:0}[dir=rtl] .position-start[_nghost-%COMP%]{right:0}[dir=ltr] .position-end[_nghost-%COMP%]{right:0}[dir=rtl] .position-end[_nghost-%COMP%]{left:0}"]}),e})(),Do=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({}),e})();const jo=[Ao,Eo];let No=(()=>{class e{static forRoot(){return{ngModule:e,providers:[...jo]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[Fi,is,Do]]}),e})(),Vo=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[Fi,is]]}),e})();const zo=new o.a,Fo=new o.a;let Bo=(()=>{class e{constructor(){this.toggle$=new o.a,this.expand$=new o.a,this.collapse$=new o.a,this.compact$=new o.a}onToggle(){return this.toggle$.pipe(Object(_.a)())}onExpand(){return this.expand$.pipe(Object(_.a)())}onCollapse(){return this.collapse$.pipe(Object(_.a)())}onCompact(){return this.compact$.pipe(Object(_.a)())}toggle(e=!1,t){this.toggle$.next({compact:e,tag:t})}expand(e){this.expand$.next({tag:e})}collapse(e){this.collapse$.next({tag:e})}compact(e){this.compact$.next({tag:e})}getSidebarState(e){const t=new o.a;return zo.next({observer:t,tag:e}),t.pipe(Object(A.a)())}getSidebarResponsiveState(e){const t=new o.a;return Fo.next({observer:t,tag:e}),t.pipe(Object(A.a)())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),qo=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-sidebar-header"]],ngContentSelectors:tt,decls:1,vars:0,template:function(e,t){1&e&&(i.sc(),i.rc(0))},encapsulation:2}),e})(),Uo=(()=>{class e{constructor(e,t,n,r){this.sidebarService=e,this.themeService=t,this.element=n,this.cd=r,this.responsiveState="pc",this.destroy$=new o.a,this.containerFixedValue=!0,this.fixedValue=!1,this.rightValue=!1,this.leftValue=!0,this.startValue=!1,this.endValue=!1,this._responsive=!1,this.compactedBreakpoints=["xs","is","
1sm","md","lg"],this.collapsedBreakpoints=["xs","is"],this.stateChange=new i.o,this.responsiveStateChange=new i.o}get expanded(){return"expanded"===this.state}get collapsed(){return"collapsed"===this.state}get compacted(){return"compacted"===this.state}set right(e){this.rightValue=ds(e),this.leftValue=!this.rightValue,this.startValue=!1,this.endValue=!1}set left(e){this.leftValue=ds(e),this.rightValue=!this.leftValue,this.startValue=!1,this.endValue=!1}set start(e){this.startValue=ds(e),this.endValue=!this.startValue,this.leftValue=!1,this.rightValue=!1}set end(e){this.endValue=ds(e),this.startValue=!this.endValue,this.leftValue=!1,this.rightValue=!1}set fixed(e){this.fixedValue=ds(e)}set containerFixed(e){this.containerFixedValue=ds(e)}get state(){return this._state}set state(e){this._state=e}get responsive(){return this._responsive}set responsive(e){this._responsive=ds(e)}ngOnInit(){this.sidebarService.onToggle().pipe(Object(y.a)(({tag:e})=>!this.tag||this.tag===e),Object(w.a)(this.destroy$)).subscribe(({compact:e})=>this.toggle(e)),this.sidebarService.onExpand().pipe(Object(y.a)(({tag:e})=>!this.tag||this.tag===e),Object(w.a)(this.destroy$)).subscribe(()=>this.expand()),this.sidebarService.onCollapse().pipe(Object(y.a)(({tag:e})=>!this.tag||this.tag===e),Object(w.a)(this.destroy$)).subscribe(()=>this.collapse()),this.sidebarService.onCompact().pipe(Object(y.a)(({tag:e})=>!this.tag||this.tag===e),Object(w.a)(this.destroy$)).subscribe(()=>this.compact()),zo.pipe(Object(y.a)(({tag:e})=>!this.tag||this.tag===e),Object(w.a)(this.destroy$)).subscribe(({observer:e})=>e.next(this.state)),Fo.pipe(Object(y.a)(({tag:e})=>!this.tag||this.tag===e),Object(w.a)(this.destroy$)).subscribe(({observer:e})=>e.next(this.responsiveState)),this.subscribeToMediaQueryChange()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onClick(e){const t=this.element.nativeElement.querySelector("nb-menu");if(t&&t.contains(e.target)){const t=this.getMenuLink(e.target);t&&t.nextElementSibling&&t.nextElementSibling.classList.contains("menu-items")&&this.sidebarService.expand(this.tag)}}collapse(){this.state="collapsed",this.stateChange.emit(this.state),this.cd.markForCheck()}expand(){this.state="expanded",this.stateChange.emit(this.state),this.cd.markForCheck()}compact(){this.state="compacted",this.stateChange.emit(this.state),this.cd.markForCheck()}toggle(e=!1){this.responsive&&"mobile"===this.responsiveState&&(e=!1),this.state="compacted"===this.state||"collapsed"===this.state?"expanded":e?"compacted":"collapsed",this.stateChange.emit(this.state),this.cd.markForCheck()}subscribeToMediaQueryChange(){this.themeService.onMediaQueryChange().pipe(Object(y.a)(()=>this.responsive),Object(w.a)(this.destroy$)).subscribe(([e,t])=>{const n=this.collapsedBreakpoints.includes(t.name),i=this.compactedBreakpoints.includes(t.name);let r;i&&(this.fixed=this.containerFixedValue,this.compact(),r="tablet"),n&&(this.fixed=!0,this.collapse(),r="mobile"),!n&&!i&&e.width<t.width&&(this.expand(),this.fixed=!1,r="pc"),r&&r!==this.responsiveState&&(this.responsiveState=r,this.responsiveStateChange.emit(this.responsiveState),this.cd.markForCheck())})}getMenuLink(e){if(e&&"nb-menu"!==e.tagName.toLowerCase())return"a"===e.tagName.toLowerCase()?e:this.getMenuLink(e.parentElement)}toggleResponsive(e){this.responsive=e}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(Bo),i.Tb(Ri),i.Tb(i.l),i.Tb(i.h))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-sidebar"]],hostVars:16,hostBindings:function(e,t){2&e&&i.Lb("fixed",t.fixedValue)("right",t.rightValue)("left",t.leftValue)("start",t.startValue)("end",t.endValue)("expanded",t.expanded)("collapsed",t.collapsed)("compacted",t.compacted)},inputs:{compactedBreakpoints:"compactedBreakpoints",collapsedBreakpoints:"collapsedBreakpoints",right:"right",left:"left",start:"start",end:"end",fixed:"fixed",containerFixed:"containerFixed",state:"state",responsive:"responsive",tag:"tag"},outputs:{stateChange:"stateChange",responsiveStateChange:"responsiveStateChange"},ngContentSelectors:rn,decls:5,vars:2,consts:[[1,"main-container"],[1,"scrollable",3,"click"]],template:function(e,t){1&e&&(i.sc(nn),i.Zb(0,"div",0),i.rc(1),i.Zb(2,"div",1),i.jc("click",function(e){return t.onClick(e)}),i.rc(3,1),i.Yb(),i.rc(4,2),i.Yb()),2&e&&i.Lb("main-container-fixed",t.containerFixedValue)},styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;overflow:hidden;z-index:auto;order:0}[_nghost-%COMP%] .scrollable[_ngcontent-%COMP%]{overflow-y:auto;overflow-x:hidden;flex:1}[_nghost-%COMP%] .main-container[_ngcontent-%COMP%]{transform:translate3d(0, 0, 0);display:flex;flex-direction:column}[_nghost-%COMP%] .main-container-fixed[_ngcontent-%COMP%]{position:fixed}.right[_nghost-%COMP%]{margin-right:0;margin-left:auto}[dir=ltr] .right[_nghost-%COMP%]{order:4}[dir=rtl] .right[_nghost-%COMP%]{order:0}.end[_nghost-%COMP%]{order:4}[dir=ltr] .end[_nghost-%COMP%]{margin-right:0;margin-left:auto}[dir=rtl] .end[_nghost-%COMP%]{margin-left:0;margin-right:auto}.fixed[_nghost-%COMP%]{position:fixed;height:100%;z-index:999;top:0;bottom:0;left:0}.fixed.right[_nghost-%COMP%]{right:0}[dir=ltr] .fixed.start[_nghost-%COMP%]{left:0}[dir=rtl] .fixed.start[_nghost-%COMP%]{right:0}[dir=ltr] .fixed.end[_nghost-%COMP%]{right:0}[dir=rtl] .fixed.end[_nghost-%COMP%]{left:0}[_nghost-%COMP%] nb-sidebar-footer{margin-top:auto;display:block}[_nghost-%COMP%] nb-sidebar-header{display:block}"],changeDetection:0}),e.STATE_EXPANDED="expanded",e.STATE_COLLAPSED="collapsed",e.STATE_COMPACTED="compacted",e.RESPONSIVE_STATE_MOBILE="mobile",e.RESPONSIVE_STATE_TABLET="tablet",e.RESPONSIVE_STATE_PC="pc",e})();const Ho=[Bo];let Wo=(()=>{class e{static forRoot(){return{ngModule:e,providers:[...Ho]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[Fi]]}),e})(),Go=(()=>{class e{constructor(){this.activeValue=!1,this.responsiveValue=!1,this.disabledValue=!1,this.badgeStatus="basic",this.init=!1}get badgeDot(){return this._badgeDot}set badgeDot(e){this._badgeDot=ds(e)}get disabled(){return this.disabledValue}set disabled(e){this.disabledValue=ds(e)}set responsive(e){this.responsiveValue=ds(e)}get responsive(){return this.responsiveValue}get active(){return this.activeValue}set active(e){this.activeValue=ds(e),this.activeValue&&(this.init=!0)}set lazyLoad(e){this.init=ds(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-tab"]],hostVars:4,hostBindings:function(e,t){2&e&&i.Lb("content-active",t.activeValue)("disabled",t.disabled)},inputs:{badgeStatus:"badgeStatus",badgeDot:"badgeDot",disabled:"disabled",responsive:"responsive",active:"active",lazyLoad:"lazyLoad",tabTitle:"tabTitle",tabId:"tabId",tabIcon:"tabIcon",route:"route",badgeText:"badgeText",badgePosition:"badgePosition"},ngContentSelectors:tt,decls:1,vars:1,consts:[[4,"ngIf"]],template:function(e,t){1&e&&(i.sc(),i.Oc(0,sn,2,0,"ng-container",0)),2&e&&i.tc("ngIf",t.init)},directives:[r.n],encapsulation:2}),e})(),Yo=(()=>{class e{constructor(e,t){this.route=e,this.changeDetectorRef=t,this.fullWidthValue=!1,this.changeTab=new i.o,this.destroy$=new o.a}set fullWidth(e){this.fullWidthValue=ds(e)}ngAfterContentInit(){this.route.params.pipe(Object(g.a)(e=>this.tabs.find(t=>this.routeParam?t.route===e[this.routeParam]:t.active)),Object(k.a)(0),Object(g.a)(e=>e||this.tabs.first),Object(y.a)(e=>!!e),Object(w.a)(this.destroy$)).subscribe(e=>{this.selectTab(e),this.changeDetectorRef.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}
1selectTab(e){e.disabled||(this.tabs.forEach(t=>t.active=t===e),this.changeTab.emit(e))}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(R.a),i.Tb(i.h))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-tabset"]],contentQueries:function(e,t,n){if(1&e&&i.Mb(n,Go,0),2&e){let e;i.Ec(e=i.kc())&&(t.tabs=e)}},hostVars:2,hostBindings:function(e,t){2&e&&i.Lb("full-width",t.fullWidthValue)},inputs:{fullWidth:"fullWidth",routeParam:"routeParam"},outputs:{changeTab:"changeTab"},ngContentSelectors:dn,decls:3,vars:1,consts:[[1,"tabset"],["class","tab",3,"responsive","active","disabled","click","keyup.space","keyup.enter",4,"ngFor","ngForOf"],[1,"tab",3,"click","keyup.space","keyup.enter"],["href","","tabindex","-1",1,"tab-link",3,"click"],[3,"config",4,"ngIf"],["class","tab-text",4,"ngIf"],[3,"text","dotMode","status","position",4,"ngIf"],[3,"config"],[1,"tab-text"],[3,"text","dotMode","status","position"]],template:function(e,t){1&e&&(i.sc(un),i.Zb(0,"ul",0),i.Oc(1,ln,5,10,"li",1),i.Yb(),i.rc(2)),2&e&&(i.Gb(1),i.tc("ngForOf",t.tabs))},directives:[r.m,r.n,ns,Lo],styles:["[_nghost-%COMP%]{display:block}.full-width[_nghost-%COMP%] .tabset[_ngcontent-%COMP%]{justify-content:space-around}[_nghost-%COMP%] nb-tab{flex:1;-ms-flex:1 1 auto;overflow:auto;display:none}[_nghost-%COMP%] nb-tab.content-active{display:block}[_nghost-%COMP%] .tabset[_ngcontent-%COMP%]{display:flex;flex-direction:row;list-style-type:none;margin:0;padding:0}[_nghost-%COMP%] .tabset[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%]{margin-bottom:-1px;text-align:center;position:relative}[_nghost-%COMP%] .tabset[_ngcontent-%COMP%] .tab.active[_ngcontent-%COMP%] a[_ngcontent-%COMP%]::before{display:block}[_nghost-%COMP%] .tabset[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;position:relative;text-decoration:none}[_nghost-%COMP%] .tabset[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%] a[_ngcontent-%COMP%]::before{position:absolute;content:'';width:100%;border-radius:3px;bottom:-2px;left:0}[_nghost-%COMP%] .tabset[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%] a[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%]{vertical-align:middle}[dir=ltr] [_nghost-%COMP%] .tabset[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%] a[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%] + span[_ngcontent-%COMP%]{margin-left:.5rem}[dir=rtl] [_nghost-%COMP%] .tabset[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%] a[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%] + span[_ngcontent-%COMP%]{margin-right:.5rem}"]}),e})(),$o=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[Fi,Do,is]]}),e})(),Zo=(()=>{class e{constructor(e){this.domSanitizer=e,this.name="Anonymous",this.size="medium",this.shape="round",this._showName=!0,this._showTitle=!0,this._showInitials=!0,this.badgeStatus="basic"}set picture(e){this.imageBackgroundStyle=e?this.domSanitizer.bypassSecurityTrustStyle(`url(${e})`):null}get showName(){return this._showName}set showName(e){this._showName=ds(e)}get showTitle(){return this._showTitle}set showTitle(e){this._showTitle=ds(e)}get showInitials(){return this._showInitials}set showInitials(e){this._showInitials=ds(e)}get onlyPicture(){return!this.showName&&!this.showTitle}set onlyPicture(e){this.showName=this.showTitle=!ds(e)}get tiny(){return"tiny"===this.size}
1get small(){return"small"===this.size}get medium(){return"medium"===this.size}get large(){return"large"===this.size}get giant(){return"giant"===this.size}get rectangle(){return"rectangle"===this.shape}get semiRound(){return"semi-round"===this.shape}get round(){return"round"===this.shape}getInitials(){return this.name?this.name.split(" ").map(e=>e.charAt(0)).splice(0,2).join("").toUpperCase():""}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(Ke.b))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-user"]],hostVars:16,hostBindings:function(e,t){2&e&&i.Lb("size-tiny",t.tiny)("size-small",t.small)("size-medium",t.medium)("size-large",t.large)("size-giant",t.giant)("shape-rectangle",t.rectangle)("shape-semi-round",t.semiRound)("shape-round",t.round)},inputs:{name:"name",size:"size",shape:"shape",badgeStatus:"badgeStatus",picture:"picture",showName:"showName",showTitle:"showTitle",showInitials:"showInitials",onlyPicture:"onlyPicture",title:"title",color:"color",badgeText:"badgeText",badgePosition:"badgePosition"},decls:6,vars:4,consts:[[1,"user-container"],["class","user-picture image",3,"background-image",4,"ngIf"],["class","user-picture initials",3,"background-color",4,"ngIf"],[1,"info-container"],["class","user-name",4,"ngIf"],["class","user-title",4,"ngIf"],[1,"user-picture","image"],[3,"text","status","position",4,"ngIf"],[3,"text","status","position"],[1,"user-picture","initials"],[4,"ngIf"],[1,"user-name"],[1,"user-title"]],template:function(e,t){1&e&&(i.Zb(0,"div",0),i.Oc(1,pn,2,3,"div",1),i.Oc(2,mn,3,4,"div",2),i.Zb(3,"div",3),i.Oc(4,bn,2,1,"div",4),i.Oc(5,yn,2,1,"div",5),i.Yb(),i.Yb()),2&e&&(i.Gb(1),i.tc("ngIf",t.imageBackgroundStyle),i.Gb(1),i.tc("ngIf",!t.imageBackgroundStyle),i.Gb(2),i.tc("ngIf",t.showName&&t.name),i.Gb(1),i.tc("ngIf",t.showTitle&&t.title))},directives:[r.n,Lo],styles:["[_nghost-%COMP%]{display:flex}[_nghost-%COMP%] .user-container[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center}[_nghost-%COMP%] .user-picture[_ngcontent-%COMP%]{position:relative;flex-shrink:0}[_nghost-%COMP%] .user-picture.image[_ngcontent-%COMP%]{background-size:cover;background-repeat:no-repeat}[_nghost-%COMP%] .user-picture.initials[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}[dir=rtl] [_nghost-%COMP%] .user-name[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .user-title[_ngcontent-%COMP%]{text-align:right}[dir=ltr] [_nghost-%COMP%] .info-container[_ngcontent-%COMP%]{margin-left:.5rem}[dir=rtl] [_nghost-%COMP%] .info-container[_ngcontent-%COMP%]{margin-right:.5rem}"]}),e})(),Qo=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[Fi,Do]]}),e})(),Xo=(()=>{class e{constructor(){this.title="",this._disabled=!1,this.badgeStatus="basic"}get disabled(){return this._disabled}set disabled(e){this._disabled=ds(e)}get badgeDot(){return this._badgeDot}set badgeDot(e){this._badgeDot=ds(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-action"]],hostVars:2,hostBindings:function(e,t){2&e&&i.Lb("disabled",t.disabled)},inputs:{title:"title",badgeStatus:"badgeStatus",disabled:"disabled",badgeDot:"badgeDot",link:"link",href:"href",icon:"icon",badgeText:"badgeText",badgePosition:"badgePosition"},ngContentSelectors:tt,decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["projectedContent",""],["badgeTemplate",""],["class","icon-container",3,"routerLink","title",4,"ngIf"],["class","icon-container",3,"href","title",4,"ngIf"],["class","icon-container","href","#",3,"title","click",4,"ngIf"],[1,"icon-container",3,"routerLink","title"],[3,"config"],[3,"ngTemplateOutlet"],[1,"icon-container",3,"href","title"],["href","#",1,"icon-container",3,"title","click"],[3,"text","dotMode","status","position",4,"ngIf"],[3,"text","dotMode","status","position"]],template:function(e,t){if(1&e&&(i.sc(),i.Oc(0,kn,4,3,"ng-container",0),i.Oc(1,Cn,2,1,"ng-template",null,1,i.Pc),i.Oc(3,Tn,1,1,"ng-template",null,2,i.Pc)),2&e){const e=i.Fc(2);i.tc("ngIf",t.icon)("ngIfElse",e)}},directives:[r.n,R.f,ns,r.s,Lo],styles:["[_nghost-%COMP%]{background:transparent;display:flex;align-items:center;position:relative}.disabled[_nghost-%COMP%]{cursor:not-allowed}.disabled[_nghost-%COMP%] a[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] nb-icon[_ngcontent-%COMP%]{cursor:not-allowed}nb-actions.full-width[_nghost-%COMP%], nb-actions.full-width [_nghost-%COMP%]{justify-content:center;width:100%}a.icon-container[_ngcontent-%COMP%]{position:relative}a.icon-container[_ngcontent-%COMP%]:hover, a.icon-container[_ngcontent-%COMP%]:focus{text-decoration:none}nb-icon[_ngcontent-%COMP%]:hover{cursor:pointer}"]}),e})(),Ko=(()=>{class e{constructor(){this._size="small",this._fullWidth=!1}get size(){return this._size}set size(e){this._size=e}get fullWidth(){return this._fullWidth}set fullWidth(e){this._fullWidth=ds(e)}get tiny(){return"tiny"===this.size}
1get small(){return"small"===this.size}get medium(){return"medium"===this.size}get large(){return"large"===this.size}get giant(){return"giant"===this.size}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-actions"]],hostVars:12,hostBindings:function(e,t){2&e&&i.Lb("full-width",t.fullWidth)("size-tiny",t.tiny)("size-small",t.small)("size-medium",t.medium)("size-large",t.large)("size-giant",t.giant)},inputs:{size:"size",fullWidth:"fullWidth"},ngContentSelectors:On,decls:1,vars:0,template:function(e,t){1&e&&(i.sc(Pn),i.rc(0))},styles:["[_nghost-%COMP%]{display:flex;align-items:center}"]}),e})(),Jo=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[Fi,Do,is]]}),e})(),ea=(()=>{class e{constructor(){this.searchSubmittings$=new o.a,this.searchActivations$=new o.a,this.searchDeactivations$=new o.a,this.searchInput$=new o.a}activateSearch(e,t){this.searchActivations$.next({searchType:e,tag:t})}deactivateSearch(e,t){this.searchDeactivations$.next({searchType:e,tag:t})}submitSearch(e,t){this.searchSubmittings$.next({term:e,tag:t})}searchInput(e,t){this.searchInput$.next({term:e,tag:t})}onSearchActivate(){return this.searchActivations$.pipe(Object(_.a)())}onSearchDeactivate(){return this.searchDeactivations$.pipe(Object(_.a)())}onSearchSubmit(){return this.searchSubmittings$.pipe(Object(_.a)())}onSearchInput(){return this.searchInput$.pipe(Object(_.a)())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),ta=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({providers:[ea],imports:[[Fi,Gr,is,gs]]}),e})(),na=(()=>{class e{constructor(e,t,n,r,s){this.changeDetector=e,this.renderer=t,this.hostElement=n,this.zone=r,this.statusService=s,this.onChange=()=>{},this.onTouched=()=>{},this._checked=!1,this._disabled=!1,this.status="basic",this._indeterminate=!1,this.checkedChange=new i.o}get checked(){return this._checked}set checked(e){this._checked=ds(e)}get disabled(){return this._disabled}set disabled(e){this._disabled=ds(e)}get indeterminate(){return this._indeterminate}set indeterminate(e){this._indeterminate=ds(e)}get primary(){return"primary"===this.status}get success(){return"success"===this.status}get warning(){return"warning"===this.status}get danger(){return"danger"===this.status}get info(){return"info"===this.status}get basic(){return"basic"===this.status}get control(){return"control"===this.status}get additionalClasses(){return this.statusService.isCustomStatus(this.status)?[this.statusService.getStatusClass(this.status)]:[]}ngAfterViewInit(){this.zone.runOutsideAngular(()=>setTimeout(()=>{this.renderer.addClass(this.hostElement.nativeElement,"nb-transition")}))}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}writeValue(e){this._checked=e,this.changeDetector.markForCheck()}setDisabledState(e){this.disabled=ds(e),this.changeDetector.markForCheck()}setTouched(){this.onTouched()}updateValueAndIndeterminate(e){const t=e.target;this.checked=t.checked,this.checkedChange.emit(this.checked),this.onChange(this.checked),this.indeterminate=t.indeterminate}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.h),i.Tb(i.H),i.Tb(i.l),i.Tb(i.C),i.Tb(Yr))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-checkbox"]],hostVars:16,hostBindings:function(e,t){2&e&&(i.Ib(t.additionalClasses),i.Lb("status-primary",t.primary)("status-success",t.success)("status-warning",t.warning)("status-danger",t.danger)("status-info",t.info)("status-basic",t.basic)("status-control",t.control))},inputs:{status:"status",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{checkedChange:"checkedChange"},features:[i.Fb([{provide:I.m,useExisting:Object(i.Y)(()=>e),multi:!0}])],ngContentSelectors:tt,decls:7,vars:9,consts:[[1,"label"],["type","checkbox",1,"native-input","visually-hidden",3,"disabled","checked","indeterminate","change","blur","click"],[1,"custom-checkbox"],["icon","minus-bold-outline","pack","nebular-essentials",4,"ngIf"],["icon","checkmark-bold-outline","pack","nebular-essentials",4,"ngIf"],[1,"text"],["icon","minus-bold-outline","pack","nebular-essentials"],["icon","checkmark-bold-outline","pack","nebular-essentials"]],template:function(e,t){1&e&&(i.sc(),i.Zb(0,"label",0),i.Zb(1,"input",1),i.jc("change",function(e){return t.updateValueAndIndeterminate(e)})("blur",function(){return t.setTouched()})("click",function(e){return e.stopPropagation()}),i.Yb(),i.Zb(2,"span",2),i.Oc(3,xn,1,0,"nb-icon",3),i.Oc(4,An,1,0,"nb-icon",4),i.Yb(),i.Zb(5,"span",5),i.rc(6),i.Yb(),i.Yb()),2&e&&(i.Gb(1),i.tc("disabled",t.disabled)("checked",t.checked)("indeterminate",t.indeterminate),i.Gb(1),i.Lb("indeterminate",t.indeterminate)("checked",t.checked),i.Gb(1),i.tc("ngIf",t.indeterminate),i.Gb(1),i.tc("ngIf",t.checked&&!t.indeterminate))},directives:[r.n,ns],styles:["[_nghost-%COMP%] .label[_ngcontent-%COMP%]{position:relative;display:inline-flex;align-items:center;margin:0;min-height:inherit}[_nghost-%COMP%] .custom-checkbox[_ngcontent-%COMP%]{flex-shrink:0}.nb-transition[_nghost-%COMP%] .custom-checkbox[_ngcontent-%COMP%]{transition-duration:0.15s;transition-property:background-color,border,box-shadow;transition-timing-function:ease-in}.nb-transition[_nghost-%COMP%] .text[_ngcontent-%COMP%]{transition-duration:0.15s;transition-property:color;transition-timing-function:ease-in}"],changeDetection:0}),e})(),ia=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[Fi,is]]}),e})(),ra=(()=>{class e{constructor(e,t,n,i){this.overlay=e,this.componentFactoryResolver=t,this.zone=n,this.overlayContainer=i,this.context={},this.overlayConfig={},this.positionStrategyChange$=new o.a,this.isShown$=new d.a(!1),this.destroy$=new o.a,this.overlayDestroy$=new o.a}get isAttached(){return this.ref&&this.ref.hasAttached()}get isShown(){return this.isShown$.pipe(Object(v.a)())}create(e,t,n,i,r={}){return this.setContentAndContext(t,n),this.setComponent(e),this.setPositionStrategy(i),this.setOverlayConfig(r),this}setContent(e){this.content=e,this.container&&this.updateContext(),this.updatePosition()}setContext(e){this.context=e,this.container&&this.updateContext(),this.updatePosition()}setContentAndContext(e,t){this.content=e,this.context=t,this.container&&this.updateContext(),this.updatePosition()}setComponent(e){this.componentType=e;const t=this.isAttached;this.disposeOverlayRef(),t&&this.show()}setPositionStrategy(e){this.positionStrategyChange$.next(),this.positionStrategy=e,this.positionStrategy.positionChange.pipe(Object(y.a)(()=>!!this.container),Object(w.a)(Object(l.a)(this.positionStrategyChange$,this.destroy$))).subscribe(e=>{this.lastAppliedPosition=e,Ir(this.container,{position:e})}),this.ref&&this.ref.updatePositionStrategy(this.positionStrategy)}setOverlayConfig(e){this.overlayConfig=e;const t=this.isAttached;this.disposeOverlayRef(),t&&this.show()}show(){if(this.ref||this.createOverlay(),this.renderContainer(),!this.hasOverlayInContainer())return this.disposeOverlayRef(),this.show();this.isShown$.next(!0)}hide(){this.ref&&(this.ref.detach(),this.container=null,this.isShown$.next(!1))}toggle(){this.isAttached?this.hide():this.show()}dispose(){this.destroy$.next(),this.destroy$.complete(),this.hide(),this.disposeOverlayRef(),this.isShown$.complete(),this.positionStrategyChange$.complete(),this.overlayDestroy$.complete()}getContainer(){return this.container}createOverlay(){this.ref=this.overlay.create(Object.assign({positionStrategy:this.positionStrategy,scrollStrategy:this.overlay.scrollStrategies.reposition()},this.overlayConfig)),this.updatePositionWhenStable(this.ref)}renderContainer(){const e=this.createContainerContext();this.container||(this.container=function(e,t,n,i){const r=e.attach(new er(t,null,null,i));return Ir(r,n),r}(this.ref,this.componentType,e,this.componentFactoryResolver)),this.container.instance.renderContent()}updateContext(){const e=this.createContainerContext();Object.assign(this.container.instance,e),this.container.instance.renderContent(),this.container.changeDetectorRef.detectChanges()}createContainerContext(){return{content:this.content,context:this.context,cfr:this.componentFactoryResolver,position:this.lastAppliedPosition}}updatePositionWhenStable(e){const t=this.overlayDestroy$.pipe(Object(y.a)(t=>t===e));this.zone.onStable.pipe(Object(O.a)(1),Object(w.a)(Object(l.a)(this.destroy$,t))).subscribe(()=>this.updatePosition())}updatePosition(){this.ref&&this.ref.updatePosition()}hasOverlayInContainer(){return this.overlayContainer.getContainerElement().contains(this.ref.hostElement)}disposeOverlayRef(){this.ref&&(this.ref.dispose(),this.overlayDestroy$.next(this.ref),this.ref=null,this.container=null)}}return e.\u0275fac=function(t){return new(t||e)(i.gc(Rr),i.gc(i.j),i.gc(i.C),i.gc(or))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();class sa extends i.N{constructor(e,t,n=!1){super(e,t,n)}isChanged(){return this.currentValue!==this.previousValue}}let oa=(()=>{class e{constructor(e,t,n){this.positionBuilder=e,this.triggerStrategyBuilder=t,this.dynamicOverlayService=n,this._context={},this._trigger=Vr.NOOP,this._position=wr.TOP,this._adjustment=_r.NOOP,this._offset=15,this._overlayConfig={},this.changes={}}host(e){return this.changes.host=new sa(this._host,e),this._host=e,this}trigger(e){return this.changes.trigger=new sa(this._trigger,e),this._trigger=e,this}position(e){return this.changes.position=new sa(this._position,e),this._position=e,this}adjustment(e){return this.changes.adjustment=new sa(this._adjustment,e),this._adjustment=e,this}componentType(e){return this.changes.componentType=new sa(this._componentType,e),this._componentType=e,this}content(e){return this.changes.content=new sa(this._content,e),this._content=e,this}context(e){return this.changes.context=new sa(this._context,e),this._context=e,this}offset(e){return this.changes.offset=new sa(this._offset,e),this._offset=e,this}overlayConfig(e){return this.changes.overlayConfig=new sa(this._overlayConfig,e),this._overlayConfig=e,this}build(){if(!this._componentType||!this._host)throw Error("NbDynamicOverlayHandler: at least 'componentType' and 'host' should be\n passed before building a dynamic overlay.");return this.dynamicOverlay=this.dynamicOverlayService.create(this._componentType,this._content,this._context,this.createPositionStrategy(),this._overlayConfig),this.connect(),this.clearChanges(),this.dynamicOverlay}rebuild(){if(this.dynamicOverlay)return this.isPositionStrategyUpdateRequired()&&this.dynamicOverlay.setPositionStrategy(this.createPositionStrategy()),this.isTriggerStrategyUpdateRequired()&&this.connect(),this.isContainerRerenderRequired()&&this.dynamicOverlay.setContentAndContext(this._content,this._context),this.isComponentTypeUpdateRequired()&&this.dynamicOverlay.setComponent(this._componentType),this.isOverlayConfigUpdateRequired()&&this.dynamicOverlay.setOverlayConfig(this._overlayConfig),this.clearChanges(),this.dynamicOverlay}connect(){if(!this.dynamicOverlay)throw new Error("NbDynamicOverlayHandler: cannot connect to DynamicOverlay\n as it is not created yet. Call build() first");this.disconnect(),this.subscribeOnTriggers(this.dynamicOverlay)}disconnect(){this.triggerStrategy&&this.triggerStrategy.destroy()}destroy(){this.disconnect(),this.clearChanges(),this.dynamicOverlay&&this.dynamicOverlay.dispose()}createPositionStrategy(){return this.positionBuilder.connectedTo(this._host).position(this._position).adju
1stment(this._adjustment).offset(this._offset)}subscribeOnTriggers(e){this.triggerStrategy=this.triggerStrategyBuilder.trigger(this._trigger).host(this._host.nativeElement).container(()=>e.getContainer()).build(),this.triggerStrategy.show$.subscribe(()=>e.show()),this.triggerStrategy.hide$.subscribe(()=>e.hide())}isContainerRerenderRequired(){return this.isContentUpdated()||this.isContextUpdated()||this.isPositionStrategyUpdateRequired()}isPositionStrategyUpdateRequired(){return this.isAdjustmentUpdated()||this.isPositionUpdated()||this.isOffsetUpdated()||this.isHostUpdated()}isTriggerStrategyUpdateRequired(){return this.isTriggerUpdated()||this.isHostUpdated()}isComponentTypeUpdateRequired(){return this.isComponentTypeUpdated()}isOverlayConfigUpdateRequired(){return this.isOverlayConfigUpdated()}isComponentTypeUpdated(){return this.changes.componentType&&this.changes.componentType.isChanged()}isContentUpdated(){return this.changes.content&&this.changes.content.isChanged()}isContextUpdated(){return this.changes.context&&this.changes.context.isChanged()}isAdjustmentUpdated(){return this.changes.adjustment&&this.changes.adjustment.isChanged()}isPositionUpdated(){return this.changes.position&&this.changes.position.isChanged()}isHostUpdated(){return this.changes.host&&this.changes.host.isChanged()}isTriggerUpdated(){return this.changes.trigger&&this.changes.trigger.isChanged()}isOffsetUpdated(){return this.changes.offset&&this.changes.offset.isChanged()}isOverlayConfigUpdated(){return this.changes.overlayConfig&&this.changes.overlayConfig.isChanged()}clearChanges(){this.changes={}}}return e.\u0275fac=function(t){return new(t||e)(i.gc(Ar),i.gc(Wr),i.gc(ra))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),aa=(()=>{class e extends Er{renderContent(){this.detachContent(),this.attachContent()}detachContent(){this.overlayContainer.detach()}attachContent(){this.content instanceof i.Q?this.attachTemplate():this.content instanceof i.S?this.attachComponent():this.attachString()}attachTemplate(){this.overlayContainer.attachTemplatePortal(new sr(this.content,null,{$implicit:this.context}))}attachComponent(){const e=new er(this.content,null,null,this.cfr);this.overlayContainer.attachComponentPortal(e,this.context).changeDetectorRef.detectChanges()}attachString(){this.overlayContainer.attachStringContent(this.content)}}return e.\u0275fac=function(t){return ca(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-popover"]],viewQuery:function(e,t){if(1&e&&i.Vc(Mr,1),2&e){let e;i.Ec(e=i.kc())&&(t.overlayContainer=e.first)}},inputs:{content:"content",context:"context",cfr:"cfr"},features:[i.Db],decls:2,vars:0,consts:[[1,"arrow"]],template:function(e,t){1&e&&(i.Ub(0,"span",0),i.Ub(1,"nb-overlay-container"))},directives:[Mr],styles:["[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{position:absolute;width:0;height:0}"]}),e})();const ca=i.bc(aa);let la=(()=>{class e{constructor(e,t){this.hostRef=e,this.dynamicOverlayHandler=t,this.popoverComponent=aa,this.destroy$=new o.a,this.context={},this.position=wr.TOP,this._adjustment=_r.CLOCKWISE,this.trigger=Vr.CLICK,this.offset=15,this._popoverClass="",this.nbPopoverShowStateChange=new i.o,this.overlayConfig={panelClass:this.popoverClass}}get adjustment(){return this._adjustment}set adjustment(e){this._adjustment=e}get popoverClass(){return this._popoverClass}set popoverClass(e){e!==this.popoverClass&&(this._popoverClass=e,this.overlayConfig={panelClass:this.popoverClass})}get isShown(){return!(!this.dynamicOverlay||!this.dynamicOverlay.isAttached)}ngOnInit(){this.dynamicOverlayHandler.host(this.hostRef).componentType(this.popoverComponent)}ngOnChanges(){this.rebuild()}ngAfterViewInit(){this.dynamicOverlay=this.configureDynamicOverlay().build(),this.dynamicOverlay.isShown.pipe(Object(E.a)(1),Object(w.a)(this.destroy$)).subscribe(e=>this.nbPopoverShowStateChange.emit({isShown:e}))}rebuild(){this.dynamicOverlay=this.configureDynamicOverlay().rebuild()}show(){this.dynamicOverlay.show()}hide(){this.dynamicOverlay.hide()}toggle(){this.dynamicOverlay.toggle()}ngOnDestroy(){this.dynamicOverlayHandler.destroy(),this.destroy$.next(),this.destroy$.complete()}configureDynamicOverlay(){return this.dynamicOverlayHandler.position(this.position).trigger(this.trigger).offset(this.offset).adjustment(this.adjustment).content(this.content).context(this.context).overlayConfig(this.overlayConfig)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(oa))},e.\u0275dir=i.Ob({type:e,selectors:[["","nbPopover",""]],inputs:{context:["nbPopoverContext","context"],position:["nbPopoverPlacement","position"],trigger:["nbPopoverTrigger","trigger"],offset:["nbPopoverOffset","offset"],adjustment:["nbPopoverAdjustment","adjustment"],popoverClass:["nbPopoverClass","popoverClass"],content:["nbPopover","content"]},outputs:{nbPopoverShowStateChange:"nbPopoverShowStateChange"},exportAs:["nbPopover"],features:[i.Fb([oa,ra]),i.Eb]}),e})(),ua=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[Gr]]}),e})(),da=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[r.c,Gr,No]]}),e})(),ha=(()=>{class e{constructor(e){this.statusService=e,this.size="",this.status="basic",this.accent="",this.outline="",this._closable=!1,this.close=new i.o}get closable(){return this._closable}set closable(e){this._closable=ds(e)}onClose(){this.close.emit()}get tiny(){return"tiny"===this.size}
1get small(){return"small"===this.size}get medium(){return"medium"===this.size}get large(){return"large"===this.size}get giant(){return"giant"===this.size}get primary(){return"primary"===this.status}get success(){return"success"===this.status}get info(){return"info"===this.status}get warning(){return"warning"===this.status}get danger(){return"danger"===this.status}get basic(){return"basic"===this.status}get control(){return"control"===this.status}get primaryAccent(){return"primary"===this.accent}get successAccent(){return"success"===this.accent}get infoAccent(){return"info"===this.accent}get warningAccent(){return"warning"===this.accent}get dangerAccent(){return"danger"===this.accent}get basicAccent(){return"basic"===this.accent}get controlAccent(){return"control"===this.accent}get primaryOutline(){return"primary"===this.outline}get successOutline(){return"success"===this.outline}get infoOutline(){return"info"===this.outline}get warningOutline(){return"warning"===this.outline}get dangerOutline(){return"danger"===this.outline}get basicOutline(){return"basic"===this.outline}get controlOutline(){return"control"===this.outline}get additionalClasses(){return this.statusService.isCustomStatus(this.status)?[this.statusService.getStatusClass(this.status)]:[]}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(Yr))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-alert"]],hostVars:56,hostBindings:function(e,t){2&e&&(i.Ib(t.additionalClasses),i.Lb("closable",t.closable)("size-tiny",t.tiny)("size-small",t.small)("size-medium",t.medium)("size-large",t.large)("size-giant",t.giant)("status-primary",t.primary)("status-success",t.success)("status-info",t.info)("status-warning",t.warning)("status-danger",t.danger)("status-basic",t.basic)("status-control",t.control)("accent-primary",t.primaryAccent)("accent-success",t.successAccent)("accent-info",t.infoAccent)("accent-warning",t.warningAccent)("accent-danger",t.dangerAccent)("accent-basic",t.basicAccent)("accent-control",t.controlAccent)("outline-primary",t.primaryOutline)("outline-success",t.successOutline)("outline-info",t.infoOutline)("outline-warning",t.warningOutline)("outline-danger",t.dangerOutline)("outline-basic",t.basicOutline)("outline-control",t.controlOutline))},inputs:{size:"size",status:"status",accent:"accent",outline:"outline",closable:"closable"},outputs:{close:"close"},ngContentSelectors:tt,decls:2,vars:1,consts:[["type","button","class","close","aria-label","Close",3,"click",4,"ngIf"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"]],template:function(e,t){1&e&&(i.sc(),i.Oc(0,En,3,0,"button",0),i.rc(1)),2&e&&i.tc("ngIf",t.closable)},directives:[r.n],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;position:relative}[dir=ltr] [_nghost-%COMP%] .close[_ngcontent-%COMP%]{right:0}[dir=rtl] [_nghost-%COMP%] .close[_ngcontent-%COMP%]{left:0}.close[_ngcontent-%COMP%]{position:absolute;top:0;color:inherit;background-color:transparent;border:0;appearance:none}"]}),e})(),pa=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[Fi]]}),e})();class fa{}let ga=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),ma=(()=>{class e{constructor(){this.supportsPrefix=!0,this.supportsSuffix=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),ba=(()=>{class e{constructor(e,t,n,i,r){this.elementRef=e,this.focusMonitor=t,this.renderer=n,this.zone=i,this.statusService=r,this.destroy$=new o.a,this.fieldSize="medium",this.status="basic",this.shape="rectangle",this._fullWidth=!1,this.status$=new d.a(this.status),this.size$=new d.a(this.fieldSize),this.focused$=new d.a(!1),this.disabled$=new d.a(!1),this.fullWidth$=new d.a(this.fullWidth)}get fullWidth(){return this._fullWidth}set fullWidth(e){this._fullWidth=ds(e)}get additionalClasses(){return this.statusService.isCustomStatus(this.status)?[this.statusService.getStatusClass(this.status)]:[]}ngDoCheck(){const e=this.elementRef.nativeElement.disabled;e!==this.disabled$.value&&this.disabled$.next(e)}ngOnChanges({status:e,fieldSize:t,fullWidth:n}){e&&this.status$.next(this.status),t&&this.size$.next(this.fieldSize),n&&this.fullWidth$.next(this.fullWidth)}ngOnInit(){this.focusMonitor.monitor(this.elementRef).pipe(Object(g.a)(e=>!!e),Object(M.a)(()=>this.focusMonitor.stopMonitoring(this.elementRef)),Object(w.a)(this.destroy$)).subscribe(this.focused$)}ngAfterViewInit(){this.zone.runOutsideAngular(()=>setTimeout(()=>{this.renderer.addClass(this.elementRef.nativeElement,"nb-transition")}))}ngOnDestroy(){this.destroy$.next()}get tiny(){return"tiny"===this.fieldSize}
1get small(){return"small"===this.fieldSize}get medium(){return"medium"===this.fieldSize}get large(){return"large"===this.fieldSize}get giant(){return"giant"===this.fieldSize}get primary(){return"primary"===this.status}get info(){return"info"===this.status}get success(){return"success"===this.status}get warning(){return"warning"===this.status}get danger(){return"danger"===this.status}get basic(){return"basic"===this.status}get control(){return"control"===this.status}get rectangle(){return"rectangle"===this.shape}get semiRound(){return"semi-round"===this.shape}get round(){return"round"===this.shape}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(Yi),i.Tb(i.H),i.Tb(i.C),i.Tb(Yr))},e.\u0275dir=i.Ob({type:e,selectors:[["input","nbInput",""],["textarea","nbInput",""]],hostVars:34,hostBindings:function(e,t){2&e&&(i.Ib(t.additionalClasses),i.Lb("input-full-width",t.fullWidth)("size-tiny",t.tiny)("size-small",t.small)("size-medium",t.medium)("size-large",t.large)("size-giant",t.giant)("status-primary",t.primary)("status-info",t.info)("status-success",t.success)("status-warning",t.warning)("status-danger",t.danger)("status-basic",t.basic)("status-control",t.control)("shape-rectangle",t.rectangle)("shape-semi-round",t.semiRound)("shape-round",t.round))},inputs:{fieldSize:"fieldSize",status:"status",shape:"shape",fullWidth:"fullWidth"},features:[i.Fb([{provide:ga,useExisting:e}]),i.Eb]}),e})(),ya=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[Fi]]}),e})(),va=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[{provide:fa,useValue:t||{}}]}}static forChild(t){return{ngModule:e,providers:[{provide:fa,useValue:t||{}}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[Fi,is,ya,gs]]}),e})();const _a=new i.t("Nebular Stepper Component");let wa=(()=>{class e{constructor(e){this._hidden=!1,this._completed=!1,this.interacted=!1,this.stepper=e}get hidden(){return this._hidden}set hidden(e){this._hidden=ds(e)}get isLabelTemplate(){return this.label instanceof i.Q}get completed(){return this._completed||this.isCompleted}set completed(e){this._completed=ds(e)}get isCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}select(){this.stepper.selected=this}reset(){this.interacted=!1,this.stepControl&&this.stepControl.reset()}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(_a))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-step"]],viewQuery:function(e,t){if(1&e&&i.Vc(i.Q,3),2&e){let e;i.Ec(e=i.kc())&&(t.content=e.first)}},inputs:{hidden:"hidden",completed:"completed",stepControl:"stepControl",label:"label"},ngContentSelectors:tt,decls:1,vars:0,template:function(e,t){1&e&&(i.sc(),i.Oc(0,Mn,1,0,"ng-template"))},encapsulation:2}),e})(),ka=(()=>{class e{constructor(){this._selectedIndex=0,this._disableStepNavigation=!1,this.orientation="horizontal",this._linear=!0}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this.steps?(this.markCurrentStepInteracted(),this.canBeSelected(e)&&(this._selectedIndex=e)):this._selectedIndex=e}set disableStepNavigation(e){this._disableStepNavigation=ds(e)}get disableStepNavigation(){return this._disableStepNavigation}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.steps&&(this.selectedIndex=this.steps.toArray().indexOf(e))}set linear(e){this._linear=ds(e)}get linear(){return this._linear}get vertical(){return"vertical"===this.orientation}get horizontal(){return"horizontal"===this.orientation}next(){this.selectedIndex=Math.min(this.selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this.selectedIndex-1,0)}reset(){this._selectedIndex=0,this.steps.forEach(e=>e.reset())}isStepSelected(e){return this.selected===e}getStepTemplate(e){return e.isLabelTemplate?e.label:null}isStepValid(e){return this.steps.toArray()[e].completed}canBeSelected(e){if(!this.steps||0===this.steps.length||e<0||e>=this.steps.length)return!1;if(e<=this.selectedIndex||!this.linear)return!0;let t=!0;for(let n=this.selectedIndex;
1n<e;n++)if(!this.isStepValid(n)){t=!1;break}return t}markCurrentStepInteracted(){this.selected&&(this.selected.interacted=!0)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-stepper"]],contentQueries:function(e,t,n){if(1&e&&i.Mb(n,wa,0),2&e){let e;i.Ec(e=i.kc())&&(t.steps=e)}},hostVars:4,hostBindings:function(e,t){2&e&&i.Lb("vertical",t.vertical)("horizontal",t.horizontal)},inputs:{orientation:"orientation",selectedIndex:"selectedIndex",disableStepNavigation:"disableStepNavigation",selected:"selected",linear:"linear"},features:[i.Fb([{provide:_a,useExisting:e}])],ngContentSelectors:qn,decls:5,vars:2,consts:[[1,"header"],[4,"ngFor","ngForOf"],[1,"step-content"],[3,"ngTemplateOutlet"],["class","connector",3,"connector-past",4,"ngIf"],["class","step",3,"selected","completed","noninteractive","click",4,"ngIf"],[1,"connector"],[1,"step",3,"click"],[1,"label-index"],[4,"ngIf"],["icon","checkmark-outline","pack","nebular-essentials",4,"ngIf"],[1,"label"],["icon","checkmark-outline","pack","nebular-essentials"],[4,"ngTemplateOutlet"]],template:function(e,t){1&e&&(i.sc(Bn),i.Oc(0,In,1,0,"ng-template"),i.Zb(1,"div",0),i.Oc(2,Fn,3,2,"ng-container",1),i.Yb(),i.Zb(3,"div",2),i.Vb(4,3),i.Yb()),2&e&&(i.Gb(2),i.tc("ngForOf",t.steps),i.Gb(2),i.tc("ngTemplateOutlet",null==t.selected?null:t.selected.content))},directives:[r.m,r.s,r.n,ns],styles:[".horizontal[_nghost-%COMP%] .header[_ngcontent-%COMP%] .step[_ngcontent-%COMP%]{flex-direction:column}.horizontal[_nghost-%COMP%] .header[_ngcontent-%COMP%] .connector[_ngcontent-%COMP%]{height:2px}.horizontal[_nghost-%COMP%] .label-index[_ngcontent-%COMP%]{margin-bottom:10px}.vertical[_nghost-%COMP%]{display:flex;height:100%}.vertical[_nghost-%COMP%] .header[_ngcontent-%COMP%]{flex-direction:column}.vertical[_nghost-%COMP%] .header[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{margin:0 10px}.vertical[_nghost-%COMP%] .header[_ngcontent-%COMP%] .connector[_ngcontent-%COMP%]{width:2px}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:10px}.header[_ngcontent-%COMP%] .connector[_ngcontent-%COMP%]{flex:auto}.header[_ngcontent-%COMP%] .step[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer}.header[_ngcontent-%COMP%] .step.noninteractive[_ngcontent-%COMP%]{cursor:default}.header[_ngcontent-%COMP%] .label-index[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.header[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{width:max-content}"]}),e})(),Ca=(()=>{class e{constructor(e){this.stepper=e,this.type="submit"}onClick(){this.stepper.next()}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(ka))},e.\u0275dir=i.Ob({type:e,selectors:[["button","nbStepperNext",""]],hostVars:1,hostBindings:function(e,t){1&e&&i.jc("click",function(){return t.onClick()}),2&e&&i.Hb("type",t.type)},inputs:{type:"type"}}),e})(),Sa=(()=>{class e{constructor(e){this.stepper=e,this.type="button"}onClick(){this.stepper.previous()}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(ka))},e.\u0275dir=i.Ob({type:e,selectors:[["button","nbStepperPrevious",""]],hostVars:1,hostBindings:function(e,t){1&e&&i.jc("click",function(){return t.onClick()}),2&e&&i.Hb("type",t.type)},inputs:{type:"type"}}),e})(),Ta=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[Fi,is]]}),e})(),Pa=(()=>{class e{constructor(){this.openCloseItems=new o.a,this.multiValue=!1}get multi(){return this.multiValue}set multi(e){this.multiValue=ds(e)}openAll(){this.multi&&this.openCloseItems.next(!1)}closeAll(){this.openCloseItems.next(!0)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-accordion"]],inputs:{multi:"multi"},ngContentSelectors:Hn,decls:1,vars:0,template:function(e,t){1&e&&(i.sc(Un),i.rc(0))},encapsulation:2,changeDetection:0}),e})(),Oa=(()=>{class e{constructor(e,t){this.accordion=e,this.cd=t,this.collapsedChange=new i.o,this.accordionItemInvalidate=new o.a,this.collapsedValue=!0,this.disabledValue=!1,this.destroy$=new o.a}get collapsed(){return this.collapsedValue}set collapsed(e){this.collapsedValue=ds(e),this.collapsedChange.emit(this.collapsedValue),this.invalidate()}get expanded(){return!this.collapsed}set expanded(e){this.collapsedValue=!ds(e)}get disabled(){return this.disabledValue}set disabled(e){this.disabledValue=ds(e),this.invalidate()}toggle(){if(!this.disabled){const e=!this.collapsed;this.accordion.multi||this.accordion.openCloseItems.next(!0),this.collapsed=e}}open(){!this.disabled&&(this.collapsed=!1)}close(){!this.disabled&&(this.collapsed=!0)}ngOnInit(){this.accordion.openCloseItems.pipe(Object(w.a)(this.destroy$)).subscribe(e=>{!this.disabled&&(this.collapsed=e)})}ngOnChanges(e){this.accordionItemInvalidate.next(!0)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.accordionItemInvalidate.complete()}invalidate(){this.accordionItemInvalidate.next(!0),this.cd.markForCheck()}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(Pa,1),i.Tb(i.h))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-accordion-item"]],hostVars:6,hostBindings:function(e,t){2&e&&i.Lb("collapsed",t.collapsed)("expanded",t.expanded)("disabled",t.disabled)},inputs:{collapsed:"collapsed",expanded:"expanded",disabled:"disabled"},outputs:{collapsedChange:"collapsedChange"},features:[i.Eb],ngContentSelectors:Gn,decls:2,vars:0,template:function(e,t){1&e&&(i.sc(Wn),i.rc(0),i.rc(1,1))},styles:[ut],changeDetection:0}),e})();const xa=Object(Xe.k)("accordionItemBody",[Object(Xe.h)("collapsed",Object(Xe.i)({overflow:"hidden",visibility:"hidden",height:0})),Object(Xe.h)("expanded",Object(Xe.i)({overflow:"hidden",visibility:"visible"})),Object(Xe.j)("collapsed => expanded",Object(Xe.e)("100ms ease-in")),Object(Xe.j)("expanded => collapsed",Object(Xe.e)("100ms ease-out"))]);let Aa=(()=>{class e{constructor(e,t){this.accordionItem=e,this.cd=t,this.destroy$=new o.a}get state(){return this.accordionItem.collapsed?"collapsed":"expanded"}ngOnInit(){this.accordionItem.accordionItemInvalidate.pipe(Object(w.a)(this.destroy$)).subscribe(()=>this.cd.markForCheck())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}
1return e.\u0275fac=function(t){return new(t||e)(i.Tb(Oa,1),i.Tb(i.h))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-accordion-item-body"]],ngContentSelectors:tt,decls:3,vars:3,consts:[[1,"item-body"]],template:function(e,t){1&e&&(i.sc(),i.Zb(0,"div"),i.Zb(1,"div",0),i.rc(2),i.Yb(),i.Yb()),2&e&&i.tc("@accordionItemBody",i.yc(1,Yn,t.state))},encapsulation:2,data:{animation:[xa]},changeDetection:0}),e})(),Ea=(()=>{class e{constructor(e,t){this.accordionItem=e,this.cd=t,this.destroy$=new o.a}get isCollapsed(){return this.accordionItem.collapsed}get expanded(){return!this.accordionItem.collapsed}get tabbable(){return this.accordionItem.disabled?"-1":"0"}get disabled(){return this.accordionItem.disabled}toggle(){this.accordionItem.toggle()}get state(){return this.isCollapsed?"collapsed":this.expanded?"expanded":void 0}ngOnInit(){this.accordionItem.accordionItemInvalidate.pipe(Object(w.a)(this.destroy$)).subscribe(()=>this.cd.markForCheck())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(Oa,
11),i.Tb(i.h))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-accordion-item-header"]],hostVars:7,hostBindings:function(e,t){1&e&&i.jc("click",function(){return t.toggle()})("keydown.space",function(){return t.toggle()})("keydown.enter",function(){return t.toggle()}),2&e&&(i.Hb("aria-expanded",t.expanded)("tabindex",t.tabbable)("aria-disabled",t.disabled),i.Lb("accordion-item-header-collapsed",t.isCollapsed)("accordion-item-header-expanded",t.expanded))},ngContentSelectors:Qn,decls:4,vars:1,consts:[["icon","chevron-down-outline","pack","nebular-essentials","class","expansion-indicator",4,"ngIf"],["icon","chevron-down-outline","pack","nebular-essentials",1,"expansion-indicator"]],template:function(e,t){1&e&&(i.sc(Zn),i.rc(0),i.rc(1,1),i.rc(2,2),i.Oc(3,$n,1,1,"nb-icon",0)),2&e&&(i.Gb(3),i.tc("ngIf",!t.disabled))},directives:[r.n,ns],styles:["[_nghost-%COMP%]{display:flex;align-items:center;cursor:pointer}[_nghost-%COMP%]:focus{outline:0}"],data:{animation:[Object(Xe.k)("expansionIndicator",[Object(Xe.h)("expanded",Object(Xe.i)({transform:"rotate(180deg)"})),Object(Xe.j)("collapsed => expanded",Object(Xe.e)("100ms ease-in")),Object(Xe.j)("expanded => collapsed",Object(Xe.e)("100ms ease-out"))])]},changeDetection:0}),e})(),Ma=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({providers:[],imports:[[r.c,is]]}),e})(),Ia=(()=>{class e{constructor(){this.role="list"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-list"]],hostVars:1,hostBindings:function(e,t){2&e&&i.Hb("role",t.role)},inputs:{role:"role"},ngContentSelectors:Kn,decls:1,vars:0,template:function(e,t){1&e&&(i.sc(Xn),i.rc(0))},styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;flex:1 1 auto;overflow:auto}"]}),e})(),Ra=(()=>{class e{constructor(){this.role="listitem"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-list-item"]],hostVars:1,hostBindings:function(e,t){2&e&&i.Hb("role",t.role)},inputs:{role:"role"},ngContentSelectors:tt,decls:1,vars:0,template:function(e,t){1&e&&(i.sc(),i.rc(0))},styles:["[_nghost-%COMP%]{display:flex;align-items:center;flex-shrink:0}"]}),e})(),La=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({}),e})();new i.t("NB_SORT_HEADER_COLUMN_DEF");const Da=new i.t("Default dialog options");class ja{constructor(e){this.hasBackdrop=!0,this.backdropClass="overlay-backdrop",this.dialogClass="",this.closeOnBackdropClick=!0,this.closeOnEsc=!0,this.hasScroll=!1,this.autoFocus=!0,Object.assign(this,e)}}class Na{constructor(e){this.overlayRef=e,this.onClose$=new o.a,this.onClose=this.onClose$.asObservable(),this.onBackdropClick=this.overlayRef.backdropClick()}close(e){this.overlayRef.detach(),this.overlayRef.dispose(),this.onClose$.next(e),this.onClose$.complete()}}let Va=(()=>{class e{constructor(e,t,n){this.config=e,this.elementRef=t,this.focusTrapFactory=n}ngOnInit(){this.config.autoFocus&&(this.focusTrap=this.focusTrapFactory.create(this.elementRef.nativeElement),this.focusTrap.blurPreviouslyFocusedElement(),this.focusTrap.focusInitialElement())}ngOnDestroy(){this.config.autoFocus&&this.focusTrap&&this.focusTrap.restoreFocus()}attachComponentPortal(e){return this.portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this.portalOutlet.attachTemplatePortal(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(ja),i.Tb(i.l),i.Tb(qi))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-dialog-container"]],viewQuery:function(e,t){if(1&e&&i.Vc(Ki,3),2&e){let e;i.Ec(e=i.kc())&&(t.portalOutlet=e.first)}},decls:1,vars:0,consts:[["nbPortalOutlet",""]],template:function(e,t){1&e&&i.Oc(0,Jn,0,0,"ng-template",0)},directives:[Ki],encapsulation:2}),e})(),za=(()=>{class e{constructor(e,t,n,i,r,s){this.document=e,this.globalConfig=t,this.positionBuilder=n,this.overlay=i,this.injector=r,this.cfr=s}open(e,t={}){const n=new ja(Object.assign(Object.assign({},this.globalConfig),t)),i=this.createOverlay(n),r=new Na(i),s=this.createContainer(n,i);return this.createContent(n,e,s,r),this.registerCloseListeners(n,i,r),r}createOverlay(e){const t=this.createPositionStrategy(),n=this.createScrollStrategy(e.hasScroll);return this.overlay.create({positionStrategy:t,scrollStrategy:n,hasBackdrop:e.hasBackdrop,backdropClass:e.backdropClass,panelClass:e.dialogClass})}createPositionStrategy(){return this.positionBuilder.global().centerVertically().centerHorizontally()}createScrollStrategy(e){return e?this.overlay.scrollStrategies.noop():this.overlay.scrollStrategies.block()}createContainer(e,t){const n=new lr(this.createInjector(e),new WeakMap([[ja,e]])),i=new er(Va,null,n,this.cfr);return t.attach(i).instance}createContent(e,t,n,r){if(t instanceof i.Q){const i=this.createTemplatePortal(e,t,r);n.attachTemplatePortal(i)}else{const i=this.createComponentPortal(e,t,r);r.componentRef=n.attachComponentPortal(i),e.context&&Object.assign(r.componentRef.instance,Object.assign({},e.context))}}createTemplatePortal(e,t,n){return new sr(t,null,{$implicit:e.context,dialogRef:n})}createComponentPortal(e,t,n){const i=this.createInjector(e),r=new lr(i,new WeakMap([[Na,n]]));return new er(t,e.viewContainerRef,r)}createInjector(e){return e.viewContainerRef&&e.viewContainerRef.injector||this.injector}registerCloseListeners(e,t,n){e.closeOnBackdropClick&&t.backdropClick().subscribe(()=>n.close()),e.closeOnEsc&&Object(c.a)(this.document,"keyup").pipe(Object(y.a)(e=>
127===e.keyCode),Object(w.a)(n.onClose)).subscribe(()=>n.close())}}return e.\u0275fac=function(t){return new(t||e)(i.gc(xi),i.gc(Da),i.gc(Ar),i.gc(Rr),i.gc(i.u),i.gc(i.j))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),Fa=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[za,{provide:Da,useValue:t}]}}static forChild(t={}){return{ngModule:e,providers:[za,{provide:Da,useValue:t}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[Fi,Gr]]}),e})(),Ba=(()=>{class e{constructor(e,t,n){this.renderer=e,this.elementRef=t,this.statusService=n,this.destroy=new i.o}get success(){return"success"===this.toast.config.status}get info(){return"info"===this.toast.config.status}get warning(){return"warning"===this.toast.config.status}get primary(){return"primary"===this.toast.config.status}get danger(){return"danger"===this.toast.config.status}get basic(){return"basic"===this.toast.config.status}get control(){return"control"===this.toast.config.status}get destroyByClick(){return this.toast.config.destroyByClick}get hasIcon(){const{icon:e}=this.toast.config;return"string"==typeof e||!(!e||!e.icon)}get customIcon(){return!!this.icon}get icon(){return this.toast.config.icon}get additionalClasses(){return this.statusService.isCustomStatus(this.toast.config.status)?[this.statusService.getStatusClass(this.toast.config.status)]:[]}onClick(){this.destroy.emit()}ngOnInit(){this.toast.config.toastClass&&this.renderer.addClass(this.elementRef.nativeElement,this.toast.config.toastClass)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.H),i.Tb(i.l),i.Tb(Yr))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-toast"]],hostVars:22,hostBindings:function(e,t){1&e&&i.jc("click",function(){return t.onClick()}),2&e&&(i.Ib(t.additionalClasses),i.Lb("status-success",t.success)("status-info",t.info)("status-warning",t.warning)("status-primary",t.primary)("status-danger",t.danger)("status-basic",t.basic)("status-control",t.control)("destroy-by-click",t.destroyByClick)("has-icon",t.hasIcon)("custom-icon",t.customIcon))},inputs:{toast:"toast"},outputs:{destroy:"destroy"},decls:6,vars:3,consts:[["class","icon-container",4,"ngIf"],[1,"content-container"],[1,"title","subtitle"],[1,"message"],[1,"icon-container"],[3,"config"]],template:function(e,t){1&e&&(i.Oc(0,ei,2,1,"div",0),i.Zb(1,"div",1),i.Zb(2,"span",2),i.Qc(3),i.Yb(),i.Zb(4,"div",3),i.Qc(5),i.Yb(),i.Yb()),2&e&&(i.tc("ngIf",t.hasIcon&&t.icon),i.Gb(3),i.Rc(t.toast.title),i.Gb(2),i.Rc(t.toast.message))},directives:[r.n,ns],styles:["[_nghost-%COMP%]{display:flex;align-items:center;width:25rem;margin:0.5rem}[_nghost-%COMP%] .title[_ngcontent-%COMP%]{margin-right:0.25rem}.default[_nghost-%COMP%] .content-container[_ngcontent-%COMP%], [_nghost-%COMP%]:not(.has-icon) .content-container[_ngcontent-%COMP%]{display:flex;flex-direction:row}.destroy-by-click[_nghost-%COMP%]{cursor:pointer}[_nghost-%COMP%] nb-icon[_ngcontent-%COMP%]{font-size:2.5rem}[_nghost-%COMP%] svg[_ngcontent-%COMP%]{width:2.5rem;height:2.5rem}"]}),e})();const qa=Object(Xe.i)({transform:"translateX({{ direction }}110%)",height:0,marginLeft:"0",marginRight:"0",marginTop:"0",marginBottom:"0"}),Ua={params:{direction:""}};let Ha=(()=>{class e{constructor(e,t){this.layoutDirection=e,this.positionHelper=t,this.destroy$=new o.a,this.content=[]}ngOnInit(){this.layoutDirection.onDirectionChange().pipe(Object(w.a)(this.destroy$)).subscribe(()=>this.onDirectionChange())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onDirectionChange(){const e=this.positionHelper.isRightPosition(this.position)?"":"-";this.fadeIn={value:"",params:{direction:e}}}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(Ni),i.Tb(vr))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-toastr-container"]],viewQuery:function(e,t){if(1&e&&i.Vc(Ba,1),2&e){let e;i.Ec(e=i.kc())&&(t.toasts=e)}},inputs:{content:"content",context:"context",position:"position"},decls:1,vars:1,consts:[[3,"toast",4,"ngFor","ngForOf"],[3,"toast"]],template:function(e,t){1&e&&i.Oc(0,ti,1,2,"nb-toast",0),2&e&&i.tc("ngForOf",t.content)},directives:[r.m,Ba],encapsulation:2,data:{animation:[Object(Xe.k)("fadeIn",[Object(Xe.j)(":enter",[qa,Object(Xe.e)(100)],Ua),Object(Xe.j)(":leave",[Object(Xe.e)(100,qa)],Ua)])]}}),e})();const Wa=new i.t("Default toastr options");class Ga{constructor(e){this.position=br.TOP_END,this.status="basic",this.duration=3e3,this.destroyByClick=!0,this.preventDuplicates=!1,this.duplicatesBehaviour="previous",this.limit=null,this.toastClass="",this.hasIcon=!0,this.icon="email",this.icons={danger:"flash-outline",success:"checkmark-outline",info:"question-mark-outline",warning:"alert-triangle-outline",primary:"email-
1outline",control:"email-outline",basic:"email-outline"},this.patchIcon(e),Object.assign(this,e)}patchIcon(e){"icon"in e||(e.icon={icon:this.icons[e.status]||this.icons.basic,pack:"nebular-essentials"})}}class Ya{constructor(e,t){this.toastContainer=e,this.toast=t}close(){this.toastContainer.destroy(this.toast)}}class $a{constructor(e,t,n){this.position=e,this.containerRef=t,this.positionHelper=n,this.toasts=[],this.toastDuplicateCompareFunc=(e,t)=>e.message===t.message&&e.title===t.title&&e.config.status===t.config.status}get nativeElement(){return this.containerRef.location.nativeElement}attach(e){if(e.config.preventDuplicates&&this.isDuplicate(e))return;this.removeToastIfLimitReached(e);const t=this.attachToast(e);return e.config.destroyByClick&&this.subscribeOnClick(t,e),e.config.duration&&this.setDestroyTimeout(e),this.prevToast=e,new Ya(this,e)}destroy(e){this.prevToast===e&&(this.prevToast=null),this.toasts=this.toasts.filter(t=>t!==e),this.updateContainer()}isDuplicate(e){return"previous"===e.config.duplicatesBehaviour?this.isDuplicatePrevious(e):this.isDuplicateAmongAll(e)}isDuplicatePrevious(e){return this.prevToast&&this.toastDuplicateCompareFunc(this.prevToast,e)}isDuplicateAmongAll(e){return this.toasts.some(t=>this.toastDuplicateCompareFunc(t,e))}removeToastIfLimitReached(e){!e.config.limit||this.toasts.length<e.config.limit||(this.positionHelper.isTopPosition(e.config.position)?this.toasts.pop():this.toasts.shift())}attachToast(e){return this.positionHelper.isTopPosition(e.config.position)?this.attachToTop(e):this.attachToBottom(e)}attachToTop(e){return this.toasts.unshift(e),this.updateContainer(),this.containerRef.instance.toasts.first}attachToBottom(e){return this.toasts.push(e),this.updateContainer(),this.containerRef.instance.toasts.last}setDestroyTimeout(e){setTimeout(()=>this.destroy(e),e.config.duration)}subscribeOnClick(e,t){e.destroy.subscribe(()=>this.destroy(t))}updateContainer(){Ir(this.containerRef,{content:this.toasts,position:this.position})}}let Za=(()=>{class e{constructor(e,t,n,i,r){this.overlay=e,this.positionBuilder=t,this.positionHelper=n,this.cfr=i,this.document=r,this.overlays=new Map}get(e){const t=this.positionHelper.toLogicalPosition(e),n=this.overlays.get(t);return n&&this.existsInDom(n.toastrContainer)||(n&&n.overlayRef.dispose(),this.instantiateContainer(t)),this.overlays.get(t).toastrContainer}instantiateContainer(e){const t=this.createContainer(e);this.overlays.set(e,t)}createContainer(e){const t=this.positionBuilder.global().position(e),n=this.overlay.create({positionStrategy:t});this.addClassToOverlayHost(n);const i=n.attach(new er(Ha,null,null,this.cfr));return{overlayRef:n,toastrContainer:new $a(e,i,this.positionHelper)}}addClassToOverlayHost(e){e.hostElement.classList.add("toastr-overlay-container")}existsInDom(e){return this.document.body.contains(e.nativeElement)}}return e.\u0275fac=function(t){return new(t||e)(i.gc(Rr),i.gc(Ar),i.gc(vr),i.gc(i.j),i.gc(xi))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),Qa=(()=>{class e{constructor(e,t){this.globalConfig=e,this.containerRegistry=t}show(e,t,n){const i=new Ga(Object.assign(Object.assign({},this.globalConfig),n));return this.containerRegistry.get(i.position).attach({message:e,title:t,config:i})}success(e,t,n){return this.show(e,t,Object.assign(Object.assign({},n),{status:"success"}))}info(e,t,n){return this.show(e,t,Object.assign(Object.assign({},n),{status:"info"}))}warning(e,t,n){return this.show(e,t,Object.assign(Object.assign({},n),{status:"warning"}))}primary(e,t,n){return this.show(e,t,Object.assign(Object.assign({},n),{status:"primary"}))}danger(e,t,n){return this.show(e,t,Object.assign(Object.assign({},n),{status:"danger"}))}default(e,t,n){return this.show(e,t,Object.assign(Object.assign({},n),{status:"basic"}))}control(e,t,n){return this.default(e,t,Object.assign(Object.assign({},n),{status:"control"}))}}return e.\u0275fac=function(t){return new(t||e)(i.gc(Wa),i.gc(Za))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),Xa=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[Qa,Za,{provide:Wa,useValue:t}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[Fi,Gr,is]]}),e})(),Ka=(()=>{class e{constructor(e){this.statusService=e,this.position=wr.TOP,this.context={}}get binding(){return`${this.position} ${this.statusClass}`}get show(){return!0}get statusClass(){return this.context.status?this.statusService.getStatusClass(this.context.status):""}renderContent(){}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(Yr))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-tooltip"]],hostVars:3,hostBindings:function(e,t){2&e&&(i.Nc("@showTooltip",t.show),i.Ib(t.binding))},inputs:{position:"position",context:"context",content:"content"},decls:4,vars:2,consts:[[1,"arrow"],[1,"content"],[3,"config",4,"ngIf"],[4,"ngIf"],[3,"config"]],template:function(e,t){1&e&&(i.Ub(0,"span",0),i.Zb(1,"div",1),i.Oc(2,ni,1,1,"nb-icon",2),i.Oc(3,ii,2,1,"span",3),i.Yb()),2&e&&(i.Gb(2),i.tc("ngIf",null==t.context?null:t.context.
1icon),i.Gb(1),i.tc("ngIf",t.content))},directives:[r.n,ns],styles:["[_nghost-%COMP%]{z-index:10000}[_nghost-%COMP%] .content[_ngcontent-%COMP%]{display:flex;align-items:center}.right[_nghost-%COMP%] .content[_ngcontent-%COMP%]{flex-direction:row-reverse}[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{position:absolute;width:0;height:0}[_nghost-%COMP%] nb-icon[_ngcontent-%COMP%] + span[_ngcontent-%COMP%]{margin-left:0.5rem}.right[_nghost-%COMP%] nb-icon[_ngcontent-%COMP%] + span[_ngcontent-%COMP%]{margin-right:0.5rem}[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{border-left:6px solid transparent;border-right:6px solid transparent}.bottom[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{top:-6px;left:calc(50% - 6px)}.bottom-start[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{top:-6px}[dir=ltr] .bottom-start[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{right:6px}[dir=rtl] .bottom-start[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{left:6px}.bottom-end[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{top:-6px}[dir=ltr] .bottom-end[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{left:6px}[dir=rtl] .bottom-end[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{right:6px}.left[_nghost-%COMP%] .arrow[_ngcontent-%COMP%], .start[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{top:calc(50% - 2.4px)}[dir=ltr] .left[_nghost-%COMP%] .arrow[_ngcontent-%COMP%], [dir=ltr] .start[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{right:-8px;transform:rotate(90deg)}[dir=rtl] .left[_nghost-%COMP%] .arrow[_ngcontent-%COMP%], [dir=rtl] .start[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{left:-8px;transform:rotate(270deg)}.start-top[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{right:-8px;bottom:6px;transform:rotate(90deg)}.start-bottom[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{right:-8px;top:6px;transform:rotate(90deg)}.top[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{bottom:-6px;left:calc(50% - 6px);transform:rotate(180deg)}.top-start[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{bottom:calc(-1 * 6px + 1px);transform:rotate(180deg)}[dir=ltr] .top-start[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{right:6px}[dir=rtl] .top-start[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{left:6px}.top-end[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{bottom:calc(-6px + 1px);transform:rotate(180deg)}[dir=ltr] .top-end[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{left:6px}[dir=rtl] .top-end[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{right:6px}.right[_nghost-%COMP%] .arrow[_ngcontent-%COMP%], .end[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{top:calc(50% - 2.4px)}[dir=ltr] .right[_nghost-%COMP%] .arrow[_ngcontent-%COMP%], [dir=ltr] .end[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{left:-8px;transform:rotate(270deg)}[dir=rtl] .right[_nghost-%COMP%] .arrow[_ngcontent-%COMP%], [dir=rtl] .end[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{right:-8px;transform:rotate(90deg)}.end-top[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{left:calc(-6px - 6px / 2.5);bottom:6px;transform:rotate(270deg)}.end-bottom[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{left:calc(-6px - 6px / 2.5);top:6px;transform:rotate(270deg)}"],data:{animation:[Object(Xe.k)("showTooltip",[Object(Xe.h)("in",Object(Xe.i)({opacity:1})),Object(Xe.j)("void => *",[Object(Xe.i)({opacity:0}),Object(Xe.e)(100)]),Object(Xe.j)("* => void",[Object(Xe.e)(100,Object(Xe.i)({opacity:0}))])])]}}),e})(),Ja=(()=>{class e{constructor(e,t){this.hostRef=e,this.dynamicOverlayHandler=t,this.destroy$=new o.a,this.tooltipComponent=Ka,this.context={},this.position=wr.TOP,this._adjustment=_r.CLOCKWISE,this._tooltipClass="",this.trigger=Vr.HINT,this.offset=8,this.nbTooltipShowStateChange=new i.o,this.overlayConfig={panelClass:this.tooltipClass}}get adjustment(){return this._adjustment}set adjustment(e){this._adjustment=e}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){e!==this.tooltipClass&&(this._tooltipClass=e,this.overlayConfig={panelClass:this.tooltipClass})}set icon(e){this.context=Object.assign(this.context,{icon:e})}set status(e){this.context=Object.assign(this.context,{status:e})}get isShown(){return!(!this.dynamicOverlay||!this.dynamicOverlay.isAttached)}ngOnInit(){this.dynamicOverlayHandler.host(this.hostRef).componentType(this.tooltipComponent).offset(this.offset)}ngOnChanges(){this.rebuild()}ngAfterViewInit(){this.dynamicOverlay=this.configureDynamicOverlay().build(),this.dynamicOverlay.isShown.pipe(Object(E.a)(1),Object(w.a)(this.destroy$)).subscribe(e=>this.nbTooltipShowStateChange.emit({isShown:e}))}rebuild(){this.dynamicOverlay=this.configureDynamicOverlay().rebuild()}show(){this.dynamicOverlay.show()}hide(){this.dynamicOverlay.hide()}toggle(){this.dynamicOverlay.toggle()}ngOnDestroy(){this.dynamicOverlayHandler.destroy(),this.destroy$.next(),this.destroy$.complete()}configureDynamicOverlay(){return this.dynamicOverlayHandler.position(this.position).trigger(this.trigger).adjustment(this.adjustment).content(this.content).context(this.context).overlayConfig(this.overlayConfig)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(oa))},e.\u0275dir=i.Ob({type:e,selectors:[["","nbTooltip",""]],inputs:{position:["nbTooltipPlacement","position"],trigger:["nbTooltipTrigger","trigger"],offset:["nbTooltipOffset","offset"],adjustment:["nbTooltipAdjustment","adjustment"],tooltipClass:["nbTooltipClass","tooltipClass"],icon:["nbTooltipIcon","icon"],status:["nbTooltipStatus","status"],content:["nbTooltip","content"]},outputs:{nbTooltipShowStateChange:"nbTooltipShowStateChange"},exportAs:["nbTooltip"],features:[i.Fb([oa,ra]),i.Eb]}),e})(),ec=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[Fi,Gr,is]]}),e})();const tc=new i.t("NB_SELECT_INJECTION_TOKEN");let nc=0,ic=(()=>
1{class e{constructor(e,t,n,r,s){this.elementRef=t,this.cd=n,this.zone=r,this.renderer=s,this.disabledByGroup=!1,this._disabled=!1,this.selectionChange=new i.o,this.click$=new o.a,this.selected=!1,this.alive=!0,this.id="nb-option-"+nc++,this._active=!1,this.parent=e}get disabled(){return this._disabled||this.disabledByGroup}set disabled(e){this._disabled=ds(e)}get click(){return this.click$.asObservable()}ngOnDestroy(){this.alive=!1}ngAfterViewInit(){this.zone.runOutsideAngular(()=>setTimeout(()=>{this.renderer.addClass(this.elementRef.nativeElement,"nb-transition")}))}get withCheckbox(){return this.multiple&&null!=this.value}get content(){return this.elementRef.nativeElement.textContent}get multiple(){return!!this.parent&&this.parent.multiple}get selectedClass(){return this.selected}get disabledAttribute(){return this.disabled?"":null}get tabindex(){return"-1"}get activeClass(){return this._active}onClick(e){this.click$.next(this),e.preventDefault()}select(){this.setSelection(!0)}deselect(){this.setSelection(!1)}setDisabledByGroupState(e){this.disabledByGroup!==e&&this.alive&&(this.disabledByGroup=e,this.cd.markForCheck())}setSelection(e){this.alive&&this.selected!==e&&(this.selected=e,this.selectionChange.emit(this),this.cd.markForCheck())}focus(){this.elementRef.nativeElement.focus()}getLabel(){return this.content}setActiveStyles(){this._active=!0,this.cd.markForCheck()}setInactiveStyles(){this._active=!1,this.cd.markForCheck()}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(tc,8),i.Tb(i.l),i.Tb(i.h),i.Tb(i.C),i.Tb(i.H))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-option"]],hostVars:9,hostBindings:function(e,t){1&e&&i.jc("click",function(e){return t.onClick(e)})("keydown.space",function(e){return t.onClick(e)})("keydown.enter",function(e){return t.onClick(e)}),2&e&&(i.cc("tabIndex",t.tabindex),i.Hb("id",t.id)("disabled",t.disabledAttribute),i.Lb("multiple",t.multiple)("selected",t.selectedClass)("active",t.activeClass))},inputs:{disabled:"disabled",value:"value"},outputs:{selectionChange:"selectionChange"},ngContentSelectors:tt,decls:2,vars:1,consts:[["aria-hidden","true",3,"checked","disabled",4,"ngIf"],["aria-hidden","true",3,"checked","disabled"]],template:function(e,t){1&e&&(i.sc(),i.Oc(0,ri,1,2,"nb-checkbox",0),i.rc(1)),2&e&&i.tc("ngIf",t.withCheckbox)},directives:[r.n,na],styles:["[_nghost-%COMP%]{display:flex}[_nghost-%COMP%]:hover{cursor:pointer}[_nghost-%COMP%] nb-checkbox[_ngcontent-%COMP%]{display:flex;pointer-events:none}[dir=ltr] [_nghost-%COMP%] nb-checkbox[_ngcontent-%COMP%]{margin-right:.5rem}[dir=rtl] [_nghost-%COMP%] nb-checkbox[_ngcontent-%COMP%]{margin-left:.5rem}[_nghost-%COMP%] nb-checkbox[_ngcontent-%COMP%] .label{padding:0}[disabled][_nghost-%COMP%]{pointer-events:none}.nb-transition[_nghost-%COMP%]{transition-duration:0.15s;transition-property:background-color,color;transition-timing-function:ease-in}"],changeDetection:0}),e})(),rc=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-select-label"]],ngContentSelectors:tt,decls:1,vars:0,template:function(e,t){1&e&&(i.sc(),i.rc(0))},encapsulation:2}),e})();function sc(){const e=new ma;return e.supportsSuffix=!1,e}let oc=(()=>{class e{constructor(e,t,n,r,s,a,c,l,u,h,p){this.document=e,this.overlay=t,this.hostRef=n,this.positionBuilder=r,this.triggerStrategyBuilder=s,this.cd=a,this.focusKeyManagerFactoryService=c,this.focusMonitor=l,this.renderer=u,this.zone=h,this.statusService=p,this.size="medium",this.status="basic",this.shape="rectangle",this.appearance="outline",this._fullWidth=!1,this.placeholder="",this._compareWith=(e,t)=>e===t,this._multiple=!1,this.optionsOverlayOffset=8,this.scrollStrategy="block",this.selectedChange=new i.o,this.selectionModel=[],this.overlayPosition="",this.alive=!0,this.destroy$=new o.a,this.onChange=()=>{},this.onTouched=()=>{},this.status$=new d.a(this.status),this.size$=new d.a(this.size),this.focused$=new d.a(!1),this.disabled$=new d.a(this.disabled),this.fullWidth$=new d.a(this.fullWidth)}get outline(){return"outline"===this.appearance}set outline(e){ds(e)&&(this.appearance="outline")}get filled(){return"filled"===this.appearance}set filled(e){ds(e)&&(this.appearance="filled")}get hero(){return"hero"===this.appearance}set hero(e){ds(e)&&(this.appearance="hero")}get disabled(){return!!this._disabled}set disabled(e){this._disabled=ds(e)}get fullWidth(){return this._fullWidth}set fullWidth(e){this._fullWidth=ds(e)}get compareWith(){return this._compareWith}set compareWith(e){"function"==typeof e&&(this._compareWith=e,this.selectionModel.length&&this.canSelectValue()&&this.setSelection(this.selected))}set selected(e){this.writeValue(e)}get selected(){return this.multiple?this.selectionModel.map(e=>e.value):this.selectionModel[0].value}get multiple(){return this._multiple}set multiple(e){this._multiple=ds(e)}get additionalClasses(){return this.statusService.isCustomStatus(this.status)?[this.statusService.getStatusClass(this.status)]:[]}get isOpen(){return this.ref&&this.ref.hasAttached()}get isHidden(){return!this.isOpen}get hostWidth(){return this.button.nativeElement.getBoundingClientRect().width}
1get selectButtonClasses(){const e=[];return this.selectionModel.length||e.push("placeholder"),this.selectionModel.length||this.placeholder||e.push("empty"),this.isOpen&&e.push(this.overlayPosition),e}get selectionView(){return this.selectionModel.length>1?this.selectionModel.map(e=>e.content).join(", "):this.selectionModel[0].content}ngOnChanges({disabled:e,status:t,size:n,fullWidth:i}){e&&this.disabled$.next(e.currentValue),t&&this.status$.next(t.currentValue),n&&this.size$.next(n.currentValue),i&&this.fullWidth$.next(this.fullWidth)}ngAfterContentInit(){this.options.changes.pipe(Object(m.a)(this.options),Object(y.a)(()=>null!=this.queue&&this.canSelectValue()),Object(S.a)(e=>Object(p.a)(Promise.resolve(e))),Object(w.a)(this.destroy$)).subscribe(()=>this.writeValue(this.queue))}ngAfterViewInit(){this.triggerStrategy=this.createTriggerStrategy(),this.subscribeOnButtonFocus(),this.subscribeOnTriggers(),this.subscribeOnOptionClick(),this.zone.runOutsideAngular(()=>setTimeout(()=>{this.renderer.addClass(this.hostRef.nativeElement,"nb-transition")}))}ngOnDestroy(){this.alive=!1,this.destroy$.next(),this.destroy$.complete(),this.ref&&this.ref.dispose(),this.triggerStrategy&&this.triggerStrategy.destroy()}show(){this.isHidden&&(this.attachToOverlay(),this.setActiveOption(),this.cd.markForCheck())}hide(){this.isOpen&&(this.ref.detach(),this.cd.markForCheck())}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}writeValue(e){this.alive&&(this.canSelectValue()?(this.setSelection(e),this.selectionModel.length&&(this.queue=null)):this.queue=e)}handleOptionClick(e){this.queue=null,null==e.value?this.reset():this.selectOption(e),this.cd.markForCheck()}reset(){this.selectionModel.forEach(e=>e.deselect()),this.selectionModel=[],this.hide(),this.button.nativeElement.focus(),this.emitSelected(this.multiple?[]:null)}selectOption(e){this.multiple?this.handleMultipleSelect(e):this.handleSingleSelect(e)}handleSingleSelect(e){const t=this.selectionModel.pop();t&&!this._compareWith(t.value,e.value)&&t.deselect(),this.selectionModel=[e],e.select(),this.hide(),this.button.nativeElement.focus(),this.emitSelected(e.value)}handleMultipleSelect(e){e.selected?(this.selectionModel=this.selectionModel.filter(t=>!this._compareWith(t.value,e.value)),e.deselect()):(this.selectionModel.push(e),e.select()),this.emitSelected(this.selectionModel.map(e=>e.value))}attachToOverlay(){this.ref||(this.createOverlay(),this.subscribeOnPositionChange(),this.createKeyManager(),this.subscribeOnOverlayKeys()),this.ref.attach(this.portal)}setActiveOption(){this.selectionModel.length?this.keyManager.setActiveItem(this.selectionModel[0]):this.keyManager.setFirstItemActive()}createOverlay(){const e=this.createScrollStrategy();this.positionStrategy=this.createPositionStrategy(),this.ref=this.overlay.create({positionStrategy:this.positionStrategy,scrollStrategy:e,panelClass:this.optionsPanelClass})}createKeyManager(){this.keyManager=this.focusKeyManagerFactoryService.create(this.options).withTypeAhead(200)}createPositionStrategy(){return this.positionBuilder.connectedTo(this.button).position(wr.BOTTOM).offset(this.optionsOverlayOffset).adjustment(_r.VERTICAL)}createScrollStrategy(){return this.overlay.scrollStrategies[this.scrollStrategy]()}createTriggerStrategy(){return this.triggerStrategyBuilder.trigger(Vr.CLICK).host(this.hostRef.nativeElement).container(()=>this.getContainer()).build()}subscribeOnTriggers(){this.triggerStrategy.show$.subscribe(()=>this.show()),this.triggerStrategy.hide$.pipe(Object(y.a)(()=>this.isOpen)).subscribe(e=>{this.hide(),this.isClickedWithinComponent(e)||this.onTouched()})}subscribeOnPositionChange(){this.positionStrategy.positionChange.pipe(Object(w.a)(this.destroy$)).subscribe(e=>{this.overlayPosition=e,this.cd.detectChanges()})}subscribeOnOptionClick(){this.options.changes.pipe(Object(m.a)(this.options),Object(S.a)(e=>Object(l.a)(...e.map(e=>e.click))),Object(w.a)(this.destroy$)).subscribe(e=>this.handleOptionClick(e))}subscribeOnOverlayKeys(){this.ref.keydownEvents().pipe(Object(y.a)(()=>this.isOpen),Object(w.a)(this.destroy$)).subscribe(e=>
1{27===e.keyCode?(this.button.nativeElement.focus(),this.hide()):this.keyManager.onKeydown(e)}),this.keyManager.tabOut.pipe(Object(w.a)(this.destroy$)).subscribe(()=>{this.hide(),this.onTouched()})}subscribeOnButtonFocus(){this.focusMonitor.monitor(this.button).pipe(Object(g.a)(e=>!!e),Object(M.a)(()=>this.focusMonitor.stopMonitoring(this.button)),Object(w.a)(this.destroy$)).subscribe(this.focused$)}getContainer(){return this.ref&&this.ref.hasAttached()&&{location:{nativeElement:this.ref.overlayElement}}}emitSelected(e){this.onChange(e),this.selectedChange.emit(e)}setSelection(e){const t=Array.isArray(e);if(this.multiple&&!t)throw new Error("Can't assign single value if select is marked as multiple");if(!this.multiple&&t)throw new Error("Can't assign array if select is not marked as multiple");const n=this.selectionModel;this.selectionModel=[],t?e.forEach(e=>this.selectValue(e)):this.selectValue(e),n.filter(e=>!this.selectionModel.includes(e)).forEach(e=>e.deselect()),this.cd.markForCheck()}selectValue(e){const t=this.options.find(t=>this._compareWith(t.value,e));t&&(t.select(),this.selectionModel.push(t))}trySetTouched(){this.isHidden&&this.onTouched()}isClickedWithinComponent(e){return this.hostRef.nativeElement===e.target||this.hostRef.nativeElement.contains(e.target)}canSelectValue(){return!(!this.options||!this.options.length)}get tiny(){return"tiny"===this.size}
1get small(){return"small"===this.size}get medium(){return"medium"===this.size}get large(){return"large"===this.size}get giant(){return"giant"===this.size}get primary(){return"primary"===this.status}get info(){return"info"===this.status}get success(){return"success"===this.status}get warning(){return"warning"===this.status}get danger(){return"danger"===this.status}get basic(){return"basic"===this.status}get control(){return"control"===this.status}get rectangle(){return"rectangle"===this.shape}get round(){return"round"===this.shape}get semiRound(){return"semi-round"===this.shape}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(xi),i.Tb(Rr),i.Tb(i.l),i.Tb(Ar),i.Tb(Wr),i.Tb(i.h),i.Tb(Hi),i.Tb(Yi),i.Tb(i.H),i.Tb(i.C),i.Tb(Yr))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-select"]],contentQueries:function(e,t,n){if(1&e&&(i.Mb(n,rc,1),i.Mb(n,ic,1)),2&e){let e;i.Ec(e=i.kc())&&(t.customLabel=e.first),i.Ec(e=i.kc())&&(t.options=e)}},viewQuery:function(e,t){if(1&e&&(i.Vc(Qi,1),i.Vc(si,1,i.l)),2&e){let e;i.Ec(e=i.kc())&&(t.portal=e.first),i.Ec(e=i.kc())&&(t.button=e.first)}},hostVars:42,hostBindings:function(e,t){2&e&&(i.Ib(t.additionalClasses),i.Lb("appearance-outline",t.outline)("appearance-filled",t.filled)("appearance-hero",t.hero)("full-width",t.fullWidth)("open",t.isOpen)("size-tiny",t.tiny)("size-small",t.small)("size-medium",t.medium)("size-large",t.large)("size-giant",t.giant)("status-primary",t.primary)("status-info",t.info)("status-success",t.success)("status-warning",t.warning)("status-danger",t.danger)("status-basic",t.basic)("status-control",t.control)("shape-rectangle",t.rectangle)("shape-round",t.round)("shape-semi-round",t.semiRound))},inputs:{size:"size",status:"status",shape:"shape",appearance:"appearance",placeholder:"placeholder",optionsOverlayOffset:"optionsOverlayOffset",scrollStrategy:"scrollStrategy",outline:"outline",filled:"filled",hero:"hero",disabled:"disabled",fullWidth:"fullWidth",compareWith:"compareWith",selected:"selected",multiple:"multiple",optionsListClass:"optionsListClass",optionsPanelClass:"optionsPanelClass"},outputs:{selectedChange:"selectedChange"},features:[i.Fb([{provide:I.m,useExisting:Object(i.Y)(()=>e),multi:!0},{provide:tc,useExisting:e},{provide:ga,useExisting:e},{provide:ma,useFactory:sc}]),i.Eb],ngContentSelectors:hi,decls:7,vars:4,consts:[["type","button",1,"select-button",3,"disabled","ngClass","blur","keydown.arrowDown","keydown.arrowUp"],["selectButton",""],[4,"ngIf","ngIfElse"],["placeholderTemplate",""],["icon","chevron-down-outline","pack","nebular-essentials","aria-hidden","true",3,"click"],[3,"size","position","width","ngClass",4,"nbPortal"],["defaultSelectionTemplate",""],[3,"size","position","ngClass"]],template:function(e,t){if(1&e&&(i.sc(di),i.Zb(0,"button",0,1),i.jc("blur",function(){return t.trySetTouched()})("keydown.arrowDown",function(){return t.show()})("keydown.arrowUp",function(){return t.show()}),i.Oc(2,ci,4,2,"ng-container",2),i.Oc(3,li,1,1,"ng-template",null,3,i.Pc),i.Zb(5,"nb-icon",4),i.jc("click",function(e){return t.disabled&&e.stopPropagation()}),i.Yb(),i.Yb(),i.Oc(6,ui,2,5,"nb-option-list",5)),2&e){const e=i.Fc(4);i.tc("disabled",t.disabled)("ngClass",t.selectButtonClasses),i.Gb(2),i.tc("ngIf",t.selectionModel.length)("ngIfElse",e)}},directives:function(){return[r.l,r.n,ns,Qi,ac]},styles:["[_nghost-%COMP%]{display:inline-block;max-width:100%}[dir=ltr] [_nghost-%COMP%] .select-button[_ngcontent-%COMP%]{text-align:left}[dir=ltr] [_nghost-%COMP%] .select-button[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%]{right:0.2em}[dir=rtl] [_nghost-%COMP%] .select-button[_ngcontent-%COMP%]{text-align:right}[dir=rtl] [_nghost-%COMP%] .select-button[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%]{left:0.2em}.full-width[_nghost-%COMP%]{width:100%}.nb-transition[_nghost-%COMP%] .select-button[_ngcontent-%COMP%]{transition-duration:0.15s;transition-property:background-color,border-color,border-radius,box-shadow,color;transition-timing-function:ease-in}.select-button[_ngcontent-%COMP%]{position:relative;width:100%;overflow:hidden;text-overflow:ellipsis;text-transform:none;white-space:nowrap}nb-icon[_ngcontent-%COMP%]{font-size:1.5em;position:absolute;top:50%;transform:translateY(-50%);transition-duration:0.15s;transition-property:transform;transition-timing-function:ease-in}[dir=ltr][_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%]{right:.5rem}[dir=rtl][_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%]{left:.5rem}.open[_nghost-%COMP%] nb-icon[_ngcontent-%COMP%]{transform:translateY(-50%) rotate(180deg)}"],changeDetection:0}),e})(),ac=(()=>{class e{constructor(){this.size="medium"}get positionTop(){return this.position===wr.TOP}get positionBottom(){return this.position===wr.BOTTOM}get sizeTiny(){return"tiny"===this.size}get sizeSmall(){return"small"===this.size}get sizeMedium(){return"medium"===this.size}get sizeLarge(){return"large"===this.size}get sizeGiant(){return"giant"===this.size}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-option-list"]],hostVars:14,hostBindings:function(e,t){2&e&&i.Lb("position-top",t.positionTop)("position-bottom",t.positionBottom)("size-tiny",t.sizeTiny)("size-small",t.sizeSmall)("size-medium",t.sizeMedium)("size-large",t.sizeLarge)("size-giant",t.sizeGiant)},inputs:{size:"size",position:"position"},ngContentSelectors:tt,decls:2,vars:0,consts:[[1,"option-list"]],template:function(e,t){1&e&&(i.sc(),i.Zb(0,"ul",0),i.rc(1),i.Yb())},encapsulation:2,changeDetection:0}),e})(),cc=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[r.c,ia]]}),e})(),lc=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[Fi,Gr,gs,ya,cs,is,cc],cc]}),e})();new i.t("Nebular Window Content"),new i.t("Nebular Window Config"),new i.t("Nebular Window Context");let uc=(()=>{class e{constructor(e,t){this.ngZone=e,this.platformService=t,this.selectedChange$=new o.a,this.unselected$=this.selectedChange$.pipe(Object(y.a)(e=>!e)),this.destroy$=new o.a,this.select=new i.o}set selected(e){e&&(this._selected=e,this.scrollToElement()),this.selectedChange$.next(e)}get selected(){return this._selected}onClick(){this.select.emit({value:this.value})}ngAfterViewInit(){this.selected&&this.ngZone.onStable.pipe(Object(O.a)(1),Object(w.a)(Object(l.a)(this.unselected$,this.destroy$))).subscribe(()=>this.scrollToElement())}scrollToElement(){this.valueContainerElement&&this.platformService.isBrowser&&this.ngZone.runOutsideAngular(()=>this.valueContainerElement.nativeElement.scrollIntoView({block:"center"}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.C),i.Tb(hr))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-timepicker-cell"]],viewQuery:function(e,t){if(1&e&&i.Vc(pi,1),2&e){let e;i.Ec(e=i.kc())&&(t.valueContainerElement=e.first)}},hostBindings:function(e,t){1&e&&i.jc("click",function(){return t.onClick()})},inputs:{selected:"selected",value:"value"},outputs:{select:"select"},decls:3,vars:1,consts:[["valueContainer",""]],template:function(e,t){1&e&&(i.Zb(0,"div",null,0),i.Qc(2),i.Yb()),2&e&&(i.Gb(2),i.Rc(t.value))},styles:["[_nghost-%COMP%]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;user-select:none}"],changeDetection:0}),e})(),dc=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[{provide:$s,useValue:t}]}}static forChild(t={}){return{ngModule:e,providers:[{provide:$s,useValue:t}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({providers:[Ds],imports:[[r.c,Gr,La,cs,Vs]]}),e})(),hc=(()=>{class e extends Js{constructor(e){super(),this.dateService=e,this.picker=oo}parse(e,t){return this.dateService.parse(e,t)}format(e,t){return this.dateService.format(e,t)}isValid(e,t){return this.dateService.isValidDateString(e,t)}}return e.\u0275fac=function(t){return new(t||e)(i.gc(ms))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),pc=(()=>{class e extends Js{constructor(e){super(),this.dateService=e,this.picker=co}parse(e,t){const[n,i]=e.split("-").map(e=>e.trim());return{start:this.dateService.parse(n,t),end:this.dateService.parse(i,t)}}format(e,t){if(!e)return"";const n=this.dateService.format(e.start,t);if(!this.dateService.isValidDateString(n,t))return"";const i=this.dateService.format(e.end,t);return this.dateService.isValidDateString(i,t)?`${n} - ${i}`:n}isValid(e,t){const[n,i]=e.split("-").map(e=>e.trim());return this.dateService.isValidDateString(n,t)&&this.dateService.isValidDateString(i,t)}}return e.\u0275fac=function(t){return new(t||e)(i.gc(ms))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),fc=(()=>{class e extends Js{constructor(e){super(),this.dateService=e,this.picker=uo}parse(e,t){return this.dateService.parse(e,t)}format(e,t){return this.dateService.format(e,t)}isValid(e,t){return this.dateService.isValidDateString(e,t)}}return e.\u0275fac=function(t){return new(t||e)(i.gc(ms))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),gc=(()=>{class e{static forRoot(){return{ngModule:e,providers:[r.e,{provide:to,multi:!0,useClass:hc}
1,{provide:to,multi:!0,useClass:pc},{provide:to,multi:!0,useClass:fc}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[Gr,Bs,Ys,cs,Fs,dc,Vs]]}),e})(),mc=(()=>{class e{constructor(e,t,n){this.cd=e,this.renderer=t,this.statusService=n,this._checked=!1,this._disabled=!1,this.status="basic",this.valueChange=new i.o,this.blur=new i.o}get name(){return this._name}set name(e){this._name!==e&&(this._name=e)}get checked(){return this._checked}set checked(e){const t=ds(e);this._checked!==t&&(this._checked=t)}get value(){return this._value}set value(e){this._value!==e&&(this._value=e)}get disabled(){return this._disabled}set disabled(e){const t=ds(e);this._disabled!==t&&(this._disabled=t)}get isPrimary(){return"primary"===this.status}get isSuccess(){return"success"===this.status}get isWarning(){return"warning"===this.status}get isDanger(){return"danger"===this.status}get isInfo(){return"info"===this.status}get isBasic(){return"basic"===this.status}get isControl(){return"control"===this.status}get additionalClasses(){return this.statusService.isCustomStatus(this.status)?[this.statusService.getStatusClass(this.status)]:[]}onChange(e){e.stopPropagation(),this.checked=!0,this.valueChange.emit(this.value)}onClick(e){e.stopPropagation()}_markForCheck(){this.cd.markForCheck()}_setName(e){this.name=e,this.input&&this.renderer.setProperty(this.input.nativeElement,"name",e)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.h),i.Tb(i.H),i.Tb(Yr))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-radio"]],viewQuery:function(e,t){if(1&e&&i.Vc(fi,1,i.l),2&e){let e;i.Ec(e=i.kc())&&(t.input=e.first)}},hostVars:16,hostBindings:function(e,t){2&e&&(i.Ib(t.additionalClasses),i.Lb("status-primary",t.isPrimary)("status-success",t.isSuccess)("status-warning",t.isWarning)("status-danger",t.isDanger)("status-info",t.isInfo)("status-basic",t.isBasic)("status-control",t.isControl))},inputs:{status:"status",name:"name",checked:"checked",value:"value",disabled:"disabled"},outputs:{valueChange:"valueChange",blur:"blur"},ngContentSelectors:tt,decls:7,vars:4,consts:[["type","radio",1,"native-input","visually-hidden",3,"name","value","checked","disabled","change","click"],["input",""],[1,"outer-circle"],[1,"inner-circle"],[1,"text"]],template:function(e,t){1&e&&(i.sc(),i.Zb(0,"label"),i.Zb(1,"input",0,1),i.jc("change",function(e){return t.onChange(e)})("click",function(e){return t.onClick(e)}),i.Yb(),i.Ub(3,"span",2),i.Ub(4,"span",3),i.Zb(5,"span",4),i.rc(6),i.Yb(),i.Yb()),2&e&&(i.Gb(1),i.tc("name",t.name)("value",t.value)("checked",t.checked)("disabled",t.disabled))},styles:["[_nghost-%COMP%]{display:block;position:relative}[_nghost-%COMP%] label[_ngcontent-%COMP%]{display:inline-flex;margin:0;min-height:inherit;padding:0.375rem 0;align-items:center}[dir=ltr] [_nghost-%COMP%] label[_ngcontent-%COMP%]{padding-right:1.5rem}[dir=rtl] [_nghost-%COMP%] label[_ngcontent-%COMP%]{padding-left:1.5rem}[_nghost-%COMP%] .outer-circle[_ngcontent-%COMP%], [_nghost-%COMP%] .inner-circle[_ngcontent-%COMP%]{border-radius:50%;position:absolute;top:50%;transform:translateY(-50%)}[dir=ltr] [_nghost-%COMP%] .outer-circle[_ngcontent-%COMP%], [dir=ltr] [_nghost-%COMP%] .inner-circle[_ngcontent-%COMP%]{left:0}[dir=rtl] [_nghost-%COMP%] .outer-circle[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .inner-circle[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%] .inner-circle[_ngcontent-%COMP%]{transform:translateY(-50%) scale(0.6)}[dir=ltr] [_nghost-%COMP%] .text[_ngcontent-%COMP%]{padding-left:.5rem}[dir=rtl] [_nghost-%COMP%] .text[_ngcontent-%COMP%]{padding-right:.5rem}"],changeDetection:0}),e})(),bc=(()=>{class e{constructor(e,t,n){this.hostElement=e,this.platformId=t,this.document=n,this.destroy$=new o.a,this.onChange=e=>{},this.onTouched=()=>{},this._status="basic",this.valueChange=new i.o}get value(){return this._value}set value(e){this._value=e,this.updateValues()}get name(){return this._name}set name(e){this._name=e,this.updateNames()}get disabled(){return this._disabled}set disabled(e){this._disabled=ds(e),this.updateDisabled()}get status(){return this._status}set status(e){this._status!==e&&(this._status=e,this.updateStatus())}ngAfterContentInit(){this.updateNames(),this.radios.changes.pipe(Object(m.a)(this.radios),Object(S.a)(e=>
1Object(p.a)(Promise.resolve(e))),Object(w.a)(this.destroy$)).subscribe(()=>this.updateAndSubscribeToRadios())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}writeValue(e){this.value=e}updateAndSubscribeToRadios(){this.updateValueFromCheckedOption(),this.updateNames(),this.updateValues(),this.updateDisabled(),this.updateStatus(),this.subscribeOnRadiosValueChange(),this.subscribeOnRadiosBlur()}updateNames(){this.radios&&this.radios.forEach(e=>e._setName(this.name))}updateValues(){this.updateAndMarkForCheckRadios(e=>e.checked=e.value===this.value)}updateDisabled(){void 0!==this.disabled&&this.updateAndMarkForCheckRadios(e=>e.disabled=this.disabled)}subscribeOnRadiosValueChange(){this.radios&&this.radios.length&&Object(l.a)(...this.radios.map(e=>e.valueChange)).pipe(Object(w.a)(Object(l.a)(this.radios.changes,this.destroy$))).subscribe(e=>{this.writeValue(e),this.propagateValue(e)})}propagateValue(e){this.valueChange.emit(e),this.onChange(e)}subscribeOnRadiosBlur(){const e=!this.radios||!this.radios.length;if(!Object(r.E)(this.platformId)||e)return;const t=this.hostElement.nativeElement;Object(c.a)(t,"focusin").pipe(Object(y.a)(e=>t.contains(e.target)),Object(S.a)(()=>Object(l.a)(Object(c.a)(this.document,"focusin"),Object(c.a)(this.document,"click"))),Object(y.a)(e=>!t.contains(e.target)),Object(w.a)(Object(l.a)(this.radios.changes,this.destroy$))).subscribe(()=>this.onTouched())}updateStatus(){this.updateAndMarkForCheckRadios(e=>e.status=this.status)}updateAndMarkForCheckRadios(e){this.radios&&this.radios.forEach(t=>{e(t),t._markForCheck()})}updateValueFromCheckedOption(){const e=this.radios.find(e=>e.checked);e&&null==this.value&&e.value!==this.value&&(this.value=e.value)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.E),i.Tb(xi))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-radio-group"]],contentQueries:function(e,t,n){if(1&e&&i.Mb(n,mc,1),2&e){let e;i.Ec(e=i.kc())&&(t.radios=e)}},inputs:{value:"value",name:"name",disabled:"disabled",status:"status"},outputs:{valueChange:"valueChange"},features:[i.Fb([{provide:I.m,useExisting:Object(i.Y)(()=>e),multi:!0}])],ngContentSelectors:mi,decls:1,vars:0,template:function(e,t){1&e&&(i.sc(gi),i.rc(0))},encapsulation:2,changeDetection:0}),e})(),yc=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[]]}),e})(),vc=0,_c=(()=>{class e{constructor(e,t,n,r,s){this._hostElement=e,this.cd=t,this.renderer=n,this.zone=r,this.statusService=s,this._destroy$=new o.a,this._selected=!1,this._removable=!1,this.appearance="filled",this.status="basic",this.size="medium",this.role="option",this.remove=new i.o,this.selectedChange=new i.o,this._isActive=!1,this._id="nb-tag-"+vc++}get destroy$(){return this._destroy$.asObservable()}get selected(){return this._selected}set selected(e){this.selected!==ds(e)&&(this._selected=!this.selected,this.selectedChange.emit({tag:this,selected:this.selected}))}get removable(){return this._removable}set removable(e){this._removable=ds(e)}get filled(){return"filled"===this.appearance}set filled(e){ds(e)&&(this.appearance="filled")}get outline(){return"outline"===this.appearance}set outline(e){ds(e)&&(this.appearance="outline")}get basic(){return"basic"===this.status}get primary(){return"primary"===this.status}get success(){return"success"===this.status}get info(){return"info"===this.status}get warning(){return"warning"===this.status}get danger(){return"danger"===this.status}get control(){return"control"===this.status}get tiny(){return"tiny"===this.size}
1get small(){return"small"===this.size}get medium(){return"medium"===this.size}get large(){return"large"===this.size}get giant(){return"giant"===this.size}get additionalClasses(){return this.statusService.isCustomStatus(this.status)?[this.statusService.getStatusClass(this.status)]:[]}_remove(){this.removable&&this.remove.emit(this)}ngAfterViewInit(){this.zone.runOutsideAngular(()=>setTimeout(()=>{this.renderer.addClass(this._hostElement.nativeElement,"nb-transition")}))}ngOnDestroy(){this._destroy$.next(this)}_toggleSelection(){this.selected=!this.selected,this.cd.markForCheck()}setActiveStyles(){this._isActive||(this._isActive=!0,this.cd.markForCheck())}setInactiveStyles(){this._isActive&&(this._isActive=!1,this.cd.markForCheck())}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.h),i.Tb(i.H),i.Tb(i.C),i.Tb(Yr))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-tag"]],hostVars:37,hostBindings:function(e,t){1&e&&i.jc("keydown.delete",function(){return t._remove()})("keydown.backspace",function(){return t._remove()}),2&e&&(i.Hb("role",t.role)("id",t._id)("aria-selected",t.selected),i.Ib(t.additionalClasses),i.Lb("active",t._isActive)("selected",t.selected)("appearance-filled",t.filled)("appearance-outline",t.outline)("status-basic",t.basic)("status-primary",t.primary)("status-success",t.success)("status-info",t.info)("status-warning",t.warning)("status-danger",t.danger)("status-control",t.control)("size-tiny",t.tiny)("size-small",t.small)("size-medium",t.medium)("size-large",t.large)("size-giant",t.giant))},inputs:{appearance:"appearance",status:"status",size:"size",role:"role",selected:"selected",removable:"removable",text:"text"},outputs:{remove:"remove",selectedChange:"selectedChange"},exportAs:["nbTag"],decls:2,vars:2,consts:[["icon","close-outline","pack","nebular-essentials","aria-hidden","true",3,"class","click",4,"ngIf"],["icon","close-outline","pack","nebular-essentials","aria-hidden","true",3,"click"]],template:function(e,t){1&e&&(i.Qc(0),i.Oc(1,bi,1,3,"nb-icon",0)),2&e&&(i.Sc("",t.text,"\n"),i.Gb(1),i.tc("ngIf",t.removable))},directives:[r.n,ns],encapsulation:2,changeDetection:0}),e})(),wc=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[r.c,is]]}),e})();new i.t("NB_TREE_GRID");let kc=(()=>{class e{constructor(e,t,n,r,s,a){this.changeDetector=e,this.layoutDirection=t,this.renderer=n,this.hostElement=r,this.zone=s,this.statusService=a,this.onChange=()=>{},this.onTouched=()=>{},this.destroy$=new o.a,this._checked=!1,this._disabled=!1,this.status="basic",this.labelPosition="end",this.checkedChange=new i.o}get checked(){return this._checked}set checked(e){this._checked=ds(e)}get disabled(){return this._disabled}set disabled(e){this._disabled=ds(e)}get primary(){return"primary"===this.status}get success(){return"success"===this.status}get warning(){return"warning"===this.status}get danger(){return"danger"===this.status}get info(){return"info"===this.status}get basic(){return"basic"===this.status}get control(){return"control"===this.status}get additionalClasses(){return this.statusService.isCustomStatus(this.status)?[this.statusService.getStatusClass(this.status)]:[]}get labelLeft(){return"left"===this.labelPosition}get labelRight(){return"right"===this.labelPosition}get labelStart(){return"start"===this.labelPosition}get labelEnd(){return"end"===this.labelPosition}ngOnInit(){this.layoutDirection.onDirectionChange().pipe(Object(w.a)(this.destroy$)).subscribe(()=>this.changeDetector.detectChanges())}ngAfterViewInit(){this.zone.runOutsideAngular(()=>setTimeout(()=>{this.renderer.addClass(this.hostElement.nativeElement,"nb-transition")}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}checkState(){return this.checked?this.layoutDirection.isLtr()?"right":"left":this.layoutDirection.isLtr()?"left":"right"}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}writeValue(e){this.checked=e,this.changeDetector.markForCheck()}setDisabledState(e){this.disabled=ds(e),this.changeDetector.markForCheck()}updateValue(e){this.checked=e.target.checked,this.checkedChange.emit(this.checked),this.onChange(this.checked)}onInputClick(e){e.stopPropagation()}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.h),i.Tb(Ni),i.Tb(i.H),i.Tb(i.l),i.Tb(i.C),i.Tb(Yr))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-toggle"]],hostVars:24,hostBindings:function(e,t){2&e&&(i.Ib(t.additionalClasses),i.Lb("status-primary",t.primary)("status-success",t.success)("status-warning",t.warning)("status-danger",t.danger)("status-info",t.info)("status-basic",t.basic)("status-control",t.control)("toggle-label-left",t.labelLeft)("toggle-label-right",t.labelRight)("toggle-label-start",t.labelStart)("toggle-label-end",t.labelEnd))},inputs:{status:"status",labelPosition:"labelPosition",checked:"checked",disabled:"disabled"},outputs:{checkedChange:"checkedChange"},features:[i.Fb([{provide:I.m,useExisting:Object(i.Y)(()=>e),multi:!0}])],ngContentSelectors:tt,decls:7,vars:7,consts:[[1,"toggle-label"],["type","checkbox","role","switch",1,"native-input","visually-hidden",3,"disabled","checked","change","blur","click"],[1,"toggle"],[1,"toggle-switcher"],["icon","checkmark-bold-outline","pack","nebular-essentials",4,"ngIf"],[1,"text"],["icon","checkmark-bold-outline","pack","nebular-essentials"]],template:function(e,t){1&e&&(i.sc(),i.Zb(0,"label",0),i.Zb(1,"input",1),i.jc("change",function(e){return t.updateValue(e)})("blur",function(){return t.onTouched()})("click",function(e){return t.onInputClick(e)}),i.Yb(),i.Zb(2,"div",2),i.Zb(3,"span",3),i.Oc(4,yi,1,0,"nb-icon",4),i.Yb(),i.Yb(),i.Zb(5,"span",5),i.rc(6),i.Yb(),i.Yb()),2&e&&(i.Gb(1),i.tc("disabled",t.disabled)("checked",t.checked),i.Hb("aria-checked",t.checked),i.Gb(1),i.Lb("checked",t.checked),i.Gb(1),i.tc("@position",t.checkState()),i.Gb(1),i.tc("ngIf",t.checked))},directives:[r.n,ns],styles:["[_nghost-%COMP%]{display:inline-flex;outline:none}.toggle-label-left[_nghost-%COMP%] .text[_ngcontent-%COMP%]:not(:empty){padding-right:0.6875rem}[dir=ltr] .toggle-label-left[_nghost-%COMP%] .text[_ngcontent-%COMP%]:not(:empty){order:-1}[dir=rtl] .toggle-label-left[_nghost-%COMP%] .text[_ngcontent-%COMP%]:not(:empty){order:1}.toggle-label-right[_nghost-%COMP%] .text[_ngcontent-%COMP%]:not(:empty){padding-left:0.6875rem}[dir=ltr] .toggle-label-right[_nghost-%COMP%] .text[_ngcontent-%COMP%]:not(:empty){order:1}[dir=rtl] .toggle-label-right[_nghost-%COMP%] .text[_ngcontent-%COMP%]:not(:empty){order:-1}.toggle-label-start[_nghost-%COMP%] .toggle-label[_ngcontent-%COMP%]{flex-direction:row-reverse}[dir=ltr] .toggle-label-start[_nghost-%COMP%] .toggle-label[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]:not(:empty){padding-right:.6875rem}[dir=rtl] .toggle-label-start[_nghost-%COMP%] .toggle-label[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]:not(:empty){padding-left:.6875rem}[dir=ltr] .toggle-label-end[_nghost-%COMP%] .text[_ngcontent-%COMP%]:not(:empty){padding-left:.6875rem}[dir=rtl] .toggle-label-end[_nghost-%COMP%] .text[_ngcontent-%COMP%]:not(:empty){padding-right:.6875rem}.nb-transition[_nghost-%COMP%] .toggle[_ngcontent-%COMP%]{transition-duration:0.15s;transition-property:background-color,border,box-shadow;transition-timing-function:ease-in}.toggle-label[_ngcontent-%COMP%]{position:relative;display:inline-flex;align-items:center}.toggle[_ngcontent-%COMP%]{position:relative;display:inline-flex;box-sizing:content-box}.toggle-switcher[_ngcontent-%COMP%]{position:absolute;border-radius:50%;margin:1px}.toggle-switcher[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}"],data:{animation:[Object(Xe.k)("position",[Object(Xe.h)("right",Object(Xe.i)({right:0,left:"*"})),Object(Xe.h)("left",Object(Xe.i)({left:0,right:"*"})),Object(Xe.j)(":enter",[Object(Xe.e)(0)]),Object(Xe.j)("right <=> left",[Object(Xe.e)("0.15s")])])]},changeDetection:0}),e})(),Cc=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[r.c,is]]}),e})(),Sc=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["","nbPrefix",""]]}),e})(),Tc=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["","nbSuffix",""]]}),e})(),Pc=(()=>{class e{constructor(e,t,n,i){this.cd=e,this.zone=t,this.elementRef=n,this.renderer=i,this.destroy$=new o.a,this.formControlState$=new s.a(1),this.prefixClasses$=this.formControlState$.pipe(Object(g.a)(e=>this.getAddonClasses("prefix",e))),this.suffixClasses$=this.formControlState$.pipe(Object(g.a)(e=>this.getAddonClasses("suffix",e)))}ngAfterContentChecked(){this.formControl||function(){throw new Error("NbFormFieldComponent must contain [nbInput]")}()}ngAfterContentInit(){this.subscribeToFormControlStateChange(),this.subscribeToAddonChange()}ngAfterViewInit(){this.zone.runOutsideAngular(()=>setTimeout(()=>{this.renderer.addClass(this.elementRef.nativeElement,"nb-transition")}))}ngOnDestroy(){this.destroy$.next()}
1shouldShowPrefix(){return this.getFormControlConfig().supportsPrefix&&!!this.prefix.length}shouldShowSuffix(){return this.getFormControlConfig().supportsSuffix&&!!this.suffix.length}subscribeToFormControlStateChange(){const{disabled$:e,focused$:t,size$:n,status$:i,fullWidth$:r}=this.formControl;Object(f.b)([e,t,n,i,r]).pipe(Object(g.a)(([e,t,n,i,r])=>({disabled:e,focused:t,size:n,status:i,fullWidth:r})),Object(v.a)((e,t)=>this.isStatesEqual(e,t)),Object(x.a)(({size:e,fullWidth:t})=>{const n=[`nb-form-field-size-${e}`];t||n.push("nb-form-field-limited-width"),this.formFieldClasses=n.join(" ")}),Object(w.a)(this.destroy$)).subscribe(this.formControlState$)}subscribeToAddonChange(){Object(l.a)(this.prefix.changes,this.suffix.changes).pipe(Object(w.a)(this.destroy$)).subscribe(()=>this.cd.markForCheck())}getAddonClasses(e,t){const n=["nb-form-field-addon",`nb-form-field-${e}-${t.size}`];return n.push(t.disabled?"nb-form-field-addon-disabled":t.focused?`nb-form-field-addon-${t.status}-highlight`:`nb-form-field-addon-${t.status}`),n}getFormControlConfig(){return this.formControlConfig||new ma}isStatesEqual(e,t){return e.status===t.status&&e.disabled===t.disabled&&e.focused===t.focused&&e.fullWidth===t.fullWidth&&e.size===t.size}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.h),i.Tb(i.C),i.Tb(i.l),i.Tb(i.H))},e.\u0275cmp=i.Nb({type:e,selectors:[["nb-form-field"]],contentQueries:function(e,t,n){if(1&e&&(i.Mb(n,ga,1),i.Mb(n,ma,1),i.Mb(n,Sc,1),i.Mb(n,Tc,1)),2&e){let e;i.Ec(e=i.kc())&&(t.formControl=e.first),i.Ec(e=i.kc())&&(t.formControlConfig=e.first),i.Ec(e=i.kc())&&(t.prefix=e),i.Ec(e=i.kc())&&(t.suffix=e)}},hostVars:2,hostBindings:function(e,t){2&e&&i.Ib(t.formFieldClasses)},ngContentSelectors:ki,decls:4,vars:6,consts:[[3,"ngClass",4,"ngIf"],[1,"nb-form-control-container"],[3,"ngClass"]],template:function(e,t){1&e&&(i.sc(wi),i.Oc(0,vi,3,3,"div",0),i.Zb(1,"div",1),i.rc(2),i.Yb(),i.Oc(3,_i,3,3,"div",0)),2&e&&(i.tc("ngIf",t.shouldShowPrefix()),i.Gb(1),i.Lb("nb-form-field-control-with-prefix",t.shouldShowPrefix())("nb-form-field-control-with-suffix",t.shouldShowSuffix()),i.Gb(2),i.tc("ngIf",t.shouldShowSuffix()))},directives:[r.n,r.l],pipes:[r.b],styles:["[_nghost-%COMP%]{display:flex;align-items:center}.nb-form-control-container[_ngcontent-%COMP%]{width:100%}"],changeDetection:0}),e})(),Oc=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({imports:[[r.c]]}),e})()},ahnh:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"Survey"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"Survey",plural:"Surveys",path:"Surveys",idName:"id",properties:{publicId:{name:"publicId",type:"string"},name:{name:"name",type:"string"},description:{name:"description",type:"string",default:""},theme:{name:"theme",type:"any",default:null},submissionStart:{name:"submissionStart",type:"Date",default:new Date(0)},submissionEnd:{name:"submissionEnd",type:"Date",default:new Date(0)},schema:{name:"schema",type:"any"},compileTime:{name:"compileTime",type:"number"},logo:{name:"logo",type:"any"},features:{name:"features",type:"any"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{accesses:{name:"accesses",type:"SurveyAccess[]",model:"SurveyAccess",relationType:"hasMany",keyFrom:"id",keyTo:"surveyId"},compilers:{name:"compilers",type:"SurveyCompiler[]",model:"SurveyCompiler",relationType:"hasMany",modelThrough:"SurveyAccess",keyThrough:"compilerId",keyFrom:"id",keyTo:"surveyId"},submissions:{name:"submissions",type:"SurveySubmission[]",model:"SurveySubmission",relationType:"hasMany",keyFrom:"id",keyTo:"surveyId"},writers:{name:"writers",type:"SurveyWriter[]",model:"SurveyWriter",relationType:"hasMany",modelThrough:"SurveyWriterMapping",keyThrough:"writerId",keyFrom:"id",keyTo:"surveyId"},writerMappings:{name:"writerMappings",type:"SurveyWriterMapping[]",model:"SurveyWriterMapping",relationType:"hasMany",keyFrom:"id",keyTo:"surveyId"},requests:{name:"requests",type:"SurveyRequest[]",model:"SurveyRequest",relationType:"hasMany",keyFrom:"id",keyTo:"surveyId"}}}}}},"aoL+":function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SurveyAccess"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SurveyAccess",plural:"SurveyAccesses",path:"SurveyAccesses",
1idName:"id",properties:{baseId:{name:"baseId",type:"string"},compilerId:{name:"compilerId",type:"any"},surveyId:{name:"surveyId",type:"any"},maxSubmissions:{name:"maxSubmissions",type:"number",default:100},currentSubmissions:{name:"currentSubmissions",type:"number",default:0},lastSubmissionId:{name:"lastSubmissionId",type:"number",default:0},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{compiler:{name:"compiler",type:"SurveyCompiler",model:"SurveyCompiler",relationType:"belongsTo",keyFrom:"compilerId",keyTo:"id"},survey:{name:"survey",type:"Survey",model:"Survey",relationType:"belongsTo",keyFrom:"surveyId",keyTo:"id"},submissions:{name:"submissions",type:"SurveySubmission[]",model:"SurveySubmission",relationType:"hasMany",keyFrom:"id",keyTo:"accessId"}}}}}},b48C:function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},bHdf:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("5+tZ"),r=n("SpAZ");function s(e=Number.POSITIVE_INFINITY){return Object(i.b)(r.a,e)}},bOdf:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("5+tZ");function r(e,t){return Object(i.b)(e,t,1)}},bd5T:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("kU1M");t.delay=function(e,t){return void 0===t&&(t=i.asyncScheduler),r.delay(e,t)(this)}},blbF:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"CongressLive"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"CongressLive",plural:"CongressLives",path:"CongressLives",idName:"id",properties:{eventId:{name:"eventId",type:"any"},access_level:{name:"access_level",type:"number",default:0},name:{name:"name",type:"string"},description:{name:"description",type:"string"},url:{name:"url",type:"string"},source:{name:"source",type:"any"},target:{name:"target",type:"any"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{event:{name:"event",type:"Congress",model:"Congress",relationType:"belongsTo",keyFrom:"eventId",keyTo:"id"}}}}}},budB:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiUser"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiUser",plural:"Users",path:"Users",idName:"id",properties:{name:{name:"name",type:"string"},address:{name:"address",type:"any"},registry:{name:"registry",type:"any",default:null},picture:{name:"picture",type:"string"},cv:{name:"cv",type:"any"},cv_year:{name:"cv_year",type:"number"},laurea:{name:"laurea",type:"string"},specializzazioni:{name:"specializzazioni",type:"Array<any>"},imported:{name:"imported",type:"boolean"},locale:{name:"locale",type:"string"},realm:{name:"realm",type:"string"},username:{name:"username",type:"string"},email:{name:"email",type:"string"},emailVerified:{name:"emailVerified",type:"boolean"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"},deleted:{name:"deleted",type:"Date"},password:{name:"password",type:"string"}},relations:{accessTokens:{name:"accessTokens",type:"any[]",model:"",relationType:"hasMany",keyFrom:"id",keyTo:"userId"},roles:{name:"roles",type:"CoreRole[]",model:"CoreRole",relationType:"hasMany",modelThrough:"CoreRoleMapping",keyThrough:"roleId",keyFrom:"id",keyTo:"principalId"},devices:{name:"devices",type:"CoreUserDevice[]",model:"CoreUserDevice",relationType:"hasMany",keyFrom:"id",keyTo:"userId"},identities:{name:"identities",type:"any[]",model:"",relationType:"hasMany",keyFrom:"id",keyTo:"userId"},credentials:{name:"credentials",type:"any[]",model:"",relationType:"hasMany",keyFrom:"id",keyTo:"userId"},surveyWriter:{name:"surveyWriter",type:"SurveyWriter",model:"SurveyWriter",relationType:"hasOne",keyFrom:"id",keyTo:"userId"},surveyCompiler:{name:"surveyCompiler",type:"SurveyCompiler",model:"SurveyCompiler",relationType:"hasOne",keyFrom:"id",keyTo:"userId"},admission:{name:"admission",type:"SimiAdmission",model:"SimiAdmission",relationType:"hasOne",keyFrom:"id",keyTo:"userId"},associate:{name:"associate",type:"SimiAssociate",model:"SimiAssociate",relationType:"hasOne",keyFrom:"id",keyTo:"userId"},congressProfile:{name:"congressProfile",type:"CongressProfile",model:"CongressProfile",relationType:"hasOne",keyFrom:"id",keyTo:"userId"},institutes:{name:"institutes",type:"SimiInstitute[]",model:"SimiInstitute",relationType:"hasMany",modelThrough:"SimiInstituteMapping",keyThrough:"instituteId",keyFrom:"id",keyTo:"userId"},instituteMappings:{name:"instituteMappings",type:"SimiInstituteMapping[]",model:"SimiInstituteMapping",relationType:"hasMany",keyFrom:"id",keyTo:"userId"},congressSubscriptions:{name:"congressSubscriptions",type:"CongressSubscription[]",model:"CongressSubscription",relationType:"hasMany",keyFrom:"id",keyTo:"userId"},courseSubscriptions:{name:"courseSubscriptions",type:"CourseSubscription[]",model:"CourseSubscription",relationType:"hasMany",keyFrom:"id",keyTo:"userId"}}}}}},c2HN:function(e,t,n){"use strict";function i(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",function(){return i})},cLov:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiBoardMember"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiBoardMember",plural:"SimiBoardMembers",path:"SimiBoardMembers",
1idName:"id",properties:{boardId:{name:"boardId",type:"string"},userId:{name:"userId",type:"any"},role:{name:"role",type:"string"},description:{name:"description",type:"string"},date_start:{name:"date_start",type:"Date"},date_end:{name:"date_end",type:"Date"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{board:{name:"board",type:"SimiBoard",model:"SimiBoard",relationType:"belongsTo",keyFrom:"boardId",keyTo:"id"},user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},cV6W:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"Events"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"Events",plural:"Events",path:"Events",idName:"id",properties:{model:{name:"model",type:"string"},ecm:{name:"ecm",type:"any"},payment_details:{name:"payment_details",type:"string"},payment_data:{name:"payment_data",type:"any"},program:{name:"program",type:"string"},sezione_regionale:{name:"sezione_regionale",type:"string",default:"null"},fad:{name:"fad",type:"number"},webinar:{name:"webinar",type:"any"},quality_surveyId:{name:"quality_surveyId",type:"any"},ecm_surveyId:{name:"ecm_surveyId",type:"any"},examId:{name:"examId",type:"any"},days:{name:"days",type:"Array<any>"},demo:{name:"demo",type:"boolean"},sponsorIds:{name:"sponsorIds",type:"Array<any>",default:[]},header:{name:"header",type:"any"},logbookId:{name:"logbookId",type:"string"},progress_mode:{name:"progress_mode",type:"number"},name:{name:"name",type:"string"},edition:{name:"edition",type:"number"},type:{name:"type",type:"string"},date_start:{name:"date_start",type:"Date"},date_end:{name:"date_end",type:"Date"},sede:{name:"sede",type:"string"},address:{name:"address",type:"any"},description:{name:"description",type:"string"},picture:{name:"picture",type:"any"},status:{name:"status",type:"string",default:"pending"},tags:{name:"tags",type:"Array<any>"},subscriptions_end:{name:"subscriptions_end",type:"Date"},subscriptions_max:{name:"subscriptions_max",type:"number"},subscriptions_count:{name:"subscriptions_count",type:"number"},access_level:{name:"access_level",type:"number",default:0},public_name:{name:"public_name",type:"string"},id:{name:"id",type:"any"}},relations:{sponsors:{name:"sponsors",type:"any[]",model:"",relationType:"referencesMany",keyFrom:"sponsorIds",keyTo:"id"},settings:{name:"settings",type:"any",model:"",relationType:"hasOne",keyFrom:"id",keyTo:"eventId"},links:{name:"links",type:"any[]",model:"",relationType:"hasMany",keyFrom:"id",keyTo:"eventId"},exam:{name:"exam",type:"any",model:"",relationType:"belongsTo",keyFrom:"examId",keyTo:"id"},quality_survey:{name:"quality_survey",type:"any",model:"",relationType:"belongsTo",keyFrom:"quality_surveyId",keyTo:"id"},ecm_survey:{name:"ecm_survey",type:"any",model:"",relationType:"belongsTo",keyFrom:"ecm_surveyId",keyTo:"id"},roles:{name:"roles",type:"any[]",model:"",relationType:"hasMany",keyFrom:"id",keyTo:"eventId"},threads:{name:"threads",type:"any[]",model:"",relationType:"hasMany",keyFrom:"id",keyTo:"eventId"}}}}}},cf52:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("QsQ4");i.Observable.prototype.withLatestFrom=r.withLatestFrom},cp0P:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("HDdC"),r=n("DH7j"),s=n("lJxs"),o=n("XoHu"),a=n("Cfvw");function c(...e){if(1===e.length){const t=e[0];if(Object(r.a)(t))return l(t,null);if(Object(o.a)(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return l(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return l(e=1===e.length&&Object(r.a)(e[0])?e[0]:e,null).pipe(Object(s.a)(e=>t(...e)))}return l(e,null)}function l(e,t){return new i.a(n=>{const i=e.length;if(0===i)return void n.complete();const r=new Array(i);let s=0,o=0;for(let c=0;c<i;c++){const l=Object(a.a)(e[c]);let u=!1;n.add(l.subscribe({next:e=>{u||(u=!0,o++),r[c]=e},error:e=>n.error(e),complete:()=>
1{s++,s!==i&&u||(o===i&&n.next(t?t.reduce((e,t,n)=>(e[t]=r[n],e),{}):r),n.complete())}}))}})}},dN2r:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SurveyStatistics"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SurveyStatistics",plural:"SurveyStatistics",path:"SurveyStatistics",idName:"id",properties:{surveyId:{name:"surveyId",type:"any"},accesses:{name:"accesses",type:"number"},submissions:{name:"submissions",type:"number"},participants:{name:"participants",type:"Array<any>"},timestamp:{name:"timestamp",type:"Date"},id:{name:"id",type:"any"}},relations:{survey:{name:"survey",type:"Survey",model:"Survey",relationType:"belongsTo",keyFrom:"surveyId",keyTo:"id"}}}}}},dPoE:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"Auth"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"Auth",plural:"Auth",path:"Auth",idName:"id",properties:{id:{name:"id",type:"number"}},relations:{}}}}},dkDA:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("7o/Q"),r=n("WMd4");function s(){return function(e){return e.lift(new o)}}class o{call(e,t){return t.subscribe(new a(e))}}class a extends i.a{constructor(e){super(e)}_next(e){this.destination.next(r.a.createNext(e))}_error(e){const t=this.destination;t.next(r.a.createError(e)),t.complete()}_complete(){const e=this.destination;e.next(r.a.createComplete()),e.complete()}}},dmrq:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getCompiler(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveySubmissions/:id/compiler",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getAccess(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveySubmissions/:id/access",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getSurvey(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveySubmissions/:id/survey",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveySubmissions/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}getModelName(){return"SurveySubmission"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},"e/Dd":function(e,t){let n;const i=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return i[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return void 0!==n},t.toSJIS=function(e){return n(e)}},e6BP:function(e,t){function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){const t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=n},eIep:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("lJxs"),r=n("Cfvw"),s=n("zx2A");function o(e,t){return"function"==typeof t?n=>n.pipe(o((n,s)=>Object(r.a)(e(n,s)).pipe(Object(i.a)((e,i)=>t(n,e,s,i))))):t=>t.lift(new a(e))}class a{constructor(e){this.project=e}call(e,t){return t.subscribe(new c(e,this.project))}}class c extends s.b{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const n=new s.a(this),i=this.destination;i.add(n),this.innerSubscription=Object(s.c)(e,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}},eMMX:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SurveyWriter"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SurveyWriter",plural:"SurveyWriters",path:"SurveyWriters",idName:"id",properties:{userId:{name:"userId",type:"any"},publicName:{name:"publicName",type:"string"},maxSurveys:{name:"maxSurveys",type:"number"},currentSurveys:{name:"currentSurveys",type:"number",default:0},maxAccesses:{name:"maxAccesses",type:"number"},currentAccesses:{name:"currentAccesses",type:"number",default:0},maxSubmissions:{name:"maxSubmissions",type:"number"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{surveys:{name:"surveys",type:"Survey[]",model:"Survey",relationType:"hasMany",modelThrough:"SurveyWriterMapping",keyThrough:"surveyId",keyFrom:"id",keyTo:"writerId"},mappings:{name:"mappings",type:"SurveyWriterMapping[]",model:"SurveyWriterMapping",relationType:"hasMany",keyFrom:"id",keyTo:"writerId"},user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},eNo3:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiPodcast"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiPodcast",plural:"SimiPodcasts",path:"SimiPodcasts",idName:"id",properties:{targetId:{name:"targetId",type:"any"},targetType:{name:"targetType",type:"string"},access_level:{name:"access_level",type:"number",default:0},name:{name:"name",type:"string"},description:{name:"description",type:"string"},section:{name:"section",type:"string"},order:{name:"order",type:"number"},resource:{name:"resource",type:"any"},tags:{name:"tags",type:"Array<any>"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{target:{name:"target",type:"any",model:"",relationType:"belongsTo",keyFrom:"targetId",keyTo:"id"}}}}}},eNwd:function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return c});var i=n("3N8a");
1class r extends i.a{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}var s=n("IjjT");class o extends s.a{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,i=-1,r=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++i<r&&(e=t.shift()));if(this.active=!1,n){for(;++i<r&&(e=t.shift());)e.unsubscribe();throw n}}}const a=new o(r),c=a},eQOe:function(e,t){function n(e,n,i){switch(e){case t.Patterns.PATTERN000:return(n+i)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return i%3==0;case t.Patterns.PATTERN011:return(n+i)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(i/3))%2==0;case t.Patterns.PATTERN101:return n*i%2+n*i%3==0;case t.Patterns.PATTERN110:return(n*i%2+n*i%3)%2==0;case t.Patterns.PATTERN111:return(n*i%3+(n+i)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){const t=e.size;let n=0,i=0,r=0,s=null,o=null;for(let a=0;a<t;a++){i=r=0,s=o=null;for(let c=0;c<t;c++){let t=e.get(a,c);t===s?i++:(i>=5&&(n+=i-5+3),s=t,i=1),t=e.get(c,a),t===o?r++:(r>=5&&(n+=r-5+3),o=t,r=1)}i>=5&&(n+=i-5+3),r>=5&&(n+=r-5+3)}return n},t.getPenaltyN2=function(e){const t=e.size;let n=0;for(let i=0;i<t-1;i++)for(let r=0;r<t-1;r++){const t=e.get(i,r)+e.get(i,r+1)+e.get(i+1,r)+e.get(i+1,r+1);4!==t&&0!==t||n++}return 3*n},t.getPenaltyN3=function(e){const t=e.size;let n=0,i=0,r=0;for(let s=0;s<t;s++){i=r=0;for(let o=0;o<t;o++)i=i<<1&2047|e.get(s,o),o>=10&&(1488===i||93===i)&&n++,r=r<<1&2047|e.get(o,s),o>=10&&(1488===r||93===r)&&n++}return 40*n},t.getPenaltyN4=function(e){let t=0;const n=e.data.length;for(let i=0;i<n;i++)t+=e.data[i];return 10*Math.abs(Math.ceil(100*t/n/5)-10)},t.applyMask=function(e,t){const i=t.size;
1for(let r=0;r<i;r++)for(let s=0;s<i;s++)t.isReserved(s,r)||t.xor(s,r,n(e,s,r))},t.getBestMask=function(e,n){const i=Object.keys(t.Patterns).length;let r=0,s=1/0;for(let o=0;o<i;o++){n(o),t.applyMask(o,e);const i=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(o,e),i<s&&(s=i,r=o)}return r}},ekOh:function(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(i){return n}}},eniD:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"CourseRecording"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"CourseRecording",plural:"CourseRecordings",path:"CourseRecordings",idName:"id",properties:{eventId:{name:"eventId",type:"any"},userId:{name:"userId",type:"any"},subscriptionId:{name:"subscriptionId",type:"any"},type:{name:"type",type:"string"},title:{name:"title",type:"string"},description:{name:"description",type:"string"},resource:{name:"resource",type:"any"},access_level:{name:"access_level",type:"number",default:0},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{event:{name:"event",type:"Course",model:"Course",relationType:"belongsTo",keyFrom:"eventId",keyTo:"id"},subscription:{name:"subscription",type:"CourseSubscription",model:"CourseSubscription",relationType:"belongsTo",keyFrom:"subscriptionId",keyTo:"id"},user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},fD28:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getCongress(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubmissions/:id/congress",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getProfile(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubmissions/:id/profile",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getAccess(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubmissions/:id/access",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}findByIdReviews(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubmissions/:id/reviews/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}findByIdAssignments(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubmissions/:id/assignments/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}getReviews(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubmissions/:id/reviews",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}countReviews(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubmissions/:id/reviews/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getAssignments(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubmissions/:id/assignments",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}countAssignments(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubmissions/:id/assignments/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubmissions/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}setresult(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubmissions/:id/result",r={id:e},s={};return null!=t&&(s.value=t),this.request("POST",i,r,s,{},null,n)}confirm(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubmissions/:id/confirm";return this.request("PUT",n,{id:e},{},{},null,t)}setPresenters(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubmissions/:id/set-presenters",r={id:e},s={};return null!=t&&(s.presenters=t),this.request("POST",i,r,s,{},null,n)}getPending(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubmissions/pending",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countPending(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubmissions/pending/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}getConfirmed(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubmissions/confirmed",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countConfirmed(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubmissions/confirmed/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}uploadimage(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubmissions/:id/upload/image";return this.request("POST",n,{id:e},{},{},null,t)}getModelName(){return"CongressSubmission"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},fXoL:function(e,t,n){"use strict";n.d(t,"a",function(){return cn}),n.d(t,"b",function(){return Ou}),n.d(t,"c",function(){return ku}),n.d(t,"d",function(){return _u}),n.d(t,"e",function(){return wu}),n.d(t,"f",function(){return kd}),n.d(t,"g",function(){return ud}),n.d(t,"h",function(){return ll}),n.d(t,"i",function(){return Vu}),n.d(t,"j",function(){return Rc}),n.d(t,"k",function(){return Eu}),n.d(t,"l",function(){return Nc}),n.d(t,"m",function(){return yd}),n.d(t,"n",function(){return Ai}),n.d(t,"o",function(){return Jl}),n.d(t,"p",function(){return In}),n.d(t,"q",function(){return As}),n.d(t,"r",function(){return xn}),n.d(t,"s",function(){return E}),n.d(t,"t",function(){return an}),n.d(t,"u",function(){return Ws}),n.d(t,"v",function(){return nl}),n.d(t,"w",function(){return rl}),n.d(t,"x",function(){return Au}),n.d(t,"y",function(){return _l}),n.d(t,"z",function(){return hd}),n.d(t,"A",function(){return vl}),n.d(t,"B",function(){return sd}),n.d(t,"C",function(){return Bu}),n.d(t,"D",function(){return An}),n.d(t,"E",function(){return Pu}),n.d(t,"F",function(){return Tu}),n.d(t,"G",function(){return tu}),n.d(t,"H",function(){return Fc}),n.d(t,"I",function(){return zc}),n.d(t,"J",function(){return ji}),n.d(t,"K",function(){return qc}),n.d(t,"L",function(){return ki}),n.d(t,"M",function(){return En}),n.d(t,"N",function(){return be}),n.d(t,"O",function(){return Mn}),n.d(t,"P",function(){return gd}),n.d(t,"Q",function(){return gl}),n.d(t,"R",function(){return $u}),n.d(t,"S",function(){return ln}),n.d(t,"T",function(){return Uc}),n.d(t,"U",function(){return kl}),n.d(t,"V",function(){return j}),n.d(t,"W",function(){return od}),n.d(t,"X",function(){return id}),n.d(t,"Y",function(){return p}),n.d(t,"Z",function(){return Tn}),n.d(t,"ab",function(){return nd}),n.d(t,"bb",function(){return _d}),n.d(t,"cb",function(){return Xu}),n.d(t,"db",function(){return xu}),n.d(t,"eb",function(){return Ms}),n.d(t,"fb",function(){return Aa}),n.d(t,"gb",function(){return m}),n.d(t,"hb",function(){return _i}),n.d(t,"ib",function(){return ni}),n.d(t,"jb",function(){return Hn}),n.d(t,"kb",function(){return Gn}),n.d(t,"lb",function(){return Qn}),n.d(t,"mb",function(){return $n}),n.d(t,"nb",function(){return Yn}),n.d(t,"ob",function(){return Zn}),n.d(t,"pb",function(){return Ta}),n.d(t,"qb",function(){return vd}),n.d(t,"rb",function(){return Pa}),n.d(t,"sb",function(){return Oa}),n.d(t,"tb",function(){return Wn}),n.d(t,"ub",function(){return B}),n.d(t,"vb",function(){return to}),n.d(t,"wb",function(){return Oo}),n.d(t,"xb",function(){return To}),n.d(t,"yb",function(){return Po}),n.d(t,"zb",function(){return Sa}),n.d(t,"Ab",function(){return Se}),n.d(t,"Bb",function(){return u}),n.d(t,"Cb",function(){return Un}),n.d(t,"Db",function(){return Ys}),n.d(t,"Eb",function(){return ye}),n.d(t,"Fb",function(){return Ac}),n.d(t,"Gb",function(){return Mr}),n.d(t,"Hb",function(){return lo}),n.d(t,"Ib",function(){return Ko}),n.d(t,"Jb",function(){return ma}),n.d(t,"Kb",function(){return ba}),n.d(t,"Lb",function(){return Qo}),n.d(t,"Mb",function(){return pu}),n.d(t,"Nb",function(){return J}),n.d(t,"Ob",function(){return oe}),n.d(t,"Pb",function(){return w}),n.d(t,"Qb",function(){return k}),n.d(t,"Rb",function(){return ie}),n.d(t,"Sb",function(){return ae}),n.d(t,"Tb",function(){return go}),n.d(t,"Ub",function(){return _o}),n.d(t,"Vb",function(){return Co}),n.d(t,"Wb",function(){return ko}),n.d(t,"Xb",function(){return wo}),n.d(t,"Yb",function(){return vo}),n.d(t,"Zb",function(){return yo}),n.d(t,"ac",function(){return So}),n.d(t,"bc",function(){return nn}),n.d(t,"cc",function(){return va}
vendor: 58,484 bytes, line 1
1),n.d(t,"dc",function(){return vc}),n.d(t,"ec",function(){return wc}),n.d(t,"fc",function(){return _c}),n.d(t,"gc",function(){return Sn}),n.d(t,"hc",function(){return sn}),n.d(t,"ic",function(){return vu}),n.d(t,"jc",function(){return xo}),n.d(t,"kc",function(){return fu}),n.d(t,"lc",function(){return wt}),n.d(t,"mc",function(){return _t}),n.d(t,"nc",function(){return Mo}),n.d(t,"oc",function(){return Yl}),n.d(t,"pc",function(){return $l}),n.d(t,"qc",function(){return Zl}),n.d(t,"rc",function(){return Lo}),n.d(t,"sc",function(){return Ro}),n.d(t,"tc",function(){return mo}),n.d(t,"uc",function(){return Do}),n.d(t,"vc",function(){return jo}),n.d(t,"wc",function(){return No}),n.d(t,"xc",function(){return Nl}),n.d(t,"yc",function(){return Vl}),n.d(t,"zc",function(){return zl}),n.d(t,"Ac",function(){return Fl}),n.d(t,"Bc",function(){return Bl}),n.d(t,"Cc",function(){return ql}),n.d(t,"Dc",function(){return Ul}),n.d(t,"Ec",function(){return du}),n.d(t,"Fc",function(){return fo}),n.d(t,"Gc",function(){return Li}),n.d(t,"Hc",function(){return He}),n.d(t,"Ic",function(){return Ci}),n.d(t,"Jc",function(){return Si}),n.d(t,"Kc",function(){return re}),n.d(t,"Lc",function(){return ya}),n.d(t,"Mc",function(){return Zo}),n.d(t,"Nc",function(){return _a}),n.d(t,"Oc",function(){return po}),n.d(t,"Pc",function(){return yu}),n.d(t,"Qc",function(){return da}),n.d(t,"Rc",function(){return ha}),n.d(t,"Sc",function(){return pa}),n.d(t,"Tc",function(){return fa}),n.d(t,"Uc",function(){return ga}),n.d(t,"Vc",function(){return hu});var i=n("XNiG"),r=n("quSY"),s=n("HDdC"),o=n("VRyK"),a=n("w1tV");function c(e){for(let t in e)if(e[t]===c)return t;throw Error("Could not find renamed property on target object.")}function l(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function u(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(u).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function d(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const h=c({__forward_ref__:c});function p(e){return e.__forward_ref__=p,e.toString=function(){return u(this())},e}function f(e){return g(e)?e():e}function g(e){return"function"==typeof e&&e.hasOwnProperty(h)&&e.__forward_ref__===p}class m extends Error{constructor(e,t){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(e,t)),this.code=e}}function b(e){return"string"==typeof e?e:null==e?"":String(e)}function y(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():b(e)}function v(e,t){const n=t?` in ${t}`:"";throw new m("201",`No provider for ${y(e)} found${n}`)}function _(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}function w(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function k(e){return{providers:e.providers||[],imports:e.imports||[]}}function C(e){return S(e,P)||S(e,x)}function S(e,t){return e.hasOwnProperty(t)?e[t]:null}function T(e){return e&&(e.hasOwnProperty(O)||e.hasOwnProperty(A))?e[O]:null}const P=c({"\u0275prov":c}),O=c({"\u0275inj":c}),x=c({ngInjectableDef:c}),A=c({ngInjectorDef:c});var E=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});let M;function I(e){const t=M;return M=e,t}function R(e,t,n){const i=C(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&E.Optional?null:void 0!==t?t:void v(u(e),"Injector")}function L(e){return{toString:e}.toString()}var D=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),j=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});const N="undefined"!=typeof globalThis&&globalThis,V="undefined"!=typeof window&&window,z="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,F="undefined"!=typeof global&&global,B=N||F||V||z,q={},U=[],H=[],W=c({"\u0275cmp":c}),G=c({"\u0275dir":c}),Y=c({"\u0275pipe":c}),$=c({"\u0275mod":c}),Z=c({"\u0275loc":c}),Q=c({"\u0275fac":c}),X=c({__NG_ELEMENT_ID__:c});let K=0;function J(e){return L(()=>{const t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===D.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||H,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||j.Emulated,id:"c",styles:e.styles||H,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,s=e.pipes;return n.id+=K++,n.inputs=se(e.inputs,t),n.outputs=se(e.outputs),r&&r.forEach(e=>e(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(ee):null,n.pipeDefs=s?()=>("function"==typeof s?s():s).map(te):null,n})}function ee(e){const t=ce(e)||function(e){return e[G]||null}(e);return t}function te(e){const t=function(e){return e[Y]||null}(e);return t}const ne={};function ie(e){const t={type:e.type,bootstrap:e.bootstrap||H,declarations:e.declarations||H,imports:e.imports||H,exports:e.exports||H,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&L(()=>{ne[e.id]=e.type}),t}function re(e,t){return L(()=>{const n=le(e,!0);n.declarations=t.declarations||H,n.imports=t.imports||H,n.exports=t.exports||H})}function se(e,t){if(null==e)return q;const n={};for(const i in e)if(e.hasOwnProperty(i)){let r=e[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,t&&(t[r]=s)}return n}const oe=J;function ae(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function ce(e){return e[W]||null}function le(e,t){const n=e[$]||null;if(!n&&!0===t)throw new Error(`Type ${u(e)} does not have '\u0275mod' property.`);return n}function ue(e){return Array.isArray(e)&&"object"==typeof e[1]}function de(e){return Array.isArray(e)&&!0===e[1]}function he(e){return 0!=(8&e.flags)}function pe(e){return 2==(2&e.flags)}function fe(e){return 1==(1&e.flags)}function ge(e){return null!==e.template}function me(e,t){return e.hasOwnProperty(Q)?e[Q]:null}class be{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function ye(){return ve}function ve(e){return e.type.prototype.ngOnChanges&&(e.setInput=we),_e}function _e(){const e=ke(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===q)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function we(e,t,n,i){const r=ke(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:q,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],c=o[a];s[a]=new be(c&&c.currentValue,t,o===q),e[i]=t}function ke(e){return e.__ngSimpleChanges__||null}let Ce;function Se(e){Ce=e}function Te(){return void 0!==Ce?Ce:"undefined"!=typeof document?document:void 0}function Pe(e){return!!e.listen}ye.ngInherit=!0;const Oe={createRenderer:(e,t)=>Te()};function xe(e){for(;Array.isArray(e);)e=e[0];return e}function Ae(e,t){return xe(t[e])}function Ee(e,t){return xe(t[e.index])}function Me(e,t){return e.data[t]}function Ie(e,t){return e[t]}function Re(e,t){const n=t[e];return ue(n)?n:n[0]}function Le(e){const t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function De(e){return 4==(4&e[2])}function je(e){return 128==(128&e[2])}function Ne(e,t){return null==t?null:e[t]}function Ve(e){e[18]=0}function ze(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const Fe={lFrame:pt(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Be(){return Fe.bindingsEnabled}function qe(){return Fe.lFrame.lView}function Ue(){return Fe.lFrame.tView}function He(e){Fe.lFrame.contextLView=e}function We(){let e=Ge();for(;null!==e&&64===e.type;)e=e.parent;return e}function Ge(){return Fe.lFrame.currentTNode}function Ye(){const e=Fe.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function $e(e,t){const n=Fe.lFrame;n.currentTNode=e,n.isParent=t}function Ze(){return Fe.lFrame.isParent}function Qe(){Fe.lFrame.isParent=!1}function Xe(){return Fe.isInCheckNoChangesMode}function Ke(e){Fe.isInCheckNoChangesMode=e}function Je(){const e=Fe.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function et(){return Fe.lFrame.bindingIndex}function tt(){return Fe.lFrame.bindingIndex++}function nt(e){const t=Fe.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function it(e){Fe.lFrame.inI18n=e}function rt(e,t){const n=Fe.lFrame;n.bindingIndex=n.bindingRootIndex=e,st(t)}function st(e){Fe.lFrame.currentDirectiveIndex=e}function ot(e){const t=Fe.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function at(){return Fe.lFrame.currentQueryIndex}function ct(e){Fe.lFrame.currentQueryIndex=e}function lt(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function ut(e,t,n){if(n&E.SkipSelf){let i=t,r=e;for(;i=i.parent,!(null!==i||n&E.Host||(i=lt(r),null===i)||(r=r[15],10&i.type)););if(null===i)return!1;t=i,e=r}const i=Fe.lFrame=ht();return i.currentTNode=t,i.lView=e,!0}function dt(e){const t=ht(),n=e[1];Fe.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ht(){const e=Fe.lFrame,t=null===e?null:e.child;return null===t?pt(e):t}function pt(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function ft(){const e=Fe.lFrame;return Fe.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const gt=ft;function mt(){const e=ft();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function bt(){return Fe.lFrame.selectedIndex}function yt(e){Fe.lFrame.selectedIndex=e}function vt(){const e=Fe.lFrame;return Me(e.tView,e.selectedIndex)}function _t(){Fe.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function wt(){Fe.lFrame.currentNamespace=null}function kt(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n<i;n++){const t=e.data[n].type.prototype,{ngAfterContentInit:i,ngAfterContentChecked:r,ngAfterViewInit:s,ngAfterViewChecked:o,ngOnDestroy:a}=t;i&&(e.contentHooks||(e.contentHooks=[])).push(-n,i),r&&((e.contentHooks||(e.contentHooks=[])).push(n,r),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,r)),s&&(e.viewHooks||(e.viewHooks=[])).push(-n,s),o&&((e.viewHooks||(e.viewHooks=[])).push(n,o),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,o)),null!=a&&(e.destroyHooks||(e.destroyHooks=[])).push(n,a)}}function Ct(e,t,n){Pt(e,t,3,n)}function St(e,t,n,i){(3&e[2])===n&&Pt(e,t,n,i)}function Tt(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Pt(e,t,n,i){const r=null!=i?i:-1,s=t.length-1;let o=0;for(let a=void 0!==i?65535&e[18]:0;a<s;a++)if("number"==typeof t[a+1]){if(o=t[a],null!=i&&o>=i)break}else t[a]<0&&(e[18]+=65536),(o<r||-1==r)&&(Ot(e,n,t,a),e[18]=(4294901760&e[18])+a+2),a++}function Ot(e,t,n,i){const r=n[i]<0,s=n[i+1],o=e[r?-n[i]:n[i]];if(r){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{s.call(o)}finally{}}}else try{s.call(o)}finally{}}class xt{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function At(e,t,n){const i=Pe(e);let r=0;for(;r<n.length;){const s=n[r];if("number"==typeof s){if(0!==s)break;r++;const o=n[r++],a=n[r++],c=n[r++];i?e.setAttribute(t,a,c,o):t.setAttributeNS(o,a,c)}else{const o=s,a=n[++r];Mt(o)?i&&e.setProperty(t,o,a):i?e.setAttribute(t,o,a):t.setAttribute(o,a),r++}}return r}function Et(e){return 3===e||4===e||6===e}function Mt(e){return 64===e.charCodeAt(0)}function It(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let i=0;i<t.length;i++){const r=t[i];"number"==typeof r?n=r:0===n||Rt(e,n,r,null,-1===n||2===n?t[++i]:null)}}return e}function Rt(e,t,n,i,r){let s=0,o=e.length;if(-1===t)o=-1;else for(;s<e.length;){const n=e[s++];if("number"==typeof n){if(n===t){o=-1;break}if(n>t){o=s-1;break}}}for(;s<e.length;){const t=e[s];if("number"==typeof t)break;if(t===n){if(null===i)return void(null!==r&&(e[s+1]=r));if(i===e[s+1])return void(e[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(e.splice(o,0,t),s=o+1),e.splice(s++,0,n),null!==i&&e.splice(s++,0,i),null!==r&&e.splice(s++,0,r)}function Lt(e){return-1!==e}function Dt(e){return 32767&e}function jt(e,t){let n=e>>16,i=t;for(;n>0;)i=i[15],n--;return i}let Nt=!0;function Vt(e){const t=Nt;return Nt=e,t}let zt=0;function Ft(e,t){const n=qt(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,Bt(i.data,e),Bt(t,null),Bt(i.blueprint,null));const r=Ut(e,t),s=e.injectorIndex;if(Lt(r)){const e=Dt(r),n=jt(r,t),i=n[1].data;for(let r=0;r<8;r++)t[s+r]=n[e+r]|i[e+r]}return t[s+8]=r,s}function Bt(e,t){e.push(0,0,0,0,0,0,0,0,t)}function qt(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Ut(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,r=t;for(;null!==r;){const e=r[1],t=e.type;if(i=2===t?e.declTNode:1===t?r[6]:null,null===i)return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Ht(e,t,n){!function(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(X)&&(i=n[X]),null==i&&(i=n[X]=zt++);const r=255&i;t.data[e+(r>>5)]|=1<<r}(e,t,n)}function Wt(e,t,n){if(n&E.Optional)return e;v(t,"NodeInjector")}function Gt(e,t,n,i){if(n&E.Optional&&void 0===i&&(i=null),0==(n&(E.Self|E.Host))){const r=e[9],s=I(void 0);try{return r?r.get(t,i,n&E.Optional):R(t,i,n&E.Optional)}finally{I(s)}}return Wt(i,t,n)}function Yt(e,t,n,i=E.Default,r){if(null!==e){const s=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(X)?e[X]:void 0;return"number"==typeof t?t>=0?255&t:Zt:t}(n);if("function"==typeof s){if(!ut(t,e,i))return i&E.Host?Wt(r,n,i):Gt(t,n,i,r);try{const e=s();if(null!=e||i&E.Optional)return e;v(n)}finally{gt()}}else if("number"==typeof s){let r=null,o=qt(e,t),a=-1,c=i&E.Host?t[16][6]:null;for((-1===o||i&E.SkipSelf)&&(a=-1===o?Ut(e,t):t[o+8],-1!==a&&en(i,!1)?(r=t[1],o=Dt(a),t=jt(a,t)):o=-1);-1!==o;){const e=t[1];if(Jt(s,o,e.data)){const e=Qt(o,t,n,r,i,c);if(e!==$t)return e}a=t[o+8],-1!==a&&en(i,t[1].data[o+8]===c)&&Jt(s,o,t)?(r=e,o=Dt(a),t=jt(a,t)):o=-1}}}return Gt(t,n,i,r)}const $t={};function Zt(){return new tn(We(),qe())}function Qt(e,t,n,i,r,s){const o=t[1],a=o.data[e+8],c=Xt(a,o,n,null==i?pe(a)&&Nt:i!=o&&0!=(3&a.type),r&E.Host&&s===a);return null!==c?Kt(t,o,c,a):$t}function Xt(e,t,n,i,r){const s=e.providerIndexes,o=t.data,a=1048575&s,c=e.directiveStart,l=s>>20,u=r?a+l:e.directiveEnd;for(let d=i?a:a+l;d<u;d++){const e=o[d];if(d<c&&n===e||d>=c&&e.type===n)return d}if(r){const e=o[c];if(e&&ge(e)&&e.type===n)return c}return null}function Kt(e,t,n,i){let r=e[n];const s=t.data;if(r instanceof xt){const o=r;o.resolving&&function(e,t){throw new m("200",`Circular dependency in DI detected for ${e}`)}(y(s[n]));const a=Vt(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?I(o.injectImpl):null;ut(e,i,E.Default);try{r=e[n]=o.factory(void 0,s,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const i=ve(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{null!==c&&I(c),Vt(a),o.resolving=!1,gt()}}return r}function Jt(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function en(e,t){return!(e&E.Self||e&E.Host&&t)}class tn{constructor(e,t){this._tNode=e,this._lView=t}get(e,t){return Yt(this._tNode,this._lView,e,void 0,t)}}function nn(e){return L(()=>{const t=e.prototype.constructor,n=t[Q]||rn(t),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const e=r[Q]||rn(r);if(e&&e!==n)return e;r=Object.getPrototypeOf(r)}return e=>new e})}function rn(e){return g(e)?()=>{const t=rn(f(e));return t&&t()}:me(e)}function sn(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const e=n.length;let i=0;for(;i<e;){const r=n[i];if(Et(r))break;if(0===r)i+=2;else if("number"==typeof r)for(i++;i<e&&"string"==typeof n[i];)i++;else{if(r===t)return n[i+1];i+=2}}}return null}(We(),e)}function on(e,t,n){return L(()=>{const i=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function r(...e){if(this instanceof r)return i.apply(this,e),this;const t=new r(...e);return n.annotation=t,n;function n(e,n,i){const r=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;for(;r.length<=i;)r.push(null);return(r[i]=r[i]||[]).push(t),e}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}class an{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=w({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const cn=new an("AnalyzeForEntryComponents"),ln=Function;function un(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let i=e[n];Array.isArray(i)?(t===e&&(t=e.slice(0,n)),un(i,t)):t!==e&&t.push(i)}return t}function dn(e,t){e.forEach(e=>Array.isArray(e)?dn(e,t):t(e))}function hn(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function pn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function fn(e,t){const n=[];for(let i=0;i<e;i++)n.push(t);return n}function gn(e,t,n){let i=bn(e,t);return i>=0?e[1|i]=n:(i=~i,function(e,t,n,i){let r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function mn(e,t){const n=bn(e,t);if(n>=0)return e[1|n]}function bn(e,t){return function(e,t,n){let i=0,r=e.length>>1;for(;r!==i;){const n=i+(r-i>>1),s=e[n<<1];if(t===s)return n<<1;s>t?r=n:i=n+1}return~(r<<1)}(e,t)}const yn={},vn=/\n/gm,_n=c({provide:String,useValue:c});let wn;function kn(e){const t=wn;return wn=e,t}function Cn(e,t=E.Default){if(void 0===wn)throw new Error("inject() must be called from an injection context");return null===wn?R(e,void 0,t):wn.get(e,t&E.Optional?null:void 0,t)}function Sn(e,t=E.Default){return(M||Cn)(f(e),t)}const Tn=Sn;function Pn(e){const t=[];for(let n=0;n<e.length;n++){const i=f(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let e,n=E.Default;for(let t=0;t<i.length;t++){const r=i[t],s=r.__NG_DI_FLAG__;"number"==typeof s?-1===s?e=r.token:n|=s:e=r}t.push(Sn(e,n))}else t.push(Sn(i))}return t}function On(e,t){return e.__NG_DI_FLAG__=t,e.prototype.__NG_DI_FLAG__=t,e}const xn=On(on("Inject",e=>({token:e})),-1),An=On(on("Optional"),8),En=On(on("Self"),2),Mn=On(on("SkipSelf"),4),In=On(on("Host"),1);let Rn,Ln;function Dn(e){var t;return(null===(t=function(){if(void 0===Rn&&(Rn=null,B.trustedTypes))try{Rn=B.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(t){}return Rn}())||void 0===t?void 0:t.createHTML(e))||e}function jn(e){var t;return(null===(t=function(){if(void 0===Ln&&(Ln=null,B.trustedTypes))try{Ln=B.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(t){}return Ln}())||void 0===t?void 0:t.createHTML(e))||e}class Nn{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Vn extends Nn{getTypeName(){return"HTML"}}class zn extends Nn{getTypeName(){return"Style"}}class Fn extends Nn{getTypeName(){return"Script"}}class Bn extends Nn{getTypeName(){return"URL"}}class qn extends Nn{getTypeName(){return"ResourceURL"}}function Un(e){return e instanceof Nn?e.changingThisBreaksApplicationSecurity:e}function Hn(e,t){const n=Wn(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function Wn(e){return e instanceof Nn&&e.getTypeName()||null}function Gn(e){return new Vn(e)}function Yn(e){return new zn(e)}function $n(e){return new Fn(e)}function Zn(e){return new Bn(e)}function Qn(e){return new qn(e)}function Xn(e){const t=new Jn(e);return function(){try{return!!(new window.DOMParser).parseFromString(Dn(""),"text/html")}catch(e){return!1}}()?new Kn(t):t}class Kn{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(Dn(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class Jn{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const t=this.inertDocument.createElement("body");e.appendChild(t)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Dn(e),t;const n=this.inertDocument.createElement("body");return n.innerHTML=Dn(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(e){const t=e.attributes;for(let i=t.length-1;0<i;i--){const n=t.item(i).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||e.removeAttribute(n)}let n=e.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const ei=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,ti=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function ni(e){return(e=String(e)).match(ei)||e.match(ti)?e:"unsafe:"+e}function ii(e){return(e=String(e)).split(",").map(e=>ni(e.trim())).join(", ")}function ri(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function si(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const oi=ri("area,br,col,hr,img,wbr"),ai=ri("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ci=ri("rp,rt"),li=si(ci,ai),ui=si(oi,si(ai,ri("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),si(ci,ri("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),li),di=ri("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),hi=ri("srcset"),pi=si(di,hi,ri("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ri("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),fi=ri("script,style,template");class gi{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!ui.hasOwnProperty(t))return this.sanitizedSomething=!0,!fi.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let i=0;i<n.length;i++){const e=n.item(i),t=e.name,r=t.toLowerCase();if(!pi.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let s=e.value;di[r]&&(s=ni(s)),hi[r]&&(s=ii(s)),this.buf.push(" ",t,'="',yi(s),'"')}return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();ui.hasOwnProperty(t)&&!oi.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(yi(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const mi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,bi=/([^\#-~ |!])/g;function yi(e){return e.replace(/&/g,"&").replace(mi,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(bi,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let vi;function _i(e,t){let n=null;try{vi=vi||Xn(e);let i=t?String(t):"";n=vi.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=n.innerHTML,n=vi.getInertBodyElement(i)}while(i!==s);return Dn((new gi).sanitizeChildren(wi(n)||n))}finally{if(n){const e=wi(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function wi(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var ki=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function Ci(e){const t=Ti();return t?jn(t.sanitize(ki.HTML,e)||""):Hn(e,"HTML")?jn(Un(e)):_i(Te(),b(e))}function Si(e){const t=Ti();return t?t.sanitize(ki.URL,e)||"":Hn(e,"URL")?Un(e):ni(b(e))}function Ti(){const e=qe();return e&&e[12]}function Pi(e){return e.ngDebugContext}function Oi(e){return e.ngOriginalError}function xi(e,...t){e.error(...t)}class Ai{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),i=function(e){return e.ngErrorLogger||xi}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?Pi(e)?Pi(e):this._findContext(Oi(e)):null}_findOriginalError(e){let t=Oi(e);for(;t&&Oi(t);)t=Oi(t);return t}}const Ei=/^>|^->|<!--|-->|--!>|<!-$/g,Mi=/(<|>)/;function Ii(e,t){e.__ngContext__=t}const Ri=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(B))();function Li(e){return{name:"window",target:e.ownerDocument.defaultView}}function Di(e){return e instanceof Function?e():e}var ji=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});let Ni;function Vi(e,t){return Ni(e,t)}function zi(e){const t=e[3];return de(t)?t[3]:t}function Fi(e){return qi(e[13])}function Bi(e){return qi(e[4])}function qi(e){for(;null!==e&&!de(e);)e=e[4];return e}function Ui(e,t,n,i,r){if(null!=i){let s,o=!1;de(i)?s=i:ue(i)&&(o=!0,i=i[0]);const a=xe(i);0===e&&null!==n?null==r?tr(t,n,a):er(t,n,a,r||null,!0):1===e&&null!==n?er(t,n,a,r||null,!0):2===e?pr(t,a,o):3===e&&t.destroyNode(a),null!=s&&function(e,t,n,i,r){const s=n[7];s!==xe(n)&&Ui(t,e,i,s,r);for(let o=10;o<n.length;o++){const r=n[o];gr(r[1],r,e,t,i,s)}}(t,e,s,n,r)}}function Hi(e,t){return Pe(e)?e.createText(t):e.createTextNode(t)}function Wi(e,t,n){Pe(e)?e.setValue(t,n):t.textContent=n}function Gi(e,t){return e.createComment(function(e){return e.replace(Ei,e=>e.replace(Mi,"\u200b$1\u200b"))}(t))}function Yi(e,t,n){return Pe(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function $i(e,t){const n=e[9],i=n.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,ze(r,-1)),n.splice(i,1)}function Zi(e,t){if(e.length<=10)return;const n=10+t,i=e[n];if(i){const s=i[17];null!==s&&s!==e&&$i(s,i),t>0&&(e[n-1][4]=i[4]);const o=pn(e,10+t);gr(i[1],r=i,r[11],2,null,null),r[0]=null,r[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}var r;return i}function Qi(e,t){if(!(256&t[2])){const n=t[11];Pe(n)&&n.destroyNode&&gr(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Xi(e[1],e);for(;t;){let n=null;if(ue(t))n=t[13];else{const e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)ue(t)&&Xi(t[1],t),t=t[3];null===t&&(t=e),ue(t)&&Xi(t[1],t),n=t&&t[4]}t=n}}(t)}}function Xi(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i<n.length;i+=2){const e=t[n[i]];if(!(e instanceof xt)){const t=n[i+1];if(Array.isArray(t))for(let n=0;n<t.length;n+=2){const i=e[t[n]],r=t[n+1];try{r.call(i)}finally{}}else try{t.call(e)}finally{}}}}(e,t),function(e,t){const n=e.cleanup,i=t[7];let r=-1;if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const e=n[s+1],o="function"==typeof e?e(t):xe(t[e]),a=i[r=n[s+2]],c=n[s+3];"boolean"==typeof c?o.removeEventListener(n[s],a,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const e=i[r=n[s+1]];n[s].call(e)}if(null!==i){for(let e=r+1;e<i.length;e++)(0,i[e])();t[7]=null}}(e,t),1===t[1].type&&Pe(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&de(t[3])){n!==t[3]&&$i(n,t);const i=t[19];null!==i&&i.detachView(e)}}}function Ki(e,t,n){return Ji(e,t.parent,n)}function Ji(e,t,n){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){const t=e.data[i.directiveStart].encapsulation;if(t===j.None||t===j.Emulated)return null}return Ee(i,n)}function er(e,t,n,i,r){Pe(e)?e.insertBefore(t,n,i,r):t.insertBefore(n,i,r)}function tr(e,t,n){Pe(e)?e.appendChild(t,n):t.appendChild(n)}function nr(e,t,n,i,r){null!==i?er(e,t,n,i,r):tr(e,t,n)}function ir(e,t){return Pe(e)?e.parentNode(t):t.parentNode}function rr(e,t,n){return ar(e,t,n)}function sr(e,t,n){return 40&e.type?Ee(e,n):null}let or,ar=sr;function cr(e,t){ar=e,or=t}function lr(e,t,n,i){const r=Ki(e,i,t),s=t[11],o=rr(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(n))for(let a=0;a<n.length;a++)nr(s,r,n[a],o,!1);else nr(s,r,n,o,!1);void 0!==or&&or(s,i,t,n,r)}function ur(e,t){if(null!==t){const n=t.type;if(3&n)return Ee(t,e);if(4&n)return hr(-1,e[t.index]);if(8&n){const n=t.child;if(null!==n)return ur(e,n);{const n=e[t.index];return de(n)?hr(-1,n):xe(n)}}if(32&n)return Vi(t,e)()||xe(e[t.index]);{const n=dr(e,t);return null!==n?Array.isArray(n)?n[0]:ur(zi(e[16]),n):ur(e,t.next)}}return null}function dr(e,t){return null!==t?e[16][6].projection[t.projection]:null}function hr(e,t){const n=10+e+1;if(n<t.length){const e=t[n],i=e[1].firstChild;if(null!==i)return ur(e,i)}return t[7]}function pr(e,t,n){const i=ir(e,t);i&&function(e,t,n,i){Pe(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}function fr(e,t,n,i,r,s,o){for(;null!=n;){const a=i[n.index],c=n.type;if(o&&0===t&&(a&&Ii(xe(a),i),n.flags|=4),64!=(64&n.flags))if(8&c)fr(e,t,n.child,i,r,s,!1),Ui(t,e,r,a,s);else if(32&c){const o=Vi(n,i);let c;for(;c=o();)Ui(t,e,r,c,s);Ui(t,e,r,a,s)}else 16&c?mr(e,t,i,n,r,s):Ui(t,e,r,a,s);n=o?n.projectionNext:n.next}}function gr(e,t,n,i,r,s){fr(n,i,e.firstChild,t,r,s,!1)}function mr(e,t,n,i,r,s){const o=n[16],a=o[6].projection[i.projection];if(Array.isArray(a))for(let c=0;c<a.length;c++)Ui(t,e,r,a[c],s);else fr(e,t,a,o[3],r,s,!0)}function br(e,t,n){Pe(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function yr(e,t,n){Pe(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function vr(e,t,n){let i=e.length;for(;;){const r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){const n=t.length;if(r+n===i||e.charCodeAt(r+n)<=32)return r}n=r+1}}function _r(e,t,n){let i=0;for(;i<e.length;){let r=e[i++];if(n&&"class"===r){if(r=e[i],-1!==vr(r.toLowerCase(),t,0))return!0}else if(1===r){for(;i<e.length&&"string"==typeof(r=e[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function wr(e){return 4===e.type&&"ng-template"!==e.value}function kr(e,t,n){return t===(4!==e.type||n?e.value:"ng-template")}function Cr(e,t,n){let i=4;const r=e.attrs||[],s=function(e){for(let t=0;t<e.length;t++)if(Et(e[t]))return t;return e.length}(r);let o=!1;for(let a=0;a<t.length;a++){const c=t[a];if("number"!=typeof c){if(!o)if(4&i){if(i=2|1&i,""!==c&&!kr(e,c,n)||""===c&&1===t.length){if(Sr(i))return!1;o=!0}}else{const l=8&i?c:t[++a];if(8&i&&null!==e.attrs){if(!_r(e.attrs,l,n)){if(Sr(i))return!1;o=!0}continue}const u=Tr(8&i?"class":c,r,wr(e),n);if(-1===u){if(Sr(i))return!1;o=!0;continue}if(""!==l){let e;e=u>s?"":r[u+1].toLowerCase();const t=8&i?e:null;if(t&&-1!==vr(t,l,0)||2&i&&l!==e){if(Sr(i))return!1;o=!0}}}}else{if(!o&&!Sr(i)&&!Sr(c))return!1;if(o&&Sr(c))continue;o=!1,i=c|1&i}}return Sr(i)||o}function Sr(e){return 0==(1&e)}function Tr(e,t,n,i){if(null===t)return-1;let r=0;if(i||!n){let n=!1;for(;r<t.length;){const i=t[r];if(i===e)return r;if(3===i||6===i)n=!0;else{if(1===i||2===i){let e=t[++r];for(;"string"==typeof e;)e=t[++r];continue}if(4===i)break;if(0===i){r+=4;continue}}r+=n?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function Pr(e,t,n=!1){for(let i=0;i<t.length;i++)if(Cr(e,t[i],n))return!0;return!1}function Or(e,t){e:for(let n=0;n<t.length;n++){const i=t[n];if(e.length===i.length){for(let t=0;t<e.length;t++)if(e[t]!==i[t])continue e;return!0}}return!1}function xr(e,t){return e?":not("+t.trim()+")":t}function Ar(e){let t=e[0],n=1,i=2,r="",s=!1;for(;n<e.length;){let o=e[n];if("string"==typeof o)if(2&i){const t=e[++n];r+="["+o+(t.length>0?'="'+t+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""===r||Sr(o)||(t+=xr(s,r),r=""),i=o,s=s||!Sr(i);n++}return""!==r&&(t+=xr(s,r)),t}const Er={};function Mr(e){Ir(Ue(),qe(),bt()+e,Xe())}function Ir(e,t,n,i){if(!i)if(3==(3&t[2])){const i=e.preOrderCheckHooks;null!==i&&Ct(t,i,n)}else{const i=e.preOrderHooks;null!==i&&St(t,i,0,n)}yt(n)}function Rr(e,t){return e<<17|t<<2}function Lr(e){return e>>17&32767}function Dr(e){return 2|e}function jr(e){return(131068&e)>>2}function Nr(e,t){return-131069&e|t<<2}function Vr(e){return 1|e}function zr(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const r=n[i+1];if(-1!==r){const s=e.data[r];ct(n[i]),s.contentQueries(2,t[r],r)}}}function Fr(e,t,n,i,r,s,o,a,c,l){const u=t.blueprint.slice();return u[0]=r,u[2]=140|i,Ve(u),u[3]=u[15]=e,u[8]=n,u[10]=o||e&&e[10],u[11]=a||e&&e[11],u[12]=c||e&&e[12]||null,u[9]=l||e&&e[9]||null,u[6]=s,u[16]=2==t.type?e[16]:u,u}function Br(e,t,n,i,r){let s=e.data[t];if(null===s)s=qr(e,t,n,i,r),Fe.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=i,s.attrs=r;const e=Ye();s.injectorIndex=null===e?-1:e.injectorIndex}return $e(s,!0),s}function qr(e,t,n,i,r){const s=Ge(),o=Ze(),a=e.data[t]=function(e,t,n,i,r,s){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,n,t,i,r);return null===e.firstChild&&(e.firstChild=a),null!==s&&(o?null==s.child&&null!==a.parent&&(s.child=a):null===s.next&&(s.next=a)),a}function Ur(e,t,n,i){if(0===n)return-1;const r=t.length;for(let s=0;s<n;s++)t.push(i),e.blueprint.push(i),e.data.push(null);return r}function Hr(e,t,n){dt(t);try{const i=e.viewQuery;null!==i&&ws(1,i,n);const r=e.template;null!==r&&Yr(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&zr(e,t),e.staticViewQueries&&ws(2,e.viewQuery,n);const s=e.components;null!==s&&function(e,t){for(let n=0;n<t.length;n++)ms(e,t[n])}(t,s)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),i}finally{t[2]&=-5,mt()}}function Wr(e,t,n,i){const r=t[2];if(256==(256&r))return;dt(t);const s=Xe();try{Ve(t),Fe.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&Yr(e,t,n,2,i);const o=3==(3&r);if(!s)if(o){const n=e.preOrderCheckHooks;null!==n&&Ct(t,n,null)}else{const n=e.preOrderHooks;null!==n&&St(t,n,0,null),Tt(t,0)}if(function(e){for(let t=Fi(e);null!==t;t=Bi(t)){if(!t[2])continue;const e=t[9];for(let t=0;t<e.length;t++){const n=e[t];0==(1024&n[2])&&ze(n[3],1),n[2]|=1024}}}(t),function(e){for(let t=Fi(e);null!==t;t=Bi(t))for(let e=10;e<t.length;e++){const n=t[e],i=n[1];je(n)&&Wr(i,n,i.template,n[8])}}(t),null!==e.contentQueries&&zr(e,t),!s)if(o){const n=e.contentCheckHooks;null!==n&&Ct(t,n)}else{const n=e.contentHooks;null!==n&&St(t,n,1),Tt(t,1)}!function(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let e=0;e<n.length;e++){const i=n[e];if(i<0)yt(~i);else{const r=i,s=n[++e],o=n[++e];rt(s,r),o(2,t[r])}}}finally{yt(-1)}}(e,t);const a=e.components;null!==a&&function(e,t){for(let n=0;n<t.length;n++)fs(e,t[n])}(t,a);const c=e.viewQuery;if(null!==c&&ws(2,c,i),!s)if(o){const n=e.viewCheckHooks;null!==n&&Ct(t,n)}else{const n=e.viewHooks;null!==n&&St(t,n,2),Tt(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),s||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,ze(t[3],-1))}finally{mt()}}function Gr(e,t,n,i){const r=t[10],s=!Xe(),o=De(t);try{s&&!o&&r.begin&&r.begin(),o&&Hr(e,t,i),Wr(e,t,n,i)}finally{s&&!o&&r.end&&r.end()}}function Yr(e,t,n,i,r){const s=bt(),o=2&i;try{yt(-1),o&&t.length>20&&Ir(e,t,20,Xe()),n(i,r)}finally{yt(s)}}function $r(e,t,n){if(he(t)){const i=t.directiveEnd;for(let r=t.directiveStart;r<i;r++){const t=e.data[r];t.contentQueries&&t.contentQueries(1,n[r],r)}}}function Zr(e,t,n){Be()&&(function(e,t,n,i){const r=n.directiveStart,s=n.directiveEnd;e.firstCreatePass||Ft(n,t),Ii(i,t);const o=n.initialInputs;for(let a=r;a<s;a++){const i=e.data[a],s=ge(i);s&&ls(t,n,i);const c=Kt(t,e,a,n);Ii(c,t),null!==o&&ds(0,a-r,c,i,0,o),s&&(Re(n.index,t)[8]=c)}}(e,t,n,Ee(n,t)),128==(128&n.flags)&&function(e,t,n){const i=n.directiveStart,r=n.directiveEnd,s=n.index,o=Fe.lFrame.currentDirectiveIndex;try{yt(s);for(let n=i;n<r;n++){const i=e.data[n],r=t[n];st(n),null===i.hostBindings&&0===i.hostVars&&null===i.hostAttrs||rs(i,r)}}finally{yt(-1),st(o)}}(e,t,n))}function Qr(e,t,n=Ee){const i=t.localNames;if(null!==i){let r=t.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?n(t,e):e[o];e[r++]=a}}}function Xr(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Kr(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Kr(e,t,n,i,r,s,o,a,c,l){const u=20+i,d=u+r,h=function(e,t){const n=[];for(let i=0;i<t;i++)n.push(i<e?null:Er);return n}(u,d),p="function"==typeof l?l():l;return h[1]={type:e,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:c,consts:p,incompleteFirstPass:!1}}function Jr(e,t,n,i){const r=Cs(t);null===n?r.push(i):(r.push(n),e.firstCreatePass&&Ss(e).push(i,r.length-1))}function es(e,t,n){for(let i in e)if(e.hasOwnProperty(i)){const r=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,r):n[i]=[t,r]}return n}function ts(e,t,n,i,r,s,o,a){const c=Ee(t,n);let l,u=t.inputs;var d;!a&&null!=u&&(l=u[i])?(Ps(e,n,l,i,r),pe(t)&&function(e,t){const n=Re(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(i="class"===(d=i)?"className":"for"===d?"htmlFor":"formaction"===d?"formAction":"innerHtml"===d?"innerHTML":"readonly"===d?"readOnly":"tabindex"===d?"tabIndex":d,r=null!=o?o(r,t.value||"",i):r,Pe(s)?s.setProperty(c,i,r):Mt(i)||(c.setProperty?c.setProperty(i,r):c[i]=r))}function ns(e,t,n,i){let r=!1;if(Be()){const s=function(e,t,n){const i=e.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];Pr(n,o.selectors,!1)&&(r||(r=[]),Ht(Ft(n,t),e,o.type),ge(o)?(ss(e,n),r.unshift(o)):r.push(o))}return r}(e,t,n),o=null===i?null:{"":-1};if(null!==s){r=!0,as(n,e.data.length,s.length);for(let e=0;e<s.length;e++){const t=s[e];t.providersResolver&&t.providersResolver(t)}let i=!1,a=!1,c=Ur(e,t,s.length,null);for(let r=0;r<s.length;r++){const l=s[r];n.mergedAttrs=It(n.mergedAttrs,l.hostAttrs),cs(e,n,t,c,l),os(c,l,o),null!==l.contentQueries&&(n.flags|=8),null===l.hostBindings&&null===l.hostAttrs&&0===l.hostVars||(n.flags|=128);const u=l.type.prototype;!i&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),i=!0),a||!u.ngOnChanges&&!u.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),a=!0),c++}!function(e,t){const n=t.directiveEnd,i=e.data,r=t.attrs,s=[];let o=null,a=null;for(let c=t.directiveStart;c<n;c++){const e=i[c],n=e.inputs,l=null===r||wr(t)?null:hs(n,r);s.push(l),o=es(n,c,o),a=es(e.outputs,c,a)}null!==o&&(o.hasOwnProperty("class")&&(t.flags|=16),o.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=s,t.inputs=o,t.outputs=a}(e,n)}o&&function(e,t,n){if(t){const i=e.localNames=[];for(let e=0;e<t.length;e+=2){const r=n[t[e+1]];if(null==r)throw new m("301",`Export of name '${t[e+1]}' not found!`);i.push(t[e],r)}}}(n,i,o)}return n.mergedAttrs=It(n.mergedAttrs,n.attrs),r}function is(e,t,n,i,r,s){const o=s.hostBindings;if(o){let n=e.hostBindingOpCodes;null===n&&(n=e.hostBindingOpCodes=[]);const s=~t.index;(function(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(n)!=s&&n.push(s),n.push(i,r,o)}}function rs(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function ss(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function os(e,t,n){if(n){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;ge(t)&&(n[""]=e)}}function as(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function cs(e,t,n,i,r){e.data[i]=r;const s=r.factory||(r.factory=me(r.type)),o=new xt(s,ge(r),null);e.blueprint[i]=o,n[i]=o,is(e,t,0,i,Ur(e,n,r.hostVars,Er),r)}function ls(e,t,n){const i=Ee(t,e),r=Xr(n),s=e[10],o=bs(e,Fr(e,r,null,n.onPush?64:16,i,t,s,s.createRenderer(i,n),null,null));e[t.index]=o}function us(e,t,n,i,r,s,o){if(null==s)Pe(e)?e.removeAttribute(t,r,n):t.removeAttribute(r);else{const a=null==o?b(s):o(s,i||"",r);Pe(e)?e.setAttribute(t,r,a,n):n?t.setAttributeNS(n,r,a):t.setAttribute(r,a)}}function ds(e,t,n,i,r,s){const o=s[t];if(null!==o){const e=i.setInput;for(let t=0;t<o.length;){const r=o[t++],s=o[t++],a=o[t++];null!==e?i.setInput(n,a,r,s):n[s]=a}}}function hs(e,t){let n=null,i=0;for(;i<t.length;){const r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,e[r],t[i+1])),i+=2}else i+=2;else i+=4}return n}function ps(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function fs(e,t){const n=Re(t,e);if(je(n)){const e=n[1];80&n[2]?Wr(e,n,e.template,n[8]):n[5]>0&&gs(n)}}function gs(e){for(let n=Fi(e);null!==n;n=Bi(n))for(let e=10;e<n.length;e++){const t=n[e];if(1024&t[2]){const e=t[1];Wr(e,t,e.template,t[8])}else t[5]>0&&gs(t)}const t=e[1].components;if(null!==t)for(let n=0;n<t.length;n++){const i=Re(t[n],e);je(i)&&i[5]>0&&gs(i)}}function ms(e,t){const n=Re(t,e),i=n[1];!function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(i,n),Hr(i,n,n[8])}function bs(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function ys(e){for(;e;){e[2]|=64;const t=zi(e);if(0!=(512&e[2])&&!t)return e;e=t}return null}function vs(e,t,n){const i=t[10];i.begin&&i.begin();try{Wr(e,t,e.template,n)}catch(r){throw Ts(t,r),r}finally{i.end&&i.end()}}function _s(e){!function(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],i=Le(n),r=i[1];Gr(r,i,r.template,n)}}(e[8])}function ws(e,t,n){ct(0),t(e,n)}const ks=(()=>Promise.resolve(null))();function Cs(e){return e[7]||(e[7]=[])}function Ss(e){return e.cleanup||(e.cleanup=[])}function Ts(e,t){const n=e[9],i=n?n.get(Ai,null):null;i&&i.handleError(t)}function Ps(e,t,n,i,r){for(let s=0;s<n.length;){const o=n[s++],a=n[s++],c=t[o],l=e.data[o];null!==l.setInput?l.setInput(c,r,i,a):c[a]=r}}function Os(e,t,n){const i=Ae(t,e);Wi(e[11],i,n)}function xs(e,t,n){let i=n?e.styles:null,r=n?e.classes:null,s=0;if(null!==t)for(let o=0;o<t.length;o++){const e=t[o];"number"==typeof e?s=e:1==s?r=d(r,e):2==s&&(i=d(i,e+": "+t[++o]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=r:e.classesWithoutHost=r}const As=new an("INJECTOR",-1);class Es{get(e,t=yn){if(t===yn){const t=new Error(`NullInjectorError: No provider for ${u(e)}!`);throw t.name="NullInjectorError",t}return t}}const Ms=new an("Set Injector scope."),Is={},Rs={},Ls=[];let Ds;function js(){return void 0===Ds&&(Ds=new Es),Ds}function Ns(e,t=null,n=null,i){return new Vs(e,n,t||js(),i)}class Vs{constructor(e,t,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];t&&dn(t,n=>this.processProvider(n,e,t)),dn([e],e=>this.processInjectorType(e,[],r)),this.records.set(As,Bs(void 0,this));const s=this.records.get(Ms);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof e?null:u(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=yn,n=E.Default){this.assertNotDestroyed();const i=kn(this);try{if(!(n&E.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(r=e)||"object"==typeof r&&r instanceof an)&&C(e);t=n&&this.injectableDefInScope(n)?Bs(zs(e),Is):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&E.Self?js():this.parent).get(e,t=n&E.Optional&&t===yn?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(u(e)),i)throw s;return function(e,t,n,i){const r=e.ngTempTokenPath;throw t.__source&&r.unshift(t.__source),e.message=function(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=u(t);if(Array.isArray(t))r=t.map(u).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let i=t[n];e.push(n+":"+("string"==typeof i?JSON.stringify(i):u(i)))}r=`{${e.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${e.replace(vn,"\n ")}`}("\n"+e.message,r,n,i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(s,e,"R3InjectorError",this.source)}throw s}finally{kn(i)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(u(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=f(e)))return!1;let i=T(e);const r=null==i&&e.ngModule||void 0,s=void 0===r?e:r,o=-1!==n.indexOf(s);if(void 0!==r&&(i=T(r)),null==i)return!1;if(null!=i.imports&&!o){let e;n.push(s);try{dn(i.imports,i=>{this.processInjectorType(i,t,n)&&(void 0===e&&(e=[]),e.push(i))})}finally{}if(void 0!==e)for(let t=0;t<e.length;t++){const{ngModule:n,providers:i}=e[t];dn(i,e=>this.processProvider(e,n,i||Ls))}}this.injectorDefTypes.add(s);const a=me(s)||(()=>new s);this.records.set(s,Bs(a,Is));const c=i.providers;if(null!=c&&!o){const t=e;dn(c,e=>this.processProvider(e,t,c))}return void 0!==r&&void 0!==e.providers}processProvider(e,t,n){let i=Us(e=f(e))?e:f(e&&e.provide);const r=function(e,t,n){return qs(e)?Bs(void 0,e.useValue):Bs(Fs(e),Is)}(e);if(Us(e)||!0!==e.multi)this.records.get(i);else{let t=this.records.get(i);t||(t=Bs(void 0,Is,!0),t.factory=()=>Pn(t.multi),this.records.set(i,t)),i=e,t.multi.push(e)}this.records.set(i,r)}hydrate(e,t){var n;return t.value===Is&&(t.value=Rs,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function zs(e){const t=C(e),n=null!==t?t.factory:me(e);if(null!==n)return n;if(e instanceof an)throw new Error(`Token ${u(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=fn(t,"?");throw new Error(`Can't resolve all parameters for ${u(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[P]||e[x]);if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function Fs(e,t,n){let i;if(Us(e)){const t=f(e);return me(t)||zs(t)}if(qs(e))i=()=>f(e.useValue);else if((r=e)&&r.useFactory)i=()=>e.useFactory(...Pn(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))i=()=>Sn(f(e.useExisting));else{const t=f(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return me(t)||zs(t);i=()=>new t(...Pn(e.deps))}var r;return i}function Bs(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function qs(e){return null!==e&&"object"==typeof e&&_n in e}function Us(e){return"function"==typeof e}const Hs=function(e,t,n){return function(e,t=null,n=null,i){const r=Ns(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)};let Ws=(()=>{class e{static create(e,t){return Array.isArray(e)?Hs(e,t,""):Hs(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=yn,e.NULL=new Es,e.\u0275prov=w({token:e,providedIn:"any",factory:()=>Sn(As)}),e.__NG_ELEMENT_ID__=-1,e})();function Gs(e,t){kt(Le(e)[1],We())}function Ys(e){let t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0;const i=[e];for(;t;){let r;if(ge(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);const t=e;t.inputs=$s(e.inputs),t.declaredInputs=$s(e.declaredInputs),t.outputs=$s(e.outputs);const n=r.hostBindings;n&&Xs(e,n);const s=r.viewQuery,o=r.contentQueries;if(s&&Zs(e,s),o&&Qs(e,o),l(e.inputs,r.inputs),l(e.declaredInputs,r.declaredInputs),l(e.outputs,r.outputs),ge(r)&&r.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(r.data.animation)}}const t=r.features;if(t)for(let i=0;i<t.length;i++){const r=t[i];r&&r.ngInherit&&r(e),r===Ys&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){let t=0,n=null;for(let i=e.length-1;i>=0;i--){const r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=It(r.hostAttrs,n=It(n,r.hostAttrs))}}(i)}function $s(e){return e===q?{}:e===H?[]:e}function Zs(e,t){const n=e.viewQuery;e.viewQuery=n?(e,i)=>{t(e,i),n(e,i)}:t}function Qs(e,t){const n=e.contentQueries;e.contentQueries=n?(e,i,r)=>{t(e,i,r),n(e,i,r)}:t}function Xs(e,t){const n=e.hostBindings;e.hostBindings=n?(e,i)=>{t(e,i),n(e,i)}:t}let Ks=null;function Js(){if(!Ks){const e=B.Symbol;if(e&&e.iterator)Ks=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Ks=n)}}}return Ks}class eo{constructor(e){this.wrapped=e}static wrap(e){return new eo(e)}static unwrap(e){return eo.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof eo}}function to(e){return!!no(e)&&(Array.isArray(e)||!(e instanceof Map)&&Js()in e)}function no(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function io(e,t,n){return e[t]=n}function ro(e,t){return e[t]}function so(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function oo(e,t,n,i){const r=so(e,t,n);return so(e,t+1,i)||r}function ao(e,t,n,i,r){const s=oo(e,t,n,i);return so(e,t+2,r)||s}function co(e,t,n,i,r,s){const o=oo(e,t,n,i);return oo(e,t+2,r,s)||o}function lo(e,t,n,i){const r=qe();return so(r,tt(),t)&&(Ue(),function(e,t,n,i,r,s){const o=Ee(e,t);us(t[11],o,s,e.value,n,i,r)}(vt(),r,e,t,n,i)),lo}function uo(e,t,n,i){return so(e,tt(),n)?t+b(n)+i:Er}function ho(e,t,n,i,r,s){const o=oo(e,et(),n,r);return nt(2),o?t+b(n)+i+b(r)+s:Er}function po(e,t,n,i,r,s,o,a){const c=qe(),l=Ue(),u=e+20,d=l.firstCreatePass?function(e,t,n,i,r,s,o,a,c){const l=t.consts,u=Br(t,e,4,o||null,Ne(l,a));ns(t,n,u,Ne(l,c)),kt(t,u);const d=u.tViews=Kr(2,u,i,r,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l);return null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(u,l,c,t,n,i,r,s,o):l.data[u];$e(d,!1);const h=c[11].createComment("");lr(l,c,h,d),Ii(h,c),bs(c,c[u]=ps(h,c,h,d)),fe(d)&&Zr(l,c,d),null!=o&&Qr(c,d,a)}function fo(e){return Ie(Fe.lFrame.contextLView,20+e)}function go(e,t=E.Default){const n=qe();return null===n?Sn(e,t):Yt(We(),n,f(e),t)}function mo(e,t,n){const i=qe();return so(i,tt(),t)&&ts(Ue(),vt(),i,e,t,i[11],n,!1),mo}function bo(e,t,n,i,r){const s=r?"class":"style";Ps(e,n,t.inputs[s],s,i)}function yo(e,t,n,i){const r=qe(),s=Ue(),o=20+e,a=r[11],c=r[o]=Yi(a,t,Fe.lFrame.currentNamespace),l=s.firstCreatePass?function(e,t,n,i,r,s,o){const a=t.consts,c=Br(t,e,2,r,Ne(a,s));return ns(t,n,c,Ne(a,o)),null!==c.attrs&&xs(c,c.attrs,!1),null!==c.mergedAttrs&&xs(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(o,s,r,0,t,n,i):s.data[o];$e(l,!0);const u=l.mergedAttrs;null!==u&&At(a,c,u);const d=l.classes;null!==d&&yr(a,c,d);const h=l.styles;null!==h&&br(a,c,h),64!=(64&l.flags)&&lr(s,r,c,l),0===Fe.lFrame.elementDepthCount&&Ii(c,r),Fe.lFrame.elementDepthCount++,fe(l)&&(Zr(s,r,l),$r(s,l,r)),null!==i&&Qr(r,l)}function vo(){let e=We();Ze()?Qe():(e=e.parent,$e(e,!1));const t=e;Fe.lFrame.elementDepthCount--;const n=Ue();n.firstCreatePass&&(kt(n,e),he(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&bo(n,t,qe(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&bo(n,t,qe(),t.stylesWithoutHost,!1)}function _o(e,t,n,i){yo(e,t,n,i),vo()}function wo(e,t,n){const i=qe(),r=Ue(),s=e+20,o=r.firstCreatePass?function(e,t,n,i,r){const s=t.consts,o=Ne(s,i),a=Br(t,e,8,"ng-container",o);return null!==o&&xs(a,o,!0),ns(t,n,a,Ne(s,r)),null!==t.queries&&t.queries.elementStart(t,a),a}(s,r,i,t,n):r.data[s];$e(o,!0);const a=i[s]=i[11].createComment("");lr(r,i,a,o),Ii(a,i),fe(o)&&(Zr(r,i,o),$r(r,o,i)),null!=n&&Qr(i,o)}function ko(){let e=We();const t=Ue();Ze()?Qe():(e=e.parent,$e(e,!1)),t.firstCreatePass&&(kt(t,e),he(e)&&t.queries.elementEnd(e))}function Co(e,t,n){wo(e,t,n),ko()}function So(){return qe()}function To(e){return!!e&&"function"==typeof e.then}function Po(e){return!!e&&"function"==typeof e.subscribe}const Oo=Po;function xo(e,t,n=!1,i){const r=qe(),s=Ue(),o=We();return function(e,t,n,i,r,s,o=!1,a){const c=fe(i),l=e.firstCreatePass&&Ss(e),u=Cs(t);let d=!0;if(3&i.type){const h=Ee(i,t),p=a?a(h):q,f=p.target||h,g=u.length,m=a?e=>a(xe(e[i.index])).target:i.index;if(Pe(n)){let o=null;if(!a&&c&&(o=function(e,t,n,i){const r=e.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const e=r[s];if(e===n&&r[s+1]===i){const e=t[7],n=r[s+2];return e.length>n?e[n]:null}"string"==typeof e&&(s+=2)}return null}(e,t,r,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=s,o.__ngLastListenerFn__=s,d=!1;else{s=Eo(i,t,0,s,!1);const e=n.listen(p.name||f,r,s);u.push(s,e),l&&l.push(r,m,g,g+1)}}else s=Eo(i,t,0,s,!0),f.addEventListener(r,s,o),u.push(s),l&&l.push(r,m,g,o)}else s=Eo(i,t,0,s,!1);const h=i.outputs;let p;if(d&&null!==h&&(p=h[r])){const e=p.length;if(e)for(let n=0;n<e;n+=2){const e=t[p[n]][p[n+1]].subscribe(s),o=u.length;u.push(s,e),l&&l.push(r,i.index,o,-(o+1))}}}(s,r,r[11],o,e,t,n,i),xo}function Ao(e,t,n,i){try{return!1!==n(i)}catch(r){return Ts(e,r),!1}}function Eo(e,t,n,i,r){return function n(s){if(s===Function)return i;const o=2&e.flags?Re(e.index,t):t;0==(32&t[2])&&ys(o);let a=Ao(t,0,i,s),c=n.__ngNextListenerFn__;for(;c;)a=Ao(t,0,c,s)&&a,c=c.__ngNextListenerFn__;return r&&!1===a&&(s.preventDefault(),s.returnValue=!1),a}}function Mo(e=1){return function(e){return(Fe.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Fe.lFrame.contextLView))[8]}(e)}function Io(e,t){let n=null;const i=function(e){const t=e.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(e);for(let r=0;r<t.length;r++){const s=t[r];
1if("*"!==s){if(null===i?Pr(e,s,!0):Or(i,s))return r}else n=r}return n}function Ro(e){const t=qe()[16][6];if(!t.projection){const n=t.projection=fn(e?e.length:1,null),i=n.slice();let r=t.child;for(;null!==r;){const t=e?Io(r,e):0;null!==t&&(i[t]?i[t].projectionNext=r:n[t]=r,i[t]=r),r=r.next}}}function Lo(e,t=0,n){const i=qe(),r=Ue(),s=Br(r,20+e,16,null,n||null);null===s.projection&&(s.projection=t),Qe(),64!=(64&s.flags)&&function(e,t,n){mr(t[11],0,t,n,Ki(e,n,t),rr(n.parent||t[6],n,t))}(r,i,s)}function Do(e,t,n){return jo(e,"",t,"",n),Do}function jo(e,t,n,i,r){const s=qe(),o=uo(s,t,n,i);return o!==Er&&ts(Ue(),vt(),s,e,o,s[11],r,!1),jo}function No(e,t,n,i,r,s,o){const a=qe(),c=ho(a,t,n,i,r,s);return c!==Er&&ts(Ue(),vt(),a,e,c,a[11],o,!1),No}function Vo(e,t,n,i,r){const s=e[n+1],o=null===t;let a=i?Lr(s):jr(s),c=!1;for(;0!==a&&(!1===c||o);){const n=e[a+1];zo(e[a],t)&&(c=!0,e[a+1]=i?Vr(n):Dr(n)),a=i?Lr(n):jr(n)}c&&(e[n+1]=i?Dr(s):Vr(s))}function zo(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&bn(e,t)>=0}const Fo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Bo(e){return e.substring(Fo.key,Fo.keyEnd)}function qo(e){return e.substring(Fo.value,Fo.valueEnd)}function Uo(e,t){const n=Fo.textEnd;return n===t?-1:(t=Fo.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Fo.key=t,n),Go(e,t,n))}function Ho(e,t){const n=Fo.textEnd;let i=Fo.key=Go(e,t,n);return n===i?-1:(i=Fo.keyEnd=function(e,t,n){let i;for(;t<n&&(45===(i=e.charCodeAt(t))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)t++;return t}(e,i,n),i=Yo(e,i,n),i=Fo.value=Go(e,i,n),i=Fo.valueEnd=function(e,t,n){let i=-1,r=-1,s=-1,o=t,a=o;for(;o<n;){const c=e.charCodeAt(o++);if(59===c)return a;34===c||39===c?a=o=$o(e,c,o,n):t===o-4&&85===s&&82===r&&76===i&&40===c?a=o=$o(e,41,o,n):c>32&&(a=o),s=r,r=i,i=-33&c}return a}(e,i,n),Yo(e,i,n))}function Wo(e){Fo.key=0,Fo.keyEnd=0,Fo.value=0,Fo.valueEnd=0,Fo.textEnd=e.length}function Go(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Yo(e,t,n,i){return(t=Go(e,t,n))<n&&t++,t}function $o(e,t,n,i){let r=-1,s=n;for(;s<i;){const n=e.charCodeAt(s++);if(n==t&&92!==r)return s;r=92==n&&92===r?0:n}throw new Error}function Zo(e,t,n){return ea(e,t,n,!1),Zo}function Qo(e,t){return ea(e,t,null,!0),Qo}function Xo(e,t){for(let n=function(e){return Wo(e),Ho(e,Go(e,0,Fo.textEnd))}(t);n>=0;n=Ho(t,n))oa(e,Bo(t),qo(t))}function Ko(e){ta(gn,Jo,e,!0)}function Jo(e,t){for(let n=function(e){return Wo(e),Uo(e,Go(e,0,Fo.textEnd))}(t);n>=0;n=Uo(t,n))gn(e,Bo(t),!0)}function ea(e,t,n,i){const r=qe(),s=Ue(),o=nt(2);s.firstUpdatePass&&ia(s,e,o,i),t!==Er&&so(r,o,t)&&aa(s,s.data[bt()],r,r[11],e,r[o+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=u(Un(e)))),e}(t,n),i,o)}function ta(e,t,n,i){const r=Ue(),s=nt(2);r.firstUpdatePass&&ia(r,null,s,i);const o=qe();if(n!==Er&&so(o,s,n)){const a=r.data[bt()];if(ua(a,i)&&!na(r,s)){let e=i?a.classesWithoutHost:a.stylesWithoutHost;null!==e&&(n=d(e,n||"")),bo(r,a,o,n,i)}else!function(e,t,n,i,r,s,o,a){r===Er&&(r=U);let c=0,l=0,u=0<r.length?r[0]:null,d=0<s.length?s[0]:null;for(;null!==u||null!==d;){const h=c<r.length?r[c+1]:void 0,p=l<s.length?s[l+1]:void 0;let f,g=null;u===d?(c+=2,l+=2,h!==p&&(g=d,f=p)):null===d||null!==u&&u<d?(c+=2,g=u):(l+=2,g=d,f=p),null!==g&&aa(e,t,n,i,g,f,o,a),u=c<r.length?r[c]:null,d=l<s.length?s[l]:null}}(r,a,o,o[11],o[s+1],o[s+1]=function(e,t,n){if(null==n||""===n)return U;const i=[],r=Un(n);if(Array.isArray(r))for(let s=0;s<r.length;s++)e(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&e(i,s,r[s]);else"string"==typeof r&&t(i,r);return i}(e,t,n),i,s)}}function na(e,t){return t>=e.expandoStartIndex}function ia(e,t,n,i){const r=e.data;if(null===r[n+1]){const s=r[bt()],o=na(e,n);ua(s,i)&&null===t&&!o&&(t=!1),t=function(e,t,n,i){const r=ot(e);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=sa(n=ra(null,e,t,n,i),t.attrs,i),s=null);else{const o=t.directiveStylingLast;if(-1===o||e[o]!==r)if(n=ra(r,e,t,n,i),null===s){let n=function(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==jr(i))return e[Lr(i)]}(e,t,i);void 0!==n&&Array.isArray(n)&&(n=ra(null,e,t,n[1],i),n=sa(n,t.attrs,i),function(e,t,n,i){e[Lr(n?t.classBindings:t.styleBindings)]=i}(e,t,i,n))}else s=function(e,t,n){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<r;s++)i=sa(i,e[s].hostAttrs,n);return sa(i,t.attrs,n)}(e,t,i)}return void 0!==s&&(i?t.residualClasses=s:t.residualStyles=s),n}(r,s,t,i),function(e,t,n,i,r,s){let o=s?t.classBindings:t.styleBindings,a=Lr(o),c=jr(o);e[i]=n;let l,u=!1;if(Array.isArray(n)?(l=n[1],(null===l||bn(n,l)>0)&&(u=!0)):l=n,r)if(0!==c){const t=Lr(e[a+1]);e[i+1]=Rr(t,a),0!==t&&(e[t+1]=Nr(e[t+1],i)),e[a+1]=131071&e[a+1]|i<<17}else e[i+1]=Rr(a,0),0!==a&&(e[a+1]=Nr(e[a+1],i)),a=i;else e[i+1]=Rr(c,0),0===a?a=i:e[c+1]=Nr(e[c+1],i),c=i;u&&(e[i+1]=Dr(e[i+1])),Vo(e,l,i,!0),Vo(e,l,i,!1),function(e,t,n,i,r){const s=r?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&bn(s,t)>
1=0&&(n[i+1]=Vr(n[i+1]))}(t,l,e,i,s),o=Rr(a,c),s?t.classBindings=o:t.styleBindings=o}(r,s,t,n,o,i)}}function ra(e,t,n,i,r){let s=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(s=t[a],i=sa(i,s.hostAttrs,r),s!==e);)a++;return null!==e&&(n.directiveStylingLast=a),i}function sa(e,t,n){const i=n?1:2;let r=-1;if(null!==t)for(let s=0;s<t.length;s++){const o=t[s];"number"==typeof o?r=o:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),gn(e,o,!!n||t[++s]))}return void 0===e?null:e}function oa(e,t,n){gn(e,t,Un(n))}function aa(e,t,n,i,r,s,o,a){if(!(3&t.type))return;const c=e.data,l=c[a+1];la(1==(1&l)?ca(c,t,n,r,jr(l),o):void 0)||(la(s)||2==(2&l)&&(s=ca(c,null,n,r,a,o)),function(e,t,n,i,r){const s=Pe(e);if(t)r?s?e.addClass(n,i):n.classList.add(i):s?e.removeClass(n,i):n.classList.remove(i);else{let t=-1===i.indexOf("-")?void 0:ji.DashCase;if(null==r)s?e.removeStyle(n,i,t):n.style.removeProperty(i);else{const o="string"==typeof r&&r.endsWith("!important");o&&(r=r.slice(0,-10),t|=ji.Important),s?e.setStyle(n,i,r,t):n.style.setProperty(i,r,o?"important":"")}}}(i,o,Ae(bt(),n),r,s))}function ca(e,t,n,i,r,s){const o=null===t;let a;for(;r>0;){const t=e[r],s=Array.isArray(t),c=s?t[1]:t,l=null===c;let u=n[r+1];u===Er&&(u=l?U:void 0);let d=l?mn(u,i):c===i?u:void 0;if(s&&!la(d)&&(d=mn(t,i)),la(d)&&(a=d,o))return a;const h=e[r+1];r=o?Lr(h):jr(h)}if(null!==t){let e=s?t.residualClasses:t.residualStyles;null!=e&&(a=mn(e,i))}return a}function la(e){return void 0!==e}function ua(e,t){return 0!=(e.flags&(t?16:32))}function da(e,t=""){const n=qe(),i=Ue(),r=e+20,s=i.firstCreatePass?Br(i,r,1,t,null):i.data[r],o=n[r]=Hi(n[11],t);lr(i,n,o,s),$e(s,!1)}function ha(e){return pa("",e,""),ha}function pa(e,t,n){const i=qe(),r=uo(i,e,t,n);return r!==Er&&Os(i,bt(),r),pa}function fa(e,t,n,i,r){const s=qe(),o=ho(s,e,t,n,i,r);return o!==Er&&Os(s,bt(),o),fa}function ga(e,t,n,i,r,s,o){const a=qe(),c=function(e,t,n,i,r,s,o,a){const c=ao(e,et(),n,r,o);return nt(3),c?t+b(n)+i+b(r)+s+b(o)+a:Er}(a,e,t,n,i,r,s,o);return c!==Er&&Os(a,bt(),c),ga}function ma(e,t,n){ta(gn,Jo,uo(qe(),e,t,n),!0)}function ba(e,t,n,i,r,s,o,a,c){ta(gn,Jo,function(e,t,n,i,r,s,o,a,c,l){const u=co(e,et(),n,r,o,c);return nt(4),u?t+b(n)+i+b(r)+s+b(o)+a+b(c)+l:Er}(qe(),e,t,n,i,r,s,o,a,c),!0)}function ya(e,t,n){ta(oa,Xo,uo(qe(),e,t,n),!1)}function va(e,t,n){const i=qe();return so(i,tt(),t)&&ts(Ue(),vt(),i,e,t,i[11],n,!0),va}function _a(e,t,n){const i=qe();if(so(i,tt(),t)){const r=Ue(),s=vt();ts(r,s,i,e,t,function(e,t,n){return(null===e||ge(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}(ot(r.data),s,i),n,!0)}return _a}const wa=void 0;var ka=["en",[["a","p"],["AM","PM"],wa],[["AM","PM"],wa,wa],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],wa,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],wa,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",wa,"{1} 'at' {0}",wa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let Ca={};function Sa(e,t,n){"string"!=typeof t&&(n=t,t=e[Aa.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Ca[t]=e,n&&(Ca[t][Aa.ExtraData]=n)}function Ta(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=xa(t);if(n)return n;const i=t.split("-")[0];if(n=xa(i),n)return n;if("en"===i)return ka;throw new Error(`Missing locale data for the locale "${e}".`)}function Pa(e){return Ta(e)[Aa.CurrencyCode]||null}function Oa(e){return Ta(e)[Aa.PluralCase]}function xa(e){return e in Ca||(Ca[e]=B.ng&&B.ng.common&&B.ng.common.locales&&B.ng.common.locales[e]),Ca[e]}var Aa=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});const Ea=["zero","one","two","few","many"],Ma={marker:"element"},Ia={marker:"ICU"};var Ra=function(e){return e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT",e}({});let La="en-US";function Da(e){var t;null==(t=e)&&_("Expected localeId to be defined",t,null,"!="),"string"==typeof e&&(La=e.toLowerCase().replace(/_/g,"-"))}function ja(e,t,n){const i=t.insertBeforeIndex,r=Array.isArray(i)?i[0]:i;return null===r?sr(e,0,n):xe(n[r])}function Na(e,t,n,i,r){const s=t.insertBeforeIndex;if(Array.isArray(s)){let o=i,a=null;if(3&t.type||(a=o,o=r),null!==o&&0==(2&t.flags))for(let t=1;t<s.length;t++)er(e,o,n[s[t]],a,!1)}}function Va(e,t){if(e.push(t),e.length>1)for(let n=e.length-2;n>=0;n--){const i=e[n];za(i)||Fa(i,t)&&null===Ba(i)&&qa(i,t.index)}}function za(e){return!(64&e.type)}function Fa(e,t){return za(t)||e.index>t.index}function Ba(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function qa(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(cr(ja,Na),e.insertBeforeIndex=t)}function Ua(e,t){const n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}
1function Ha(e,t,n){const i=qr(e,n,64,null,null);return Va(t,i),i}function Wa(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}let Ga=0,Ya=0;function $a(e,t,n,i){const r=n[11];let s,o=null;for(let a=0;a<t.length;a++){const c=t[a];if("string"==typeof c){const e=t[++a];null===n[e]&&(n[e]=Hi(r,c))}else if("number"==typeof c)switch(1&c){case 0:const l=c>>>17;let u,d;if(null===o&&(o=l,s=ir(r,i)),l===o?(u=i,d=s):(u=null,d=xe(n[l])),null!==d){const t=(131070&c)>>>1;er(r,d,n[t],u,!1);const i=Ua(e,t);if(null!==i&&"object"==typeof i){const t=Wa(i,n);null!==t&&$a(e,i.create[t],n,n[i.anchorIdx])}}break;case 1:const h=t[++a],p=t[++a];us(r,Ae(c>>>1,n),null,null,h,p,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${c}"`)}else switch(c){case Ia:const e=t[++a],i=t[++a];null===n[i]&&Ii(n[i]=Gi(r,e),n);break;case Ma:const s=t[++a],o=t[++a];null===n[o]&&Ii(n[o]=Yi(r,s,null),n)}}}function Za(e,t,n,i,r){for(let s=0;s<n.length;s++){const o=n[s],a=n[++s];if(o&r){let r="";for(let o=s+1;o<=s+a;o++){const s=n[o];if("string"==typeof s)r+=s;else if("number"==typeof s)if(s<0)r+=b(t[i-s]);else{const a=s>>>2;switch(3&s){case 1:const s=n[++o],c=n[++o],l=e.data[a];"string"==typeof l?us(t[11],t[a],null,l,s,r,c):ts(e,l,t,s,r,t[11],c,!1);break;case 0:const u=t[a];null!==u&&Wi(t[11],u,r);break;case 2:Xa(e,Ua(e,a),t,r);break;case 3:Qa(e,Ua(e,a),i,t)}}}}else{const r=n[s+1];if(r>0&&3==(3&r)){const n=Ua(e,r>>>2);t[n.currentCaseLViewIndex]<0&&Qa(e,n,i,t)}}s+=a}}function Qa(e,t,n,i){let r=i[t.currentCaseLViewIndex];if(null!==r){let s=Ga;r<0&&(r=i[t.currentCaseLViewIndex]=~r,s=-1),Za(e,i,t.update[r],n,s)}}function Xa(e,t,n,i){const r=function(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const i=function(e,t){const n=Oa(t)(parseInt(e,10)),i=Ea[n];return void 0!==i?i:"other"}(t,La);n=e.cases.indexOf(i),-1===n&&"other"!==i&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,i);if(Wa(t,n)!==r&&(Ka(e,t,n),n[t.currentCaseLViewIndex]=null===r?null:~r,null!==r)){const i=n[t.anchorIdx];i&&$a(e,t.create[r],n,i)}}function Ka(e,t,n){let i=Wa(t,n);if(null!==i){const r=t.remove[i];for(let t=0;t<r.length;t++){const i=r[t];if(i>0){const e=Ae(i,n);null!==e&&pr(n[11],e)}else Ka(e,Ua(e,~i),n)}}}const Ja=/\ufffd(\d+):?\d*\ufffd/gi,ec=/\ufffd(\d+)\ufffd/,tc=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,nc=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,ic=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,rc=/\uE500/g;function sc(e,t,n,i,r,s,o){const a=Ur(e,i,1,null);let c=a<<Ra.SHIFT,l=Ye();t===l&&(l=null),null===l&&(c|=Ra.APPEND_EAGERLY),o&&(c|=Ra.COMMENT,void 0===Ni&&(Ni=function(){const e=[];let t,n,i=-1;function r(e,t){i=0;const r=Wa(e,t);n=null!==r?e.remove[r]:H}function s(){if(i<n.length){const o=n[i++];return o>0?t[o]:(e.push(i,n),r(t[1].data[~o],t),s())}return 0===e.length?null:(n=e.pop(),i=e.pop(),s())}return function(n,i){for(t=i;e.length;)e.pop();return r(n.value,i),s}}())),r.push(c,null===s?"":s);const u=qr(e,a,o?32:1,null===s?"":s,null);Va(n,u);const d=u.index;return $e(u,!1),null!==l&&t!==l&&function(e,t){let n=e.insertBeforeIndex;var i;null===n?(cr(ja,Na),n=e.insertBeforeIndex=[null,t]):("Expecting array here",(i=Array.isArray(n))!=!0&&_("Expecting array here",i,true,"=="),n.push(t))}(l,d),u}function oc(e,t,n,i,r,s,o){const a=o.match(Ja),c=sc(e,t,n,s,i,a?null:o,!1);a&&ac(r,o,c.index,null,0,null)}function ac(e,t,n,i,r,s){const o=e.length,a=o+1;e.push(null,null);const c=o+2,l=t.split(Ja);let u=0;for(let d=0;d<l.length;d++){const t=l[d];if(1&d){const n=r+parseInt(t,10);e.push(-1-n),u|=cc(n)}else""!==t&&e.push(t)}return e.push(n<<2|(i?1:0)),i&&e.push(i,s),e[o]=u,e[a]=e.length-c,u}function cc(e){return 1<<Math.min(e,31)}function lc(e){let t,n,i="",r=0,s=!1;for(;null!==(t=nc.exec(e));)s?t[0]===`\ufffd/*${n}\ufffd`&&(r=t.index,s=!1):(i+=e.substring(r,t.index+t[0].length),n=t[1],s=!0);return i+=e.substr(r),i}function uc(e,t,n,i,r,s){let o=0;const a={type:r.type,currentCaseLViewIndex:Ur(e,t,1,null),anchorIdx:s,cases:[],create:[],remove:[],update:[]};!function(e,t,n){e.push(cc(t.mainBinding),2,-1-t.mainBinding,n<<2|2)}(n,r,s),function(e,t,n){const i=e.data[t];null===i?e.data[t]=n:i.value=n}(e,s,a);const c=r.values;for(let l=0;l<c.length;l++){const s=c[l],u=[];for(let e=0;e<s.length;e++){const t=s[e];if("string"!=typeof t){const n=u.push(t)-1;s[e]=`\x3c!--\ufffd${n}\ufffd--\x3e`}}o=pc(e,a,t,n,i,r.cases[l],s.join(""),u)|o}o&&function(e,t,n){e.push(t,1,n<<2|3)}(n,o,s)}function dc(e){const t=[],n=[];let i=1,r=0;const s=hc(e=e.replace(tc,function(e,t,n){return i="select"===n?0:1,r=parseInt(t.substr(1),10),""}));for(let o=0;o<s.length;){let e=s[o++].trim();1===i&&(e=e.replace(/\s*(?:=)?(\w+)\s*/,"$1")),e.length&&t.push(e);const r=hc(s[o++]);t.length>n.length&&n.push(r)}return{type:i,mainBinding:r,cases:t,values:n}}function hc(e){if(!e)return[];let t=0;const n=[],i=[],r=/[{}]/g;let s;for(r.lastIndex=0;s=r.exec(e);){const r=s.index;if("}"==s[0]){if(n.pop(),0==n.length){const n=e.substring(t,r);tc.test(n)?i.push(dc(n)):i.push(n),t=r+1}}else{if(0==n.length){const n=e.substring(t,r);i.push(n),t=r+1}n.push("{")}}const o=e.substring(t);return i.push(o),i}function pc(e,t,n,i,r,s,o,a){const c=[],l=[],u=[];t.cases.push(s),t.create.push(c),t.remove.push(l),t.update.push(u);const d=Xn(Te()).getInertBodyElement(o),h=wi(d)||d;return h?fc(e,t,n,i,c,l,u,h,r,a,0):0}function fc(e,t,n,i,r,s,o,a,c,l,u){let d=0,h=a.firstChild;for(;h;){const a=Ur(e,n,1,null);switch(h.nodeType){case Node.ELEMENT_NODE:const p=h,f=p.tagName.toLowerCase();if(ui.hasOwnProperty(f)){bc(r,Ma,f,c,a),e.data[a]=f;const g=p.attributes;for(let e=0;e<g.length;e++){const t=g.item(e),n=t.name.toLowerCase();
1t.value.match(Ja)?pi.hasOwnProperty(n)&&ac(o,t.value,a,t.name,0,di[n]?ni:hi[n]?ii:null):yc(r,a,t)}d=fc(e,t,n,i,r,s,o,h,a,l,u+1)|d,gc(s,a,u)}break;case Node.TEXT_NODE:const g=h.textContent||"",m=g.match(Ja);bc(r,null,m?"":g,c,a),gc(s,a,u),m&&(d=ac(o,g,a,null,0,null)|d);break;case Node.COMMENT_NODE:const b=ec.exec(h.textContent||"");if(b){const t=l[parseInt(b[1],10)];bc(r,Ia,"",c,a),uc(e,n,i,c,t,a),mc(s,a,u)}}h=h.nextSibling}return d}function gc(e,t,n){0===n&&e.push(t)}function mc(e,t,n){0===n&&(e.push(~t),e.push(t))}function bc(e,t,n,i,r){null!==t&&e.push(t),e.push(n,r,0|i<<17|r<<1)}function yc(e,t,n){e.push(t<<1|1,n.name,n.value)}function vc(e,t,n){(function(e,t,n=-1){const i=Ue(),r=qe(),s=20+e,o=Ne(i.consts,t),a=Ye();i.firstCreatePass&&function(e,t,n,i,r,s){const o=Ye(),a=[],c=[],l=[[]];r=function(e,t){if(function(e){return-1===e}(t))return lc(e);{const n=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,i=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return lc(e.substring(n,i))}}(r,s);const u=(d=r,d.replace(rc," ")).split(ic);var d;for(let h=0;h<u.length;h++){let i=u[h];if(0==(1&h)){const s=hc(i);for(let i=0;i<s.length;i++){let u=s[i];if(0==(1&i))""!==u&&oc(e,o,l[0],a,c,n,u);else{const i=u;if("object"!=typeof i)throw new Error(`Unable to parse ICU expression in "${r}" message.`);uc(e,n,c,t,i,sc(e,o,l[0],n,a,"",!0).index)}}}else{const t=47===i.charCodeAt(0),n=(i.charCodeAt(t?1:0),20+Number.parseInt(i.substring(t?2:1)));if(t)l.shift(),$e(Ye(),!1);else{const t=Ha(e,l[0],n);l.unshift([]),$e(t,!0)}}}e.data[i]={create:a,update:c}}(i,null===a?0:a.index,r,s,o,n);const c=i.data[s],l=Ji(i,a===r[6]?null:a,r);!function(e,t,n,i){const r=e[11];for(let s=0;s<t.length;s++){const o=t[s++],a=t[s],c=(o&Ra.APPEND_EAGERLY)===Ra.APPEND_EAGERLY,l=o>>>Ra.SHIFT;let u=e[l];null===u&&(u=e[l]=(o&Ra.COMMENT)===Ra.COMMENT?r.createComment(a):Hi(r,a)),c&&null!==n&&er(r,n,u,i,!1)}}(r,c.create,l,a&&8&a.type?r[a.index]:null),it(!0)})(e,t,n),it(!1)}function _c(e){return so(qe(),tt(),e)&&(Ga|=1<<Math.min(Ya,31)),Ya++,_c}function wc(e){!function(e,t,n){if(Ya>0){const i=e.data[n];Za(e,t,Array.isArray(i)?i:i.update,et()-Ya-1,Ga)}Ga=0,Ya=0}(Ue(),qe(),e+20)}function kc(e,t,n,i,r){if(e=f(e),Array.isArray(e))for(let s=0;s<e.length;s++)kc(e[s],t,n,i,r);else{const s=Ue(),o=qe();let a=Us(e)?e:f(e.provide),c=Fs(e);const l=We(),u=1048575&l.providerIndexes,d=l.directiveStart,h=l.providerIndexes>>20;if(Us(e)||!e.multi){const i=new xt(c,r,go),p=Tc(a,t,r?u:u+h,d);-1===p?(Ht(Ft(l,o),s,a),Cc(s,e,t.length),t.push(a),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=Tc(a,t,u+h,d),f=Tc(a,t,u,u+h),g=f>=0&&n[f];if(r&&!g||!r&&!(p>=0&&n[p])){Ht(Ft(l,o),s,a);const u=function(e,t,n,i,r){const s=new xt(e,n,go);return s.multi=[],s.index=t,s.componentProviders=0,Sc(s,r,i&&!n),s}(r?Oc:Pc,n.length,r,i,c);!r&&g&&(n[f].providerFactory=u),Cc(s,e,t.length,0),t.push(a),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(u),o.push(u)}else Cc(s,e,p>-1?p:f,Sc(n[r?f:p],c,!r&&i));!r&&i&&g&&n[f].componentProviders++}}}function Cc(e,t,n,i){const r=Us(t);if(r||t.useClass){const s=(t.useClass||t).prototype.ngOnDestroy;if(s){const o=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){const e=o.indexOf(n);-1===e?o.push(n,[i,s]):o[e+1].push(i,s)}else o.push(n,s)}}}function Sc(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Tc(e,t,n,i){for(let r=n;r<i;r++)if(t[r]===e)return r;return-1}function Pc(e,t,n,i){return xc(this.multi,[])}function Oc(e,t,n,i){const r=this.multi;let s;if(this.providerFactory){const e=this.providerFactory.componentProviders,t=Kt(n,n[1],this.providerFactory.index,i);s=t.slice(0,e),xc(r,s);for(let n=e;n<t.length;n++)s.push(t[n])}else s=[],xc(r,s);return s}function xc(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function Ac(e,t=[]){return n=>{n.providersResolver=(n,i)=>function(e,t,n){const i=Ue();if(i.firstCreatePass){const r=ge(e);kc(n,i.data,i.blueprint,r,!0),kc(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}class Ec{}class Mc{}class Ic{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${u(e)}. Did you add it to @NgModule.entryComponents?`);
vendor: 42,919 bytes, line 1
1return t.ngComponent=e,t}(e)}}let Rc=(()=>{class e{}return e.NULL=new Ic,e})();function Lc(...e){}function Dc(e,t){return new Nc(Ee(e,t))}const jc=function(){return Dc(We(),qe())};let Nc=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=jc,e})();function Vc(e){return e instanceof Nc?e.nativeElement:e}class zc{}let Fc=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Bc(),e})();const Bc=function(){const e=qe(),t=Re(We().index,e);return function(e){return e[11]}(ue(t)?t:e)};let qc=(()=>{class e{}return e.\u0275prov=w({token:e,providedIn:"root",factory:()=>null}),e})();class Uc{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Hc=new Uc("11.2.14");class Wc{constructor(){}supports(e){return to(e)}create(e){return new Yc(e)}}const Gc=(e,t)=>t;class Yc{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Gc}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,i=0,r=null;for(;t||n;){const s=!n||t&&t.currentIndex<Xc(n,i,r)?t:n,o=Xc(s,i,r),a=s.currentIndex;if(s===n)i--,n=n._nextRemoved;else if(t=t._next,null==s.previousIndex)i++;else{r||(r=[]);const e=o-i,t=a-i;if(e!=t){for(let n=0;n<e;n++){const i=n<r.length?r[n]:r[n]=0,s=i+n;t<=s&&s<e&&(r[n]=i+1)}r[s.previousIndex]=t-e}}o!==a&&e(s,o,a)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!to(e))throw new Error(`Error trying to diff '${u(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,i,r=this._itHead,s=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)n=e[t],i=this._trackByFn(t,n),null!==r&&Object.is(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,n,i,t)),Object.is(r.item,n)||this._addIdentityChange(r,n)):(r=this._mismatch(r,n,i,t),s=!0),r=r._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Js()]();let i;for(;!(i=n.next()).done;)t(i.value)}}(e,e=>{i=this._trackByFn(t,e),null!==r&&Object.is(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,e,i,t)),Object.is(r.item,e)||this._addIdentityChange(r,e)):(r=this._mismatch(r,e,i,t),s=!0),r=r._next,t++}),this.length=t;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,i){let r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,i)):e=this._addAfter(new $c(t,n),r,i),e}_verifyReinsertion(e,t,n,i){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const i=e._prevRemoved,r=e._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Qc),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Qc),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class $c{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Zc{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class Qc{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new Zc,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Xc(e,t,n){const i=e.previousIndex;if(null===i)return i;let r=0;return n&&i<n.length&&(r=n[i]),i+t+r}class Kc{constructor(){}supports(e){return e instanceof Map||no(e)}create(){return new Jc}}class Jc{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||no(e)))throw new Error(`Error trying to diff '${u(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const i=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,i)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}const n=new el(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class el{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function tl(){return new nl([new Wc])}let nl=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||tl()),deps:[[e,new Mn,new An]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.\u0275prov=w({token:e,providedIn:"root",factory:tl}),e})();function il(){return new rl([new Kc])}let rl=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||il()),deps:[[e,new Mn,new An]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=w({token:e,providedIn:"root",factory:il}),e})();function sl(e,t,n,i,r=!1){for(;null!==n;){const s=t[n.index];if(null!==s&&i.push(xe(s)),de(s))for(let e=10;e<s.length;e++){const t=s[e],n=t[1].firstChild;null!==n&&sl(t[1],t,n,i)}const o=n.type;if(8&o)sl(e,t,n.child,i);else if(32&o){const e=Vi(n,t);let r;for(;r=e();)i.push(r)}else if(16&o){const e=dr(t,n);if(Array.isArray(e))i.push(...e);else{const n=zi(t[16]);sl(n[1],n,e,i,!0)}}n=r?n.projectionNext:n.next}return i}class ol{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return sl(t,e,t.firstChild,[])}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(de(e)){const t=e[8],n=t?t.indexOf(this):-1;n>-1&&(Zi(e,n),pn(t,n))}this._attachedToViewContainer=!1}Qi(this._lView[1],this._lView)}onDestroy(e){Jr(this._lView[1],this._lView,null,e)}markForCheck(){ys(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){vs(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){Ke(!0);try{vs(e,t,n)}finally{Ke(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var e;this._appRef=null,gr(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class al extends ol{constructor(e){super(e),this._view=e}detectChanges(){_s(this._view)}checkNoChanges(){!function(e){Ke(!0);try{_s(e)}finally{Ke(!1)}}(this._view)}get context(){return null}}const cl=ul;let ll=(()=>{class e{}return e.__NG_ELEMENT_ID__=cl,e.__ChangeDetectorRef__=!0,e})();function ul(e=!1){return function(e,t,n){if(!n&&pe(e)){const n=Re(e.index,t);return new ol(n,n)}return 47&e.type?new ol(t[16],t):null}(We(),qe(),e)}const dl=[new Kc],hl=new nl([new Wc]),pl=new rl(dl),fl=function(){return yl(We(),qe())};let gl=(()=>{class e{}return e.__NG_ELEMENT_ID__=fl,e})();const ml=gl,bl=class extends ml{constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=Fr(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),Hr(t,n,e),new ol(n)}};function yl(e,t){return 4&e.type?new bl(t,e,Dc(e,t)):null}class vl{}class _l{}const wl=function(){return Ol(We(),qe())};let kl=(()=>{class e{}return e.__NG_ELEMENT_ID__=wl,e})();const Cl=kl,Sl=class extends Cl{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return Dc(this._hostTNode,this._hostLView)}get injector(){return new tn(this._hostTNode,this._hostLView)}get parentInjector(){const e=Ut(this._hostTNode,this._hostLView);if(Lt(e)){const t=jt(e,this._hostLView),n=Dt(e);return new tn(t[1].data[n+8],t)}return new tn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=Tl(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,n){const i=e.createEmbeddedView(t||{});return this.insert(i,n),i}createComponent(e,t,n,i,r){const s=n||this.parentInjector;if(!r&&null==e.ngModule&&s){const e=s.get(vl,null);e&&(r=e)}const o=e.create(s,i,void 0,r);return this.insert(o.hostView,t),o}insert(e,t){const n=e._lView,i=n[1];if(de(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],i=new Sl(t,t[6],t[3]);i.detach(i.indexOf(e))}}const r=this._adjustIndex(t),s=this._lContainer;!function(e,t,n,i){const r=10+i,s=n.length;i>0&&(n[r-1][4]=t),i<s-10?(t[4]=n[r],hn(n,10+i,t)):(n.push(t),t[4]=null),t[3]=n;const o=t[17];null!==o&&n!==o&&function(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(o,t);const a=t[19];null!==a&&a.insertView(e),t[2]|=128}(i,n,s,r);const o=hr(r,s),a=n[11],c=ir(a,s[7]);return null!==c&&function(e,t,n,i,r,s){i[0]=r,i[6]=t,gr(e,i,n,1,r,s)}(i,s[6],a,n,c,o),e.attachToViewContainerRef(),hn(Pl(s),r,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=Tl(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),n=Zi(this._lContainer,t);n&&(pn(Pl(this._lContainer),t),Qi(n[1],n))}detach(e){const t=this._adjustIndex(e,-1),n=Zi(this._lContainer,t);return n&&null!=pn(Pl(this._lContainer),t)?new ol(n):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function Tl(e){return e[8]}function Pl(e){return e[8]||(e[8]=[])}function Ol(e,t){let n;const i=t[e.index];if(de(i))n=i;else{let r;if(8&e.type)r=xe(i);else{const n=t[11];r=n.createComment("");const i=Ee(e,t);er(n,ir(n,i),r,function(e,t){return Pe(e)?e.nextSibling(t):t.nextSibling}(n,i),!1)}t[e.index]=n=ps(i,t,r,e),bs(t,n)}return new Sl(n,e,t)}const xl={};class Al extends Rc{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=ce(e);return new Il(t,this.ngModule)}}function El(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const Ml=new an("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Ri});class Il extends Mc{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(Ar).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return El(this.componentDef.inputs)}get outputs(){return El(this.componentDef.outputs)}create(e,t,n,i){const r=(i=i||this.ngModule)?function(e,t){return{get:(n,i,r)=>{const s=e.get(n,xl,r);return s!==xl||i===xl?s:t.get(n,i,r)}}}(e,i.injector):e,s=r.get(zc,Oe),o=r.get(qc,null),a=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",l=n?function(e,t,n){if(Pe(e))return e.selectRootElement(t,n===j.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Yi(s.createRenderer(null,this.componentDef),c,function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),u=this.componentDef.onPush?576:528,d={components:[],scheduler:Ri,clean:ks,playerHandler:null,flags:0},h=Kr(0,null,null,1,0,null,null,null,null,null),p=Fr(null,h,d,u,null,null,s,a,o,r);let f,g;dt(p);try{const e=function(e,t,n,i,r,s){const o=n[1];n[20]=e;const a=Br(o,20,2,"#host",null),c=a.mergedAttrs=t.hostAttrs;null!==c&&(xs(a,c,!0),null!==e&&(At(r,e,c),null!==a.classes&&yr(r,e,a.classes),null!==a.styles&&br(r,e,a.styles)));const l=i.createRenderer(e,t),u=Fr(n,Xr(t),null,t.onPush?64:16,n[20],a,i,l,null,null);return o.firstCreatePass&&(Ht(Ft(a,n),o,t.type),ss(o,a),as(a,n.length,1)),bs(n,u),n[20]=u}(l,this.componentDef,p,s,a);if(l)if(n)At(a,l,["ng-version",Hc.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let i=1,r=2;for(;i<e.length;){let s=e[i];if("string"==typeof s)2===r?""!==s&&t.push(s,e[++i]):8===r&&n.push(s);else{if(!Sr(r))break;r=s}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);e&&At(a,l,e),t&&t.length>0&&yr(a,l,t.join(" "))}if(g=Me(h,20),void 0!==t){const e=g.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const i=t[n];e.push(null!=i?Array.from(i):null)}}f=function(e,t,n,i,r){const s=n[1],o=function(e,t,n){const i=We();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),cs(e,i,t,Ur(e,t,1,null),n));const r=Kt(t,e,i.directiveStart,i);Ii(r,t);const s=Ee(i,t);return s&&Ii(s,t),r}(s,n,t);if(i.components.push(o),e[8]=o,r&&r.forEach(e=>e(o,t)),t.contentQueries){const e=We();t.contentQueries(1,o,e.directiveStart)}const a=We();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(yt(a.index),is(n[1],a,0,a.directiveStart,a.directiveEnd,t),rs(t,o)),o}(e,this.componentDef,p,d,[Gs]),Hr(h,p,null)}finally{mt()}return new Rl(this.componentType,f,Dc(g,p),p,g)}}class Rl extends Ec{constructor(e,t,n,i,r){super(),this.location=n,this._rootLView=i,this._tNode=r,this.instance=t,this.hostView=this.changeDetectorRef=new al(i),this.componentType=e}get injector(){return new tn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}const Ll=new Map;class Dl extends vl{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Al(this);const n=le(e),i=e[Z]||null;i&&Da(i),this._bootstrapComponents=Di(n.bootstrap),this._r3Injector=Ns(e,t,[{provide:vl,useValue:this},{provide:Rc,useValue:this.componentFactoryResolver}],u(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=Ws.THROW_IF_NOT_FOUND,n=E.Default){return e===Ws||e===vl||e===As?this:this._r3Injector.get(e,t,n)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class jl extends _l{constructor(e){super(),this.moduleType=e,null!==le(e)&&function(e){const t=new Set;!function e(n){const i=le(n,!0),r=i.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${u(t)} vs ${u(t.name)}`)}(r,Ll.get(r),n),Ll.set(r,n));const s=Di(i.imports);for(const o of s)t.has(o)||(t.add(o),e(o))}(e)}(e)}create(e){return new Dl(this.moduleType,e)}}function Nl(e,t,n){const i=Je()+e,r=qe();return r[i]===Er?io(r,i,n?t.call(n):t()):ro(r,i)}function Vl(e,t,n,i){return Wl(qe(),Je(),e,t,n,i)}function zl(e,t,n,i,r){return Gl(qe(),Je(),e,t,n,i,r)}function Fl(e,t,n,i,r,s){return function(e,t,n,i,r,s,o,a){const c=t+n;return ao(e,c,r,s,o)?io(e,c+3,a?i.call(a,r,s,o):i(r,s,o)):Hl(e,c+3)}(qe(),Je(),e,t,n,i,r,s)}function Bl(e,t,n,i,r,s,o){return function(e,t,n,i,r,s,o,a,c){const l=t+n;return co(e,l,r,s,o,a)?io(e,l+4,c?i.call(c,r,s,o,a):i(r,s,o,a)):Hl(e,l+4)}(qe(),Je(),e,t,n,i,r,s,o)}function ql(e,t,n,i,r,s,o,a){const c=Je()+e,l=qe(),u=co(l,c,n,i,r,s);return so(l,c+4,o)||u?io(l,c+5,a?t.call(a,n,i,r,s,o):t(n,i,r,s,o)):ro(l,c+5)}function Ul(e,t,n,i,r,s,o,a,c){const l=Je()+e,u=qe(),d=co(u,l,n,i,r,s);return oo(u,l+4,o,a)||d?io(u,l+6,c?t.call(c,n,i,r,s,o,a):t(n,i,r,s,o,a)):ro(u,l+6)}function Hl(e,t){const n=e[t];return n===Er?void 0:n}function Wl(e,t,n,i,r,s){const o=t+n;return so(e,o,r)?io(e,o+1,s?i.call(s,r):i(r)):Hl(e,o+1)}function Gl(e,t,n,i,r,s,o){const a=t+n;return oo(e,a,r,s)?io(e,a+2,o?i.call(o,r,s):i(r,s)):Hl(e,a+2)}function Yl(e,t){const n=Ue();let i;const r=e+20;n.firstCreatePass?(i=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}throw new m("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const s=i.factory||(i.factory=me(i.type)),o=I(go);try{const e=Vt(!1),t=s();return Vt(e),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,qe(),r,t),t}finally{I(o)}}function $l(e,t,n){const i=e+20,r=qe(),s=Ie(r,i);return Xl(r,Ql(r,i)?Wl(r,Je(),t,s.transform,n,s):s.transform(n))}function Zl(e,t,n,i){const r=e+20,s=qe(),o=Ie(s,r);return Xl(s,Ql(s,r)?Gl(s,Je(),t,o.transform,n,i,o):o.transform(n,i))}function Ql(e,t){return e[1].data[t].pure}function Xl(e,t){return eo.isWrapped(t)&&(t=eo.unwrap(t),e[et()]=Er),t}function Kl(e){return t=>{setTimeout(e,void 0,t)}}const Jl=class extends i.a{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){var i,s,o;let a=e,c=t||(()=>null),l=n;if(e&&"object"==typeof e){const t=e;a=null===(i=t.next)||void 0===i?void 0:i.bind(t),c=null===(s=t.error)||void 0===s?void 0:s.bind(t),l=null===(o=t.complete)||void 0===o?void 0:o.bind(t)}this.__isAsync&&(c=Kl(c),a&&(a=Kl(a)),l&&(l=Kl(l)));const u=super.subscribe({next:a,error:c,complete:l});return e instanceof r.a&&e.add(u),u}};function eu(){return this._results[Js()]()}class tu{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Js(),n=tu.prototype;n[t]||(n[t]=eu)}get changes(){return this._changes||(this._changes=new Jl)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){this.dirty=!1;const n=un(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++){let r=e[i],s=t[i];if(n&&(r=n(r),s=n(s)),s!==r)return!1}return!0}(this._results,n,t))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class nu{constructor(e){this.queryList=e,this.matches=null}clone(){return new nu(this.queryList)}setDirty(){this.queryList.setDirty()}}class iu{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const n=null!==e.contentQueries?e.contentQueries[0]:t.length,i=[];for(let e=0;e<n;e++){const n=t.getByIndex(e);i.push(this.queries[n.indexInDeclarationView].clone())}return new iu(i)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==bu(e,t).matches&&this.queries[t].setDirty()}}class ru{constructor(e,t,n=null){this.predicate=e,this.flags=t,this.read=n}}class su{constructor(e=[]){this.queries=e}elementStart(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let n=0;n<this.length;n++){const i=null!==t?t.length:0,r=this.getByIndex(n).embeddedTView(e,i);r&&(r.indexInDeclarationView=n,null!==t?t.push(r):t=[r])}return null!==t?new su(t):null}template(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class ou{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new ou(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let n=e.parent;for(;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const n=this.metadata.predicate;if(Array.isArray(n))for(let i=0;i<n.length;i++){const r=n[i];this.matchTNodeWithReadOption(e,t,au(t,r)),this.matchTNodeWithReadOption(e,t,Xt(t,e,r,!1,!1))}else n===gl?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Xt(t,e,n,!1,!1))}matchTNodeWithReadOption(e,t,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===Nc||i===kl||i===gl&&4&t.type)this.addMatch(t.index,-2);else{const n=Xt(t,e,i,!1,!1);null!==n&&this.addMatch(t.index,n)}else this.addMatch(t.index,n)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function au(e,t){const n=e.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function cu(e,t,n,i){return-1===n?function(e,t){return 11&e.type?Dc(e,t):4&e.type?yl(e,t):null}(t,e):-2===n?function(e,t,n){return n===Nc?Dc(t,e):n===gl?yl(t,e):n===kl?Ol(t,e):void 0}(e,t,i):Kt(e,e[1],n,t)}function lu(e,t,n,i){const r=t[19].queries[i];if(null===r.matches){const i=e.data,s=n.matches,o=[];for(let e=0;e<s.length;e+=2){const r=s[e];o.push(r<0?null:cu(t,i[r],s[e+1],n.metadata.read))}r.matches=o}return r.matches}function uu(e,t,n,i){const r=e.queries.getByIndex(n),s=r.matches;if(null!==s){const o=lu(e,t,r,n);for(let e=0;e<s.length;e+=2){const n=s[e];if(n>0)i.push(o[e/2]);else{const r=s[e+1],o=t[-n];for(let e=10;e<o.length;e++){const t=o[e];t[17]===t[3]&&uu(t[1],t,r,i)}if(null!==o[9]){const e=o[9];for(let t=0;t<e.length;t++){const n=e[t];uu(n[1],n,r,i)}}}}}return i}function du(e){const t=qe(),n=Ue(),i=at();ct(i+1);const r=bu(n,i);if(e.dirty&&De(t)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{const s=r.crossesNgTemplate?uu(n,t,i,[]):lu(n,t,r,i);e.reset(s,Vc),e.notifyOnChanges()}return!0}return!1}function hu(e,t,n){const i=Ue();i.firstCreatePass&&(mu(i,new ru(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),gu(i,qe(),t)}function pu(e,t,n,i){const r=Ue();if(r.firstCreatePass){const s=We();mu(r,new ru(t,n,i),s.index),function(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(r,e),2==(2&n)&&(r.staticContentQueries=!0)}gu(r,qe(),n)}function fu(){return e=qe(),t=at(),e[19].queries[t].queryList;var e,t}function gu(e,t,n){const i=new tu(4==(4&n));Jr(e,t,i,i.destroy),null===t[19]&&(t[19]=new iu),t[19].queries.push(new nu(i))}function mu(e,t,n){null===e.queries&&(e.queries=new su),e.queries.track(new ou(t,n))}function bu(e,t){return e.queries.getByIndex(t)}function yu(e,t){return yl(e,t)}function vu(e=E.Default){const t=ul(!0);if(null!=t||e&E.Optional)return t;v("ChangeDetectorRef")}const _u=new an("Application Initializer");let wu=(()=>{class e{constructor(e){this.appInits=e,this.resolve=Lc,this.reject=Lc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();To(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(Sn(_u,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();const ku=new an("AppId"),Cu={provide:ku,useFactory:function(){return`${Su()}${Su()}${Su()}`},deps:[]};function Su(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Tu=new an("Platform Initializer"),Pu=new an("Platform ID"),Ou=new an("appBootstrapListener");let xu=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();const Au=new an("LocaleId"),Eu=new an("DefaultCurrencyCode");class Mu{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const Iu=function(e){return new jl(e)},Ru=Iu,Lu=function(e){return Promise.resolve(Iu(e))},Du=function(e){const t=Iu(e),n=Di(le(e).declarations).reduce((e,t)=>{const n=ce(t);return n&&e.push(new Il(n)),e},[]);return new Mu(t,n)},ju=Du,Nu=function(e){return Promise.resolve(Du(e))};let Vu=(()=>{class e{constructor(){this.compileModuleSync=Ru,this.compileModuleAsync=Lu,this.compileModuleAndAllComponentsSync=ju,this.compileModuleAndAllComponentsAsync=Nu}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();const zu=(()=>Promise.resolve(0))();function Fu(e){"undefined"==typeof Zone?zu.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Bu{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Jl(!1),this.onMicrotaskEmpty=new Jl(!1),this.onStable=new Jl(!1),this.onError=new Jl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!n&&t,this.shouldCoalesceRunChangeDetection=n,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let e=B.requestAnimationFrame,t=B.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(B,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Hu(e),Uu(e)},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Hu(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,s,o,a)=>{try{return Wu(e),n.invokeTask(r,s,o,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),Gu(e)}},onInvoke:(n,i,r,s,o,a,c)=>{try{return Wu(e),n.invoke(r,s,o,a,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),Gu(e)}},onHasTask:(t,n,i,r)=>{t.hasTask(i,r),n===i&&("microTask"==r.change?(e._hasPendingMicrotasks=r.microTask,Hu(e),Uu(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:(t,n,i,r)=>(t.handleError(i,r),e.runOutsideAngular(()=>e.onError.emit(r)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Bu.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Bu.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,i){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+i,e,qu,Lc,Lc);try{return r.runTask(s,t,n)}finally{r.cancelTask(s)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}const qu={};function Uu(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Hu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Wu(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Gu(e){e._nesting--,Uu(e)}class Yu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Jl,this.onMicrotaskEmpty=new Jl,this.onStable=new Jl,this.onError=new Jl}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,i){return e.apply(t,n)}}let $u=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Bu.assertNotInAngularZone(),Fu(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Fu(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let i=-1;t&&t>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==i),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.\u0275fac=function(t){return new(t||e)(Sn(Bu))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})(),Zu=(()=>{class e{constructor(){this._applications=new Map,Ju.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return Ju.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();class Qu{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}function Xu(e){Ju=e}let Ku,Ju=new Qu,ed=!0,td=!1;function nd(){return td=!0,ed}function id(){if(td)throw new Error("Cannot enable prod mode after platform setup.");ed=!1}const rd=new an("AllowMultipleToken");class sd{constructor(e,t){this.name=e,this.token=t}}function od(e,t,n=[]){const i=`Platform: ${t}`,r=new an(i);return(t=[])=>{let s=ad();if(!s||s.injector.get(rd,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{const e=n.concat(t).concat({provide:r,useValue:!0},{provide:Ms,useValue:"platform"});!function(e){if(Ku&&!Ku.destroyed&&!Ku.injector.get(rd,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ku=e.get(cd);const t=e.get(Tu,null);t&&t.forEach(e=>e())}(Ws.create({providers:e,name:i}))}return function(e){const t=ad();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function ad(){return Ku&&!Ku.destroyed?Ku:null}let cd=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new Yu:("zone.js"===e?void 0:e)||new Bu({enableLongStackTrace:nd(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(t?t.ngZone:void 0,{ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1}),i=[{provide:Bu,useValue:n}];return n.run(()=>{const t=Ws.create({providers:i,parent:this.injector,name:e.moduleType.name}),r=e.create(t),s=r.injector.get(Ai,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const e=n.onError.subscribe({next:e=>{s.handleError(e)}});r.onDestroy(()=>{dd(this._modules,r),e.unsubscribe()})}),function(e,t,n){try{const i=n();return To(i)?i.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(s,n,()=>{const e=r.injector.get(wu);return e.runInitializers(),e.donePromise.then(()=>(Da(r.injector.get(Au,"en-US")||"en-US"),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,t=[]){const n=ld({},t);return function(e,t,n){const i=new jl(n);return Promise.resolve(i)}(0,0,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(ud);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${u(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(Sn(Ws))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();function ld(e,t){return Array.isArray(t)?t.reduce(ld,e):Object.assign(Object.assign({},e),t)}let ud=(()=>{class e{constructor(e,t,n,i,r){this._zone=e,this._injector=t,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const c=new s.a(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),l=new s.a(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{Bu.assertNotInAngularZone(),Fu(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Bu.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(c,l.pipe(Object(a.a)()))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializer
1s running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof Mc?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(vl),r=n.create(Ws.NULL,[],t||n.selector,i),s=r.location.nativeElement,o=r.injector.get($u,null),a=o&&r.injector.get(Zu);return o&&a&&a.registerApplication(s,o),r.onDestroy(()=>{this.detachView(r.hostView),dd(this.components,r),a&&a.unregisterApplication(s)}),this._loadComponent(r),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;dd(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Ou,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(Sn(Bu),Sn(Ws),Sn(Ai),Sn(Rc),Sn(wu))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();function dd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class hd{}class pd{}const fd={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let gd=(()=>{class e{constructor(e,t){this._compiler=e,this._config=t||fd}load(e){return this.loadAndCompile(e)}loadAndCompile(e){let[t,i]=e.split("#");return void 0===i&&(i="default"),n("zn8P")(t).then(e=>e[i]).then(e=>md(e,t,i)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,i]=e.split("#"),r="NgFactory";return void 0===i&&(i="default",r=""),n("zn8P")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[i+r]).then(e=>md(e,t,i))}}return e.\u0275fac=function(t){return new(t||e)(Sn(Vu),Sn(pd,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();function md(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class bd extends ll{}class yd extends bd{}const vd=function(e){return null},_d=od(null,"core",[{provide:Pu,useValue:"unknown"},{provide:cd,deps:[Ws]},{provide:Zu,deps:[]},{provide:xu,deps:[]}]),wd=[{provide:ud,useClass:ud,deps:[Bu,Ws,Ai,Rc,wu]},{provide:Ml,deps:[Bu],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:wu,useClass:wu,deps:[[new An,_u]]},{provide:Vu,useClass:Vu,deps:[]},Cu,{provide:nl,useFactory:function(){return hl},deps:[]},{provide:rl,useFactory:function(){return pl},deps:[]},{provide:Au,useFactory:function(e){return Da(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new xn(Au),new An,new Mn]]},{provide:Eu,useValue:"USD"}];let kd=(()=>{class e{constructor(e){}}return e.\u0275fac=function(t){return new(t||e)(Sn(ud))},e.\u0275mod=ie({type:e}),e.\u0275inj=k({providers:wd}),e})()},g2LC:function(e,t){e.exports=function(e){if(!e)return!1;var t=n.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var n=Object.prototype.toString},gR38:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CoreApplications/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}getModelName(){return"CoreApplication"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},gRHU:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("2fFW"),r=n("NJ4a");const s={closed:!0,next(e){},error(e){if(i.a.useDeprecatedSynchronousErrorHandling)throw e;Object(r.a)(e)},complete(){}}},gcCN:function(e,t,n){var i=n("qWin").getUint64;e.exports=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},r=12;0===n.version?(n.earliestPresentationTime=t.getUint32(r),n.firstOffset=t.getUint32(r+4),r+=8):(n.earliestPresentationTime=i(e.subarray(r)),n.firstOffset=i(e.subarray(r+8)),r+=16);var s=t.getUint16(r+=2);for(r+=2;s>0;r+=12,s--)n.references.push({referenceType:(128&e[r])>>>7,referencedSize:2147483647&t.getUint32(r),subsegmentDuration:t.getUint32(r+4),startsWithSap:!!(128&e[r+8]),sapType:(112&e[r+8])>>>4,sapDeltaTime:268435455&t.getUint32(r+8)});return n}},gcYM:function(e,t,n){"use strict";n.d(t,"a",function(){return o}
1);var i=n("7o/Q"),r=n("D0XW"),s=n("yuhW");function o(e,t=r.a,n=s.a){return i=>i.lift(new a(e,t,n.leading,n.trailing))}class a{constructor(e,t,n,i){this.duration=e,this.scheduler=t,this.leading=n,this.trailing=i}call(e,t){return t.subscribe(new c(e,this.duration,this.scheduler,this.leading,this.trailing))}}class c extends i.a{constructor(e,t,n,i,r){super(e),this.duration=t,this.scheduler=n,this.leading=i,this.trailing=r,this._hasTrailingValue=!1,this._trailingValue=null}_next(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(l,this.duration,{subscriber:this})),this.leading?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)}}function l(e){const{subscriber:t}=e;t.clearThrottle()}},gwhv:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Webhooks/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}executeAll(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Webhooks/execute",r={};return null!=e&&(r.key=e),null!=t&&(r.instance=t),this.request("POST",i,{},r,{},null,n)}execute(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Webhooks/:id/execute",r={id:e},s={};return null!=t&&(s.instance=t),this.request("POST",i,r,s,{},null,n)}getModelName(){return"Webhook"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},h2bF:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getBoard(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiBoardMembers/:id/board",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiBoardMembers/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiBoardMembers/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}getModelName(){return"SimiBoardMember"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},iNuQ:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getSurvey(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyStatistics/:id/survey",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SurveyStatistics/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}getModelName(){return"SurveyStatistics"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},iadd:function(e,t,n){"use strict";function i(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e}var r=i({HTML:"text/html",isHTML:function(e){return e===r.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),s=i({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===s.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.assign=function(e,t){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},t.find=function(e,t,n){if(void 0===n&&(n=Array.prototype),e&&"function"==typeof n.find)return n.find.call(e,t);for(var i=0;i<e.length;i++)if(Object.prototype.hasOwnProperty.call(e,i)){var r=e[i];if(t.call(void 0,r,i,e))return r}},t.freeze=i,t.MIME_TYPE=r,t.NAMESPACE=s},ipaP:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"Resource"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"Resource",plural:"Resources",path:"Resources",idName:"id",properties:{Location:{name:"Location",type:"string"},ownerType:{name:"ownerType",type:"string"},ownerId:{name:"ownerId",type:"any"},name:{name:"name",type:"string"},index:{name:"index",type:"number"},id:{name:"id",type:"any"}},relations:{owner:{name:"owner",type:"any",model:"",relationType:"belongsTo",keyFrom:"ownerId",keyTo:"id"}}}}}},iqoP:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Campaigns/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}invoke(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Campaigns/:id/invoke";return this.request("POST",i,{id:e},{},{settings:t},null,n)}getModelName(){return"Campaign"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},itXk:function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"a",function(){return u});var i=n("z+Ro"),r=n("DH7j"),s=n("l7GE"),o=n("ZUHj"),a=n("yCtX");const c={};function l(...e){let t,n;return Object(i.a)(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&Object(r.a)(e[0])&&(e=e[0]),Object(a.a)(e,n).lift(new u(t))}class u{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new d(e,this.resultSelector))}}class d extends s.a{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(c),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n<t;
1n++){const t=e[n];this.add(Object(o.a)(this,t,void 0,n))}}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,n){const i=this.values,r=this.toRespond?i[n]===c?--this.toRespond:this.toRespond:0;i[n]=t,0===r&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}},"j/Xo":function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"CourseSurveySubmission"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"CourseSurveySubmission",plural:"CourseSurveySubmissions",path:"CourseSurveySubmissions",idName:"id",properties:{eventId:{name:"eventId",type:"any"},subscriptionId:{name:"subscriptionId",type:"any"},userId:{name:"userId",type:"any"},surveyId:{name:"surveyId",type:"any"},name:{name:"name",type:"string"},status:{name:"status",type:"string",default:"pending"},answers:{name:"answers",type:"Array<any>"},submitted:{name:"submitted",type:"Date"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{event:{name:"event",type:"Course",model:"Course",relationType:"belongsTo",keyFrom:"eventId",keyTo:"id"},subscription:{name:"subscription",type:"CourseSubscription",model:"CourseSubscription",relationType:"belongsTo",keyFrom:"subscriptionId",keyTo:"id"},survey:{name:"survey",type:"SimiEventSurvey",model:"SimiEventSurvey",relationType:"belongsTo",keyFrom:"surveyId",keyTo:"id"},user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},jACb:function(e,t,n){"use strict";var i=n("vgmO");e.exports=function(e,t){return void 0===t&&(t=!1),function(n,r,s){if(n)e(n);else if(r.statusCode>=400&&r.statusCode<=599){var o=s;if(t)if(i.TextDecoder){var a=(void 0===(c=r.headers&&r.headers["content-type"])&&(c=""),c.toLowerCase().split(";").reduce(function(e,t){var n=t.split("="),i=n[1];return"charset"===n[0].trim()?i.trim():e},"utf-8"));try{o=new TextDecoder(a).decode(s)}catch(l){}}else o=String.fromCharCode.apply(null,new Uint8Array(s));e({cause:o})}else e(null,s);var c}}},jBAH:function(e,t){e.exports=function(e,t){var n,i=null;try{n=JSON.parse(e,t)}catch(r){i=r}return[i,n]}},jHrq:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiYear"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiYear",plural:"SimiYears",path:"SimiYears",idName:"id",properties:{id:{name:"id",type:"number"},quote:{name:"quote",type:"any",default:null},quota_ridotta:{name:"quota_ridotta",type:"number"},scadenza_quota:{name:"scadenza_quota",type:"Date"},quota_aggiuntiva:{name:"quota_aggiuntiva",type:"number"},ricevute_count:{name:"ricevute_count",type:"number",default:0},current_quotes:{name:"current_quotes",type:"any",default:null},status:{name:"status",type:"string"},last_registered:{name:"last_registered",type:"Date"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{payments:{name:"payments",type:"SimiPayment[]",model:"SimiPayment",relationType:"hasMany",keyFrom:"id",keyTo:"year"}}}}}},jIYg:function(e,t,n){"use strict";function i(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,"a",function(){return i})},jSPq:function(e,t,n){const i=n("JzKC");function r(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(e){this.degree=e,this.genPoly=i.generateECPolynomial(this.degree)},r.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const n=i.mod(t,this.genPoly),r=this.degree-n.length;if(r>0){const e=new Uint8Array(this.degree);return e.set(n,r),e}return n},e.exports=r},jZKg:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("HDdC"),r=n("quSY");function s(e,t){return new i.a(n=>{const i=new r.a;let s=0;return i.add(t.schedule(function(){s!==e.length?(n.next(e[s++]),n.closed||i.add(this.schedule())):n.complete()}
1)),i})}},jhN1:function(e,t,n){"use strict";n.d(t,"a",function(){return V}),n.d(t,"b",function(){return I}),n.d(t,"c",function(){return F}),n.d(t,"d",function(){return j}),n.d(t,"e",function(){return k});var i=n("ofXK"),r=n("fXoL");class s extends i.H{constructor(){super()}supportsDOMEvents(){return!0}}class o extends s{static makeCurrent(){Object(i.L)(new o)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=c||(c=document.querySelector("base"),c)?c.getAttribute("href"):null;return null==t?null:(n=t,a||(a=document.createElement("a")),a.setAttribute("href",n),"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname);var n}resetBaseElement(){c=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return Object(i.K)(document.cookie,e)}}let a,c=null;const l=new r.t("TRANSITION_ID"),u=[{provide:r.d,useFactory:function(e,t,n){return()=>{n.get(r.e).donePromise.then(()=>{const n=Object(i.J)();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[l,i.d,r.u],multi:!0}];class d{static init(){Object(r.cb)(new d)}addToWindow(e){r.ub.getAngularTestability=(t,n=!0)=>{const i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},r.ub.getAllAngularTestabilities=()=>e.getAllTestabilities(),r.ub.getAllAngularRootElements=()=>e.getAllRootElements(),r.ub.frameworkStabilizers||(r.ub.frameworkStabilizers=[]),r.ub.frameworkStabilizers.push(e=>{const t=r.ub.getAllAngularTestabilities();let n=t.length,i=!1;const s=function(t){i=i||t,n--,0==n&&e(i)};t.forEach(function(e){e.whenStable(s)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?Object(i.J)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}const h=new r.t("EventManagerPlugins");let p=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let i=0;i<n.length;i++){const t=n[i];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error(`No event manager plugin found for event ${e}`)}}return e.\u0275fac=function(t){return new(t||e)(r.gc(h),r.gc(r.C))},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})();class f{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const r=Object(i.J)().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,n)}}let g=(()=>{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})(),m=(()=>{class e extends g{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}
vendor: 5,598 bytes, line 1
1_addStylesToHost(e,t,n){e.forEach(e=>{const i=this._doc.createElement("style");i.textContent=e,n.push(t.appendChild(i))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(b),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,n)=>{this._addStylesToHost(e,n,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(b))}}return e.\u0275fac=function(t){return new(t||e)(r.gc(i.d))},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})();function b(e){Object(i.J)().remove(e)}const y={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},v=/%COMP%/g;function _(e,t,n){for(let i=0;i<t.length;i++){let r=t[i];Array.isArray(r)?_(e,r,n):(r=r.replace(v,e),n.push(r))}return n}function w(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let k=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new C(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case r.V.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new S(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case 1:case r.V.ShadowDom:return new T(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=_(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(r.gc(p),r.gc(m),r.gc(r.c))},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})();class C{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(y[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,i){if(i){t=i+":"+t;const r=y[i];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const i=y[n];i?e.removeAttributeNS(i,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,i){i&(r.J.DashCase|r.J.Important)?e.style.setProperty(t,n,i&r.J.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&r.J.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,w(n)):this.eventManager.addEventListener(e,t,w(n))}}class S extends C{constructor(e,t,n,i){super(e),this.component=n;const r=_(i+"-"+n.id,n.styles,[]);t.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(v,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(v,i+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class T extends C{constructor(e,t,n,i){super(e),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=_(i.id,i.styles,[]);for(let s=0;s<r.length;s++){const e=document.createElement("style");e.textContent=r[s],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let P=(()=>{class e extends f{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}return e.\u0275fac=function(t){return new(t||e)(r.gc(i.d))},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})();const O=["alt","control","meta","shift"],x={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},A={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},E={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let M=(()=>{class e extends f{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,r){const s=e.parseEventName(n),o=e.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(i.J)().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const n=t.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const r=e._normalizeKey(n.pop());let s="";
1if(O.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),s+=e+".")}),s+=r,0!=n.length||0===r.length)return null;const o={};return o.domEventName=i,o.fullKey=s,o}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&A.hasOwnProperty(t)&&(t=A[t]))}return x[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),O.forEach(i=>{i!=n&&(0,E[i])(e)&&(t+=i+".")}),t+=n,t}static eventCallback(t,n,i){return r=>{e.getEventFullKey(r)===t&&i.runGuarded(()=>n(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return e.\u0275fac=function(t){return new(t||e)(r.gc(i.d))},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})(),I=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Pb)({factory:function(){return Object(r.gc)(L)},token:e,providedIn:"root"}),e})();function R(e){return new L(e.get(i.d))}let L=(()=>{class e extends I{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case r.L.NONE:return t;case r.L.HTML:return Object(r.jb)(t,"HTML")?Object(r.Cb)(t):Object(r.hb)(this._doc,String(t)).toString();case r.L.STYLE:return Object(r.jb)(t,"Style")?Object(r.Cb)(t):t;case r.L.SCRIPT:if(Object(r.jb)(t,"Script"))return Object(r.Cb)(t);throw new Error("unsafe value used in a script context");case r.L.URL:return Object(r.tb)(t),Object(r.jb)(t,"URL")?Object(r.Cb)(t):Object(r.ib)(String(t));case r.L.RESOURCE_URL:if(Object(r.jb)(t,"ResourceURL"))return Object(r.Cb)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return Object(r.kb)(e)}bypassSecurityTrustStyle(e){return Object(r.nb)(e)}bypassSecurityTrustScript(e){return Object(r.mb)(e)}bypassSecurityTrustUrl(e){return Object(r.ob)(e)}bypassSecurityTrustResourceUrl(e){return Object(r.lb)(e)}}return e.\u0275fac=function(t){return new(t||e)(r.gc(i.d))},e.\u0275prov=Object(r.Pb)({factory:function(){return R(Object(r.gc)(r.q))},token:e,providedIn:"root"}),e})();const D=[{provide:r.E,useValue:i.I},{provide:r.F,useValue:function(){o.makeCurrent(),d.init()},multi:!0},{provide:i.d,useFactory:function(){return Object(r.Ab)(document),document},deps:[]}],j=Object(r.W)(r.bb,"browser",D),N=[[],{provide:r.eb,useValue:"root"},{provide:r.n,useFactory:function(){return new r.n},deps:[]},{provide:h,useClass:P,multi:!0,deps:[i.d,r.C,r.E]},{provide:h,useClass:M,multi:!0,deps:[i.d]},[],{provide:k,useClass:k,deps:[p,m,r.c]},{provide:r.I,useExisting:k},{provide:g,useExisting:m},{provide:m,useClass:m,deps:[i.d]},{provide:r.R,useClass:r.R,deps:[r.C]},{provide:p,useClass:p,deps:[h,r.C]},[]];let V=(()=>{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:r.c,useValue:t.appId},{provide:l,useExisting:r.c},u]}}}return e.\u0275fac=function(t){return new(t||e)(r.gc(e,12))},e.\u0275mod=r.Rb({type:e}),e.\u0275inj=r.Qb({providers:N,imports:[i.c,r.f]}),e})();function z(){return new F(Object(r.gc)(i.d))}let F=(()=>{class e{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return e.\u0275fac=function(t){return new(t||e)(r.gc(i.d))},e.\u0275prov=Object(r.Pb)({factory:z,token:e,providedIn:"root"}),e})();"undefined"!=typeof window&&window},jjGg:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiSurveys/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}getUserSubmission(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiSurveys/:id/submission";return this.request("GET",n,{id:e},{},{},null,t)}createUserSubmission(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiSurveys/:id/submission";return this.request("POST",n,{id:e},{},{},null,t)}createManyUserSubmission(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiSurveys/:id/submission";return this.request("POST",n,{id:e},{},{},null,t)}getModelName(){return"SimiSurvey"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},jtHE:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("XNiG"),r=n("qgXg"),s=n("quSY"),o=n("pxpQ"),a=n("9ppp"),c=n("Ylt2");class l extends i.a{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,n){super(),this.scheduler
1=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new u(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,r=n.length;let l;if(this.closed)throw new a.a;if(this.isStopped||this.hasError?l=s.a.EMPTY:(this.observers.push(e),l=new c.a(this,e)),i&&e.add(e=new o.a(e,i)),t)for(let s=0;s<r&&!e.closed;s++)e.next(n[s]);else for(let s=0;s<r&&!e.closed;s++)e.next(n[s].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),l}_getNow(){return(this.scheduler||r.a).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,r=i.length;let s=0;for(;s<r&&!(e-i[s].time<n);)s++;return r>t&&(s=Math.max(s,r-t)),s>0&&i.splice(0,s),i}}class u{constructor(e,t){this.time=e,this.value=t}}},k2N2:function(e,t){var n=1e3,i=60*n,r=60*i,s=24*r;function o(e,t,n,i){var r=t>=1.5*n;return Math.round(e/n)+" "+i+(r?"s":"")}e.exports=function(e,t){t=t||{};var a,c,l=typeof e;if("string"===l&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\-?\d?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var o=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"weeks":case"week":case"w":return 6048e5*o;case"days":case"day":case"d":return o*s;case"hours":case"hour":case"hrs":case"hr":case"h":return o*r;case"minutes":case"minute":case"mins":case"min":case"m":return o*i;case"seconds":case"second":case"secs":case"sec":case"s":return o*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}}(e);if("number"===l&&!1===isNaN(e))return t.long?(a=e,(c=Math.abs(a))>=s?o(a,c,s,"day"):c>=r?o(a,c,r,"hour"):c>=i?o(a,c,i,"minute"):c>=n?o(a,c,n,"second"):a+" ms"):function(e){var t=Math.abs(e);return t>=s?Math.round(e/s)+"d":t>=r?Math.round(e/r)+"h":t>=i?Math.round(e/i)+"m":t>=n?Math.round(e/n)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},kCaL:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("tk/3"),r=(n("S7rW"),n("z6cu")),s=n("fXoL"),o=n("tyNb");let a=(()=>{class e{constructor(e,t){this.router=e,this.http=t}intercept(e,t){return t.handle(e).catch(e=>(e instanceof i.d&&401===e.status&&"/login"!==window.location.pathname&&(console.log("redirect"),this.router.navigateByUrl("/login")),Object(r.a)(e)))}}return e.\u0275fac=function(t){return new(t||e)(s.gc(o.c),s.gc(i.b))},e.\u0275prov=s.Pb({token:e,factory:e.\u0275fac}),e})()},kEdI:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"CourseMaterial"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"CourseMaterial",plural:"CourseMaterials",path:"CourseMaterials",idName:"id",properties:{eventId:{name:"eventId",type:"any"},type:{name:"type",type:"string"},access_level:{name:"access_level",type:"number",default:0},name:{name:"name",type:"string"},description:{name:"description",type:"string"},section:{name:"section",type:"number"},order:{name:"order",type:"number"},resource:{name:"resource",type:"any"},target_level:{name:"target_level",type:"number"},video:{name:"video",type:"any"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{event:{name:"event",type:"Course",model:"Course",relationType:"belongsTo",keyFrom:"eventId",keyTo:"id"}}}}}},kJWO:function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},kU1M:function(e,t,n){"use strict";n.r(t),n.d(t,"audit",function(){return i.a}),n.d(t,"auditTime",function(){return r.a}),n.d(t,"buffer",function(){return o}
1),n.d(t,"bufferCount",function(){return u}),n.d(t,"bufferTime",function(){return m}),n.d(t,"bufferToggle",function(){return P}),n.d(t,"bufferWhen",function(){return A}),n.d(t,"catchError",function(){return I.a}),n.d(t,"combineAll",function(){return L}),n.d(t,"combineLatest",function(){return N}),n.d(t,"concat",function(){return z}),n.d(t,"concatAll",function(){return F.a}),n.d(t,"concatMap",function(){return B.a}),n.d(t,"concatMapTo",function(){return q}),n.d(t,"count",function(){return U}),n.d(t,"debounce",function(){return G}),n.d(t,"debounceTime",function(){return Z.a}),n.d(t,"defaultIfEmpty",function(){return Q.a}),n.d(t,"delay",function(){return X.a}),n.d(t,"delayWhen",function(){return J}),n.d(t,"dematerialize",function(){return re.a}),n.d(t,"distinct",function(){return se}),n.d(t,"distinctUntilChanged",function(){return ce.a}),n.d(t,"distinctUntilKeyChanged",function(){return le}),n.d(t,"elementAt",function(){return fe}),n.d(t,"endWith",function(){return ge.a}),n.d(t,"every",function(){return me}),n.d(t,"exhaust",function(){return ve}),n.d(t,"exhaustMap",function(){return ke.a}),n.d(t,"expand",function(){return Ce}),n.d(t,"filter",function(){return de.a}),n.d(t,"finalize",function(){return Pe.a}),n.d(t,"find",function(){return Oe}),n.d(t,"findIndex",function(){return Ee}),n.d(t,"first",function(){return Me.a}),n.d(t,"groupBy",function(){return Ie.b}),n.d(t,"ignoreElements",function(){return Re.a}),n.d(t,"isEmpty",function(){return Le}),n.d(t,"last",function(){return Ne.a}),n.d(t,"map",function(){return Ve.a}),n.d(t,"mapTo",function(){return ze}),n.d(t,"materialize",function(){return qe.a}),n.d(t,"max",function(){return Ye}),n.d(t,"merge",function(){return Ze}),n.d(t,"mergeAll",function(){return Qe.a}),n.d(t,"mergeMap",function(){return Xe.b}),n.d(t,"flatMap",function(){return Xe.a}),n.d(t,"mergeMapTo",function(){return Ke}),n.d(t,"mergeScan",function(){return Je}),n.d(t,"min",function(){return nt}),n.d(t,"multicast",function(){return it.a}),n.d(t,"observeOn",function(){return rt.b}),n.d(t,"onErrorResumeNext",function(){return st}),n.d(t,"pairwise",function(){return ct.a}),n.d(t,"partition",function(){return ut}),n.d(t,"pluck",function(){return dt.a}),n.d(t,"publish",function(){return pt}),n.d(t,"publishBehavior",function(){return gt}),n.d(t,"publishLast",function(){return bt}),n.d(t,"publishReplay",function(){return vt}),n.d(t,"race",function(){return wt}),n.d(t,"reduce",function(){return Ge}),n.d(t,"repeat",function(){return kt.a}),n.d(t,"repeatWhen",function(){return Ct}),n.d(t,"retry",function(){return Pt}),n.d(t,"retryWhen",function(){return At}),n.d(t,"refCount",function(){return It.a}),n.d(t,"sample",function(){return Rt}),n.d(t,"sampleTime",function(){return jt}),n.d(t,"scan",function(){return Ue.a}),n.d(t,"sequenceEqual",function(){return Ft}),n.d(t,"share",function(){return Ht.a}),n.d(t,"shareReplay",function(){return Wt.a}),n.d(t,"single",function(){return Yt}),n.d(t,"skip",function(){return Qt.a}),n.d(t,"skipLast",function(){return Xt}),n.d(t,"skipUntil",function(){return en}),n.d(t,"skipWhile",function(){return rn}),n.d(t,"startWith",function(){return an.a}),n.d(t,"subscribeOn",function(){return dn}),n.d(t,"switchAll",function(){return gn}),n.d(t,"switchMap",function(){return pn.a}),n.d(t,"switchMapTo",function(){return mn}),n.d(t,"take",function(){return pe.a}),n.d(t,"takeLast",function(){return He.a}),n.d(t,"takeUntil",function(){return bn.a}),n.d(t,"takeWhile",function(){return yn.a}),n.d(t,"tap",function(){return vn.a}),n.d(t,"throttle",function(){return _n.b}),n.d(t,"throttleTime",function(){return wn.a}),n.d(t,"throwIfEmpty",function(){return he.a}),n.d(t,"timeInterval",function(){return Cn}),n.d(t,"timeout",function(){return Mn}),n.d(t,"timeoutWith",function(){return On}),n.d(t,"timestamp",function(){return In}),n.d(t,"toArray",function(){return Dn}),n.d(t,"window",function(){return jn}),n.d(t,"windowCount",function(){return zn}),n.d(t,"windowTime",function(){return qn}),n.d(t,"windowToggle",function(){return Zn}),n.d(t,"windowWhen",function(){return Kn}),n.d(t,"withLatestFrom",function(){return ti.a}),n.d(t,"zip",function(){return ii}),n.d(t,"zipAll",function(){return ri});var i=n("tnsW"),r=n("3UWI"),s=n("zx2A");function o(e){return function(t){return t.lift(new a(e))}}class a{constructor(e){this.closingNotifier=e}call(e,t){return t.subscribe(new c(e,this.closingNotifier))}}class c extends s.b{constructor(e,t){super(e),this.buffer=[],this.add(Object(s.c)(t,new s.a(this)))}_next(e){this.buffer.push(e)}notifyNext(){const e=this.buffer;this.buffer=[],this.destination.next(e)}}var l=n("7o/Q");function u(e,t=null){return function(n){return n.lift(new d(e,t))}}class d{constructor(e,t){this.bufferSize=e,this.startBufferEvery=t,this.subscriberClass=t&&e!==t?p:h}call(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))}}class h extends l.a{constructor(e,t){super(e),this.bufferSize=t,this.buffer=[]}_next(e){const t=this.buffer;t.push(e),t.length==this.bufferSize&&(this.destination.next(t),this.buffer=[])}_complete(){const e=this.buffer;e.length>0&&this.destination.next(e),super._complete()}}class p extends l.a{constructor(e,t,n){super(e),this.bufferSize=t,this.startBufferEvery=n,this.buffers=[],this.count=0}_next(e){const{bufferSize:t,startBufferEvery:n,buffers:i,count:r}=this;this.count++,r%n==0&&i.push([]);for(let s=i.length;s--;){const n=i[s];n.push(e),n.length===t&&(i.splice(s,1),this.destination.next(n))}}_complete(){const{buffers:e,destination:t}=this;for(;e.length>0;){let n=e.shift();n.length>0&&t.next(n)}super._complete()}}var f=n("D0XW"),g=n("z+Ro");function m(e){let t=arguments.length,n=f.a;Object(g.a)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);let i=null;t>=2&&(i=arguments[1]);let r=Number.POSITIVE_INFINITY;return t>=3&&(r=arguments[2]),function(t){return t.lift(new b(e,i,r,n))}}class b{constructor(e,t,n,i){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler
1=i}call(e,t){return t.subscribe(new v(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class y{constructor(){this.buffer=[]}}class v extends l.a{constructor(e,t,n,i,r){super(e),this.bufferTimeSpan=t,this.bufferCreationInterval=n,this.maxBufferSize=i,this.scheduler=r,this.contexts=[];const s=this.openContext();if(this.timespanOnly=null==n||n<0,this.timespanOnly)this.add(s.closeAction=r.schedule(_,t,{subscriber:this,context:s,bufferTimeSpan:t}));else{const e={bufferTimeSpan:t,bufferCreationInterval:n,subscriber:this,scheduler:r};this.add(s.closeAction=r.schedule(k,t,{subscriber:this,context:s})),this.add(r.schedule(w,n,e))}}_next(e){const t=this.contexts,n=t.length;let i;for(let r=0;r<n;r++){const n=t[r],s=n.buffer;s.push(e),s.length==this.maxBufferSize&&(i=n)}i&&this.onBufferFull(i)}_error(e){this.contexts.length=0,super._error(e)}_complete(){const{contexts:e,destination:t}=this;for(;e.length>0;){const n=e.shift();t.next(n.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(e){this.closeContext(e);const t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();const t=this.bufferTimeSpan;this.add(e.closeAction=this.scheduler.schedule(_,t,{subscriber:this,context:e,bufferTimeSpan:t}))}}openContext(){const e=new y;return this.contexts.push(e),e}closeContext(e){this.destination.next(e.buffer);const t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)}}function _(e){const t=e.subscriber,n=e.context;n&&t.closeContext(n),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function w(e){const{bufferCreationInterval:t,bufferTimeSpan:n,subscriber:i,scheduler:r}=e,s=i.openContext();i.closed||(i.add(s.closeAction=r.schedule(k,n,{subscriber:i,context:s})),this.schedule(e,t))}function k(e){const{subscriber:t,context:n}=e;t.closeContext(n)}var C=n("quSY"),S=n("ZUHj"),T=n("l7GE");function P(e,t){return function(n){return n.lift(new O(e,t))}}class O{constructor(e,t){this.openings=e,this.closingSelector=t}call(e,t){return t.subscribe(new x(e,this.openings,this.closingSelector))}}class x extends T.a{constructor(e,t,n){super(e),this.closingSelector=n,this.contexts=[],this.add(Object(S.a)(this,t))}_next(e){const t=this.contexts,n=t.length;for(let i=0;i<n;i++)t[i].buffer.push(e)}_error(e){const t=this.contexts;for(;t.length>0;){const e=t.shift();e.subscription.unsubscribe(),e.buffer=null,e.subscription=null}this.contexts=null,super._error(e)}_complete(){const e=this.contexts;for(;e.length>0;){const t=e.shift();this.destination.next(t.buffer),t.subscription.unsubscribe(),t.buffer=null,t.subscription=null}this.contexts=null,super._complete()}notifyNext(e,t){e?this.closeBuffer(e):this.openBuffer(t)}notifyComplete(e){this.closeBuffer(e.context)}openBuffer(e){try{const t=this.closingSelector.call(this,e);t&&this.trySubscribe(t)}catch(t){this._error(t)}}closeBuffer(e){const t=this.contexts;if(t&&e){const{buffer:n,subscription:i}=e;this.destination.next(n),t.splice(t.indexOf(e),1),this.remove(i),i.unsubscribe()}}trySubscribe(e){const t=this.contexts,n=new C.a,i={buffer:[],subscription:n};t.push(i);const r=Object(S.a)(this,e,i);!r||r.closed?this.closeBuffer(i):(r.context=i,this.add(r),n.add(r))}}function A(e){return function(t){return t.lift(new E(e))}}class E{constructor(e){this.closingSelector=e}call(e,t){return t.subscribe(new M(e,this.closingSelector))}}class M extends s.b{constructor(e,t){super(e),this.closingSelector=t,this.subscribing=!1,this.openBuffer()}_next(e){this.buffer.push(e)}_complete(){const e=this.buffer;e&&this.destination.next(e),super._complete()}_unsubscribe(){this.buffer=void 0,this.subscribing=!1}notifyNext(){this.openBuffer()}notifyComplete(){this.subscribing?this.complete():this.openBuffer()}openBuffer(){let e,{closingSubscription:t}=this;t&&(this.remove(t),t.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];try{const{closingSelector:t}=this;e=t()}catch(n){return this.error(n)}t=new C.a,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(Object(s.c)(e,new s.a(this))),this.subscribing=!1}}var I=n("JIr8"),R=n("itXk");function L(e){return t=>t.lift(new R.a(e))}var D=n("DH7j"),j=n("Cfvw");function N(...e){let t=null;return"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&Object(D.a)(e[0])&&(e=e[0].slice()),n=>n.lift.call(Object(j.a)([n,...e]),new R.a(t))}var V=n("GyhO");function z(...e){return t=>t.lift.call(Object(V.a)(t,...e))}var F=n("0EUg"),B=n("bOdf");function q(e,t){return Object(B.a)(()=>e,t)}function U(e){return t=>t.lift(new H(e,t))}class H{constructor(e,t){this.predicate=e,this.source=t}call(e,t){return t.subscribe(new W(e,this.predicate,this.source))}}class W extends l.a{constructor(e,t,n){super(e),this.predicate=t,this.source=n,this.count=0,this.index=0}_next(e){this.predicate?this._tryPredicate(e):this.count++}_tryPredicate(e){let t;try{t=this.predicate(e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t&&this.count++}_complete(){this.destination.next(this.count),this.destination.complete()}}function G(e){return t=>t.lift(new Y(e))}class Y{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new $(e,this.durationSelector))}}class $ extends s.b{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){try{const t=this.durationSelector.call(this,e);t&&this._tryNext(e,t)}catch(t){this.destination.error(t)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(e,t){let n=this.durationSubscription;this.value=e,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),n=Object(s.c)(t,new s.a(this)),n&&!n.closed&&this.add(this.durationSubscription=n)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const e=this.value,t=this.durationSubscription;t&&(this.durationSubscription=void 0,t.unsubscribe(),this.remove(t)),this.value=void 0,this.hasValue=!1,super._next(e)}}}var Z=n("Kj3r"),Q=n("xbPD"),X=n("3E0/"),K=n("HDdC");function J(e,t){return t?n=>new ne(n,t).lift(new ee(e)):t=>t.lift(new ee(e))}class ee{constructor(e){this.delayDurationSelector=e}call(e,t){return t.subscribe(new te(e,this.delayDurationSelector))}}class te extends T.a{constructor(e,t){super(e),this.delayDurationSelector=t,this.completed=!1,this.delayNotifierSubscriptions=[],this.index=0}notifyNext(e,t,n,i,r){this.destination.next(e),this.removeSubscription(r),this.tryComplete()}notifyError(e,t){this._error(e)}notifyComplete(e){const t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()}_next(e){const t=this.index++;try{const n=this.delayDurationSelector(e,t);n&&this.tryDelay(n,e)}catch(n){this.destination.error(n)}}_complete(){this.completed=!0,this.tryComplete(),this.unsubscribe()}removeSubscription(e){e.unsubscribe();const t=this.delayNotifierSubscriptions.indexOf(e);return-1!==t&&this.delayNotifierSubscriptions.splice(t,1),e.outerValue}tryDelay(e,t){const n=Object(S.a)(this,e,t);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))}tryComplete(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}class ne extends K.a{constructor(e,t){super(),this.source=e,this.subscriptionDelay=t}_subscribe(e){this.subscriptionDelay.subscribe(new ie(e,this.source))}}class ie extends l.a{constructor(e,t){super(),this.parent=e,this.source=t,this.sourceSubscribed=!1}_next(e){this.subscribeToSource()}_error(e){this.unsubscribe(),this.parent.error(e)}_complete(){this.unsubscribe(),this.subscribeToSource()}subscribeToSource(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))}}var re=n("kgNN");function se(e,t){return n=>n.lift(new oe(e,t))}class oe{constructor(e,t){this.keySelector=e,this.flushes=t}call(e,t){return t.subscribe(new ae(e,this.keySelector,this.flushes))}}class ae extends s.b{constructor(e,t,n){super(e),this.keySelector=t,this.values=new Set,n&&this.add(Object(s.c)(n,new s.a(this)))}notifyNext(){this.values.clear()}notifyError(e){this._error(e)}_next(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)}
1_useKeySelector(e){let t;const{destination:n}=this;try{t=this.keySelector(e)}catch(i){return void n.error(i)}this._finalizeNext(t,e)}_finalizeNext(e,t){const{values:n}=this;n.has(e)||(n.add(e),this.destination.next(t))}}var ce=n("/uUt");function le(e,t){return Object(ce.a)((n,i)=>t?t(n[e],i[e]):n[e]===i[e])}var ue=n("4I5i"),de=n("pLZG"),he=n("XDbj"),pe=n("IzEk");function fe(e,t){if(e<0)throw new ue.a;const n=arguments.length>=2;return i=>i.pipe(Object(de.a)((t,n)=>n===e),Object(pe.a)(1),n?Object(Q.a)(t):Object(he.a)(()=>new ue.a))}var ge=n("0Pi8");function me(e,t){return n=>n.lift(new be(e,t,n))}class be{constructor(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}call(e,t){return t.subscribe(new ye(e,this.predicate,this.thisArg,this.source))}}class ye extends l.a{constructor(e,t,n,i){super(e),this.predicate=t,this.thisArg=n,this.source=i,this.index=0,this.thisArg=n||this}notifyComplete(e){this.destination.next(e),this.destination.complete()}_next(e){let t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function ve(){return e=>e.lift(new _e)}class _e{call(e,t){return t.subscribe(new we(e))}}class we extends s.b{constructor(e){super(e),this.hasCompleted=!1,this.hasSubscription=!1}_next(e){this.hasSubscription||(this.hasSubscription=!0,this.add(Object(s.c)(e,new s.a(this))))}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}var ke=n("XqQ8");function Ce(e,t=Number.POSITIVE_INFINITY,n){return t=(t||0)<1?Number.POSITIVE_INFINITY:t,i=>i.lift(new Se(e,t,n))}class Se{constructor(e,t,n){this.project=e,this.concurrent=t,this.scheduler=n}call(e,t){return t.subscribe(new Te(e,this.project,this.concurrent,this.scheduler))}}class Te extends s.b{constructor(e,t,n,i){super(e),this.project=t,this.concurrent=n,this.scheduler=i,this.index=0,this.active=0,this.hasCompleted=!1,n<Number.POSITIVE_INFINITY&&(this.buffer=[])}static dispatch(e){const{subscriber:t,result:n,value:i,index:r}=e;t.subscribeToProjection(n,i,r)}_next(e){const t=this.destination;if(t.closed)return void this._complete();const n=this.index++;if(this.active<this.concurrent){t.next(e);try{const{project:t}=this,i=t(e,n);this.scheduler?this.destination.add(this.scheduler.schedule(Te.dispatch,0,{subscriber:this,result:i,value:e,index:n})):this.subscribeToProjection(i,e,n)}catch(i){t.error(i)}}else this.buffer.push(e)}subscribeToProjection(e,t,n){this.active++,this.destination.add(Object(s.c)(e,new s.a(this)))}_complete(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this._next(e)}notifyComplete(){const e=this.buffer;this.active--,e&&e.length>0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}var Pe=n("nYR2");function Oe(e,t){if("function"!=typeof e)throw new TypeError("predicate is not a function");return n=>n.lift(new xe(e,n,!1,t))}class xe{constructor(e,t,n,i){this.predicate=e,this.source=t,this.yieldIndex=n,this.thisArg=i}call(e,t){return t.subscribe(new Ae(e,this.predicate,this.source,this.yieldIndex,this.thisArg))}}class Ae extends l.a{constructor(e,t,n,i,r){super(e),this.predicate=t,this.source=n,this.yieldIndex=i,this.thisArg=r,this.index=0}notifyComplete(e){const t=this.destination;t.next(e),t.complete(),this.unsubscribe()}_next(e){const{predicate:t,thisArg:n}=this,i=this.index++;try{t.call(n||this,e,i,this.source)&&this.notifyComplete(this.yieldIndex?i:e)}catch(r){this.destination.error(r)}}_complete(){this.notifyComplete(this.yieldIndex?-1:void 0)}}function Ee(e,t){return n=>n.lift(new xe(e,n,!0,t))}var Me=n("SxV6"),Ie=n("OQgR"),Re=n("4A3s");function Le(){return e=>e.lift(new De)}class De{call(e,t){return t.subscribe(new je(e))}}class je extends l.a{constructor(e){super(e)}notifyComplete(e){const t=this.destination;t.next(e),t.complete()}_next(e){this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}var Ne=n("NJ9Y"),Ve=n("lJxs");function ze(e){return t=>t.lift(new Fe(e))}class Fe{constructor(e){this.value=e}call(e,t){return t.subscribe(new Be(e,this.value))}}class Be extends l.a{constructor(e,t){super(e),this.value=t}_next(e){this.destination.next(this.value)}}var qe=n("dkDA"),Ue=n("Kqap"),He=n("BFxc"),We=n("mCNh");function Ge(e,t){return arguments.length>=2?function(n){return Object(We.a)(Object(Ue.a)(e,t),Object(He.a)(1),Object(Q.a)(t))(n)}:function(t){return Object(We.a)(Object(Ue.a)((t,n,i)=>e(t,n,i+1)),Object(He.a)(1))(t)}}function Ye(e){return Ge("function"==typeof e?(t,n)=>e(t,n)>0?t:n:(e,t)=>e>t?e:t)}var $e=n("VRyK");function Ze(...e){return t=>t.lift.call(Object($e.a)(t,...e))}var Qe=n("bHdf"),Xe=n("5+tZ");function Ke(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?Object(Xe.b)(()=>e,t,n):("number"==typeof t&&(n=t),Object(Xe.b)(()=>e,n))}function Je(e,t,n=Number.POSITIVE_INFINITY){return i=>i.lift(new et(e,t,n))}class et{constructor(e,t,n){this.accumulator=e,this.seed=t,this.concurrent=n}call(e,t){return t.subscribe(new tt(e,this.accumulator,this.seed,this.concurrent))}}class tt extends s.b{constructor(e,t,n,i){super(e),this.accumulator=t,this.acc=n,this.concurrent=i,this.hasValue=!1,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){if(this.active<this.concurrent){const n=this.index++,i=this.destination;let r;try{const{accumulator:t}=this;r=t(this.acc,e,n)}catch(t){return i.error(t)}this.active++,this._innerSub(r)}else this.buffer.push(e)}_innerSub(e){const t=new s.a(this),n=this.destination;n.add(t);const i=Object(s.c)(e,t);i!==t&&n.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()}notifyNext(e){const{destination:t}=this;this.acc=e,this.hasValue=!0,t.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}function nt(e){return Ge("function"==typeof e?(t,n)=>e(t,n)<0?t:n:(e,t)=>e<t?e:t)}var it=n("oB13"),rt=n("pxpQ");function st(...e){return 1===e.length&&Object(D.a)(e[0])&&(e=e[0]),t=>t.lift(new ot(e))}
1class ot{constructor(e){this.nextSources=e}call(e,t){return t.subscribe(new at(e,this.nextSources))}}class at extends s.b{constructor(e,t){super(e),this.destination=e,this.nextSources=t}notifyError(){this.subscribeToNextSource()}notifyComplete(){this.subscribeToNextSource()}_error(e){this.subscribeToNextSource(),this.unsubscribe()}_complete(){this.subscribeToNextSource(),this.unsubscribe()}subscribeToNextSource(){const e=this.nextSources.shift();if(e){const t=new s.a(this),n=this.destination;n.add(t);const i=Object(s.c)(e,t);i!==t&&n.add(i)}else this.destination.complete()}}var ct=n("Zy1z"),lt=n("F97/");function ut(e,t){return n=>[Object(de.a)(e,t)(n),Object(de.a)(Object(lt.a)(e,t))(n)]}var dt=n("wO+i"),ht=n("XNiG");function pt(e){return e?Object(it.a)(()=>new ht.a,e):Object(it.a)(new ht.a)}var ft=n("2Vo4");function gt(e){return t=>Object(it.a)(new ft.a(e))(t)}var mt=n("NHP+");function bt(){return e=>Object(it.a)(new mt.a)(e)}var yt=n("jtHE");function vt(e,t,n,i){n&&"function"!=typeof n&&(i=n);const r="function"==typeof n?n:void 0,s=new yt.a(e,t,i);return e=>Object(it.a)(()=>s,r)(e)}var _t=n("Nv8m");function wt(...e){return function(t){return 1===e.length&&Object(D.a)(e[0])&&(e=e[0]),t.lift.call(Object(_t.a)(t,...e))}}var kt=n("/d8p");function Ct(e){return t=>t.lift(new St(e))}class St{constructor(e){this.notifier=e}call(e,t){return t.subscribe(new Tt(e,this.notifier,t))}}class Tt extends s.b{constructor(e,t,n){super(e),this.notifier=t,this.source=n,this.sourceIsBeingSubscribedTo=!0}notifyNext(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}notifyComplete(){if(!1===this.sourceIsBeingSubscribedTo)return super.complete()}complete(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return super.complete();this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}_unsubscribe(){const{notifications:e,retriesSubscription:t}=this;e&&(e.unsubscribe(),this.notifications=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}_unsubscribeAndRecycle(){const{_unsubscribe:e}=this;return this._unsubscribe=null,super._unsubscribeAndRecycle(),this._unsubscribe=e,this}subscribeToRetries(){let e;this.notifications=new ht.a;try{const{notifier:t}=this;e=t(this.notifications)}catch(t){return super.complete()}this.retries=e,this.retriesSubscription=Object(s.c)(e,new s.a(this))}}function Pt(e=-1){return t=>t.lift(new Ot(e,t))}class Ot{constructor(e,t){this.count=e,this.source=t}call(e,t){return t.subscribe(new xt(e,this.count,this.source))}}class xt extends l.a{constructor(e,t,n){super(e),this.count=t,this.source=n}error(e){if(!this.isStopped){const{source:t,count:n}=this;if(0===n)return super.error(e);n>-1&&(this.count=n-1),t.subscribe(this._unsubscribeAndRecycle())}}}function At(e){return t=>t.lift(new Et(e,t))}class Et{constructor(e,t){this.notifier=e,this.source=t}call(e,t){return t.subscribe(new Mt(e,this.notifier,this.source))}}class Mt extends s.b{constructor(e,t,n){super(e),this.notifier=t,this.source=n}error(e){if(!this.isStopped){let n=this.errors,i=this.retries,r=this.retriesSubscription;if(i)this.errors=void 0,this.retriesSubscription=void 0;else{n=new ht.a;try{const{notifier:e}=this;i=e(n)}catch(t){return super.error(t)}r=Object(s.c)(i,new s.a(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=i,this.retriesSubscription=r,n.next(e)}}_unsubscribe(){const{errors:e,retriesSubscription:t}=this;e&&(e.unsubscribe(),this.errors=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}notifyNext(){const{_unsubscribe:e}=this;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=e,this.source.subscribe(this)}}var It=n("x+ZX");function Rt(e){return t=>t.lift(new Lt(e))}class Lt{constructor(e){this.notifier=e}call(e,t){const n=new Dt(e),i=t.subscribe(n);return i.add(Object(s.c)(this.notifier,new s.a(n))),i}}class Dt extends s.b{constructor(){super(...arguments),this.hasValue=!1}_next(e){this.value=e,this.hasValue=!0}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}function jt(e,t=f.a){return n=>n.lift(new Nt(e,t))}
1class Nt{constructor(e,t){this.period=e,this.scheduler=t}call(e,t){return t.subscribe(new Vt(e,this.period,this.scheduler))}}class Vt extends l.a{constructor(e,t,n){super(e),this.period=t,this.scheduler=n,this.hasValue=!1,this.add(n.schedule(zt,t,{subscriber:this,period:t}))}_next(e){this.lastValue=e,this.hasValue=!0}notifyNext(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}function zt(e){let{subscriber:t,period:n}=e;t.notifyNext(),this.schedule(e,n)}function Ft(e,t){return n=>n.lift(new Bt(e,t))}class Bt{constructor(e,t){this.compareTo=e,this.comparator=t}call(e,t){return t.subscribe(new qt(e,this.compareTo,this.comparator))}}class qt extends l.a{constructor(e,t,n){super(e),this.compareTo=t,this.comparator=n,this._a=[],this._b=[],this._oneComplete=!1,this.destination.add(t.subscribe(new Ut(e,this)))}_next(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())}_complete(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()}checkValues(){const{_a:e,_b:t,comparator:n}=this;for(;e.length>0&&t.length>0;){let r=e.shift(),s=t.shift(),o=!1;try{o=n?n(r,s):r===s}catch(i){this.destination.error(i)}o||this.emit(!1)}}emit(e){const{destination:t}=this;t.next(e),t.complete()}nextB(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())}completeB(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}class Ut extends l.a{constructor(e,t){super(e),this.parent=t}_next(e){this.parent.nextB(e)}_error(e){this.parent.error(e),this.unsubscribe()}_complete(){this.parent.completeB(),this.unsubscribe()}}var Ht=n("w1tV"),Wt=n("UXun"),Gt=n("sVev");function Yt(e){return t=>t.lift(new $t(e,t))}class $t{constructor(e,t){this.predicate=e,this.source=t}call(e,t){return t.subscribe(new Zt(e,this.predicate,this.source))}}class Zt extends l.a{constructor(e,t,n){super(e),this.predicate=t,this.source=n,this.seenValue=!1,this.index=0}applySingleValue(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)}_next(e){const t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)}tryNext(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(n){this.destination.error(n)}}_complete(){const e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new Gt.a)}}var Qt=n("zP0r");function Xt(e){return t=>t.lift(new Kt(e))}class Kt{constructor(e){if(this._skipCount=e,this._skipCount<0)throw new ue.a}call(e,t){return t.subscribe(0===this._skipCount?new l.a(e):new Jt(e,this._skipCount))}}class Jt extends l.a{constructor(e,t){super(e),this._skipCount=t,this._count=0,this._ring=new Array(t)}_next(e){const t=this._skipCount,n=this._count++;if(n<t)this._ring[n]=e;else{const i=n%t,r=this._ring,s=r[i];r[i]=e,this.destination.next(s)}}}function en(e){return t=>t.lift(new tn(e))}class tn{constructor(e){this.notifier=e}call(e,t){return t.subscribe(new nn(e,this.notifier))}}class nn extends s.b{constructor(e,t){super(e),this.hasValue=!1;const n=new s.a(this);this.add(n),this.innerSubscription=n;const i=Object(s.c)(t,n);i!==n&&(this.add(i),this.innerSubscription=i)}_next(e){this.hasValue&&super._next(e)}notifyNext(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()}notifyComplete(){}}function rn(e){return t=>t.lift(new sn(e))}class sn{constructor(e){this.predicate=e}call(e,t){return t.subscribe(new on(e,this.predicate))}}class on extends l.a{constructor(e,t){super(e),this.predicate=t,this.skipping=!0,this.index=0}_next(e){const t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)}tryCallPredicate(e){try{const t=this.predicate(e,this.index++);this.skipping=Boolean(t)}catch(t){this.destination.error(t)}}}var an=n("JX91"),cn=n("7Hc7"),ln=n("Y7HM");class un extends K.a{constructor(e,t=0,n=cn.a){super(),this.source=e,this.delayTime=t,this.scheduler=n,(!Object(ln.a)(t)||t<0)&&(this.delayTime=0),n&&"function"==typeof n.schedule||(this.scheduler
1=cn.a)}static create(e,t=0,n=cn.a){return new un(e,t,n)}static dispatch(e){const{source:t,subscriber:n}=e;return this.add(t.subscribe(n))}_subscribe(e){return this.scheduler.schedule(un.dispatch,this.delayTime,{source:this.source,subscriber:e})}}function dn(e,t=0){return function(n){return n.lift(new hn(e,t))}}class hn{constructor(e,t){this.scheduler=e,this.delay=t}call(e,t){return new un(t,this.delay,this.scheduler).subscribe(e)}}var pn=n("eIep"),fn=n("SpAZ");function gn(){return Object(pn.a)(fn.a)}function mn(e,t){return t?Object(pn.a)(()=>e,t):Object(pn.a)(()=>e)}var bn=n("1G5W"),yn=n("GJmQ"),vn=n("vkgz"),_n=n("yuhW"),wn=n("gcYM"),kn=n("NXyV");function Cn(e=f.a){return t=>Object(kn.a)(()=>t.pipe(Object(Ue.a)(({current:t},n)=>({value:n,current:e.now(),last:t}),{current:e.now(),value:void 0,last:void 0}),Object(Ve.a)(({current:e,last:t,value:n})=>new Sn(n,e-t))))}class Sn{constructor(e,t){this.value=e,this.interval=t}}var Tn=n("Y6u4"),Pn=n("mlxB");function On(e,t,n=f.a){return i=>{let r=Object(Pn.a)(e),s=r?+e-n.now():Math.abs(e);return i.lift(new xn(s,r,t,n))}}class xn{constructor(e,t,n,i){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=n,this.scheduler=i}call(e,t){return t.subscribe(new An(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class An extends s.b{constructor(e,t,n,i,r){super(e),this.absoluteTimeout=t,this.waitFor=n,this.withObservable=i,this.scheduler=r,this.scheduleTimeout()}static dispatchTimeout(e){const{withObservable:t}=e;e._unsubscribeAndRecycle(),e.add(Object(s.c)(t,new s.a(e)))}scheduleTimeout(){const{action:e}=this;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(An.dispatchTimeout,this.waitFor,this))}_next(e){this.absoluteTimeout||this.scheduleTimeout(),super._next(e)}_unsubscribe(){this.action=void 0,this.scheduler=null,this.withObservable=null}}var En=n("z6cu");function Mn(e,t=f.a){return On(e,Object(En.a)(new Tn.a),t)}function In(e=f.a){return Object(Ve.a)(t=>new Rn(t,e.now()))}class Rn{constructor(e,t){this.value=e,this.timestamp=t}}function Ln(e,t,n){return 0===n?[t]:(e.push(t),e)}function Dn(){return Ge(Ln,[])}function jn(e){return function(t){return t.lift(new Nn(e))}}class Nn{constructor(e){this.windowBoundaries=e}call(e,t){const n=new Vn(e),i=t.subscribe(n);return i.closed||n.add(Object(s.c)(this.windowBoundaries,new s.a(n))),i}}class Vn extends s.b{constructor(e){super(e),this.window=new ht.a,e.next(this.window)}notifyNext(){this.openWindow()}notifyError(e){this._error(e)}notifyComplete(){this._complete()}_next(e){this.window.next(e)}_error(e){this.window.error(e),this.destination.error(e)}_complete(){this.window.complete(),this.destination.complete()}_unsubscribe(){this.window=null}openWindow(){const e=this.window;e&&e.complete();const t=this.destination,n=this.window=new ht.a;t.next(n)}}function zn(e,t=0){return function(n){return n.lift(new Fn(e,t))}}class Fn{constructor(e,t){this.windowSize=e,this.startWindowEvery=t}call(e,t){return t.subscribe(new Bn(e,this.windowSize,this.startWindowEvery))}}class Bn extends l.a{constructor(e,t,n){super(e),this.destination=e,this.windowSize=t,this.startWindowEvery=n,this.windows=[new ht.a],this.count=0,e.next(this.windows[0])}_next(e){const t=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,i=this.windowSize,r=this.windows,s=r.length;for(let a=0;a<s&&!this.closed;a++)r[a].next(e);const o=this.count-i+1;if(o>=0&&o%t==0&&!this.closed&&r.shift().complete(),++this.count%t==0&&!this.closed){const e=new ht.a;r.push(e),n.next(e)}}_error(e){const t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)}_complete(){const e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()}_unsubscribe(){this.count=0,this.windows=null}}function qn(e){let t=f.a,n=null,i=Number.POSITIVE_INFINITY;return Object(g.a)(arguments[3])&&(t=arguments[3]),Object(g.a)(arguments[2])?t=arguments[2]:Object(ln.a)(arguments[2])&&(i=Number(arguments[2])),Object(g.a)(arguments[1])?t=arguments[1]:Object(ln.a)(arguments[1])&&(n=Number(arguments[1])),function(r){return r.lift(new Un(e,n,i,t))}}class Un{constructor(e,t,n,i){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=n,this.scheduler
1=i}call(e,t){return t.subscribe(new Wn(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}class Hn extends ht.a{constructor(){super(...arguments),this._numberOfNextedValues=0}next(e){this._numberOfNextedValues++,super.next(e)}get numberOfNextedValues(){return this._numberOfNextedValues}}class Wn extends l.a{constructor(e,t,n,i,r){super(e),this.destination=e,this.windowTimeSpan=t,this.windowCreationInterval=n,this.maxWindowSize=i,this.scheduler=r,this.windows=[];const s=this.openWindow();if(null!==n&&n>=0){const e={windowTimeSpan:t,windowCreationInterval:n,subscriber:this,scheduler:r};this.add(r.schedule($n,t,{subscriber:this,window:s,context:null})),this.add(r.schedule(Yn,n,e))}else this.add(r.schedule(Gn,t,{subscriber:this,window:s,windowTimeSpan:t}))}_next(e){const t=this.windows,n=t.length;for(let i=0;i<n;i++){const n=t[i];n.closed||(n.next(e),n.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(n))}}_error(e){const t=this.windows;for(;t.length>0;)t.shift().error(e);this.destination.error(e)}_complete(){const e=this.windows;for(;e.length>0;){const t=e.shift();t.closed||t.complete()}this.destination.complete()}openWindow(){const e=new Hn;return this.windows.push(e),this.destination.next(e),e}closeWindow(e){e.complete();const t=this.windows;t.splice(t.indexOf(e),1)}}function Gn(e){const{subscriber:t,windowTimeSpan:n,window:i}=e;i&&t.closeWindow(i),e.window=t.openWindow(),this.schedule(e,n)}function Yn(e){const{windowTimeSpan:t,subscriber:n,scheduler:i,windowCreationInterval:r}=e,s=n.openWindow();let o={action:this,subscription:null};o.subscription=i.schedule($n,t,{subscriber:n,window:s,context:o}),this.add(o.subscription),this.schedule(e,r)}function $n(e){const{subscriber:t,window:n,context:i}=e;i&&i.action&&i.subscription&&i.action.remove(i.subscription),t.closeWindow(n)}function Zn(e,t){return n=>n.lift(new Qn(e,t))}class Qn{constructor(e,t){this.openings=e,this.closingSelector=t}call(e,t){return t.subscribe(new Xn(e,this.openings,this.closingSelector))}}class Xn extends T.a{constructor(e,t,n){super(e),this.openings=t,this.closingSelector=n,this.contexts=[],this.add(this.openSubscription=Object(S.a)(this,t,t))}_next(e){const{contexts:t}=this;if(t){const n=t.length;for(let i=0;i<n;i++)t[i].window.next(e)}}_error(e){const{contexts:t}=this;if(this.contexts=null,t){const n=t.length;let i=-1;for(;++i<n;){const n=t[i];n.window.error(e),n.subscription.unsubscribe()}}super._error(e)}_complete(){const{contexts:e}=this;if(this.contexts=null,e){const t=e.length;let n=-1;for(;++n<t;){const t=e[n];t.window.complete(),t.subscription.unsubscribe()}}super._complete()}_unsubscribe(){const{contexts:e}=this;if(this.contexts=null,e){const t=e.length;let n=-1;for(;++n<t;){const t=e[n];t.window.unsubscribe(),t.subscription.unsubscribe()}}}notifyNext(e,t,n,i,r){if(e===this.openings){let e;try{const{closingSelector:n}=this;e=n(t)}catch(s){return this.error(s)}const n=new ht.a,i=new C.a,r={window:n,subscription:i};this.contexts.push(r);const o=Object(S.a)(this,e,r);o.closed?this.closeWindow(this.contexts.length-1):(o.context=r,i.add(o)),this.destination.next(n)}else this.closeWindow(this.contexts.indexOf(e))}notifyError(e){this.error(e)}notifyComplete(e){e!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(e.context))}closeWindow(e){if(-1===e)return;const{contexts:t}=this,n=t[e],{window:i,subscription:r}=n;t.splice(e,1),i.complete(),r.unsubscribe()}}function Kn(e){return function(t){return t.lift(new Jn(e))}}class Jn{constructor(e){this.closingSelector=e}call(e,t){return t.subscribe(new ei(e,this.closingSelector))}}class ei extends T.a{constructor(e,t){super(e),this.destination=e,this.closingSelector=t,this.openWindow()}notifyNext(e,t,n,i,r){this.openWindow(r)}notifyError(e){this._error(e)}notifyComplete(e){this.openWindow(e)}_next(e){this.window.next(e)}_error(e){this.window.error(e),this.destination.error(e),this.unsubscribeClosingNotification()}_complete(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()}unsubscribeClosingNotification(){this.closingNotification&&this.closingNotification.unsubscribe()}openWindow(e=null){e&&(this.remove(e),e.unsubscribe());const t=this.window;t&&t.complete();const n=this.window=new ht.a;let i;this.destination.next(n);try{const{closingSelector:e}=this;i=e()}catch(r){return this.destination.error(r),void this.window.error(r)}this.add(this.closingNotification=Object(S.a)(this,i))}}var ti=n("zp1y"),ni=n("1uah");function ii(...e){return function(t){return t.lift.call(Object(ni.b)(t,...e))}}function ri(e){return t=>t.lift(new ni.a(e))}},kgNN:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(){return function(e){return e.lift(new s)}}class s{call(e,t){return t.subscribe(new o(e))}}class o extends i.a{constructor(e){super(e)}_next(e){e.observe(this.destination)}}},"kk9/":function(e,t,n){const i=n("e/Dd").getSymbolSize;t.getPositions=function(e){const t=i(e);return[[0,0],[t-7,0],[0,t-7]]}},"ku8+":function(e,t,n){"use strict";function i(e){return function(t,n){var i;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,s=null!=n&&n.width?String(n.width):r;i=e.formattingValues[s]||e.formattingValues[r]}else{var o=e.defaultWidth,a=null!=n&&n.width?String(n.width):e.defaultWidth;i=e.values[a]||e.values[o]}return i[e.argumentCallback?e.argumentCallback(t):t]}}n.d(t,"a",function(){return i})},l5mm:function(e,t,n){"use strict";n.d(t,"a",function(){return o}
1);var i=n("HDdC"),r=n("D0XW"),s=n("Y7HM");function o(e=0,t=r.a){return(!Object(s.a)(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=r.a),new i.a(n=>(n.add(t.schedule(a,e,{subscriber:n,counter:0,period:e})),n))}function a(e){const{subscriber:t,counter:n,period:i}=e;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}},l7GE:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");class r extends i.a{notifyNext(e,t,n,i,r){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}},l7P3:function(e,t,n){"use strict";n.d(t,"a",function(){return $}),n.d(t,"b",function(){return te}),n.d(t,"c",function(){return xe}),n.d(t,"d",function(){return Ae}),n.d(t,"e",function(){return Oe}),n.d(t,"f",function(){return q}),n.d(t,"g",function(){return g}),n.d(t,"h",function(){return le}),n.d(t,"i",function(){return ae}),n.d(t,"j",function(){return ie});var i=n("fXoL"),r=n("2Vo4"),s=n("HDdC"),o=n("XNiG"),a=n("qgXg"),c=n("pxpQ"),l=n("zp1y"),u=n("Kqap"),d=n("wO+i"),h=n("lJxs"),p=n("/uUt");const f={};function g(e,t){if(f[e]=(f[e]||0)+1,"function"==typeof t)return m(e,(...n)=>Object.assign(Object.assign({},t(...n)),{type:e}));switch(t?t._as:"empty"){case"empty":return m(e,()=>({type:e}));case"props":return m(e,t=>Object.assign(Object.assign({},t),{type:e}));default:throw new Error("Unexpected config.")}}function m(e,t){return Object.defineProperty(t,"type",{value:e,writable:!1})}const b="@ngrx/store/init";let y=(()=>{class e extends r.a{constructor(){super({type:b})}next(e){if("function"==typeof e)throw new TypeError("\n Dispatch expected an object, instead it received a function.\n If you're using the createAction function, make sure to invoke the function\n before dispatching the action. For example, someAction should be someAction().");if(void 0===e)throw new TypeError("Actions must be objects");if(void 0===e.type)throw new TypeError("Actions must have a type property");super.next(e)}complete(){}ngOnDestroy(){super.complete()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();const v=[y],_=new i.t("@ngrx/store Internal Root Guard"),w=new i.t("@ngrx/store Internal Initial State"),k=new i.t("@ngrx/store Initial State"),C=new i.t("@ngrx/store Reducer Factory"),S=new i.t("@ngrx/store Internal Reducer Factory Provider"),T=new i.t("@ngrx/store Initial Reducers"),P=new i.t("@ngrx/store Internal Initial Reducers"),O=new i.t("@ngrx/store Store Features"),x=new i.t("@ngrx/store Internal Store Reducers"),A=new i.t("@ngrx/store Internal Feature Reducers"),E=new i.t("@ngrx/store Internal Feature Configs"),M=new i.t("@ngrx/store Internal Store Features"),I=new i.t("@ngrx/store Internal Feature Reducers Token"),R=new i.t("@ngrx/store Feature Reducers"),L=new i.t("@ngrx/store User Provided Meta Reducers"),D=new i.t("@ngrx/store Meta Reducers"),j=new i.t("@ngrx/store Internal Resolved Meta Reducers"),N=new i.t("@ngrx/store User Runtime Checks Config"),V=new i.t("@ngrx/store Internal User Runtime Checks Config"),z=new i.t("@ngrx/store Internal Runtime Checks"),F=new i.t("@ngrx/store Check if Action types are unique");function B(e,t={}){const n=Object.keys(e),i={};for(let s=0;s<n.length;s++){const t=n[s];"function"==typeof e[t]&&(i[t]=e[t])}const r=Object.keys(i);return function(e,n){e=void 0===e?t:e;let s=!1;const o={};for(let t=0;t<r.length;t++){const a=r[t],c=e[a],l=(0,i[a])(c,n);o[a]=l,s=s||l!==c}return s?o:e}}function q(...e){return function(t){if(0===e.length)return t;const n=e[e.length-1];return e.slice(0,-1).reduceRight((e,t)=>t(e),n(t))}}function U(e,t){return Array.isArray(t)&&t.length>0&&(e=q.apply(null,[...t,e])),(t,n)=>{const i=e(t);return(e,t)=>i(e=void 0===e?n:e,t)}}class H extends s.a{}class W extends y{}let G=(()=>{class e extends r.a{constructor(e,t,n,i){super(i(n,t)),this.dispatcher=e,this.initialState=t,this.reducers=n,this.reducerFactory=i}addFeature(e){this.addFeatures([e])}addFeatures(e){const t=e.reduce((e,{reducers:t,reducerFactory:n,metaReducers:i,initialState:r,key:s})=>{const o="function"==typeof t?function(e){const t=Array.isArray(e)&&e.length>0?q(...e):e=>e;return(e,n)=>(e=t(e),(t,i)=>e(t=void 0===t?n:t,i))}(i)(t,r):U(n,i)(t,r);return e[s]=o,e},{});this.addReducers(t)}
1removeFeature(e){this.removeFeatures([e])}removeFeatures(e){this.removeReducers(e.map(e=>e.key))}addReducer(e,t){this.addReducers({[e]:t})}addReducers(e){this.reducers=Object.assign(Object.assign({},this.reducers),e),this.updateReducers(Object.keys(e))}removeReducer(e){this.removeReducers([e])}removeReducers(e){e.forEach(e=>{var t,n;this.reducers=(t=this.reducers,n=e,Object.keys(t).filter(e=>e!==n).reduce((e,n)=>Object.assign(e,{[n]:t[n]}),{}))}),this.updateReducers(e)}updateReducers(e){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:"@ngrx/store/update-reducers",features:e})}ngOnDestroy(){this.complete()}}return e.\u0275fac=function(t){return new(t||e)(i.gc(W),i.gc(k),i.gc(T),i.gc(C))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();const Y=[G,{provide:H,useExisting:G},{provide:W,useExisting:y}];let $=(()=>{class e extends o.a{ngOnDestroy(){this.complete()}}return e.\u0275fac=function(t){return Z(t||e)},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();const Z=i.bc($),Q=[$];class X extends s.a{}let K=(()=>{class e extends r.a{constructor(e,t,n,i){super(i);const r={state:i},s=e.pipe(Object(c.b)(a.b)).pipe(Object(l.a)(t)).pipe(Object(u.a)(J,r));this.stateSubscription=s.subscribe(({state:e,action:t})=>{this.next(e),n.next(t)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return e.\u0275fac=function(t){return new(t||e)(i.gc(y),i.gc(H),i.gc($),i.gc(k))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e.INIT=b,e})();function J(e={state:void 0},[t,n]){const{state:i}=e;return{state:n(i,t),action:t}}const ee=[K,{provide:X,useExisting:K}];let te=(()=>{class e extends s.a{constructor(e,t,n){super(),this.actionsObserver=t,this.reducerManager=n,this.source=e}select(e,...t){return ie.call(null,e,...t)(this)}lift(t){const n=new e(this,this.actionsObserver,this.reducerManager);return n.operator=t,n}dispatch(e){this.actionsObserver.next(e)}next(e){this.actionsObserver.next(e)}error(e){this.actionsObserver.error(e)}complete(){this.actionsObserver.complete()}addReducer(e,t){this.reducerManager.addReducer(e,t)}removeReducer(e){this.reducerManager.removeReducer(e)}}return e.\u0275fac=function(t){return new(t||e)(i.gc(X),i.gc(y),i.gc(G))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();const ne=[te];function ie(e,t,...n){return function(i){let r;if("string"==typeof e){const s=[t,...n].filter(Boolean);r=i.pipe(Object(d.a)(e,...s))}else{if("function"!=typeof e)throw new TypeError(`Unexpected type '${typeof e}' in select operator, expected 'string' or 'function'`);r=i.pipe(Object(h.a)(n=>e(n,t)))}return r.pipe(Object(p.a)())}}function re(e,t){return e===t}function se(e,t,n){for(let i=0;i<e.length;i++)if(!n(e[i],t[i]))return!0;return!1}function oe(e,t=re,n=re){let i,r=null,s=null;return{memoized:function(){if(void 0!==i)return i.result;if(!r)return s=e.apply(null,arguments),r=arguments,s;if(!se(arguments,r,t))return s;const o=e.apply(null,arguments);return r=arguments,n(s,o)?s:(s=o,o)},reset:function(){r=null,s=null},setResult:function(e){i={result:e}},clearResult:function(){i=void 0}}}function ae(...e){return function(e,t={stateFn:ce}){return function(...n){let i=n;if(Array.isArray(i[0])){const[e,...t]=i;i=[...e,...t]}const r=i.slice(0,i.length-1),s=i[i.length-1],o=r.filter(e=>e.release&&"function"==typeof e.release),a=e(function(...e){return s.apply(null,e)}),c=oe(function(e,n){return t.stateFn.apply(null,[e,r,n,a])});return Object.assign(c.memoized,{release:function(){c.reset(),a.reset(),o.forEach(e=>e.release())},projector:a.memoized,setResult:c.setResult,clearResult:c.clearResult})}}(oe)(...e)}function ce(e,t,n,i){if(void 0===n){const n=t.map(t=>t(e));return i.memoized.apply(null,n)}const r=t.map(t=>t(e,n));return i.memoized.apply(null,[...r,n])}function le(e){return ae(t=>{const n=t[e];return!Object(i.ab)()||e in t||console.warn(`@ngrx/store: The feature name "${e}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${e}', ...) or StoreModule.forFeature('${e}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),n},e=>e)}const ue="https://ngrx.io/guide/store/configuration/runtime-checks";function de(e){return void 0===e}function he(e){return null===e}function pe(e){return Array.isArray(e)}function fe(e){return"object"==typeof e&&null!==e}function ge(e){return"function"==typeof e}function me(e){Object.freeze(e);const t=ge(e);return Object.getOwnPropertyNames(e).forEach(n=>{if(!n.startsWith("\u0275")&&function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,n)&&(!t||"caller"!==n&&"callee"!==n&&"arguments"!==n)){const t=e[
1n];!fe(t)&&!ge(t)||Object.isFrozen(t)||me(t)}}),e}function be(e,t=[]){return(de(e)||he(e))&&0===t.length?{path:["root"],value:e}:Object.keys(e).reduce((n,i)=>{if(n)return n;const r=e[i];return function(e){return ge(e)&&e.hasOwnProperty("\u0275cmp")}(r)?n:!(de(r)||he(r)||function(e){return"number"==typeof e}(r)||function(e){return"boolean"==typeof e}(r)||function(e){return"string"==typeof e}(r)||pe(r))&&(function(e){if(!function(e){return fe(e)&&!pe(e)}(e))return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}(r)?be(r,[...t,i]):{path:[...t,i],value:r})},!1)}function ye(e,t){if(!1===e)return;const n=e.path.join("."),i=new Error(`Detected unserializable ${t} at "${n}". ${ue}#strict${t}serializability`);throw i.value=e.value,i.unserializablePath=n,i}function ve(e){return Object(i.ab)()?Object.assign({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},e):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function _e({strictActionSerializability:e,strictStateSerializability:t}){return n=>e||t?function(e,t){return function(n,i){t.action(i)&&ye(be(i),"action");const r=e(n,i);return t.state()&&ye(be(r),"state"),r}}(n,{action:t=>e&&!ke(t),state:()=>t}):n}function we({strictActionImmutability:e,strictStateImmutability:t}){return n=>e||t?function(e,t){return function(n,i){const r=t.action(i)?me(i):i,s=e(n,r);return t.state()?me(s):s}}(n,{action:t=>e&&!ke(t),state:()=>t}):n}function ke(e){return e.type.startsWith("@ngrx")}function Ce({strictActionWithinNgZone:e}){return t=>e?function(e,t){return function(n,r){if(t.action(r)&&!i.C.isInAngularZone())throw new Error(`Action '${r.type}' running outside NgZone. ${ue}#strictactionwithinngzone`);return e(n,r)}}(t,{action:t=>e&&!ke(t)}):t}function Se(){return[{provide:F,multi:!0,deps:[z],useFactory:Pe}]}function Te(e){return e}function Pe(e){if(!e.strictActionTypeUniqueness)return;const t=Object.entries(f).filter(([,e])=>e>1).map(([e])=>e);if(t.length)throw new Error(`Action types are registered more than once, ${t.map(e=>`"${e}"`).join(", ")}. ${ue}#strictactiontypeuniqueness`)}let Oe=(()=>{class e{constructor(e,t,n,i,r,s){}}return e.\u0275fac=function(t){return new(t||e)(i.gc(y),i.gc(H),i.gc($),i.gc(te),i.gc(_,8),i.gc(F,8))},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({}),e})(),xe=(()=>{class e{constructor(e,t,n,i,r){this.features=e,this.featureReducers=t,this.reducerManager=n;const s=e.map((e,n)=>{const i=t.shift()[n];return Object.assign(Object.assign({},e),{reducers:i,initialState:Re(e.initialState)})});n.addFeatures(s)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return e.\u0275fac=function(t){return new(t||e)(i.gc(M),i.gc(R),i.gc(G),i.gc(Oe),i.gc(F,8))},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({}),e})(),Ae=(()=>{class e{static forRoot(e,t={}){return{ngModule:Oe,providers:[{provide:_,useFactory:De,deps:[[te,new i.D,new i.O]]},{provide:w,useValue:t.initialState},{provide:k,useFactory:Re,deps:[w]},{provide:P,useValue:e},{provide:x,useExisting:e instanceof i.t?e:P},{provide:T,deps:[i.u,P,[new i.r(x)]],useFactory:Ee},{provide:L,useValue:t.metaReducers?t.metaReducers:[]},{provide:j,deps:[D,L],useFactory:Le},{provide:S,useValue:t.reducerFactory?t.reducerFactory:B},{provide:C,deps:[S,j],useFactory:U},v,Y,Q,ee,ne,(n=t.runtimeChecks,[{provide:V,useValue:n},{provide:N,useFactory:Te,deps:[V]},{provide:z,deps:[N],useFactory:ve},{provide:D,multi:!0,deps:[z],useFactory:we},{provide:D,multi:!0,deps:[z],useFactory:_e},{provide:D,multi:!0,deps:[z],useFactory:Ce}]),Se()]};var n}static forFeature(e,t,n={}){return{ngModule:xe,providers:[{provide:E,multi:!0,useValue:e instanceof Object?{}:n},{provide:O,multi:!0,useValue:{key:e instanceof Object?e.name:e,reducerFactory:n instanceof i.t||!n.reducerFactory?B:n.reducerFactory,metaReducers:n instanceof i.t||!n.metaReducers?[]:n.metaReducers,initialState:n instanceof i.t||!n.initialState?void 0:n.initialState}},{provide:M,deps:[i.u,E,O],useFactory:Me},{provide:A,multi:!0,useValue:e instanceof Object?e.reducer:t},{provide:I,multi:!0,useExisting:t instanceof i.t?t:A},{provide:R,multi:!0,deps:[i.u,A,[new i.r(I)]],useFactory:Ie},Se()]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({}),e})();function Ee(e,t){return t instanceof i.t?e.get(t):t}function Me(e,t,n){return n.map((n,r)=>{if(t[r]instanceof i.t){const i=e.get(t[r]);return{key:n.key,reducerFactory:i.reducerFactory?i.reducerFactory:B,metaReducers:i.metaReducers?i.metaReducers:[],initialState:i.initialState}}return n})}function Ie(e,t){return t.map(t=>t instanceof i.t?e.get(t):t)}function Re(e){return"function"==typeof e?e():e}function Le(e,t){return e.concat(t)}function De(e){if(e)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature
1() instead.");return"guarded"}},lJxs:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new s(e,t))}}class s{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new o(e,this.project,this.thisArg))}}class o extends i.a{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}},lK6t:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"CoreUserDevice"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"CoreUserDevice",plural:"CoreUserDevices",path:"CoreUserDevices",idName:"id",properties:{userId:{name:"userId",type:"any"},platform:{name:"platform",type:"string"},name:{name:"name",type:"string"},ua:{name:"ua",type:"string"},browser:{name:"browser",type:"any"},device:{name:"device",type:"any"},os:{name:"os",type:"any"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{accessTokens:{name:"accessTokens",type:"any[]",model:"",relationType:"hasMany",keyFrom:"id",keyTo:"deviceId"},user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},lRFz:function(e,t,n){var i;i=function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,(function(t){return e[t]}).bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";var i=n(1),r=n(129),s=n(145),o=n(146),a=n(130),c=n(147),l=n(135),u=n(132);if(n(4)()){var d=n(148).PDFNodeStream;r.setPDFNetworkStreamFactory(function(e){return new d(e)})}else if("undefined"!=typeof Response&&"body"in Response.prototype&&"undefined"!=typeof ReadableStream){var h=n(151).PDFFetchStream;r.setPDFNetworkStreamFactory(function(e){return new h(e)})}else{var p=n(152).PDFNetworkStream;r.setPDFNetworkStreamFactory(function(e){return new p(e)})}t.build=r.build,t.version=r.version,t.getDocument=r.getDocument,t.LoopbackPort=r.LoopbackPort,t.PDFDataRangeTransport=r.PDFDataRangeTransport,t.PDFWorker=r.PDFWorker,t.renderTextLayer=s.renderTextLayer,t.AnnotationLayer=o.AnnotationLayer,t.createPromiseCapability=i.createPromiseCapability,t.PasswordResponses=i.PasswordResponses,t.InvalidPDFException=i.InvalidPDFException,t.MissingPDFException=i.MissingPDFException,t.SVGGraphics=c.SVGGraphics,t.NativeImageDecoding=i.NativeImageDecoding,t.CMapCompressionType=i.CMapCompressionType,t.PermissionFlag=i.PermissionFlag,t.UnexpectedResponseException=i.UnexpectedResponseException,t.OPS=i.OPS,t.VerbosityLevel=i.VerbosityLevel,t.UNSUPPORTED_FEATURES=i.UNSUPPORTED_FEATURES,t.createValidAbsoluteUrl=i.createValidAbsoluteUrl,t.createObjectURL=i.createObjectURL,t.removeNullCharacters=i.removeNullCharacters,t.shadow=i.shadow,t.Util=i.Util,t.ReadableStream=i.ReadableStream,t.URL=i.URL,t.RenderingCancelledException=a.RenderingCancelledException,t.getFilenameFromUrl=a.getFilenameFromUrl,t.LinkTarget=a.LinkTarget,t.addLinkAttributes=a.addLinkAttributes,t.loadScript=a.loadScript,t.GlobalWorkerOptions=l.GlobalWorkerOptions,t.apiCompatibilityParams=u.apiCompatibilityParams},function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.unreachable=t.warn=t.utf8StringToString=t.stringToUTF8String=t.stringToPDFString=t.stringToBytes=t.string32=t.shadow=t.setVerbosityLevel=t.URL=t.ReadableStream=t.removeNullCharacters=t.readUint32=t.readUint16=t.readInt8=t.log2=t.isEvalSupported=t.isLittleEndian=t.createValidAbsoluteUrl=t.isSameOrigin=t.isSpace=t.isString=t.isNum=t.isEmptyObj=t.isBool=t.isArrayBuffer=t.info=t.getVerbosityLevel=t.getLookupTableFactory=t.getInheritableProperty=t.deprecated=t.createObjectURL=t.createPromiseCapability=t.bytesToString=t.assert=t.arraysToBytes=t.arrayByteLength=t.FormatError=t.XRefParseException=t.toRomanNumerals=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.NativeImageDecoding=t.MissingPDFException=t.MissingDataException=t.InvalidPDFException=t.AbortException=t.CMapCompressionType=t.ImageKind=t.FontType=t.AnnotationType=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.UNSUPPORTED_FEATURES=t.VerbosityLevel=t.OPS=t.IDENTITY_MATRIX=t.FONT_IDENTITY_MATRIX=void 0;var i="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};n(2);var r=n(125),s=n(127),o={ERRORS:0,WARNINGS:1,INFOS:5},a=o.WARNINGS;function c(e){a>=o.WARNINGS&&console.log("Warning: "+e)}function l(e){throw new Error(e)}function u(e,t){e||l(t)}var d=function(){function e(e,t){this.name="PasswordException",this.message=e,this.code=t}return e.prototype=new Error,e.constructor=e,e}(),h=function(){function e(e,t){this.name="UnknownErrorException",this.message=e,this.details=t}return e.prototype=new Error,e.constructor=e,e}(),p=function(){function e(e){this.name="InvalidPDFException",this.message=e}return e.prototype=new Error,e.constructor=e,e}(),f=function(){function e(e){this.name="MissingPDFException",this.message=e}return e.prototype=new Error,e.constructor=e,e}(),g=function(){function e(e,t){this.name="UnexpectedResponseException",this.message=e,this.status=t}return e.prototype=new Error,e.constructor=e,e}(),m=function(){function e(e,t){this.begin=e,this.end=t,this.message="Missing data ["+e+", "+t+")"}return(e.prototype=new Error).name="MissingDataException",e.constructor=e,e}(),b=function(){function e(e){this.message=e}return(e.prototype=new Error).name="XRefParseException",e.constructor=e,e}(),y=function(){function e(e){this.message=e}return(e.prototype=new Error).name="FormatError",e.constructor=e,e}(),v=function(){function e(e){this.name="AbortException",this.message=e}return e.prototype=new Error,e.constructor=e,e}(),_=/\x00/g;function w(e){u("string"==typeof e,"Invalid argument for stringToBytes");for(var t=e.length,n=new Uint8Array(t),i=0;i<t;++i)n[i]=255&e.charCodeAt(i);return n}function k(e){return void 0!==e.length?e.length:(u(void 0!==e.byteLength),e.byteLength)}var C,S=function(){function e(){}var t=["rgb(",0,",",0,",",0,")"];return e.makeCssRgb=function(e,n,i){return t[1]=e,t[3]=n,t[5]=i,t.join("")},e.transform=function(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]},e.applyTransform=function(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]},e.applyInverseTransform=function(e,t){var n=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/n,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/n]},e.getAxialAlignedBoundingBox=function(t,n){var i=e.applyTransform(t,n),r=e.applyTransform(t.slice(2,4),n),s=e.applyTransform([t[0],t[3]],n),o=e.applyTransform([t[2],t[1]],n);return[Math.min(i[0],r[0],s[0],o[0]),Math.min(i[1],r[1],s[1],o[1]),Math.max(i[0],r[0],s[0],o[0]),Math.max(i[1],r[1],s[1],o[1])]},e.inverseTransform=function(e){var t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]},e.apply3dTransform=function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]},e.singularValueDecompose2dScale=function(e){var t=[e[0],e[2],e[1],e[3]],n=e[0]*t[0]+e[1]*t[2],i=e[2]*t[1]+e[3]*t[3],r=(n+i)/2,s=Math.sqrt((n+i)*(n+i)-4*(n*i-(e[2]*t[0]+e[3]*t[2])*(e[0]*t[1]+e[1]*t[3])))/2,o=r-s||1;return[Math.sqrt(r+s||1),Math.sqrt(o)]},e.normalizeRect=function(e){var t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t},e.intersect=function(t,n){function i(e,t){return e-t}var r=[t[0],t[2],n[0],n[2]].sort(i),s=[t[1],t[3],n[1],n[3]].sort(i),o=[];return t=e.normalizeRect(t),n=e.normalizeRect(n),(r[0]===t[0]&&r[1]===n[0]||r[0]===n[0]&&r[1]===t[0])&&(o[0]=r[1],o[2]=r[2],(s[0]===t[1]&&s[1]===n[1]||s[0]===n[1]&&s[1]===t[1])&&(o[1]=s[1],o[3]=s[2],o))},e}
1(),T=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"],P=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364],O=(C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!n&&s.URL.createObjectURL){var i=new Blob([e],{type:t});return s.URL.createObjectURL(i)}for(var r="data:"+t+";base64,",o=0,a=e.length;o<a;o+=3){var c=255&e[o],l=255&e[o+1],u=255&e[o+2],d=c>>2,h=(3&c)<<4|l>>4,p=o+1<a?(15&l)<<2|u>>6:64,f=o+2<a?63&u:64;r+=C[d]+C[h]+C[p]+C[f]}return r});t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],t.IDENTITY_MATRIX=[1,0,0,1,0,0],t.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},t.VerbosityLevel=o,t.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font"},t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},t.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},t.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},t.FontType={UNKNOWN:0,TYPE1:1,TYPE1C:2,CIDFONTTYPE0:3,CIDFONTTYPE0C:4,TRUETYPE:5,CIDFONTTYPE2:6,TYPE3:7,OPENTYPE:8,TYPE0:9,MMTYPE1:10},t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},t.CMapCompressionType={NONE:0,BINARY:1,STREAM:2},t.AbortException=v,t.InvalidPDFException=p,t.MissingDataException=m,t.MissingPDFException=f,t.NativeImageDecoding={NONE:"none",DECODE:"decode",DISPLAY:"display"},t.PasswordException=d,t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},t.StreamType={UNKNOWN:0,FLATE:1,LZW:2,DCT:3,JPX:4,JBIG:5,A85:6,AHX:7,CCF:8,RL:9},t.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},t.UnexpectedResponseException=g,t.UnknownErrorException=h,t.Util=S,t.toRomanNumerals=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];u(Number.isInteger(e)&&e>0,"The number should be a positive integer.");for(var n=void 0,i=[];e>=1e3;)e-=1e3,i.push("M");n=e/100|0,e%=100,i.push(T[n]),n=e/10|0,e%=10,i.push(T[10+n]),i.push(T[20+e]);var r=i.join("");return t?r.toLowerCase():r},t.XRefParseException=b,t.FormatError=y,t.arrayByteLength=k,t.arraysToBytes=function(e){if(1===e.length&&e[0]instanceof Uint8Array)return e[0];var t,n,i,r=0,s=e.length;for(t=0;t<s;t++)r+=i=k(n=e[t]);var o=0,a=new Uint8Array(r);for(t=0;t<s;t++)(n=e[t])instanceof Uint8Array||(n="string"==typeof n?w(n):new Uint8Array(n)),i=n.byteLength,a.set(n,o),o+=i;return a},t.assert=u,t.bytesToString=function(e){u(null!==e&&"object"===(void 0===e?"undefined":i(e))&&void 0!==e.length,"Invalid argument for bytesToString");var t=e.length;if(t<8192)return String.fromCharCode.apply(null,e);for(var n=[],r=0;r<t;r+=8192){var s=Math.min(r+8192,t),o=e.subarray(r,s);n.push(String.fromCharCode.apply(null,o))}return n.join("")},t.createPromiseCapability=function(){var e={};return e.promise=new Promise(function(t,n){e.resolve=t,e.reject=n}),e},t.createObjectURL=O,t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.getInheritableProperty=function(e){for(var t=e.dict,n=e.key,i=e.getArray,r=void 0!==i&&i,s=e.stopWhenFound,o=void 0===s||s,a=0,l=void 0;t;){var u=r?t.getArray(n):t.get(n);if(void 0!==u){if(o)return u;l||(l=[]),l.push(u)}if(++a>100){c('getInheritableProperty: maximum loop count exceeded for "'+n+'"');break}t=t.get("Parent")}return l},t.getLookupTableFactory=function(e){var t;return function(){return e&&(t=Object.create(null),e(t),e=null),t}},t.getVerbosityLevel=function(){return a},t.info=function(e){a>=o.INFOS&&console.log("Info: "+e)},t.isArrayBuffer=function(e){return"object"===(void 0===e?"undefined":i(e))&&null!==e&&void 0!==e.byteLength},t.isBool=function(e){return"boolean"==typeof e},t.isEmptyObj=function(e){for(var t in e)return!1;return!0},t.isNum=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSpace=function(e){return 32===e||9===e||13===e||10===e},t.isSameOrigin=function(e,t){try{var n=new s.URL(e);if(!n.origin||"null"===n.origin)return!1}catch(r){return!1}var i=new s.URL(t,n);return n.origin===i.origin},t.createValidAbsoluteUrl=function(e,t){if(!e)return null;try{var n=t?new s.URL(e,t):new s.URL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(n))return n}catch(i){}return null},t.isLittleEndian=function(){var e=new Uint8Array(4);return e[0]=1,1===new Uint32Array(e.buffer,0,1)[0]},t.isEvalSupported=function(){try{return new Function(""),!0}catch(e){return!1}},t.log2=function(e){return e<=0?0:Math.ceil(Math.log2(e))},t.readInt8=function(e,t){return e[t]<<24>>24},t.readUint16=function(e,t){return e[t]<<8|e[t+1]},t.readUint32=function(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0},t.removeNullCharacters=function(e){return"string"!=typeof e?(c("The argument for removeNullCharacters must be a string."),e):e.replace(_,"")},t.ReadableStream=r.ReadableStream,t.URL=s.URL,t.setVerbosityLevel=function(e){Number.isInteger(e)&&(a=e)},t.shadow=function(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!1}),n},t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=w,t.stringToPDFString=function(e){var t,n=e.length,i=[];if("\xfe"===e[0]&&"\xff"===e[1])for(t=2;t<n;t+=2)i.push(String.fromCharCode(e.charCodeAt(t)<<8|e.charCodeAt(t+1)));else for(t=0;t<n;++t){var r=P[e.charCodeAt(t)];i.push(r?String.fromCharCode(r):e.charAt(t))}return i.join("")},t.stringToUTF8String=function(e){return decodeURIComponent(escape(e))},t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=c,t.unreachable=l},function(e,t,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(3);if(!r._pdfjsCompatibilityChecked){r._pdfjsCompatibilityChecked=!0;var s=n(4),o="object"===("undefined"==typeof window?"undefined":i(window))&&"object"===("undefined"==typeof document?"undefined":i(document));!r.btoa&&s()&&(r.btoa=function(e){return Buffer.from(e,"binary").toString("base64")}),!r.atob&&s()&&(r.atob=function(e){return Buffer.from(e,"base64").toString("binary")}),o&&("currentScript"in document||Object.defineProperty(document,"currentScript",{get:function(){var e=document.getElementsByTagName("script");return e[e.length-1]},enumerable:!0,configurable:!0})),o&&void 0===Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),function(){if(o&&!s()&&!1!==document.createElement("div").classList.toggle("test",0)){var e=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t){if(arguments.length>1){var n=!!arguments[1];return this[n?"add":"remove"](t),n}return e(t)}}}(),String.prototype.includes||n(5),Array.prototype.includes||n(33),Object.assign||n(42),Math.log2||(Math.log2=n(52)),Number.isNaN||(Number.isNaN=n(54)),Number.isInteger||(Number.isInteger=n(56)),r.Promise||(r.Promise=n(59)),r.WeakMap||(r.WeakMap=n(94)),String.codePointAt||(String.codePointAt=n(111)),String.fromCodePoint||(String.fromCodePoint=n(113)),r.Symbol||n(115),Object.values||(Object.values=n(122))}},function(e,t,n){"use strict";e.exports="undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:{}},function(e,t,n){"use strict";var i="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.exports=function(){return"object"===("undefined"==typeof process?"undefined":i(process))&&process+""=="[object process]"}},function(e,t,n){"use strict";n(6),e.exports=n(9).String.includes},function(e,t,n){"use strict";var i=n(7),r=n(25);i(i.P+i.F*n(32)("includes"),"String",{includes:function(e){return!!~r(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var i=n(8),r=n(9),s=n(10),o=n(20),a=n(23),c=function e(t,n,c){var l,u,d,h,p=t&e.F,f=t&e.G,g=t&e.P,m=t&e.B,b=f?i:t&e.S?i[n]||(i[n]={}):(i[n]||{}).prototype,y=f?r:r[n]||(r[n]={}),v=y.prototype||(y.prototype={});for(l in f&&(c=n),c)d=((u=!p&&b&&void 0!==b[l])?b:c)[l],h=m&&u?a(d,i):g&&"function"==typeof d?a(Function.call,d):d,b&&o(b,l,d,t&e.U),y[l]!=d&&s(y,l,h),g&&v[l]!=d&&(v[l]=d)};i.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,n){"use strict";var i=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(e,t,n){"use strict";var i=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=i)},function(e,t,n){"use strict";var i=n(11),r=n(19);e.exports=n(15)?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";var i=n(12),r=n(14),s=n(18),o=Object.defineProperty;t.f=n(15)?Object.defineProperty:function(e,t,n){if(i(e),t=s(t,!0),i(n),r)try{return o(e,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";var i=n(13);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){"use strict";var i="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.exports=function(e){return"object"===(void 0===e?"undefined":i(e))?null!==e:"function"==typeof e}},function(e,t,n){"use strict";e.exports=!n(15)&&!n(16)(function(){return 7!=Object.defineProperty(n(17)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";e.exports=!n(16)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){"use strict";var i=n(13),r=n(8).document,s=i(r)&&i(r.createElement);e.exports=function(e){return s?r.createElement(e):{}}},function(e,t,n){"use strict";var i=n(13);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var i=n(8),r=n(10),s=n(21),o=n(22)("src"),a=Function.toString,c=(""+a).split("toString");n(9).inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,n,a){var l="function"==typeof n;l&&(s(n,"name")||r(n,"name",t)),e[t]!==n&&(l&&(s(n,o)||r(n,o,e[t]?""+e[t]:c.join(String(t)))),e===i?e[t]=n:a?e[t]?e[t]=n:r(e,t,n):(delete e[t],r(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[o]||a.call(this)})},function(e,t,n){"use strict";var i={}.hasOwnProperty;e.exports=function(e,t){return i.call(e,t)}},function(e,t,n){"use strict";var i=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++i+r).toString(36))}},function(e,t,n){"use strict";var i=n(24);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var i=n(26),r=n(31);e.exports=function(e,t,n){if(i(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(e))}},function(e,t,n){"use strict";var i=n(13),r=n(27),s=n(28)("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[s])?!!t:"RegExp"==r(e))}},function(e,t,n){"use strict";var i={}.toString;e.exports=function(e){return i.call(e).slice(8,-1)}},function(e,t,n){"use strict";var i=n(29)("wks"),r=n(22),s=n(8).Symbol,o="function"==typeof s;(e.exports=function(e){return i[e]||(i[e]=o&&s[e]||(o?s:r)("Symbol."+e))}).store=i},function(e,t,n){"use strict";var i=n(9),r=n(8),s=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(30)?"pure":"global",copyright:"\xa9 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){"use strict";e.exports=!1},function(e,t,n){"use strict";e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var i=n(28)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,!"/./"[e](t)}catch(r){}}return!0}},function(e,t,n){"use strict";n(34),e.exports=n(9).Array.includes},function(e,t,n){"use strict";var i=n(7),r=n(35)(!0);i(i.P,"Array",{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(41)("includes")},function(e,t,n){"use strict";var i=n(36),r=n(38),s=n(40);e.exports=function(e){return function(t,n,o){var a,c=i(t),l=r(c.length),u=s(o,l);if(e&&n!=n){for(;l>u;)if((a=c[u++])!
vendor: 4,414 bytes, line 1
1=a)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){"use strict";var i=n(37),r=n(31);e.exports=function(e){return i(r(e))}},function(e,t,n){"use strict";var i=n(27);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var i=n(39),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},function(e,t,n){"use strict";var i=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:i)(e)}},function(e,t,n){"use strict";var i=n(39),r=Math.max,s=Math.min;e.exports=function(e,t){return(e=i(e))<0?r(e+t,0):s(e,t)}},function(e,t,n){"use strict";var i=n(28)("unscopables"),r=Array.prototype;null==r[i]&&n(10)(r,i,{}),e.exports=function(e){r[i][e]=!0}},function(e,t,n){"use strict";n(43),e.exports=n(9).Object.assign},function(e,t,n){"use strict";var i=n(7);i(i.S+i.F,"Object",{assign:n(44)})},function(e,t,n){"use strict";var i=n(45),r=n(49),s=n(50),o=n(51),a=n(37),c=Object.assign;e.exports=!c||n(16)(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=i})?function(e,t){for(var n=o(e),c=arguments.length,l=1,u=r.f,d=s.f;c>l;)for(var h,p=a(arguments[l++]),f=u?i(p).concat(u(p)):i(p),g=f.length,m=0;g>m;)d.call(p,h=f[m++])&&(n[h]=p[h]);return n}:c},function(e,t,n){"use strict";var i=n(46),r=n(48);e.exports=Object.keys||function(e){return i(e,r)}},function(e,t,n){"use strict";var i=n(21),r=n(36),s=n(35)(!1),o=n(47)("IE_PROTO");e.exports=function(e,t){var n,a=r(e),c=0,l=[];for(n in a)n!=o&&i(a,n)&&l.push(n);for(;t.length>c;)i(a,n=t[c++])&&(~s(l,n)||l.push(n));return l}},function(e,t,n){"use strict";var i=n(29)("keys"),r=n(22);e.exports=function(e){return i[e]||(i[e]=r(e))}},function(e,t,n){"use strict";e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){"use strict";t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";var i=n(31);e.exports=function(e){return Object(i(e))}},function(e,t,n){"use strict";n(53),e.exports=n(9).Math.log2},function(e,t,n){"use strict";var i=n(7);i(i.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){"use strict";n(55),e.exports=n(9).Number.isNaN},function(e,t,n){"use strict";var i=n(7);i(i.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){"use strict";n(57),e.exports=n(9).Number.isInteger},function(e,t,n){"use strict";var i=n(7);i(i.S,"Number",{isInteger:n(58)})},function(e,t,n){"use strict";var i=n(13),r=Math.floor;e.exports=function(e){return!i(e)&&isFinite(e)&&r(e)===e}},function(e,t,n){"use strict";n(60),n(62),n(72),n(75),n(92),n(93),e.exports=n(9).Promise},function(e,t,n){"use strict";var i=n(61),r={};r[n(28)("toStringTag")]="z",r+""!="[object z]"&&n(20)(Object.prototype,"toString",function(){return"[object "+i(this)+"]"},!0)},function(e,t,n){"use strict";var i=n(27),r=n(28)("toStringTag"),s="Arguments"==i(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),r))?n:s?i(t):"Object"==(o=i(t))&&"function"==typeof t.callee?"Arguments":o}},function(e,t,n){"use strict";var i=n(63)(!0);n(64)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var i=n(39),r=n(31);e.exports=function(e){return function(t,n){var s,o,a=String(r(t)),c=i(n),l=a.length;return c<0||c>=l?e?"":void 0:(s=a.charCodeAt(c))<55296||s>56319||c+1===l||(o=a.charCodeAt(c+1))<56320||o>57343?e?a.charAt(c):s:e?a.slice(c,c+2):o-56320+(s-55296<<10)+65536}}},function(e,t,n){"use strict";var i=n(30),r=n(7),s=n(20),o=n(10),a=n(65),c=n(66),l=n(70),u=n(71),d=n(28)("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,f,g,m,b){c(n,t,f);var y,v,_,w=function(e){if(!h&&e in T)return T[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",C="values"==g,S=!1,T=e.prototype,P=T[d]||T["@@iterator"]||g&&T[g],O=P||w(g),x=g?C?w("entr
1ies"):O:void 0,A="Array"==t&&T.entries||P;if(A&&(_=u(A.call(new e)))!==Object.prototype&&_.next&&(l(_,k,!0),i||"function"==typeof _[d]||o(_,d,p)),C&&P&&"values"!==P.name&&(S=!0,O=function(){return P.call(this)}),i&&!b||!h&&!S&&T[d]||o(T,d,O),a[t]=O,a[k]=p,g)if(y={values:C?O:w("values"),keys:m?O:w("keys"),entries:x},b)for(v in y)v in T||s(T,v,y[v]);else r(r.P+r.F*(h||S),t,y);return y}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";var i=n(67),r=n(19),s=n(70),o={};n(10)(o,n(28)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=i(o,{next:r(1,n)}),s(e,t+" Iterator")}},function(e,t,n){"use strict";var i=n(12),r=n(68),s=n(48),o=n(47)("IE_PROTO"),a=function(){},c=function(){var e,t=n(17)("iframe"),i=s.length;for(t.style.display="none",n(69).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;i--;)delete c.prototype[s[i]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a.prototype=i(e),n=new a,a.prototype=null,n[o]=e):n=c(),void 0===t?n:r(n,t)}},function(e,t,n){"use strict";var i=n(11),r=n(12),s=n(45);e.exports=n(15)?Object.defineProperties:function(e,t){r(e);for(var n,o=s(t),a=o.length,c=0;a>c;)i.f(e,n=o[c++],t[n]);return e}},function(e,t,n){"use strict";var i=n(8).document;e.exports=i&&i.documentElement},function(e,t,n){"use strict";var i=n(11).f,r=n(21),s=n(28)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,s)&&i(e,s,{configurable:!0,value:t})}},function(e,t,n){"use strict";var i=n(21),r=n(51),s=n(47)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),i(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t,n){"use strict";for(var i=n(73),r=n(45),s=n(20),o=n(8),a=n(10),c=n(65),l=n(28),u=l("iterator"),d=l("toStringTag"),h=c.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},f=r(p),g=0;g<f.length;g++){var m,b=f[g],y=p[b],v=o[b],_=v&&v.prototype;if(_&&(_[u]||a(_,u,h),_[d]||a(_,d,b),c[b]=h,y))for(m in i)_[m]||s(_,m,i[m],!0)}},function(e,t,n){"use strict";var i=n(41),r=n(74),s=n(65),o=n(36);e.exports=n(64)(Array,"Array",function(e,t){this._t=o(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),s.Arguments=s.Array,i("keys"),i("values"),i("entries")},function(e,t,n){"use strict";e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var i,r,s,o,a=n(30),c=n(8),l=n(23),u=n(61),d=n(7),h=n(13),p=n(24),f=n(76),g=n(77),m=n(81),b=n(82).set,y=n(84)(),v=n(85),_=n(86),w=n(87),k=n(88),C=c.TypeError,S=c.process,T=S&&S.versions,P=T&&T.v8||"",O=c.Promise,x="process"==u(S),A=function(){},E=r=v.f,M=!!function(){try{var e=O.resolve(1),t=(e.constructor={})[n(28)("species")]=function(e){e(A,A)};return(x||"function"==typeof PromiseRejectionEvent)&&e.then(A)instanceof t&&0!==P.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(i){}}(),I=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},R=function(e,t){if(!e._n){e._n=!0;var n=e._c;y(function(){for(var i=e._v,r=1==e._s,s=0,o=function(t){var n,s,o,a=r?t.ok:t.fail,c=t.resolve,l=t.reject,u=t.domain;try{a?(r||(2==e._h&&j(e),e._h=1),!0===a?n=i:(u&&u.enter(),n=a(i),u&&(u.exit(),o=!0)),n===t.promise?l(C("Promise-chain cycle")):(s=I(n))?s.call(n,c,l):c(n)):l(i)}catch(d){u&&!o&&u.exit(),l(d)}};n.length>s;)o(n[s++]);e._c=[],e._n=!1,t&&!e._h&&L(e)})}},L=function(e){b.call(c,function(){var t,n,i,r=e._v,s=D(e);if(s&&(t=_(function(){x?S.emit("unhandledRejection",r,e):(n=c.onunhandledrejection)?n({promise:e,reason:r}):(i=c.console)&&i.error&&i.error("Unhandled promise rejection",r)}
vendor: 9,037 bytes, line 1
1),e._h=x||D(e)?2:1),e._a=void 0,s&&t.e)throw t.v})},D=function(e){return 1!==e._h&&0===(e._a||e._c).length},j=function(e){b.call(c,function(){var t;x?S.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})})},N=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),R(t,!0))},V=function e(t){var n,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===t)throw C("Promise can't be resolved itself");(n=I(t))?y(function(){var r={_w:i,_d:!1};try{n.call(t,l(e,r,1),l(N,r,1))}catch(s){N.call(r,s)}}):(i._v=t,i._s=1,R(i,!1))}catch(r){N.call({_w:i,_d:!1},r)}}};M||(O=function(e){f(this,O,"Promise","_h"),p(e),i.call(this);try{e(l(V,this,1),l(N,this,1))}catch(t){N.call(this,t)}},(i=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(89)(O.prototype,{then:function(e,t){var n=E(m(this,O));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=x?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&R(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),s=function(){var e=new i;this.promise=e,this.resolve=l(V,e,1),this.reject=l(N,e,1)},v.f=E=function(e){return e===O||e===o?new s(e):r(e)}),d(d.G+d.W+d.F*!M,{Promise:O}),n(70)(O,"Promise"),n(90)("Promise"),o=n(9).Promise,d(d.S+d.F*!M,"Promise",{reject:function(e){var t=E(this);return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(a||!M),"Promise",{resolve:function(e){return k(a&&this===o?O:this,e)}}),d(d.S+d.F*!(M&&n(91)(function(e){O.all(e).catch(A)})),"Promise",{all:function(e){var t=this,n=E(t),i=n.resolve,r=n.reject,s=_(function(){var n=[],s=0,o=1;g(e,!1,function(e){var a=s++,c=!1;n.push(void 0),o++,t.resolve(e).then(function(e){c||(c=!0,n[a]=e,--o||i(n))},r)}),--o||i(n)});return s.e&&r(s.v),n.promise},race:function(e){var t=this,n=E(t),i=n.reject,r=_(function(){g(e,!1,function(e){t.resolve(e).then(n.resolve,i)})});return r.e&&i(r.v),n.promise}})},function(e,t,n){"use strict";e.exports=function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){"use strict";var i=n(23),r=n(78),s=n(79),o=n(12),a=n(38),c=n(80),l={},u={},d=e.exports=function(e,t,n,d,h){var p,f,g,m,b=h?function(){return e}:c(e),y=i(n,d,t?2:1),v=0;if("function"!=typeof b)throw TypeError(e+" is not iterable!");if(s(b)){for(p=a(e.length);p>v;v++)if((m=t?y(o(f=e[v])[0],f[1]):y(e[v]))===l||m===u)return m}else for(g=b.call(e);!(f=g.next()).done;)if((m=r(g,y,f.value,t))===l||m===u)return m};d.BREAK=l,d.RETURN=u},function(e,t,n){"use strict";var i=n(12);e.exports=function(e,t,n,r){try{return r?t(i(n)[0],n[1]):t(n)}catch(o){var s=e.return;throw void 0!==s&&i(s.call(e)),o}}},function(e,t,n){"use strict";var i=n(65),r=n(28)("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||s[r]===e)}},function(e,t,n){"use strict";var i=n(61),r=n(28)("iterator"),s=n(65);e.exports=n(9).getIteratorMethod=function(e){if(null!=e)return e[r]||e["@@iterator"]||s[i(e)]}},function(e,t,n){"use strict";var i=n(12),r=n(24),s=n(28)("species");e.exports=function(e,t){var n,o=i(e).constructor;return void 0===o||null==(n=i(o)[s])?t:r(n)}},function(e,t,n){"use strict";var i,r,s,o=n(23),a=n(83),c=n(69),l=n(17),u=n(8),d=u.process,h=u.setImmediate,p=u.clearImmediate,f=u.MessageChannel,g=u.Dispatch,m=0,b={},y=function(){var e=+this;if(b.hasOwnProperty(e)){var t=b[e];delete b[e],t()}},v=function(e){y.call(e.data)};h&&p||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return b[++m]=function(){a("function"==typeof e?e:Function(e),t)},i(m),m},p=function(e){delete b[e]},"process"==n(27)(d)?i=function(e){d.nextTick(o(y,e,1))}:g&&g.now?i=function(e){g.now(o(y,e,1))}:f?(s=(r=new f).port2,r.port1.onmessage=v,i=o(s.postMessage,s,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(i=function(e){u.postMessage(e+"","*")},u.addEventListener("message",v,!1)):i="onreadystatechange"in l("script")?function(e){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),y.call(e)}}:function(e){setTimeout(o(y,e,1),0)}),e.exports={set:h,clear:p}},function(e,t,n){"use strict";e.exports=function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){"use strict";var i=n(8),r=n(82).set,s=i.MutationObserver||i.WebKitMutationObserver,o=i.process,a=i.Promise,c="process"==n(27)(o);e.exports=function(){var e,t,n,l=function(){var i,r;for(c&&(i=o.domain)&&i.exit();e;){r=e.fn,e=e.next;try{r()}catch(s){throw e?n():t=void 0,s}}t=void 0,i&&i.enter()};if(c)n=function(){o.nextTick(l)};else if(!s||i.navigator&&i.navigator.standalone)if(a&&a.resolve){var u=a.resolve(void 0);n=function(){u.then(l)}}else n=function(){r.call(i,l)};else{var d=!0,h=document.createTextNode("");new s(l).observe(h,{characterData:!0}),n=function(){h.data=d=!d}}return function(i){var r={fn:i,next:void 0};t&&(t.next=r),e||(e=r,n()),t=r}}},function(e,t,n){"use strict";var i=n(24);function r(e){var t,n;this.promise=new e(function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i}),this.resolve=i(t),this.reject=i(n)}e.exports.f=function(e){return new r(e)}},function(e,t,n){"use strict";e.exports=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}}},function(e,t,n){"use strict";var i=n(8).navigator;e.exports=i&&i.userAgent||""},function(e,t,n){"use strict";var i=n(12),r=n(13),s=n(85);e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=s.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var i=n(20);e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},function(e,t,n){"use strict";var i=n(8),r=n(11),s=n(15),o=n(28)("species");e.exports=function(e){var t=i[e];s&&t&&!t[o]&&r.f(t,o,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var i=n(28)("iterator"),r=!1;try{var s=[7][i]();s.return=function(){r=!0},Array.from(s,function(){throw 2})}catch(o){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var s=[7],a=s[i]();a.next=function(){return{done:n=!0}},s[i]=function(){return a},e(s)}catch(o){}return n}},function(e,t,n){"use strict";var i=n(7),r=n(9),s=n(8),o=n(81),a=n(88);i(i.P+i.R,"Promise",{finally:function(e){var t=o(this,r.Promise||s.Promise),n="function"==typeof e;return this.then(n?function(n){return a(t,e()).then(function(){return n})}:e,n?function(n){return a(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){"use strict";var i=n(7),r=n(85),s=n(86);i(i.S,"Promise",{try:function(e){var t=r.f(this),n=s(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){"use strict";n(60),n(72),n(95),n(107),n(109),e.exports=n(9).WeakMap},function(e,t,n){"use strict";var i,r=n(96)(0),s=n(20),o=n(100),a=n(44),c=n(101),l=n(13),u=n(16),d=n(102),h=o.getWeak,p=Object.isExtensible,f=c.ufstore,g={},m=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},b={get:function(e){if(l(e)){var t=h(e);return!0===t?f(d(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return c.def(d(this,"WeakMap"),e,t)}},y=e.exports=n(103)("WeakMap",m,b,c,!0,!0);u(function(){return 7!=(new y).set((Object.freeze||Object)(g),7).get(g)})&&(a((i=c.getConstructor(m,"WeakMap")).prototype,b),o.NEED=!0,r(["delete","has","get","set"],function(e){var t=y.prototype,n=t[e];s(t,e,function(t,r){if(l(t)&&!p(t)){this._f||(this._f=new i);var s=this._f[e](t,r);return"set"==e?this:s}return n.call(this,t,r)})}))},function(e,t,n){"use strict";var i=n(23),r=n(37),s=n(51),o=n(38),a=n(97);e.exports=function(e,t){var n=1==e,c=2==e,l=3==e,u=4==e,d=6==e,h=5==e||d,p=t||a;return function(t,a,f){for(var g,m,b=s(t),y=r(b),v=i(a,f,3),_=o(y.length),w=0,k=n?p(t,_):c?p(t,0):void 0;_>w;w++)if((h||w in y)&&(m=v(g=y[w],w,b),e))if(n)k[w]=m;else if(m)switch(e){case 3:return!0;case 5:return g;case 6:return w;case 2:k.push(g)}else if(u)return!1;return d?-1:l||u?u:k}}},function(e,t,n){"use strict";var i=n(98);e.exports=function(e,t){return new(i(e))(t)}},function(e,t,n){"use strict";var i=n(13),r=n(99),s=n(28)("species");e.exports=function(e){var t;return r(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!r(t.prototype)||(t=void 0),i(t)&&null===(t=t[s])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var i=n(27);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(22)("meta"),s=n(13),o=n(21),a=n(11).f,c=0,l=Object.isExtensible||function(){return!0},u=!n(16)(function(){return l(Object.preventExtensions({}))}),d=function(e){a(e,r,{value:{i:"O"+ ++c,w:{}}
vendor: 1,996 bytes, line 1
1})},h=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!s(e))return"symbol"==(void 0===e?"undefined":i(e))?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!l(e))return"F";if(!t)return"E";d(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!l(e))return!0;if(!t)return!1;d(e)}return e[r].w},onFreeze:function(e){return u&&h.NEED&&l(e)&&!o(e,r)&&d(e),e}}},function(e,t,n){"use strict";var i=n(89),r=n(100).getWeak,s=n(12),o=n(13),a=n(76),c=n(77),l=n(96),u=n(21),d=n(102),h=l(5),p=l(6),f=0,g=function(e){return e._l||(e._l=new m)},m=function(){this.a=[]},b=function(e,t){return h(e.a,function(e){return e[0]===t})};m.prototype={get:function(e){var t=b(this,e);if(t)return t[1]},has:function(e){return!!b(this,e)},set:function(e,t){var n=b(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=p(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,s){var l=e(function(e,i){a(e,l,t,"_i"),e._t=t,e._i=f++,e._l=void 0,null!=i&&c(i,n,e[s],e)});return i(l.prototype,{delete:function(e){if(!o(e))return!1;var n=r(e);return!0===n?g(d(this,t)).delete(e):n&&u(n,this._i)&&delete n[this._i]},has:function(e){if(!o(e))return!1;var n=r(e);return!0===n?g(d(this,t)).has(e):n&&u(n,this._i)}}),l},def:function(e,t,n){var i=r(s(t),!0);return!0===i?g(e).set(t,n):i[e._i]=n,e},ufstore:g}},function(e,t,n){"use strict";var i=n(13);e.exports=function(e,t){if(!i(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){"use strict";var i=n(8),r=n(7),s=n(20),o=n(89),a=n(100),c=n(77),l=n(76),u=n(13),d=n(16),h=n(91),p=n(70),f=n(104);e.exports=function(e,t,n,g,m,b){var y=i[e],v=y,_=m?"set":"add",w=v&&v.prototype,k={},C=function(e){var t=w[e];s(w,e,"delete"==e||"has"==e?function(e){return!(b&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return b&&!u(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};
vendor: 6,467 bytes, line 1
1if("function"==typeof v&&(b||w.forEach&&!d(function(){(new v).entries().next()}))){var S=new v,T=S[_](b?{}:-0,1)!=S,P=d(function(){S.has(1)}),O=h(function(e){new v(e)}),x=!b&&d(function(){for(var e=new v,t=5;t--;)e[_](t,t);return!e.has(-0)});O||((v=t(function(t,n){l(t,v,e);var i=f(new y,t,v);return null!=n&&c(n,m,i[_],i),i})).prototype=w,w.constructor=v),(P||x)&&(C("delete"),C("has"),m&&C("get")),(x||T)&&C(_),b&&w.clear&&delete w.clear}else v=g.getConstructor(t,e,m,_),o(v.prototype,n),a.NEED=!0;return p(v,e),k[e]=v,r(r.G+r.W+r.F*(v!=y),k),b||g.setStrong(v,e,m),v}},function(e,t,n){"use strict";var i=n(13),r=n(105).set;e.exports=function(e,t,n){var s,o=t.constructor;return o!==n&&"function"==typeof o&&(s=o.prototype)!==n.prototype&&i(s)&&r&&r(e,s),e}},function(e,t,n){"use strict";var i=n(13),r=n(12),s=function(e,t){if(r(e),!i(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,i){try{(i=n(23)(Function.call,n(106).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(r){t=!0}return function(e,n){return s(e,n),t?e.__proto__=n:i(e,n),e}}({},!1):void 0),check:s}},function(e,t,n){"use strict";var i=n(50),r=n(19),s=n(36),o=n(18),a=n(21),c=n(14),l=Object.getOwnPropertyDescriptor;t.f=n(15)?l:function(e,t){if(e=s(e),t=o(t,!0),c)try{return l(e,t)}catch(n){}if(a(e,t))return r(!i.f.call(e,t),e[t])}},function(e,t,n){"use strict";n(108)("WeakMap")},function(e,t,n){"use strict";var i=n(7);e.exports=function(e){i(i.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,n){"use strict";n(110)("WeakMap")},function(e,t,n){"use strict";var i=n(7),r=n(24),s=n(23),o=n(77);e.exports=function(e){i(i.S,e,{from:function(e){var t,n,i,a,c=arguments[1];return r(this),(t=void 0!==c)&&r(c),null==e?new this:(n=[],t?(i=0,a=s(c,arguments[2],2),o(e,!1,function(e){n.push(a(e,i++))})):o(e,!1,n.push,n),new this(n))}})}},function(e,t,n){"use strict";n(112),e.exports=n(9).String.codePointAt},function(e,t,n){"use strict";var i=n(7),r=n(63)(!1);i(i.P,"String",{codePointAt:function(e){return r(this,e)}})},function(e,t,n){"use strict";n(114),e.exports=n(9).String.fromCodePoint},function(e,t,n){"use strict";var i=n(7),r=n(40),s=String.fromCharCode,o=String.fromCodePoint;i(i.S+i.F*(!!o&&1!=o.length),"String",{fromCodePoint:function(e){for(var t,n=[],i=arguments.length,o=0;i>o;){if(t=+arguments[o++],r(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?s(t):s(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){"use strict";n(116),n(60),e.exports=n(9).Symbol},function(e,t,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(8),s=n(21),o=n(15),a=n(7),c=n(20),l=n(100).KEY,u=n(16),d=n(29),h=n(70),p=n(22),f=n(28),g=n(117),m=n(118),b=n(119),y=n(99),v=n(12),_=n(13),w=n(36),k=n(18),C=n(19),S=n(67),T=n(120),P=n(106),O=n(11),x=n(45),A=P.f,E=O.f,M=T.f,I=r.Symbol,R=r.JSON,L=R&&R.stringify,D=f("_hidden"),j=f("toPrimitive"),N={}.propertyIsEnumerable,V=d("symbol-registry"),z=d("symbols"),F=d("op-symbols"),B=Object.prototype,q="function"==typeof I,U=r.QObject,H=!U||!U.prototype||!U.prototype.findChild,W=o&&u(function(){return 7!=S(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a})?function(e,t,n){var i=A(B,t);i&&delete B[t],E(e,t,n),i&&e!==B&&E(B,t,i)}:E,G=function(e){var t=z[e]=S(I.prototype);return t._k=e,t},Y=q&&"symbol"==i(I.iterator)?function(e){return"symbol"==(void 0===e?"undefined":i(e))}:function(e){return e instanceof I},$=function(e,t,n){return e===B&&$(F,t,n),v(e),t=k(t,!0),v(n),s(z,t)?(n.enumerable?(s(e,D)&&e[D][t]&&(e[D][t]=!1),n=S(n,{enumerable:C(0,!1)})):(s(e,D)||E(e,D,C(1,{})),e[D][t]=!0),W(e,t,n)):E(e,t,n)},Z=function(e,t){v(e);for(var n,i=b(t=w(t)),r=0,s=i.length;s>r;)$(e,n=i[r++],t[n]);return e},Q=function(e){var t=N.call(this,e=k(e,!0));return!(this===B&&s(z,e)&&!s(F,e))&&(!(t||!s(this,e)||!s(z,e)||s(this,D)&&this[D][e])||t)},X=function(e,t){if(e=w(e),t=k(t,!0),e!==B||!s(z,t)||s(F,t)){var n=A(e,t);return!n||!s(z,t)||s(e,D)&&e[D][t]||(n.enumerable=!0),n}},K=function(e){for(var t,n=M(w(e)),i=[],r=0;n.length>r;)s(z,t=n[r++])||t==D||t==l||i.push(t);return i},J=function(e){for(var t,n=e===B,i=M(n?F:w(e)),r=[],o=0;i.length>o;)!s(z,t=i[o++])||n&&!s(B,t)||r.push(z[t]);return r};q||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function t(n){this===B&&t.call(F,n),s(this,D)&&s(this[D],e)&&(this[D][e]=!1),W(this,e,C(1,n))};return o&&H&&W(B,e,{configurable:!0,set:t}),G(e)},c(I.prototype,"toString",function(){return this._k}),P.f=X,O.f=$,n(121).f=T.f=K,n(50).f=Q,n(49).f=J,o&&!n(30)&&c(B,"propertyIsEnumerable",Q,!0),g.f=function(e){return G(f(e))}),a(a.G+a.W+a.F*!q,{Symbol:I});for(var ee="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;ee.length>te;)f(ee[te++]);for(var ne=x(f.store),ie=0;ne.length>ie;)m(ne[ie++]);a(a.S+a.F*!q,"Symbol",{for:function(e){return s(V,e+="")?V[e]:V[e]=I(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in V)if(V[t]===e)return t},useSetter:function(){H=!0},useSimple:function(){H=!1}}),a(a.S+a.F*!q,"Object",{create:function(e,t){return void 0===t?S(e):Z(S(e),t)},defineProperty:$,defineProperties:Z,getOwnPropertyDescriptor:X,getOwnPropertyNames:K,getOwnPropertySymbols:J}),R&&a(a.S+a.F*(!q||u(function(){var e=I();return"[null]"!=L([e])||"{}"!=L({a:e})||"{}"!=L(Object(e))})),"JSON",{stringify:function(e){for(var t,n,i=[e],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=t=i[1],(_(t)||void 0!==e)&&!Y(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Y(t))return t}),i[1]=t,L.apply(R,i)}}),I.prototype[j]||n(10)(I.prototype,j,I.prototype.valueOf),h(I,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},function(e,t,n){"use strict";t.f=n(28)},function(e,t,n){"use strict";var i=n(8),r=n(9),s=n(30),o=n(117),a=n(11).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=s?{}:i.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:o.f(e)})}},function(e,t,n){"use strict";var i=n(45),r=n(49),s=n(50);e.exports=function(e){var t=i(e),n=r.f;if(n)for(var o,a=n(e),c=s.f,l=0;a.length>l;
1)c.call(e,o=a[l++])&&t.push(o);return t}},function(e,t,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(36),s=n(121).f,o={}.toString,a="object"==("undefined"==typeof window?"undefined":i(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return s(e)}catch(t){return a.slice()}}(e):s(r(e))}},function(e,t,n){"use strict";var i=n(46),r=n(48).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},function(e,t,n){"use strict";n(123),e.exports=n(9).Object.values},function(e,t,n){"use strict";var i=n(7),r=n(124)(!1);i(i.S,"Object",{values:function(e){return r(e)}})},function(e,t,n){"use strict";var i=n(45),r=n(36),s=n(50).f;e.exports=function(e){return function(t){for(var n,o=r(t),a=i(o),c=a.length,l=0,u=[];c>l;)s.call(o,n=a[l++])&&u.push(e?[n,o[n]]:o[n]);return u}}},function(e,t,n){"use strict";var i=!1;if("undefined"!=typeof ReadableStream)try{new ReadableStream({start:function(e){e.close()}}),i=!0}catch(r){}t.ReadableStream=i?ReadableStream:n(126).ReadableStream},function(e,t,n){"use strict";var i="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};!function(e,t){for(var n in t)e[n]=t[n]}(t,function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7)}([function(e,t,n){var r="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":i(e)},s=n(1).assert;function o(e){return"string"==typeof e||"symbol"===(void 0===e?"undefined":r(e))}function a(e,t,n){if("function"!=typeof e)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,n)}t.typeIsObject=function(e){return"object"===(void 0===e?"undefined":r(e))&&null!==e||"function"==typeof e},t.createDataProperty=function(e,n,i){s(t.typeIsObject(e)),Object.defineProperty(e,n,{value:i,writable:!0,enumerable:!0,configurable:!0})},t.createArrayFromList=function(e){return e.slice()},t.ArrayBufferCopy=function(e,t,n,i,r){new Uint8Array(e).set(new Uint8Array(n,i,r),t)},t.CreateIterResultObject=function(e,t){s("boolean"==typeof t);var n={};return Object.defineProperty(n,"value",{value:e,enumerable:!0,writable:!0,configurable:!0}),Object.defineProperty(n,"done",{value:t,enumerable:!0,writable:!0,configurable:!0}),n},t.IsFiniteNonNegativeNumber=function(e){return!(Number.isNaN(e)||e===1/0||e<0)},t.InvokeOrNoop=function(e,t,n){s(void 0!==e),s(o(t)),s(Array.isArray(n));var i=e[t];if(void 0!==i)return a(i,e,n)},t.PromiseInvokeOrNoop=function(e,n,i){s(void 0!==e),s(o(n)),s(Array.isArray(i));try{return Promise.resolve(t.InvokeOrNoop(e,n,i))}catch(r){return Promise.reject(r)}},t.PromiseInvokeOrPerformFallback=function(e,t,n,i,r){s(void 0!==e),s(o(t)),s(Array.isArray(n)),s(Array.isArray(r));var c=void 0;try{c=e[t]}catch(l){return Promise.reject(l)}if(void 0===c)return i.apply(null,r);try{return Promise.resolve(a(c,e,n))}catch(u){return Promise.reject(u)}},t.TransferArrayBuffer=function(e){return e.slice()},t.ValidateAndNormalizeHighWaterMark=function(e){if(e=Number(e),Number.isNaN(e)||e<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return e},t.ValidateAndNormalizeQueuingStrategy=function(e,n){if(void 0!==e&&"function"!=typeof e)throw new TypeError("size property of a queuing strategy must be a function");return{size:e,highWaterMark:n=t.ValidateAndNormalizeHighWaterMark(n)}}},function(e,t,n){function i(e){this.name="AssertionError",this.message=e||"",this.stack=(new Error).stack}(i.prototype=Object.create(Error.prototype)).constructor=i,e.exports={rethrowAssertionErrorRejection:function(e){e&&e.constructor===i&&setTimeout(function(){throw e},0)},AssertionError:i,assert:function(e,t){if(!e)throw new i(t)}}},function(e,t,n){var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=n(0),o=s.InvokeOrNoop,a=s.PromiseInvokeOrNoop,c=s.ValidateAndNormalizeQueuingStrategy,l=s.typeIsObject,u=n(1),d=u.assert,h=u.rethrowAssertionErrorRejection,p=n(3),f=p.DequeueValue,g=p.EnqueueValueWithSize,m=p.PeekQueueValue,b=p.ResetQueue,y=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.size,s=n.highWaterMark,o=void 0===s?1:s;r(this,e),this._state="writable",this._storedError=void 0,this._writer=void 0,this._writableStreamController=void 0,this._writeRequests=[],this._inFlightWriteRequest=void 0,this._closeRequest=void 0,this._inFlightCloseRequest=void 0,this._pendingAbortRequest=void 0,this._backpressure=!1;var a=t.type;if(void 0!==a)throw new RangeError("Invalid type is specified");this._writableStreamController=new j(this,t,i,o),this._writableStreamController.__startSteps()}return i(e,[{key:"abort",value:function(e){return!1===_(this)?Promise.reject(q("abort")):!0===w(this)?Promise.reject(new TypeError("Cannot abort a stream that already has a writer")):k(this,e)}},{key:"getWriter",value:function(){if(!1===_(this))throw q("getWriter");return v(this)}},{key:"locked",get:function(){if(!1===_(this))throw q("locked");return w(this)}}]),e}();function v(e){return new E(e)}function _(e){return!!l(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")}function w(e){return d(!0===_(e),"IsWritableStreamLocked should only be used on known writable streams"),void 0!==e._writer}function k(e,t){var n=e._state;if("closed"===n)return Promise.resolve(void 0);if("errored"===n)return Promise.reject(e._storedError);var i=new TypeError("Requested to abort");if(void 0!==e._pendingAbortRequest)return Promise.reject(i);d("writable"===n||"erroring"===n,"state must be writable or erroring");var r=!1;"erroring"===n&&(r=!0,t=void 0);var s=new Promise(function(n,i){e._pendingAbortRequest={_resolve:n,_reject:i,_reason:t,_wasAlreadyErroring:r}});return!1===r&&S(e,i),s}function C(e,t){var n=e._state;"writable"!==n?(d("erroring"===n),T(e)):S(e,t)}function S(e,t){d(void 0===e._storedError,"stream._storedError === undefined"),d("writable"===e._state,"state must be writable");var n=e._writableStreamController;d(void 0!==n,"controller must not be undefined"),e._state="erroring",e._storedError=t;var i=e._writer;void 0!==i&&R(i,t),!1===O(e)&&!0===n._started&&T(e)}function T(e){d("erroring"===e._state,"stream._state === erroring"),d(!1===O(e),"WritableStreamHasOperationMarkedInFlight(stream)
1=== false"),e._state="errored",e._writableStreamController.__errorSteps();for(var t=e._storedError,n=0;n<e._writeRequests.length;n++)e._writeRequests[n]._reject(t);if(e._writeRequests=[],void 0!==e._pendingAbortRequest){var i=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,!0===i._wasAlreadyErroring)return i._reject(t),void x(e);e._writableStreamController.__abortSteps(i._reason).then(function(){i._resolve(),x(e)},function(t){i._reject(t),x(e)})}else x(e)}function P(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function O(e){return void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest}function x(e){d("errored"===e._state,'_stream_.[[state]] is `"errored"`'),void 0!==e._closeRequest&&(d(void 0===e._inFlightCloseRequest),e._closeRequest._reject(e._storedError),e._closeRequest=void 0);var t=e._writer;void 0!==t&&(G(t,e._storedError),t._closedPromise.catch(function(){}))}function A(e,t){d("writable"===e._state),d(!1===P(e));var n=e._writer;void 0!==n&&t!==e._backpressure&&(!0===t?function(e){d(void 0===e._readyPromise_resolve,"writer._readyPromise_resolve === undefined"),d(void 0===e._readyPromise_reject,"writer._readyPromise_reject === undefined"),e._readyPromise=new Promise(function(t,n){e._readyPromise_resolve=t,e._readyPromise_reject=n}),e._readyPromiseState="pending"}(n):(d(!1===t),Z(n))),e._backpressure=t}e.exports={AcquireWritableStreamDefaultWriter:v,IsWritableStream:_,IsWritableStreamLocked:w,WritableStream:y,WritableStreamAbort:k,WritableStreamDefaultControllerError:B,WritableStreamDefaultWriterCloseWithErrorPropagation:function(e){var t=e._ownerWritableStream;d(void 0!==t);var n=t._state;return!0===P(t)||"closed"===n?Promise.resolve():"errored"===n?Promise.reject(t._storedError):(d("writable"===n||"erroring"===n),I(e))},WritableStreamDefaultWriterRelease:L,WritableStreamDefaultWriterWrite:D,WritableStreamCloseQueuedOrInFlight:P};var E=function(){function e(t){if(r(this,e),!1===_(t))throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===w(t))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=t,t._writer=this;var n,i=t._state;if("writable"===i)!1===P(t)&&!0===t._backpressure?((n=this)._readyPromise=new Promise(function(e,t){n._readyPromise_resolve=e,n._readyPromise_reject=t}),n._readyPromiseState="pending"):$(this),W(this);else if("erroring"===i)Y(this,t._storedError),this._readyPromise.catch(function(){}),W(this);else if("closed"===i)$(this),function(e){e._closedPromise=Promise.resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved"}(this);else{d("errored"===i,"state must be errored");var s=t._storedError;Y(this,s),this._readyPromise.catch(function(){}),function(e,t){e._closedPromise=Promise.reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected"}(this,s),this._closedPromise.catch(function(){})}}return i(e,[{key:"abort",value:function(e){return!1===M(this)?Promise.reject(U("abort")):void 0===this._ownerWritableStream?Promise.reject(H("abort")):function(e,t){var n=e._ownerWritableStream;return d(void 0!==n),k(n,t)}(this,e)}},{key:"close",value:function(){if(!1===M(this))return Promise.reject(U("close"));var e=this._ownerWritableStream;return void 0===e?Promise.reject(H("close")):!0===P(e)?Promise.reject(new TypeError("cannot close an already-closing stream")):I(this)}},{key:"releaseLock",value:function(){if(!1===M(this))throw U("releaseLock");var e=this._ownerWritableStream;void 0!==e&&(d(void 0!==e._writer),L(this))}},{key:"write",value:function(e){return!1===M(this)?Promise.reject(U("write")):void 0===this._ownerWritableStream?Promise.reject(H("write to")):D(this,e)}},{key:"closed",get:function(){return!1===M(this)?Promise.reject(U("closed")):this._closedPromise}},{key:"desiredSize",get:function(){if(!1===M(this))throw U("desiredSize");if(void 0===this._ownerWritableStream)throw H("desiredSize");return"errored"===(t=(e=this._ownerWritableStream)._state)||"erroring"===t?null:"closed"===t?0:N(e._writableStreamController);var e,t}},{key:"ready",get:function(){return!1===M(this)?Promise.reject(U("ready")):this._readyPromise}}]),e}();function M(e){return!!l(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")}function I(e){var t=e._ownerWritableStream;d(void 0!==t);var n=t._state;if("closed"===n||"errored"===n)return Promise.reject(new TypeError("The stream (in "+n+" state) is not in the writable state and cannot be closed"));d("writable"===n||"erroring"===n),d(!1===P(t));var i,r=new Promise(function(e,n){t._closeRequest={_resolve:e,_reject:n}});return!0===t._backpressure&&"writable"===n&&Z(e),g(i=t._writableStreamController,"close",0),V(i),r}function R(e,t){"pending"===e._readyPromiseState?function(e,t){d(void 0!==e._readyPromise_resolve,"writer._readyPromise_resolve !== undefined"),d(void 0!==e._readyPromise_reject,"writer._readyPromise_reject !== undefined"),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected"}(e,t):function(e,t){d(void 0===e._readyPromise_resolve,"writer._readyPromise_resolve === undefined"),d(void 0===e._readyPromise_reject,"writer._readyPromise_reject === undefined"),e._readyPromise=Promise.reject(t),e._readyPromiseState="rejected"}(e,t),e._readyPromise.catch(function(){})}function L(e){var t=e._ownerWritableStream;d(void 0!==t),d(t._writer===e);var n=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");R(e,n),function(e,t){"pending"===e._closedPromiseState?G(e,t):function(e,t){d(void 0===e._closedPromise_resolve,"writer._closedPromise_resolve === undefined"),d(void 0===e._closedPromise_reject,"writer._closedPromise_reject === undefined"),d("pending"!==e._closedPromiseState,"writer._closedPromiseState is not pe
1nding"),e._closedPromise=Promise.reject(t),e._closedPromiseState="rejected"}(e,t),e._closedPromise.catch(function(){})}(e,n),t._writer=void 0,e._ownerWritableStream=void 0}function D(e,t){var n=e._ownerWritableStream;d(void 0!==n);var i=n._writableStreamController,r=function(e,t){var n=e._strategySize;if(void 0===n)return 1;try{return n(t)}catch(i){return z(e,i),1}}(i,t);if(n!==e._ownerWritableStream)return Promise.reject(H("write to"));var s=n._state;if("errored"===s)return Promise.reject(n._storedError);if(!0===P(n)||"closed"===s)return Promise.reject(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===s)return Promise.reject(n._storedError);d("writable"===s);var o=function(e){return d(!0===w(e)),d("writable"===e._state),new Promise(function(t,n){e._writeRequests.push({_resolve:t,_reject:n})})}(n);return function(e,t,n){var i={chunk:t};try{g(e,i,n)}catch(s){return void z(e,s)}var r=e._controlledWritableStream;!1===P(r)&&"writable"===r._state&&A(r,F(e)),V(e)}(i,t,r),o}var j=function(){function e(t,n,i,s){if(r(this,e),!1===_(t))throw new TypeError("WritableStreamDefaultController can only be constructed with a WritableStream instance");if(void 0!==t._writableStreamController)throw new TypeError("WritableStreamDefaultController instances can only be created by the WritableStream constructor");this._controlledWritableStream=t,this._underlyingSink=n,this._queue=void 0,this._queueTotalSize=void 0,b(this),this._started=!1;var o=c(i,s);this._strategySize=o.size,this._strategyHWM=o.highWaterMark,A(t,F(this))}return i(e,[{key:"error",value:function(e){if(0==(!!l(this)&&!!Object.prototype.hasOwnProperty.call(this,"_underlyingSink")))throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this._controlledWritableStream._state&&B(this,e)}},{key:"__abortSteps",value:function(e){return a(this._underlyingSink,"abort",[e])}},{key:"__errorSteps",value:function(){b(this)}},{key:"__startSteps",value:function(){var e=this,t=o(this._underlyingSink,"start",[this]),n=this._controlledWritableStream;Promise.resolve(t).then(function(){d("writable"===n._state||"erroring"===n._state),e._started=!0,V(e)},function(t){d("writable"===n._state||"erroring"===n._state),e._started=!0,C(n,t)}).catch(h)}}]),e}();function N(e){return e._strategyHWM-e._queueTotalSize}function V(e){var t=e._controlledWritableStream;if(!1!==e._started&&void 0===t._inFlightWriteRequest){var n=t._state;if("closed"!==n&&"errored"!==n)if("erroring"!==n){if(0!==e._queue.length){var i=m(e);"close"===i?function(e){var t=e._controlledWritableStream;(function(e){d(void 0===e._inFlightCloseRequest),d(void 0!==e._closeRequest),e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0})(t),f(e),d(0===e._queue.length,"queue must be empty once the final write record is dequeued"),a(e._underlyingSink,"close",[]).then(function(){!function(e){d(void 0!==e._inFlightCloseRequest),e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0;var t=e._state;d("writable"===t||"erroring"===t),"erroring"===t&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";var n=e._writer;void 0!==n&&function(e){d(void 0!==e._closedPromise_resolve,"writer._closedPromise_resolve !== undefined"),d(void 0!==e._closedPromise_reject,"writer._closedPromise_reject !== undefined"),d("pending"===e._closedPromiseState,"writer._closedPromiseState is pending"),e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved"}(n),d(void 0===e._pendingAbortRequest,"stream._pendingAbortRequest === undefined"),d(void 0===e._storedError,"stream._storedError === undefined")}(t)},function(e){!function(e,t){d(void 0!==e._inFlightCloseRequest),e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,d("writable"===e._state||"erroring"===e._state),void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),C(e,t)}(t,e)}).catch(h)}(e):function(e,t){var n=e._controlledWritableStream;!function(e){d(void 0===e._inFlightWriteRequest,"there must be no pending write request"),d(0!==e._writeRequests.length,"writeRequests must not be empty"),e._inFlightWriteRequest=e._writeRequests.shift()}(n),a(e._underlyingSink,"write",[t,e]).then(function(){!function(e){d(void 0!==e._inFlightWriteRequest),e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}(n);var t=n._state;if(d("writable"===t||"erroring"===t),f(e),!1===P(n)&&"writable"===t){var i=F(e);A(n,i)}V(e)},function(e){!function(e,t){d(void 0!==e._inFlightWriteRequest),e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,d("writable"===e._state||"erroring"===e._state),C(e,t)}(n,e)}
1).catch(h)}(e,i.chunk)}}else T(t)}}function z(e,t){"writable"===e._controlledWritableStream._state&&B(e,t)}function F(e){return N(e)<=0}function B(e,t){var n=e._controlledWritableStream;d("writable"===n._state),S(n,t)}function q(e){return new TypeError("WritableStream.prototype."+e+" can only be used on a WritableStream")}function U(e){return new TypeError("WritableStreamDefaultWriter.prototype."+e+" can only be used on a WritableStreamDefaultWriter")}function H(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function W(e){e._closedPromise=new Promise(function(t,n){e._closedPromise_resolve=t,e._closedPromise_reject=n,e._closedPromiseState="pending"})}function G(e,t){d(void 0!==e._closedPromise_resolve,"writer._closedPromise_resolve !== undefined"),d(void 0!==e._closedPromise_reject,"writer._closedPromise_reject !== undefined"),d("pending"===e._closedPromiseState,"writer._closedPromiseState is pending"),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected"}function Y(e,t){e._readyPromise=Promise.reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected"}function $(e){e._readyPromise=Promise.resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled"}function Z(e){d(void 0!==e._readyPromise_resolve,"writer._readyPromise_resolve !== undefined"),d(void 0!==e._readyPromise_reject,"writer._readyPromise_reject !== undefined"),e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled"}},function(e,t,n){var i=n(0).IsFiniteNonNegativeNumber,r=n(1).assert;t.DequeueValue=function(e){r("_queue"in e&&"_queueTotalSize"in e,"Spec-level failure: DequeueValue should only be used on containers with [[queue]] and [[queueTotalSize]]."),r(e._queue.length>0,"Spec-level failure: should never dequeue from an empty queue.");var t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value},t.EnqueueValueWithSize=function(e,t,n){if(r("_queue"in e&&"_queueTotalSize"in e,"Spec-level failure: EnqueueValueWithSize should only be used on containers with [[queue]] and [[queueTotalSize]]."),n=Number(n),!i(n))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");e._queue.push({value:t,size:n}),e._queueTotalSize+=n},t.PeekQueueValue=function(e){return r("_queue"in e&&"_queueTotalSize"in e,"Spec-level failure: PeekQueueValue should only be used on containers with [[queue]] and [[queueTotalSize]]."),r(e._queue.length>0,"Spec-level failure: should never peek at an empty queue."),e._queue[0].value},t.ResetQueue=function(e){r("_queue"in e&&"_queueTotalSize"in e,"Spec-level failure: ResetQueue should only be used on containers with [[queue]] and [[queueTotalSize]]."),e._queue=[],e._queueTotalSize=0}},function(e,t,n){var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=n(0),o=s.ArrayBufferCopy,a=s.CreateIterResultObject,c=s.IsFiniteNonNegativeNumber,l=s.InvokeOrNoop,u=s.PromiseInvokeOrNoop,d=s.TransferArrayBuffer,h=s.ValidateAndNormalizeQueuingStrategy,p=s.ValidateAndNormalizeHighWaterMark,f=n(0),g=f.createArrayFromList,m=f.createDataProperty,b=f.typeIsObject,y=n(1),v=y.assert,_=y.rethrowAssertionErrorRejection,w=n(3),k=w.DequeueValue,C=w.EnqueueValueWithSize,S=w.ResetQueue,T=n(2),P=T.AcquireWritableStreamDefaultWriter,O=T.IsWritableStream,x=T.IsWritableStreamLocked,A=T.WritableStreamAbort,E=T.WritableStreamDefaultWriterCloseWithErrorPropagation,M=T.WritableStreamDefaultWriterRelease,I=T.WritableStreamDefaultWriterWrite,R=T.WritableStreamCloseQueuedOrInFlight,L=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.size,s=n.highWaterMark;r(this,e),this._state="readable",this._reader=void 0,this._storedError=void 0,this._disturbed=!1,this._readableStreamController=void 0;var o=t.type,a=String(o);if("bytes"===a)void 0===s&&(s=0),this._readableStreamController=new pe(this,t,s);else{if(void 0!==o)throw new RangeError("Invalid type is specified");void 0===s&&(s=1),this._readableStreamController=new re(this,t,i,s)}}return i(e,[{key:"cancel",value:function(e){return!1===N(this)?Promise.reject(Ee("cancel")):!0===V(this)?Promise.reject(new TypeError("Cannot cancel a stream that already has a reader")):q(this,e)}},{key:"getReader",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mode;if(!1===N(this))throw Ee("getReader");if(void 0===t)return j(this);if("byob"===(t=String(t)))return D(this);throw new RangeError("Invalid mode is specified")}},{key:"pipeThrough",value:function(e,t){var n=e.readable;return function(e){try{Promise.prototype.then.call(e,void 0,function(){})}catch(t){}}(this.pipeTo(e.writable,t)),n}},{key:"pipeTo",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.preventClose,r=n.preventAbort,s=n.preventCancel;if(!1===N(this))return Promise.reject(Ee("pipeTo"));if(!1===O(e))return Promise.reject(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));if(i=Boolean(i),r=Boolean(r),s=Boolean(s),!0===V(this))return Promise.reject(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream"));if(!0===x(e))return Promise.reject(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream"));var o=j(this),a=P(e),c=!1,l=Promise.resolve();return new Promise(function(n,u){var d,h;if(g(t,o._closedPromise,function(t){!1===r?m(function(){return A(e,t)},!0,t):b(!0,t)}),g(e,a._closedPromise,function(e){!1===s?m(function(){return q(t,e)},!0,e):b(!0,e)}),d=o._closedPromise,h=function(){!1===i?m(function(){return E(a)}):b()},"closed"===t._state?h():d.then(h).catch(_),!0===R(e)||"closed"===e._state){var p=new TypeError("the destination writable stream closed before all data could be piped to it");!1===s?m(function(){return q(t,p)},!0,p):b(!0,p)}function f(){var e=l;return l.then(function(){return e!==l?f():void 0})}function g(e,t,n){"errored"===e._state?n(e._storedError):t.catch(n).catch(_)}function m(t,n,i){function r(){t().then(function(){return y(n,i)},function(e){return y(!0,e)}
1).catch(_)}!0!==c&&(c=!0,"writable"===e._state&&!1===R(e)?f().then(r):r())}function b(t,n){!0!==c&&(c=!0,"writable"===e._state&&!1===R(e)?f().then(function(){return y(t,n)}).catch(_):y(t,n))}function y(e,t){M(a),ne(o),e?u(t):n(void 0)}(function e(){return l=Promise.resolve(),!0===c?Promise.resolve():a._readyPromise.then(function(){return ie(o).then(function(e){!0!==e.done&&(l=I(a,e.value).catch(function(){}))})}).then(e)})().catch(function(e){l=Promise.resolve(),_(e)})})}},{key:"tee",value:function(){if(!1===N(this))throw Ee("tee");var e=z(this,!1);return g(e)}},{key:"locked",get:function(){if(!1===N(this))throw Ee("locked");return V(this)}}]),e}();function D(e){return new X(e)}function j(e){return new Q(e)}function N(e){return!!b(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")}function V(e){return v(!0===N(e),"IsReadableStreamLocked should only be used on known readable streams"),void 0!==e._reader}function z(e,t){v(!0===N(e)),v("boolean"==typeof t);var n=j(e),i={closedOrErrored:!1,canceled1:!1,canceled2:!1,reason1:void 0,reason2:void 0};i.promise=new Promise(function(e){i._resolve=e});var r=function e(){var t=e._branch1,n=e._branch2,i=e._teeState;return ie(e._reader).then(function(e){v(b(e));var r=e.value,s=e.done;if(v("boolean"==typeof s),!0===s&&!1===i.closedOrErrored&&(!1===i.canceled1&&ae(t),!1===i.canceled2&&ae(n),i.closedOrErrored=!0),!0!==i.closedOrErrored){var o=r;!1===i.canceled1&&ce(t,r),!1===i.canceled2&&ce(n,o)}})};r._reader=n,r._teeState=i,r._cloneForBranch2=t;var s=function e(t){var n=e._stream,i=e._teeState;if(i.canceled1=!0,i.reason1=t,!0===i.canceled2){var r=q(n,g([i.reason1,i.reason2]));i._resolve(r)}return i.promise};s._stream=e,s._teeState=i;var o=function e(t){var n=e._stream,i=e._teeState;if(i.canceled2=!0,i.reason2=t,!0===i.canceled1){var r=q(n,g([i.reason1,i.reason2]));i._resolve(r)}return i.promise};o._stream=e,o._teeState=i;var a=Object.create(Object.prototype);m(a,"pull",r),m(a,"cancel",s);var c=new L(a),l=Object.create(Object.prototype);m(l,"pull",r),m(l,"cancel",o);var u=new L(l);return r._branch1=c._readableStreamController,r._branch2=u._readableStreamController,n._closedPromise.catch(function(e){!0!==i.closedOrErrored&&(le(r._branch1,e),le(r._branch2,e),i.closedOrErrored=!0)}),[c,u]}function F(e){return v(!0===K(e._reader)),v("readable"===e._state||"closed"===e._state),new Promise(function(t,n){e._reader._readIntoRequests.push({_resolve:t,_reject:n})})}function B(e){return v(!0===J(e._reader)),v("readable"===e._state),new Promise(function(t,n){e._reader._readRequests.push({_resolve:t,_reject:n})})}function q(e,t){return e._disturbed=!0,"closed"===e._state?Promise.resolve(void 0):"errored"===e._state?Promise.reject(e._storedError):(U(e),e._readableStreamController.__cancelSteps(t).then(function(){}))}function U(e){v("readable"===e._state),e._state="closed";var t=e._reader;if(void 0!==t){if(!0===J(t)){for(var n=0;n<t._readRequests.length;n++)(0,t._readRequests[n]._resolve)(a(void 0,!0));t._readRequests=[]}!function(e){v(void 0!==e._closedPromise_resolve),v(void 0!==e._closedPromise_reject),e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}(t)}}function H(e,t){v(!0===N(e),"stream must be ReadableStream"),v("readable"===e._state,"state must be readable"),e._state="errored",e._storedError=t;var n=e._reader;if(void 0!==n){if(!0===J(n)){for(var i=0;i<n._readRequests.length;i++)n._readRequests[i]._reject(t);n._readRequests=[]}else{v(K(n),"reader must be ReadableStreamBYOBReader");for(var r=0;r<n._readIntoRequests.length;r++)n._readIntoRequests[r]._reject(t);n._readIntoRequests=[]}Re(n,t),n._closedPromise.catch(function(){})}}function W(e,t,n){var i=e._reader;v(i._readRequests.length>0),i._readRequests.shift()._resolve(a(t,n))}function G(e){return e._reader._readIntoRequests.length}function Y(e){return e._reader._readRequests.length}function $(e){var t=e._reader;return void 0!==t&&!1!==K(t)}function Z(e){var t=e._reader;return void 0!==t&&!1!==J(t)}e.exports={ReadableStream:L,IsReadableStreamDisturbed:function(e){return v(!0===N(e),"IsReadableStreamDisturbed should only be used on known readable streams"),e._disturbed},ReadableStreamDefaultControllerClose:ae,ReadableStreamDefaultControllerEnqueue:ce,ReadableStreamDefaultControllerError:le,ReadableStreamDefaultControllerGetDesiredSize:de};var Q=function(){function e(t){if(r(this,e),!1===N(t))throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===V(t))throw new TypeError("This stream has already been locked for exclusive reading by another reader");ee(this,t),this._readRequests=[]}return i(e,[{key:"cancel",value:function(e){return!1===J(this)?Promise.reject(Ie("cancel")):void 0===this._ownerReadableStream?Promise.reject(Me("cancel")):te(this,e)}},{key:"read",value:function(){return!1===J(this)?Promise.reject(Ie("read")):void 0===this._ownerReadableStream?Promise.reject(Me("read from")):ie(this)}},{key:"releaseLock",value:function(){if(!1===J(this))throw Ie("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");ne(this)}}},{key:"closed",get:function(){return!1===J(this)?Promise.reject(Ie("closed")):this._closedPromise}}]),e}(),X=function(){function e(t){if(r(this,e),!N(t))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===fe(t._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(V(t))throw new TypeError("This stream has already been locked for exclusive reading by another reader");ee(this,t),this._readIntoRequests=[]}return i(e,[{key:"cancel",value:function(e){return K(this)?void 0===this._ownerReadableStream?Promise.reject(Me("cancel")):te(this,e):Promise.reject(Le("cancel"))}},{key:"read",value:function(e){return K(this)?void 0===this._ownerReadableStream?Promise.reject(Me("read from")):ArrayBuffer.isView(e)?0===e.byteLength?Promise.reject(new TypeError("view must have non-zero byteLength")):function(e,t){var n=e._ownerReadableStream;return v(void 0!==n),n._disturbed=!0,"errored"===n._state?Promise.reject(n._storedError):function(e,t){var n=e._controlledReadableStream,i=1;
1t.constructor!==DataView&&(i=t.constructor.BYTES_PER_ELEMENT);var r={buffer:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:i,ctor:t.constructor,readerType:"byob"};if(e._pendingPullIntos.length>0)return r.buffer=d(r.buffer),e._pendingPullIntos.push(r),F(n);if("closed"===n._state){var s=new t.constructor(r.buffer,r.byteOffset,0);return Promise.resolve(a(s,!0))}if(e._queueTotalSize>0){if(!0===we(e,r)){var o=ve(r);return Ce(e),Promise.resolve(a(o,!1))}if(!0===e._closeRequested){var c=new TypeError("Insufficient bytes to fill elements in the given buffer");return xe(e,c),Promise.reject(c)}}r.buffer=d(r.buffer),e._pendingPullIntos.push(r);var l=F(n);return me(e),l}(n._readableStreamController,t)}(this,e):Promise.reject(new TypeError("view must be an array buffer view")):Promise.reject(Le("read"))}},{key:"releaseLock",value:function(){if(!K(this))throw Le("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");ne(this)}}},{key:"closed",get:function(){return K(this)?this._closedPromise:Promise.reject(Le("closed"))}}]),e}();function K(e){return!!b(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")}function J(e){return!!b(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")}function ee(e,t){e._ownerReadableStream=t,t._reader=e,"readable"===t._state?function(e){e._closedPromise=new Promise(function(t,n){e._closedPromise_resolve=t,e._closedPromise_reject=n})}(e):"closed"===t._state?function(e){e._closedPromise=Promise.resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}(e):(v("errored"===t._state,"state must be errored"),function(e,t){e._closedPromise=Promise.reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}(e,t._storedError),e._closedPromise.catch(function(){}))}function te(e,t){var n=e._ownerReadableStream;return v(void 0!==n),q(n,t)}function ne(e){v(void 0!==e._ownerReadableStream),v(e._ownerReadableStream._reader===e),"readable"===e._ownerReadableStream._state?Re(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):function(e,t){v(void 0===e._closedPromise_resolve),v(void 0===e._closedPromise_reject),e._closedPromise=Promise.reject(t)}(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),e._closedPromise.catch(function(){}),e._ownerReadableStream._reader=void 0,e._ownerReadableStream=void 0}function ie(e){var t=e._ownerReadableStream;return v(void 0!==t),t._disturbed=!0,"closed"===t._state?Promise.resolve(a(void 0,!0)):"errored"===t._state?Promise.reject(t._storedError):(v("readable"===t._state),t._readableStreamController.__pullSteps())}var re=function(){function e(t,n,i,s){if(r(this,e),!1===N(t))throw new TypeError("ReadableStreamDefaultController can only be constructed with a ReadableStream instance");if(void 0!==t._readableStreamController)throw new TypeError("ReadableStreamDefaultController instances can only be created by the ReadableStream constructor");this._controlledReadableStream=t,this._underlyingSource=n,this._queue=void 0,this._queueTotalSize=void 0,S(this),this._started=!1,this._closeRequested=!1,this._pullAgain=!1,this._pulling=!1;var o=h(i,s);this._strategySize=o.size,this._strategyHWM=o.highWaterMark;var a=this,c=l(n,"start",[this]);Promise.resolve(c).then(function(){a._started=!0,v(!1===a._pulling),v(!1===a._pullAgain),oe(a)},function(e){ue(a,e)}).catch(_)}return i(e,[{key:"close",value:function(){if(!1===se(this))throw De("close");if(!0===this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var e=this._controlledReadableStream._state;if("readable"!==e)throw new TypeError("The stream (in "+e+" state) is not in the readable state and cannot be closed");ae(this)}},{key:"enqueue",value:function(e){if(!1===se(this))throw De("enqueue");if(!0===this._closeRequested)throw new TypeError("stream is closed or draining");var t=this._controlledReadableStream._state;if("readable"!==t)throw new TypeError("The stream (in "+t+" state) is not in the readable state and cannot be enqueued to");return ce(this,e)}},{key:"error",value:function(e){if(!1===se(this))throw De("error");var t=this._controlledReadableStream;if("readable"!==t._state)throw new TypeError("The stream is "+t._state+" and so cannot be errored");le(this,e)}},{key:"__cancelSteps",value:function(e){return S(this),u(this._underlyingSource,"cancel",[e])}},{key:"__pullSteps",value:function(){var e=this._controlledReadableStream;if(this._queue.length>0){var t=k(this);return!0===this._closeRequested&&0===this._queue.length?U(e):oe(this),Promise.resolve(a(t,!1))}var n=B(e);return oe(this),n}},{key:"desiredSize",get:function(){if(!1===se(this))throw De("desiredSize");return de(this)}}]),e}();function se(e){return!!b(e)&&!!Object.prototype.hasOwnProperty.call(e,"_underlyingSource")}function oe(e){var t=function(e){var t=e._controlledReadableStream;return"closed"!==t._state&&"errored"!==t._state&&!0!==e._closeRequested&&!1!==e._started&&(!0===V(t)&&Y(t)>0||de(e)>0)}(e);!1!==t&&(!0!==e._pulling?(v(!1===e._pullAgain),e._pulling=!0,u(e._underlyingSource,"pull",[e]).then(function(){if(e._pulling=!1,!0===e._pullAgain)return e._pullAgain=!1,oe(e)},function(t){ue(e,t)}).catch(_)):e._pullAgain=!0)}function ae(e){var t=e._controlledReadableStream;v(!1===e._closeRequested),v("readable"===t._state),e._closeRequested=!0,0===e._queue.length&&U(t)}function ce(e,t){var n=e._controlledReadableStream;if(v(!1===e._closeRequested),v("readable"===n._state),!0===V(n)&&Y(n)>0)W(n,t,!1);else{var i=1;if(void 0!==e._strategySize){var r=e._strategySize;try{i=r(t)}catch(s){throw ue(e,s),s}}try{C(e,t,i)}catch(o){throw ue(e,o),o}}oe(e)}function le(e,t){var n=e._controlledReadableStream;v("readable"===n._state),S(e),H(n,t)}function ue(e,t){"readable"===e._controlledReadableStream._state&&le(e,t)}function de(e){var t=e._controlledReadableStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}var he=function(){function e(t,n){r(this,e),this._associatedReadableByteStreamController=t,this._view=n}return i(e,[{key:"respond",value:function(e){if(!1===ge(this))throw je("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");!function(e,t){if(t=Number(t),!1===c(t))throw new RangeError("bytesWritten must be a finite");v(e._pendingPullIntos.length>0),Pe(e,t)}(this._associatedReadableByteStreamController,e)}},{key:"respondWithNewView",value:function(e){if(!1===ge(this))throw je("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(e))throw new TypeError("You can only respond with array buffer views");!function(e,t){v(e._pendingPullIntos.length>0);var n=e._pendingPullIntos[0];if(n.byteOffset+n.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");
1if(n.byteLength!==t.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");n.buffer=t.buffer,Pe(e,t.byteLength)}(this._associatedReadableByteStreamController,e)}},{key:"view",get:function(){return this._view}}]),e}(),pe=function(){function e(t,n,i){if(r(this,e),!1===N(t))throw new TypeError("ReadableByteStreamController can only be constructed with a ReadableStream instance given a byte source");if(void 0!==t._readableStreamController)throw new TypeError("ReadableByteStreamController instances can only be created by the ReadableStream constructor given a byte source");this._controlledReadableStream=t,this._underlyingByteSource=n,this._pullAgain=!1,this._pulling=!1,be(this),this._queue=this._queueTotalSize=void 0,S(this),this._closeRequested=!1,this._started=!1,this._strategyHWM=p(i);var s=n.autoAllocateChunkSize;if(void 0!==s&&(!1===Number.isInteger(s)||s<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");this._autoAllocateChunkSize=s,this._pendingPullIntos=[];var o=this,a=l(n,"start",[this]);Promise.resolve(a).then(function(){o._started=!0,v(!1===o._pulling),v(!1===o._pullAgain),me(o)},function(e){"readable"===t._state&&xe(o,e)}).catch(_)}return i(e,[{key:"close",value:function(){if(!1===fe(this))throw Ne("close");if(!0===this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var e=this._controlledReadableStream._state;if("readable"!==e)throw new TypeError("The stream (in "+e+" state) is not in the readable state and cannot be closed");!function(e){var t=e._controlledReadableStream;if(v(!1===e._closeRequested),v("readable"===t._state),e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0&&e._pendingPullIntos[0].bytesFilled>0){var n=new TypeError("Insufficient bytes to fill elements in the given buffer");throw xe(e,n),n}U(t)}}(this)}},{key:"enqueue",value:function(e){if(!1===fe(this))throw Ne("enqueue");if(!0===this._closeRequested)throw new TypeError("stream is closed or draining");var t=this._controlledReadableStream._state;if("readable"!==t)throw new TypeError("The stream (in "+t+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(e))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");!function(e,t){var n=e._controlledReadableStream;v(!1===e._closeRequested),v("readable"===n._state);var i=t.byteOffset,r=t.byteLength,s=d(t.buffer);!0===Z(n)?0===Y(n)?_e(e,s,i,r):(v(0===e._queue.length),W(n,new Uint8Array(s,i,r),!1)):!0===$(n)?(_e(e,s,i,r),Te(e)):(v(!1===V(n),"stream must not be locked"),_e(e,s,i,r))}(this,e)}},{key:"error",value:function(e){if(!1===fe(this))throw Ne("error");var t=this._controlledReadableStream;if("readable"!==t._state)throw new TypeError("The stream is "+t._state+" and so cannot be errored");xe(this,e)}},{key:"__cancelSteps",value:function(e){return this._pendingPullIntos.length>0&&(this._pendingPullIntos[0].bytesFilled=0),S(this),u(this._underlyingByteSource,"cancel",[e])}},{key:"__pullSteps",value:function(){var e=this._controlledReadableStream;if(v(!0===Z(e)),this._queueTotalSize>0){v(0===Y(e));var t=this._queue.shift();this._queueTotalSize-=t.byteLength,Ce(this);var n=void 0;try{n=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}catch(c){return Promise.reject(c)}return Promise.resolve(a(n,!1))}var i=this._autoAllocateChunkSize;if(void 0!==i){var r=void 0;try{r=new ArrayBuffer(i)}catch(l){return Promise.reject(l)}var s={buffer:r,byteOffset:0,byteLength:i,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(s)}var o=B(e);return me(this),o}},{key:"byobRequest",get:function(){if(!1===fe(this))throw Ne("byobRequest");if(void 0===this._byobRequest&&this._pendingPullIntos.length>
10){var e=this._pendingPullIntos[0],t=new Uint8Array(e.buffer,e.byteOffset+e.bytesFilled,e.byteLength-e.bytesFilled);this._byobRequest=new he(this,t)}return this._byobRequest}},{key:"desiredSize",get:function(){if(!1===fe(this))throw Ne("desiredSize");return Ae(this)}}]),e}();function fe(e){return!!b(e)&&!!Object.prototype.hasOwnProperty.call(e,"_underlyingByteSource")}function ge(e){return!!b(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")}function me(e){var t=function(e){var t=e._controlledReadableStream;return"readable"===t._state&&!0!==e._closeRequested&&!1!==e._started&&(!0===Z(t)&&Y(t)>0||!0===$(t)&&G(t)>0||Ae(e)>0)}(e);!1!==t&&(!0!==e._pulling?(v(!1===e._pullAgain),e._pulling=!0,u(e._underlyingByteSource,"pull",[e]).then(function(){e._pulling=!1,!0===e._pullAgain&&(e._pullAgain=!1,me(e))},function(t){"readable"===e._controlledReadableStream._state&&xe(e,t)}).catch(_)):e._pullAgain=!0)}function be(e){Se(e),e._pendingPullIntos=[]}function ye(e,t){v("errored"!==e._state,"state must not be errored");var n=!1;"closed"===e._state&&(v(0===t.bytesFilled),n=!0);var i=ve(t);"default"===t.readerType?W(e,i,n):(v("byob"===t.readerType),function(e,t,n){var i=e._reader;v(i._readIntoRequests.length>0),i._readIntoRequests.shift()._resolve(a(t,n))}(e,i,n))}function ve(e){var t=e.bytesFilled,n=e.elementSize;return v(t<=e.byteLength),v(t%n==0),new e.ctor(e.buffer,e.byteOffset,t/n)}function _e(e,t,n,i){e._queue.push({buffer:t,byteOffset:n,byteLength:i}),e._queueTotalSize+=i}function we(e,t){var n=t.elementSize,i=t.bytesFilled-t.bytesFilled%n,r=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),s=t.bytesFilled+r,a=s-s%n,c=r,l=!1;a>i&&(c=a-t.bytesFilled,l=!0);for(var u=e._queue;c>0;){var d=u[0],h=Math.min(c,d.byteLength);o(t.buffer,t.byteOffset+t.bytesFilled,d.buffer,d.byteOffset,h),d.byteLength===h?u.shift():(d.byteOffset+=h,d.byteLength-=h),e._queueTotalSize-=h,ke(e,h,t),c-=h}return!1===l&&(v(0===e._queueTotalSize,"queue must be empty"),v(t.bytesFilled>0),v(t.bytesFilled<t.elementSize)),l}function ke(e,t,n){v(0===e._pendingPullIntos.length||e._pendingPullIntos[0]===n),Se(e),n.bytesFilled+=t}function Ce(e){v("readable"===e._controlledReadableStream._state),0===e._queueTotalSize&&!0===e._closeRequested?U(e._controlledReadableStream):me(e)}function Se(e){void 0!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=void 0,e._byobRequest=void 0)}function Te(e){for(v(!1===e._closeRequested);e._pendingPullIntos.length>0;){if(0===e._queueTotalSize)return;var t=e._pendingPullIntos[0];!0===we(e,t)&&(Oe(e),ye(e._controlledReadableStream,t))}}function Pe(e,t){var n=e._pendingPullIntos[0],i=e._controlledReadableStream;if("closed"===i._state){if(0!==t)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");!function(e,t){t.buffer=d(t.buffer),v(0===t.bytesFilled,"bytesFilled must be 0");var n=e._controlledReadableStream;if(!0===$(n))for(;G(n)>0;)ye(n,Oe(e))}(e,n)}else v("readable"===i._state),function(e,t,n){if(n.bytesFilled+t>n.byteLength)throw new RangeError("bytesWritten out of range");if(ke(e,t,n),!(n.bytesFilled<n.elementSize)){Oe(e);var i=n.bytesFilled%n.elementSize;if(i>0){var r=n.byteOffset+n.bytesFilled,s=n.buffer.slice(r-i,r);_e(e,s,0,s.byteLength)}n.buffer=d(n.buffer),n.bytesFilled-=i,ye(e._controlledReadableStream,n),Te(e)}}(e,t,n)}function Oe(e){var t=e._pendingPullIntos.shift();return Se(e),t}function xe(e,t){var n=e._controlledReadableStream;v("readable"===n._state),be(e),S(e),H(n,t)}function Ae(e){var t=e._controlledReadableStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function Ee(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}function Me(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function Ie(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}function Re(e,t){v(void 0!==e._closedPromise_resolve),v(void 0!==e._closedPromise_reject),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function Le(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}function De(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}function je(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function Ne(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}},function(e,t,n){var i=n(6),r=n(4),s=n(2);t.TransformStream=i.TransformStream,t.ReadableStream=r.ReadableStream,t.IsReadableStreamDisturbed=r.IsReadableStreamDisturbed,t.ReadableStreamDefaultControllerClose=r.ReadableStreamDefaultControllerClose,t.ReadableStreamDefaultControllerEnqueue=r.ReadableStreamDefaultControllerEnqueue,t.ReadableStreamDefaultControllerError=r.ReadableStreamDefaultControllerError,t.ReadableStreamDefaultControllerGetDesiredSize=r.ReadableStreamDefaultControllerGetDesiredSize,t.AcquireWritableStreamDefaultWriter=s.AcquireWritableStreamDefaultWriter,t.IsWritableStream=s.IsWritableStream,t.IsWritableStreamLocked=s.IsWritableStreamLocked,t.WritableStream=s.WritableStream,t.WritableStreamAbort=s.WritableStreamAbort,t.WritableStreamDefaultControllerError=s.WritableStreamDefaultControllerError,t.WritableStreamDefaultWriterCloseWithErrorPropagation=s.WritableStreamDefaultWriterCloseWithErrorPropagation,t.WritableStreamDefaultWriterRelease=s.WritableStreamDefaultWriterRelease,t.WritableStreamDefaultWriterWrite=s.WritableStreamDefaultWriterWrite},function(e,t,n){var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=n(1).assert,o=n(0),a=o.InvokeOrNoop,c=o.PromiseInvokeOrPerformFallback,l=o.PromiseInvokeOrNoop,u=o.typeIsObject,d=n(4),h=d.ReadableStream,p=d.ReadableStreamDefaultControllerClose,f=d.ReadableStreamDefaultControllerEnqueue,g=d.ReadableStreamDefaultControllerError,m=d.ReadableStreamDefaultControllerGetDesiredSize,b
1=n(2),y=b.WritableStream,v=b.WritableStreamDefaultControllerError;function _(e,t){if(!0===e._errored)throw new TypeError("TransformStream is already errored");if(!0===e._readableClosed)throw new TypeError("Readable side is already closed");var n=e._readableController;try{f(n,t)}catch(i){throw e._readableClosed=!0,k(e,i),e._storedError}1==m(n)<=0&&!1===e._backpressure&&T(e,!0)}function w(e){s(!1===e._errored),s(!1===e._readableClosed);try{p(e._readableController)}catch(t){s(!1)}e._readableClosed=!0}function k(e,t){!1===e._errored&&C(e,t)}function C(e,t){s(!1===e._errored),e._errored=!0,e._storedError=t,!1===e._writableDone&&v(e._writableController,t),!1===e._readableClosed&&g(e._readableController,t)}function S(e){return s(void 0!==e._backpressureChangePromise,"_backpressureChangePromise should have been initialized"),!1===e._backpressure?Promise.resolve():(s(!0===e._backpressure,"_backpressure should have been initialized"),e._backpressureChangePromise)}function T(e,t){s(e._backpressure!==t,"TransformStreamSetBackpressure() should be called only when backpressure is changed"),void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(t),e._backpressureChangePromise=new Promise(function(t){e._backpressureChangePromise_resolve=t}),e._backpressureChangePromise.then(function(e){s(e!==t,"_backpressureChangePromise should be fulfilled only when backpressure is changed")}),e._backpressure=t}function P(e,t){return _(t._controlledTransformStream,e),Promise.resolve()}function O(e){return!!u(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")}function x(e){return!!u(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")}var A=function(){function e(t,n){r(this,e),this._transformStream=t,this._startPromise=n}return i(e,[{key:"start",value:function(e){var t=this._transformStream;return t._writableController=e,this._startPromise.then(function(){return S(t)})}},{key:"write",value:function(e){return function(e,t){s(!1===e._errored),s(!1===e._transforming),s(!1===e._backpressure),e._transforming=!0;var n=e._transformStreamController;return c(e._transformer,"transform",[t,n],P,[t,n]).then(function(){return e._transforming=!1,S(e)},function(t){return k(e,t),Promise.reject(t)})}(this._transformStream,e)}},{key:"abort",value:function(){var e=this._transformStream;e._writableDone=!0,C(e,new TypeError("Writable side aborted"))}},{key:"close",value:function(){var e=this._transformStream;return s(!1===e._transforming),e._writableDone=!0,l(e._transformer,"flush",[e._transformStreamController]).then(function(){return!0===e._errored?Promise.reject(e._storedError):(!1===e._readableClosed&&w(e),Promise.resolve())}).catch(function(t){return k(e,t),Promise.reject(e._storedError)})}}]),e}(),E=function(){function e(t,n){r(this,e),this._transformStream=t,this._startPromise=n}return i(e,[{key:"start",value:function(e){var t=this._transformStream;return t._readableController=e,this._startPromise.then(function(){return s(void 0!==t._backpressureChangePromise,"_backpressureChangePromise should have been initialized"),!0===t._backpressure?Promise.resolve():(s(!1===t._backpressure,"_backpressure should have been initialized"),t._backpressureChangePromise)})}},{key:"pull",value:function(){var e=this._transformStream;return s(!0===e._backpressure,"pull() should be never called while _backpressure is false"),s(void 0!==e._backpressureChangePromise,"_backpressureChangePromise should have been initialized"),T(e,!1),e._backpressureChangePromise}},{key:"cancel",value:function(){var e=this._transformStream;e._readableClosed=!0,C(e,new TypeError("Readable side canceled"))}}]),e}(),M=function(){function e(t){if(r(this,e),!1===x(t))throw new TypeError("TransformStreamDefaultController can only be constructed with a TransformStream instance");if(void 0!==t._transformStreamController)throw new TypeError("TransformStreamDefaultController instances can only be created by the TransformStream constructor");this._controlledTransformStream=t}return i(e,[{key:"enqueue",value:function(e){if(!1===O(this))throw R("enqueue");_(this._controlledTransformStream,e)}},{key:"close",value:function(){if(!1===O(this))throw R("close");!function(e){if(!0===e._errored)throw new TypeError("TransformStream is already errored");if(!0===e._readableClosed)throw new TypeError("Readable side is already closed");w(e)}(this._controlledTransformStream)}},{key:"error",value:function(e){if(!1===O(this))throw R("error");!function(e,t){if(!0===e._errored)throw new TypeError("TransformStream is already errored");C(e,t)}(this._controlledTransformStream,e)}},{key:"desiredSize",get:function(){if(!1===O(this))throw R("desiredSize");return m(this._controlledTransformStream._readableController)}}]),e}(),I=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,e),this._transformer=t;var n=t.readableStrategy,i=t.writableStrategy;this._transforming=!1,this._errored=!1,this._storedError=void 0,this._writableController=void 0,this._readableController=void 0,this._transformStreamController=void 0,this._writableDone=!1,this._readableClosed=!1,this._backpressure=void 0,this._backpressureChangePromise=void 0,this._backpressureChangePromise_resolve=void 0,this._transformStreamController=new M(this);var o=void 0,c=new Promise(function(e){o=e}),l=new E(this,c);this._readable=new h(l,n);var u=new A(this,c);this._writable=new y(u,i),s(void 0!==this._writableController),s(void 0!==this._readableController);var d=m(this._readableController);T(this,d<=0);var p=this,f=a(t,"start",[p._transformStreamController]);
1o(f),c.catch(function(e){!1===p._errored&&(p._errored=!0,p._storedError=e)})}return i(e,[{key:"readable",get:function(){if(!1===x(this))throw L("readable");return this._readable}},{key:"writable",get:function(){if(!1===x(this))throw L("writable");return this._writable}}]),e}();function R(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function L(e){return new TypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}e.exports={TransformStream:I}},function(e,t,n){e.exports=n(5)}]))},function(e,t,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=!1;try{if("function"==typeof URL&&"object"===i(URL.prototype)&&"origin"in URL.prototype){var s=new URL("b","http://a");s.pathname="c%20d",r="http://a/c%20d"===s.href}}catch(c){}if(r)t.URL=URL;else{var o=n(128).URL,a=n(3).URL;a&&(o.createObjectURL=function(e){return a.createObjectURL.apply(a,arguments)},o.revokeObjectURL=function(e){a.revokeObjectURL(e)}),t.URL=o}},function(e,t,n){"use strict";!function(){var e=Object.create(null);e.ftp=21,e.file=0,e.gopher=70,e.http=80,e.https=443,e.ws=80,e.wss=443;var n=Object.create(null);function i(t){return void 0!==e[t]}function r(){h.call(this),this._isInvalid=!0}function s(e){return""===e&&r.call(this),e.toLowerCase()}function o(e){var t=e.charCodeAt(0);return t>32&&t<127&&-1===[34,35,60,62,63,96].indexOf(t)?e:encodeURIComponent(e)}function a(e){var t=e.charCodeAt(0);return t>32&&t<127&&-1===[34,35,60,62,96].indexOf(t)?e:encodeURIComponent(e)}n["%2e"]=".",n[".%2e"]="..",n["%2e."]="..",n["%2e%2e"]="..";var c,l=/[a-zA-Z]/,u=/[a-zA-Z0-9\+\-\.]/;function d(t,d,h){function p(e){v.push(e)}var f=d||"scheme start",g=0,m="",b=!1,y=!1,v=[];e:for(;(t[g-1]!==c||0===g)&&!this._isInvalid;){var _=t[g];switch(f){case"scheme start":if(!_||!l.test(_)){if(d){p("Invalid scheme.");break e}m="",f="no scheme";continue}m+=_.toLowerCase(),f="scheme";break;case"scheme":if(_&&u.test(_))m+=_.toLowerCase();else{if(":"!==_){if(d){if(_===c)break e;p("Code point not allowed in scheme: "+_);break e}m="",g=0,f="no scheme";continue}if(this._scheme=m,m="",d)break e;i(this._scheme)&&(this._isRelative=!0),f="file"===this._scheme?"relative":this._isRelative&&h&&h._scheme===this._scheme?"relative or authority":this._isRelative?"authority first slash":"scheme data"}break;case"scheme data":"?"===_?(this._query="?",f="query"):"#"===_?(this._fragment="#",f="fragment"):_!==c&&"\t"!==_&&"\n"!==_&&"\r"!==_&&(this._schemeData+=o(_));break;case"no scheme":if(h&&i(h._scheme)){f="relative";continue}p("Missing scheme."),r.call(this);break;case"relative or authority":if("/"!==_||"/"!==t[g+1]){p("Expected /, got: "+_),f="relative";continue}f="authority ignore slashes";break;case"relative":if(this._isRelative=!0,"file"!==this._scheme&&(this._scheme=h._scheme),_===c){this._host=h._host,this._port=h._port,this._path=h._path.slice(),this._query=h._query,this._username=h._username,this._password=h._password;break e}if("/"===_||"\\"===_)"\\"===_&&p("\\ is an invalid code point."),f="relative slash";else if("?"===_)this._host=h._host,this._port=h._port,this._path=h._path.slice(),this._query="?",this._username=h._username,this._password=h._password,f="query";else{if("#"!==_){var w=t[g+1],k=t[g+2];("file"!==this._scheme||!l.test(_)||":"!==w&&"|"!==w||k!==c&&"/"!==k&&"\\"!==k&&"?"!==k&&"#"!==k)&&(this._host=h._host,this._port=h._port,this._username=h._username,this._password=h._password,this._path=h._path.slice(),this._path.pop()),f="relative path";continue}this._host=h._host,this._port=h._port,this._path=h._path.slice(),this._query=h._query,this._fragment="#",this._username=h._username,this._password=h._password,f="fragment"}break;case"relative slash":if("/"!==_&&"\\"!==_){"file"!==this._scheme&&(this._host=h._host,this._port=h._port,this._username=h._username,this._password=h._password),f="relative path";continue}
1"\\"===_&&p("\\ is an invalid code point."),f="file"===this._scheme?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!==_){p("Expected '/', got: "+_),f="authority ignore slashes";continue}f="authority second slash";break;case"authority second slash":if(f="authority ignore slashes","/"!==_){p("Expected '/', got: "+_);continue}break;case"authority ignore slashes":if("/"!==_&&"\\"!==_){f="authority";continue}p("Expected authority, got: "+_);break;case"authority":if("@"===_){b&&(p("@ already seen."),m+="%40"),b=!0;for(var C=0;C<m.length;C++){var S=m[C];if("\t"!==S&&"\n"!==S&&"\r"!==S)if(":"!==S||null!==this._password){var T=o(S);null!==this._password?this._password+=T:this._username+=T}else this._password="";else p("Invalid whitespace in authority.")}m=""}else{if(_===c||"/"===_||"\\"===_||"?"===_||"#"===_){g-=m.length,m="",f="host";continue}m+=_}break;case"file host":if(_===c||"/"===_||"\\"===_||"?"===_||"#"===_){2!==m.length||!l.test(m[0])||":"!==m[1]&&"|"!==m[1]?(0===m.length||(this._host=s.call(this,m),m=""),f="relative path start"):f="relative path";continue}"\t"===_||"\n"===_||"\r"===_?p("Invalid whitespace in file host."):m+=_;break;case"host":case"hostname":if(":"!==_||y){if(_===c||"/"===_||"\\"===_||"?"===_||"#"===_){if(this._host=s.call(this,m),m="",f="relative path start",d)break e;continue}"\t"!==_&&"\n"!==_&&"\r"!==_?("["===_?y=!0:"]"===_&&(y=!1),m+=_):p("Invalid code point in host/hostname: "+_)}else if(this._host=s.call(this,m),m="",f="port","hostname"===d)break e;break;case"port":if(/[0-9]/.test(_))m+=_;else{if(_===c||"/"===_||"\\"===_||"?"===_||"#"===_||d){if(""!==m){var P=parseInt(m,10);P!==e[this._scheme]&&(this._port=P+""),m=""}if(d)break e;f="relative path start";continue}"\t"===_||"\n"===_||"\r"===_?p("Invalid code point in port: "+_):r.call(this)}break;case"relative path start":if("\\"===_&&p("'\\' not allowed in path."),f="relative path","/"!==_&&"\\"!==_)continue;break;case"relative path":var O;_!==c&&"/"!==_&&"\\"!==_&&(d||"?"!==_&&"#"!==_)?"\t"!==_&&"\n"!==_&&"\r"!==_&&(m+=o(_)):("\\"===_&&p("\\ not allowed in relative path."),(O=n[m.toLowerCase()])&&(m=O),".."===m?(this._path.pop(),"/"!==_&&"\\"!==_&&this._path.push("")):"."===m&&"/"!==_&&"\\"!==_?this._path.push(""):"."!==m&&("file"===this._scheme&&0===this._path.length&&2===m.length&&l.test(m[0])&&"|"===m[1]&&(m=m[0]+":"),this._path.push(m)),m="","?"===_?(this._query="?",f="query"):"#"===_&&(this._fragment="#",f="fragment"));break;case"query":d||"#"!==_?_!==c&&"\t"!==_&&"\n"!==_&&"\r"!==_&&(this._query+=a(_)):(this._fragment="#",f="fragment");break;case"fragment":_!==c&&"\t"!==_&&"\n"!==_&&"\r"!==_&&(this._fragment+=_)}g++}}function h(){this._scheme="",this._schemeData="",this._username="",this._password=null,this._host="",this._port="",this._path=[],this._query="",this._fragment="",this._isInvalid=!1,this._isRelative=!1}function p(e,t){void 0===t||t instanceof p||(t=new p(String(t))),this._url=e,h.call(this);var n=e.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,"");d.call(this,n,null,t)}p.prototype={toString:function(){return this.href},get href(){if(this._isInvalid)return this._url;var e="";return""===this._username&&null===this._password||(e=this._username+(null!==this._password?":"+this._password:"")+"@"),this.protocol+(this._isRelative?"//"+e+this.host:"")+this.pathname+this._query+this._fragment},set href(e){h.call(this),d.call(this,e)},get protocol(){return this._scheme+":"},set protocol(e){this._isInvalid||d.call(this,e+":","scheme start")},get host(){return this._isInvalid?"":this._port?this._host+":"+this._port:this._host},set host(e){!this._isInvalid&&this._isRelative&&d.call(this,e,"host")},get hostname(){return this._host},set hostname(e){!this._isInvalid&&this._isRelative&&d.call(this,e,"hostname")},get port(){return this._port},set port(e){!this._isInvalid&&this._isRelative&&d.call(this,e,"port")},get pathname(){return this._isInvalid?"":this._isRelative?"/"+this._path.join("/"):this._schemeData},set pathname(e){!this._isInvalid&&this._isRelative&&(this._path=[],d.call(this,e,"relative path start"))},get search(){return this._isInvalid||!this._query||"?"===this._query?"":this._query},set search(e){!this._isInvalid&&this._isRelative&&(this._query="?","?"===e[0]&&(e=e.slice(1)),d.call(this,e,"query"))},get hash(){return this._isInvalid||!this._fragment||"#"===this._fragment?"":this._fragment},set hash(e){this._isInvalid||(this._fragment="#","#"===e[0]&&(e=e.slice(1)),d.call(this,e,"fragment"))},get origin(){var e;if(this._isInvalid||!this._scheme)return"";switch(this._scheme){case"data":case"file":case"javascript":case"mailto":return"null";case"blob":try{return new p(this._schemeData).origin||"null"}catch(t){}return"null"}return(e=this.host)?this._scheme+"://"+e:""}},t.URL=p}()},function(e,t,i){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.build=t.version=t.setPDFNetworkStreamFactory=t.PDFPageProxy=t.PDFDocumentProxy=t.PDFWorker=t.PDFDataRangeTransport=t.LoopbackPort=t.getDocument=void 0;var r,s=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,s=void 0;try{for(var o,a=e[Symbol.iterator]();!(i=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(c){r=!0,s=c}finally{try{!i&&a.return&&a.return()}finally{if(r)throw s}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),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},c=i(1),l=i(130),u=i(131),d=i(132),h=i(133),p=(r=i(3))&&r.__esModule?r:{default:r},f=i(135),g=i(136),m=i(141),b=i(143),y=i(144);function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var _,w=!1,k=void 0,C=!1;"undefined"==typeof window?(w=!0,C=!0):C=!0,"undefined"!=typeof requirejs&&requirejs.toUrl&&(k=requirejs.toUrl("pdfjs-dist/build/pdf.worker.js"));var S,T="undefined"!=typeof requirejs&&requirejs.load;if(_=C?function(){return new Promise(function(e,t){n.e(6).then((function(){try{var i;i=n("Vdsi"),e(i.WorkerMessageHandler)}catch(r){t(r)}}).bind(null,n)).catch(t)})}:T?function(){return new Promise(function(e,t){requirejs(["pdfjs-dist/build/pdf.worker"],function(n){try{e(n.WorkerMessageHandler)}catch(i){t(i)}},t)})}:null,!k&&"undefined"!=typeof document){var P=document.currentScript&&document.currentScript.src;P&&(k=P.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}var O=function(){var e=0;function t(){this._capability=(0,c.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+e++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}return t.prototype={get promise(){return this._capability.promise},destroy:function(){var e=this;return this.destroyed=!0,(this._transport?this._transport.destroy():Promise.resolve()).then(function(){e._transport=null,e._worker&&(e._worker.destroy(),e._worker=null)})},then:function(e,t){return this.promise.then.apply(this.promise,arguments)}},t}(),x=function(){function e(t,n){v(this,e),this.length=t,this.initialData=n,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._readyCapability=(0,c.createPromiseCapability)()}return o(e,[{key:"addRangeListener",value:function(e){this._rangeListeners.push(e)}},{key:"addProgressListener",value:function(e){this._progressListeners.push(e)}},{key:"addProgressiveReadListener",value:function(e){this._progressiveReadListeners.push(e)}},{key:"onDataRange",value:function(e,t){var n=!0,i=!1,r=void 0;try{for(var s,o=this._rangeListeners[Symbol.iterator]();!(n=(s=o.next()).done);n=!0)(0,s.value)(e,t)}catch(a){i=!0,r=a}finally{try{!n&&o.return&&o.return()}finally{if(i)throw r}}}},{key:"onDataProgress",value:function(e){var t=this;this._readyCapability.promise.then(function(){var n=!0,i=!1,r=void 0;try{for(var s,o=t._progressListeners[Symbol.iterator]();!(n=(s=o.next()).done);n=!0)(0,s.value)(e)}catch(a){i=!0,r=a}finally{try{!n&&o.return&&o.return()}finally{if(i)throw r}}})}},{key:"onDataProgressiveRead",value:function(e){var t=this;this._readyCapability.promise.then(function(){var n=!0,i=!1,r=void 0;try{for(var s,o=t._progressiveReadListeners[Symbol.iterator]();!(n=(s=o.next()).done);n=!0)(0,s.value)(e)}catch(a){i=!0,r=a}finally{try{!n&&o.return&&o.return()}finally{if(i)throw r}}})}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(e,t){(0,c.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}]),e}(),A=function(){function e(t,n,i){v(this,e),this.loadingTask=i,this._pdfInfo=t,this._transport=n}return o(e,[{key:"getPage",value:function(e){return this._transport.getPage(e)}},{key:"getPageIndex",value:function(e){return this._transport.getPageIndex(e)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(e){return this._transport.getDestination(e)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJavaScript",value:function(){return this._transport.getJavaScript()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getData",value:function(){return this._transport.getData()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"getStats",value:function(){return this._transport.getStats()}},{key:"cleanup",value:function(){this._transport.startCleanup()}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprint",get:function(){return this._pdfInfo.fingerprint}},{key:"loadingParams",get:function(){return this._transport.loadingParams}}]),e}(),E=function(){function e(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.pageIndex=e,this._pageInfo=t,this.transport=n,this._stats=i?new l.StatTimer:l.DummyStatTimer,this._pdfBug=i,this.commonObjs=n.commonObjs,this.objs=new L,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),this.destroyed=!1}return e.prototype={get pageNumber(){return this.pageIndex+1},get rotate(){return this._pageInfo.rotate},get ref(){return this._pageInfo.ref},get userUnit(){return this._pageInfo.userUnit},get view(){return this._pageInfo.view},getViewport:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rotate,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new l.PageViewport({viewBox:this.view,scale:e,rotation:t,dontFlip:n})},getAnnotations:function(e){var t=e&&e.intent||null;
1return this.annotationsPromise&&this.annotationsIntent===t||(this.annotationsPromise=this.transport.getAnnotations(this.pageIndex,t),this.annotationsIntent=t),this.annotationsPromise},render:function(e){var t=this,n=this._stats;n.time("Overall"),this.pendingCleanup=!1;var i="print"===e.intent?"print":"display",r=e.canvasFactory||new l.DOMCanvasFactory,s=new y.WebGLContext({enable:e.enableWebGL});this.intentStates[i]||(this.intentStates[i]=Object.create(null));var o=this.intentStates[i];o.displayReadyCapability||(o.receivingOperatorList=!0,o.displayReadyCapability=(0,c.createPromiseCapability)(),o.operatorList={fnArray:[],argsArray:[],lastChunk:!1},n.time("Page Request"),this.transport.messageHandler.send("RenderPageRequest",{pageIndex:this.pageNumber-1,intent:i,renderInteractiveForms:!0===e.renderInteractiveForms}));var a=function(e){var i=o.renderTasks.indexOf(u);i>=0&&o.renderTasks.splice(i,1),t.cleanupAfterRender&&(t.pendingCleanup=!0),t._tryCleanup(),e?u.capability.reject(e):u.capability.resolve(),n.timeEnd("Rendering"),n.timeEnd("Overall")},u=new j(a,e,this.objs,this.commonObjs,o.operatorList,this.pageNumber,r,s,this._pdfBug);u.useRequestAnimationFrame="print"!==i,o.renderTasks||(o.renderTasks=[]),o.renderTasks.push(u);var d=u.task;return o.displayReadyCapability.promise.then(function(e){t.pendingCleanup?a():(n.time("Ren
1dering"),u.initializeGraphics(e),u.operatorListChanged())}).catch(a),d},getOperatorList:function(){this.intentStates.oplist||(this.intentStates.oplist=Object.create(null));var e,t=this.intentStates.oplist;return t.opListReadCapability||((e={}).operatorListChanged=function(){if(t.operatorList.lastChunk){t.opListReadCapability.resolve(t.operatorList);var n=t.renderTasks.indexOf(e);n>=0&&t.renderTasks.splice(n,1)}},t.receivingOperatorList=!0,t.opListReadCapability=(0,c.createPromiseCapability)(),t.renderTasks=[],t.renderTasks.push(e),t.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats.time("Page Request"),this.transport.messageHandler.send("RenderPageRequest",{pageIndex:this.pageIndex,intent:"oplist"})),t.opListReadCapability.promise},streamTextContent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=100;return this.transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this.pageNumber-1,normalizeWhitespace:!0===e.normalizeWhitespace,combineTextItems:!0!==e.disableCombineTextItems},{highWaterMark:t,size:function(e){return e.items.length}})},getTextContent:function(e){var t=this.streamTextContent(e=e||{});return new Promise(function(e,n){var i=t.getReader(),r={items:[],styles:Object.create(null)};!function t(){i.read().then(function(n){var i,s=n.value;n.done?e(r):(Object.assign(r.styles,s.styles),(i=r.items).push.apply(i,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(s.items)),t())},n)}()})},_destroy:function(){this.destroyed=!0,this.transport.pageCache[this.pageIndex]=null;var e=[];return Object.keys(this.intentStates).forEach(function(t){"oplist"!==t&&this.intentStates[t].renderTasks.forEach(function(t){var n=t.capability.promise.catch(function(){});e.push(n),t.cancel()})},this),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(e)},cleanup:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.pendingCleanup=!0,this._tryCleanup(e)},_tryCleanup:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.pendingCleanup&&!Object.keys(this.intentStates).some(function(e){var t=this.intentStates[e];return 0!==t.renderTasks.length||t.receivingOperatorList},this)&&(Object.keys(this.intentStates).forEach(function(e){delete this.intentStates[e]},this),this.objs.clear(),this.annotationsPromise=null,e&&this._stats instanceof l.StatTimer&&(this._stats=new l.StatTimer),this.pendingCleanup=!1)},_startRenderPage:function(e,t){var n=this.intentStates[t];n.displayReadyCapability&&n.displayReadyCapability.resolve(e)},_renderPageChunk:function(e,t){var n,i,r=this.intentStates[t];for(n=0,i=e.length;n<i;n++)r.operatorList.fnArray.push(e.fnArray[n]),r.operatorList.argsArray.push(e.argsArray[n]);for(r.operatorList.lastChunk=e.lastChunk,n=0;n<r.renderTasks.length;n++)r.renderTasks[n].operatorListChanged();e.lastChunk&&(r.receivingOperatorList=!1,this._tryCleanup())},get stats(){return this._stats instanceof l.StatTimer?this._stats:null}},e}(),M=function(){function e(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];v(this,e),this._listeners=[],this._defer=t,this._deferred=Promise.resolve(void 0)}return o(e,[{key:"postMessage",value:function(e,t){var n=this;if(this._defer){var i=new WeakMap,r={data:function e(n){if("object"!==(void 0===n?"undefined":a(n))||null===n)return n;if(i.has(n))return i.get(n);var r,s;if((s=n.buffer)&&(0,c.isArrayBuffer)(s)){var o=t&&t.includes(s);return r=n===s?n:o?new n.constructor(s,n.byteOffset,n.byteLength):new n.constructor(n),i.set(n,r),r}for(var l in r=Array.isArray(n)?[]:{},i.set(n,r),n){for(var u,d=n;!(u=Object.getOwnPropertyDescriptor(d,l));)d=Object.getPrototypeOf(d);void 0!==u.value&&"function"!=typeof u.value&&(r[l]=e(u.value))}return r}(e)};this._deferred.then(function(){n._listeners.forEach(function(e){e.call(this,r)},n)})}else this._listeners.forEach(function(t){t.call(this,{data:e})},this)}},{key:"addEventListener",value:function(e,t){this._listeners.push(t)}},{key:"removeEventListener",value:function(e,t){var n=this._listeners.indexOf(t);this._listeners.splice(n,1)}},{key:"terminate",value:function(){this._listeners=[]}}]),e}(),I=function(){var e=0;function t(){if(f.GlobalWorkerOptions.workerSrc)return f.GlobalWorkerOptions.workerSrc;if(void 0!==k)return k;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function n(){try{if("undefined"!=typeof window)return window.pdfjsWorker&&window.pdfjsWorker.WorkerMessageHandler}catch(e){}return null}var i=void 0,r=new WeakMap;function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=void 0===t?null:t,i=e.port,s=void 0===i?null:i,o=e.postMessageTransfers,a=void 0===o||o,l=e.verbosity,u=void 0===l?
1(0,c.getVerbosityLevel)():l;if(s&&r.has(s))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=n,this.destroyed=!1,this.postMessageTransfers=!1!==a,this.verbosity=u,this._readyCapability=(0,c.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,s)return r.set(s,this),void this._initializeFromPort(s);this._initialize()}return s.prototype={get promise(){return this._readyCapability.promise},get port(){return this._port},get messageHandler(){return this._messageHandler},_initializeFromPort:function(e){this._port=e,this._messageHandler=new g.MessageHandler("main","worker",e),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()},_initialize:function(){var e,i=this;if("undefined"!=typeof Worker&&!w&&!n()){var r=t();try{(0,c.isSameOrigin)(window.location.href,r)||(e=new c.URL(r,window.location).href,r=c.URL.createObjectURL(new Blob(["importScripts('"+e+"');"])));var s=new Worker(r),o=new g.MessageHandler("main","worker",s),a=function(){s.removeEventListener("error",l),o.destroy(),s.terminate(),i.destroyed?i._readyCapability.reject(new Error("Worker was destroyed")):i._setupFakeWorker()},l=function(){i._webWorker||a()};s.addEventListener("error",l),o.on("test",function(e){s.removeEventListener("error",l),i.destroyed?a():e&&e.supportTypedArray?(i._messageHandler=o,i._port=s,i._webWorker=s,e.supportTransfers||(i.postMessageTransfers=!1),i._readyCapability.resolve(),o.send("configure",{verbosity:i.verbosity})):(i._setupFakeWorker(),o.destroy(),s.terminate())}),o.on("ready",function(e){if(s.removeEventListener("error",l),i.destroyed)a();else try{u()}catch(t){i._setupFakeWorker()}});var u=function(){var e=new Uint8Array([i.postMessageTransfers?255:0]);try{o.send("test",e,[e.buffer])}catch(t){(0,c.info)("Cannot use postMessage transfers"),e[0]=0,o.send("test",e)}};return void u()}catch(d){(0,c.info)("The worker has been disabled.")}}this._setupFakeWorker()},_setupFakeWorker:function(){var r=this;w||((0,c.warn)("Setting up fake worker."),w=!0),function(){if(i)return i.promise;i=(0,c.createPromiseCapability)();var e=n();return e?(i.resolve(e),i.promise):((_||function(){return(0,l.loadScript)(t()).then(function(){return window.pdfjsWorker.WorkerMessageHandler})})().then(i.resolve,i.reject),i.promise)}().then(function(t){if(r.destroyed)r._readyCapability.reject(new Error("Worker was destroyed"));else{var n=new M;r._port=n;var i="fake"+e++,s=new g.MessageHandler(i+"_worker",i,n);t.setup(s,n);var o=new g.MessageHandler(i,i+"_worker",n);r._messageHandler=o,r._readyCapability.resolve()}}).catch(function(e){r._readyCapability.reject(new Error('Setting up fake worker failed: "'+e.message+'".'))})},destroy:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),r.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}},s.fromPort=function(e){if(!e||!e.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return r.has(e.port)?r.get(e.port):new s(e)},s.getWorkerSrc=function(){return t()},s}(),R=function(){function e(t,n,i,r){v(this,e),this.messageHandler=t,this.loadingTask=n,this.commonObjs=new L,this.fontLoader=new u.FontLoader(n.docId),this._params=r,this.CMapReaderFactory=new r.CMapReaderFactory({baseUrl:r.cMapUrl,isCompressed:r.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=i,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,c.createPromiseCapability)(),this.setupMessageHandler()}return o(e,[{key:"destroy",value:function(){var e=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,c.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));var t=[];this.pageCache.forEach(function(e){e&&t.push(e._destroy())}),this.pageCache=[],this.pagePromises=[];
1var n=this.messageHandler.sendWithPromise("Terminate",null);return t.push(n),Promise.all(t).then(function(){e.fontLoader.clear(),e._networkStream&&e._networkStream.cancelAllRequests(),e.messageHandler&&(e.messageHandler.destroy(),e.messageHandler=null),e.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var e=this.messageHandler,t=this.loadingTask;e.on("GetReader",function(e,t){var n=this;(0,c.assert)(this._networkStream),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=function(e){n._lastProgress={loaded:e.loaded,total:e.total}},t.onPull=function(){n._fullReader.read().then(function(e){var n=e.value;e.done?t.close():((0,c.assert)((0,c.isArrayBuffer)(n)),t.enqueue(new Uint8Array(n),1,[n]))}).catch(function(e){t.error(e)})},t.onCancel=function(e){n._fullReader.cancel(e)}},this),e.on("ReaderHeadersReady",function(e){var n=this,i=(0,c.createPromiseCapability)(),r=this._fullReader;return r.headersReady.then(function(){r.isStreamingSupported&&r.isRangeSupported||(n._lastProgress&&t.onProgress&&t.onProgress(n._lastProgress),r.onProgress=function(e){t.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})}),i.resolve({isStreamingSupported:r.isStreamingSupported,isRangeSupported:r.isRangeSupported,contentLength:r.contentLength})},i.reject),i.promise},this),e.on("GetRangeReader",function(e,t){(0,c.assert)(this._networkStream);var n=this._networkStream.getRangeReader(e.begin,e.end);t.onPull=function(){n.read().then(function(e){var n=e.value;e.done?t.close():((0,c.assert)((0,c.isArrayBuffer)(n)),t.enqueue(new Uint8Array(n),1,[n]))}).catch(function(e){t.error(e)})},t.onCancel=function(e){n.cancel(e)}},this),e.on("GetDoc",function(e){var n=e.pdfInfo;this.numPages=n.numPages,this.pdfDocument=new A(n,this,t),t._capability.resolve(this.pdfDocument)},this),e.on("PasswordRequest",function(e){var n=this;if(this._passwordCapability=(0,c.createPromiseCapability)(),t.onPassword)try{t.onPassword(function(e){n._passwordCapability.resolve({password:e})},e.code)}catch(i){this._passwordCapability.reject(i)}else this._passwordCapability.reject(new c.PasswordException(e.message,e.code));return this._passwordCapability.promise},this),e.on("PasswordException",function(e){t._capability.reject(new c.PasswordException(e.message,e.code))},this),e.on("InvalidPDF",function(e){t._capability.reject(new c.InvalidPDFException(e.message))},this),e.on("MissingPDF",function(e){t._capability.reject(new c.MissingPDFException(e.message))},this),e.on("UnexpectedResponse",function(e){t._capability.reject(new c.UnexpectedResponseException(e.message,e.status))},this),e.on("UnknownError",function(e){t._capability.reject(new c.UnknownErrorException(e.message,e.details))},this),e.on("DataLoaded",function(e){t.onProgress&&t.onProgress({loaded:e.length,total:e.length}),this.downloadInfoCapability.resolve(e)},this),e.on("StartRenderPage",function(e){if(!this.destroyed){var t=this.pageCache[e.pageIndex];t._stats.timeEnd("Page Request"),t._startRenderPage(e.transparency,e.intent)}},this),e.on("RenderPageChunk",function(e){this.destroyed||this.pageCache[e.pageIndex]._renderPageChunk(e.operatorList,e.intent)},this),e.on("commonobj",function(e){var t=this;if(!this.destroyed){var n=s(e,3),i=n[0],r=n[1],o=n[2];if(!this.commonObjs.hasData(i))switch(r){case"Font":var a=this._params;if("error"in o){var l=o.error;(0,c.warn)("Error during font loading: "+l),this.commonObjs.resolve(i,l);break}var d=null;a.pdfBug&&p.default.FontInspector&&p.default.FontInspector.enabled&&(d={registerFont:function(e,t){p.default.FontInspector.fontAdded(e,t)}});var h=new u.FontFaceObject(o,{isEvalSupported:a.isEvalSupported,disableFontFace:a.disableFontFace,ignoreErrors:a.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:d});this.fontLoader.bind([h],function(e){t.commonObjs.resolve(i,h)});break;case"FontPath":this.commonObjs.resolve(i,o);break;default:throw new Error("Got unknown common object type "+r)}}},this),e.on("obj",function(e){if(!this.destroyed){var t=s(e,4),n=t[0],i=t[2],r=t[3],o=this.pageCache[t[1]];if(!o.objs.hasData(n))switch(i){case"JpegStream":return new Promise(function(e,t){var n=new Image;n.onload=function(){e(n)},n.onerror=function(){t(new Error("Error during JPEG image loading"))},n.src=r}).then(function(e){o.objs.resolve(n,e)});case"Image":o.objs.resolve(n,r),r&&"data"in r&&r.data.length>8e6&&(o.cleanupAfterRender=!0);break;default:throw new Error("Got unknown object type "+i)}}},this),e.on("DocProgress",function(e){this.destroyed||t.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})},this),e.on("PageError",function(e){if(!this.destroyed){var t=this.pageCache[e.pageNum-1].intentStates[e.intent];if(!t.displayReadyCapability)throw new Error(e.error);if(t.displayReadyCapability.reject(e.error),t.operatorList){t.operatorList.lastChunk=!0;for(var n=0;n<t.renderTasks.length;n++)t.renderTasks[n].operatorListChanged()}}},this),e.on("UnsupportedFeature",this._onUnsupportedFeature,this),e.on("JpegDecode",function(e){if(this.destroyed)return Promise.reject(new Error("Worker was destroyed"));if("undefined"==typeof document)return Promise.reject(new Error('"document" is not defined.'));var t=s(e,2),n=t[0],i=t[1];return 3!==i&&1!==i?Promise.reject(new Error("Only 3 components or 1 component can be returned")):new Promise(function(e,t){var r=new Image;r.onload=function(){var t=r.width,n=r.height,s=t*n,o=4*s,a=new Uint8ClampedArray(s*i),c=document.createElement("canvas");c.width=t,c.height=n;var l=c.getContext("2d");l.drawImage(r,0,0);var u=l.getImageData(0,0,t,n).data;if(3===i)for(var d=0,h=0;d<o;d+=4,h+=3)a[h]=u[d],a[h+1]=u[d+1],a[h+2]=u[d+2];else if(1===i)for(var p=0,f=0;p<o;p+=4,f++)a[f]=u[p];e({data:a,width:t,height:n})},r.onerror=function(){t(new Error("JpegDecode failed to load image"))},r.src=n})},this),e.on("FetchBuiltInCMap",function(e){return this.destroyed?Promise.reject(new Error("Worker was destroyed")):this.CMapReaderFactory.fetch({name:e.name})},this)}},{key:"_onUnsupportedFeature",value:function(e){this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(e.featureId)}},{key:"getData",value:function(){return this.messageHandler.sendWithProm
1ise("GetData",null)}},{key:"getPage",value:function(e){var t=this;if(!Number.isInteger(e)||e<=0||e>this.numPages)return Promise.reject(new Error("Invalid page request"));var n=e-1;if(n in this.pagePromises)return this.pagePromises[n];var i=this.messageHandler.sendWithPromise("GetPage",{pageIndex:n}).then(function(e){if(t.destroyed)throw new Error("Transport destroyed");var i=new E(n,e,t,t._params.pdfBug);return t.pageCache[n]=i,i});return this.pagePromises[n]=i,i}},{key:"getPageIndex",value:function(e){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:e}).catch(function(e){return Promise.reject(new Error(e))})}},{key:"getAnnotations",value:function(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(e){return"string"!=typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getJavaScript",value:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var e=this;return this.messageHandler.sendWithPromise("GetMetadata",null).then(function(t){return{info:t[0],metadata:t[1]?new m.Metadata(t[1]):null,contentDispositionFilename:e._fullReader?e._fullReader.filename:null}})}},{key:"getStats",value:function(){return this.messageHandler.sendWithPromise("GetStats",null)}},{key:"startCleanup",value:function(){var e=this;this.messageHandler.sendWithPromise("Cleanup",null).then(function(){for(var t=0,n=e.pageCache.length;t<n;t++){var i=e.pageCache[t];i&&i.cleanup()}e.commonObjs.clear(),e.fontLoader.clear()})}},{key:"loadingParams",get:function(){var e=this._params;return(0,c.shadow)(this,"loadingParams",{disableAutoFetch:e.disableAutoFetch,disableCreateObjectURL:e.disableCreateObjectURL,disableFontFace:e.disableFontFace,nativeImageDecoderSupport:e.nativeImageDecoderSupport})}}]),e}(),L=function(){function e(){this.objs=Object.create(null)}return e.prototype={ensureObj:function(e){if(this.objs[e])return this.objs[e];var t={capability:(0,c.createPromiseCapability)(),data:null,resolved:!1};return this.objs[e]=t,t},get:function(e,t){if(t)return this.ensureObj(e).capability.promise.then(t),null;var n=this.objs[e];if(!n||!n.resolved)throw new Error("Requesting object that isn't resolved yet "+e);return n.data},resolve:function(e,t){var n=this.ensureObj(e);n.resolved=!0,n.data=t,n.capability.resolve(t)},isResolved:function(e){var t=this.objs;return!!t[e]&&t[e].resolved},hasData:function(e){return this.isResolved(e)},getData:function(e){var t=this.objs;return t[e]&&t[e].resolved?t[e].data:null},clear:function(){this.objs=Object.create(null)}},e}(),D=function(){function e(e){this._internalRenderTask=e,this.onContinue=null}return e.prototype={get promise(){return this._internalRenderTask.capability.promise},cancel:function(){this._internalRenderTask.cancel()},then:function(e,t){return this.promise.then.apply(this.promise,arguments)}},e}(),j=function(){var e=new WeakMap;function t(e,t,n,i,r,s,o,a){var l=arguments.length>8&&void 0!==arguments[8]&&arguments[8];this.callback=e,this.params=t,this.objs=n,this.commonObjs=i,this.operatorListIdx=null,this.operatorList=r,this.pageNumber=s,this.canvasFactory=o,this.webGLContext=a,this._pdfBug=l,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this.useRequestAnimationFrame=!1,this.cancelled=!1,this.capability=(0,c.createPromiseCapability)(),this.task=new D(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=t.canvasContext.canvas}return t.prototype={initializeGraphics:function(t){if(!this.cancelled){if(this._canvas){
1if(e.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");e.set(this._canvas,this)}this._pdfBug&&p.default.StepperManager&&p.default.StepperManager.enabled&&(this.stepper=p.default.StepperManager.create(this.pageNumber-1),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var n=this.params;this.gfx=new h.CanvasGraphics(n.canvasContext,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,n.imageLayer),this.gfx.beginDrawing({transform:n.transform,viewport:n.viewport,transparency:t,background:n.background}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}},cancel:function(){this.running=!1,this.cancelled=!0,this._canvas&&e.delete(this._canvas),this.callback(new l.RenderingCancelledException("Rendering cancelled, page "+this.pageNumber,"canvas"))},operatorListChanged:function(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)},_continue:function(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())},_scheduleNext:function(){var e=this;this.useRequestAnimationFrame&&"undefined"!=typeof window?window.requestAnimationFrame(function(){e._nextBound().catch(e.callback)}):Promise.resolve().then(this._nextBound).catch(this.callback)},_next:function(){var t=this;return new Promise(function(){t.cancelled||(t.operatorListIdx=t.gfx.executeOperatorList(t.operatorList,t.operatorListIdx,t._continueBound,t.stepper),t.operatorListIdx===t.operatorList.argsArray.length&&(t.running=!1,t.operatorList.lastChunk&&(t.gfx.endDrawing(),t._canvas&&e.delete(t._canvas),t.callback())))})}},t}();t.version="2.0.943",t.build="dc98bf76",t.getDocument=function(e){var t,n=new O;if("string"==typeof e)t={url:e};else if((0,c.isArrayBuffer)(e))t={data:e};else if(e instanceof x)t={range:e};else{if("object"!==(void 0===e?"undefined":a(e)))throw new Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");t=e}var i=Object.create(null),r=null,s=null;for(var o in t)if("url"!==o||"undefined"==typeof window)if("range"!==o)if("worker"!==o)if("data"!==o||t[o]instanceof Uint8Array)i[o]=t[o];else{var u=t[o];if("string"==typeof u)i[o]=(0,c.stringToBytes)(u);else if("object"!==(void 0===u?"undefined":a(u))||null===u||isNaN(u.length)){if(!(0,c.isArrayBuffer)(u))throw new Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");i[o]=new Uint8Array(u)}else i[o]=new Uint8Array(u)}else s=t[o];else r=t[o];else i[o]=new c.URL(t[o],window.location).href;i.rangeChunkSize=i.rangeChunkSize||65536,i.CMapReaderFactory=i.CMapReaderFactory||l.DOMCMapReaderFactory,i.ignoreErrors=!0!==i.stopAtErrors,i.pdfBug=!0===i.pdfBug;var h=Object.values(c.NativeImageDecoding);if(void 0!==i.nativeImageDecoderSupport&&h.includes(i.nativeImageDecoderSupport)||(i.nativeImageDecoderSupport=d.apiCompatibilityParams.nativeImageDecoderSupport||c.NativeImageDecoding.DECODE),Number.isInteger(i.maxImageSize)||(i.maxImageSize=-1),"boolean"!=typeof i.isEvalSupported&&(i.isEvalSupported=!0),"boolean"!=typeof i.disableFontFace&&(i.disableFontFace=d.apiCompatibilityParams.disableFontFace||!1),"boolean"!=typeof i.disableRange&&(i.disableRange=!1),"boolean"!=typeof i.disableStream&&(i.disableStream=!1),"boolean"!=typeof i.disableAutoFetch&&(i.disableAutoFetch=!1),"boolean"!=typeof i.disableCreateObjectURL&&(i.disableCreateObjectURL=d.apiCompatibilityParams.disableCreateObjectURL||!1),(0,c.setVerbosityLevel)(i.verbosity),!s){var p={postMessageTransfers:i.postMessageTransfers,verbosity:i.verbosity},m=f.GlobalWorkerOptions.workerPort;m?(p.port=m,s=I.fromPort(p)):s=new I(p),n._worker=s}var y=n.docId;return s.promise.then(function(){if(n.destroyed)throw new Error("Loading aborted");return function(e,t,n,i){return e.destroyed?Promise.reject(new Error("Worker was destroyed")):(n&&(t.length=n.length,t.initialData=n.initialData),e.messageHandler.sendWithProm
1ise("GetDocRequest",{docId:i,apiVersion:"2.0.943",source:{data:t.data,url:t.url,password:t.password,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize,length:t.length},maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,disableCreateObjectURL:t.disableCreateObjectURL,postMessageTransfers:e.postMessageTransfers,docBaseUrl:t.docBaseUrl,nativeImageDecoderSupport:t.nativeImageDecoderSupport,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported}).then(function(t){if(e.destroyed)throw new Error("Worker was destroyed");return t}))}(s,i,r,y).then(function(e){if(n.destroyed)throw new Error("Loading aborted");var t=void 0;r?t=new b.PDFDataTransportStream({length:i.length,initialData:i.initialData,disableRange:i.disableRange,disableStream:i.disableStream},r):i.data||(t=S({url:i.url,length:i.length,httpHeaders:i.httpHeaders,withCredentials:i.withCredentials,rangeChunkSize:i.rangeChunkSize,disableRange:i.disableRange,disableStream:i.disableStream}));var o=new g.MessageHandler(y,e,s.port);o.postMessageTransfers=s.postMessageTransfers;var a=new R(o,n,t,i);n._transport=a,o.send("Ready",null)})}).catch(n._capability.reject),n},t.LoopbackPort=M,t.PDFDataRangeTransport=x,t.PDFWorker=I,t.PDFDocumentProxy=A,t.PDFPageProxy=E,t.setPDFNetworkStreamFactory=function(e){S=e},t.version="2.0.943",t.build="dc98bf76"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadScript=t.DummyStatTimer=t.StatTimer=t.DOMSVGFactory=t.DOMCMapReaderFactory=t.DOMCanvasFactory=t.DEFAULT_LINK_REL=t.LinkTarget=t.getFilenameFromUrl=t.addLinkAttributes=t.RenderingCancelledException=t.PageViewport=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(1);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o="http://www.w3.org/2000/svg",a=function(){function e(){s(this,e)}return i(e,[{key:"create",value:function(e,t){if(e<=0||t<=0)throw new Error("invalid canvas size");var n=document.createElement("canvas"),i=n.getContext("2d");return n.width=e,n.height=t,{canvas:n,context:i}}},{key:"reset",value:function(e,t,n){if(!e.canvas)throw new Error("canvas is not specified");if(t<=0||n<=0)throw new Error("invalid canvas size");e.canvas.width=t,e.canvas.height=n}},{key:"destroy",value:function(e){if(!e.canvas)throw new Error("canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}}]),e}(),c=function(){function e(t){var n=t.baseUrl,i=void 0===n?null:n,r=t.isCompressed,o=void 0!==r&&r;s(this,e),this.baseUrl=i,this.isCompressed=o}return i(e,[{key:"fetch",value:function(e){var t=this,n=e.name;return this.baseUrl?n?new Promise(function(e,i){var s=t.baseUrl+n+(t.isCompressed?".bcmap":""),o=new XMLHttpRequest;o.open("GET",s,!0),t.isCompressed&&(o.responseType="arraybuffer"),o.onreadystatechange=function(){if(o.readyState===XMLHttpRequest.DONE){if(200===o.status||0===o.status){var n=void 0;if(t.isCompressed&&o.response?n=new Uint8Array(o.response):!t.isCompressed&&o.responseText&&(n=(0,r.stringToBytes)(o.responseText)),n)return void e({cMapData:n,compressionType:t.isCompressed?r.CMapCompressionType.BINARY:r.CMapCompressionType.NONE})}i(new Error("Unable to load "+(t.isCompressed?"binary ":"")+"CMap at: "+s))}},o.send(null)}):Promise.reject(new Error("CMap name must be specified.")):Promise.reject(new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.'))}}]),e}(),l=function(){function e(){s(this,e)}return i(e,[{key:"create",value:function(e,t){(0,r.assert)(e>0&&t>0,"Invalid SVG dimensions");var n=document.createElementNS(o,"svg:svg");return n.setAttribute("version","1.1"),n.setAttribute("width",e+"px"),n.setAttribute("height",t+"px"),n.setAttribute("preserveAspectRatio","none"),n.setAttribute("viewBox","0 0 "+e+" "+t),n}},{key:"createElement",value:function(e){return(0,r.assert)("string"==typeof e,"Invalid SVG element type"),document.createElementNS(o,e)}}]),e}(),u=function(){function e(t){var n=t.viewBox,i=t.scale,r=t.rotation,o=t.offsetX,a=void 0===o?0:o,c=t.offsetY,l=void 0===c?0:c,u=t.dontFlip,d=void 0!==u&&u;s(this,e),this.viewBox=n,this.scale=i,this.rotation=r,this.offsetX=a,this.offsetY=l;var h=(n[2]+n[0])/2,p=(n[3]+n[1])/2,f=void 0,g=void 0,m=void 0,b=void 0;switch(r=(r%=360)<0?r+360:r){case 180:f=-1,g=0,m=0,b=1;break;case 90:f=0,g=1,m=1,b=0;break;case 270:f=0,g=-1,m=-1,b=0;break;default:f=1,g=0,m=0,b=-1}d&&(m=-m,b=-b);var y=void 0,v=void 0,_=void 0,w=void 0;0===f?(y=Math.abs(p-n[1])*i+a,v=Math.abs(h-n[0])*i+l,_=Math.abs(n[3]-n[1])*i,w=Math.abs(n[2]-n[0])*i):(y=Math.abs(h-n[0])*i+a,v=Math.abs(p-n[1])*i+l,_=Math.abs(n[2]-n[0])*i,w=Math.abs(n[3]-n[1])*i),this.transform=[f*i,g*i,m*i,b*i,y-f*i*h-m*i*p,v-g*i*h-b*i*p],this.width=_,this.height=w}return i(e,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.scale,i=void 0===n?this.scale:n,r=t.rotation,s=void 0===r?this.rotation:r,o=t.dontFlip,a=void 0!==o&&o;return new e({viewBox:this.viewBox.slice(),scale:i,rotation:s,offsetX:this.offsetX,offsetY:this.offsetY,dontFlip:a})}},{key:"convertToViewportPoint",value:function(e,t){return r.Util.applyTransform([e,t],this.transform)}},{key:"convertToViewportRectangle",value:function(e){var t=r.Util.applyTransform([e[0],e[1]],this.transform),n=r.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],n[0],n[1]]}},{key:"convertToPdfPoint",value:function(e,t){return r.Util.applyInverseTransform([e,t],this.transform)}}]),e}(),d=function(){function e(e,t){this.message=e,this.type=t}return(e.prototype=new Error).name="RenderingCancelledException",e.constructor=e,e}(),h={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4},p=["","_self","_blank","_parent","_top"],f=function(){function e(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];s(this,e),this.enabled=!!t,this.started=Object.create(null),this.times=[]}return i(e,[{key:"time",value:function(e){this.enabled&&(e in this.started&&(0,r.warn)("Timer is already running for "+e),this.started[e]=Date.now())}},{key:"timeEnd",value:function(e){this.enabled&&(e in this.started||(0,r.warn)("Timer has not been started for "+e),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e])}},{key:"toString",value:function(){for(var e=this.times,t="",n=0,i=0,r=e.length;i<r;++i){var s=e[i].name;s.length>n&&(n=s.length)}for(var o=0,a=e.length;o<a;++o){var c=e[o],l=c.end-c.start;t+=c.name.padEnd(n)+" "+l+"ms\n"}return t}}]),e}(),g=function(){function e(){s(this,e),(0,r.unreachable)("Cannot initialize DummyStatTimer.")}return i(e,null,[{key:"time",value:function(e){}},{key:"timeEnd",value:function(e){}},{key:"toString",value:function(){return""}}]),e}();t.PageViewport=u,t.RenderingCancelledException=d,t.addLinkAttributes=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.url,i=t.target,s=t.rel;if(e.href=e.title=n?(0,r.removeNullCharacters)(n):"",n){var o=Object.values(h),a=o.includes(i)?i:h.NONE;e.target=p[a],e.rel="string"==typeof s?s:"noopener noreferrer nofollow"}},t.getFilenameFromUrl=function(e){var t=e.indexOf("#"),n=e.indexOf("?"),i=Math.min(t>0?t:e.length,n>0?n:e.length);return e.substring(e.lastIndexOf("/",i)+1,i)},t.LinkTarget=h,t.DEFAULT_LINK_REL="noopener noreferrer nofollow",t.DOMCanvasFactory=a,t.DOMCMapReaderFactory=c,t.DOMSVGFactory=l,t.StatTimer=f,t.DummyStatTimer=g,t.loadScript=function(e){return new Promise(function(t,n){var i=document.createElement("script");i.src=e,i.onload=t,i.onerror=function(){n(new Error("Cannot load script at: "+i.src))},(document.head||document.documentElement).appendChild(i)})}},function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(1);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o,a=function(){function e(t){s(this,e),this.constructor===e&&(0,r.unreachable)("Cannot initialize BaseFontLoader."),this.docId=t,this.nativeFontFaces=[],this.styleElement=null,this.loadingContext={requests:[],nextRequestId:0}}return i(e,[{key:"addNativeFontFace",value:function(e){this.nativeFontFaces.push(e),document.fonts.add(e)}},{key:"insertRule",value:function(e){var t=this.styleElement;t||((t=this.styleElement=document.createElement("style")).id="PDFJS_FONT_STYLE_TAG_"+this.docId,document.documentElement.getElementsByTagName("head")[0].appendChild(t));var n=t.sheet;n.insertRule(e,n.cssRules.length)}},{key:"clear",value:function(){this.nativeFontFaces.forEach(function(e){document.fonts.delete(e)}),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"bind",value:function(e,t){var n=[],i=[],s=[],o=function(e){return e.loaded.catch(function(t){(0,r.warn)('Failed to load font "'+e.family+'": '+t)})},a=!0,c=!1,l=void 0;try{for(var u,d=e[Symbol.iterator]();!(a=(u=d.next()).done);a=!0){var h=u.value;if(!h.attached&&!h.missingFile)if(h.attached=!0,this.isFontLoadingAPISupported){var p=h.createNativeFontFace();p&&(this.addNativeFontFace(p),s.push(o(p)))}else{var f=h.createFontFaceRule();f&&(this.insertRule(f),n.push(f),i.push(h))}}}catch(m){c=!0,l=m}finally{try{!a&&d.return&&d.return()}finally{if(c)throw l}}var g=this._queueLoadingCallback(t);this.isFontLoadingAPISupported?Promise.all(s).then(g.complete):n.length>0&&!this.isSyncFontLoadingSupported?this._prepareFontLoadEvent(n,i,g):g.complete()}},{key:"_queueLoadingCallback",value:function(e){var t=this.loadingContext,n={id:"pdfjs-font-loading-"+t.nextRequestId++,done:!1,complete:function(){for((0,r.assert)(!n.done,"completeRequest() cannot be called twice."),n.done=!0;t.requests.length>0&&t.requests[0].done;){var e=t.requests.shift();setTimeout(e.callback,0)}},callback:e};return t.requests.push(n),n}},{key:"_prepareFontLoadEvent",value:function(e,t,n){(0,r.unreachable)("Abstract method `_prepareFontLoadEvent`.")}},{key:"isFontLoadingAPISupported",get:function(){(0,r.unreachable)("Abstract method `isFontLoadingAPISupported`.")}},{key:"isSyncFontLoadingSupported",get:function(){(0,r.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}},{key:"_loadTestFont",get:function(){(0,r.unreachable)("Abstract method `_loadTestFont`.")}}]),e}();t.FontLoader=o=function(e){function t(e){s(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.loadTestFontId=0,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"_prepareFontLoadEvent",value:function(e,t,n){function i(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function s(e,t,n,i){return e.substring(0,t)+i+e.substring(t+n)}var o=void 0,a=void 0,c=document.createElement("canvas");c.width=1,c.height=1;var l=c.getContext("2d"),u=0,d="lt"+Date.now()+this.loadTestFontId++,h=this._loadTestFont,p=i(h=s(h,976,d.length,d),16);for(o=0,a=d.length-3;o<a;o+=4)p=p-1482184792+i(d,o)|0;o<d.length&&(p=p-1482184792+i(d+"XXX",o)|0),h=s(h,16,4,(0,r.string32)(p));var f="url(data:font/opentype;base64,"+btoa(h)+");";this.insertRule('@font-face {font-family:"'+d+'";src:'+f+"}");var g=[];for(o=0,a=t.length;o<a;o++)g.push(t[o].loadedName);g.push(d);var m=document.createElement("div");for(m.setAttribute("style","visibility: hidden;width: 10px; height: 10px;position: absolute; top: 0px; left: 0px;"),o=0,a=g.length;o<a;++o){var b=document.createElement("span");b.textContent="Hi",b.style.fontFamily=g[o],m.appendChild(b)}document.body.appendChild(m),function e(t,n){if(++u>
130)return(0,r.warn)("Load test font never loaded."),void n();l.font="30px "+t,l.fillText(".",0,20),l.getImageData(0,0,1,1).data[3]>0?n():setTimeout(e.bind(null,t,n))}(d,function(){document.body.removeChild(m),n.complete()})}},{key:"isFontLoadingAPISupported",get:function(){var e="undefined"!=typeof document&&!!document.fonts;if(e&&"undefined"!=typeof navigator){var t=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);t&&t[1]<63&&(e=!1)}return(0,r.shadow)(this,"isFontLoadingAPISupported",e)}},{key:"isSyncFontLoadingSupported",get:function(){var e=!1;if("undefined"==typeof navigator)e=!0;else{var t=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);t&&t[1]>=14&&(e=!0)}return(0,r.shadow)(this,"isSyncFontLoadingSupported",e)}},{key:"_loadTestFont",get:function(){return(0,r.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}}]),t}(a);var c={get value(){return(0,r.shadow)(this,"value",(0,r.isEvalSupported)())}},l=function(){function e(t,n){var i=n.isEvalSupported,r=void 0===i||i,o=n.disableFontFace,a=void 0!==o&&o,c=n.ignoreErrors,l=void 0!==c&&c,u=n.onUnsupportedFeature,d=void 0===u?null:u,h=n.fontRegistry,p=void 0===h?null:h;for(var f in s(this,e),this.compiledGlyphs=Object.create(null),t)this[f]=t[f];this.isEvalSupported=!1!==r,this.disableFontFace=!0===a,this.ignoreErrors=!0===l,this._onUnsupportedFeature=d,this.fontRegistry=p}return i(e,[{key:"createNativeFontFace",value:function(){if(!this.data||this.disableFontFace)return null;var e=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),e}},{key:"createFontFaceRule",value:function(){if(!this.data||this.disableFontFace)return null;var e=(0,r.bytesToString)(new Uint8Array(this.data)),t="url(data:"+this.mimetype+";base64,"+btoa(e)+");",n='@font-face {font-family:"'+this.loadedName+'";src:'+t+"}";return this.fontRegistry&&this.fontRegistry.registerFont(this,t),n}},{key:"getPathGenerator",value:function(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];var n=void 0,i=void 0;try{n=e.get(this.loadedName+"_path_"+t)}catch(u){if(!this.ignoreErrors)throw u;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:r.UNSUPPORTED_FEATURES.font}),(0,r.warn)('getPathGenerator - ignoring character: "'+u+'".'),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&c.value){for(var s=void 0,o="",a=0,l=n.length;a<l;a++)s=void 0!==(i=n[a]).args?i.args.join(","):"",o+="c."+i.cmd+"("+s+");\n";return this.compiledGlyphs[t]=new Function("c","size",o)}return this.compiledGlyphs[t]=function(e,t){for(var r=0,s=n.length;r<s;r++)"scale"===(i=n[r]).cmd&&(i.args=[t,-t]),e[i.cmd].apply(e,i.args)}}}]),e}();t.FontFaceObject=l,t.FontLoader=o},function(e,t,n){"use strict";var i=Object.create(null),r=n(4),s="undefined"!=typeof navigator&&navigator.userAgent||"",o=/Trident/.test(s),a=/CriOS/.test(s);(o||a)&&(i.disableCreateObjectURL=!0),r()&&(i.disableFontFace=!0,i.nativeImageDecoderSupport="none"),t.apiCompatibilityParams=Object.freeze(i)},function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var i=n(1),r=n(134),s={get value(){return(0,i.shadow)(s,"value",(0,i.isLittleEndian)())}};function o(e){e.mozCurrentTransform||(e._originalSave=e.save,e._originalRestore=e.restore,e._originalRotate=e.rotate,e._originalScale=e.scale,e._originalTranslate=e.translate,e._originalTransform=e.transform,e._originalSetTransform=e.setTransform,e._transformMatrix=e._transformMatrix||[1,0,0,1,0,0],e._transformStack=[],Object.defineProperty(e,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(e,"mozCurrentTransformInverse",{get:function(){var e=this._transformMatrix,t=e[0],n=e[1],i=e[2],r=e[3],s=e[4],o=e[5],a=t*r-n*i,c=n*i-t*r;return[r/a,n/c,i/c,t/a,(r*s-i*o)/c,(n*s-t*o)/a]}}),e.save=function(){var e=this._transformMatrix;this._transformStack.push(e),this._transformMatrix=e.slice(0,6),this._originalSave()},e.restore=function(){var e=this._transformStack.pop();e&&(this._transformMatrix=e,this._originalRestore())},e.translate=function(e,t){var n=this._transformMatrix;n[4]=n[0]*e+n[2]*t+n[4],n[5]=n[1]*e+n[3]*t+n[5],this._originalTranslate(e,t)},e.scale=function(e,t){var n=this._transformMatrix;n[0]=n[0]*e,n[1]=n[1]*e,n[2]=n[2]*t,n[3]=n[3]*t,this._originalScale(e,t)},e.transform=function(t,n,i,r,s,o){var a=this._transformMatrix;this._transformMatrix=[a[0]*t+a[2]*n,a[1]*t+a[3]*n,a[0]*i+a[2]*r,a[1]*i+a[3]*r,a[0]*s+a[2]*o+a[4],a[1]*s+a[3]*o+a[5]],e._originalTransform(t,n,i,r,s,o)},e.setTransform=function(t,n,i,r,s,o){this._transformMatrix=[t,n,i,r,s,o],e._originalSetTransform(t,n,i,r,s,o)},e.rotate=function(e){var t=Math.cos(e),n=Math.sin(e),i=this._transformMatrix;this._transformMatrix=[i[0]*t+i[2]*n,i[1]*t+i[3]*n,i[0]*-n+i[2]*t,i[1]*-n+i[3]*t,i[4],i[5]],this._originalRotate(e)})}var a=function(){function e(e){this.canvasFactory=e,this.cache=Object.create(null)}return e.prototype={getCanvas:function(e,t,n,i){var r;return void 0!==this.cache[e]?(this.canvasFactory.reset(r=this.cache[e],t,n),r.context.setTransform(1,0,0,1,0,0)):(r=this.canvasFactory.create(t,n),this.cache[e]=r),i&&o(r.context),r},clear:function(){for(var e in this.cache)this.canvasFactory.destroy(this.cache[e]),delete this.cache[e]}},e}(),c=function(){function e(){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=i.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=i.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=i.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.resumeSMaskCtx=null}return e.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(e,t){this.x=e,this.y=t}},e}(),l=function(){function e(e,t,n,i,r,s){this.ctx=e,this.current=new c,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=n,this.canvasFactory=i,this.webGLContext=r,this.imageLayer=s,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.cachedCanvases=new a(this.canvasFactory),e&&o(e),this._cachedGetSinglePixelWidth=null}function t(e,t){if("undefined"!=typeof ImageData&&t instanceof ImageData)e.putImageData(t,0,0);else{var n,r,o,a,c,l=t.height,u=t.width,d=l%16,h=(l-d)/16,p=0===d?h:h+1,f=e.createImageData(u,16),g=0,m=t.data,b=f.data;if(t.kind===i.ImageKind.GRAYSCALE_1BPP){var y=m.byteLength,v=new Uint32Array(b.buffer,0,b.byteLength>>2),_=v.length,w=u+7>>3,k=4294967295,C=s.value?4278190080:255;for(r=0;r<p;r++){for(a=r<h?16:d,n=0,o=0;o<a;o++){for(var S=y-g,T=0,P=S>w?u:8*S-7,O=-8&P,x=0,A=0;T<O;T+=8)A=m[g++],v[n++]=128&A?k:C,v[n++]=64&A?k:C,v[n++]=32&A?k:C,v[n++]=16&A?k:C,v[n++]=8&A?k:C,v[n++]=4&A?k:C,v[n++]=2&A?k:C,v[n++]=1&A?k:C;for(;T<P;T++)0===x&&(A=m[g++],x=128),v[n++]=A&x?k:C,x>>=1}for(;n<_;)v[n++]=0;e.putImageData(f,0,16*r)}}else if(t.kind===i.ImageKind.RGBA_32BPP){for(o=0,c=16*u*4,r=0;r<h;r++)b.set(m.subarray(g,g+c)),g+=c,e.putImageData(f,0,o),o+=16;r<p&&(b.set(m.subarray(g,g+(c=u*d*4))),e.putImageData(f,0,o))}else{if(t.kind!==i.ImageKind.RGB_24BPP)throw new Error("bad image kind: "+t.kind);for(c=u*(a=16),r=0;r<p;r++){for(r>=h&&(c=u*(a=d)),n=0,o=c;o--;)b[n++]=m[g++],b[n++]=m[g++],b[n++]=m[g++],b[n++]=255;e.putImageData(f,0,16*r)}}}}function n(e,t){for(var n=t.height,i=t.width,r=n%16,s=(n-r)/16,o=0===r?s:s+1,a=e.createImageData(i,16),c=0,l=t.data,u=a.data,d=0;d<o;d++){for(var h=d<s?16:r,p=3,f=0;f<h;f++)for(var g=0,m=0;m<i;m++){if(!g){var b=l[c++];g=128}u[p]=b&g?0:255,p+=4,g>>=1}e.putImageData(a,0,16*d)}}function l(e,t){for(var n=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],i=0,r=n.length;i<r;i++){var s=n[i];void 0!==e[s]&&(t[s]=e[s])}void 0!==e.setLineDash&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function u(e){e.strokeStyle="#000000",e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",void 0!==e.setLineDash&&(e.setLineDash([]),e.lineDashOffset=0)}function d(e,t,n,i){for(var r=e.length,s=3;s<r;s+=4){var o=e[s];if(0===o)e[s-3]=t,e[s-2]=n,e[s-1]=i;else if(o<255){var a=255-o;e[s-3]=e[s-3]*o+t*a>>8,e[s-2]=e[s-2]*o+n*a>>8,e[s-1]=e[s-1]*o+i*a>>8}}}function h(e,t,n){for(var i=e.length,r=3;r<i;r+=4)t[r]=t[r]*(n?n[e[r]]:e[r])*.00392156862745098|0}function p(e,t,n){for(var i=e.length,r=3;r<i;r+=4){var s=77*e[r-3]+152*e[r-2]+28*e[r-1];t[r]=n?t[r]*n[s>>8]>>8:t[r]*s>>16}}function f(e,t,n,i){var r=t.canvas,s=t.context;e.setTransform(t.scaleX,0,0,t.scaleY,t.offsetX,t.offsetY);var o=t.backdrop||null;if(!t.transferMap&&i.isEnabled){var a=i.composeSMask({layer:n.canvas,mask:r,properties:{subtype:t.subtype,backdrop:o}});return e.setTransform(1,0,0,1,0,0),void e.drawImage(a,t.offsetX,t.offsetY)}!function(e,t,n,i,r,s,o){var a,c=!!s,l=c?s[0]:0,u=c?s[1]:0,f=c?s[2]:0;a="Luminosity"===r?p:h;for(var g=Math.min(i,Math.ceil(1048576/n)),m=0;m<i;m+=g){var b=Math.min(g,i-m),y=e.getImageData(0,m,n,b),v=t.getImageData(0,m,n,b);c&&d(y.data,l,u,f),a(y.data,v.data,o),e.putImageData(v,0,m)}}(s,n,r.width,r.height,t.subtype,o,t.transferMap),e.drawImage(r,0,0)}var g=["butt","round","square"],m=["miter","round","bevel"],b={},y={};for(var v in e.prototype={beginDrawing:function(e){var t=e.transform,n=e.viewport,i=e.transparency,r=e.background,s=void 0===r?null:r,o=this.ctx.canvas.width,a=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=s||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,o,a),this.ctx.restore(
1),i){var c=this.cachedCanvases.getCanvas("transparent",o,a,!0);this.compositeCtx=this.ctx,this.transparentCanvas=c.canvas,this.ctx=c.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),u(this.ctx),t&&this.ctx.transform.apply(this.ctx,t),this.ctx.transform.apply(this.ctx,n.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(e,t,n,r){var s=e.argsArray,o=e.fnArray,a=t||0,c=s.length;if(c===a)return a;for(var l,u=c-a>10&&"function"==typeof n,d=u?Date.now()+15:0,h=0,p=this.commonObjs,f=this.objs;;){if(void 0!==r&&a===r.nextBreakPoint)return r.breakIt(a,n),a;if((l=o[a])!==i.OPS.dependency)this[l].apply(this,s[a]);else for(var g=s[a],m=0,b=g.length;m<b;m++){var y=g[m],v="g"===y[0]&&"_"===y[1]?p:f;if(!v.isResolved(y))return v.get(y,n),a}if(++a===c)return a;if(u&&++h>10){if(Date.now()>d)return n(),a;h=0}}},endDrawing:function(){null!==this.current.activeSMask&&this.endSMaskGroup(),this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.webGLContext.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(e){this.current.lineWidth=e,this.ctx.lineWidth=e},setLineCap:function(e){this.ctx.lineCap=g[e]},setLineJoin:function(e){this.ctx.lineJoin=m[e]},setMiterLimit:function(e){this.ctx.miterLimit=e},setDash:function(e,t){var n=this.ctx;void 0!==n.setLineDash&&(n.setLineDash(e),n.lineDashOffset=t)},setRenderingIntent:function(e){},setFlatness:function(e){},setGState:function(e){for(var t=0,n=e.length;t<n;t++){var i=e[t],r=i[1];switch(i[0]){case"LW":this.setLineWidth(r);break;case"LC":this.setLineCap(r);break;case"LJ":this.setLineJoin(r);break;case"ML":this.setMiterLimit(r);break;case"D":this.setDash(r[0],r[1]);break;case"RI":this.setRenderingIntent(r);break;case"FL":this.setFlatness(r);break;case"Font":this.setFont(r[0],r[1]);break;case"CA":this.current.strokeAlpha=i[1];break;case"ca":this.current.fillAlpha=i[1],this.ctx.globalAlpha=i[1];break;case"BM":this.ctx.globalCompositeOperation=r;break;case"SMask":this.current.activeSMask&&(this.stateStack.length>0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=r?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null}}},beginSMaskGroup:function(){var e=this.current.activeSMask,t=this.cachedCanvases.getCanvas("smaskGroupAt"+this.groupLevel,e.canvas.width,e.canvas.height,!0),n=this.ctx,i=n.mozCurrentTransform;this.ctx.save();var r=t.context;r.scale(1/e.scaleX,1/e.scaleY),r.translate(-e.offsetX,-e.offsetY),r.transform.apply(r,i),e.startTransformInverse=r.mozCurrentTransformInverse,l(n,r),this.ctx=r,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(n),this.groupLevel++},suspendSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),f(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),this.ctx.save(),l(e,this.ctx),this.current.resumeSMaskCtx=e;var t=i.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t),e.save(),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.restore()},resumeSMaskGroup:function(){var e=this.ctx;this.ctx=this.current.resumeSMaskCtx,this.groupStack.push(e),this.groupLevel++},endSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),f(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),l(e,this.ctx);var t=i.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t)},save:function(){this.ctx.save();var e=this.current;this.stateStack.push(e),this.current=e.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),null===this.current.activeSMask||0!==this.stateStack.length&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask||this.endSMaskGroup(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.ctx.restore(
1),this.pendingClip=null,this._cachedGetSinglePixelWidth=null)},transform:function(e,t,n,i,r,s){this.ctx.transform(e,t,n,i,r,s),this._cachedGetSinglePixelWidth=null},constructPath:function(e,t){for(var n=this.ctx,r=this.current,s=r.x,o=r.y,a=0,c=0,l=e.length;a<l;a++)switch(0|e[a]){case i.OPS.rectangle:s=t[c++],o=t[c++];var u=t[c++],d=t[c++];0===u&&(u=this.getSinglePixelWidth()),0===d&&(d=this.getSinglePixelWidth());var h=s+u,p=o+d;this.ctx.moveTo(s,o),this.ctx.lineTo(h,o),this.ctx.lineTo(h,p),this.ctx.lineTo(s,p),this.ctx.lineTo(s,o),this.ctx.closePath();break;case i.OPS.moveTo:s=t[c++],o=t[c++],n.moveTo(s,o);break;case i.OPS.lineTo:s=t[c++],o=t[c++],n.lineTo(s,o);break;case i.OPS.curveTo:n.bezierCurveTo(t[c],t[c+1],t[c+2],t[c+3],s=t[c+4],o=t[c+5]),c+=6;break;case i.OPS.curveTo2:n.bezierCurveTo(s,o,t[c],t[c+1],t[c+2],t[c+3]),s=t[c+2],o=t[c+3],c+=4;break;case i.OPS.curveTo3:n.bezierCurveTo(t[c],t[c+1],s=t[c+2],o=t[c+3],s,o),c+=4;break;case i.OPS.closePath:n.closePath()}r.setCurrentPoint(s,o)},closePath:function(){this.ctx.closePath()},stroke:function(e){e=void 0===e||e;var t=this.ctx,n=this.current.strokeColor;t.lineWidth=Math.max(.65*this.getSinglePixelWidth(),this.current.lineWidth),t.globalAlpha=this.current.strokeAlpha,n&&n.hasOwnProperty("type")&&"Pattern"===n.type?(t.save(),t.strokeStyle=n.getPattern(t,this),t.stroke(),t.restore()):t.stroke(),e&&this.consumePath(),t.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath(),this.stroke()},fill:function(e){e=void 0===e||e;var t=this.ctx,n=this.current.fillColor,i=!1;this.current.patternFill&&(t.save(),this.baseTransform&&t.setTransform.apply(t,this.baseTransform),t.fillStyle=n.getPattern(t,this),i=!0),this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill(),i&&t.restore(),e&&this.consumePath()},eoFill:function(){this.pendingEOFill=!0,this.fill()},fillStroke:function(){this.fill(!1),this.stroke(!1),this.consumePath()},eoFillStroke:function(){this.pendingEOFill=!0,this.fillStroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},closeEOFillStroke:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()},endPath:function(){this.consumePath()},clip:function(){this.pendingClip=b},eoClip:function(){this.pendingClip=y},beginText:function(){this.current.textMatrix=i.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},endText:function(){var e=this.pendingTextPaths,t=this.ctx;if(void 0!==e){t.save(),t.beginPath();for(var n=0;n<e.length;n++){var i=e[n];t.setTransform.apply(t,i.transform),t.translate(i.x,i.y),i.addToPath(t,i.fontSize)}t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths}else t.beginPath()},setCharSpacing:function(e){this.current.charSpacing=e},setWordSpacing:function(e){this.current.wordSpacing=e},setHScale:function(e){this.current.textHScale=e/100},setLeading:function(e){this.current.leading=-e},setFont:function(e,t){var n=this.commonObjs.get(e),r=this.current;if(!n)throw new Error("Can't find font for "+e);if(r.fontMatrix=n.fontMatrix?n.fontMatrix:i.FONT_IDENTITY_MATRIX,0!==r.fontMatrix[0]&&0!==r.fontMatrix[3]||(0,i.warn)("Invalid font matrix for font "+e),t<0?(t=-t,r.fontDirection=-1):r.fontDirection=1,this.current.font=n,this.current.fontSize=t,!n.isType3Font){var s=n.black?"900":n.bold?"bold":"normal",o=n.italic?"italic":"normal",a='"'+(n.loadedName||"sans-serif")+'", '+n.fallbackName,c=t<16?16:t>100?100:t;this.current.fontSizeScale=t/c,this.ctx.font=o+" "+s+" "+c+"px "+a}},setTextRenderingMode:function(e){this.current.textRenderingMode=e},setTextRise:function(e){this.current.textRise=e},moveText:function(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t},setLeadingMoveText:function(e,t){this.setLeading(-t),this.moveText(e,t)},setTextMatrix:function(e,t,n,i,r,s){this.current.textMatrix=[e,t,n,i,r,s],this.current.textMatrixScale=Math.sqrt(e*e+t*t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar:function(e,t,n,r){var s,o=this.ctx,a=this.current,c=a.font,l=a.textRenderingMode,u=a.fontSize/a.fontSizeScale,d=l&i.TextRenderingMode.FILL_STROKE_MASK,h=!!(l&i.TextRenderingMode.ADD_TO_PATH_FLAG),p=a.patternFill&&c.data;(c.disableFontFace||h||p)&&(s=c.getPathGenerator(this.commonObjs,e)),c.disableFontFace||p?(o.save(),o.translate(t,n),o.beginPath(),s(o,u),r&&o.setTransform.apply(o,r),d!==i.TextRenderingMode.FILL&&d!==i.TextRenderingMode.FILL_STROKE||o.fill(),d!==i.TextRenderingMode.STROKE&&d!==i.TextRenderingMode.FILL_STROKE||o.stroke(),o.restore(
1)):(d!==i.TextRenderingMode.FILL&&d!==i.TextRenderingMode.FILL_STROKE||o.fillText(e,t,n),d!==i.TextRenderingMode.STROKE&&d!==i.TextRenderingMode.FILL_STROKE||o.strokeText(e,t,n)),h&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:o.mozCurrentTransform,x:t,y:n,fontSize:u,addToPath:s})},get isFontSubpixelAAEnabled(){var e=this.canvasFactory.create(10,10).context;e.scale(1.5,1),e.fillText("I",0,10);for(var t=e.getImageData(0,0,10,10).data,n=!1,r=3;r<t.length;r+=4)if(t[r]>0&&t[r]<255){n=!0;break}return(0,i.shadow)(this,"isFontSubpixelAAEnabled",n)},showText:function(e){var t=this.current,n=t.font;if(n.isType3Font)return this.showType3Text(e);var r=t.fontSize;if(0!==r){var s=this.ctx,o=t.fontSizeScale,a=t.charSpacing,c=t.wordSpacing,l=t.fontDirection,u=t.textHScale*l,d=e.length,h=n.vertical,p=h?1:-1,f=n.defaultVMetrics,g=r*t.fontMatrix[0],m=t.textRenderingMode===i.TextRenderingMode.FILL&&!n.disableFontFace&&!t.patternFill;s.save();var b=void 0;if(t.patternFill){s.save();var y=t.fillColor.getPattern(s,this);b=s.mozCurrentTransform,s.restore(),s.fillStyle=y}s.transform.apply(s,t.textMatrix),s.translate(t.x,t.y+t.textRise),s.scale(u,l>0?-1:1);var v=t.lineWidth,_=t.textMatrixScale;if(0===_||0===v){var w=t.textRenderingMode&i.TextRenderingMode.FILL_STROKE_MASK;w!==i.TextRenderingMode.STROKE&&w!==i.TextRenderingMode.FILL_STROKE||(this._cachedGetSinglePixelWidth=null,v=.65*this.getSinglePixelWidth())}else v/=_;1!==o&&(s.scale(o,o),v/=o),s.lineWidth=v;var k,C=0;for(k=0;k<d;++k){var S=e[k];if((0,i.isNum)(S))C+=p*S*r/1e3;else{var T,P,O,x,A=!1,E=(S.isSpace?c:0)+a,M=S.fontChar,I=S.accent,R=S.width;if(h?(O=S.vmetric||f,x=S.vmetric?O[1]:.5*R,R=O?-O[0]:R,T=(x=-x*g)/o,P=(C+O[2]*g)/o):(T=C/o,P=0),n.remeasure&&R>0){var L=1e3*s.measureText(M).width/r*o;if(R<L&&this.isFontSubpixelAAEnabled){var D=R/L;A=!0,s.save(),s.scale(D,1),T/=D}else R!==L&&(T+=(R-L)/2e3*r/o)}(S.isInFont||n.missingFile)&&(m&&!I?s.fillText(M,T,P):(this.paintChar(M,T,P,b),I&&this.paintChar(I.fontChar,T+I.offset.x/o,P-I.offset.y/o,b))),C+=R*g+E*l,A&&s.restore()}}h?t.y-=C*u:t.x+=C*u,s.restore()}},showType3Text:function(e){var t,n,r,s,o=this.ctx,a=this.current,c=a.font,l=a.fontSize,u=a.fontDirection,d=c.vertical?1:-1,h=a.charSpacing,p=a.wordSpacing,f=a.textHScale*u,g=a.fontMatrix||i.FONT_IDENTITY_MATRIX,m=e.length;if(a.textRenderingMode!==i.TextRenderingMode.INVISIBLE&&0!==l){for(this._cachedGetSinglePixelWidth=null,o.save(),o.transform.apply(o,a.textMatrix),o.translate(a.x,a.y),o.scale(f,u),t=0;t<m;++t)if((0,i.isNum)(n=e[t]))this.ctx.translate(s=d*n*l/1e3,0),a.x+=s*f;else{var b=(n.isSpace?p:0)+h,y=c.charProcOperatorList[n.operatorListId];if(y){this.processingType3=n,this.save(),o.scale(l,l),o.transform.apply(o,g),this.executeOperatorList(y),this.restore();var v=i.Util.applyTransform([n.width,0],g);o.translate(r=v[0]*l+b,0),a.x+=r*f}else(0,i.warn)('Type3 character "'+n.operatorListId+'" is not available.')}o.restore(),this.processingType3=null}},setCharWidth:function(e,t){},setCharWidthAndBounds:function(e,t,n,i,r,s){this.ctx.rect(n,i,r-n,s-i),this.clip(),this.endPath()},getColorN_Pattern:function(t){var n,i=this;if("TilingPattern"===t[0]){var s=t[1],o=this.baseTransform||this.ctx.mozCurrentTransform.slice();n=new r.TilingPattern(t,s,this.ctx,{createCanvasGraphics:function(t){return new e(t,i.commonObjs,i.objs,i.canvasFactory,i.webGLContext)}},o)}else n=(0,r.getShadingPatternFromIR)(t);return n},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0},setStrokeRGBColor:function(e,t,n){var r=i.Util.makeCssRgb(e,t,n);this.ctx.strokeStyle=r,this.current.strokeColor=r},setFillRGBColor:function(e,t,n){var r=i.Util.makeCssRgb(e,t,n);this.ctx.fillStyle=r,this.current.fillColor=r,this.current.patternFill=!1},shadingFill:function(e){var t=this.ctx;this.save();var n=(0,r.getShadingPatternFromIR)(e);t.fillStyle=n.getPattern(t,this,!0);var s=t.mozCurrentTransformInverse;if(s){var o=t.canvas,a=o.width,c=o.height,l=i.Util.applyTransform([0,0],s),u=i.Util.applyTransform([0,c],s),d=i.Util.applyTransform([a,0],s),h=i.Util.applyTransform([a,c],s),p=Math.min(l[0],u[0],d[0],h[0]),f=Math.min(l[1],u[1],d[1],h[1]),g=Math.max(l[0],u[0],d[0],h[0]),m=Math.max(l[1],u[1],d[1],h[1]);this.ctx.fillRect(p,f,g-p,m-f)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);
1this.restore()},beginInlineImage:function(){(0,i.unreachable)("Should not call beginInlineImage")},beginImageData:function(){(0,i.unreachable)("Should not call beginImageData")},paintFormXObjectBegin:function(e,t){this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform.apply(this,e),this.baseTransform=this.ctx.mozCurrentTransform,Array.isArray(t)&&4===t.length&&(this.ctx.rect(t[0],t[1],t[2]-t[0],t[3]-t[1]),this.clip(),this.endPath())},paintFormXObjectEnd:function(){this.restore(),this.baseTransform=this.baseTransformStack.pop()},beginGroup:function(e){this.save();var t=this.ctx;e.isolated||(0,i.info)("TODO: Support non-isolated groups."),e.knockout&&(0,i.warn)("Knockout groups not supported.");var n=t.mozCurrentTransform;if(e.matrix&&t.transform.apply(t,e.matrix),!e.bbox)throw new Error("Bounding box is required.");var r=i.Util.getAxialAlignedBoundingBox(e.bbox,t.mozCurrentTransform);r=i.Util.intersect(r,[0,0,t.canvas.width,t.canvas.height])||[0,0,0,0];var s=Math.floor(r[0]),o=Math.floor(r[1]),a=Math.max(Math.ceil(r[2])-s,1),c=Math.max(Math.ceil(r[3])-o,1),u=1,d=1;a>4096&&(u=a/4096,a=4096),c>4096&&(d=c/4096,c=4096);var h="groupAt"+this.groupLevel;e.smask&&(h+="_smask_"+this.smaskCounter++%2);var p=this.cachedCanvases.getCanvas(h,a,c,!0),f=p.context;f.scale(1/u,1/d),f.translate(-s,-o),f.transform.apply(f,n),e.smask?this.smaskStack.push({canvas:p.canvas,context:f,offsetX:s,offsetY:o,scaleX:u,scaleY:d,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(s,o),t.scale(u,d)),l(t,f),this.ctx=f,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++,this.current.activeSMask=null},endGroup:function(e){this.groupLevel--;var t=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,e.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(t.canvas,0,0),this.restore()},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(e,t,n){this.save(),u(this.ctx),this.current=new c,Array.isArray(e)&&4===e.length&&(this.ctx.rect(e[0],e[1],e[2]-e[0],e[3]-e[1]),this.clip(),this.endPath()),this.transform.apply(this,t),this.transform.apply(this,n)},endAnnotation:function(){this.restore()},paintJpegXObject:function(e,t,n){var r=this.objs.get(e);if(r){this.save();var s=this.ctx;if(s.scale(1/t,-1/n),s.drawImage(r,0,0,r.width,r.height,0,-n,t,n),this.imageLayer){var o=s.mozCurrentTransformInverse,a=this.getCanvasPosition(0,0);this.imageLayer.appendImage({objId:e,left:a[0],top:a[1],width:t/o[0],height:n/o[3]})}this.restore()}else(0,i.warn)("Dependent image isn't ready yet")},paintImageMaskXObject:function(e){var t=this.ctx,i=e.width,r=e.height,s=this.current.fillColor,o=this.current.patternFill,a=this.processingType3;if(a&&void 0===a.compiled&&(a.compiled=i<=1e3&&r<=1e3?function(e){var t,n,i,r,s=e.width,o=e.height,a=s+1,c=new Uint8Array(a*(o+1)),l=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),u=s+7&-8,d=e.data,h=new Uint8Array(u*o),p=0;for(t=0,r=d.length;t<r;t++)for(var f=128,g=d[t];f>0;)h[p++]=g&f?0:255,f>>=1;var m=0;for(0!==h[p=0]&&(c[0]=1,++m),n=1;n<s;n++)h[p]!==h[p+1]&&(c[n]=h[p]?2:1,++m),p++;for(0!==h[p]&&(c[n]=2,++m),t=1;t<o;t++){i=t*a,h[(p=t*u)-u]!==h[p]&&(c[i]=h[p]?1:8,++m);var b=(h[p]?4:0)+(h[p-u]?8:0);for(n=1;n<s;n++)l[b=(b>>2)+(h[p+1]?4:0)+(h[p-u+1]?8:0)]&&(c[i+n]=l[b],++m),p++;if(h[p-u]!==h[p]&&(c[i+n]=h[p]?2:4,++m),m>1e3)return null}for(i=t*a,0!==h[p=u*(o-1)]&&(c[i]=8,++m),n=1;n<s;n++)h[p]!==h[p+1]&&(c[i+n]=h[p]?4:8,++m),p++;if(0!==h[p]&&(c[i+n]=4,++m),m>1e3)return null;var y=new Int32Array([0,a,-1,0,-a,0,0,0,1]),v=[];for(t=0;m&&t<=o;t++){for(var _=t*a,w=_+s;_<w&&!c[_];)_++;if(_!==w){var k,C=[_%a,t],S=c[_],T=_;do{var P=y[S];do{_+=P}while(!c[_]);5!==(k=c[_])&&10!==k?(S=k,c[_]=0):c[_]&=(S=k&51*S>>4)>>2|S<<2,C.push(_%a),C.push(_/a|0),--m}while(T!==_);v.push(C),--t}}return function(e){e.save(),e.scale(1/s,-1/o),e.translate(0,-o),e.beginPath();for(var t=0,n=v.length;t<n;t++){var i=v[t];e.moveTo(i[0],i[1]);for(var r=2,a=i.length;r<a;r+=2)e.lineTo(i[r],i[r+1])}
1e.fill(),e.beginPath(),e.restore()}}({data:e.data,width:i,height:r}):null),a&&a.compiled)a.compiled(t);else{var c=this.cachedCanvases.getCanvas("maskCanvas",i,r),l=c.context;l.save(),n(l,e),l.globalCompositeOperation="source-in",l.fillStyle=o?s.getPattern(l,this):s,l.fillRect(0,0,i,r),l.restore(),this.paintInlineImageXObject(c.canvas)}},paintImageMaskXObjectRepeat:function(e,t,i,r){var s=e.width,o=e.height,a=this.current.fillColor,c=this.current.patternFill,l=this.cachedCanvases.getCanvas("maskCanvas",s,o),u=l.context;u.save(),n(u,e),u.globalCompositeOperation="source-in",u.fillStyle=c?a.getPattern(u,this):a,u.fillRect(0,0,s,o),u.restore();for(var d=this.ctx,h=0,p=r.length;h<p;h+=2)d.save(),d.transform(t,0,0,i,r[h],r[h+1]),d.scale(1,-1),d.drawImage(l.canvas,0,0,s,o,0,-1,1,1),d.restore()},paintImageMaskXObjectGroup:function(e){for(var t=this.ctx,i=this.current.fillColor,r=this.current.patternFill,s=0,o=e.length;s<o;s++){var a=e[s],c=a.width,l=a.height,u=this.cachedCanvases.getCanvas("maskCanvas",c,l),d=u.context;d.save(),n(d,a),d.globalCompositeOperation="source-in",d.fillStyle=r?i.getPattern(d,this):i,d.fillRect(0,0,c,l),d.restore(),t.save(),t.transform.apply(t,a.transform),t.scale(1,-1),t.drawImage(u.canvas,0,0,c,l,0,-1,1,1),t.restore()}},paintImageXObject:function(e){var t=this.objs.get(e);t?this.paintInlineImageXObject(t):(0,i.warn)("Dependent image isn't ready yet")},paintImageXObjectRepeat:function(e,t,n,r){var s=this.objs.get(e);if(s){for(var o=s.width,a=s.height,c=[],l=0,u=r.length;l<u;l+=2)c.push({transform:[t,0,0,n,r[l],r[l+1]],x:0,y:0,w:o,h:a});this.paintInlineImageXObjectGroup(s,c)}else(0,i.warn)("Dependent image isn't ready yet")},paintInlineImageXObject:function(e){var n=e.width,i=e.height,r=this.ctx;this.save(),r.scale(1/n,-1/i);var s,o,a=r.mozCurrentTransformInverse,c=a[0],l=a[1],u=Math.max(Math.sqrt(c*c+l*l),1),d=a[2],h=a[3],p=Math.max(Math.sqrt(d*d+h*h),1);if("function"==typeof HTMLElement&&e instanceof HTMLElement||!e.data)s=e;else{var f=(o=this.cachedCanvases.getCanvas("inlineImage",n,i)).context;t(f,e),s=o.canvas}for(var g=n,m=i,b="prescale1";u>2&&g>1||p>2&&m>1;){var y=g,v=m;u>2&&g>1&&(u/=g/(y=Math.ceil(g/2))),p>2&&m>1&&(p/=m/(v=Math.ceil(m/2))),(f=(o=this.cachedCanvases.getCanvas(b,y,v)).context).clearRect(0,0,y,v),f.drawImage(s,0,0,g,m,0,0,y,v),s=o.canvas,g=y,m=v,b="prescale1"===b?"prescale2":"prescale1"}if(r.drawImage(s,0,0,g,m,0,-i,n,i),this.imageLayer){var _=this.getCanvasPosition(0,-i);this.imageLayer.appendImage({imgData:e,left:_[0],top:_[1],width:n/a[0],height:i/a[3]})}this.restore()},paintInlineImageXObjectGroup:function(e,n){var i=this.ctx,r=e.width,s=e.height,o=this.cachedCanvases.getCanvas("inlineImage",r,s);t(o.context,e);for(var a=0,c=n.length;a<c;a++){var l=n[a];if(i.save(),i.transform.apply(i,l.transform),i.scale(1,-1),i.drawImage(o.canvas,l.x,l.y,l.w,l.h,0,-1,1,1),this.imageLayer){var u=this.getCanvasPosition(l.x,l.y);this.imageLayer.appendImage({imgData:e,left:u[0],top:u[1],width:r,height:s})}i.restore()}},paintSolidColorImageMask:function(){this.ctx.fillRect(0,0,1,1)},paintXObject:function(){(0,i.warn)("Unsupported 'paintXObject' command.")},markPoint:function(e){},markPointProps:function(e,t){},beginMarkedContent:function(e){},beginMarkedContentProps:function(e,t){},endMarkedContent:function(){},beginCompat:function(){},endCompat:function(){},consumePath:function(){var e=this.ctx;this.pendingClip&&(this.pendingClip===y?e.clip("evenodd"):e.clip(),this.pendingClip=null),e.beginPath()},getSinglePixelWidth:function(e){if(null===this._cachedGetSinglePixelWidth){var t=this.ctx.mozCurrentTransformInverse;this._cachedGetSinglePixelWidth=Math.sqrt(Math.max(t[0]*t[0]+t[1]*t[1],t[2]*t[2]+t[3]*t[3]))}return this._cachedGetSinglePixelWidth},getCanvasPosition:function(e,t){var n=this.ctx.mozCurrentTransform;return[n[0]*e+n[2]*t+n[4],n[1]*e+n[3]*t+n[5]]}},i.OPS)e.prototype[i.OPS[v]]=e.prototype[v];return e}();t.CanvasGraphics=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TilingPattern=t.getShadingPatternFromIR=void 0;var i=n(1),r={RadialAxial:{fromIR:function(e){var t=e[1],n=e[2],i=e[3],r=e[4],s=e[5],o=e[6];return{type:"Pattern",getPattern:function(e){var a;"axial"===t?a=e.createLinearGradient(i[0],i[1],r[0],r[1]):"radial"===t&&(a=e.createRadialGradient(i[0],i[1],s,r[0],r[1],o));for(var c=0,l=n.length;c<l;++c){var u=n[c];a.addColorStop(u[0],u[1])}return a}}}}},s=function(){function e(e,t,n,i,r,s,o,a){var c,l=t.coords,u=t.colors,d=e.data,h=4*e.width;l[n+1]>l[i+1]&&(c=n,n=i,i=c,c=s,s=o,o=c),l[i+1]>l[r+1]&&(c=i,i=r,r=c,c=o,o=a,a=c),l[n+1]>l[i+1]&&(c=n,n=i,i=c,c=s,s=o,o=c);var p=(l[n]+t.offsetX)*t.scaleX,f=(l[n+1]+t.offsetY)*t.scaleY,g=(l[i]+t.offsetX)*t.scaleX,m=(l[i+1]+t.offsetY)*t.scaleY,b=(l[r]+t.offsetX)*t.scaleX,y=(l[r+1]+t.offsetY)*t.scaleY;if(!(f>=y))for(var v,_,w,k,C,S,T,P,O,x=u[s],A=u[s+1],E=u[s+2],M=u[o],I=u[o+1],R=u[o+2],L=u[a],D=u[a+1],j=u[a+2],N=Math.round(f),V=Math.round(y),z=N;z<=V;z++){z<m?(v=p-(p-g)*(O=z<f?0:f===m?1:(f-z)/(f-m)),_=x-(x-M)*O,w=A-(A-I)*O,k=E-(E-R)*O):(v=g-(g-b)*(O=z>y?1:m===y?0:(m-z)/(m-y)),_=M-(M-L)*O,w=I-(I-D)*O,k=R-(R-j)*O),C=p-(p-b)*(O=z<f?0:z>y?1:(f-z)/(f-y)),S=x-(x-L)*O,T=A-(A-D)*O,P=E-(E-j)*O;
1for(var F=Math.round(Math.min(v,C)),B=Math.round(Math.max(v,C)),q=h*z+4*F,U=F;U<=B;U++)d[q++]=_-(_-S)*(O=(O=(v-U)/(v-C))<0?0:O>1?1:O)|0,d[q++]=w-(w-T)*O|0,d[q++]=k-(k-P)*O|0,d[q++]=255}}function t(t,n,i){var r,s,o=n.coords,a=n.colors;switch(n.type){case"lattice":var c=n.verticesPerRow,l=Math.floor(o.length/c)-1,u=c-1;for(r=0;r<l;r++)for(var d=r*c,h=0;h<u;h++,d++)e(t,i,o[d],o[d+1],o[d+c],a[d],a[d+1],a[d+c]),e(t,i,o[d+c+1],o[d+1],o[d+c],a[d+c+1],a[d+1],a[d+c]);break;case"triangles":for(r=0,s=o.length;r<s;r+=3)e(t,i,o[r],o[r+1],o[r+2],a[r],a[r+1],a[r+2]);break;default:throw new Error("illegal figure")}}return function(e,n,i,r,s,o,a,c){var l,u,d,h,p=Math.floor(e[0]),f=Math.floor(e[1]),g=Math.ceil(e[2])-p,m=Math.ceil(e[3])-f,b=Math.min(Math.ceil(Math.abs(g*n[0]*1.1)),3e3),y=Math.min(Math.ceil(Math.abs(m*n[1]*1.1)),3e3),v=g/b,_=m/y,w={coords:i,colors:r,offsetX:-p,offsetY:-f,scaleX:1/v,scaleY:1/_},k=b+4,C=y+4;if(c.isEnabled)l=c.drawFigures({width:b,height:y,backgroundColor:o,figures:s,context:w}),(u=a.getCanvas("mesh",k,C,!1)).context.drawImage(l,2,2),l=u.canvas;else{var S=(u=a.getCanvas("mesh",k,C,!1)).context,T=S.createImageData(b,y);if(o){var P=T.data;for(d=0,h=P.length;d<h;d+=4)P[d]=o[0],P[d+1]=o[1],P[d+2]=o[2],P[d+3]=255}for(d=0;d<s.length;d++)t(T,s[d],w);S.putImageData(T,2,2),l=u.canvas}return{canvas:l,offsetX:p-2*v,offsetY:f-2*_,scaleX:v,scaleY:_}}}();r.Mesh={fromIR:function(e){var t=e[2],n=e[3],r=e[4],o=e[5],a=e[6],c=e[8];return{type:"Pattern",getPattern:function(e,l,u){var d;if(u)d=i.Util.singularValueDecompose2dScale(e.mozCurrentTransform);else if(d=i.Util.singularValueDecompose2dScale(l.baseTransform),a){var h=i.Util.singularValueDecompose2dScale(a);d=[d[0]*h[0],d[1]*h[1]]}var p=s(o,d,t,n,r,u?null:c,l.cachedCanvases,l.webGLContext);return u||(e.setTransform.apply(e,l.baseTransform),a&&e.transform.apply(e,a)),e.translate(p.offsetX,p.offsetY),e.scale(p.scaleX,p.scaleY),e.createPattern(p.canvas,"no-repeat")}}}},r.Dummy={fromIR:function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}}};var o=function(){function e(e,t,n,i,r){this.operatorList=e[2],this.matrix=e[3]||[1,0,0,1,0,0],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=t,this.canvasGraphicsFactory=i,this.baseTransform=r,this.type="Pattern",this.ctx=n}return e.prototype={createPatternCanvas:function(e){var t=this.operatorList,n=this.bbox,r=this.xstep,s=this.ystep,o=this.paintType,a=this.color,c=this.canvasGraphicsFactory;(0,i.info)("TilingType: "+this.tilingType);var l=n[0],u=n[1],d=n[2],h=n[3],p=[l,u],f=[l+r,u+s],g=f[0]-p[0],m=f[1]-p[1],b=i.Util.singularValueDecompose2dScale(this.matrix),y=i.Util.singularValueDecompose2dScale(this.baseTransform),v=[b[0]*y[0],b[1]*y[1]];g=Math.min(Math.ceil(Math.abs(g*v[0])),3e3),m=Math.min(Math.ceil(Math.abs(m*v[1])),3e3);var _=e.cachedCanvases.getCanvas("pattern",g,m,!0),w=c.createCanvasGraphics(_.context);return w.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(w,o,a),this.setScale(g,m,r,s),this.transformToScale(w),w.transform.apply(w,[1,0,0,1,-p[0],-p[1]]),this.clipBbox(w,n,l,u,d,h),w.executeOperatorList(t),_.canvas},setScale:function(e,t,n,i){this.scale=[e/n,t/i]},transformToScale:function(e){var t=this.scale;e.transform.apply(e,[t[0],0,0,t[1],0,0])},scaleToContext:function(){var e=this.scale;this.ctx.scale(1/e[0],1/e[1])},clipBbox:function(e,t,n,i,r,s){Array.isArray(t)&&4===t.length&&(e.ctx.rect(n,i,r-n,s-i),e.clip(),e.endPath())},setFillAndStrokeStyleToContext:function(e,t,n){var r=e.ctx,s=e.current;switch(t){case 1:var o=this.ctx;r.fillStyle=o.fillStyle,r.strokeStyle=o.strokeStyle,s.fillColor=o.fillStyle,s.strokeColor=o.strokeStyle;break;case 2:var a=i.Util.makeCssRgb(n[0],n[1],n[2]);r.fillStyle=a,r.strokeStyle=a,s.fillColor=a,s.strokeColor=a;break;default:throw new i.FormatError("Unsupported paint type: "+t)}},getPattern:function(e,t){var n=this.createPatternCanvas(t);return(e=this.ctx).setTransform.apply(e,this.baseTransform),e.transform.apply(e,this.matrix),this.scaleToContext(),e.createPattern(n,"repeat")}},e}();t.getShadingPatternFromIR=function(e){var t=r[e[0]];if(!t)throw new Error("Unknown IR type: "+e[0]);return t.fromIR(e)},t.TilingPattern=o},function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var i=Object.create(null);i.workerPort=void 0===i.workerPort?null:i.workerPort,i.workerSrc=void 0===i.workerSrc?"":i.workerSrc,t.GlobalWorkerOptions=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var i,r,s,o=(i=n(137))&&i.__esModule?i:{default:i},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},c=(r=o.default.mark(function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.abrupt("return",t.apply(i,n));case 3:case"end":return e.stop()}},e,this)}),s=function(){var e=r.apply(this,arguments);return new Promise(function(t,n){return function i(r,s){try{var o=e[r](s),a=o.value}catch(c){return void n(c)}if(!o.done)return Promise.resolve(a).then(function(e){i("next",e)},function(e){i("throw",e)});t(a)}("next")})},function(e,t){return s.apply(this,arguments)}),l=n(1);function u(e){if("object"!==(void 0===e?"undefined":a(e)))return e;switch(e.name){case"AbortException":return new l.AbortException(e.message);case"MissingPDFException":return new l.MissingPDFException(e.message);case"UnexpectedResponseException":return new l.UnexpectedResponseException(e.message,e.status);default:return new l.UnknownErrorException(e.message,e.details)}}function d(e){return!(e instanceof Error)||e instanceof l.AbortException||e instanceof l.MissingPDFException||e instanceof l.UnexpectedResponseException||e instanceof l.UnknownErrorException?e:new l.UnknownErrorException(e.message,e.toString())}function h(e,t,n){t?e.resolve():e.reject(n)}function p(e,t,n){var i=this;this.sourceName=e,this.targetName=t,this.comObj=n,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null);var r=this.callbacksCapabilities=Object.create(null),s=this.actionHandler=Object.create(null);this._onComObjOnMessage=function(e){var t=e.data;if(t.targetName===i.sourceName)if(t.stream)i._processStreamMessage(t);else if(t.isReply){var o=t.callbackId;if(!(t.callbackId in r))throw new Error("Cannot resolve callback "+o);var a=r[o];delete r[o],"error"in t?a.reject(u(t.error)):a.resolve(t.data)}else{if(!(t.action in s))throw new Error("Unknown action from worker: "+t.action);var c=s[t.action];if(t.callbackId){var l=i.sourceName,h=t.sourceName;Promise.resolve().then(function(){return c[0].call(c[1],t.data)}).then(function(e){n.postMessage({sourceName:l,targetName:h,isReply:!0,callbackId:t.callbackId,data:e})},function(e){n.postMessage({sourceName:l,targetName:h,isReply:!0,callbackId:t.callbackId,error:d(e)})})}else t.streamId?i._createStreamSink(t):c[0].call(c[1],t.data)}},n.addEventListener("message",this._onComObjOnMessage)}p.prototype={on:function(e,t,n){var i=this.actionHandler;if(i[e])throw new Error('There is already an actionName called "'+e+'"');i[e]=[t,n]},send:function(e,t,n){this.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)},sendWithPromise:function(e,t,n){var i=this.callbackId++,r={sourceName:this.sourceName,targetName:this.targetName,action:e,data:t,callbackId:i},s=(0,l.createPromiseCapability)();this.callbacksCapabilities[i]=s;try{this.postMessage(r,n)}catch(o){s.reject(o)}return s.promise},sendWithStream:function(e,t,n,i){var r=this,s=this.streamId++,o=this.sourceName,a=this.targetName;return new l.ReadableStream({start:function(n){var i=(0,l.createPromiseCapability)();return r.streamControllers[s]={controller:n,startCall:i,isClosed:!1},r.postMessage({sourceName:o,targetName:a,action:e,streamId:s,data:t,desiredSize:n.desiredSize}),i.promise},pull:function(e){var t=(0,l.createPromiseCapability)();return r.streamControllers[s].pullCall=t,r.postMessage({sourceName:o,targetName:a,stream:"pull",streamId:s,desiredSize:e.desiredSize}),t.promise},cancel:function(e){var t=(0,l.createPromiseCapability)();return r.streamControllers[s].cancelCall=t,r.streamControllers[s].isClosed=!0,r.postMessage({sourceName:o,targetName:a,stream:"cancel",reason:e,streamId:s}),t.promise}},n)},_createStreamSink:function(e){var t=this,n=this,i=this.actionHandler[e.action],r=e.streamId,s=e.desiredSize,o=this.sourceName,a=e.s
1ourceName,u=(0,l.createPromiseCapability)(),d=function(e){t.postMessage({sourceName:o,targetName:a,stream:e.stream,streamId:r,chunk:e.chunk,success:e.success,reason:e.reason},e.transfers)},h={enqueue:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments[2];if(!this.isCancelled){var i=this.desiredSize;this.desiredSize-=t,i>0&&this.desiredSize<=0&&(this.sinkCapability=(0,l.createPromiseCapability)(),this.ready=this.sinkCapability.promise),d({stream:"enqueue",chunk:e,transfers:n})}},close:function(){this.isCancelled||(this.isCancelled=!0,d({stream:"close"}),delete n.streamSinks[r])},error:function(e){this.isCancelled||(this.isCancelled=!0,d({stream:"error",reason:e}))},sinkCapability:u,onPull:null,onCancel:null,isCancelled:!1,desiredSize:s,ready:null};h.sinkCapability.resolve(),h.ready=h.sinkCapability.promise,this.streamSinks[r]=h,c(i[0],[e.data,h],i[1]).then(function(){d({stream:"start_complete",success:!0})},function(e){d({stream:"start_complete",success:!1,reason:e})})},_processStreamMessage:function(e){var t=this,n=this.sourceName,i=e.sourceName,r=e.streamId,s=function(e){t.comObj.postMessage({sourceName:n,targetName:i,stream:e.stream,success:e.success,streamId:r,reason:e.reason})},o=function(){Promise.all([t.streamControllers[e.streamId].startCall,t.streamControllers[e.streamId].pullCall,t.streamControllers[e.streamId].cancelCall].map(function(e){return e&&Promise.resolve(e.promise).catch(function(){})})).then(function(){delete t.streamControllers[e.streamId]})};switch(e.stream){case"start_complete":h(this.streamControllers[e.streamId].startCall,e.success,u(e.reason));break;case"pull_complete":h(this.streamControllers[e.streamId].pullCall,e.success,u(e.reason));break;case"pull":if(!this.streamSinks[e.streamId]){s({stream:"pull_complete",success:!0});break}this.streamSinks[e.streamId].desiredSize<=0&&e.desiredSize>0&&this.streamSinks[e.streamId].sinkCapability.resolve(),this.streamSinks[e.streamId].desiredSize=e.desiredSize,c(this.streamSinks[e.streamId].onPull).then(function(){s({stream:"pull_complete",success:!0})},function(e){s({stream:"pull_complete",success:!1,reason:e})});break;case"enqueue":(0,l.assert)(this.streamControllers[e.streamId],"enqueue should have stream controller"),this.streamControllers[e.streamId].isClosed||this.streamControllers[e.streamId].controller.enqueue(e.chunk);break;case"close":if((0,l.assert)(this.streamControllers[e.streamId],"close should have stream controller"),this.streamControllers[e.streamId].isClosed)break;this.streamControllers[e.streamId].isClosed=!0,this.streamControllers[e.streamId].controller.close(),o();break;case"error":(0,l.assert)(this.streamControllers[e.streamId],"error should have stream controller"),this.streamControllers[e.streamId].controller.error(u(e.reason)),o();break;case"cancel_complete":h(this.streamControllers[e.streamId].cancelCall,e.success,u(e.reason)),o();break;case"cancel":if(!this.streamSinks[e.streamId])break;c(this.streamSinks[e.streamId].onCancel,[u(e.reason)]).then(function(){s({stream:"cancel_complete",success:!0})},function(e){s({stream:"cancel_complete",success:!1,reason:e})}),this.streamSinks[e.streamId].sinkCapability.reject(u(e.reason)),this.streamSinks[e.streamId].isCancelled=!0,delete this.streamSinks[e.streamId];break;default:throw new Error("Unexpected stream case")}},postMessage:function(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)},destroy:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}},t.MessageHandler=p},function(e,t,n){"use strict";e.exports=n(138)},function(e,t,n){"use strict";var i=function(){return this}()||Function("return this")(),r=i.regeneratorRuntime&&Object.getOwnPropertyNames(i).indexOf("regeneratorRuntime")>=0,s=r&&i.regeneratorRuntime;if(i.regeneratorRuntime=void 0,e.exports=n(139),r)i.regeneratorRuntime=s;else try{delete i.regeneratorRuntime}catch(o){i.regeneratorRuntime=void 0}},function(e,t,n){"use strict";(function(e){var 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};!function(n){var i=Object.prototype,r=i.hasOwnProperty,s="function"==typeof Symbol?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag",l="object"===t(e),u=n.regeneratorRuntime;if(u)l&&(e.exports=u);else{(u=n.regeneratorRuntime=l?e.exports:{}).wrap=m;var d={},h={};h[o]=function(){return this};var p=Object.getPrototypeOf,f=p&&p(p(O([])));f&&f!==i&&r.call(f,o)&&(h=f);var g=_.prototype=y.prototype=Object.create(h);v.prototype=g.constructor=_,_.constructor=v,_[c]=v.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(g),e},u.awrap=function(e){return{__await:e}},w(k.prototype),k.prototype[a]=function(){return this},u.AsyncIterator=k,u.async=function(e,t,n,i){var r=new k(m(e,t,n,i));return u.isGeneratorFunction(t)?r:r.next().then(function(e){return e.done?e.value:r.next()})},w(g),g[c]="Generator",g[o]=function(){return this},g.toString=function(){return"[object Generator]"},u.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var i=t.pop();if(i in e)return n.value=i,n.done=!1,n}return n.done=!0,n}},u.values=O,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
vendor: 4,446 bytes, line 1
1h(T),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},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,i){return o.type="throw",o.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i],o=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var a=r.call(s,"catchLoc"),c=r.call(s,"finallyLoc");if(a&&c){if(this.prev<s.catchLoc)return n(s.catchLoc,!0);if(this.prev<s.finallyLoc)return n(s.finallyLoc)}else if(a){if(this.prev<s.catchLoc)return n(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return n(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var s=i;break}}s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc&&(s=null);var o=s?s.completion:{};return o.type=e,o.arg=t,s?(this.method="next",this.next=s.finallyLoc,d):this.complete(o)},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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;T(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}}}function m(e,t,n,i){var r=Object.create((t&&t.prototype instanceof y?t:y).prototype),s=new P(i||[]);return r._invoke=function(e,t,n){var i="suspendedStart";return function(r,s){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw s;return{value:void 0,done:!0}}for(n.method=r,n.arg=s;;){var o=n.delegate;if(o){var a=C(o,n);if(a){if(a===d)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var c=b(e,t,n);if("normal"===c.type){if(i=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i="completed",n.method="throw",n.arg=c.arg)}}}(e,n,s),r}function b(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(i){return{type:"throw",arg:i}}}function y(){}function v(){}function _(){}function w(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function k(e){function n(i,s,o,a){var c=b(e[i],e,s);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"===(void 0===u?"undefined":t(u))&&r.call(u,"__await")?Promise.resolve(u.__await).then(function(e){n("next",e,o,a)},function(e){n("throw",e,o,a)}):Promise.resolve(u).then(function(e){l.value=e,o(l)},a)}a(c.arg)}var i;this._invoke=function(e,t){function r(){return new Promise(function(i,r){n(e,t,i,r)})}return i=i?i.then(r,r):r()}}function C(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var i=b(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var r=i.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function O(e){if(e){var t=e[o];if(t)return t.call(e);
1if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:x}}function x(){return{value:void 0,done:!0}}}(function(){return this}()||Function("return this")())}).call(this,n(140)(e))},function(e,t,n){"use strict";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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(1),s=n(142),o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(0,r.assert)("string"==typeof t,"Metadata: input is not a string"),t=this._repair(t);var n=(new s.SimpleXMLParser).parseFromString(t);this._metadata=Object.create(null),n&&this._parse(n)}return i(e,[{key:"_repair",value:function(e){return e.replace(/>\\376\\377([^<]+)/g,function(e,t){for(var n=t.replace(/\\([0-3])([0-7])([0-7])/g,function(e,t,n,i){return String.fromCharCode(64*t+8*n+1*i)}).replace(/&(amp|apos|gt|lt|quot);/g,function(e,t){switch(t){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error("_repair: "+t+" isn't defined.")}),i="",r=0,s=n.length;r<s;r+=2){var o=256*n.charCodeAt(r)+n.charCodeAt(r+1);i+=o>=32&&o<127&&60!==o&&62!==o&&38!==o?String.fromCharCode(o):"&#x"+(65536+o).toString(16).substring(1)+";"}return">"+i})}},{key:"_parse",value:function(e){var t=e.documentElement;if("rdf:rdf"!==t.nodeName.toLowerCase())for(t=t.firstChild;t&&"rdf:rdf"!==t.nodeName.toLowerCase();)t=t.nextSibling;var n=t?t.nodeName.toLowerCase():null;if(t&&"rdf:rdf"===n&&t.hasChildNodes())for(var i=t.childNodes,r=0,s=i.length;r<s;r++){var o=i[r];if("rdf:description"===o.nodeName.toLowerCase())for(var a=0,c=o.childNodes.length;a<c;a++)if("#text"!==o.childNodes[a].nodeName.toLowerCase()){var l=o.childNodes[a],u=l.nodeName.toLowerCase();this._metadata[u]=l.textContent.trim()}}}},{key:"get",value:function(e){return this._metadata[e]||null}},{key:"getAll",value:function(){return this._metadata}},{key:"has",value:function(e){return void 0!==this._metadata[e]}}]),e}();t.Metadata=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var s=Object.getPrototypeOf(t);return null===s?void 0:e(s,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){var n=e[t];return" "===n||"\n"===n||"\r"===n||"\t"===n}var a=function(){function e(){s(this,e)}return r(e,[{key:"_resolveEntities",value:function(e){return e.replace(/&([^;]+);/g,function(e,t){if("#x"===t.substring(0,2))return String.fromCharCode(parseInt(t.substring(2),16));if("#"===t.substring(0,1))return String.fromCharCode(parseInt(t.substring(1),10));switch(t){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return this.onResolveEntity(t)})}},{key:"_parseContent",value:function(e,t){var n,i=t,r=[];function s(){for(;i<e.length&&o(e,i);)++i}for(;i<e.length&&!o(e,i)&&">"!==e[i]&&"/"!==e[i];)++i;for(n=e.substring(t,i),s();i<e.length&&">"!==e[i]&&"/"!==e[i]&&"?"!==e[i];){s();for(var a,c="";i<e.length&&!o(e,i)&&"="!==e[i];)c+=e[i],++i;if(s(),"="!==e[i])return null;++i,s();var l=e[i];if('"'!==l&&"'"!==l)return null;var u=e.indexOf(l,++i);if(u<0)return null;a=e.substring(i,u),r.push({name:c,value:this._resolveEntities(a)}),i=u+1,s()}return{name:n,attributes:r,parsed:i-t}}},{key:"_parseProcessingInstruction",value:function(e,t){for(var n,i=t;i<e.length&&!o(e,i)&&">"!==e[i]&&"/"!==e[i];)++i;n=e.substring(t,i),function(){for(;i<e.length&&o(e,i);)++i}();for(var r=i;i<e.length&&("?"!==e[i]||">"!==e[i+1]);)++i;return{name:n,value:e.substring(r,i),parsed:i-t}}},{key:"parseXml",value:function(e){for(var t=0;t<e.length;){var n=t;if("<"===e[t]){var i=void 0;switch(e[++n]){case"/":if(++n,(i=e.indexOf(">",n))<0)return void this.onError(-9);this.onEndElement(e.substring(n,i)),n=i+1;break;case"?":++n;var r=this._parseProcessingInstruction(e,n);if("?>"!==e.substring(n+r.parsed,n+r.parsed+2))return void this.onError(-3);
1this.onPi(r.name,r.value),n+=r.parsed+2;break;case"!":if("--"===e.substring(n+1,n+3)){if((i=e.indexOf("--\x3e",n+3))<0)return void this.onError(-5);this.onComment(e.substring(n+3,i)),n=i+3}else if("[CDATA["===e.substring(n+1,n+8)){if((i=e.indexOf("]]>",n+8))<0)return void this.onError(-2);this.onCdata(e.substring(n+8,i)),n=i+3}else{if("DOCTYPE"!==e.substring(n+1,n+8))return void this.onError(-6);var s=e.indexOf("[",n+8),o=!1;if((i=e.indexOf(">",n+8))<0)return void this.onError(-4);if(s>0&&i>s){if((i=e.indexOf("]>",n+8))<0)return void this.onError(-4);o=!0}var a=e.substring(n+8,i+(o?1:0));this.onDoctype(a),n=i+(o?2:1)}break;default:var c=this._parseContent(e,n);if(null===c)return void this.onError(-6);var l=!1;if("/>"===e.substring(n+c.parsed,n+c.parsed+2))l=!0;else if(">"!==e.substring(n+c.parsed,n+c.parsed+1))return void this.onError(-9);this.onBeginElement(c.name,c.attributes,l),n+=c.parsed+(l?2:1)}}else{for(;n<e.length&&"<"!==e[n];)n++;var u=e.substring(t,n);this.onText(this._resolveEntities(u))}t=n}}},{key:"onResolveEntity",value:function(e){return"&"+e+";"}},{key:"onPi",value:function(e,t){}},{key:"onComment",value:function(e){}},{key:"onCdata",value:function(e){}},{key:"onDoctype",value:function(e){}},{key:"onText",value:function(e){}},{key:"onBeginElement",value:function(e,t,n){}},{key:"onEndElement",value:function(e){}},{key:"onError",value:function(e){}}]),e}(),c=function(){function e(t,n){s(this,e),this.nodeName=t,this.nodeValue=n,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}return r(e,[{key:"hasChildNodes",value:function(){return this.childNodes&&this.childNodes.length>0}},{key:"firstChild",get:function(){return this.childNodes[0]}},{key:"nextSibling",get:function(){var e=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[e+1]}},{key:"textContent",get:function(){return this.childNodes?this.childNodes.map(function(e){return e.textContent}).join(""):this.nodeValue||""}}]),e}(),l=function(e){function t(){s(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e._currentFragment=null,e._stack=null,e._errorCode=0,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"parseFromString",value:function(e){if(this._currentFragment=[],this._stack=[],this._errorCode=0,this.parseXml(e),0===this._errorCode){var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,s=void 0;try{for(var o,a=e[Symbol.iterator]();!(i=(o=a.next()).done)&&(n.push(o.value),1!==n.length);i=!0);}catch(c){r=!0,s=c}finally{try{!i&&a.return&&a.return()}finally{if(r)throw s}}return n}(e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(this._currentFragment)[0];if(t)return{documentElement:t}}}},{key:"onResolveEntity",value:function(e){return"apos"===e?"'":i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onResolveEntity",this).call(this,e)}},{key:"onText",value:function(e){if(!function(e){for(var t=0,n=e.length;t<n;t++)if(!o(e,t))return!1;return!0}(e)){var t=new c("#text",e);this._currentFragment.push(t)}}},{key:"onCdata",value:function(e){var t=new c("#text",e);this._currentFragment.push(t)}},{key:"onBeginElement",value:function(e,t,n){var i=new c(e);i.childNodes=[],this._currentFragment.push(i),n||(this._stack.push(this._currentFragment),this._currentFragment=i.childNodes)}},{key:"onEndElement",value:function(e){this._currentFragment=this._stack.pop();for(var t=this._currentFragment[this._currentFragment.length-1],n=0,i=t.childNodes.length;n<i;n++)t.childNodes[n].parentNode=t}},{key:"onError",value:function(e){this._errorCode=e}}]),t}(a);t.SimpleXMLParser=l},function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var i,r=(i=n(137))&&i.__esModule?i:{default:i},s=n(1);function o(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){return function i(r,s){try{var o=t[r](s),a=o.value}catch(c){return void n(c)}if(!o.done)return Promise.resolve(a).then(function(e){i("next",e)},function(e){i("throw",e)});e(a)}("next")})}}var a=function(){function e(e,t){var n=this;(0,s.assert)(t),this._queuedChunks=[];var i=e.initialData;if(i&&i.length>0){var r=new Uint8Array(i).buffer;this._queuedChunks.push(r)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange,this._contentLength=e.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(function(e,t){n._onReceiveData({begin:e,chunk:t})}),this._pdfDataRangeTransport.addProgressListener(function(e){n._onProgress({loaded:e})}),this._pdfDataRangeTransport.addProgressiveReadListener(function(e){n._onReceiveData({chunk:e})}),this._pdfDataRangeTransport.transportReady()}function t(e,t){this._stream=e,this._done=!1,this._filename=null,this._queuedChunks=t||[],this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}var n,i;function a(e,t,n){this._stream=e,this._begin=t,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}return e.prototype={_onReceiveData:function(e){var t=new Uint8Array(e.chunk).buffer;if(void 0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(t):this._queuedChunks.push(t);else{var n=this._rangeReaders.some(function(n){return n._begin===e.begin&&(n._enqueue(t),!0)});(0,s.assert)(n)}},_onProgress:function(e){if(this._rangeReaders.length>0){var t=this._rangeReaders[0];t.onProgress&&t.onProgress({loaded:e.loaded})}},_removeRangeReader:function(e){var t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)},getFullReader:function(){(0,s.assert)(!this._fullRequestReader);var e=this._queuedChunks;return this._queuedChunks=null,new t(this,e)},getRangeReader:function(e,t){var n=new a(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(n),n},cancelAllRequests:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeReaders.slice(0).forEach(function(t){t.cancel(e)}),this._pdfDataRangeTransport.abort()}},t.prototype={_enqueue:function(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e))},get headersReady(){return this._headersReady},get filename(){return this._filename},get isRangeSupported(){return this._stream._isRangeSupported},get isStreamingSupported(){return this._stream._isStreamingSupported},get contentLength(){return this._stream._contentLength},read:(n=o(r.default.mark(function e(){var t,n;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(this._queuedChunks.length>0)){e.next=3;break}return t=this._queuedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 3:if(!this._done){e.next=5;break}return e.abrupt("return",{value:void 0,done:!0});case 5:return n=(0,s.createPromiseCapability)(),this._requests.push(n),e.abrupt("return",n.promise);case 8:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)}),cancel:function(e){this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[]}},a.prototype={_enqueue:function(e){this._done||(0===this._requests.length?this._queuedChunk=e:(this._requests.shift().resolve({value:e,done:!1}),this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[]),this._done=!0,this._stream._removeRangeReader(this))},get isStreamingSupported(){return!1},read:(i=o(r.default.mark(function e(){var t,n;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt("return",{value:void 0,done:!0});case 6:return n=(0,s.createPromiseCapability)(),this._requests.push(n),e.abrupt("return",n.promise);case 9:case"end":return e.stop()}},e,this)})),function(){return i.apply(this,arguments)}
1),cancel:function(e){this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._stream._removeRangeReader(this)}},e}();t.PDFDataTransportStream=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebGLContext=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(1),s=function(){function e(t){var n=t.enable,i=void 0!==n&&n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._enabled=!0===i}return i(e,[{key:"composeSMask",value:function(e){return o.composeSMask(e.layer,e.mask,e.properties)}},{key:"drawFigures",value:function(e){return o.drawFigures(e.width,e.height,e.backgroundColor,e.figures,e.context)}},{key:"clear",value:function(){o.cleanup()}},{key:"isEnabled",get:function(){var e=this._enabled;return e&&(e=o.tryInitGL()),(0,r.shadow)(this,"isEnabled",e)}}]),e}(),o=function(){function e(e,t,n){var i=e.createShader(n);if(e.shaderSource(i,t),e.compileShader(i),!e.getShaderParameter(i,e.COMPILE_STATUS)){var r=e.getShaderInfoLog(i);throw new Error("Error during shader compilation: "+r)}return i}function t(t,n){return e(t,n,t.VERTEX_SHADER)}function n(t,n){return e(t,n,t.FRAGMENT_SHADER)}function i(e,t){for(var n=e.createProgram(),i=0,r=t.length;i<r;++i)e.attachShader(n,t[i]);if(e.linkProgram(n),!e.getProgramParameter(n,e.LINK_STATUS)){var s=e.getProgramInfoLog(n);throw new Error("Error during program linking: "+s)}return n}function r(e,t,n){e.activeTexture(n);var i=e.createTexture();return e.bindTexture(e.TEXTURE_2D,i),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t),i}var s,o;function a(){s||(o=document.createElement("canvas"),s=o.getContext("webgl",{premultipliedalpha:!1}))}var c=null,l=null;return{tryInitGL:function(){try{return a(),!!s}catch(e){}return!1},composeSMask:function(e,l,u){var d=e.width,h=e.height;c||function(){var e,r;a(),e=o,o=null,r=s,s=null;var l=i(r,[t(r," attribute vec2 a_position; attribute vec2 a_texCoord; uniform vec2 u_resolution; varying vec2 v_texCoord; void main() { vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_texCoord = a_texCoord; } "),n(r," precision mediump float; uniform vec4 u_backdrop; uniform int u_subtype; uniform sampler2D u_image; uniform sampler2D u_mask; varying vec2 v_texCoord; void main() { vec4 imageColor = texture2D(u_image, v_texCoord); vec4 maskColor = texture2D(u_mask, v_texCoord); if (u_backdrop.a > 0.0) { maskColor.rgb = maskColor.rgb * maskColor.a + u_backdrop.rgb * (1.0 - maskColor.a); } float lum; if (u_subtype == 0) { lum = maskColor.a; } else { lum = maskColor.r * 0.3 + maskColor.g * 0.59 + maskColor.b * 0.11; } imageColor.a *= lum; imageColor.rgb *= imageColor.a; gl_FragColor = imageColor; } ")]);r.useProgram(l);var u={};u.gl=r,u.canvas=e,u.resolutionLocation=r.getUniformLocation(l,"u_resolution"),u.positionLocation=r.getAttribLocation(l,"a_position"),u.backdropLocation=r.getUniformLocation(l,"u_backdrop"),u.subtypeLocation=r.getUniformLocation(l,"u_subtype");var d=r.getAttribLocation(l,"a_texCoord"),h=r.getUniformLocation(l,"u_image"),p=r.getUniformLocation(l,"u_mask"),f=r.createBuffer();r.bindBuffer(r.ARRAY_BUFFER,f),r.bufferData(r.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),r.STATIC_DRAW),r.enableVertexAttribArray(d),r.vertexAttribPointer(d,2,r.FLOAT,!1,0,0),r.uniform1i(h,0),r.uniform1i(p,1),c=u}();var p=c,f=p.canvas,g=p.gl;f.width=d,f.height=h,g.viewport(0,0,g.drawingBufferWidth,g.drawingBufferHeight),g.uniform2f(p.resolutionLocation,d,h),u.backdrop?g.uniform4f(p.resolutionLocation,u.backdrop[0],u.backdrop[1],u.backdrop[2],1):g.uniform4f(p.resolutionLocation,
10,0,0,0),g.uniform1i(p.subtypeLocation,"Luminosity"===u.subtype?1:0);var m=r(g,e,g.TEXTURE0),b=r(g,l,g.TEXTURE1),y=g.createBuffer();return g.bindBuffer(g.ARRAY_BUFFER,y),g.bufferData(g.ARRAY_BUFFER,new Float32Array([0,0,d,0,0,h,0,h,d,0,d,h]),g.STATIC_DRAW),g.enableVertexAttribArray(p.positionLocation),g.vertexAttribPointer(p.positionLocation,2,g.FLOAT,!1,0,0),g.clearColor(0,0,0,0),g.enable(g.BLEND),g.blendFunc(g.ONE,g.ONE_MINUS_SRC_ALPHA),g.clear(g.COLOR_BUFFER_BIT),g.drawArrays(g.TRIANGLES,0,6),g.flush(),g.deleteTexture(m),g.deleteTexture(b),g.deleteBuffer(y),f},drawFigures:function(e,r,c,u,d){l||function(){var e,r;a(),e=o,o=null,r=s,s=null;var c=i(r,[t(r," attribute vec2 a_position; attribute vec3 a_color; uniform vec2 u_resolution; uniform vec2 u_scale; uniform vec2 u_offset; varying vec4 v_color; void main() { vec2 position = (a_position + u_offset) * u_scale; vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_color = vec4(a_color / 255.0, 1.0); } "),n(r," precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ")]);r.useProgram(c);var u={};u.gl=r,u.canvas=e,u.resolutionLocation=r.getUniformLocation(c,"u_resolution"),u.scaleLocation=r.getUniformLocation(c,"u_scale"),u.offsetLocation=r.getUniformLocation(c,"u_offset"),u.positionLocation=r.getAttribLocation(c,"a_position"),u.colorLocation=r.getAttribLocation(c,"a_color"),l=u}();var h=l,p=h.canvas,f=h.gl;p.width=e,p.height=r,f.viewport(0,0,f.drawingBufferWidth,f.drawingBufferHeight),f.uniform2f(h.resolutionLocation,e,r);var g,m,b,y=0;for(g=0,m=u.length;g<m;g++)switch(u[g].type){case"lattice":y+=((b=u[g].coords.length/u[g].verticesPerRow|0)-1)*(u[g].verticesPerRow-1)*6;break;case"triangles":y+=u[g].coords.length}var v=new Float32Array(2*y),_=new Uint8Array(3*y),w=d.coords,k=d.colors,C=0,S=0;for(g=0,m=u.length;g<m;g++){var T=u[g],P=T.coords,O=T.colors;switch(T.type){case"lattice":var x=T.verticesPerRow;b=P.length/x|0;for(var A=1;A<b;A++)for(var E=A*x+1,M=1;M<x;M++,E++)v[C]=w[P[E-x-1]],v[C+1]=w[P[E-x-1]+1],v[C+2]=w[P[E-x]],v[C+3]=w[P[E-x]+1],v[C+4]=w[P[E-1]],v[C+5]=w[P[E-1]+1],_[S]=k[O[E-x-1]],_[S+1]=k[O[E-x-1]+1],_[S+2]=k[O[E-x-1]+2],_[S+3]=k[O[E-x]],_[S+4]=k[O[E-x]+1],_[S+5]=k[O[E-x]+2],_[S+6]=k[O[E-1]],_[S+7]=k[O[E-1]+1],_[S+8]=k[O[E-1]+2],v[C+6]=v[C+2],v[C+7]=v[C+3],v[C+8]=v[C+4],v[C+9]=v[C+5],v[C+10]=w[P[E]],v[C+11]=w[P[E]+1],_[S+9]=_[S+3],_[S+10]=_[S+4],_[S+11]=_[S+5],_[S+12]=_[S+6],_[S+13]=_[S+7],_[S+14]=_[S+8],_[S+15]=k[O[E]],_[S+16]=k[O[E]+1],_[S+17]=k[O[E]+2],C+=12,S+=18;break;case"triangles":for(var I=0,R=P.length;I<R;I++)v[C]=w[P[I]],v[C+1]=w[P[I]+1],_[S]=k[O[I]],_[S+1]=k[O[I]+1],_[S+2]=k[O[I]+2],C+=2,S+=3}}c?f.clearColor(c[0]/255,c[1]/255,c[2]/255,1):f.clearColor(0,0,0,0),f.clear(f.COLOR_BUFFER_BIT);var L=f.createBuffer();f.bindBuffer(f.ARRAY_BUFFER,L),f.bufferData(f.ARRAY_BUFFER,v,f.STATIC_DRAW),f.enableVertexAttribArray(h.positionLocation),f.vertexAttribPointer(h.positionLocation,2,f.FLOAT,!1,0,0);var D=f.createBuffer();return f.bindBuffer(f.ARRAY_BUFFER,D),f.bufferData(f.ARRAY_BUFFER,_,f.STATIC_DRAW),f.enableVertexAttribArray(h.colorLocation),f.vertexAttribPointer(h.colorLocation,3,f.UNSIGNED_BYTE,!1,0,0),f.uniform2f(h.scaleLocation,d.scaleX,d.scaleY),f.uniform2f(h.offsetLocation,d.offsetX,d.offsetY),f.drawArrays(f.TRIANGLES,0,y),f.flush(),f.deleteBuffer(L),f.deleteBuffer(D),p}
1,cleanup:function(){c&&c.canvas&&(c.canvas.width=0,c.canvas.height=0),l&&l.canvas&&(l.canvas.width=0,l.canvas.height=0),c=null,l=null}}}();t.WebGLContext=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderTextLayer=void 0;var i,r=n(1),s=(i=n(3))&&i.__esModule?i:{default:i},o=function(){var e=/\S/,t=["left: ",0,"px; top: ",0,"px; font-size: ",0,"px; font-family: ","",";"];function n(n,i,s){var o=document.createElement("div"),a={style:null,angle:0,canvasWidth:0,isWhitespace:!1,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};if(n._textDivs.push(o),!e.test(i.str))return a.isWhitespace=!0,void n._textDivProperties.set(o,a);var c=r.Util.transform(n._viewport.transform,i.transform),l=Math.atan2(c[1],c[0]),u=s[i.fontName];u.vertical&&(l+=Math.PI/2);var d,h,p=Math.sqrt(c[2]*c[2]+c[3]*c[3]),f=p;if(u.ascent?f*=u.ascent:u.descent&&(f*=1+u.descent),0===l?(d=c[4],h=c[5]-f):(d=c[4]+f*Math.sin(l),h=c[5]-f*Math.cos(l)),t[1]=d,t[3]=h,t[5]=p,t[7]=u.fontFamily,a.style=t.join(""),o.setAttribute("style",a.style),o.textContent=i.str,n._fontInspectorEnabled&&(o.dataset.fontName=i.fontName),0!==l&&(a.angle=l*(180/Math.PI)),i.str.length>1&&(a.canvasWidth=u.vertical?i.height*n._viewport.scale:i.width*n._viewport.scale),n._textDivProperties.set(o,a),n._textContentStream&&n._layoutText(o),n._enhanceTextSelection){var g=1,m=0;0!==l&&(g=Math.cos(l),m=Math.sin(l));var b,y,v=(u.vertical?i.height:i.width)*n._viewport.scale,_=p;y=0!==l?r.Util.getAxialAlignedBoundingBox([0,0,v,_],b=[g,m,-m,g,d,h]):[d,h,d+v,h+_],n._bounds.push({left:y[0],top:y[1],right:y[2],bottom:y[3],div:o,size:[v,_],m:b})}}function i(e){if(!e._canceled){var t=e._textDivs,n=e._capability,i=t.length;if(i>1e5)return e._renderingDone=!0,void n.resolve();if(!e._textContentStream)for(var r=0;r<i;r++)e._layoutText(t[r]);e._renderingDone=!0,n.resolve()}}function o(e,t){t.sort(function(e,t){return e.x1-t.x1||e.index-t.index});var n=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}];t.forEach(function(e){for(var t=0;t<n.length&&n[t].end<=e.y1;)t++;for(var i,r,s=n.length-1;s>=0&&n[s].start>=e.y2;)s--;var o,a,c=-1/0;for(o=t;o<=s;o++){var l;(l=(r=(i=n[o]).boundary).x2>e.x1?r.index>e.index?r.x1New:e.x1:void 0===r.x2New?(r.x2+e.x1)/2:r.x2New)>c&&(c=l)}for(e.x1New=c,o=t;o<=s;o++)void 0===(r=(i=n[o]).boundary).x2New?r.x2>e.x1?r.index>e.index&&(r.x2New=r.x2):r.x2New=c:r.x2New>c&&(r.x2New=Math.max(c,r.x2));var u=[],d=null;for(o=t;o<=s;o++){var h=(r=(i=n[o]).boundary).x2>e.x2?r:e;d===h?u[u.length-1].end=i.end:(u.push({start:i.start,end:i.end,boundary:h}),d=h)}for(n[t].start<e.y1&&(u[0].start=e.y1,u.unshift({start:n[t].start,end:e.y1,boundary:n[t].boundary})),e.y2<n[s].end&&(u[u.length-1].end=e.y2,u.push({start:e.y2,end:n[s].end,boundary:n[s].boundary})),o=t;o<=s;o++)if(void 0===(r=(i=n[o]).boundary).x2New){var p=!1;for(a=t-1;!p&&a>=0&&n[a].start>=r.y1;a--)p=n[a].boundary===r;for(a=s+1;!p&&a<n.length&&n[a].end<=r.y2;a++)p=n[a].boundary===r;for(a=0;!p&&a<u.length;a++)p=u[a].boundary===r;p||(r.x2New=c)}Array.prototype.splice.apply(n,[t,s-t+1].concat(u))}),n.forEach(function(t){var n=t.boundary;void 0===n.x2New&&(n.x2New=Math.max(e,n.x2))})}function a(e){var t=e.textContentStream,n=e.container,i=e.viewport,o=e.textDivs,a=e.textContentItemsStr,c=e.enhanceTextSelection;this._textContent=e.textContent,this._textContentStream=t,this._container=n,this._viewport=i,this._textDivs=o||[],this._textContentItemsStr=a||[],this._enhanceTextSelection=!!c,this._fontInspectorEnabled=!(!s.default.FontInspector||!s.default.FontInspector.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,r.createPromiseCapability)(),this._renderTimer=null,this._bounds=[]}return a.prototype={get promise(){return this._capability.promise},cancel:function(){this._reader&&(this._reader.cancel(new r.AbortException("text layer task cancelled")),this._reader=null),this._canceled=!0,null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject("canceled")},_processItems:function(e,t){for(var i=0,r=e.length;i<r;i++)this._textContentItemsStr.push(e[i].str),n(this,e[i],t)},_layoutText:function(e){var t=this._container,n=this._textDivProperties.get(e);if(!n.isWhitespace){var i=e.style.fontSize,r=e.style.fontFamily;i===this._layoutTextLastFontSize&&r===this._layoutTextLastFontFamily||(this._layoutTextCtx.font=i+" "+r,this._layoutTextLastFontSize=i,this._layoutTextLastFontFamily=r);var s=this._layoutTextCtx.measureText(e.textContent).width,o="";0!==n.canvasWidth&&s>0&&(n.scale=n.canvasWidth/s,o="scaleX("+n.scale+")"),0!==n.angle&&(o="rotate("+n.angle+"deg) "+o),""!==o&&(n.originalTransform=o,e.style.transform=o),this._textDivProperties.set(e,n),t.appendChild(e)}},_render:function(e){var t=this,n=(0,r.createPromiseCapability)(),s=Object.create(null),o=document.createElement("canvas");if(o.mozOpaque=!0,this._layoutTextCtx=o.getContext("2d",{alpha:!1}),this._textContent)this._processItems(this._textContent.items,this._textContent.styles),n.resolve();else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');this._reader=this._textContentStream.getReader(),function e(){t._reader.read().then(function(i){var r=i.value;i.done?n.resolve():(Object.assign(s,r.styles),t._processItems(r.items,s),e())},n.reject)}()}n.promise.then(function(){s=null,e?t._renderTimer=setTimeout(function(){i(t),t._renderTimer=null},e):i(t)},this._capability.reject)},expandTextDivs:function(e){if(this._enhanceTextSelection&&this._renderingDone){null!==this._bounds&&(function(e){for(var t=e._bounds,n=e._viewport,i=function(e,t,n){var i=n.map(function(e,t){return{x1:e.left,y1:e.top,x2:e.right,y2:e.bottom,index:t,x1New:void 0,x2New:void 0}});o(e,i);var r=new Array(n.length);
1return i.forEach(function(e){r[e.index]={left:e.x1New,top:0,right:e.x2New,bottom:0}}),n.map(function(t,n){var s=r[n],o=i[n];o.x1=t.top,o.y1=e-s.right,o.x2=t.bottom,o.y2=e-s.left,o.index=n,o.x1New=void 0,o.x2New=void 0}),o(t,i),i.forEach(function(e){var t=e.index;r[t].top=e.x1New,r[t].bottom=e.x2New}),r}(n.width,n.height,t),s=0;s<i.length;s++){var a=t[s].div,c=e._textDivProperties.get(a);if(0!==c.angle){var l=i[s],u=t[s],d=u.m,h=d[0],p=d[1],f=[[0,0],[0,u.size[1]],[u.size[0],0],u.size],g=new Float64Array(64);f.forEach(function(e,t){var n=r.Util.applyTransform(e,d);g[t+0]=h&&(l.left-n[0])/h,g[t+4]=p&&(l.top-n[1])/p,g[t+8]=h&&(l.right-n[0])/h,g[t+12]=p&&(l.bottom-n[1])/p,g[t+16]=p&&(l.left-n[0])/-p,g[t+20]=h&&(l.top-n[1])/h,g[t+24]=p&&(l.right-n[0])/-p,g[t+28]=h&&(l.bottom-n[1])/h,g[t+32]=h&&(l.left-n[0])/-h,g[t+36]=p&&(l.top-n[1])/-p,g[t+40]=h&&(l.right-n[0])/-h,g[t+44]=p&&(l.bottom-n[1])/-p,g[t+48]=p&&(l.left-n[0])/p,g[t+52]=h&&(l.top-n[1])/-h,g[t+56]=p&&(l.right-n[0])/p,g[t+60]=h&&(l.bottom-n[1])/-h});var m=function(e,t,n){for(var i=0,r=0;r<n;r++){var s=e[t++];s>0&&(i=i?Math.min(s,i):s)}return i},b=1+Math.min(Math.abs(h),Math.abs(p));c.paddingLeft=m(g,32,16)/b,c.paddingTop=m(g,48,16)/b,c.paddingRight=m(g,0,16)/b,c.paddingBottom=m(g,16,16)/b,e._textDivProperties.set(a,c)}else c.paddingLeft=t[s].left-i[s].left,c.paddingTop=t[s].top-i[s].top,c.paddingRight=i[s].right-t[s].right,c.paddingBottom=i[s].bottom-t[s].bottom,e._textDivProperties.set(a,c)}}(this),this._bounds=null);for(var t=0,n=this._textDivs.length;t<n;t++){var i=this._textDivs[t],s=this._textDivProperties.get(i);if(!s.isWhitespace)if(e){var a="",c="";1!==s.scale&&(a="scaleX("+s.scale+")"),0!==s.angle&&(a="rotate("+s.angle+"deg) "+a),0!==s.paddingLeft&&(c+=" padding-left: "+s.paddingLeft/s.scale+"px;",a+=" translateX("+-s.paddingLeft/s.scale+"px)"),0!==s.paddingTop&&(c+=" padding-top: "+s.paddingTop+"px;",a+=" translateY("+-s.paddingTop+"px)"),0!==s.paddingRight&&(c+=" padding-right: "+s.paddingRight/s.scale+"px;"),0!==s.paddingBottom&&(c+=" padding-bottom: "+s.paddingBottom+"px;"),""!==c&&i.setAttribute("style",s.style+c),""!==a&&(i.style.transform=a)}else i.style.padding=0,i.style.transform=s.originalTransform||""}}}},function(e){var t=new a({textContent:e.textContent,textContentStream:e.textContentStream,container:e.container,viewport:e.viewport,textDivs:e.textDivs,textContentItemsStr:e.textContentItemsStr,enhanceTextSelection:e.enhanceTextSelection});return t._render(e.timeout),t}}();t.renderTextLayer=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayer=void 0;var i=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var s=Object.getPrototypeOf(t);return null===s?void 0:e(s,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=n(130),o=n(1);function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=function(){function e(){l(this,e)}return r(e,null,[{key:"create",value:function(e){switch(e.data.annotationType){case o.AnnotationType.LINK:return new h(e);case o.AnnotationType.TEXT:return new p(e);case o.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new g(e);case"Btn":return e.data.radioButton?new b(e):e.data.checkBox?new m(e):new y(e);case"Ch":return new v(e)}return new f(e);case o.AnnotationType.POPUP:return new _(e);case o.AnnotationType.LINE:return new k(e);case o.AnnotationType.SQUARE:return new C(e);case o.AnnotationType.CIRCLE:return new S(e);case o.AnnotationType.POLYLINE:return new T(e);case o.AnnotationType.INK:return new O(e);case o.AnnotationType.POLYGON:return new P(e);case o.AnnotationType.HIGHLIGHT:return new x(e);case o.AnnotationType.UNDERLINE:return new A(e);case o.AnnotationType.SQUIGGLY:return new E(e);case o.AnnotationType.STRIKEOUT:return new M(e);case o.AnnotationType.STAMP:return new I(e);case o.AnnotationType.FILEATTACHMENT:return new R(e);default:return new d(e)}}}]),e}(),d=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];l(this,e),this.isRenderable=n,this.data=t.data,this.layer=t.layer,this.page=t.page,this.viewport=t.viewport,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderInteractiveForms=t.renderInteractiveForms,this.svgFactory=t.svgFactory,n&&(this.container=this._createContainer(i))}return r(e,[{key:"_createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.data,n=this.page,i=this.viewport,r=document.createElement("section"),s=t.rect[2]-t.rect[0],a=t.rect[3]-t.rect[1];r.setAttribute("data-annotation-id",t.id);var c=o.Util.normalizeRect([t.rect[0],n.view[3]-t.rect[1]+n.view[1],t.rect[2],n.view[3]-t.rect[3]+n.view[1]]);if(r.style.transform="matrix("+i.transform.join(",")+")",r.style.transformOrigin=-c[0]+"px "+-c[1]+"px",!e&&t.borderStyle.width>0){r.style.borderWidth=t.borderStyle.width+"px",t.borderStyle.style!==o.AnnotationBorderStyleType.UNDERLINE&&(s-=2*t.borderStyle.width,a-=2*t.borderStyle.width);var l=t.borderStyle.horizontalCornerRadius,u=t.borderStyle.verticalCornerRadius;if(l>0||u>0){var d=l+"px / "+u+"px";r.style.borderRadius=d}switch(t.borderStyle.style){case o.AnnotationBorderStyleType.SOLID:r.style.borderStyle="solid";break;case o.AnnotationBorderStyleType.DASHED:r.style.borderStyle="dashed";break;case o.AnnotationBorderStyleType.BEVELED:(0,o.warn)("Unimplemented border style: beveled");break;case o.AnnotationBorderStyleType.INSET:(0,o.warn)("Unimplemented border style: inset");break;case o.AnnotationBorderStyleType.UNDERLINE:r.style.borderBottomStyle="solid"}t.color?r.style.borderColor=o.Util.makeCssRgb(0|t.color[0],0|t.color[1],0|t.color[2]):r.style.borderWidth=0}return r.style.left=c[0]+"px",r.style.top=c[1]+"px",r.style.width=s+"px",r.style.height=a+"px",r}},{key:"_createPopup",value:function(e,t,n){t||((t=document.createElement("div")).style.height=e.style.height,t.style.width=e.style.width,e.appendChild(t));var i=new w({container:e,trigger:t,color:n.color,title:n.title,contents:n.contents,hideWrapper:!0}).render();i.style.left=e.style.width,e.appendChild(i)}},{key:"render",value:function(){(0,o.unreachable)("Abstract method `AnnotationElement.render` called")}}]),e}(),h=function(e){function t(e){l(this,t);var n=!!(e.data.url||e.data.dest||e.data.action);return a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return c(t,e),r(t,[{key:"render",value:function(){this.container.className="linkAnnotation";var e=this.data,t=this.linkService,n=document.createElement("a");return(0,s.addLinkAttributes)(n,{url:e.url,target:e.newWindow?s.LinkTarget.BLANK:t.externalLinkTarget,rel:t.externalLinkRel}),e.url||(e.action?this._bindNamedAction(n,e.action):this._bindLink(n,e.dest)),this.container.appendChild(n),this.container}}
1,{key:"_bindLink",value:function(e,t){var n=this;e.href=this.linkService.getDestinationHash(t),e.onclick=function(){return t&&n.linkService.navigateTo(t),!1},t&&(e.className="internalLink")}},{key:"_bindNamedAction",value:function(e,t){var n=this;e.href=this.linkService.getAnchorUrl(""),e.onclick=function(){return n.linkService.executeNamedAction(t),!1},e.className="internalLink"}}]),t}(d),p=function(e){function t(e){l(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return c(t,e),r(t,[{key:"render",value:function(){this.container.className="textAnnotation";var e=document.createElement("img");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}}]),t}(d),f=function(e){function t(){return l(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"render",value:function(){return this.container}}]),t}(d),g=function(e){function t(e){l(this,t);var n=e.renderInteractiveForms||!e.data.hasAppearance&&!!e.data.fieldValue;return a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return c(t,e),r(t,[{key:"render",value:function(){this.container.className="textWidgetAnnotation";var e=null;if(this.renderInteractiveForms){if(this.data.multiLine?(e=document.createElement("textarea")).textContent=this.data.fieldValue:((e=document.createElement("input")).type="text",e.setAttribute("value",this.data.fieldValue)),e.disabled=this.data.readOnly,null!==this.data.maxLen&&(e.maxLength=this.data.maxLen),this.data.comb){var t=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;e.classList.add("comb"),e.style.letterSpacing="calc("+t+"px - 1ch)"}}else{(e=document.createElement("div")).textContent=this.data.fieldValue,e.style.verticalAlign="middle",e.style.display="table-cell";var n=null;this.data.fontRefName&&(n=this.page.commonObjs.getData(this.data.fontRefName)),this._setTextStyle(e,n)}return null!==this.data.textAlignment&&(e.style.textAlign=["left","center","right"][this.data.textAlignment]),this.container.appendChild(e),this.container}},{key:"_setTextStyle",value:function(e,t){var n=e.style;n.fontSize=this.data.fontSize+"px",n.direction=this.data.fontDirection<0?"rtl":"ltr",t&&(n.fontWeight=t.black?t.bold?"900":"bold":t.bold?"bold":"normal",n.fontStyle=t.italic?"italic":"normal",n.fontFamily=(t.loadedName?'"'+t.loadedName+'", ':"")+(t.fallbackName||"Helvetica, sans-serif"))}}]),t}(f),m=function(e){function t(e){return l(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,e.renderInteractiveForms))}return c(t,e),r(t,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation checkBox";var e=document.createElement("input");return e.disabled=this.data.readOnly,e.type="checkbox",this.data.fieldValue&&"Off"!==this.data.fieldValue&&e.setAttribute("checked",!0),this.container.appendChild(e),this.container}}]),t}(f),b=function(e){function t(e){return l(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,e.renderInteractiveForms))}return c(t,e),r(t,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation radioButton";var e=document.createElement("input");return e.disabled=this.data.readOnly,e.type="radio",e.name=this.data.fieldName,this.data.fieldValue===this.data.buttonValue&&e.setAttribute("checked",!0),this.container.appendChild(e),this.container}}]),t}(f),y=function(e){function t(){return l(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"render",value:function(){var e=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"render",this).call(this);return e.className="buttonWidgetAnnotation pushButton",e}}]),t}(h),v=function(e){function t(e){return l(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,e.renderInteractiveForms))}return c(t,e),r(t,[{key:"render",value:function(){this.container.className="
1choiceWidgetAnnotation";var e=document.createElement("select");e.disabled=this.data.readOnly,this.data.combo||(e.size=this.data.options.length,this.data.multiSelect&&(e.multiple=!0));for(var t=0,n=this.data.options.length;t<n;t++){var i=this.data.options[t],r=document.createElement("option");r.textContent=i.displayValue,r.value=i.exportValue,this.data.fieldValue.includes(i.displayValue)&&r.setAttribute("selected",!0),e.appendChild(r)}return this.container.appendChild(e),this.container}}]),t}(f),_=function(e){function t(e){l(this,t);var n=!(!e.data.title&&!e.data.contents);return a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return c(t,e),r(t,[{key:"render",value:function(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;var e=this.layer.querySelector('[data-annotation-id="'+this.data.parentId+'"]');if(!e)return this.container;var t=new w({container:this.container,trigger:e,color:this.data.color,title:this.data.title,contents:this.data.contents}),n=parseFloat(e.style.left),i=parseFloat(e.style.width);return this.container.style.transformOrigin=-(n+i)+"px -"+e.style.top,this.container.style.left=n+i+"px",this.container.appendChild(t.render()),this.container}}]),t}(d),w=function(){function e(t){l(this,e),this.container=t.container,this.trigger=t.trigger,this.color=t.color,this.title=t.title,this.contents=t.contents,this.hideWrapper=t.hideWrapper||!1,this.pinned=!1}return r(e,[{key:"render",value:function(){var e=document.createElement("div");e.className="popupWrapper",this.hideElement=this.hideWrapper?e:this.container,this.hideElement.setAttribute("hidden",!0);var t=document.createElement("div");t.className="popup";var n=this.color;n&&(t.style.backgroundColor=o.Util.makeCssRgb(0|.7*(255-n[0])+n[0],0|.7*(255-n[1])+n[1],0|.7*(255-n[2])+n[2]));var i=this._formatContents(this.contents),r=document.createElement("h1");return r.textContent=this.title,this.trigger.addEventListener("click",this._toggle.bind(this)),this.trigger.addEventListener("mouseover",this._show.bind(this,!1)),this.trigger.addEventListener("mouseout",this._hide.bind(this,!1)),t.addEventListener("click",this._hide.bind(this,!0)),t.appendChild(r),t.appendChild(i),e.appendChild(t),e}},{key:"_formatContents",value:function(e){for(var t=document.createElement("p"),n=e.split(/(?:\r\n?|\n)/),i=0,r=n.length;i<r;++i)t.appendChild(document.createTextNode(n[i])),i<r-1&&t.appendChild(document.createElement("br"));return t}},{key:"_toggle",value:function(){this.pinned?this._hide(!0):this._show(!0)}},{key:"_show",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)}},{key:"_hide",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e&&(this.pinned=!1),this.hideElement.hasAttribute("hidden")||this.pinned||(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}}]),e}(),k=function(e){function t(e){l(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,!0))}return c(t,e),r(t,[{key:"render",value:function(){this.container.className="lineAnnotation";var e=this.data,t=this.svgFactory.create(e.rect[2]-e.rect[0],e.rect[3]-e.rect[1]),n=this.svgFactory.createElement("svg:line");return n.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),n.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),n.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),n.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),n.setAttribute("stroke-width",e.borderStyle.width),n.setAttribute("stroke","transparent"),t.appendChild(n),this.container.append(t),this._createPopup(this.container,n,e),this.container}}]),t}(d),C=function(e){function t(e){l(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,!0))}return c(t,e),r(t,[{key:"render",value:function(){this.container.className="squareAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],i=this.svgFactory.create(t,n),r=e.borderStyle.width,s=this.svgFactory.createElement("svg:rect");return s.setAttribute("x",r/2),s.setAttribute("y",r/2),s.setAttribute("width",t-r),s.setAttribute("height",n-r),s.setAttribute("stroke-width",r),s.setAttribute("stroke","transparent"),s.setAttribute("fill","none"),i.appendChild(s),this.container.append(i),this._createPopup(this.container,s,e),this.container}}
1]),t}(d),S=function(e){function t(e){l(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,!0))}return c(t,e),r(t,[{key:"render",value:function(){this.container.className="circleAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],i=this.svgFactory.create(t,n),r=e.borderStyle.width,s=this.svgFactory.createElement("svg:ellipse");return s.setAttribute("cx",t/2),s.setAttribute("cy",n/2),s.setAttribute("rx",t/2-r/2),s.setAttribute("ry",n/2-r/2),s.setAttribute("stroke-width",r),s.setAttribute("stroke","transparent"),s.setAttribute("fill","none"),i.appendChild(s),this.container.append(i),this._createPopup(this.container,s,e),this.container}}]),t}(d),T=function(e){function t(e){l(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents),i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,!0));return i.containerClassName="polylineAnnotation",i.svgElementName="svg:polyline",i}return c(t,e),r(t,[{key:"render",value:function(){this.container.className=this.containerClassName;for(var e=this.data,t=this.svgFactory.create(e.rect[2]-e.rect[0],e.rect[3]-e.rect[1]),n=e.vertices,i=[],r=0,s=n.length;r<s;r++)i.push(n[r].x-e.rect[0]+","+(e.rect[3]-n[r].y));i=i.join(" ");var o=e.borderStyle.width,a=this.svgFactory.createElement(this.svgElementName);return a.setAttribute("points",i),a.setAttribute("stroke-width",o),a.setAttribute("stroke","transparent"),a.setAttribute("fill","none"),t.appendChild(a),this.container.append(t),this._createPopup(this.container,a,e),this.container}}]),t}(d),P=function(e){function t(e){l(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.containerClassName="polygonAnnotation",n.svgElementName="svg:polygon",n}return c(t,e),t}(T),O=function(e){function t(e){l(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents),i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,!0));return i.containerClassName="inkAnnotation",i.svgElementName="svg:polyline",i}return c(t,e),r(t,[{key:"render",value:function(){this.container.className=this.containerClassName;for(var e=this.data,t=this.svgFactory.create(e.rect[2]-e.rect[0],e.rect[3]-e.rect[1]),n=e.inkLists,i=0,r=n.length;i<r;i++){for(var s=n[i],o=[],a=0,c=s.length;a<c;a++)o.push(s[a].x-e.rect[0]+","+(e.rect[3]-s[a].y));o=o.join(" ");var l=e.borderStyle.width,u=this.svgFactory.createElement(this.svgElementName);u.setAttribute("points",o),u.setAttribute("stroke-width",l),u.setAttribute("stroke","transparent"),u.setAttribute("fill","none"),this._createPopup(this.container,u,e),t.appendChild(u)}return this.container.append(t),this.container}}]),t}(d),x=function(e){function t(e){l(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,!0))}return c(t,e),r(t,[{key:"render",value:function(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(d),A=function(e){function t(e){l(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,!0))}return c(t,e),r(t,[{key:"render",value:function(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(d),E=function(e){function t(e){l(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,!0))}return c(t,e),r(t,[{key:"render",value:function(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(d),M=function(e){function t(e){l(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,!0))}return c(t,e),r(t,[{key:"render",value:function(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}
1]),t}(d),I=function(e){function t(e){l(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,!0))}return c(t,e),r(t,[{key:"render",value:function(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(d),R=function(e){function t(e){l(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,!0)),i=n.data.file,r=i.filename,c=i.content;return n.filename=(0,s.getFilenameFromUrl)(r),n.content=c,n.linkService.eventBus&&n.linkService.eventBus.dispatch("fileattachmentannotation",{source:n,id:(0,o.stringToPDFString)(r),filename:r,content:c}),n}return c(t,e),r(t,[{key:"render",value:function(){this.container.className="fileAttachmentAnnotation";var e=document.createElement("div");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.addEventListener("dblclick",this._download.bind(this)),this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}},{key:"_download",value:function(){this.downloadManager?this.downloadManager.downloadData(this.content,this.filename,""):(0,o.warn)("Download cannot be started due to unavailable download manager")}}]),t}(d),L=function(){function e(){l(this,e)}return r(e,null,[{key:"render",value:function(e){for(var t=0,n=e.annotations.length;t<n;t++){var i=e.annotations[t];if(i){var r=u.create({data:i,layer:e.div,page:e.page,viewport:e.viewport,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderInteractiveForms:e.renderInteractiveForms||!1,svgFactory:new s.DOMSVGFactory});r.isRenderable&&e.div.appendChild(r.render())}}}},{key:"update",value:function(e){for(var t=0,n=e.annotations.length;t<n;t++){var i=e.div.querySelector('[data-annotation-id="'+e.annotations[t].id+'"]');i&&(i.style.transform="matrix("+e.viewport.transform.join(",")+")")}e.div.removeAttribute("hidden")}}]),e}();t.AnnotationLayer=L},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var r,s,o=i(1),a=i(130),c=(r=i(4))&&r.__esModule?r:{default:r},l=function(){for(var e=new Uint8Array([137,80,78,71,13,10,26,10]),t=new Int32Array(256),i=0;i<256;i++){for(var r=i,s=0;s<8;s++)r=1&r?3988292384^r>>1&2147483647:r>>1&2147483647;t[i]=r}function a(e,n,i,r){var s=r,o=n.length;i[s]=o>>24&255,i[s+1]=o>>16&255,i[s+2]=o>>8&255,i[s+3]=255&o,i[s+=4]=255&e.charCodeAt(0),i[s+1]=255&e.charCodeAt(1),i[s+2]=255&e.charCodeAt(2),i[s+3]=255&e.charCodeAt(3),i.set(n,s+=4);var a=function(e,n,i){for(var r=-1,s=n;s<i;s++)r=r>>>8^t[255&(r^e[s])];return-1^r}(i,r+4,s+=n.length);i[s]=a>>24&255,i[s+1]=a>>16&255,i[s+2]=a>>8&255,i[s+3]=255&a}function l(e){var t=e.length,n=Math.ceil(t/65535),i=new Uint8Array(2+t+5*n+4),r=0;i[r++]=120,i[r++]=156;for(var s=0;t>65535;)i[r++]=0,i[r++]=255,i[r++]=255,i[r++]=0,i[r++]=0,i.set(e.subarray(s,s+65535),r),r+=65535,s+=65535,t-=65535;i[r++]=1,i[r++]=255&t,i[r++]=t>>8&255,i[r++]=255&~t,i[r++]=(65535&~t)>>8&255,i.set(e.subarray(s),r),r+=e.length-s;var o=function(e,t,n){for(var i=1,r=0,s=0;s<n;++s)r=(r+(i=(i+(255&e[s]))%65521))%65521;return r<<16|i}(e,0,e.length);return i[r++]=o>>24&255,i[r++]=o>>16&255,i[r++]=o>>8&255,i[r++]=255&o,i}return function(t,i,r){return function(t,i,r,s){var u,d,h,p=t.width,f=t.height,g=t.data;switch(i){case o.ImageKind.GRAYSCALE_1BPP:d=0,u=1,h=p+7>>3;break;case o.ImageKind.RGB_24BPP:d=2,u=8,h=3*p;break;case o.ImageKind.RGBA_32BPP:d=6,u=8,h=4*p;break;default:throw new Error("invalid format")}var m,b,y=new Uint8Array((1+h)*f),v=0,_=0;for(m=0;m<f;++m)y[v++]=0,y.set(g.subarray(_,_+h),v),_+=h,v+=h;if(i===o.ImageKind.GRAYSCALE_1BPP&&s)for(v=0,m=0;m<f;m++)for(v++,b=0;b<h;b++)y[v++]^=255;var w=new Uint8Array([p>>24&255,p>>16&255,p>>8&255,255&p,f>>24&255,f>>16&255,f>>8&255,255&f,u,d,0,0,0]),k=function(e){if(!(0,c.default)())return l(e);try{var t;t=parseInt(process.versions.node)>=8?e:new Buffer(e);var i=n(1).deflateSync(t,{level:9});return i instanceof Uint8Array?i:new Uint8Array(i)}catch(r){(0,o.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+r)}return l(e)}(y),C=new Uint8Array(e.length+36+w.length+k.length),S=0;return C.set(e,S),a("IHDR",w,C,S+=e.length),a("IDATA",k,C,S+=12+w.length),S+=12+k.length,a("IEND",new Uint8Array(0),C,S),(0,o.createObjectURL)(C,"image/png",r)}(t,void 0===t.kind?o.ImageKind.GRAYSCALE_1BPP:t.kind,i,r)}}(),u=function(){function e(){this.fontSizeScale=1,this.fontWeight="normal",this.fontSize=0,this.textMatrix=o.IDENTITY_MATRIX,this.fontMatrix=o.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=o.TextRenderingMode.FILL,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}return e.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(e,t){this.x=e,this.y=t}},e}();t.SVGGraphics=s=function(){function e(e){if(Number.isInteger(e))return e.toString();var t=e.toFixed(10),n=t.length-1;if("0"!==t[n])return t;do{n--}while("0"===t[n]);return t.substring(0,"."===t[n]?n:n+1)}function t(t){if(0===t[4]&&0===t[5]){if(0===t[1]&&0===t[2])return 1===t[0]&&1===t[3]?""
1:"scale("+e(t[0])+" "+e(t[3])+")";if(t[0]===t[3]&&t[1]===-t[2])return"rotate("+e(180*Math.acos(t[0])/Math.PI)+")"}else if(1===t[0]&&0===t[1]&&0===t[2]&&1===t[3])return"translate("+e(t[4])+" "+e(t[5])+")";return"matrix("+e(t[0])+" "+e(t[1])+" "+e(t[2])+" "+e(t[3])+" "+e(t[4])+" "+e(t[5])+")"}function n(e,t,n){this.svgFactory=new a.DOMSVGFactory,this.current=new u,this.transformMatrix=o.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=t,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!n}var i="http://www.w3.org/1999/xlink",r=["butt","round","square"],s=["miter","round","bevel"],c=0,d=0;return n.prototype={save:function(){this.transformStack.push(this.transformMatrix);var e=this.current;this.extraStack.push(e),this.current=e.clone()},restore:function(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null},group:function(e){this.save(),this.executeOpTree(e),this.restore()},loadDependencies:function(e){for(var t=this,n=e.fnArray,i=n.length,r=e.argsArray,s=0;s<i;s++)if(o.OPS.dependency===n[s])for(var a=r[s],c=0,l=a.length;c<l;c++){var u,d=a[c],h="g_"===d.substring(0,2);u=new Promise(h?function(e){t.commonObjs.get(d,e)}:function(e){t.objs.get(d,e)}),this.current.dependencies.push(u)}return Promise.all(this.current.dependencies)},transform:function(e,t,n,i,r,s){this.transformMatrix=o.Util.transform(this.transformMatrix,[e,t,n,i,r,s]),this.tgrp=null},getSVG:function(e,t){var n=this;this.viewport=t;var i=this._initialize(t);return this.loadDependencies(e).then(function(){n.transformMatrix=o.IDENTITY_MATRIX;var t=n.convertOpList(e);return n.executeOpTree(t),i})},convertOpList:function(e){var t=e.argsArray,n=e.fnArray,i=n.length,r=[],s=[];for(var a in o.OPS)r[o.OPS[a]]=a;for(var c=0;c<i;c++){var l=n[c];s.push({fnId:l,fn:r[l],args:t[c]})}return function(e){for(var t=[],n=[],i=e.length,r=0;r<i;r++)"save"!==e[r].fn?"restore"===e[r].fn?t=n.pop():t.push(e[r]):(t.push({fnId:92,fn:"group",items:[]}),n.push(t),t=t[t.length-1].items);return t}(s)},executeOpTree:function(e){for(var t=e.length,n=0;n<t;n++){var i=e[n].fn,r=e[n].args;switch(0|e[n].fnId){case o.OPS.beginText:this.beginText();break;case o.OPS.dependency:break;case o.OPS.setLeading:this.setLeading(r);break;case o.OPS.setLeadingMoveText:this.setLeadingMoveText(r[0],r[1]);break;case o.OPS.setFont:this.setFont(r);break;case o.OPS.showText:case o.OPS.showSpacedText:this.showText(r[0]);break;case o.OPS.endText:this.endText();break;case o.OPS.moveText:this.moveText(r[0],r[1]);break;case o.OPS.setCharSpacing:this.setCharSpacing(r[0]);break;case o.OPS.setWordSpacing:this.setWordSpacing(r[0]);break;case o.OPS.setHScale:this.setHScale(r[0]);break;case o.OPS.setTextMatrix:this.setTextMatrix(r[0],r[1],r[2],r[3],r[4],r[5]);break;case o.OPS.setTextRise:this.setTextRise(r[0]);break;case o.OPS.setTextRenderingMode:this.setTextRenderingMode(r[0]);break;case o.OPS.setLineWidth:this.setLineWidth(r[0]);break;case o.OPS.setLineJoin:this.setLineJoin(r[0]);break;case o.OPS.setLineCap:this.setLineCap(r[0]);break;case o.OPS.setMiterLimit:this.setMiterLimit(r[0]);break;case o.OPS.setFillRGBColor:this.setFillRGBColor(r[0],r[1],r[2]);break;case o.OPS.setStrokeRGBColor:this.setStrokeRGBColor(r[0],r[1],r[2]);break;case o.OPS.setDash:this.setDash(r[0],r[1]);break;case o.OPS.setGState:this.setGState(r[0]);break;case o.OPS.fill:this.fill();break;case o.OPS.eoFill:this.eoFill();break;case o.OPS.stroke:this.stroke();break;case o.OPS.fillStroke:this.fillStroke();break;case o.OPS.eoFillStroke:this.eoFillStroke();break;case o.OPS.clip:this.clip("nonzero");break;case o.OPS.eoClip:this.clip("evenodd");break;case o.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case o.OPS.paintJpegXObject:this.paintJpegXObject(r[0],r[1],r[2]);break;case o.OPS.paintImageXObject:this.paintImageXObject(r[0]);break;case o.OPS.paintInlineImageXObject:this.paintInlineImageXObject(r[0]);break;case o.OPS.paintImageMaskXObject:this.paintImageMaskXObject(r[0]);break;case o.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(r[0],r[1]);break;case o.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case o.OPS.closePath:this.closePath();break;case o.OPS.closeStroke:this.closeStroke();break;case o.OPS.closeFillStroke:this.closeFillStroke();break;case o.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case o.OPS.nextLine:this.nextLine();break;case o.OPS.transform:this.transform(r[0],r[1],r[2],r[3],r[4],r[5]);break;case o.OPS.constructPath:this.constructPath(r[0],r[1]);break;case o.OPS.endPath:this.endPath();break;case 92:this.group(e[n].items);break;default:(0,o.warn)("Unimplemented operator "+i)}}},setWordSpacing:function(e){this.current.wordSpacing=e},setCharSpacing:function(e){this.current.charSpacing=e},nextLine:function(){this.moveText(0,this.current.leading)},setTextMatrix:function(t,n,i,r,s,o){var a=this.current;this.current.textMatrix=this.current.lineMatrix=[t,n,i,r,s,o],this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0,a.xcoords=[],a.tspan=this.svgFactory.createElement("svg:tspan"),a.tspan.setAttributeNS(null,"font-family",a.fontFamily),a.tspan.setAttributeNS(null,"font-size",e(a.fontSize)+"px"),a.tspan.setAttributeNS(null,"y",e(-a.y)),a.txtElement=this.svgFactory.createElement("svg:text"),a.txtElement.appendChild(a.tspan)},beginText:function(){this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0,this.current.textMatrix=o.IDENTITY_MATRIX,this.current.lineMatrix=o.IDENTITY_MATRIX,this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.txtElement=this.svgFactory.createElement("svg:text"),this.current.txtgrp=this.svgFactory.createElement("svg:g"),this.current.xcoords=[]},moveText:function(t,n){var i=this.current;this.current.x=this.current.lineX+=t,this.current.y=this.current.lineY+=n,i.xcoords=[],i.tspan=this.svgFactory.createElement("svg:tspan"),i.tspan.setAttributeNS(null,"font-family",
1i.fontFamily),i.tspan.setAttributeNS(null,"font-size",e(i.fontSize)+"px"),i.tspan.setAttributeNS(null,"y",e(-i.y))},showText:function(n){var i=this.current,r=i.font,s=i.fontSize;if(0!==s){var a,c=i.charSpacing,l=i.wordSpacing,u=i.fontDirection,d=i.textHScale*u,h=n.length,p=r.vertical,f=s*i.fontMatrix[0],g=0;for(a=0;a<h;++a){var m=n[a];if(null!==m)if((0,o.isNum)(m))g+=-m*s*.001;else{var b=m.fontChar,y=m.width*f+((m.isSpace?l:0)+c)*u;m.isInFont||r.missingFile?(i.xcoords.push(i.x+g*d),i.tspan.textContent+=b,g+=y):g+=y}else g+=u*l}p?i.y-=g*d:i.x+=g*d,i.tspan.setAttributeNS(null,"x",i.xcoords.map(e).join(" ")),i.tspan.setAttributeNS(null,"y",e(-i.y)),i.tspan.setAttributeNS(null,"font-family",i.fontFamily),i.tspan.setAttributeNS(null,"font-size",e(i.fontSize)+"px"),"normal"!==i.fontStyle&&i.tspan.setAttributeNS(null,"font-style",i.fontStyle),"normal"!==i.fontWeight&&i.tspan.setAttributeNS(null,"font-weight",i.fontWeight);var v=i.textRenderingMode&o.TextRenderingMode.FILL_STROKE_MASK;v===o.TextRenderingMode.FILL||v===o.TextRenderingMode.FILL_STROKE?("#000000"!==i.fillColor&&i.tspan.setAttributeNS(null,"fill",i.fillColor),i.fillAlpha<1&&i.tspan.setAttributeNS(null,"fill-opacity",i.fillAlpha)):i.tspan.setAttributeNS(null,"fill",i.textRenderingMode===o.TextRenderingMode.ADD_TO_PATH?"transparent":"none"),v!==o.TextRenderingMode.STROKE&&v!==o.TextRenderingMode.FILL_STROKE||this._setStrokeAttributes(i.tspan);var _=i.textMatrix;0!==i.textRise&&((_=_.slice())[5]+=i.textRise),i.txtElement.setAttributeNS(null,"transform",t(_)+" scale(1, -1)"),i.txtElement.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.txtElement.appendChild(i.tspan),i.txtgrp.appendChild(i.txtElement),this._ensureTransformGroup().appendChild(i.txtElement)}},setLeadingMoveText:function(e,t){this.setLeading(-t),this.moveText(e,t)},addFontStyle:function(e){this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));var t=(0,o.createObjectURL)(e.data,e.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'+e.loadedName+'"; src: url('+t+"); }\n"},setFont:function(t){var n=this.current,i=this.commonObjs.get(t[0]),r=t[1];this.current.font=i,this.embedFonts&&i.data&&!this.embeddedFonts[i.loadedName]&&(this.addFontStyle(i),this.embeddedFonts[i.loadedName]=i),n.fontMatrix=i.fontMatrix?i.fontMatrix:o.FONT_IDENTITY_MATRIX;var s=i.black?i.bold?"bolder":"bold":i.bold?"bold":"normal",a=i.italic?"italic":"normal";r<0?(r=-r,n.fontDirection=-1):n.fontDirection=1,n.fontSize=r,n.fontFamily=i.loadedName,n.fontWeight=s,n.fontStyle=a,n.tspan=this.svgFactory.createElement("svg:tspan"),n.tspan.setAttributeNS(null,"y",e(-n.y)),n.xcoords=[]},endText:function(){var e=this.current;e.textRenderingMode&o.TextRenderingMode.ADD_TO_PATH_FLAG&&e.txtElement&&e.txtElement.hasChildNodes()&&(e.element=e.txtElement,this.clip("nonzero"),this.endPath())},setLineWidth:function(e){this.current.lineWidth=e},setLineCap:function(e){this.current.lineCap=r[e]},setLineJoin:function(e){this.current.lineJoin=s[e]},setMiterLimit:function(e){this.current.miterLimit=e},setStrokeAlpha:function(e){this.current.strokeAlpha=e},setStrokeRGBColor:function(e,t,n){var i=o.Util.makeCssRgb(e,t,n);this.current.strokeColor=i},setFillAlpha:function(e){this.current.fillAlpha=e},setFillRGBColor:function(e,t,n){var i=o.Util.makeCssRgb(e,t,n);this.current.fillColor=i,this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[]},setDash:function(e,t){this.current.dashArray=e,this.current.dashPhase=t},constructPath:function(t,n){var i=this.current,r=i.x,s=i.y;i.path=this.svgFactory.createElement("svg:path");for(var a=[],c=t.length,l=0,u=0;l<c;l++)switch(0|t[l]){case o.OPS.rectangle:r=n[u++],s=n[u++];var d=r+n[u++],h=s+n[u++];a.push("M",e(r),e(s),"L",e(d),e(s),"L",e(d),e(h),"L",e(r),e(h),"Z");break;case o.OPS.moveTo:r=n[u++],s=n[u++],a.push("M",e(r),e(s));break;case o.OPS.lineTo:r=n[u++],s=n[u++],a.push("L",e(r),e(s));break;case o.OPS.curveTo:r=n[u+4],s=n[u+5],a.push("C",e(n[u]),e(n[u+1]),e(n[u+2]),e(n[u+3]),e(r),e(s)),u+=6;break;case o.OPS.curveTo2:s=n[u+3],a.push("C",e(r=n[u+2]),e(s),e(n[u]),e(n[u+1]),e(n[u+2]),e(n[u+3])),u+=4;break;case o.OPS.curveTo3:r=n[u+2],s=n[u+3],a.push("C",e(n[u]),e(n[u+1]),e(r),e(s),e(r),e(s)),u+=4;break;case o.OPS.closePath:a.push("Z")}i.path.setAttributeNS(null,"d",a.join(" ")),i.path.setAttributeNS(null,"fill","none"),this._ensureTransformGroup().appendChild(i.path),i.element=i.path,i.setCurrentPoint(r,s)},endPath:function(){if(this.pendingClip){var e=this.current,n="clippath"+c;c++;var i=this.svgFactory.createElement("svg:clipPath");i.setAttributeNS(null,"id",n),i.setAttributeNS(null,"transform",t(this.transformMatrix));var r=e.element.cloneNode(!0);r.setAttributeNS(null,"clip-rule","evenodd"===this.pendingClip?"evenodd":"nonzero"),this.pendingClip=null,i.appendChild(r),this.defs.appendChild(i),e.activeClipUrl&&(e.clipGroup=null,this.extraStack.forEach(function(e){e.clipGroup=null}),i.setAttributeNS(null,"clip-path",e.activeClipUrl)),e.activeClipUrl="url(#"+n+")",this.tgrp=null}},clip:function(e){this.pendingClip=e},closePath:function(){var e=this.current;if(e.path){var t=e.path.getAttributeNS(null,"d");e.path.setAttributeNS(null,"d",t+="Z")}},setLeading:function(e){this.current.leading=-e},setTextRise:function(e){this.current.textRise=e},setTextRenderingMode:function(e){this.current.textRenderingMode=e},setHScale:function(e){this.current.textHScale=e/100},setGState:function(e){for(var t=0,n=e.length;t<n;t++){var i=e[t],r=i[0],s=i[1];switch(r){case"LW":this.setLineWidth(s);break;case"LC":this.setLineCap(s);break;case"LJ":this.setLineJoin(s);break;case"ML":this.setMiterLimit(s);break;case"D":this.setDash(s[0],s[1]);break;case"Font":this.setFont(s);break;case"CA":this.setStrokeAlpha(s);break;case"ca":this.setFillAlpha(s);break;default:(0,o.warn)("Unimplemented graphic state "+r)}}},fill:function(){var e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())},stroke:function(){var e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())},_setStrokeAttributes:function(t){var n=this.current;
1t.setAttributeNS(null,"stroke",n.strokeColor),t.setAttributeNS(null,"stroke-opacity",n.strokeAlpha),t.setAttributeNS(null,"stroke-miterlimit",e(n.miterLimit)),t.setAttributeNS(null,"stroke-linecap",n.lineCap),t.setAttributeNS(null,"stroke-linejoin",n.lineJoin),t.setAttributeNS(null,"stroke-width",e(n.lineWidth)+"px"),t.setAttributeNS(null,"stroke-dasharray",n.dashArray.map(e).join(" ")),t.setAttributeNS(null,"stroke-dashoffset",e(n.dashPhase)+"px")},eoFill:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()},fillStroke:function(){this.stroke(),this.fill()},eoFillStroke:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()},closeStroke:function(){this.closePath(),this.stroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},closeEOFillStroke:function(){this.closePath(),this.eoFillStroke()},paintSolidColorImageMask:function(){var e=this.current,t=this.svgFactory.createElement("svg:rect");t.setAttributeNS(null,"x","0"),t.setAttributeNS(null,"y","0"),t.setAttributeNS(null,"width","1px"),t.setAttributeNS(null,"height","1px"),t.setAttributeNS(null,"fill",e.fillColor),this._ensureTransformGroup().appendChild(t)},paintJpegXObject:function(t,n,r){var s=this.objs.get(t),o=this.svgFactory.createElement("svg:image");o.setAttributeNS(i,"xlink:href",s.src),o.setAttributeNS(null,"width",e(n)),o.setAttributeNS(null,"height",e(r)),o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y",e(-r)),o.setAttributeNS(null,"transform","scale("+e(1/n)+" "+e(-1/r)+")"),this._ensureTransformGroup().appendChild(o)},paintImageXObject:function(e){var t=this.objs.get(e);t?this.paintInlineImageXObject(t):(0,o.warn)("Dependent image isn't ready yet")},paintInlineImageXObject:function(t,n){var r=t.width,s=t.height,o=l(t,this.forceDataSchema,!!n),a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width",e(r)),a.setAttributeNS(null,"height",e(s)),this.current.element=a,this.clip("nonzero");var c=this.svgFactory.createElement("svg:image");c.setAttributeNS(i,"xlink:href",o),c.setAttributeNS(null,"x","0"),c.setAttributeNS(null,"y",e(-s)),c.setAttributeNS(null,"width",e(r)+"px"),c.setAttributeNS(null,"height",e(s)+"px"),c.setAttributeNS(null,"transform","scale("+e(1/r)+" "+e(-1/s)+")"),n?n.appendChild(c):this._ensureTransformGroup().appendChild(c)},paintImageMaskXObject:function(t){var n=this.current,i=t.width,r=t.height,s=n.fillColor;n.maskId="mask"+d++;var o=this.svgFactory.createElement("svg:mask");o.setAttributeNS(null,"id",n.maskId);var a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width",e(i)),a.setAttributeNS(null,"height",e(r)),a.setAttributeNS(null,"fill",s),a.setAttributeNS(null,"mask","url(#"+n.maskId+")"),this.defs.appendChild(o),this._ensureTransformGroup().appendChild(a),this.paintInlineImageXObject(t,o)},paintFormXObjectBegin:function(t,n){if(Array.isArray(t)&&6===t.length&&this.transform(t[0],t[1],t[2],t[3],t[4],t[5]),Array.isArray(n)&&4===n.length){var i=n[2]-n[0],r=n[3]-n[1],s=this.svgFactory.createElement("svg:rect");s.setAttributeNS(null,"x",n[0]),s.setAttributeNS(null,"y",n[1]),s.setAttributeNS(null,"width",e(i)),s.setAttributeNS(null,"height",e(r)),this.current.element=s,this.clip("nonzero"),this.endPath()}},paintFormXObjectEnd:function(){},_initialize:function(e){var n=this.svgFactory.create(e.width,e.height),i=this.svgFactory.createElement("svg:defs");n.appendChild(i),this.defs=i;var r=this.svgFactory.createElement("svg:g");return r.setAttributeNS(null,"transform",t(e.transform)),n.appendChild(r),this.svg=r,n},_ensureClipGroup:function(){if(!this.current.clipGroup){var e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(e),this.current.clipGroup=e}return this.current.clipGroup},_ensureTransformGroup:function(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",t(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}},n}(),t.SVGGraphics=s},function(e,t,i){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var r,s=(r=i(137))&&r.__esModule?r:{default:r},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=i(1),c=i(149);function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function d(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){return function i(r,s){try{var o=t[r](s),a=o.value}catch(c){return void n(c)}if(!o.done)return Promise.resolve(a).then(function(e){i("next",e)},function(e){i("throw",e)});e(a)}("next")})}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var p=n(2),f=n(3),g=n(4),m=n("CxY0"),b=/^file:\/\/\/[a-zA-Z]:\//,y=function(){function e(t){var n,i;h(this,e),this.source=t,this.url="file:"===(i=m.parse(n=t.url)).protocol||i.host?i:/^[a-z]:[/\\]/i.test(n)?m.parse("file:///"+n):(i.host||(i.protocol="file:"),i),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequest=null,this._rangeRequestReaders=[]}return o(e,[{key:"getFullReader",value:function(){return(0,a.assert)(!this._fullRequest),this._fullRequest=this.isFsUrl?new S(this):new k(this),this._fullRequest}},{key:"getRangeReader",value:function(e,t){var n=this.isFsUrl?new T(this,e,t):new C(this,e,t);return this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){this._fullRequest&&this._fullRequest.cancel(e),this._rangeRequestReaders.slice(0).forEach(function(t){t.cancel(e)})}}]),e}(),v=function(){function e(t){h(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;var n=t.source;this._contentLength=n.length,this._loaded=0,this._filename=null,this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange,this._readableStream=null,this._readCapability=(0,a.createPromiseCapability)(),this._headersCapability=(0,a.createPromiseCapability)()}var t;return o(e,[{key:"read",value:(t=d(s.default.mark(function e(){var t,n;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:if(!this._done){e.next=4;break}return e.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){e.next=6;break}throw this._storedError;case 6:if(null!==(t=this._readableStream.read())){e.next=10;break}return this._readCapability=(0,a.createPromiseCapability)(),e.abrupt("return",this.read());case 10:return this._loaded+=t.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),n=new Uint8Array(t).buffer,e.abrupt("return",{value:n,done:!1});case 14:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"cancel",value:function(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",function(){t._readCapability.resolve()}),e.on("end",function(){e.destroy(),t._done=!0,t._readCapability.resolve()}),e.on("error",function(e){t._error(e)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new a.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}(),_=function(){function e(t){h(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,a.createPromiseCapability)(),this._isStreamingSupported=!t.source.disableStream}var t;return o(e,[{key:"read",value:(t=d(s.default.mark(function e(){var t,n;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:if(!this._done){e.next=4;break}return e.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){e.next=6;break}throw this._storedError;case 6:if(null!==(t=this._readableStream.read())){e.next=10;break}return this._readCapability=(0,a.createPromiseCapability)(),e.abrupt("return",this.read());case 10:return this._loaded+=t.length,this.onProgress&&this.onProgress({loaded:this._loaded}),n=new Uint8Array(t).buffer,e.abrupt("return",{value:n,done:!1});case 14:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"cancel",value:function(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",function(){t._readCapability.resolve()}),e.on("end",function(){e.destroy(),t._done=!0,t._readCapability.resolve()}),e.on("error",function(e){t._error(e)}),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}();function w(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}var k=function(e){function t(e){h(this,t);var n=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),i=function(t){if(404===t.statusCode){var i=new a.MissingPDFException('Missing PDF "'+n._url+'".');return n._storedError=i,void n._headersCapability.reject(i)}n._headersCapability.resolve(),n._setReadableStream(t);var r=function(e){return n._readableStream.headers[e.toLowerCase()]},s=(0,c.validateRangeRequestCapabilities)({getResponseHeader:r,isHttp:e.isHttp,rangeChunkSize:n._rangeChunkSize,disableRange:n._disableRange}),o=s.suggestedLength;n._isRangeSupported=s.allowRangeRequests,n._contentLength=o||n._contentLength,n._filename=(0,c.extractFilenameFromHeader)(r)};return n._request=null,n._request="http:"===n._url.protocol?f.request(w(n._url,e.httpHeaders),i):g.request(w(n._url,e.httpHeaders),i),n._request.on("error",function(e){n._storedError=e,n._headersCapability.reject(e)}),n._request.end(),n}return u(t,e),t}(v),C=function(e){function t(e,n,i){h(this,t);var r=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));for(var s in r._httpHeaders={},e.httpHeaders){var o=e.httpHeaders[s];void 0!==o&&(r._httpHeaders[s]=o)}r._httpHeaders.Range="bytes="+n+"-"+(i-1);var c=function(e){if(404!==e.statusCode)r._setReadableStream(e);else{var t=new a.MissingPDFException('Missing PDF "'+r._url+'".');r._storedError=t}};return r._request=null,r._request="http:"===r._url.protocol?f.request(w(r._url,r._httpHeaders),c):g.request(w(r._url,r._httpHeaders),c),r._request.on("error",function(e){r._storedError=e}),r._request.end(),r}return u(t,e),t}(_),S=function(e){function t(e){h(this,t);var n=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),i=decodeURIComponent(n._url.path);return b.test(n._url.href)&&(i=i.replace(/^\//,"")),p.lstat(i,function(e,t){if(e)return"ENOENT"===e.code&&(e=new a.MissingPDFException('Missing PDF "'+i+'".')),n._storedError=e,void n._headersCapability.reject(e);n._contentLength=t.size,n._setReadableStream(p.createReadStream(i)),n._headersCapability.resolve()}),n}return u(t,e),t}(v),T=function(e){function t(e,n,i){h(this,t);var r=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),s=decodeURIComponent(r._url.path);return b.test(r._url.href)&&(s=s.replace(/^\//,"")),r._setReadableStream(p.createReadStream(s,{start:n,end:i-1})),r}return u(t,e),t}(_);t.PDFNodeStream=y},function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.validateResponseStatus=t.validateRangeRequestCapabilities=t.extractFilenameFromHeader=t.createResponseStatusError=void 0;var i=n(1),r=n(150);t.createResponseStatusError=function(e,t){return 404===e||0===e&&/^file:/.test(t)?new i.MissingPDFException('Missing PDF "'+t+'".'):new i.UnexpectedResponseException("Unexpected server response ("+e+') while retrieving PDF "'+t+'".',e)},t.extractFilenameFromHeader=function(e){var t=e("Content-Disposition");if(t){var n=(0,r.getFilenameFromContentDispositionHeader)(t);if(/\.pdf$/i.test(n))return n}return null},t.validateRangeRequestCapabilities=function(e){var t=e.getResponseHeader,n=e.isHttp,r=e.rangeChunkSize,s=e.disableRange;(0,i.assert)(r>0,"Range chunk size must be larger than zero");var o={allowRangeRequests:!1,suggestedLength:void 0},a=parseInt(t("Content-Length"),10);return Number.isInteger(a)?(o.suggestedLength=a,a<=2*r||s||!n||"bytes"!==t("Accept-Ranges")||"identity"!==(t("Content-Encoding")||"identity")||(o.allowRangeRequests=!0),o):o},t.validateResponseStatus=function(e){return 200===e||206===e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,s=void 0;try{for(var o,a=e[Symbol.iterator]();!(i=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(c){r=!0,s=c}finally{try{!i&&a.return&&a.return()}finally{if(r)throw s}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.getFilenameFromContentDispositionHeader=function(e){var t=!0,n=o("filename\\*","i").exec(e);if(n){var r=l(n=n[1]);return c(r=d(r=u(r=unescape(r))))}if(n=function(e){for(var t=[],n=void 0,r=o("filename\\*((?!0\\d)\\d+)(\\*?)","ig");null!==(n=r.exec(e));){var s=i(n,4),a=s[1],c=s[2],d=s[3];if((a=parseInt(a,10))in t){if(0===a)break}else t[a]=[c,d]}for(var h=[],p=0;p<t.length&&p in t;++p){var f=i(t[p],2),g=f[0],m=f[1];m=l(m),g&&(m=unescape(m),0===p&&(m=u(m))),h.push(m)}return h.join("")}(e))return c(d(n));if(n=o("filename","i").exec(e)){var s=l(n=n[1]);return c(s=d(s))}function o(e,t){return new RegExp("(?:^|;)\\s*"+e+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',t)}function a(e,n){if(e){if(!/^[\x00-\xFF]+$/.test(n))return n;try{for(var i=new TextDecoder(e,{fatal:!0}),r=new Array(n.length),s=0;s<n.length;++s)r[s]=n.charCodeAt(s);n=i.decode(new Uint8Array(r)),t=!1}catch(o){if(/^utf-?8$/i.test(e))try{n=decodeURIComponent(escape(n)),t=!1}catch(a){}}}return n}function c(e){return t&&/[\x80-\xff]/.test(e)&&(e=a("utf-8",e),t&&(e=a("iso-8859-1",e))),e}function l(e){if('"'===e.charAt(0)){for(var t=e.slice(1).split('\\"'),n=0;n<t.length;++n){var i=t[n].indexOf('"');-1!==i&&(t[n]=t[n].slice(0,i),t.length=n+1),t[n]=t[n].replace(/\\(.)/g,"$1")}e=t.join('"')}return e}function u(e){var t=e.indexOf("'");return-1===t?e:a(e.slice(0,t),e.slice(t+1).replace(/^[^']*'/,""))}function d(e){return"=?"!==e.slice(0,2)||/[\x00-\x19\x80-\xff]/.test(e)?e:e.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(e,t,n,i){if("q"===n||"Q"===n)return a(t,i=(i=i.replace(/_/g," ")).replace(/=([0-9a-fA-F]{2})/g,function(e,t){return String.fromCharCode(parseInt(t,16))}));try{i=atob(i)}catch(r){}return a(t,i)})}return""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var i,r=(i=n(137))&&i.__esModule?i:{default:i},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(1),a=n(149);function c(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){return function i(r,s){try{var o=t[r](s),a=o.value}catch(c){return void n(c)}if(!o.done)return Promise.resolve(a).then(function(e){i("next",e)},function(e){i("throw",e)});e(a)}("next")})}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t,n){return{method:"GET",headers:e,signal:n&&n.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}var d=function(){function e(t){l(this,e),this.source=t,this.isHttp=/^https?:/i.test(t.url),this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return s(e,[{key:"getFullReader",value:function(){return(0,o.assert)(!this._fullRequestReader),this._fullRequestReader=new h(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){var n=new p(this,e,t);return this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEac
1h(function(t){t.cancel(e)})}}]),e}(),h=function(){function e(t){var n=this;l(this,e),this._stream=t,this._reader=null,this._loaded=0,this._filename=null;var i=t.source;for(var r in this._withCredentials=i.withCredentials,this._contentLength=i.length,this._headersCapability=(0,o.createPromiseCapability)(),this._disableRange=i.disableRange||!1,this._rangeChunkSize=i.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!i.disableStream,this._isRangeSupported=!i.disableRange,this._headers=new Headers,this._stream.httpHeaders){var s=this._stream.httpHeaders[r];void 0!==s&&this._headers.append(r,s)}var c=i.url;fetch(c,u(this._headers,this._withCredentials,this._abortController)).then(function(e){if(!(0,a.validateResponseStatus)(e.status))throw(0,a.createResponseStatusError)(e.status,c);n._reader=e.body.getReader(),n._headersCapability.resolve();var t=function(t){return e.headers.get(t)},i=(0,a.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:n._stream.isHttp,rangeChunkSize:n._rangeChunkSize,disableRange:n._disableRange}),r=i.suggestedLength;n._isRangeSupported=i.allowRangeRequests,n._contentLength=r||n._contentLength,n._filename=(0,a.extractFilenameFromHeader)(t),!n._isStreamingSupported&&n._isRangeSupported&&n.cancel(new o.AbortException("streaming is disabled"))}).catch(this._headersCapability.reject),this.onProgress=null}var t;return s(e,[{key:"read",value:(t=c(r.default.mark(function e(){var t,n,i,s;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._headersCapability.promise;case 2:return e.next=4,this._reader.read();case 4:if(n=(t=e.sent).value,!(i=t.done)){e.next=9;break}return e.abrupt("return",{value:n,done:i});case 9:return this._loaded+=n.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),s=new Uint8Array(n).buffer,e.abrupt("return",{value:s,done:!1});case 13:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"cancel",value:function(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}(),p=function(){function e(t,n,i){var r=this;l(this,e),this._stream=t,this._reader=null,this._loaded=0;var s=t.source;for(var c in this._withCredentials=s.withCredentials,this._readCapability=(0,o.createPromiseCapability)(),this._isStreamingSupported=!s.disableStream,"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._headers=new Headers,this._stream.httpHeaders){var d=this._stream.httpHeaders[c];void 0!==d&&this._headers.append(c,d)}this._headers.append("Range","bytes="+n+"-"+(i-1));var h=s.url;fetch(h,u(this._headers,this._withCredentials,this._abortController)).then(function(e){if(!(0,a.validateResponseStatus)(e.status))throw(0,a.createResponseStatusError)(e.status,h);r._readCapability.resolve(),r._reader=e.body.getReader()}),this.onProgress=null}var t;return s(e,[{key:"read",value:(t=c(r.default.mark(function e(){var t,n,i,s;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:return e.next=4,this._reader.read();case 4:if(n=(t=e.sent).value,!(i=t.done)){e.next=9;break}return e.abrupt("return",{value:n,done:i});case 9:return this._loaded+=n.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),s=new Uint8Array(n).buffer,e.abrupt("return",{value:s,done:!1});case 13:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"cancel",value:function(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}();t.PDFFetchStream=d},function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkManager=t.PDFNetworkStream=void 0;var i=a(n(137)),r=n(1),s=n(149),o=a(n(3));function a(e){return e&&e.__esModule?e:{default:e}}function c(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){return function i(r,s){try{var o=t[r](s),a=o.value}catch(c){return void n(c)}if(!o.done)return Promise.resolve(a).then(function(e){i("next",e)},function(e){i("throw",e)});e(a)}("next")})}}function l(e,t){this.url=e,t=t||{},this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&t.httpHeaders||{},this.withCredentials=t.withCredentials||!1,this.getXhr=t.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null),this.loadedRequests=Object.create(null)}function u(e){var t=e.response;return"string"!=typeof t?t:(0,r.stringToBytes)(t).buffer}var d,h,p=function(){try{var e=new XMLHttpRequest;return e.open("GET",o.default.location.href),e.responseType="moz-chunked-arraybuffer","moz-chunked-arraybuffer"===e.responseType}catch(t){return!1}}();function f(e){this._source=e,this._manager=new l(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}function g(e,t){this._manager=e;var n={onHeadersReceived:this._onHeadersReceived.bind(this),onProgressiveData:t.disableStream?null:this._onProgressiveData.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._fullRequestId=e.requestFull(n),this._headersReceivedCapability=(0,r.createPromiseCapability)(),this._disableRange=t.disableRange||!1,this._contentLength=t.length,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}function m(e,t,n){this._manager=e;var i={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=e.requestRange(t,n,i),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}l.prototype={requestRange:function(e,t,n){var i={begin:e,end:t};for(var r in n)i[r]=n[r];return this.request(i)},requestFull:function(e){return this.request(e)},request:function(e){var t=this.getXhr(),n=this.currXhrId++,i=this.pendingRequests[n]={xhr:t};for(var r in t.open("GET",this.url),t.withCredentials=this.withCredentials,this.httpHeaders){var s=this.httpHeaders[r];void 0!==s&&t.setRequestHeader(r,s)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range","bytes="+e.begin+"-"+(e.end-1)),i.expectedStatus=206):i.expectedStatus=200,p&&e.onProgressiveData?(t.responseType="moz-chunked-arraybuffer",i.onProgressiveData=e.onProgressiveData,i.mozChunked=!0):t.responseType="arraybuffer",e.onError&&(t.onerror=function(n){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,n),t.onprogress=this.onProgress.bind(this,n),i.onHeadersReceived=e.onHeadersReceived,i.onDone=e.onDone,i.onError=e.onError,i.onProgress=e.onProgress,t.send(null),n},onProgress:function(e,t){var n=this.pendingRequests[e];if(n){if(n.mozChunked){var i=u(n.xhr);n.onProgressiveData(i)}var r=n.onProgress;r&&r(t)}},onStateChange:function(e,t){var n=this.pendingRequests[e];if(n){var i=n.xhr;if(i.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),4===i.readyState&&e in this.pendingRequests)if(delete this.pendingRequests[e],0===i.status&&this.isHttp)n.onError&&n.onError(i.status);else{var r=i.status||200;
1if(200===r&&206===n.expectedStatus||r===n.expectedStatus){this.loadedRequests[e]=!0;var s=u(i);if(206===r){var o=i.getResponseHeader("Content-Range"),a=/bytes (\d+)-(\d+)\/(\d+)/.exec(o),c=parseInt(a[1],10);n.onDone({begin:c,chunk:s})}else n.onProgressiveData?n.onDone(null):s?n.onDone({begin:0,chunk:s}):n.onError&&n.onError(i.status)}else n.onError&&n.onError(i.status)}}},hasPendingRequests:function(){for(var e in this.pendingRequests)return!0;return!1},getRequestXhr:function(e){return this.pendingRequests[e].xhr},isStreamingRequest:function(e){return!!this.pendingRequests[e].onProgressiveData},isPendingRequest:function(e){return e in this.pendingRequests},isLoadedRequest:function(e){return e in this.loadedRequests},abortAllRequests:function(){for(var e in this.pendingRequests)this.abortRequest(0|e)},abortRequest:function(e){var t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}},f.prototype={_onRangeRequestReaderClosed:function(e){var t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)},getFullReader:function(){return(0,r.assert)(!this._fullRequestReader),this._fullRequestReader=new g(this._manager,this._source),this._fullRequestReader},getRangeReader:function(e,t){var n=new m(this._manager,e,t);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n},cancelAllRequests:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach(function(t){t.cancel(e)})}},g.prototype={_onHeadersReceived:function(){var e=this._fullRequestId,t=this._manager.getRequestXhr(e),n=function(e){return t.getResponseHeader(e)},i=(0,s.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),r=i.suggestedLength;i.allowRangeRequests&&(this._isRangeSupported=!0),this._contentLength=r||this._contentLength,this._filename=(0,s.extractFilenameFromHeader)(n);var o=this._manager;o.isStreamingRequest(e)?this._isStreamingSupported=!0:this._isRangeSupported&&o.abortRequest(e),this._headersReceivedCapability.resolve()},_onProgressiveData:function(e){this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._cachedChunks.push(e)},_onDone:function(e){e&&this._onProgressiveData(e.chunk),this._done=!0,this._cachedChunks.length>0||(this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[])},_onError:function(e){var t=(0,s.createResponseStatusError)(e,this._url);this._storedError=t,this._headersReceivedCapability.reject(t),this._requests.forEach(function(e){e.reject(t)}),this._requests=[],this._cachedChunks=[]},_onProgress:function(e){this.onProgress&&this.onProgress({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})},get filename(){return this._filename},get isRangeSupported(){return this._isRangeSupported},get isStreamingSupported(){return this._isStreamingSupported},get contentLength(){return this._contentLength},get headersReady(){return this._headersReceivedCapability.promise},read:(d=c(i.default.mark(function e(){var t,n;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._storedError){e.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){e.next=5;break}return t=this._cachedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 5:if(!this._done){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return n=(0,r.createPromiseCapability)(),this._requests.push(n),e.abrupt("return",n.promise);case 10:case"end":return e.stop()}},e,this)})),function(){return d.apply(this,arguments)}),cancel:function(e){this._done=!0,this._headersReceivedCapability.reject(e),this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}},m.prototype={_close:function(){this.onClosed&&this.onClosed(this)},_onDone:function(e){var t=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}
1):this._queuedChunk=t,this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._close()},_onProgress:function(e){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:e.loaded})},get isStreamingSupported(){return!1},read:(h=c(i.default.mark(function e(){var t,n;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null===this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt("return",{value:void 0,done:!0});case 6:return n=(0,r.createPromiseCapability)(),this._requests.push(n),e.abrupt("return",n.promise);case 9:case"end":return e.stop()}},e,this)})),function(){return h.apply(this,arguments)}),cancel:function(e){this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}},t.PDFNetworkStream=f,t.NetworkManager=l}])},e.exports=i()},lYJp:function(e,t,n){const i=n("e/Dd"),r=i.getBCHDigit(1335);t.getEncodedBits=function(e,t){const n=e.bit<<3|t;let s=n<<10;for(;i.getBCHDigit(s)-r>=0;)s^=1335<<i.getBCHDigit(s)-r;return 21522^(n<<10|s)}},lZs6:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"Campaign"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"Campaign",plural:"Campaigns",path:"Campaigns",idName:"id",properties:{id:{name:"id",type:"string"},templates:{name:"templates",type:"Array<any>"},parameters:{name:"parameters",type:"Array<any>"},actions:{name:"actions",type:"Array<any>"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{}}}}},louq:function(e,t,n){var i;i=function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,(function(t){return e[t]}).bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NullL10n=t.GenericL10n=t.ProgressBar=t.DownloadManager=t.EventBus=t.PDFFindController=t.PDFHistory=t.DefaultAnnotationLayerFactory=t.AnnotationLayerBuilder=t.DefaultTextLayerFactory=t.TextLayerBuilder=t.SimpleLinkService=t.PDFLinkService=t.PDFPageView=t.PDFSinglePageViewer=t.PDFViewer=void 0;var i=n(1),r=n(10),s=n(3),o=n(8),a=n(11),c=n(12),l=n(14),u=n(16),d=n(17),h=n(20),p=n(22);t.PDFViewer=p.PDFViewer,t.PDFSinglePageViewer=h.PDFSinglePageViewer,t.PDFPageView=d.PDFPageView,t.PDFLinkService=o.PDFLinkService,t.SimpleLinkService=o.SimpleLinkService,t.TextLayerBuilder=r.TextLayerBuilder,t.DefaultTextLayerFactory=r.DefaultTextLayerFactory,t.AnnotationLayerBuilder=i.AnnotationLayerBuilder,t.DefaultAnnotationLayerFactory=i.DefaultAnnotationLayerFactory,t.PDFHistory=u.PDFHistory,t.PDFFindController=l.PDFFindController,t.EventBus=s.EventBus,t.DownloadManager=a.DownloadManager,t.ProgressBar=s.ProgressBar,t.GenericL10n=c.GenericL10n,t.NullL10n=s.NullL10n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultAnnotationLayerFactory=t.AnnotationLayerBuilder=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(2),s=n(3),o=n(8);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var c=function(){function e(t){var n=t.pageDiv,i=t.pdfPage,r=t.linkService,o=t.downloadManager,c=t.imageResourcesPath,l=void 0===c?"":c,u=t.renderInteractiveForms,d=void 0!==u&&u,h=t.l10n,p=void 0===h?s.NullL10n:h;a(this,e),this.pageDiv=n,this.pdfPage=i,this.linkService=r,this.downloadManager=o,this.imageResourcesPath=l,this.renderInteractiveForms=d,this.l10n=p,this.div=null,this._cancelled=!1}return i(e,[{key:"render",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"display";this.pdfPage.getAnnotations({intent:n}).then(function(n){if(!t._cancelled){var i={viewport:e.clone({dontFlip:!0}),div:t.div,annotations:n,page:t.pdfPage,imageResourcesPath:t.imageResourcesPath,renderInteractiveForms:t.renderInteractiveForms,linkService:t.linkService,downloadManager:t.downloadManager};if(t.div)r.AnnotationLayer.update(i);else{if(0===n.length)return;t.div=document.createElement("div"),t.div.className="annotationLayer",t.pageDiv.appendChild(t.div),i.div=t.div,r.AnnotationLayer.render(i),t.l10n.translate(t.div)}}})}},{key:"cancel",value:function(){this._cancelled=!0}},{key:"hide",value:function(){this.div&&this.div.setAttribute("hidden","true")}}]),e}(),l=function(){function e(){a(this,e)}return i(e,[{key:"createAnnotationLayerBuilder",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:s.NullL10n;return new c({pageDiv:e,pdfPage:t,imageResourcesPath:n,renderInteractiveForms:i,linkService:new o.SimpleLinkService,l10n:r})}}]),e}();t.AnnotationLayerBuilder=c,t.DefaultAnnotationLayerFactory=l},function(e,t,i){"use strict";var r;r="undefined"!=typeof window&&window["pdfjs-dist/build/pdf"]?window["pdfjs-dist/build/pdf"]:n("lRFz"),e.exports=r},function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.moveToEndOfArray=t.waitOnEventOrTimeout=t.WaitOnType=t.animationStarted=t.normalizeWheelEventDelta=t.binarySearchFirstItem=t.watchScroll=t.scrollIntoView=t.getOutputScale=t.approximateFraction=t.getPageSizeInches=t.roundToDivide=t.getVisibleElements=t.backtrackBeforeAllVisibleElements=t.parseQueryString=t.noContextMenuHandler=t.getPDFFileNameFromURL=t.ProgressBar=t.EventBus=t.NullL10n=t.TextLayerMode=t.RendererType=t.PresentationModeState=t.isPortraitOrientation=t.isValidRotation=t.VERTICAL_PADDING=t.SCROLLBAR_PADDING=t.MAX_AUTO_SCALE=t.UNKNOWN_SCALE=t.MAX_SCALE=t.MIN_SCALE=t.DEFAULT_SCALE=t.DEFAULT_SCALE_VALUE=t.CSS_UNITS=void 0;var i,r=(i=n(4))&&i.__esModule?i:{default:i},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),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};function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){return function i(r,s){try{var o=t[r](s),a=o.value}catch(c){return void n(c)}if(!o.done)return Promise.resolve(a).then(function(e){i("next",e)},function(e){i("throw",e)});e(a)}("next")})}}function l(e,t){return t?e.replace(/\{\{\s*(\w+)\s*\}\}/g,function(e,n){return n in t?t[n]:"{{"+n+"}}"}):e}var u,d,h,p,f={getLanguage:(p=c(r.default.mark(function e(){return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","en-us");case 1:case"end":return e.stop()}},e,this)})),function(){return p.apply(this,arguments)}),getDirection:(h=c(r.default.mark(function e(){return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","ltr");case 1:case"end":return e.stop()}},e,this)})),function(){return h.apply(this,arguments)}),get:(d=c(r.default.mark(function e(t,n,i){return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l(i,n));case 1:case"end":return e.stop()}},e,this)})),function(e,t,n){return d.apply(this,arguments)}),translate:(u=c(r.default.mark(function e(t){return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}},e,this)})),function(e){return u.apply(this,arguments)})};function g(e,t){var n=0,i=e.length-1;if(0===e.length||!t(e[i]))return e.length;if(t(e[n]))return n;for(;n<i;){var r=n+i>>1;t(e[r])?i=r:n=r+1}return n}function m(e,t,n){if(e<2)return e;var i=t[e].div,r=i.offsetTop+i.clientTop;r>=n&&(r=(i=t[e-1].div).offsetTop+i.clientTop);for(var s=e-2;s>=0&&!((i=t[s].div).offsetTop+i.clientTop+i.clientHeight<=r);--s)e=s;return e}function b(e){for(var t=0,n=e.length;t<n&&""===e[t].trim();)t++;return"data:"===e.substring(t,t+5).toLowerCase()}var y={EVENT:"event",TIMEOUT:"timeout"},v=new Promise(function(e){window.requestAnimationFrame(e)}),_=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.dispatchToDOM,i=void 0!==n&&n;a(this,e),this._listeners=Object.create(null),this._dispatchToDOM=!0===i}return s(e,[{key:"on",value:function(e,t){var n=this._listeners[e];n||(this._listeners[e]=n=[]),n.push(t)}},{key:"off",value:function(e,t){var n=this._listeners[e],i=void 0;!n||(i=n.indexOf(t))<0||n.splice(i,1)}},{key:"dispatch",value:function(e){var t=this._listeners[e];if(t&&0!==t.length){var n=Array.prototype.slice.call(arguments,1);t.slice(0).forEach(function(e){e.apply(null,n)}),this._dispatchToDOM&&this._dispatchDOMEvent(e,n)}else if(this._dispatchToDOM){var i=Array.prototype.slice.call(arguments,1);this._dispatchDOMEvent(e,i)}}},{key:"_dispatchDOMEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this._dispatchToDOM){var n=Object.create(null);if(t&&t.length>0){var i=t[0];for(var r in i){var s=i[r];if("source"!==r)n[r]=s;else if(s===window||s===document)return}}var o=document.createEvent("CustomEvent");o.initCustomEvent(e,!0,!0,n),document.dispatchEvent(o)}}}]),e}(),w=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.height,r=n.width,s=n.units;a(this,e),this.visible=!0,this.div=document.querySelector(t+" .progress"),this.bar=this.div.parentNode,this.height=i||100,this.width=r||100,this.units=s||"%",this.div.style.height=this.height+this.units,this.percent=0}return s(e,[{key:"_updateBar",value:function(){if(this._indeterminate)return this.div.classList.add("indeterminate"),void(this.div.style.width=this.width+this.units);this.div.classList.remove("indeterminate"),this.div.style.width=this.width*this._percent/100+this.units}}
1,{key:"setWidth",value:function(e){if(e){var t=e.parentNode.offsetWidth-e.offsetWidth;t>0&&this.bar.setAttribute("style","width: calc(100% - "+t+"px);")}}},{key:"hide",value:function(){this.visible&&(this.visible=!1,this.bar.classList.add("hidden"),document.body.classList.remove("loadingInProgress"))}},{key:"show",value:function(){this.visible||(this.visible=!0,document.body.classList.add("loadingInProgress"),this.bar.classList.remove("hidden"))}},{key:"percent",get:function(){return this._percent},set:function(e){this._indeterminate=isNaN(e),this._percent=Math.min(Math.max(e,0),100),this._updateBar()}}]),e}();t.CSS_UNITS=96/72,t.DEFAULT_SCALE_VALUE="auto",t.DEFAULT_SCALE=1,t.MIN_SCALE=.1,t.MAX_SCALE=10,t.UNKNOWN_SCALE=0,t.MAX_AUTO_SCALE=1.25,t.SCROLLBAR_PADDING=40,t.VERTICAL_PADDING=5,t.isValidRotation=function(e){return Number.isInteger(e)&&e%90==0},t.isPortraitOrientation=function(e){return e.width<=e.height},t.PresentationModeState={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3},t.RendererType={CANVAS:"canvas",SVG:"svg"},t.TextLayerMode={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2},t.NullL10n=f,t.EventBus=_,t.ProgressBar=w,t.getPDFFileNameFromURL=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!=typeof e)return t;
1if(b(e))return console.warn('getPDFFileNameFromURL: ignoring "data:" URL for performance reasons.'),t;var n=/^(?:(?:[^:]+:)?\/\/[^\/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,i=/[^\/?#=]+\.pdf\b(?!.*\.pdf\b)/i,r=n.exec(e),s=i.exec(r[1])||i.exec(r[2])||i.exec(r[3]);if(s&&(s=s[0]).includes("%"))try{s=i.exec(decodeURIComponent(s))[0]}catch(o){}return s||t},t.noContextMenuHandler=function(e){e.preventDefault()},t.parseQueryString=function(e){for(var t=e.split("&"),n=Object.create(null),i=0,r=t.length;i<r;++i){var s=t[i].split("="),o=s[0].toLowerCase(),a=s.length>1?s[1]:null;n[decodeURIComponent(o)]=decodeURIComponent(a)}return n},t.backtrackBeforeAllVisibleElements=m,t.getVisibleElements=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=e.scrollTop,s=r+e.clientHeight,o=e.scrollLeft,a=o+e.clientWidth;function c(e){var t=e.div;return t.offsetTop+t.clientTop+t.clientHeight>r}function l(e){var t=e.div;return t.offsetLeft+t.clientLeft+t.clientWidth>o}var u=[],d=void 0,h=void 0,p=void 0,f=void 0,b=void 0,y=void 0,v=void 0,_=void 0,w=void 0,k=void 0,C=0===t.length?0:g(t,i?l:c);t.length>0&&!i&&(C=m(C,t,r));for(var S=i?a:-1,T=C,P=t.length;T<P;T++){if(w=(v=(h=(d=t[T]).div).offsetLeft+h.clientLeft)+(_=h.clientWidth),b=(p=h.offsetTop+h.clientTop)+(f=h.clientHeight),-1===S)b>=s&&(S=b);else if((i?v:p)>S)break;b<=r||p>=s||w<=o||v>=a||(y=Math.max(0,r-p)+Math.max(0,b-s),k=Math.max(0,o-v)+Math.max(0,w-a),u.push({id:d.id,x:v,y:p,view:d,percent:(f-y)*(_-k)*100/f/_|0}))}var O=u[0],x=u[u.length-1];return n&&u.sort(function(e,t){var n=e.percent-t.percent;return Math.abs(n)>.001?-n:e.id-t.id}),{first:O,last:x,views:u}},t.roundToDivide=function(e,t){var n=e%t;return 0===n?e:Math.round(e-n+t)},t.getPageSizeInches=function(e){var t=e.userUnit,n=e.rotate,i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,s=void 0;try{for(var o,a=e[Symbol.iterator]();!(i=(o=a.next()).done)&&(n.push(o.value),4!==n.length);i=!0);}catch(c){r=!0,s=c}finally{try{!i&&a.return&&a.return()}finally{if(r)throw s}}return n}(e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(e.view),r=n%180!=0,s=(i[2]-i[0])/72*t,o=(i[3]-i[1])/72*t;return{width:r?o:s,height:r?s:o}},t.approximateFraction=function(e){if(Math.floor(e)===e)return[e,1];var t=1/e;if(t>8)return[1,8];if(Math.floor(t)===t)return[1,t];for(var n=e>1?t:e,i=0,r=1,s=1,o=1;;){var a=i+s,c=r+o;if(c>8)break;n<=a/c?(s=a,o=c):(i=a,r=c)}return n-i/r<s/o-n?n===e?[i,r]:[r,i]:n===e?[s,o]:[o,s]},t.getOutputScale=function(e){var t=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1);return{sx:t,sy:t,scaled:1!==t}},t.scrollIntoView=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.offsetParent;if(i){for(var r=e.offsetTop+e.clientTop,s=e.offsetLeft+e.clientLeft;i.clientHeight===i.scrollHeight&&i.clientWidth===i.scrollWidth||n&&"hidden"===getComputedStyle(i).overflow;)if(i.dataset._scaleY&&(r/=i.dataset._scaleY,s/=i.dataset._scaleX),r+=i.offsetTop,s+=i.offsetLeft,!(i=i.offsetParent))return;t&&(void 0!==t.top&&(r+=t.top),void 0!==t.left&&(i.scrollLeft=s+=t.left)),i.scrollTop=r}else console.error("offsetParent is not set -- cannot scroll")},t.watchScroll=function(e,t){var n=function(n){r||(r=window.requestAnimationFrame(function(){r=null;var n=e.scrollLeft,s=i.lastX;n!==s&&(i.right=n>s),i.lastX=n;var o=e.scrollTop,a=i.lastY;o!==a&&(i.down=o>a),i.lastY=o,t(i)}))},i={right:!0,down:!0,lastX:e.scrollLeft,lastY:e.scrollTop,_eventHandler:n},r=null;return e.addEventListener("scroll",n,!0),i},t.binarySearchFirstItem=g,t.normalizeWheelEventDelta=function(e){var t=Math.sqrt(e.deltaX*e.deltaX+e.deltaY*e.deltaY),n=Math.atan2(e.deltaY,e.deltaX);return-.25*Math.PI<n&&n<.75*Math.PI&&(t=-t),0===e.deltaMode?t/=900:1===e.deltaMode&&(t/=30),t},t.animationStarted=v,t.WaitOnType=y,t.waitOnEventOrTimeout=function(e){var t=e.target,n=e.name,i=e.delay,r=void 0===i?0:i;return new Promise(function(e,i){if("object"!==(void 0===t?"undefined":o(t))||!n||"string"!=typeof n||!(Number.isInteger(r)&&r>
1=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function s(i){t instanceof _?t.off(n,a):t.removeEventListener(n,a),l&&clearTimeout(l),e(i)}var a=s.bind(null,y.EVENT);t instanceof _?t.on(n,a):t.addEventListener(n,a);var c=s.bind(null,y.TIMEOUT),l=setTimeout(c,r)})},t.moveToEndOfArray=function(e,t){for(var n=[],i=e.length,r=0,s=0;s<i;++s)t(e[s])?n.push(e[s]):(e[r]=e[s],++r);for(var o=0;r<i;++o,++r)e[r]=n[o]}},function(e,t,n){"use strict";e.exports=n(5)},function(e,t,n){"use strict";var i=function(){return this}()||Function("return this")(),r=i.regeneratorRuntime&&Object.getOwnPropertyNames(i).indexOf("regeneratorRuntime")>=0,s=r&&i.regeneratorRuntime;if(i.regeneratorRuntime=void 0,e.exports=n(6),r)i.regeneratorRuntime=s;else try{delete i.regeneratorRuntime}catch(o){i.regeneratorRuntime=void 0}},function(e,t,n){"use strict";(function(e){var 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};!function(n){var i=Object.prototype,r=i.hasOwnProperty,s="function"==typeof Symbol?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag",l="object"===t(e),u=n.regeneratorRuntime;if(u)l&&(e.exports=u);else{(u=n.regeneratorRuntime=l?e.exports:{}).wrap=m;var d={},h={};h[o]=function(){return this};var p=Object.getPrototypeOf,f=p&&p(p(O([])));f&&f!==i&&r.call(f,o)&&(h=f);var g=_.prototype=y.prototype=Object.create(h);v.prototype=g.constructor=_,_.constructor=v,_[c]=v.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(g),e},u.awrap=function(e){return{__await:e}},w(k.prototype),k.prototype[a]=function(){return this},u.AsyncIterator=k,u.async=function(e,t,n,i){var r=new k(m(e,t,n,i));return u.isGeneratorFunction(t)?r:r.next().then(function(e){return e.done?e.value:r.next()})},w(g),g[c]="Generator",g[o]=function(){return this},g.toString=function(){return"[object Generator]"},u.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var i=t.pop();if(i in e)return n.value=i,n.done=!1,n}return n.done=!0,n}},u.values=O,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},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,i){return o.type="throw",o.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i],o=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var a=r.call(s,"catchLoc"),c=r.call(s,"finallyLoc");if(a&&c){if(this.prev<s.catchLoc)return n(s.catchLoc,!0);if(this.prev<s.finallyLoc)return n(s.finallyLoc)}else if(a){if(this.prev<s.catchLoc)return n(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return n(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var s=i;break}}s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc&&(s=null);var o=s?s.completion:{};return o.type=e,o.arg=t,s?(this.method="next",this.next=s.finallyLoc,d):this.complete(o)},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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];
1if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;T(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}}}function m(e,t,n,i){var r=Object.create((t&&t.prototype instanceof y?t:y).prototype),s=new P(i||[]);return r._invoke=function(e,t,n){var i="suspendedStart";return function(r,s){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw s;return{value:void 0,done:!0}}for(n.method=r,n.arg=s;;){var o=n.delegate;if(o){var a=C(o,n);if(a){if(a===d)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var c=b(e,t,n);if("normal"===c.type){if(i=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i="completed",n.method="throw",n.arg=c.arg)}}}(e,n,s),r}function b(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(i){return{type:"throw",arg:i}}}function y(){}function v(){}function _(){}function w(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function k(e){function n(i,s,o,a){var c=b(e[i],e,s);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"===(void 0===u?"undefined":t(u))&&r.call(u,"__await")?Promise.resolve(u.__await).then(function(e){n("next",e,o,a)},function(e){n("throw",e,o,a)}):Promise.resolve(u).then(function(e){l.value=e,o(l)},a)}a(c.arg)}var i;this._invoke=function(e,t){function r(){return new Promise(function(i,r){n(e,t,i,r)})}return i=i?i.then(r,r):r()}}function C(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var i=b(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var r=i.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function O(e){if(e){var t=e[o];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(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:x}}function x(){return{value:void 0,done:!0}}}(function(){return this}()||Function("return this")())}).call(this,n(7)(e))},function(e,t,n){"use strict";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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleLinkService=t.PDFLinkService=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=n(9),o=n(3);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.eventBus,i=t.externalLinkTarget,r=void 0===i?null:i,o=t.externalLinkRel,c=void 0===o?null:o;a(this,e),this.eventBus=n||(0,s.getGlobalEventBus)(),this.externalLinkTarget=r,this.externalLinkRel=c,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null,this._pagesRefCache=null}return r(e,[{key:"setDocument",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.baseUrl=t,this.pdfDocument=e,this._pagesRefCache=Object.create(null)}}
1,{key:"setViewer",value:function(e){this.pdfViewer=e}},{key:"setHistory",value:function(e){this.pdfHistory=e}},{key:"navigateTo",value:function(e){var t=this,n=function n(i){var r=i.namedDest,s=i.explicitDest,o=s[0],a=void 0;if(o instanceof Object){if(null===(a=t._cachedPageNumber(o)))return void t.pdfDocument.getPageIndex(o).then(function(e){t.cachePageRef(e+1,o),n({namedDest:r,explicitDest:s})}).catch(function(){console.error('PDFLinkService.navigateTo: "'+o+'" is not a valid page reference, for dest="'+e+'".')})}else{if(!Number.isInteger(o))return void console.error('PDFLinkService.navigateTo: "'+o+'" is not a valid destination reference, for dest="'+e+'".');a=o+1}!a||a<1||a>t.pagesCount?console.error('PDFLinkService.navigateTo: "'+a+'" is not a valid page number, for dest="'+e+'".'):(t.pdfHistory&&(t.pdfHistory.pushCurrentPosition(),t.pdfHistory.push({namedDest:r,explicitDest:s,pageNumber:a})),t.pdfViewer.scrollPageIntoView({pageNumber:a,destArray:s}))};new Promise(function(n,i){"string"!=typeof e?n({namedDest:"",explicitDest:e}):t.pdfDocument.getDestination(e).then(function(t){n({namedDest:e,explicitDest:t})})}).then(function(t){Array.isArray(t.explicitDest)?n(t):console.error('PDFLinkService.navigateTo: "'+t.explicitDest+'" is not a valid destination array, for dest="'+e+'".')})}},{key:"getDestinationHash",value:function(e){if("string"==typeof e)return this.getAnchorUrl("#"+escape(e));if(Array.isArray(e)){var t=JSON.stringify(e);return this.getAnchorUrl("#"+escape(t))}return this.getAnchorUrl("")}},{key:"getAnchorUrl",value:function(e){return(this.baseUrl||"")+e}},{key:"setHash",value:function(e){var t=void 0,n=void 0;if(e.includes("=")){var r=(0,o.parseQueryString)(e);if("search"in r&&this.eventBus.dispatch("findfromurlhash",{source:this,query:r.search.replace(/"/g,""),phraseSearch:"true"===r.phrase}),"nameddest"in r)return void this.navigateTo(r.nameddest);if("page"in r&&(t=0|r.page||1),"zoom"in r){var s=r.zoom.split(","),a=s[0],c=parseFloat(a);a.includes("Fit")?"Fit"===a||"FitB"===a?n=[null,{name:a}]:"FitH"===a||"FitBH"===a||"FitV"===a||"FitBV"===a?n=[null,{name:a},s.length>1?0|s[1]:null]:"FitR"===a?5!==s.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):n=[null,{name:a},0|s[1],0|s[2],0|s[3],0|s[4]]:console.error('PDFLinkService.setHash: "'+a+'" is not a valid zoom value.'):n=[null,{name:"XYZ"},s.length>1?0|s[1]:null,s.length>2?0|s[2]:null,c?c/100:a]}n?this.pdfViewer.scrollPageIntoView({pageNumber:t||this.page,destArray:n,allowNegativeOffset:!0}):t&&(this.page=t),"pagemode"in r&&this.eventBus.dispatch("pagemode",{source:this,mode:r.pagemode})}else{n=unescape(e);try{n=JSON.parse(n),Array.isArray(n)||(n=n.toString())}catch(l){}if("string"==typeof n||function(e){if(!Array.isArray(e))return!1;var t=e.length,n=!0;if(t<2)return!1;var r=e[0];if(!("object"===(void 0===r?"undefined":i(r))&&Number.isInteger(r.num)&&Number.isInteger(r.gen)||Number.isInteger(r)&&r>=0))return!1;var s=e[1];if("object"!==(void 0===s?"undefined":i(s))||"string"!=typeof s.name)return!1;switch(s.name){case"XYZ":if(5!==t)return!1;break;case"Fit":case"FitB":return 2===t;case"FitH":case"FitBH":case"FitV":case"FitBV":if(3!==t)return!1;break;case"FitR":if(6!==t)return!1;n=!1;break;default:return!1}for(var o=2;o<t;o++){var a=e[o];if(!("number"==typeof a||n&&null===a))return!1}return!0}(n))return void this.navigateTo(n);console.error('PDFLinkService.setHash: "'+unescape(e)+'" is not a valid destination.')}}},{key:"executeNamedAction",value:function(e){switch(e){case"GoBack":this.pdfHistory&&this.pdfHistory.back();break;case"GoForward":this.pdfHistory&&this.pdfHistory.forward();break;case"NextPage":this.page<this.pagesCount&&this.page++;break;case"PrevPage":this.page>1&&this.page--;break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1}this.eventBus.dispatch("namedaction",{source:this,action:e})}},{key:"cachePageRef",value:function(e,t){t&&(this._pagesRefCache[t.num+" "+t.gen+" R"]=e)}},{key:"_cachedPageNumber",value:function(e){return this._pagesRefCache&&this._pagesRefCache[e.num+" "+e.gen+" R"]||null}},{key:"pagesCount",get:function(){return this.pdfDocument?this.pdfDocument.numPages:0}},{key:"page",get:function(){return this.pdfViewer.currentPageNumber},set:function(e){this.pdfViewer.currentPageNumber=e}},{key:"rotation",get:function(){return this.pdfViewer.pagesRotation},set:function(e){this.pdfViewer.pagesRotation=e}}]),e}(),l=function(){function e(){a(this,e),this.externalLinkTarget=null,this.externalLinkRel=null}return r(e,[{key:"navigateTo",value:function(e){}},{key:"getDestinationHash",value:function(e){return"#"}},{key:"getAnchorUrl",value:function(e){return"#"}},{key:"setHash",value:function(e){}},{key:"executeNamedAction",value:function(e){}},{key:"cachePageRef",value:function(e,t){}},{key:"pagesCount",get:function(){return 0}},{key:"page",get:function(){return 0},set:function(e){}},{key:"rotation",get:function(){return 0},set:function(e){}}]),e}();t.PDFLinkService=c,t.SimpleLinkService=l},function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.getGlobalEventBus=t.attachDOMEventsToEventBus=void 0;var i=n(3);function r(e){e.on("documentload",function(){var e=document.createEvent("CustomEvent");e.initCustomEvent("documentload",!0,!0,{}),window.dispatchEvent(e)}),e.on("pagerendered",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagerendered",!0,!0,{pageNumber:e.pageNumber,cssTransform:e.cssTransform}),e.source.div.dispatchEvent(t)}),e.on("textlayerrendered",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("textlayerrendered",!0,!0,{pageNumber:e.pageNumber}),e.source.textLayerDiv.dispatchEvent(t)}),e.on("pagechange",function(e){var t=document.createEvent("UIEvents");t.initUIEvent("pagechange",!0,!0,window,0),t.pageNumber=e.pageNumber,e.source.container.dispatchEvent(t)}),e.on("pagesinit",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagesinit",!0,!0,null),e.source.container.dispatchEvent(t)}),e.on("pagesloaded",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagesloaded",!0,!0,{pagesCount:e.pagesCount}),e.source.container.dispatchEvent(t)}),e.on("scalechange",function(e){var t=document.createEvent("UIEvents");t.initUIEvent("scalechange",!0,!0,window,0),t.scale=e.scale,t.presetValue=e.presetValue,e.source.container.dispatchEvent(t)}),e.on("updateviewarea",function(e){var t=document.createEvent("UIEvents");t.initUIEvent("updateviewarea",!0,!0,window,0),t.location=e.location,e.source.container.dispatchEvent(t)}),e.on("find",function(e){if(e.source!==window){var t=document.createEvent("CustomEvent");t.initCustomEvent("find"+e.type,!0,!0,{query:e.query,phraseSearch:e.phraseSearch,caseSensitive:e.caseSensitive,highlightAll:e.highlightAll,findPrevious:e.findPrevious}),window.dispatchEvent(t)}}),e.on("attachmentsloaded",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("attachmentsloaded",!0,!0,{attachmentsCount:e.attachmentsCount}),e.source.container.dispatchEvent(t)}),e.on("sidebarviewchanged",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("sidebarviewchanged",!0,!0,{view:e.view}),e.source.outerContainer.dispatchEvent(t)}),e.on("pagemode",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagemode",!0,!0,{mode:e.mode}),e.source.pdfViewer.container.dispatchEvent(t)}),e.on("namedaction",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("namedaction",!0,!0,{action:e.action}),e.source.pdfViewer.container.dispatchEvent(t)}),e.on("presentationmodechanged",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("presentationmodechanged",!0,!0,{active:e.active,switchInProgress:e.switchInProgress}),window.dispatchEvent(t)}),e.on("outlineloaded",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("outlineloaded",!0,!0,{outlineCount:e.outlineCount}),e.source.container.dispatchEvent(t)})}var s=null;t.attachDOMEventsToEventBus=r,t.getGlobalEventBus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return s||(s=new i.EventBus({dispatchToDOM:e}),e||r(s)),s}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultTextLayerFactory=t.TextLayerBuilder=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(9),s=n(2),o=n(3);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var c=function(){function e(t){var n=t.textLayerDiv,i=t.eventBus,s=t.pageIndex,o=t.viewport,c=t.findController,l=void 0===c?null:c,u=t.enhanceTextSelection,d=void 0!==u&&u;a(this,e),this.textLayerDiv=n,this.eventBus=i||(0,r.getGlobalEventBus)(),this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageIdx=s,this.pageNumber=this.pageIdx+1,this.matches=[],this.viewport=o,this.textDivs=[],this.findController=l,this.textLayerRenderTask=null,this.enhanceTextSelection=d,this._boundEvents=Object.create(null),this._bindEvents(),this._bindMouse()}return i(e,[{key:"_finishRendering",value:function(){if(this.renderingDone=!0,!this.enhanceTextSelection){var e=document.createElement("div");e.className="endOfContent",this.textLayerDiv.appendChild(e)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}},{key:"render",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if((this.textContent||this.textContentStream)&&!this.renderingDone){this.cancel(),this.textDivs=[];var n=document.createDocumentFragment();this.textLayerRenderTask=(0,s.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:n,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:t,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then(function(){e.textLayerDiv.appendChild(n),e._finishRendering(),e.updateMatches()},function(e){})}}},{key:"cancel",value:function(){this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null)}},{key:"setTextContentStream",value:function(e){this.cancel(),this.textContentStream=e}},{key:"setTextContent",value:function(e){this.cancel(),this.textContent=e}},{key:"convertMatches",value:function(e,t){var n=0,i=0,r=this.textContentItemsStr,s=r.length-1,o=null===this.findController?0:this.findController.state.query.length,a=[];if(!e)return a;for(var c=0,l=e.length;c<l;c++){for(var u=e[c];n!==s&&u>=i+r[n].length;)i+=r[n].length,n++;n===r.length&&console.error("Could not find a matching mapping");var d={begin:{divIdx:n,offset:u-i}};for(u+=t?t[c]:o;n!==s&&u>i+r[n].length;)i+=r[n].length,n++;d.end={divIdx:n,offset:u-i},a.push(d)}return a}},{key:"renderMatches",value:function(e){if(0!==e.length){var t=this.textContentItemsStr,n=this.textDivs,i=null,r=this.pageIdx,s=null!==this.findController&&r===this.findController.selected.pageIdx,a=null===this.findController?-1:this.findController.selected.matchIdx,c={divIdx:-1,offset:void 0},l=a,u=l+1;if(null!==this.findController&&this.findController.state.highlightAll)l=0,u=e.length;else if(!s)return;for(var d=l;d<u;d++){var h=e[d],p=h.begin,f=h.end,g=s&&d===a?" selected":"";if(this.findController&&this.findController.selected.matchIdx===d&&this.findController.selected.pageIdx===r&&(0,o.scrollIntoView)(n[p.divIdx],{top:-50,left:-400},!0),i&&p.divIdx===i.divIdx?v(i.divIdx,i.offset,p.offset):(null!==i&&v(i.divIdx,i.offset,c.offset),y(p)),p.divIdx===f.divIdx)v(p.divIdx,p.offset,f.offset,"highlight"+g);else{v(p.divIdx,p.offset,c.offset,"highlight begin"+g);for(var m=p.divIdx+1,b=f.divIdx;m<b;m++)n[m].className="highlight middle"+g;y(f,"highlight end"+g)}i=f}i&&v(i.divIdx,i.offset,c.offset)}function y(e,t){var i=e.divIdx;n[i].textContent="",v(i,0,e.offset,t)}
1function v(e,i,r,s){var o=n[e],a=t[e].substring(i,r),c=document.createTextNode(a);if(s){var l=document.createElement("span");return l.className=s,l.appendChild(c),void o.appendChild(l)}o.appendChild(c)}}},{key:"updateMatches",value:function(){if(this.renderingDone){for(var e=this.matches,t=this.textDivs,n=this.textContentItemsStr,i=-1,r=0,s=e.length;r<s;r++){for(var o=e[r],a=Math.max(i,o.begin.divIdx),c=o.end.divIdx;a<=c;a++){var l=t[a];l.textContent=n[a],l.className=""}i=o.end.divIdx+1}if(this.findController&&this.findController.highlightMatches){var u=void 0,d=void 0;null!==this.findController&&(u=this.findController.pageMatches[this.pageIdx]||null,d=this.findController.pageMatchesLength&&this.findController.pageMatchesLength[this.pageIdx]||null),this.matches=this.convertMatches(u,d),this.renderMatches(this.matches)}}}},{key:"_bindEvents",value:function(){var e=this,t=this.eventBus,n=this._boundEvents;n.pageCancelled=function(i){if(i.pageNumber===e.pageNumber)if(e.textLayerRenderTask)console.error("TextLayerBuilder._bindEvents: `this.cancel()` should have been called when the page was reset, or rendering cancelled.");else for(var r in n)t.off(r.toLowerCase(),n[r]),delete n[r]},n.updateTextLayerMatches=function(t){t.pageIndex!==e.pageIdx&&-1!==t.pageIndex||e.updateMatches()},t.on("pagecancelled",n.pageCancelled),t.on("updatetextlayermatches",n.updateTextLayerMatches)}},{key:"_bindMouse",value:function(){var e=this,t=this.textLayerDiv,n=null;t.addEventListener("mousedown",function(i){if(e.enhanceTextSelection&&e.textLayerRenderTask)return e.textLayerRenderTask.expandTextDivs(!0),void(n&&(clearTimeout(n),n=null));var r=t.querySelector(".endOfContent");if(r){var s=i.target!==t;if(s=s&&"none"!==window.getComputedStyle(r).getPropertyValue("-moz-user-select")){var o=t.getBoundingClientRect(),a=Math.max(0,(i.pageY-o.top)/o.height);r.style.top=(100*a).toFixed(2)+"%"}r.classList.add("active")}}),t.addEventListener("mouseup",function(){if(e.enhanceTextSelection&&e.textLayerRenderTask)n=setTimeout(function(){e.textLayerRenderTask&&e.textLayerRenderTask.expandTextDivs(!1),n=null},300);else{var i=t.querySelector(".endOfContent");i&&(i.style.top="",i.classList.remove("active"))}})}}]),e}(),l=function(){function e(){a(this,e)}return i(e,[{key:"createTextLayerBuilder",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return new c({textLayerDiv:e,pageIndex:t,viewport:n,enhanceTextSelection:i})}}]),e}();t.TextLayerBuilder=c,t.DefaultTextLayerFactory=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadManager=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(2),s=r.apiCompatibilityParams.disableCreateObjectURL||!1;function o(e,t){var n=document.createElement("a");if(!n.click)throw new Error('DownloadManager: "a.click()" is not supported.');n.href=e,n.target="_parent","download"in n&&(n.download=t),(document.body||document.documentElement).appendChild(n),n.click(),n.remove()}var a=function(){function e(t){var n=t.disableCreateObjectURL,i=void 0===n?s:n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.disableCreateObjectURL=i}return i(e,[{key:"downloadUrl",value:function(e,t){(0,r.createValidAbsoluteUrl)(e,"http://example.com")&&o(e+"#pdfjs.action=download",t)}},{key:"downloadData",value:function(e,t,n){if(navigator.msSaveBlob)return navigator.msSaveBlob(new Blob([e],{type:n}),t);o((0,r.createObjectURL)(e,n,this.disableCreateObjectURL),t)}},{key:"download",value:function(e,t,n){navigator.msSaveBlob?navigator.msSaveBlob(e,n)||this.downloadUrl(t,n):this.disableCreateObjectURL?this.downloadUrl(t,n):o(r.URL.createObjectURL(e),n)}}]),e}();t.DownloadManager=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenericL10n=void 0;var i,r=(i=n(4))&&i.__esModule?i:{default:i},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function o(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){return function i(r,s){try{var o=t[r](s),a=o.value}catch(c){return void n(c)}if(!o.done)return Promise.resolve(a).then(function(e){i("next",e)},function(e){i("throw",e)});e(a)}("next")})}}n(13);var a=document.webL10n,c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._lang=t,this._ready=new Promise(function(e,n){a.setLanguage(t,function(){e(a)})})}var t,n,i,c;return s(e,[{key:"getLanguage",value:(c=o(r.default.mark(function e(){return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return e.abrupt("return",e.sent.getLanguage());case 4:case"end":return e.stop()}},e,this)})),function(){return c.apply(this,arguments)})},{key:"getDirection",value:(i=o(r.default.mark(function e(){return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return e.abrupt("return",e.sent.getDirection());case 4:case"end":return e.stop()}},e,this)})),function(){return i.apply(this,arguments)})},{key:"get",value:(n=o(r.default.mark(function e(t,n,i){return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return e.abrupt("return",e.sent.get(t,n,i));case 4:case"end":return e.stop()}},e,this)})),function(e,t,i){return n.apply(this,arguments)})},{key:"translate",value:(t=o(r.default.mark(function e(t){return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return e.abrupt("return",e.sent.translate(t));case 4:case"end":return e.stop()}},e,this)})),function(e){return t.apply(this,arguments)})}]),e}();t.GenericL10n=c},function(e,t,n){"use strict";document.webL10n=function(e,t,n){var i={},r="",s="textContent",o="",a={},c="loading";function l(e){var n=t.createEvent("Event");n.initEvent("localized",!0,!1),n.language=e,t.dispatchEvent(n)}function u(e,t,n){t=t||function(e){},n=n||function(){};var i=new XMLHttpRequest;i.open("GET",e,!0),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=utf-8"),i.onreadystatechange=function(){4==i.readyState&&(200==i.status||0===i.status?t(i.responseText):n())},i.onerror=n,i.ontimeout=n;try{i.send(null)}catch(r){n()}}function d(e,t,n){var r=i[e];if(!r){if(console.warn("#"+e+" is undefined."),!n)return null;r=n}var s={};for(var o in r){var a=r[o];a=p(a=h(a,t,e,o),t,e),s[o]=a}return s}function h(e,t,n,r){var s=/\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/.exec(e);if(!s||!s.length)return e;var o,c=s[1],l=s[2];return t&&l in t?o=t[l]:l in i&&(o=i[l]),c in a&&(e=(0,a[c])(e,o,n,r)),e}function p(e,t,n){return e.replace(/\{\{\s*(.+?)\s*\}\}/g,function(e,r){return t&&r in t?t[r]:r in i?i[r]:(console.log("argument {{"+r+"}} for #"+n+" is undefined."),e)})}function f(e){var n=function(e){if(!e)return{};var t=e.getAttribute("data-l10n-id"),n=e.getAttribute("data-l10n-args"),i={};if(n)try{i=JSON.parse(n)}catch(r){console.warn("could not parse arguments for #"+t)}return{id:t,args:i}}(e);if(n.id){var i=d(n.id,n.args);if(i){if(i[s]){if(0===function(e){if(e.children)return e.children.length;if(void 0!==e.childElementCount)return e.childElementCount;for(var t=0,n=0;n<e.childNodes.length;n++)t+=1===e.nodeType?1:0;return t}(e))e[s]=i[s];else{for(var r=e.childNodes,o=!1,a=0,c=r.length;a<c;a++)3===r[a].nodeType&&/\S/.test(r[a].nodeValue)&&(o?r[a].nodeValue="":(r[a].nodeValue=i[s],o=!0));if(!o){var l=t.createTextNode(i[s]);e.insertBefore(l,e.firstChild)}}delete i[s]}for(var u in i)e[u]=i[u]}else console.warn("#"+n.id+" is undefined.")}}return a.plural=function(e,t,n,r){var c=parseFloat(t);if(isNaN(c))return e;if(r!=s)return e;a._pluralRules||(a._pluralRules=function(e){function t(e,t){return-1!==t.indexOf(e)}function n(e,t,n){return t<=e&&e<=n}var i={0:function(e){return"other"},1:function(e){return n(e%100,3,10)?"few":0===e?"zero":n(e%100,11,99)?"many":2==e?"two":1==e?"one":"other"},2:function(e){return 0!==e&&e%10==0?"many":2==e?"two":1==e?"one":"other"},3:function(e){return 1==e?"one":"other"},4:function(e){return n(e,0,1)?"one":"other"},5:function(e){return n(e,0,2)&&2!=e?"one":"other"},6:function(e){return 0===e?"zero":e%10==1&&e%100!=11?"one":"other"},7:function(e){return 2==e?"two":1==e?"one":"other"}
1,8:function(e){return n(e,3,6)?"few":n(e,7,10)?"many":2==e?"two":1==e?"one":"other"},9:function(e){return 0===e||1!=e&&n(e%100,1,19)?"few":1==e?"one":"other"},10:function(e){return n(e%10,2,9)&&!n(e%100,11,19)?"few":e%10!=1||n(e%100,11,19)?"other":"one"},11:function(e){return n(e%10,2,4)&&!n(e%100,12,14)?"few":e%10==0||n(e%10,5,9)||n(e%100,11,14)?"many":e%10==1&&e%100!=11?"one":"other"},12:function(e){return n(e,2,4)?"few":1==e?"one":"other"},13:function(e){return n(e%10,2,4)&&!n(e%100,12,14)?"few":1!=e&&n(e%10,0,1)||n(e%10,5,9)||n(e%100,12,14)?"many":1==e?"one":"other"},14:function(e){return n(e%100,3,4)?"few":e%100==2?"two":e%100==1?"one":"other"},15:function(e){return 0===e||n(e%100,2,10)?"few":n(e%100,11,19)?"many":1==e?"one":"other"},16:function(e){return e%10==1&&11!=e?"one":"other"},17:function(e){return 3==e?"few":0===e?"zero":6==e?"many":2==e?"two":1==e?"one":"other"},18:function(e){return 0===e?"zero":n(e,0,2)&&0!==e&&2!=e?"one":"other"},19:function(e){return n(e,2,10)?"few":n(e,0,1)?"one":"other"},20:function(e){return!n(e%10,3,4)&&e%10!=9||n(e%100,10,19)||n(e%100,70,79)||n(e%100,90,99)?e%1e6==0&&0!==e?"many":e%10!=2||t(e%100,[12,72,92])?e%10!=1||t(e%100,[11,71,91])?"other":"one":"two":"few"},21:function(e){return 0===e?"zero":1==e?"one":"other"},22:function(e){return n(e,0,1)||n(e,11,99)?"one":"other"},23:function(e){return n(e%10,1,2)||e%20==0?"one":"other"},24:function(e){return n(e,3,10)||n(e,13,19)?"few":t(e,[2,12])?"two":t(e,[1,11])?"one":"other"}},r={af:3,ak:4,am:4,ar:1,asa:3,az:0,be:11,bem:3,bez:3,bg:3,bh:4,bm:0,bn:3,bo:0,br:20,brx:3,bs:11,ca:3,cgg:3,chr:3,cs:12,cy:17,da:3,de:3,dv:3,dz:0,ee:3,el:3,en:3,eo:3,es:3,et:3,eu:3,fa:0,ff:5,fi:3,fil:4,fo:3,fr:5,fur:3,fy:3,ga:8,gd:24,gl:3,gsw:3,gu:3,guw:4,gv:23,ha:3,haw:3,he:2,hi:4,hr:11,hu:0,id:0,ig:0,ii:0,is:3,it:3,iu:7,ja:0,jmc:3,jv:0,ka:0,kab:5,kaj:3,kcg:3,kde:0,kea:0,kk:3,kl:3,km:0,kn:0,ko:0,ksb:3,ksh:21,ku:3,kw:7,lag:18,lb:3,lg:3,ln:4,lo:0,lt:10,lv:6,mas:3,mg:4,mk:16,ml:3,mn:3,mo:9,mr:3,ms:0,mt:15,my:0,nah:3,naq:7,nb:3,nd:3,ne:3,nl:3,nn:3,no:3,nr:3,nso:4,ny:3,nyn:3,om:3,or:3,pa:3,pap:3,pl:13,ps:3,pt:3,rm:3,ro:9,rof:3,ru:11,rwk:3,sah:0,saq:3,se:7,seh:3,ses:0,sg:0,sh:11,shi:19,sk:12,sl:14,sma:7,smi:7,smj:7,smn:7,sms:7,sn:3,so:3,sq:3,sr:11,ss:3,ssy:3,st:3,sv:3,sw:3,syr:3,ta:3,te:3,teo:3,th:0,ti:4,tig:3,tk:3,tl:4,tn:3,to:0,tr:0,ts:3,tzm:22,uk:11,ur:3,ve:3,vi:0,vun:3,wa:4,wae:3,wo:0,xh:3,xog:3,yo:0,zh:0,zu:3}[e.replace(/-.*$/,"")];return r in i?i[r]:(console.warn("plural form unknown for ["+e+"]"),function(){return"other"})}(o));var l="["+a._pluralRules(c)+"]";return 0===c&&n+"[zero]"in i?e=i[n+"[zero]"][r]:1==c&&n+"[one]"in i?e=i[n+"[one]"][r]:2==c&&n+"[two]"in i?e=i[n+"[two]"][r]:n+l in i?e=i[n+l][r]:n+"[other]"in i&&(e=i[n+"[other]"][r]),e},{get:function(e,t,n){var i,r=e.lastIndexOf("."),o=s;r>0&&(o=e.substring(r+1),e=e.substring(0,r)),n&&((i={})[o]=n);var a=d(e,t,i);return a&&o in a?a[o]:"{{"+e+"}}"},getData:function(){return i},getText:function(){return r},getLanguage:function(){return o},setLanguage:function(e,n){!function(e,n){e&&(e=e.toLowerCase()),n=n||function(){},i={},r="",o="",o=e;var a,d=t.querySelectorAll('link[type="application/l10n"]'),h=d.length;if(0===h){var p=(a=t.querySelector('script[type="application/l10n"]'))?JSON.parse(a.innerHTML):null;if(p&&p.locales&&p.default_locale){if(console.log("using the embedded JSON directory, early way out"),!(i=p.locales[e])){var f=p.default_locale.toLowerCase();for(var g in p.locales){if((g=g.toLowerCase())===e){i=p.locales[e];break}g===f&&(i=p.locales[f])}}n()}else console.log("no resource to load, early way out");return l(e),void(c="complete")}var m,b=0;function y(e){var t=e.href;this.load=function(e,n){!function(e,t,n,o){var a=e.replace(/[^\/]*$/,"")||"./";function c(e){return e.lastIndexOf("\\")<0?e:e.replace(/\\\\/g,"\\").replace(/\\n
1/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'")}u(e,function(e){r+=e,function(e,r){var o={},l=/^\s*|\s*$/,d=/^\s*#|^\s*$/,h=/^\s*\[(.*)\]\s*$/,p=/^\s*@import\s+url\((.*)\)\s*$/i,f=/^([^=\s]*)\s*=\s*(.+)$/;function g(e,n,i){var r=e.replace(l,"").split(/[\r\n]+/),s="*",u=t.split("-",1)[0],g=!1,b="";!function e(){for(;;){if(!r.length)return void i();var l=r.shift();if(!d.test(l)){if(n){if(b=h.exec(l)){s=b[1].toLowerCase(),g="*"!==s&&s!==t&&s!==u;continue}if(g)continue;if(b=p.exec(l))return void m(a+b[1],e)}var y=l.match(f);y&&3==y.length&&(o[y[1]]=c(y[2]))}}}()}function m(e,t){u(e,function(e){g(e,!1,t)},function(){console.warn(e+" not found."),t()})}g(e,!0,function(){!function(e){for(var t in e){var r,o,a=t.lastIndexOf(".");a>0?(r=t.substring(0,a),o=t.substring(a+1)):(r=t,o=s),i[r]||(i[r]={}),i[r][o]=e[t]}n&&n()}(o)})}(e)},o)}(t,e,n,function(){console.warn(t+" not found."),console.warn('"'+e+'" resource not found'),o="",n()})}}m=function(){++b>=h&&(n(),l(e),c="complete")};for(var v=0;v<h;v++)new y(d[v]).load(e,m)}(e,function(){n&&n()})},getDirection:function(){var e=o.split("-",1)[0];return["ar","he","fa","ps","ur"].indexOf(e)>=0?"rtl":"ltr"},translate:function(e){for(var n=function(e){return e?e.querySelectorAll("*[data-l10n-id]"):[]}(e=e||t.documentElement),i=n.length,r=0;r<i;r++)f(n[r]);f(e)},getReadyState:function(){return c},ready:function(n){n&&("complete"==c||"interactive"==c?e.setTimeout(function(){n()}):t.addEventListener&&t.addEventListener("localized",function e(){t.removeEventListener("localized",e),n()}))}}}(window,document)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFindController=t.FindState=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(2),s=n(15),o=n(9),a={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3},c={"\u2018":"'","\u2019":"'","\u201a":"'","\u201b":"'","\u201c":'"',"\u201d":'"',"\u201e":'"',"\u201f":'"',"\xbc":"1/4","\xbd":"1/2","\xbe":"3/4"},l=function(){function e(t){var n=t.linkService,i=t.eventBus,r=void 0===i?(0,o.getGlobalEventBus)():i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._linkService=n,this._eventBus=r,this._reset(),r.on("findbarclose",this._onFindBarClose.bind(this));var s=Object.keys(c).join("");this._normalizationRegex=new RegExp("["+s+"]","g")}return i(e,[{key:"setDocument",value:function(e){this._pdfDocument&&this._reset(),e&&(this._pdfDocument=e,this._firstPageCapability.resolve())}},{key:"executeCommand",value:function(e,t){var n=this,i=this._pdfDocument;
1null!==this._state&&"findagain"===e||(this._dirtyMatch=!0),this._state=t,this._updateUIState(a.PENDING),this._firstPageCapability.promise.then(function(){!n._pdfDocument||i&&n._pdfDocument!==i||(n._extractText(),n._findTimeout&&(clearTimeout(n._findTimeout),n._findTimeout=null),"find"===e?n._findTimeout=setTimeout(function(){n._nextMatch(),n._findTimeout=null},250):n._nextMatch())})}},{key:"_reset",value:function(){this._highlightMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=null,this._state=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null},this._extractTextPromises=[],this._pageContents=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=Object.create(null),this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=(0,r.createPromiseCapability)()}},{key:"_normalize",value:function(e){return e.replace(this._normalizationRegex,function(e){return c[e]})}},{key:"_prepareMatches",value:function(e,t,n){function i(e,t){var n=e[t];if(t<e.length-1&&n.match===e[t+1].match)return n.skipped=!0,!0;for(var i=t-1;i>=0;i--){var r=e[i];if(!r.skipped){if(r.match+r.matchLength<n.match)break;if(r.match+r.matchLength>=n.match+n.matchLength)return n.skipped=!0,!0}}return!1}e.sort(function(e,t){return e.match===t.match?e.matchLength-t.matchLength:e.match-t.match});for(var r=0,s=e.length;r<s;r++)i(e,r)||(t.push(e[r].match),n.push(e[r].matchLength))}},{key:"_isEntireWord",value:function(e,t,n){if(t>0){var i=e.charCodeAt(t),r=e.charCodeAt(t-1);if((0,s.getCharacterType)(i)===(0,s.getCharacterType)(r))return!1}var o=t+n-1;if(o<e.length-1){var a=e.charCodeAt(o),c=e.charCodeAt(o+1);if((0,s.getCharacterType)(a)===(0,s.getCharacterType)(c))return!1}return!0}},{key:"_calculatePhraseMatch",value:function(e,t,n,i){for(var r=[],s=e.length,o=-s;-1!==(o=n.indexOf(e,o+s));)i&&!this._isEntireWord(n,o,s)||r.push(o);this._pageMatches[t]=r}},{key:"_calculateWordMatch",value:function(e,t,n,i){for(var r=[],s=e.match(/\S+/g),o=0,a=s.length;o<a;o++)for(var c=s[o],l=c.length,u=-l;-1!==(u=n.indexOf(c,u+l));)i&&!this._isEntireWord(n,u,l)||r.push({match:u,matchLength:l,skipped:!1});this._pageMatchesLength||(this._pageMatchesLength=[]),this._pageMatchesLength[t]=[],this._pageMatches[t]=[],this._prepareMatches(r,this._pageMatches[t],this._pageMatchesLength[t])}},{key:"_calculateMatch",value:function(e){var t=this._normalize(this._pageContents[e]),n=this._normalize(this._state.query),i=this._state,r=i.entireWord,s=i.phraseSearch;if(0!==n.length){i.caseSensitive||(t=t.toLowerCase(),n=n.toLowerCase()),s?this._calculatePhraseMatch(n,e,t,r):this._calculateWordMatch(n,e,t,r),this._updatePage(e),this._resumePageIdx===e&&(this._resumePageIdx=null,this._nextPageMatch());var o=this._pageMatches[e].length;o>0&&(this._matchesCountTotal+=o,this._updateUIResultsCount())}}},{key:"_extractText",value:function(){var e=this;if(!(this._extractTextPromises.length>0))for(var t=Promise.resolve(),n=function(n,i){var s=(0,r.createPromiseCapability)();e._extractTextPromises[n]=s.promise,t=t.then(function(){return e._pdfDocument.getPage(n+1).then(function(e){return e.getTextContent({normalizeWhitespace:!0})}).then(function(t){for(var i=t.items,r=[],o=0,a=i.length;o<a;o++)r.push(i[o].str);e._pageContents[n]=r.join(""),s.resolve(n)},function(t){console.error("Unable to get text content for page "+(n+1),t),e._pageContents[n]="",s.resolve(n)})})},i=0,s=this._linkService.pagesCount;i<s;i++)n(i)}},{key:"_updatePage",value:function(e){this._selected.pageIdx===e&&(this._linkService.page=e+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:e})}},{key:"_nextMatch",value:function(){var e=this,t=this._state.findPrevious,n=this._linkService.page-1,i=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=n,this._offset.matchIdx=null,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength=null,this._matchesCountTotal=0;for(var r=0;r<i;
1r++)this._updatePage(r),r in this._pendingFindMatches||(this._pendingFindMatches[r]=!0,this._extractTextPromises[r].then(function(t){delete e._pendingFindMatches[t],e._calculateMatch(t)}))}if(""!==this._state.query){if(!this._resumePageIdx){var s=this._offset;if(this._pagesToSearch=i,null!==s.matchIdx){if(!t&&s.matchIdx+1<this._pageMatches[s.pageIdx].length||t&&s.matchIdx>0)return s.matchIdx=t?s.matchIdx-1:s.matchIdx+1,void this._updateMatch(!0);this._advanceOffsetPage(t)}this._nextPageMatch()}}else this._updateUIState(a.FOUND)}},{key:"_matchesReady",value:function(e){var t=this._offset,n=e.length,i=this._state.findPrevious;return n?(t.matchIdx=i?n-1:0,this._updateMatch(!0),!0):(this._advanceOffsetPage(i),!!(t.wrapped&&(t.matchIdx=null,this._pagesToSearch<0))&&(this._updateMatch(!1),!0))}},{key:"_nextPageMatch",value:function(){null!==this._resumePageIdx&&console.error("There can only be one pending page.");var e=null;do{var t=this._offset.pageIdx;if(!(e=this._pageMatches[t])){this._resumePageIdx=t;break}}while(!this._matchesReady(e))}},{key:"_advanceOffsetPage",value:function(e){var t=this._offset,n=this._linkService.pagesCount;t.pageIdx=e?t.pageIdx-1:t.pageIdx+1,t.matchIdx=null,this._pagesToSearch--,(t.pageIdx>=n||t.pageIdx<0)&&(t.pageIdx=e?n-1:0,t.wrapped=!0)}},{key:"_updateMatch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=a.NOT_FOUND,n=this._offset.wrapped;if(this._offset.wrapped=!1,e){var i=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,t=n?a.WRAPPED:a.FOUND,-1!==i&&i!==this._selected.pageIdx&&this._updatePage(i)}this._updateUIState(t,this._state.findPrevious),-1!==this._selected.pageIdx&&this._updatePage(this._selected.pageIdx)}},{key:"_onFindBarClose",value:function(e){var t=this,n=this._pdfDocument;this._firstPageCapability.promise.then(function(){!t._pdfDocument||n&&t._pdfDocument!==n||(t._findTimeout&&(clearTimeout(t._findTimeout),t._findTimeout=null,t._updateUIState(a.FOUND)),t._highlightMatches=!1,t._eventBus.dispatch("updatetextlayermatches",{source:t,pageIndex:-1}))})}},{key:"_requestMatchesCount",value:function(){var e=this._selected,t=e.pageIdx,n=e.matchIdx,i=0,r=this._matchesCountTotal;if(-1!==n){for(var s=0;s<t;s++)i+=this._pageMatches[s]&&this._pageMatches[s].length||0;i+=n+1}return(i<1||i>r)&&(i=r=0),{current:i,total:r}}},{key:"_updateUIResultsCount",value:function(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this._requestMatchesCount()})}},{key:"_updateUIState",value:function(e,t){this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:e,previous:t,matchesCount:this._requestMatchesCount()})}},{key:"highlightMatches",get:function(){return this._highlightMatches}},{key:"pageMatches",get:function(){return this._pageMatches}},{key:"pageMatchesLength",get:function(){return this._pageMatchesLength}},{key:"selected",get:function(){return this._selected}},{key:"state",get:function(){return this._state}}]),e}();t.FindState=a,t.PDFFindController=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};t.CharacterType=i,t.getCharacterType=function(e){return function(e){return e<11904}(e)?function(e){return 0==(65408&e)}(e)?function(e){return 32===e||9===e||13===e||10===e}(e)?i.SPACE:function(e){return e>=97&&e<=122||e>=65&&e<=90}(e)||function(e){return e>=48&&e<=57}(e)||95===e?i.ALPHA_LETTER:i.PUNCT:function(e){return 3584==(65408&e)}(e)?i.THAI_LETTER:160===e?i.SPACE:i.ALPHA_LETTER:function(e){return e>=13312&&e<=40959||e>=63744&&e<=64255}(e)?i.HAN_LETTER:function(e){return e>=12448&&e<=12543}(e)?i.KATAKANA_LETTER:function(e){return e>=12352&&e<=12447}(e)?i.HIRAGANA_LETTER:function(e){return e>=65376&&e<=65439}(e)?i.HALFWIDTH_KATAKANA_LETTER:i.ALPHA_LETTER}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDestArraysEqual=t.isDestHashesEqual=t.PDFHistory=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=n(3),o=n(9);function a(){return document.location.hash}function c(e){var t=unescape(a()).substring(1),n=0|(0,s.parseQueryString)(t).page;return Number.isInteger(n)&&n>0&&n<=e.pagesCount||(n=null),{hash:t,page:n,rotation:e.rotation}}var l=function(){function e(t){var n=this,i=t.linkService,r=t.eventBus;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.linkService=i,this.eventBus=r||(0,o.getGlobalEventBus)(),this.initialized=!1,this.initialBookmark=null,this.initialRotation=null,this._boundEvents=Object.create(null),this._isViewerInPresentationMode=!1,this._isPagesLoaded=!1,this.eventBus.on("presentationmodechanged",function(e){n._isViewerInPresentationMode=e.active||e.switchInProgress}),this.eventBus.on("pagesloaded",function(e){n._isPagesLoaded=!!e.pagesCount})}return r(e,[{key:"initialize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e&&"string"==typeof e){var n=this.initialized&&this.fingerprint!==e;this.fingerprint=e,this.initialized||this._bindEvents();var i=window.history.state;if(this.initialized=!0,this.initialBookmark=null,this.initialRotation=null,this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=a(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(i)||t){var r=c(this.linkService),s=r.hash,o=r.page,l=r.rotation;return!s||n||t?void this._pushOrReplaceState(null,!0):void this._pushOrReplaceState({hash:s,page:o,rotation:l},!0)}var u=i.destination;this._updateInternalState(u,i.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),void 0!==u.rotation&&(this.initialRotation=u.rotation),u.dest?(this.initialBookmark=JSON.stringify(u.dest),this._destination.page=null):u.hash?this.initialBookmark=u.hash:u.page&&(this.initialBookmark="page="+u.page)}else console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.')}},{key:"push",value:function(e){var t=this,n=e.namedDest,i=e.explicitDest,r=e.pageNumber;if(this.initialized)if((!n||"string"==typeof n)&&Array.isArray(i)&&Number.isInteger(r)&&r>0&&r<=this.linkService.pagesCount){var s=n||JSON.stringify(i);if(s){var o=!1;if(this._destination&&(u(this._destination.hash,s)||d(this._destination.dest,i))){if(this._destination.page)return;o=!0}
1this._popStateInProgress&&!o||(this._pushOrReplaceState({dest:i,hash:s,page:r,rotation:this.linkService.rotation},o),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(function(){t._popStateInProgress=!1})))}}else console.error("PDFHistory.push: Invalid parameters.")}},{key:"pushCurrentPosition",value:function(){this.initialized&&!this._popStateInProgress&&this._tryPushCurrentPosition()}},{key:"back",value:function(){if(this.initialized&&!this._popStateInProgress){var e=window.history.state;this._isValidState(e)&&e.uid>0&&window.history.back()}}},{key:"forward",value:function(){if(this.initialized&&!this._popStateInProgress){var e=window.history.state;this._isValidState(e)&&e.uid<this._maxUid&&window.history.forward()}}},{key:"_pushOrReplaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t||!this._destination,i={fingerprint:this.fingerprint,uid:n?this._uid:this._uid+1,destination:e};this._updateInternalState(e,i.uid),n?window.history.replaceState(i,""):(this._maxUid=this._uid,window.history.pushState(i,""))}},{key:"_tryPushCurrentPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._position){var t=this._position;if(e&&((t=Object.assign(Object.create(null),this._position)).temporary=!0),this._destination){if(this._destination.temporary)this._pushOrReplaceState(t,!0);else if(this._destination.hash!==t.hash&&(this._destination.page||!(this._numPositionUpdates<=50))){var n=!1;if(this._destination.page===t.first||this._destination.page===t.page){if(this._destination.dest||!this._destination.first)return;n=!0}this._pushOrReplaceState(t,n)}}else this._pushOrReplaceState(t)}}},{key:"_isValidState",value:function(e){return!!e&&e.fingerprint===this.fingerprint&&!(!Number.isInteger(e.uid)||e.uid<0)&&null!==e.destination&&"object"===i(e.destination)}},{key:"_updateInternalState",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),n&&e&&e.temporary&&delete e.temporary,this._destination=e,this._uid=t,this._numPositionUpdates=0}},{key:"_updateViewarea",value:function(e){var t=this,n=e.location;this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:this._isViewerInPresentationMode?"page="+n.pageNumber:n.pdfOpenParams.substring(1),page:this.linkService.page,first:n.pageNumber,rotation:n.rotation},this._popStateInProgress||(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout(function(){t._popStateInProgress||t._tryPushCurrentPosition(!0),t._updateViewareaTimeout=null},1e3))}},{key:"_popState",value:function(e){var t=this,n=e.state,i=a(),r=this._currentHash!==i;if(this._currentHash=i,n){if(this._isValidState(n)){this._popStateInProgress=!0,r&&(this._blockHashChange++,(0,s.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:1e3}).then(function(){t._blockHashChange--}));var o=n.destination;this._updateInternalState(o,n.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),(0,s.isValidRotation)(o.rotation)&&(this.linkService.rotation=o.rotation),o.dest?this.linkService.navigateTo(o.dest):o.hash?this.linkService.setHash(o.hash):o.page&&(this.linkService.page=o.page),Promise.resolve().then(function(){t._popStateInProgress=!1})}}else{this._uid++;var l=c(this.linkService);this._pushOrReplaceState({hash:l.hash,page:l.page,rotation:l.rotation},!0)}}},{key:"_bindEvents",value:function(){var e=this,t=this._boundEvents,n=this.eventBus;t.updateViewarea=this._updateViewarea.bind(this),t.popState=this._popState.bind(this),t.pageHide=function(t){e._destination&&!e._destination.temporary||e._tryPushCurrentPosition()},n.on("updateviewarea",t.updateViewarea),window.addEventListener("popstate",t.popState),window.addEventListener("pagehide",t.pageHide)}},{key:"popStateInProgress",get:function(){return this.initialized&&(this._popStateInProgress||this._blockHashChange>0)}}]),e}();function u(e,t){return"string"==typeof e&&"string"==typeof t&&(e===t||(0,s.parseQueryString)(e).nameddest===t)}function d(e,t){function n(e,t){if((void 0===e?"undefined":i(e))!==(void 0===t?"undefined":i(t)))return!1;if(Array.isArray(e)||Array.isArray(t))return!1;if(null!==e&&"object"===(void 0===e?"undefined":i(e))&&null!==t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if(!n(e[r],t[r]))return!1;return!0}return e===t||Number.isNaN(e)&&Number.isNaN(t)}if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!==t.length)return!1;for(var r=0,s=e.length;r<s;r++)if(!n(e[r],t[r]))return!1;return!0}t.PDFHistory=l,t.isDestHashesEqual=u,t.isDestArraysEqual=d},function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.PDFPageView=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(3),s=n(2),o=n(9),a=n(18),c=n(19).viewerCompatibilityParams.maxCanvasPixels||16777216,l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=t.container,i=t.defaultViewport;this.id=t.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=t.scale||r.DEFAULT_SCALE,this.viewport=i,this.pdfPageRotate=i.rotation,this.hasRestrictedScaling=!1,this.textLayerMode=Number.isInteger(t.textLayerMode)?t.textLayerMode:r.TextLayerMode.ENABLE,this.imageResourcesPath=t.imageResourcesPath||"",this.renderInteractiveForms=t.renderInteractiveForms||!1,this.useOnlyCssZoom=t.useOnlyCssZoom||!1,this.maxCanvasPixels=t.maxCanvasPixels||c,this.eventBus=t.eventBus||(0,o.getGlobalEventBus)(),this.renderingQueue=t.renderingQueue,this.textLayerFactory=t.textLayerFactory,this.annotationLayerFactory=t.annotationLayerFactory,this.renderer=t.renderer||r.RendererType.CANVAS,this.enableWebGL=t.enableWebGL||!1,this.l10n=t.l10n||r.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=a.RenderingStates.INITIAL,this.resume=null,this.error=null,this.onBeforeDraw=null,this.onAfterDraw=null,this.annotationLayer=null,this.textLayer=null,this.zoomLayer=null;var s=document.createElement("div");s.className="page",s.style.width=Math.floor(this.viewport.width)+"px",s.style.height=Math.floor(this.viewport.height)+"px",s.setAttribute("data-page-number",this.id),this.div=s,n.appendChild(s)}return i(e,[{key:"setPdfPage",value:function(e){this.pdfPage=e,this.pdfPageRotate=e.rotate,this.viewport=e.getViewport(this.scale*r.CSS_UNITS,(this.rotation+this.pdfPageRotate)%360),this.stats=e.stats,this.reset()}},{key:"destroy",value:function(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}},{key:"_resetZoomLayer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.zoomLayer){var t=this.zoomLayer.firstChild;this.paintedViewportMap.delete(t),t.width=0,t.height=0,e&&this.zoomLayer.remove(),this.zoomLayer=null}}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.cancelRendering(t);var n=this.div;n.style.width=Math.floor(this.viewport.width)+"px",n.style.height=Math.floor(this.viewport.height)+"px";for(var i=n.childNodes,r=e&&this.zoomLayer||null,s=t&&this.annotationLayer&&this.annotationLayer.div||null,o=i.length-1;o>=0;o--){var a=i[o];r!==a&&s!==a&&n.removeChild(a)}n.removeAttribute("data-loaded"),s?this.annotationLayer.hide():this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null),r||(this.canvas&&(this.paintedViewportMap.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg),this.loadingIconDiv=document.createElement("div"),this.loadingIconDiv.className="loadingIcon",n.appendChild(this.loadingIconDiv)}},{key:"update",value:function(e,t){if(this.scale=e||this.scale,void 0!==t&&(this.rotation=t),this.viewport=this.viewport.clone({scale:this.scale*r.CSS_UNITS,rotation:(this.rotation+this.pdfPageRotate)%360}),this.svg)return this.cssTransform(this.svg,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0});var n=!1;if(this.canvas&&this.maxCanvasPixels>0){var i=this.outputScale;(Math.floor(this.viewport.width)*i.sx|0)*(Math.floor(this.viewport.height)*i.sy|0)>this.maxCanvasPixels&&(n=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&n)return this.cssTransform(this.canvas,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0});
1this.zoomLayer||this.canvas.hasAttribute("hidden")||(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform(this.zoomLayer.firstChild),this.reset(!0,!0)}},{key:"cancelRendering",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.renderingState;this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.renderingState=a.RenderingStates.INITIAL,this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),!e&&this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null),t!==a.RenderingStates.INITIAL&&this.eventBus.dispatch("pagecancelled",{source:this,pageNumber:this.id,renderingState:t})}},{key:"cssTransform",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.viewport.width,i=this.viewport.height,r=this.div;e.style.width=e.parentNode.style.width=r.style.width=Math.floor(n)+"px",e.style.height=e.parentNode.style.height=r.style.height=Math.floor(i)+"px";var s=this.viewport.rotation-this.paintedViewportMap.get(e).rotation,o=Math.abs(s),a=1,c=1;
190!==o&&270!==o||(a=i/n,c=n/i);var l="rotate("+s+"deg) scale("+a+","+c+")";if(e.style.transform=l,this.textLayer){var u=this.textLayer.viewport,d=this.viewport.rotation-u.rotation,h=Math.abs(d),p=n/u.width;90!==h&&270!==h||(p=n/u.height);var f=this.textLayer.textLayerDiv,g=void 0,m=void 0;switch(h){case 0:g=m=0;break;case 90:g=0,m="-"+f.style.height;break;case 180:g="-"+f.style.width,m="-"+f.style.height;break;case 270:g="-"+f.style.width,m=0;break;default:console.error("Bad rotation value.")}f.style.transform="rotate("+h+"deg) scale("+p+", "+p+") translate("+g+", "+m+")",f.style.transformOrigin="0% 0%"}t&&this.annotationLayer&&this.annotationLayer.render(this.viewport,"display")}},{key:"getPagePoint",value:function(e,t){return this.viewport.convertToPdfPoint(e,t)}},{key:"draw",value:function(){var e=this;if(this.renderingState!==a.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset()),!this.pdfPage)return this.renderingState=a.RenderingStates.FINISHED,Promise.reject(new Error("Page is not loaded"));this.renderingState=a.RenderingStates.RUNNING;var t=this.pdfPage,n=this.div,i=document.createElement("div");i.style.width=n.style.width,i.style.height=n.style.height,i.classList.add("canvasWrapper"),this.annotationLayer&&this.annotationLayer.div?n.insertBefore(i,this.annotationLayer.div):n.appendChild(i);var o=null;if(this.textLayerMode!==r.TextLayerMode.DISABLE&&this.textLayerFactory){var c=document.createElement("div");c.className="textLayer",c.style.width=i.style.width,c.style.height=i.style.height,this.annotationLayer&&this.annotationLayer.div?n.insertBefore(c,this.annotationLayer.div):n.appendChild(c),o=this.textLayerFactory.createTextLayerBuilder(c,this.id-1,this.viewport,this.textLayerMode===r.TextLayerMode.ENABLE_ENHANCE)}this.textLayer=o;var l=null;this.renderingQueue&&(l=function(t){if(!e.renderingQueue.isHighestPriority(e))return e.renderingState=a.RenderingStates.PAUSED,void(e.resume=function(){e.renderingState=a.RenderingStates.RUNNING,t()});t()});var u=function(i){return d===e.paintTask&&(e.paintTask=null),i instanceof s.RenderingCancelledException?(e.error=null,Promise.resolve(void 0)):(e.renderingState=a.RenderingStates.FINISHED,e.loadingIconDiv&&(n.removeChild(e.loadingIconDiv),delete e.loadingIconDiv),e._resetZoomLayer(!0),e.error=i,e.stats=t.stats,e.onAfterDraw&&e.onAfterDraw(),e.eventBus.dispatch("pagerendered",{source:e,pageNumber:e.id,cssTransform:!1}),i?Promise.reject(i):Promise.resolve(void 0))},d=this.renderer===r.RendererType.SVG?this.paintOnSvg(i):this.paintOnCanvas(i);d.onRenderContinue=l,this.paintTask=d;var h=d.promise.then(function(){return u(null).then(function(){if(o){var e=t.streamTextContent({normalizeWhitespace:!0});o.setTextContentStream(e),o.render()}})},function(e){return u(e)});return this.annotationLayerFactory&&(this.annotationLayer||(this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder(n,t,this.imageResourcesPath,this.renderInteractiveForms,this.l10n)),this.annotationLayer.render(this.viewport,"display")),n.setAttribute("data-loaded",!0),this.onBeforeDraw&&this.onBeforeDraw(),h}},{key:"paintOnCanvas",value:function(e){var t=(0,s.createPromiseCapability)(),n={promise:t.promise,onRenderContinue:function(e){e()},cancel:function(){g.cancel()}},i=this.viewport,o=document.createElement("canvas");o.id=this.renderingId,o.setAttribute("hidden","hidden");var a=!0,c=function(){a&&(o.removeAttribute("hidden"),a=!1)};e.appendChild(o),this.canvas=o,o.mozOpaque=!0;var l=o.getContext("2d",{alpha:!1}),u=(0,r.getOutputScale)(l);if(this.outputScale=u,this.useOnlyCssZoom){var d=i.clone({scale:r.CSS_UNITS});u.sx*=d.width/i.width,u.sy*=d.height/i.height,u.scaled=!0}if(this.maxCanvasPixels>0){var h=Math.sqrt(this.maxCanvasPixels/(i.width*i.height));u.sx>h||u.sy>h?(u.sx=h,u.sy=h,u.scaled=!0,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}var p=(0,r.approximateFraction)(u.sx),f=(0,r.approximateFraction)(u.sy);o.width=(0,r.roundToDivide)(i.width*u.sx,p[0]),o.height=(0,r.roundToDivide)(i.height*u.sy,f[0]),o.style.width=(0,r.roundToDivide)(i.width,p[1])+"px",o.style.height=(0,r.roundToDivide)(i.height,f[1])+"px",this.paintedViewportMap.set(o,i);var g=this.pdfPage.render({canvasContext:l,transform:u.scaled?[u.sx,0,0,u.sy,0,0]:null,viewport:this.viewport,enableWebGL:this.enableWebGL,renderInteractiveForms:this.renderInteractiveForms});return g.onContinue=function(e){c(),n.onRenderContinue?n.onRenderContinue(e):e()},g.promise.then(function(){c(),t.resolve(void 0)},function(e){c(),t.reject(e)}),n}},{key:"paintOnSvg",value:function(e){var t=this,n=!1,i=function(){if(n)throw new s.RenderingCancelledException("Rendering cancelled, page "+t.id,"svg")},o=this.pdfPage,c=this.viewport.clone({scale:r.CSS_UNITS});return{promise:o.getOperatorList().then(function(n){return i(),new s.SVGGraphics(o.commonObjs,o.objs).getSVG(n,c).then(function(n){i(),t.svg=n,t.paintedViewportMap.set(n,c),n.style.width=e.style.width,n.style.height=e.style.height,t.renderingState=a.RenderingStates.FINISHED,e.appendChild(n)})}),onRenderContinue:function(e){e()},cancel:function(){n=!0}}}},{key:"setPageLabel",value:function(e){this.pageLabel="string"==typeof e?e:null,null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}},{key:"width",get:function(){return this.viewport.width}},{key:"height",get:function(){return this.viewport.height}}]),e}();t.PDFPageView=l},function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3},s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}return i(e,[{key:"setViewer",value:function(e){this.pdfViewer=e}},{key:"setThumbnailViewer",value:function(e){this.pdfThumbnailViewer=e}},{key:"isHighestPriority",value:function(e){return this.highestPriorityPage===e.renderingId}},{key:"renderHighestPriority",value:function(e){this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),this.pdfViewer.forceRendering(e)||this.pdfThumbnailViewer&&this.isThumbnailViewEnabled&&this.pdfThumbnailViewer.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),3e4))}},{key:"getHighestPriority",value:function(e,t,n){var i=e.views,r=i.length;if(0===r)return!1;for(var s=0;s<r;++s){var o=i[s].view;if(!this.isViewFinished(o))return o}if(n){var a=e.last.id;if(t[a]&&!this.isViewFinished(t[a]))return t[a]}else{var c=e.first.id-2;if(t[c]&&!this.isViewFinished(t[c]))return t[c]}return null}},{key:"isViewFinished",value:function(e){return e.renderingState===r.FINISHED}},{key:"renderView",value:function(e){var t=this;switch(e.renderingState){case r.FINISHED:return!1;case r.PAUSED:this.highestPriorityPage=e.renderingId,e.resume();break;case r.RUNNING:this.highestPriorityPage=e.renderingId;break;case r.INITIAL:this.highestPriorityPage=e.renderingId;var n=function(){t.renderHighestPriority()};e.draw().then(n,n)}return!0}}]),e}();t.RenderingStates=r,t.PDFRenderingQueue=s},function(e,t,n){"use strict";var i=Object.create(null),r="undefined"!=typeof navigator&&navigator.userAgent||"",s=/Android/.test(r);(/\b(iPad|iPhone|iPod)(?=;)/.test(r)||s)&&(i.maxCanvasPixels=5242880),t.viewerCompatibilityParams=Object.freeze(i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFSinglePageViewer=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var s=Object.getPrototypeOf(t);return null===s?void 0:e(s,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},s=n(21),o=n(3),a=n(2),c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.eventBus.on("pagesinit",function(e){n._ensurePageViewVisible()}),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"_resetView",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_resetView",this).call(this),this._previousPageNumber=1,this._shadowViewer=document.createDocumentFragment()}},{key:"_ensurePageViewVisible",value:function(){var e=this._pages[this._currentPageNumber-1],t=this._pages[this._previousPageNumber-1],n=this.viewer.childNodes;switch(n.length){case 0:this.viewer.appendChild(e.div);break;case 1:if(n[0]!==t.div)throw new Error("_ensurePageViewVisible: Unexpected previously visible page.");if(e===t)break;this._shadowViewer.appendChild(t.div),this.viewer.appendChild(e.div),this.container.scrollTop=0;break;default:throw new Error("_ensurePageViewVisible: Only one page should be visible at a time.")}this._previousPageNumber=this._currentPageNumber}},{key:"_scrollUpdate",value:function(){this._updateScrollDown&&this._updateScrollDown(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_scrollUpdate",this).call(this)}},{key:"_scrollIntoView",value:function(e){var t=this,n=e.pageDiv,i=e.pageSpot,r=void 0===i?null:i,s=e.pageNumber,a=void 0===s?null:s;a&&this._setCurrentPageNumber(a);var c=this._currentPageNumber>=this._previousPageNumber,l=this._location;this._ensurePageViewVisible(),(0,o.scrollIntoView)(n,r),this._updateScrollDown=function(){t.scroll.down=c,delete t._updateScrollDown},setTimeout(function(){t._location===l&&(t._updateScrollDown&&t._updateScrollDown(),t.update(
1))},0)}},{key:"_getVisiblePages",value:function(){if(!this.pagesCount)return{views:[]};var e=this._pages[this._currentPageNumber-1],t=e.div,n={id:e.id,x:t.offsetLeft+t.clientLeft,y:t.offsetTop+t.clientTop,view:e};return{first:n,last:n,views:[n]}}},{key:"update",value:function(){var e=this._getVisiblePages(),t=e.views.length;0!==t&&(this._resizeBuffer(t),this.renderingQueue.renderHighestPriority(e),this._updateLocation(e.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location}))}},{key:"_updateScrollMode",value:function(){}},{key:"_updateSpreadMode",value:function(){}},{key:"_setDocumentViewerElement",get:function(){return(0,a.shadow)(this,"_setDocumentViewerElement",this._shadowViewer)}},{key:"_isScrollModeHorizontal",get:function(){return(0,a.shadow)(this,"_isScrollModeHorizontal",!1)}}]),t}(s.BaseViewer);t.PDFSinglePageViewer=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SpreadMode=t.ScrollMode=t.BaseViewer=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(3),s=n(18),o=n(1),a=n(2),c=n(9),l=n(17),u=n(8),d=n(10),h={VERTICAL:0,HORIZONTAL:1,WRAPPED:2},p={NONE:0,ODD:1,EVEN:2};function f(e){var t=[];this.push=function(n){var i=t.indexOf(n);i>=0&&t.splice(i,1),t.push(n),t.length>e&&t.shift().destroy()},this.resize=function(n,i){if(e=n,i){for(var s=new Set,o=0,a=i.length;o<a;++o)s.add(i[o].id);(0,r.moveToEndOfArray)(t,function(e){return s.has(e.id)})}for(;t.length>e;)t.shift().destroy()}}function g(e,t){return t===e||Math.abs(t-e)<1e-15}var m=function(){function e(t){var n=this;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.constructor===e)throw new Error("Cannot initialize BaseViewer.");this._name=this.constructor.name,this.container=t.container,this.viewer=t.viewer||t.container.firstElementChild,this.eventBus=t.eventBus||(0,c.getGlobalEventBus)(),this.linkService=t.linkService||new u.SimpleLinkService,this.downloadManager=t.downloadManager||null,this.findController=t.findController||null,this.removePageBorders=t.removePageBorders||!1,this.textLayerMode=Number.isInteger(t.textLayerMode)?t.textLayerMode:r.TextLayerMode.ENABLE,this.imageResourcesPath=t.imageResourcesPath||"",this.renderInteractiveForms=t.renderInteractiveForms||!1,this.enablePrintAutoRotate=t.enablePrintAutoRotate||!1,this.renderer=t.renderer||r.RendererType.CANVAS,this.enableWebGL=t.enableWebGL||!1,this.useOnlyCssZoom=t.useOnlyCssZoom||!1,this.maxCanvasPixels=t.maxCanvasPixels,this.l10n=t.l10n||r.NullL10n,this.defaultRenderingQueue=!t.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new s.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=t.renderingQueue,this.scroll=(0,r.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=r.PresentationModeState.UNKNOWN,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),Promise.resolve().then(function(){n.eventBus.dispatch("baseviewerinit",{source:n})})}return i(e,[{key:"getPageView",value:function(e){return this._pages[e]}},{key:"_setCurrentPageNumber",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this._currentPageNumber!==e)if(0<e&&e<=this.pagesCount){var n={source:this,pageNumber:e,pageLabel:this._pageLabels&&this._pageLabels[e-1]};this._currentPageNumber=e,this.eventBus.dispatch("pagechanging",n),this.eventBus.dispatch("pagechange",n),t&&this._resetCurrentPageView()}else console.error(this._name+'._setCurrentPageNumber: "'+e+'" is out of bounds.');else t&&this._resetCurrentPageView()}},{key:"setDocument",value:function(e){var t=this;if(this.pdfDocument&&(this._cancelRendering(),this._resetView(),this.findController&&this.findController.setDocument(null)),this.pdfDocument=e,e){var n=e.numPages,i=(0,a.createPromiseCapability)();this.pagesPromise=i.promise,i.promise.then(function(){t._pageViewsReady=!0,t.eventBus.dispatch("pagesloaded",{source:t,pagesCount:n})});var s=!1,o=(0,a.createPromiseCapability)();this.onePageRendered=o.promise;var c=function(e){e.onBeforeDraw=function(){t._buffer.push(e)},e.onAfterDraw=function(){s||(s=!0,o.resolve())}},u=e.getPage(1);this.firstPagePromise=u,u.then(function(s){for(var a=t.currentScale,u=s.getViewport(a*r.CSS_UNITS),d=1;d<=n;++d){var h=null;t.textLayerMode!==r.TextLayerMode.DISABLE&&(h=t);var f=new l.PDFPageView({container:t._setDocumentViewerElement,eventBus:t.eventBus,id:d,scale:a,defaultViewport:u.clone(),renderingQueue:t.renderingQueue,textLayerFactory:h,textLayerMode:t.textLayerMode,annotationLayerFactory:t,imageResourcesPath:t.imageResourcesPath,renderInteractiveForms:t.renderInteractiveForms,renderer:t.renderer,enableWebGL:t.enableWebGL,useOnlyCssZoom:t.useOnlyCssZoom,maxCanvasPixels:t.maxCanvasPixels,l10n:t.l10n});c(f),t._pages.push(f)}t._spreadMode!==p.NONE&&t._updateSpreadMode(),o.promise.then(function(){if(e.loadingParams.disableAutoFetch)i.resolve();else for(var r=n,s=function(n){e.getPage(n).then(function(e){var s=t._pages[n-1];s.pdfPage||s.setPdfPage(e),t.linkService.cachePageRef(n,e.ref),0==--r&&i.resolve()},function(e){console.error("Unable to get page "+n+" to initialize viewer",e),0==--r&&i.resolve()})},o=1;o<=n;++o)s(o)}),t.eventBus.dispatch("pagesinit",{source:t}),t.findController&&t.findController.setDocument(e),t.defaultRenderingQueue&&t.update(
1)}).catch(function(e){console.error("Unable to initialize viewer",e)})}}},{key:"setPageLabels",value:function(e){if(this.pdfDocument){e?Array.isArray(e)&&this.pdfDocument.numPages===e.length?this._pageLabels=e:(this._pageLabels=null,console.error(this._name+".setPageLabels: Invalid page labels.")):this._pageLabels=null;for(var t=0,n=this._pages.length;t<n;t++)this._pages[t].setPageLabel(this._pageLabels&&this._pageLabels[t])}}},{key:"_resetView",value:function(){this._pages=[],this._currentPageNumber=1,this._currentScale=r.UNKNOWN_SCALE,this._currentScaleValue=null,this._pageLabels=null,this._buffer=new f(10),this._location=null,this._pagesRotation=0,this._pagesRequests=[],this._pageViewsReady=!1,this._scrollMode=h.VERTICAL,this._spreadMode=p.NONE,this.viewer.textContent="",this._updateScrollMode()}},{key:"_scrollUpdate",value:function(){0!==this.pagesCount&&this.update()}},{key:"_scrollIntoView",value:function(e){throw new Error("Not implemented: _scrollIntoView")}},{key:"_setScaleDispatchEvent",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i={source:this,scale:e,presetValue:n?t:void 0};this.eventBus.dispatch("scalechanging",i),this.eventBus.dispatch("scalechange",i)}},{key:"_setScaleUpdatePages",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this._currentScaleValue=t.toString(),g(this._currentScale,e))i&&this._setScaleDispatchEvent(e,t,!0);else{for(var r=0,s=this._pages.length;r<s;r++)this._pages[r].update(e);if(this._currentScale=e,!n){var o=this._currentPageNumber,a=void 0;!this._location||this.isInPresentationMode||this.isChangingPresentationMode||(o=this._location.pageNumber,a=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:o,destArray:a,allowNegativeOffset:!0})}this._setScaleDispatchEvent(e,t,i),this.defaultRenderingQueue&&this.update()}}},{key:"_setScale",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=parseFloat(e);if(n>0)this._setScaleUpdatePages(n,e,t,!1);else{var i=this._pages[this._currentPageNumber-1];if(!i)return;var s=this.isInPresentationMode||this.removePageBorders,o=s?0:r.SCROLLBAR_PADDING,a=s?0:r.VERTICAL_PADDING;if(!s&&this._isScrollModeHorizontal){var c=[a,o];o=c[0],a=c[1]}var l=(this.container.clientWidth-o)/i.width*i.scale,u=(this.container.clientHeight-a)/i.height*i.scale;switch(e){case"page-actual":n=1;break;case"page-width":n=l;break;case"page-height":n=u;break;case"page-fit":n=Math.min(l,u);break;case"auto":var d=(0,r.isPortraitOrientation)(i)?l:Math.min(u,l);n=Math.min(r.MAX_AUTO_SCALE,d);break;default:return void console.error(this._name+'._setScale: "'+e+'" is an unknown zoom value.')}this._setScaleUpdatePages(n,e,t,!0)}}},{key:"_resetCurrentPageView",value:function(){this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0),this._scrollIntoView({pageDiv:this._pages[this._currentPageNumber-1].div})}},{key:"scrollPageIntoView",value:function(e){if(this.pdfDocument){var t=e.pageNumber||0,n=e.destArray||null,i=e.allowNegativeOffset||!1;if(!this.isInPresentationMode&&n){var s=this._pages[t-1];if(s){var o=0,a=0,c=0,l=0,u=void 0,d=s.rotation%180!=0,h=(d?s.height:s.width)/s.scale/r.CSS_UNITS,p=(d?s.width:s.height)/s.scale/r.CSS_UNITS,f=0;switch(n[1].name){case"XYZ":f=n[4],o=null!==(o=n[2])?o:0,a=null!==(a=n[3])?a:p;break;case"Fit":case"FitB":f="page-fit";break;case"FitH":case"FitBH":f="page-width",null===(a=n[2])&&this._location&&(o=this._location.left,a=this._location.top);break;case"FitV":case"FitBV":o=n[2],c=h,l=p,f="page-height";break;case"FitR":c=n[4]-(o=n[2]),u=(this.container.clientHeight-(this.removePageBorders?0:r.VERTICAL_PADDING))/(l=n[5]-(a=n[3]))/r.CSS_UNITS,f=Math.min(Math.abs((this.container.clientWidth-(this.removePageBorders?0:r.SCROLLBAR_PADDING))/c/r.CSS_UNITS),Math.abs(u));break;default:return void console.error(this._name+'.scrollPageIntoView: "'+n[1].name+'" is not a valid destination type.')}if(f&&f!==this._currentScale?this.currentScaleValue=f:this._currentScale===r.UNKNOWN_SCALE&&(this.currentScaleValue=r.DEFAULT_SCALE_VALUE),"page-fit"!==f||n[4]){var g=[s.viewport.convertToViewportPoint(o,a),s.viewport.convertToViewportPoint(o+c,a+l)],m=Math.min(g[0][0],g[1][0]),b=Math.min(g[0][1],g[1][1]);i||(m=Math.max(m,0),b=Math.max(b,0)),this._scrollIntoView({pageDiv:s.div,pageSpot:{left:m,top:b},pageNumber:t})}else this._scrollIntoView({pageDiv:s.div,pageNumber:t})}else console.error(this._name+'.scrollPageIntoView: Invalid "pageNumber" parameter.')}else this._setCurrentPageNumber(t,!0)}}},{key:"_resizeBuffer",value:function(e,t){var n=Math.max(10,2*e+1);this._buffer.resize(n,t)}},{key:"_updateLocation",value:function(e){var t=this._currentScale,n=this._currentScaleValue,i=parseFloat(n)===t?Math.round(1e4*t)/100:n,r=e.id,s="#page="+r;s+="&zoom="+i;var o=this.container,a=this._pages[r-1].getPagePoint(o.scrollLeft-e.x,o.scrollTop-e.y),c=Math.round(a[0]),l=Math.round(a[1]);this._location={pageNumber:r,scale:i,top:l,left:c,rotation:this._pagesRotation,pdfOpenParams:s+=","+c+","+l}}},{key:"update",value:function(){throw new Error("Not implemented: update")}},{key:"containsElement",value:function(e){return this.container.contains(e)}},{key:"focus",value:function(){this.container.focus()}},{key:"_getVisiblePages",value:function(){throw new Error("Not implemented: _getVisiblePages")}},{key:"cleanup",value:function(){for(var e=0,t=this._pages.length;e<t;e++)this._pages[e]&&this._pages[e].renderingState!==s.RenderingStates.FINISHED&&this._pages[e].reset()}},{key:"_cancelRendering",value:function(){for(var e=0,t=this._pages.length;e<t;e++)this._pages[e]&&this._pages[e].cancelRendering()}},{key:"_ensurePdfPageLoaded",value:function(e){var t=this;if(e.pdfPage)return Promise.resolve(e.pdfPage);var n=e.id;if(this._pagesRequests[n])return this._pagesRequests[n];var i=this.pdfDocument.getPage(n).then(function(i){return e.pdfPage||e.setPdfPage(i),t._pagesRequests[n]=null,i}).catch(function(e){console.error("Unable to get page for page view",e),t._pagesRequests[n]=null});return this._pagesRequests[n]=i,i}},{key:"forceRendering",value:function(e){var t=this,n=e||this._getVisiblePages(),i=this.renderingQueue.getHighestPriority(n,this._pages,this._isScrollModeHorizontal?this.scroll.right:this.scroll.down);return!!i&&(this._ensurePdfPageLoaded(i).then(function(){t.renderingQueue.renderView(i)}),!0)}},{key:"createTextLayerBuilder",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];
1return new d.TextLayerBuilder({textLayerDiv:e,eventBus:this.eventBus,pageIndex:t,viewport:n,findController:this.isInPresentationMode?null:this.findController,enhanceTextSelection:!this.isInPresentationMode&&i})}},{key:"createAnnotationLayerBuilder",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:r.NullL10n;return new o.AnnotationLayerBuilder({pageDiv:e,pdfPage:t,imageResourcesPath:n,renderInteractiveForms:i,linkService:this.linkService,downloadManager:this.downloadManager,l10n:s})}},{key:"getPagesOverview",value:function(){var e=this._pages.map(function(e){var t=e.pdfPage.getViewport(1);return{width:t.width,height:t.height,rotation:t.rotation}});if(!this.enablePrintAutoRotate)return e;var t=(0,r.isPortraitOrientation)(e[0]);return e.map(function(e){return t===(0,r.isPortraitOrientation)(e)?e:{width:e.height,height:e.width,rotation:(e.rotation+90)%360}})}},{key:"_updateScrollMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this._scrollMode,n=this.viewer;n.classList.toggle("scrollHorizontal",t===h.HORIZONTAL),n.classList.toggle("scrollWrapped",t===h.WRAPPED),this.pdfDocument&&e&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this.scrollPageIntoView({pageNumber:e}),this.update())}},{key:"_updateSpreadMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.pdfDocument){var t=this.viewer,n=this._pages;if(t.textContent="",this._spreadMode===p.NONE)for(var i=0,r=n.length;i<r;++i)t.appendChild(n[i].div);else for(var s=this._spreadMode-1,o=null,a=0,c=n.length;a<c;++a)null===o?((o=document.createElement("div")).className="spread",t.appendChild(o)):a%2===s&&(o=o.cloneNode(!1),t.appendChild(o)),o.appendChild(n[a].div);e&&(this.scrollPageIntoView({pageNumber:e}),this.update())}}},{key:"pagesCount",get:function(){return this._pages.length}},{key:"pageViewsReady",get:function(){return this._pageViewsReady}},{key:"currentPageNumber",get:function(){return this._currentPageNumber},set:function(e){if(!Number.isInteger(e))throw new Error("Invalid page number.");this.pdfDocument&&this._setCurrentPageNumber(e,!0)}},{key:"currentPageLabel",get:function(){return this._pageLabels&&this._pageLabels[this._currentPageNumber-1]},set:function(e){var t=0|e;if(this._pageLabels){var n=this._pageLabels.indexOf(e);n>=0&&(t=n+1)}this.currentPageNumber=t}},{key:"currentScale",get:function(){return this._currentScale!==r.UNKNOWN_SCALE?this._currentScale:r.DEFAULT_SCALE},set:function(e){if(isNaN(e))throw new Error("Invalid numeric scale");this.pdfDocument&&this._setScale(e,!1)}},{key:"currentScaleValue",get:function(){return this._currentScaleValue},set:function(e){this.pdfDocument&&this._setScale(e,!1)}},{key:"pagesRotation",get:function(){return this._pagesRotation},set:function(e){if(!(0,r.isValidRotation)(e))throw new Error("Invalid pages rotation angle.");if(this.pdfDocument&&this._pagesRotation!==e){this._pagesRotation=e;for(var t=this._currentPageNumber,n=0,i=this._pages.length;n<i;n++){var s=this._pages[n];s.update(s.scale,e)}this._currentScaleValue&&this._setScale(this._currentScaleValue,!0),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:e,pageNumber:t}),this.defaultRenderingQueue&&this.update()}}},{key:"_setDocumentViewerElement",get:function(){throw new Error("Not implemented: _setDocumentViewerElement")}},{key:"_isScrollModeHorizontal",get:function(){throw new Error("Not implemented: _isScrollModeHorizontal")}},{key:"isInPresentationMode",get:function(){return this.presentationModeState===r.PresentationModeState.FULLSCREEN}},{key:"isChangingPresentationMode",get:function(){return this.presentationModeState===r.PresentationModeState.CHANGING}},{key:"isHorizontalScrollbarEnabled",get:function(){return!this.isInPresentationMode&&this.container.scrollWidth>this.container.clientWidth}},{key:"isVerticalScrollbarEnabled",get:function(){return!this.isInPresentationMode&&this.container.scrollHeight>this.container.clientHeight}},{key:"hasEqualPageSizes",get:function(){for(var e=this._pages[0],t=1,n=this._pages.length;t<n;++t){var i=this._pages[t];if(i.width!==e.width||i.height!==e.height)return!1}return!0}},{key:"scrollMode",get:function(){return this._scrollMode},set:function(e){if(this._scrollMode!==e){if(!Number.isInteger(e)||!Object.values(h).includes(e))throw new Error("Invalid scroll mode: "+e);this._scrollMode=e,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:e}),this._updateScrollMode(this._currentPageNumber)}}},{key:"spreadMode",get:function(){return this._spreadMode},set:function(e){if(this._spreadMode!==e){if(!Number.isInteger(e)||!Object.values(p).includes(e))throw new Error("Invalid spread mode: "+e);this._spreadMode=e,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:e}),this._updateSpreadMode(this._currentPageNumber)}}}]),e}();
1t.BaseViewer=m,t.ScrollMode=h,t.SpreadMode=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFViewer=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(21),s=n(3),o=n(2);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(){return a(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"_scrollIntoView",value:function(e){var t=e.pageDiv,n=e.pageSpot,i=void 0===n?null:n;if(!i&&!this.isInPresentationMode){var o=t.offsetLeft+t.clientLeft,a=this.container,c=a.scrollLeft;(this._scrollMode===r.ScrollMode.HORIZONTAL||o<c||o+t.clientWidth>c+a.clientWidth)&&(i={left:0,top:0})}(0,s.scrollIntoView)(t,i)}},{key:"_getVisiblePages",value:function(){if(!this.isInPresentationMode)return(0,s.getVisibleElements)(this.container,this._pages,!0,this._scrollMode===r.ScrollMode.HORIZONTAL);var e=this._pages[this._currentPageNumber-1];return{first:e,last:e,views:[{id:e.id,view:e}]}}},{key:"update",value:function(){var e=this._getVisiblePages(),t=e.views,n=t.length;if(0!==n){this._resizeBuffer(n,t),this.renderingQueue.renderHighestPriority(e);for(var i=this._currentPageNumber,r=!1,s=0;s<n;++s){var o=t[s];if(o.percent<100)break;if(o.id===i){r=!0;break}}r||(i=t[0].id),this.isInPresentationMode||this._setCurrentPageNumber(i),this._updateLocation(e.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}}},{key:"_setDocumentViewerElement",get:function(){return(0,o.shadow)(this,"_setDocumentViewerElement",this.viewer)}},{key:"_isScrollModeHorizontal",get:function(){return!this.isInPresentationMode&&this._scrollMode===r.ScrollMode.HORIZONTAL}}]),t}(r.BaseViewer);t.PDFViewer=l}])},e.exports=i()},mCNh:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return s});var i=n("SpAZ");function r(...e){return s(e)}function s(e){return 0===e.length?i.a:1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}}},mlxB:function(e,t,n){"use strict";function i(e){return e instanceof Date&&!isNaN(+e)}n.d(t,"a",function(){return i})},mrSG:function(e,t,n){"use strict";function i(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}function r(e,t){return function(n,i){t(n,i,e)}}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function o(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{c(i.next(e))}catch(t){s(t)}}function a(e){try{c(i.throw(e))}catch(t){s(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}c((i=i.apply(e,t||[])).next())})}n.d(t,"b",function(){return i}),n.d(t,"d",function(){return r}),n.d(t,"c",function(){return s}),n.d(t,"a",function(){return o})},mwqi:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getInstitute(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiInstituteMappings/:id/institute",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getCenter(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiInstituteMappings/:id/center",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiInstituteMappings/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiInstituteMappings/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}availableCenters(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiInstituteMappings/centers/available",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}createCenters(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiInstituteMappings/centers/create",i={};return null!=e&&(i.where=e),this.request("POST",n,{},i,{},null,t)}createCenter(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiInstituteMappings/:id/center",r={id:e},s={};return null!=t&&(s.data=t),this.request("POST",i,r,s,{},null,n)}createManyCenter(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiInstituteMappings/:id/center",r={id:e},s={};return null!=t&&(s.data=t),this.request("POST",i,r,s,{},null,n)}getModelName(){return"SimiInstituteMapping"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},n2g9:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("bd5T");i.Observable.prototype.delay=r.delay},n6bG:function(e,t,n){"use strict";function i(e){return"function"==typeof e}n.d(t,"a",function(){return i})},nYR2:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("7o/Q"),r=n("quSY");function s(e){return t=>t.lift(new o(e))}class o{constructor(e){this.callback=e}call(e,t){return t.subscribe(new a(e,this.callback))}}class a extends i.a{constructor(e,t){super(e),this.add(new r.a(t))}}},nZSm:function(e,t,n){const i=n("u/Db"),r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function s(e){this.mode=i.ALPHANUMERIC,this.data=e}s.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*r.indexOf(this.data[t]);n+=r.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(r.indexOf(this.data[t]),6)},e.exports=s},neMA:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n("BilO")},ngJS:function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=e=>t=>{for(let n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.complete()}},o8co:function(e,t,n){"use strict";n.d(t,"c",function(){return s}),n.d(t,"b",function(){return o}),n.d(t,"a",function(){return a});var i=n("fXoL"),r=n("aceb");let s=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["ngx-popover-tabs"]],decls:7,vars:0,consts:[["tabTitle","What's up?"],[1,"p-4"],["tabTitle","Second Tab"]],template:function(e,t){1&e&&(i.Zb(0,"nb-tabset"),i.Zb(1,"nb-tab",0),i.Zb(2,"div",1),i.Qc(3," Such a wonderful day! "),i.Yb(),i.Yb(),i.Zb(4,"nb-tab",2),i.Zb(5,"div",1),i.Qc(6," Indeed! "),i.Yb(),i.Yb(),i.Yb())},directives:[r.yb,r.xb],encapsulation:2}),e})(),o=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["ngx-popover-list"]],decls:4,vars:0,consts:[[1,"p-4"]],template:function(e,t){1&e&&(i.Zb(0,"div",0),i.Zb(1,"nb-list"),i.Zb(2,"nb-list-item"),i.Qc(3," Non ci sono nuove notifiche "),i.Yb(),i.Yb(),i.Yb())},directives:[r.V,r.W],encapsulation:2}),e})(),a=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["ngx-popover-card"]],decls:35,vars:0,consts:[[1,"popover-card","portal-wrapper"],[2,"text-align","center"],[1,"row"],[1,"col-6"],[1,"portal-element",2,"cursor","pointer"],["href","https://cris.simi.it/dashboard","target","_blank"],["xmlns","http://www.w3.org/2000/svg","fill-rule","evenodd","stroke-linejoin","round","stroke-miterlimit","1.4","clip-rule","evenodd","viewBox","0 0 512 512",1,"svg-width"],["fill","#fff","fill-rule","nonzero","d","M257.6 157.4c5.6-.7 10.2.5 13.6 1.6a29.4 29.4 0 0 1 18.6 17.7c16-1 32-4 48-7 11-1 11 1 15 5 5 5 10 14 6 19-2 2-6-1-10-2-7-2-15 0-22 1 0 0-.7 0-1 .2l-.2.6-18.8 106.2-2 8h2c10-2 22-3 28 2-13-22-25-46-14-78 1-5 4-10 7-12l6-3c16-7 33-17 42-33 5-10 6-27-2-37-5-7-13-10-21-12-18-4-38-4-56 0-39 9-74 32-98 63l-2 1c-5 1-7-9-7-18 0-23 22-42 42-53 30-15 64-23 98-25 27-1 56 3 76 20 4 3 8 7 11 12 10-11 24-19 38-20 0 0-3-13-7-22a86 86 0 0 0-51-48c-37-11-77 1-109 18a387.1 387.1 0 0 0-179 229c-12 39-19 82-4 117 9 22 30 38 54 46 44 13 92 2 135-17 40-19 76-45 109-74 0 0 4-6 7 7 6 24-12 48-34 66a347 347 0 0 1-248 74c-38-4-77-18-99-50-25-36-23-86-14-127a465.2 465.2 0 0 1 221-287c54-31 116-51 179-46 25 1 51 8 71 26 11 10 20 25 17 41-4 20-21.2 35.5-40.2 46.5a79.8 79.8 0 0 1 17.3 2.4c5.2 1.4 11.4 4.4 13.4 9.4 1.7 3.5.5 12.7-3.5 19.7 0 0-3 3-7-3-5-5-11-9-18-10s-14 1-21 4c-5 3-11 8-11 15 1 15 21 26 34 38 15 13 25 34 18 53-10 33-56.9 48.5-87.9 29.5-5.5-3.5-14.7-11-14.1-24.5.3-7.4 7-18 16-20 0 0 4 0 4 6 0 14 14 28 29 27 8 0 15-3 21-8 4-3 7-7 7-12 2-13-11-24-20-32-10-8-18-18-25-28-11 24-34 42-59 53l-7 3c-3 2-2 6-1 8 4 23 22 44 36 61 8 10 20 19 33 14 7-3 12-9 17-15l1-1c8-2 4 19-8 32-11 13-28 22-45 18-18-4-32-21-43-38 0 0 2 7 1 12 0 0-1 4-6 1-11-4-23-1-36 0l-31 4h-5c-1 13-3 25-2 37 0 0 1 3-4 5-13 4-29.7 6.8-39 1-.7-.5-1.4-1-1.7-1.5-.3-.6-.3-1.4-.3-2 .2-20.3 4.1-39.1 8-58.5 10-45 26-84.8 28.3-135 .2-4.6-.3-9-2.3-13 0 0-1-2-1-3s.4-2.6 1-2.8
1c.6-.2 6.4-2.3 8.8-2.5zM399.8 5.7c-56 1-113 18-161 47a466.1 466.1 0 0 0-208 247c-16 47-25 100-6 142 8 17 21 31 36 41 36 23 80 25 121 21 57-4 113.5-20.2 160.5-51.2l12-8c15.1-10.6 31.5-22.8 42.5-39.8 6-9 10-21 7-33l-25 20c-45 35-96 64-151 73-38 5-80 1-109-25-30-27-33-75-24-118 16-86 65-166 132-223 38-34 84-63 137-64 24-1 48 6 66 22 15 13 25 32 31 52 20-13 42-33 35-56-4-14-17-24-29-31-20-12-44-16-67-16zm-79 315l12 2s1 1 1-1c-1-5-3-8-8-9h-5l-18 2s-5 1-5-4l22-119.6c.2-1 .8-2.9 3-3.3l7.9-2c7-1.4 14.3-1.6 21-.1-1-5-7-10-14-9-16 2-33 6-50 7 0 0-3 0-4-5-4-11-17-17-28-14l.3 13c-.8 19.7-11.2 69-19.2 103-7 30-15 61-16 91 10 3 22 0 32-3l1-7 2-32c0-1 1-4 6-3 7 1 14-1 21-2 13-2 25-4 38-4zm95-150l2 3c8 12 17 24 29 33l4 3c11 11 21 27 13 41-9 13-28 20-43 15-13-4-23-17-24-30-5 2-8 8-8 14-1 10 11 19 22 23 18 5 39 2 54-11 12-10 20-27 14-44-9-24-40-36-50-57-4-8-2-19 5-25 15-13 39-13 52 2 0 0 4-9 0-12-5-3-12-5-19-5-18-1-36 6-47 20l-1.7 1.8c-3 3-3.8-.4-5.3-2.8-15-24-48.1-31.5-75.1-30.5-43 0-88 9.5-121 36.5-13 10-23 25-20 43l21-19c38-33 91-53 143-39 12 3 21 13 24 25 3 13 0 27-9 38-11 14-27 24-44 31l-3 4c-9 17-8 38-1 55 10 22 23 44 42 58 11 7 26 8 38 2 10-6 19-15 23-26l-12 8c-7 3-15 3-22-1-13-5-21-18-29-29-12-15-23-31-27-50v-2c-1-5 1-11 8-14 27-12 52-30 62-57 0 0 2-3 5-2zm-113 20c2.3-.2 2 1 2 2a146.5 146.5 0 0 1-1.5 11.5c-6.9 31.1-13.6 62.3-18.5 94.5l-2 15s-.2 2.9-1.2 3.7c-1 .8-2 1-4.8 1.3-8 1-19 3-19-3 7-39 19-77 25-117l1-5c.4-1.2 2.4-2 6-2l13-1zm-5 7l-8 1c-7 38-18 75.5-25 114.5l11-1.5 4-25 18-89z",1,"outline-svg"],["fill","#d7da79","d","M399.8 5.7c-56 1-113 18-161 47a466.1 466.1 0 0 0-208 247c-16 47-25 100-6 142 8 17 21 31 36 41 36 23 80 25 121 21 57-4 113.5-20.2 160.5-51.2l12-8c15.1-10.6 31.5-22.8 42.5-39.8 6-9 10-21 7-33l-25 20c-45 35-96 64-151 73-38 5-80 1-109-25-30-27-33-75-24-118 16-86 65-166 132-223 38-34 84-63 137-64 24-1 48 6 66 22 15 13 25 32 31 52 20-13 42-33 35-56-4-14-17-24-29-31-20-12-44-16-67-16zm-123.6 320c-4.8 1-9.6 1.7-14.4 1-5-1-6 2-6 3l-2 32-1 7c-10 3-22 6-32 3 1-30 9-61 16-91 8-34 18.4-83.3 19.2-103l-.2-13c11-3 24 3 28 14 1 5 4 5 4 5 17-1 34-5 50-7 7-1 13 4 14 9-6.8-1.5-14-1.3-21.1.1l-8 2c-2.1.4-2.7 2.3-2.9 3.3l-22 119.6c0 5 5 4 5 4l18-2h5c5 1 7 4 8 9 0 2-1 1-1 1l-12-2c-13 0-25 2-38 4l-4 .6-2.6.5zm139.6-155l2 3c8 12 17 24 29 33l4 3c11 11 21 27 13 41-9 13-28 20-43 15-13-4-23-17-24-30-5 2-8 8-8 14-1 10 11 19 22 23 18 5 39 2 54-11 12-10 20-27 14-44-9-24-40-36-50-57-4-8-2-19 5-25 15-13 39-13 52 2 0 0 4-9 0-12-5-3-12-5-19-5-18-1-36 6-47 20l-1.7 1.8c-3 3-3.8-.4-5.3-2.8-15-24-48.1-31.5-75.1-30.5-43 0-88 9.5-121 36.5-13 10-23 25-20 43l21-19c38-33 91-53 143-39 12 3 21 13 24 25 3 13 0 27-9 38-11 14-27 24-44 31l-3 4c-9 17-8 38-1 55 10 22 23 44 42 58 11 7 26 8 38 2 10-6 19-15 23-26l-12 8c-7 3-15 3-22-1-13-5-21-18-29-29-12-15-23-31-27-50v-2c-1-5 1-11 8-14 27-12 52-30 62-57 0 0 2-3 5-2zm-113 20c2.3-.2 2 1 2 2a146.5 146.5 0 0 1-1.5 11.5c-6.9 31.1-13.6 62.3-18.5 94.5l-2 15s-.2 2.9-1.2 3.7c-1 .8-2 1-4.8 1.3-8 1-19 3-19-3 7-39 19-77 25-117l1-5c.4-1.2 2.4-2 6-2l13-1z",1,"inner-svg"],["href","https://corsi.simi.it/dashboard","target","_blank"],["viewBox","0 0 512 512","xmlns","http://www.w3.org/2000/svg","fill-rule","evenodd","clip-rule","evenodd","stroke-linejoin","round","stroke-miterlimit","2",1,"svg-width","courses-icon"],["fill","#e66465","d","M289.3 391.2l-172-.1-18.1-.1c-9.5 0-18.1-8.3-18.2-18.2v-21c-.2-63.9-.2-127.7 0-191.5v-21c0-9.6 8.3-18.2 18.2-18.3h25c87.9-.3 175.7-.3 263.5 0h25.1c9.5 0 18.1 8.3 18.2 18.2v21.1c.2 63.8.2 127.6 0 191.5v21c0 9.5-8.3 18.1-18.2 18.2h-18.1l-50.6.2 2 28.4s-.3 4-3 6.2a8.3 8.3 0 01-11.1-1.2l-.8-1-14.3-24.1-14.3 24s-2.3 3.4-5.8 3.9c-4 .6-8.3-2.5-9-6.5v-1.3l1.5-28.4zm54.1-98.7a13 13 0 00-13.6.2 13.3 13.3 0 00-13-10.2c-6 .1-11.6 4.2-12.8 10.2-5.8-4-14.6-1.7-18.3 4.5l-.2.1a13 13 0 00.2 13.7c-6.9 1.3-11.5 9.1-9.8 16v.3a13 13 0 009.8 9.5c-4.7 7 3 20.1 14.1 20.1l-4 62.6 16.7-28.3 4.4-7.3 21.2 35.6-4-62.6c12 0 19.3-12.2 14-20 6.9-1.4 11.5-9.3 9.8-16.2v-.2a13 13 0 00-9.8-9.5c4-5.9 1.7-14.6-4.5-18.4h-.1zm-.1 87l34.1-.2a42 42 0 0141.7-42c.2-54.2.4-108.3.2-162.5h-.2a42 42 0 01-41.6-41.9h-243v.2A42 42 0 0193 174.8H93c-.2 54.1-.4 108.3-.2 162.5h.2a42 42 0 0141.6 41.8c51.9.2 103.7.4 155.5.4l.5-8-148.6-.3v-.3a51.2 51.2 0 00-41.2-41v-2.8c-.2-48.3 0-96.7.1-145h.1c21-3.6 37.8-21 41-41.1h7.8l144.3-.1H370a51 51 0 0041.2 41.2v2.9c.2 48.3 0 96.6-.1 145h-.3a51 51 0 00-40.6 40.1c-.4 2.2-.5 1.2-.5 1.2l-27 .1.5 8zm-26.9-71.1a15.6 15.6 0 0114.6 22 15.5 15.5 0 11-20.9-20.5h.3l.2-.2a14 14 0 015.8-1.3zm-80.4 4.1H136v15h100v-15zm0-30H136v15h100v-15zM376 243H136v14h240v-14zm0-30H136v14h240v-14zm-50-40H186v14h140v-14z",1,"inner-svg"],[1,"portal-element","not-allowed",2,"cursor","default"],["fill","#0096db","d","M394 512h-1l1-.4v.4zM503.9 393.3c-71-.6-424 0-495.6 0-5.4 0-10 5.6-7.7 10.8 9.5 21.3 18.8 42.6 29 63.6a8.6 8.6 0 0 0 7.5 4.5c14
16 .7 292 3.2 438 0 3.1 0 6.1-2 7.4-4.7a5455 5455 0 0 0 29-63.4c2-4.6-1.8-10.7-7.6-10.8zm-205 73.8a2 2 0 0 0 2-2v-63.4c0-1-.4-1.7-1.8-2h-85.9a2 2 0 0 0-2 2v63.5c0 1 1 1.8 2 1.9H299zm-34.6-59.8h.2a2 2 0 0 1 1.8 2v14.4H282a2 2 0 0 1 1.8 2v15.5c0 1-.9 1.9-2 2h-15.4v14.6a2 2 0 0 1-2 1.7h-16.5c-1.1 0-2-.8-2-1.9v-14.5h-15.6a2 2 0 0 1-1.9-1.9v-15.6c.1-1 1-1.8 2-1.9h15.4V409a2 2 0 0 1 2-1.7h16.6zM410 323.7c6.4 11 12.5 22 14.3 35.3.6 5 1 10 1.2 14.9h3c-.2-6.4-.9-12.7-2.1-18.9a72.9 72.9 0 0 0-14.7-32.4l-1.7 1zm-273.2-90.5c-13.6 7-26.5 15.4-37 27a59.8 59.8 0 0 0-16.1 34.9l-.1.6V374c40.8-.2 81.8-.4 122.8-.4h4.5c-17-24.5-33.3-49-47-75.6a113 113 0 0 1-4.5-9.8c-3.9-9.7-5.6-22.2 5.6-27.3l4.2-2c-7-5.4-17-5.5-25.5-12-4.4-3.2-7.8-8.2-6.5-13.8l-.4.2zm211.9 42.6c-.1 6.5-3 12.8-5.8 19-7.6 17-18.4 32.4-28.4 48-6.6 10.2-13.3 20.3-20.2 30.3l-.2.4c41 0 81.8.2 122.6.4a77.6 77.6 0 0 0-7.1-33c-2.4-4.7-5-9.2-7.7-13.8 0 0-2.8.3-5 .2-5.8-.3-11.6-3-15.5-7.5-9.8-12-19.4-24.2-29.2-36.3-1.7-2.2-3-4.8-3.5-7.6 0 0 0-.2 0 0zm-83 15.7a370.4 370.4 0 0 1 11.4 82h4.8c6.7-25.8 12-52 16-78.3L275 276l-9.4 15.5zm-60.1 3.2c3.6 23.1 8.9 46 15.1 68.6 1 3.2 1.6 6.5 2.4 9.8v.4h2.6a389 389 0 0 1 11.6-81.4v-.5c-10.8-17-16.3-10-31.7 3.1zm42.6-36l-13.9 11.7 11.7 18.1c1.2 2.3.1 4.8-.4 7a379.3 379.3 0 0 0-11 78h33.6c0-27-5.1-53.5-11.1-79.7l-.5-2.1c-.2-1.5.5-3 .5-3l11.2-18.5-13.7-11.6h-6.4zm58.6 38c-2.9 19.9-6.8 39.7-11.5 59.3 15-22.1 30.5-44.5 41.2-68.9 1.8-4.3 3.8-8.6 3.5-13.4a6 6 0 0 0-3.8-5.1c-5-2.3-10.7-6-9.2-12 1.6-6.2 9.7-7.7 14.6-9.5 5.8-2 11.7-4.3 16-8.4 2-2 1-5.5-1.3-7.5-2.3-1.7-5.1-2.5-7.9-3.8-10.3-4.6-21-8.4-31.9-10.9h-.3l-3 25.4-.6 6.1c-1.5 14.2-3 28.5-5 42.6v.8l-.4 3-.4 2.2zm-120.5-80.4c-13 3-25.4 8-37 14.5 0 0-4.2 2.7-3.5 5.6 1 3.8 5.7 5.4 8.4 6.7 6.5 3 13.8 4 19.9 8 3.4 2.2 5.5 6.9 3.4 11-2.6 4.7-10.4 5.6-12.2 9.6-1.7 4 .5 8.4 2 12 3.9 9.8 9 19 14.2 28.2 8.7 15 18.4 29.5 28.1 43.9a582.6 582.6 0 0 1-17-85.1l-5.8-52.6-.2-1.9-.3.1zm183.2 35c6.6.3 12.8 3.7 17 8.9 9.6 11.6 19 23.3 28.3 35a20 20 0 0 1 2.2 20.2l2.4 3v-22.8a64 64 0 0 0-10.3-28c-10-14.6-25-25-40.6-33 0 0-.3-1.6-.3 1.4l-.3 2c-1.7 7.7-10.5 12.6-18.5 15.4-4.5 1.6-9.3 2.6-13 5 0 0 2.6 1.9 5 3 0 0 4.1 2.4 5.9 6.5.7 1.7 1 4.8 1 3.3.5-7.8 5.5-15.3 12.8-18.3 2.7-1 5.1-1.6 8.4-1.5zm-.7 8.7c-8.1.2-15.5 10.3-9.7 18 9.5 12.4 19.4 24.3 29.3 36.4 5.8 6.8 21 4.6 21.8-6 .3-3.7-1.6-6.9-4-10l-27.5-34c-.8-1-1.2-1.3-2-1.8-2.2-1.8-5-2.7-7.9-2.6zm-62.4-55c-.5 0-1 .2-1.3.6L257.9 250l41.5 35 1-8.7L303 254l.6-4.5c1.3-12.4 2.6-24.8 4.2-37.2l.2-1.5c.2-2.4 1-5.8-1.6-5.7zm-110 0c-1.3 0-1.9 1.9-1.9 1.9l1 8.1c3.1 23.2 5.3 46.6 8.5 69.6l41-34.6c-15.8-14.9-31.4-29.8-47.2-44.5a2 2 0 0 0-1.5-.5zm13.6 0l41.4 39L293 205V196l-.6.7a55.3 55.3 0 0 1-48 17.6 57 57 0 0 1-34.4-19.2v10zm18-128.5c-5.3 0-10.4 2.6-14 6.8-6.3 7.5-8 17.6-9.2 27-.9 6.6-1.2 13.2-1.2 19.8v1.9c-.6 2-2.6 4-5 3.7-2.4-.4-4.3-2.3-6-4.2a35.7 35.7 0 0 1-6.6-9.7s-1-.2-1.6.3c-1.4 1.1-1 3.2-1 5.3-.2 10 6.7 19 14 24.5l1 .8c3.9 6.6 4.6 14.5 9 23 8 16 22.9 29.5 41.6 30.5 15.5.9 31-6.6 40.3-19.2 7.1-9.5 11.3-20.9 14.1-32.4 0 0 2-2.8 4.1-4.5 7.4-6.4 13.9-15.6 11.5-25.9a8.8 8.8 0 0 0-.3-1c-.4-1-1.9-1-1.9-1l-.3.7a30.1 30.1 0 0 1-10.4 12.3 4.5 4.5 0 0 1-5.8-1.3c-1.3-2-.9-4.7-1-7.2-.2-14.5-.9-30-9-41.4-3.8-5.3-10.1-9-16.6-8.7-6.9.4-13.4 3.4-19.1 7.4l-2.5 1s-3-.7-5.8-2.4a35.1 35.1 0 0 0-18.3-6.1zm.4-8.5a46 46 0 0 1 23 7.5l1-.6c10-5.4 21.6-9 32.2-5 9.7 3.4 16.2 13.4 19.1 23.8a99 99 0 0 1 4.2 25.6l3.2-6.8c5.4-15.5 5.2-33-3-46.7a72.6 72.6 0 0 0-34.5-28.4 55.4 55.4 0 0 0-27.8-4.6A72.5 72.5 0 0 0 203 55.1a50 50 0 0 0-14.3 35.5c.2 7.5 1 15 3.5 22l1.6 4.8 1.2 1.9c.7-13.6 2.1-27.8 10.7-39.3a29 29 0 0 1 12.8-10s4.9-2 10-2z",1,"inner-svg"],["href","https://simi.it/d","target","_blank"],["xmlns","http://www.w3.org/2000/svg","fill-rule","evenodd","stroke-linejoin","round","stroke-miterlimit","1.4","clip-rule","evenodd","viewBox","0 0 2048 2048",1,"svg-width"],["fill","#4472c4","fill-rule","nonzero","d","M1025.6 0c142.4.3 284.4 30.3 414 88a1032.7 1032.7 0 0 1 401.2 318.6 1026.3 1026.3 0 0 1 202.8 520.9c20 212.8-28 431-136.7 615.4A1033 1033 0 0 1 1505 1928a1028.3 1028.3 0 0 1-577.7 115.5 1026.2 1026.2 0 0 1-538-215.9A1032.6 1032.6 0 0 1 43 1319.4a1032 1032 0 0 1 11.6-626.6c54-157.9 147.6-302 269.5-416.2 143-134 324.9-226 518.6-260.6a1027.2 1027.2 0 0 1 182.8-16zm-3.3 14.9a1012 1012 0 0 0-408 86.7A1010 1010 0 0 0 57.4 1315a1014.4 1014.4 0 0 0 267.2 436.1 1014.3 1014.3 0 0 0 505.4 263.3 1016.6 1016.6 0 0 0 581-58.3c226-94 416-272.9 523.4-496.2a1015.2 1015.2 0 0 0 80.5-628.5 1009.6 1009.6 0 0 0-185.9-416 1018.4 1018.4 0 0 0-395.4-314A1010 1010 0 0 0 1022.3 15zM957 1931.6c-12-11-19.6-19.8-22.9-26.2-3.2-6.5-4.7-13-4.3-19.7.6-10.3 5-19 13.5-26 8.3-7 19.1-10.1 32.3-9.3 12.8.7 22.9 4.7 30.3 12.1a31.2 31.2 0 0 1 10.3 24.4c-.3 6-2.7 11.9-7.3 17.8a91.9 91.9 0 0 1-27.6 20.3 149.5 149.5 0 0 1 25.9 26.6c5.4 8.3 8 16.8 7.4 25.6a37.8 37.8 0 0 1-14.4 28 47.2 47.2
10 0 1-34.1 9.9c-15-.9-26.5-6.3-34.4-16.2-6.3-8-9.2-16.4-8.7-25.4.4-7 3.2-13.8 8.3-20.4 5.1-6.7 13.7-13.8 25.7-21.5zm110 1.4a109.7 109.7 0 0 1-25.8-23.3c-4-6-6.2-12.4-6.6-19a35.3 35.3 0 0 1 10.3-27.4c7.5-8 17.8-12.3 31-13.2 12.8-.8 23.3 2 31.5 8.5a31.2 31.2 0 0 1 13.2 23c.3 6-1.4 12.1-5.2 18.6a91.9 91.9 0 0 1-25 23.4c14.4 9.7 24 17.5 28.8 23.3 6.5 7.6 10 15.8 10.5 24.6.7 11.1-3 21-11 29.4-8 8.4-18.9 13-32.7 14-15 .9-27-3.1-36-12a36.7 36.7 0 0 1-11.7-24.2c-.4-7 1.5-14.1 5.8-21.3 4.3-7.2 12-15.3 23-24.4zm-104.8 3.3a55 55 0 0 0-15.4 17 47.3 47.3 0 0 0-5.8 20.7c-.6 10 1.7 18.2 6.8 24.6 5.2 6.4 12 9.8 20.5 10.3 8.4.4 15.3-1.5 20.7-6a23 23 0 0 0 8.6-16.9c.3-5.6-1-10.7-3.6-15.3-5-8.6-15.7-20-31.8-34.4zm110.6.8a55 55 0 0 0-13.2 18.7 47.3 47.3 0 0 0-3.4 21.2c.6 10 3.9 18 9.7 23.6 5.9 5.7 13 8.3 21.6 7.8 8.4-.5 15-3.3 19.8-8.4 4.8-5 7-11 6.5-17.8a26.6 26.6 0 0 0-5.4-14.8c-6-8-17.9-18-35.6-30.3zm-231.5-85.7l41.4-11.6 3.8.7-24 132a71.3 71.3 0 0 0-1.8 16.6 8.7 8.7 0 0 0 3.7 5.7c2 1.6 6.6 3.1 13.7 4.6l-.8 4.2-58.8-10.6.8-4.3a40.3 40.3 0 0 0 14.6.7c2.4-.7 4.1-2 5.3-3.7 1.2-1.7 2.6-7.3 4.3-16.7l15.3-84.4c2.1-11.3 3-18.7 2.9-22-.1-2.6-.8-4.6-2-6a8 8 0 0 0-4.8-2.7c-2.9-.5-7 0-12.5 1.4l-1.1-3.9zm299.9-3.8l83.8-15.5.8 4.4-23.5 164.7-12.9 2.4 20.7-149.3-43 7.9a41 41 0 0 0-18 6.5 39.4 39.4 0 0 0-12.5 19.3l-3.6-.7 8.2-39.7zM976 1920a83.3 83.3 0 0 0 19-19 35.9 35.9 0 0 0 4.6-16.3c.5-8.2-1.5-14.7-5.8-19.6a25.4 25.4 0 0 0-18.4-8c-8-.5-14.6 1.4-19.9 5.7-5.2 4.4-8 9.6-8.4 15.8-.2 4 .6 8.1 2.4 12.3 1.9 4.2 4.6 8.2 8.2 12.1l18.3 17zm108.5-.8c8.9-9 14.4-16 16.6-21 2.2-5 3-10.6 2.7-16.8a26.2 26.2 0 0 0-8.1-18.8 25.4 25.4 0 0 0-19.3-5.8c-8 .5-14.3 3.2-19 8.1-4.7 5-6.8 10.5-6.4 16.6.2 4 1.5 8 3.8 12s5.5 7.6 9.6 11l20.1 14.7zm-59.3-1714.6a823.1 823.1 0 0 1 331.2 70.3A820.2 820.2 0 0 1 1840 948a824.3 824.3 0 0 1-76.3 428.9 827.5 827.5 0 0 1-294 334.6A824.1 824.1 0 0 1 948 1840 819.7 819.7 0 0 1 219.2 869c23.3-121.8 75-238 149.7-337a827 827 0 0 1 415-291.6 821.7 821.7 0 0 1 237.4-35.7h4zm-2.7 14.8a806.8 806.8 0 0 0-325.2 69.2A811.4 811.4 0 0 0 382.2 539a806.6 806.6 0 0 0-159 406.6 809.9 809.9 0 0 0 112 494.4 812.7 812.7 0 0 0 248.1 257 806 806 0 0 0 749.2 70 813 813 0 0 0 344-272.5A804.9 804.9 0 0 0 1821 1134a810.1 810.1 0 0 0-82.2-479.3A814 814 0 0 0 1351.6 289a804.4 804.4 0 0 0-325-69.5h-4zm-519 404V454.1c.5-3.1 2.2-6 5.1-7 .8-.3 1.6-.3 2.4-.4h1025.7l2.3.4c2.2 1 4.1 2.5 4.8 4.7.3.8.3 1.6.4 2.3V623l-.1.7v.4c1.6 223.4-21.3 445.7-96.7 652.8-46 126.3-113 246.7-206 343-51.3 53-110.5 99.4-176.3 130.9a339.7 339.7 0 0 1-34.7 14.5l-.8.7-2 1c-1.9.4-1.9.5-3.8.3l-1.4.2c-.8-.2-1.6-.2-2.3-.5-1.9-.6-1.4-1.2-3.5-2-46.5-16.4-89-42.6-128.2-72.2-111.1-83.7-194-201.4-251.5-326.8-60.7-132-95.9-275.7-115-421a2330 2330 0 0 1-18.4-315.3v-6.3zm131.7 7h-72.6c-14.6 0-29.2.3-43.7.6h-.5c-1 196.5 17.5 394 76.4 583a1104 1104 0 0 0 117.8 261c60.3 96 138.9 182.1 235.6 240.2 24 14.4 49.1 27.6 75.6 36.5a390 390 0 0 0 78.4-38.2c101.6-61.8 183.8-155.4 244.8-257.8 90.5-152 138.4-326.2 162.5-501.6a2298.2 2298.2 0 0 0 19.8-321.7v-1.4c-13.3-.3-26.5-.5-39.8-.6h-92.3c-124.2 0-248.8.5-373.4 1.1a78438.8 78438.8 0 0 0-388.6-1.1zm363.1 276.8l-.3-.3c-10.6-12.3-13.6-29.8-14.8-46.4-3-40.5 4.1-81.4 12-121 3.8-18.7 8-37.4 12.7-55.8a17 17 0 0 1 16.1-12.4c7.1 0 13.8 5 15.8 12.2 12 45.9 21.6 92.8 24.6 140.4 1.1 18.6 1.4 37.5-2.6 55.9-2.2 9.9-6 20-12.5 27.4 2.8 1.4 5.3 3.3 7.5 6 8.3 10 9 24 10 37.3 2.3 34.6.7 69.4 0 104.3v1.9c25.8-5 50.3-17 68.5-35.4 14-14.3 25.6-34.4 17.2-52.8-5.2-11.3-16.6-19-28-24.9-17.9-9.3-40.2-14.2-47.6-35.7-2.7-8-2.8-16.7-1.5-25 1.8-12.1 8.3-24.4 19.9-29.8a44 44 0 0 1 18.7-3.6c17.3.1 34.7 6.4 49.9 14.7 27.4 17.8 53.6 40.1 66.7 69.4a91 91 0 0 1 4.8 61c-7.3 27-25.3 50-45.1 69-10.6 10-22 19.3-34.1 27.5l-1 .7c22.4 23 43 51 39 84.3-2.4 19.4-14.5 36.8-29.9 49.4a151.4 151.4 0 0 1-35.4 21.3l-.6.3c21.4 23.7 34.1 56 24.2 89.3-8.3 27.7-28 50.6-50.1 68.4l-.6.4c24.9 28 38.6 64.2 35.9 103a190.3 190.3 0 0 1-36.4 96.3v.1c-1.6 1.5-2 2.1-4 2.7-5 1.3-10.3-2.9-9.3-9l.4-3c5.3-35.8 10-73-.5-108.4a63.1 63.1 0 0 0-18.7-30.8 53.2 53.2 0 0 0-7.2-5c-.3 31.7-1.5 63.6-7.5 94.4-2.5 13-5.5 26.5-13.5 36.8-3.3 4.4-8.2 8-14 8.3h-.3-5.7c-9.2-.1-16-9.4-19.6-17.1-8.2-17.9-10.4-38-12.4-58-2.2-21.4-3-43-3.2-64.6a52.3 52.3 0 0 0-15 13.2c-11.4 14.9-14.8 34.4-16.1 52.5-2 27.5.9 55 5 82.3v2.5a10 10 0 0 1-2.3 4.2 7.6 7.6 0 0 1-7 1.7c-2.3-.7-2.7-1.1-4.3-3.3a195.3 195.3 0 0 1-25.6-48.7c-13.3-36.5-15.3-78 1.7-114.4 6-13 14.1-24.9 23.7-35.6 0 0-3.2-2.6-5.8-5-25.8-22.2-47.7-51.5-48.5-86.6-.5-24.5 11.3-48.2 28-66.6l-7.3-3.4c-19-9.2-36.7-21.8-48-39.1-9.3-14.1-13.1-31.5-10-48.5 4.6-25.1 20.7-46.2 37.7-63.8l.5-.6a223 223 0 0 1-65.7-65c-15.1-24.1-22.6-54-13.7-82.4 10.5-33.7 39.6-59.6 69.5-79.3 0 0 1.5-1 1.8-1l.9-.6a108.2 108.2 0 0 1 48.7-13.9h.5c12.8.1 25.8 5.4 32.5 17.3 3.7 6.5 5.3 14 5.8 21.3a42.9 42.9 0 0 1-9.3 32.1c-9.7 11-24.7 15.6-37.2 21.8-15.7 7.7-32.7 18.3-33.9 37.4a51 51 0 0 0 12 32.8c18 23.8 46.4 38.9 76.5 44.5-.8-35.3-2.3-70.5 0-105.6 1.1-16.7 1.5-36 17.4-43.9zm53.4 157.8v-5.3c.8-36.6 2.8-73.3 0-109.8a79.3 79.3 0 0 0-3.8-22.6c-1.4-3.6-4.1-6.8-7.9-7.8a
154.2 54.2 0 0 0-16.7-1h-.7c-8.2 0-17.5-.6-21.2 5.5-4.7 7.6-4.9 17.5-5.6 27-1.7 24.8-1 49.8-.6 74.7a46996.6 46996.6 0 0 0 .8 39.6l.5 23.1.2 8.2-.2 1.6 2.2 123.6.4 2.3c0 9.3.2 18.5.3 27.8 0 1.3.2 3.3-.2 5.4a13653 13653 0 0 1 1.3 179.3v2.7c0 35.7.6 71.3 8 106.2 1.9 9.4 4 19 9.1 26.6 1 1.5 2 3.2 3.7 3.7 2.4.6 5.3.4 7.1-1.6 5.2-5.5 7.2-13.6 9.2-21.3 6.6-25.6 8-52.3 8.9-78.9.4-11.3.6-22.7.6-34-.2-1.7 0-3.1 0-4.6l.1-59.7v-3.7l.1-.5c.2-38 .6-76 1-114l-.1-1.5c0-9.4.2-18.7.3-28v-3.9l.3-1c.6-42 1.4-83.8 2.2-125.7v-.8l.4-23.8.2-7.5v-.3zM882 883.5c-21.6 15.2-41.3 33.6-51.6 57a75.3 75.3 0 0 0-4.4 47.5c6.3 26.6 24.4 48.9 44.3 67.3A233.2 233.2 0 0 0 908 1084l.1.1c1.6 1.3 2.2 1.5 3 3.4 1.7 3.7-1 7.6-4.8 11.4a153.8 153.8 0 0 0-31.2 41.5 57.9 57.9 0 0 0-2.8 48c10.8 24.6 37.8 40.5 62.6 48.7 0 0 4.3 2 5 5.4.9 3.6-2 6.9-4.4 9.4-19.6 19.7-33.9 46.5-27.2 75.5 6.6 28.7 27.8 51.8 49.6 68.3l3.3 2.4 1.9 1.8c.3.7.9 1.5 1 2.3 1.5 4.9-3.4 8.8-7.3 13.2-21 23.8-33.4 55-32 87.5.8 21.4 6.8 42.5 15.7 61.9l-.3-4.7c-1.9-25-2.3-50.3 4.7-75.4a77.1 77.1 0 0 1 40.2-50.2l.5-.3a23073.2 23073.2 0 0 0-.1-57.5c-16.5-8-32.1-18.8-42-33.5-4.9-7.4-7.6-16-7.1-25.2 1.4-28.6 22.2-54.4 48-66.7l-.3-21.6c-20-6-41.2-10.9-57.4-23.7A52.8 52.8 0 0 1 907 1163a49 49 0 0 1 13.1-26.1c16.6-19.1 39-32.7 61.7-44.5l-.4-20.4a146.2 146.2 0 0 1-81.3-42c-15.2-16-27-37.2-21-60.3 4-15.4 16.3-26.7 30.2-35.2l-.3-3c-2.8-18.7-11-37.7-26.9-48zm283.5 0c-1 .5-2 1-2.8 1.7-14.8 11.2-22.4 30.2-24.8 48.8a70.4 70.4 0 0 1 25.7 23.6 47.6 47.6 0 0 1 6 31.9c-3.6 22.9-20.3 42.1-39.7 56.1a152.5 152.5 0 0 1-63.4 26.5l-.4 16.8v3.4l1.4.8c25.8 13.6 52.4 29.2 67.2 53.2a38.5 38.5 0 0 1 5.8 25.7c-1.9 14.1-9.9 27.2-21.5 35.6-15.9 11.6-36.1 16.4-55.1 22.2h-.2l-.3 21.6c25.5 12 46.5 36.7 48 66.7.8 16.4-10 31.3-22.7 41.9-8 6.7-17 12.2-26.5 16.9v57.3s4.5 2.2 8 4.3a67.7 67.7 0 0 1 21.9 21.4c12.7 19.7 15.8 43.9 16.4 66.7.3 12.7-.2 25.3-1.3 38v.2c14.2-31 20.9-66.3 11.3-99.9a131.5 131.5 0 0 0-33-55s-1.2-1.4-1.7-2.5c-1-2.4-.7-5.4.8-7.5.6-.9 1.6-1.6 2.4-2.2a148.8 148.8 0 0 0 41-43.3 79.7 79.7 0 0 0 12.7-50c-2.4-21-15.7-40-30.7-54.5 0 0-1.2-1.2-1.7-2.3a7.7 7.7 0 0 1 2.1-9.3c1-.7 2-1 3-1.4a120 120 0 0 0 52.8-34 53.6 53.6 0 0 0 13.1-39.6c-2.2-21.6-15.8-40.2-30-55.8-3.5-4-7.3-7.8-11.1-11.5l-1.4-1.8c-1-3-1-6.4 1-8.6.9-1 2.1-1.7 3.2-2.3 28.4-17.9 54.6-41.3 70.5-70a84.6 84.6 0 0 0 11-55.7c-5.6-30.6-30.2-55.2-57-74.1zm682.6 385.3l86.3 76-5.4 14.4-116 3.8 5.7-15.2 34.9-.4 15.6-42-26.4-22.5 5.3-14.1zm-863.5-.7c-18.7 11.1-33 30.4-33.4 52.4-.2 11.5 9.1 21.4 18.7 29 4.9 4 10 7.4 15.5 10.5-.2-30.7-.4-61.3-.8-91.9zm78.6.1l
1-.9 91.7a83.9 83.9 0 0 0 28.9-24.1 27.7 27.7 0 0 0 5-18.6c-1.5-20.4-15.5-38.4-33-49zm815.4 45l-12.7 34.1 31.8-.1c9.7 0 17.5.1 23.5.6-6-3.7-11.7-7.9-17.2-12.6l-25.4-22zm-1693.2 20l-5.2-12.4c5-2.3 8.7-5 11.2-8.3 2.6-3.3 4.1-7.5 4.6-12.8a41 41 0 0 0-2-16.7c-1.7-5.2-4-9.5-6.7-13a20 20 0 0 0-9.2-6.7c-3.3-1-6.5-1-9.7 0a14 14 0 0 0-7.5 5.5 21.7 21.7 0 0 0-3 11.1c-.2 3.1 0 9.7.9 19.8.8 10.1.8 17.4 0 21.8a29 29 0 0 1-6 14c-3 3.6-6.8 6.2-11.5 7.7a27.3 27.3 0 0 1-16 .3 28.6 28.6 0 0 1-14.3-9.5 51.1 51.1 0 0 1-9.5-17.6 53.8 53.8 0 0 1-2.9-21.3 30.4 30.4 0 0 1 21-27l5.1 12.6a22 22 0 0 0-12.3 11.8c-2 5.1-1.7 11.6.8 19.4 2.6 8.2 6 13.7 10.3 16.5 4.2 2.7 8.4 3.4 12.6 2 3.7-1.1 6.3-3.4 7.8-6.9 1.5-3.3 1.8-10.9.7-22.7-1-11.8-1.4-20-.8-24.7.8-6.8 2.8-12.4 6.1-16.6 3.3-4.1 7.7-7.1 13.2-9 5.4-1.7 11-1.8 16.8-.2 5.9 1.5 11 4.8 15.6 9.8a61.8 61.8 0 0 1 13.9 43 34.2 34.2 0 0 1-7.4 18.5 36.2 36.2 0 0 1-16.6 11.6zm1685.2-158.7l104.5 24.6-3.3 14.2-95 35.5 82 19.4-3.1 13.3-104.5-24.7 3.3-14.2 95.1-35.5-82.1-19.4 3.1-13.2zM136.3 1236c-17.5 3.3-32.1 1.1-43.8-6.4a48.8 48.8 0 0 1-21.6-33.7c-1.8-9.8-1.1-19 2-27.7a46.4 46.4 0 0 1 16.2-21.5 64.3 64.3 0 0 1 27.2-11.4c10.7-2 20.7-1.6 30 1.1a45 45 0 0 1 22.6 14.9 53.4 53.4 0 0 1 11.2 24.4c1.9 10 1.1 19.2-2.2 28a47.1 47.1 0 0 1-16.4 21.4c-7.5 5.6-16 9.2-25.2 11zm-2.5-14.4a43 43 0 0 0 28.2-15.8c6-8.2 8.1-17.5 6.2-27.8a34.3 34.3 0 0 0-16-24 45.6 45.6 0 0 0-33.3-4.3 55 55 0 0 0-21.7 8.5 34 34 0 0 0-14.3 35.4 36.3 36.3 0 0 0 15 23.6c8 5.9 20 7.3 36 4.4zM982.1 1109c-16.2 8.8-31.9 18.9-45.1 31.7-7.4 7-15.4 15.2-15.3 25.3a39 39 0 0 0 19.3 31.7c12.9 8.1 28 12 43 16.4l-1.9-105.1zm83.7 0l-1.8 105c13.2-3.8 26.4-7.4 38.3-13.7a41.4 41.4 0 0 0 23.7-32.8c.7-7.6-4.1-14.6-9.3-20.7a174 174 0 0 0-50.9-37.8zm817.8-41.8l106.7 11.8-5.2 47.3c-1 9.5-2.8 16.6-5.2 21.4a23.9 23.9 0 0 1-11.5 10.7 30.5 30.5 0 0 1-16.6 2.7 27 27 0 0 1-18.3-9.5 37.4 37.4 0 0 1-7.4-23.8 36.8 36.8 0 0 1-6.3 8c-4.2 3.7-9.4 7-15.4 10.1l-31.1 15.4 2-17.8 23.7-11.7c6.8-3.4 12.1-6.2 15.8-8.5 3.7-2.3 6.3-4.4 8-6.4 1.5-2 2.7-4 3.5-6.1.5-1.6 1-4.2 1.4-7.8l1.8-16.4-47.4-5.2 1.5-14.2zm58 20.7l-3.3 30.4c-.7 6.4-.6 11.6.4 15.3 1 3.8 2.7 6.8 5.5 9 2.7 2.3 5.8 3.6 9.2 4 5 .5 9.4-.9 13-4.2 3.7-3.3 6-8.9 6.9-16.8l3.7-33.8-35.3-3.9zM126 1032.7l3-14.4c11.7 2.4 20.9 7.3 27.4 14.7 6.5 7.4 10 16.7 10.6 28a51 51 0 0 1-5.7 28.5 44.1 44.1 0 0 1-19.6 17.5 73 73 0 0 1-58 2.2 44 44 0 0 1-19.8-17.2 53.3 53.3 0 0 1-7.8-25.7 44 44 0 0 1 6.8-27.5c5.1-7.6 12.5-13 22.3-16.5l4 13.9a33.2 33.2 0 0 0-16.5 11.6c-3.3 5-4.8 11-4.5 18.2.5 8.2 2.8 15 7 20.3 4.2 5.4 9.7 9 16.5 10.9 6.8 1.9 13.7 2.7 20.8 2.3 9-.4 17-2.2 23.6-5.2 6.7-3 11.6-7.4 14.7-13.1 3-5.8 4.4-12 4.1-18.5-.4-8-3-14.6-7.9-19.9a35.2 35.2 0 0 0-21-10.1zm1757-65.4l107.3-1.7 1.2 77.7-12.7.2-1-63.4-32.8.5.9 59.4-12.6.2-1-59.4-36.5.5 1 66-12.6.1-1.3-80zM164.3 996.7l-107.3-4 .6-14.1 107.3 3.9-.6 14.2zm1.2-39.7L59 944l9.4-77.1 12.6 1.5-7.7 63 32.6 4 7.2-59 12.5 1.5-7.2 59 36.3 4.4 8-65.4 12.6 1.5-9.7 79.6zm1709.9-54l93.9-12.2-4.6-35 12.6-1.7 11 84.4-12.6 1.6-4.6-35.2-93.9 12.3-1.8-14.1zm-952.2 24l.4-.1c12-5.7 26.2-9.5 32-21.1 3.9-8 3.3-17.6.7-26.1-1.3-4.6-3.9-9-8-11.7a26.2 26.2 0 0 0-14.3-3.5 89.7 89.7 0 0 0-38.4 10.5 86.1 86.1 0 0 1 27.6 52zm228.5-52.1a89.3 89.3 0 0 0-40.2-10.3c-6 .3-12.1 2.1-16 7-5 6.2-6 14.8-5.9 22.4.2 5.5 1.4 11.1 5 15.6 6.7 8.2 17.3 11.6 26.5 15.8l2.8 1.3c3.5-20 12.2-39.4 27.8-51.8zm-126.4 28.8c3.6-.2 7-1.4 10-3.5 9.5-7.2 12-20.8 13.6-33.2 2.6-20.5 1.1-41.5-1.2-62.3-4.1-37.8-12-75.4-21-112.3-.7-2.6-.8-6.1-2.9-6.1-1.6 0-1.8 2.3-2.3 4.4-11.5 46.4-21.6 93.8-23.7 141.2-.8 19-.8 38.7 5.7 55.3 2.9 7.2 7.9 14.1 15.2 16l3.6.5h2.9zM1847 770.4l104-26.5 3.6 14-67.7 75.6 81.7-20.9 3.3 13.2-104 26.5-3.6-14 67.8-75.6-81.7 20.9-3.4-13.2zM185.3 831.7l-92.1-22-8.2 34.5-12.3-3 19.7-82.7 12.3 2.9-8.2 34.6 92.1 21.8-3.3 13.9zm8.9-40.7l-88-74 5-14.5 115.9-6.4-5.3 15.3-34.9 1.2-14.7 42.4 26.9 21.8-5 14.2zm-31.6-43.7l12-34.4-31.8.9c-9.7.3-17.5.2-23.5-.1 6 3.5 11.8 7.6 17.4 12.2l26 21.4zm1671-13.8l101.3-35.6 4.7 13.4-101.3 35.6-4.7-13.4zm-1665-73.6L149 655l-16.5-7.1 6-13.8 16.5 7.2 17 11.2-3.2 7.4zm1326-44.3h34.8v-154l-1010.9.1v153.9h73c43-.2 85.8-.1 128.6 0h691.6c27.6 0 55.2-.3 82.8 0zm233.4-86.8l112.9-22 8 13-67.6 94.2-8.6-13.7 21-27.9-24-38-33.7 7.2-8-12.8zm-922.3-29h12.1v52.8c0 9.2-1 16.5-3 22-2.2 5.3-6 9.7-11.4 13.1a40 40 0 0 1-21.3 5.1 44 44 0 0 1-21-4.4c-5.5-3-9.4-7.3-11.8-12.9a61.1 61.1 0 0 1-3.5-22.9v-52.9H758v52.8c0 8 .7 13.8 2.2 17.6 1.5 3.8 4 6.7 7.6 8.7 3.6 2 8 3 13.2 3 8.9 0 15.3-2 19-6 3.8-4 5.7-11.8 5.7-23.3v-52.8zm256 46.9c0-15.2 4-27.1 12.2-35.7a41.6 41.6 0 0 1 31.6-12.9c8.4 0 16 2 22.8 6 6.8 4 12 9.7 15.6 17a54.9 54.9 0 0 1 5.3 24.5 54 54 0 0 1-5.6 25c-3.8 7.2-9 12.8-16 16.6a45.5 45.5 0 0 1-22.2 5.6c-8.6 0-16.3-2-23-6.2-6.9-4.2-12-9.9-15.5-17a51.6 51.6 0 0 1-5.2-23zm-135 0c0-15.2 4-27.1 12.2-35.7a41.6 41.6 0 0 1 31.6-12.9c8.4 0 16 2 22.8 6 6.8 4 12 9.7 15.6 17a54.8 54.8 0 0 1 5.3 24.5 54 54 0 0 1-5.6 25c-3.8 7.2-9 12.8-16 16.6a45.5 45.5 0 0 1-45.3-.6c-6.8-4.2-11.9-9.9-15.4-1
17a51.7 51.7 0 0 1-5.2-23zm548.1 44.5H1461l-10.7-27.7h-38.2l-10.1 27.7h-12.9l35.2-91.5h13l37.5 91.5zm-845.5 0h-11.6v-91.5H630l48 71.9v-71.9h11.7v91.5h-12.4l-48.1-71.9v72zm546.8 0h-11.7v-91.5h18.3l21.6 64.8 4.4 13.6c1-3.4 2.7-8.2 4.9-14.7l21.9-63.7h16.3v91.5H1240v-76.6l-26.6 76.6h-11l-26.4-77.9v78zm-326.6 0h-11.6v-91.5h12.4l48 71.9v-71.9H910v91.5h-12.4l-48.1-71.9v72zm528.3 0h-12v-91.5h12v91.5zm-781.4 0h-12v-91.5h12v91.5zm686.4 0h-11.6v-91.5h12.4l48 71.9v-71.9h11.7v91.5H1331l-48-71.9v72zM939.2 547c0 11 3 19.7 8.8 26 6 6.4 13.4 9.5 22.4 9.5 9 0 16.6-3.2 22.5-9.6a38.9 38.9 0 0 0 8.8-27.3c0-7.4-1.2-14-3.8-19.5a29 29 0 0 0-27.3-17.5c-8.6 0-16 3-22.2 8.9-6.2 5.8-9.2 15.7-9.2 29.5zm135 0c0 11 3 19.7 8.8 26 6 6.4 13.4 9.5 22.4 9.5 9 0 16.6-3.2 22.5-9.6a38.9 38.9 0 0 0 8.8-27.3c0-7.4-1.3-14-3.8-19.5a29 29 0 0 0-27.4-17.5c-8.5 0-16 3-22 8.9-6.3 5.8-9.4 15.7-9.4 29.5zm707.6-15.2l19.3 30.8 19.2-25.2c5.9-7.7 10.8-13.8 14.9-18.3-6.6 2.5-13.4 4.5-20.5 6l-33 6.7zm-366.3 22h31l-9.5-25.4c-2.9-7.7-5-14-6.5-19-1.1 6-2.8 11.7-4.9 17.5l-10 26.9zm-1108-4.4l-88.8-60.6 8-11.7 88.7 60.5-8 11.8zM1667 453.4l83.4-67.6 9.2 11.3-30 97 65.5-53.2 8.6 10.6-83.4 67.6-9.1-11.3 30-97-65.6 53.2-8.6-10.6zM346.5 495.5l-73.8-59.3-22.2 27.6-9.9-7.9 53.3-66.4 9.9 8-22.3 27.7 74 59.2-9 11.1zm25.4-32.8l-48-104.6 10.8-11L442 390.9l-11.3 11.6-32-13.8-31.4 32.1 15 31.2-10.5 10.8zm1267.7-37.2l77.2-74.5 9.9 10.2-77.3 74.6-9.8-10.3zM362 409.7l25.5-26-29.1-12.8a294 294 0 0 1-21.3-10.1c4 5.7 7.5 11.9 10.7 18.4l14.2 30.5zm1278.3-37l8.3 12.1c-9.9 6.9-19.8 10-29.6 9.6-9.9-.5-19-4.4-27.5-11.7a51 51 0 0 1-16.6-23.9c-2.4-8.3-2-17 1-26.3a73 73 0 0 1 38.6-43.3 44 44 0 0 1 26.2-2.3c8.8 2 16.8 6 24 12.2a44 44 0 0 1 15 24c2 9 .7 18-3.6 27.4l-12.7-6.7a33.2 33.2 0 0 0 3-20c-1.2-5.7-4.6-11-10-15.7a34.7 34.7 0 0 0-19.5-9.1c-6.8-.7-13.2.8-19.2 4.3-6.1 3.6-11.5 8-16.1 13.3a65.5 65.5 0 0 0-12.7 20.7 29.7 29.7 0 0 0-.7 19.7c2 6.2 5.5 11.5 10.4 15.8 6 5.2 12.6 7.9 19.8 8 7.2.2 14.5-2.5 21.9-8zM450.9 384l-68-83 11-9 60 73.2 40.9-33.5 8 9.8L451 384zm1075-55.8l63.2-86.8 11.5 8.4-63.2 86.8-11.5-8.4zm-1007.2 2.3L456.5 243l11.6-8.3 62.2 87.6-11.6 8.2zm21.7-16.9l-19.3-113.4 13.1-7.8 92.6 70-13.9 8.2-27.4-2
11.6-38.6 23 6.5 33.9-13 7.7zm892-44.9l55.5-91.8 31.7 19.1c7.1 4.3 12.3 8 15.5 11.2 4.6 4.4 7.7 9.3 9.5 14.7 2.4 7 2.9 14.5 1.4 22.3a72 72 0 0 1-9.6 24 75 75 0 0 1-13.7 17.1 52.6 52.6 0 0 1-14.3 9.6 39 39 0 0 1-13.4 3.3c-4.3.2-8.9-.5-13.8-2-4.9-1.6-10.1-4-15.7-7.4l-33.1-20zm18.7-3.5l19.6 12c6 3.6 11.2 5.9 15.3 6.8 4.1 1 7.8 1 11.1.3 4.6-1.2 9.2-3.7 13.8-7.6 4.5-3.9 8.9-9.3 13-16.2a50 50 0 0 0 8.8-25c0-7.1-1.8-12.9-5.3-17.4-2.5-3.2-7.3-7-14.6-11.4l-19.3-11.6-42.4 70.1zM544.6 260l31.3-18.6-24.8-19.9c-7.6-6-13.6-11-18-15.2 2.4 6.6 4.2 13.5 5.5 20.6l6 33zm797-33l44-98 70.8 31.9-5.2 11.5-57.8-26-13.5 30 54.2 24.4-5.2 11.5-54.2-24.4-15 33.3 60.2 27-5.2 11.6-73.1-32.8zM637 257.6L594 159.3l13.3-5.9 85.6 54.4-34-77.1 12.5-5.5 43.3 98.3-13.4 5.8-85.6-54.5 34 77.3-12.5 5.5zm88.8-38.8l8.5-114.7 14.7-4.5 73 90.2-15.5 4.6-21.4-27.5-43 13-1.8 34.5-14.5 4.4zm496-30L1252.6 86 1273 92l2.6 80.1.4 16.7a738 738 0 0 1 10.4-14.8l46-64.3 18.3 5.5L1320 218l-13.1-4 25.6-86-55.5 77.2-12.3-3.7-3.7-96.5-26 87.6-13.2-3.9zm-273.2-19.1l-3.8-107.3 37-1.3c8.4-.3 14.7 0 19.2.9a36.4 36.4 0 0 1 16 7.1 43.7 43.7 0 0 1 13.3 17.9 72 72 0 0 1 5.1 25.4 75 75 0 0 1-2 21.7c-1.8 6.4-4 11.7-6.8 15.9a39 39 0 0 1-9.5 10 39.8 39.8 0 0 1-12.6 6 73 73 0 0 1-17.2 2.3l-38.7 1.4zm110.6-1.4l5.2-107.3 14.1.7-5.1 107.3-14.2-.7zm-316.5-.7l34.9-10.5-19.3-25.2a294 294 0 0 1-13.7-19.2c.6 7 .8 14.1.3 21.3l-2.2 33.6zm219.7-11l22.9-.9c7-.2 12.6-1 16.6-2.5 4-1.5 7-3.4 9.4-6 3.2-3.4 5.7-8 7.4-13.8a66.4 66.4 0 0 0 2-20.8 50 50 0 0 0-6.4-25.6 27.8 27.8 0 0 0-13.8-11.7c-3.9-1.3-10-1.8-18.5-1.5l-22.5.8 2.9 82z"]],template:function(e,t){1&e&&(i.Zb(0,"nb-card",0),i.Zb(1,"nb-card-header",1),i.Qc(2,"Servizi SIMI"),i.Yb(),i.Zb(3,"nb-card-body"),i.Zb(4,"div",2),i.Zb(5,"div",3),i.Zb(6,"div",4),i.Zb(7,"a",5),i.mc(),i.Zb(8,"svg",6),i.Ub(9,"path",7),i.Ub(10,"path",8),i.Yb(),i.Yb(),i.lc(),i.Zb(11,"p"),i.Qc(12,"CRIS"),i.Yb(),i.Yb(),i.Yb(),i.Zb(13,"div",3),i.Zb(14,"div",4),i.Zb(15,"a",9),i.mc(),i.Zb(16,"svg",10),i.Ub(17,"path",11),i.Yb(),i.Yb(),i.lc(),i.Zb(18,"p"),i.Qc(19,"Corsi"),i.Yb(),i.Yb(),i.Yb(),i.Yb(),i.Zb(20,"div",2),i.Zb(21,"div",3),i.Zb(22,"div",12),i.Zb(23,"a"),i.mc(),i.Zb(24,"svg",6),i.Ub(25,"path",13),i.Yb(),i.Yb(),i.lc(),i.Zb(26,"p"),i.Qc(27,"Congressi"),i.Yb(),i.Yb(),i.Yb(),i.Zb(28,"div",3),i.Zb(29,"div",4),i.Zb(30,"a",14),i.mc(),i.Zb(31,"svg",15),i.Ub(32,"path",16),i.Yb(),i.Yb(),i.lc(),i.Zb(33,"p"),i.Qc(34,"Area Riservata"),i.Yb(),i.Yb(),i.Yb(),i.Yb(),i.Yb(),i.Yb())},directives:[r.s,r.u,r.r],styles:['.nb-theme-default [_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:100%}.nb-theme-default [_nghost-%COMP%] .left[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-ordinal-group:1;-ms-flex-order:0;order:0;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.nb-theme-default [_nghost-%COMP%] .right[_ngcontent-%COMP%]{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.nb-theme-default [_nghost-%COMP%] .logo-containter[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:calc(16rem - 1.25rem)}.nb-theme-default [_nghost-%COMP%] .control-item[_ngcontent-%COMP%]{display:block}.nb-theme-default [_nghost-%COMP%] .header-container[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:auto}.nb-theme-default [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]{text-decoration:none;color:#8f9bb3}[dir=ltr] .nb-theme-default [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]{padding-right:1.25rem}[dir=rtl] .nb-theme-default [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]{padding-left:1.25rem}.nb-theme-default [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%]{font-size:1.75rem}.nb-theme-default [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{padding:0 1.25rem;font-size:1.75rem;white-space:nowrap;text-decoration:none}[dir=ltr] .nb-theme-default [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{border-left:1px solid #edf1f7}[dir=rtl] .nb-theme-default [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{border-right:1px solid #edf1f7}.nb-theme-default [_nghost-%COMP%] ngx-layout-direction-switcher[_ngcontent-%COMP%]{margin:0 1.5rem}.nb-theme-default [_nghost-%COMP%] ngx-theme-switcher[_ngcontent-%COMP%]{margin:0 2.25rem}@media (max-width:1399.98px){.nb-theme-default [_nghost-%COMP%] ngx-layout-direction-switcher[_ngcontent-%COMP%]{display:none}}@media (min-width:1200px){.nb-theme-default [_nghost-%COMP%] .toggle[_ngcontent-%COMP%]{display:none}}.nb-theme-default [_nghost-%COMP%] .logout-button[_ngcontent-%COMP%] a i:hover{color:red}.nb-theme-default [_nghost-%COMP%] .logout-button[_ngcontent-%COMP%] a i:active{color:darkred}.nb-theme-default [_nghost-%COMP%] .toggle-layout[_ngcontent-%COMP%] a{display:block;text-decoration:none;line-height:1}.nb-theme-default [_nghost-%COMP%] .toggle-layout[_ngcontent-%COMP%] a i{font-size:2.25rem;border-radius:50%;position:relative;-webkit-animation-name:pulse-light;animation-name:pulse-light}.nb-theme-default [_nghost-%COMP%] .toggle-layout[_ngcontent-%COMP%] a i:after{content:" ";background-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");border-radius:50%;pointer-events:none;position:absolute;top:52.3%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:13%;height:13%;-webkit-animation:pulse 3s linear infinite;animation:pulse 3s linear infinite}@media (max-width:991.98px){.nb-theme-default [_nghost-%COMP%] nb-action[_ngcontent-%COMP%]:not(.toggle-layout){border:none}.nb-theme-default [_nghost-%COMP%] .control-item[_ngcontent-%COMP%]{display:none}.nb-theme-default [_nghost-%COMP%] .toggle-layout[_ngcontent-%COMP%]{padding:0}.nb-theme-default [_nghost-%COMP%] ngx-layout-direction-switcher[_ngcontent-%COMP%]{display:none}.nb-theme-default [_nghost-%COMP%] ngx-theme-switcher[_ngcontent-%COMP%]{margin:0 .5rem}}@media (max-width:767.98px){.nb-theme-default [_nghost-%COMP%] nb-user[_ngcontent-%COMP%] .user-name{display:none}}@media (max-width:575.98px){.nb-theme-default [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{font-size:1.25rem}.nb-theme-default [_nghost-%COMP%] .toggle-layout[_ngcontent-%COMP%]{display:none}.nb-theme-default [_nghost-%COMP%] ngx-theme-switcher[_ngcontent-%COMP%]{display:none}.nb-theme-default [_nghost-%COMP%] nb-action[_ngcontent-%COMP%]:not(.toggle-layout){padding:0}}@media (max-width:399.98px){.nb-theme-default [_nghost-%COMP%] .right[_ngcontent-%COMP%] {display:none}.nb-theme-default [_nghost-%COMP%] .navigation[_ngcontent-%COMP%]{display:none}} nb-card.popover-card{margin-bottom:0;width:300px;-webkit-box-shadow:none;box-shadow:none}nb-popover[_ngcontent-%COMP%]{border:2px solid #000!important}.portal-wrapper[_ngcontent-%COMP%]{text-align:center}.portal-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{margin:1rem 0}.portal-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .portal-element[_ngcontent-%COMP%]{padding:0;width:100px;border:2px solid transparent;-webkit-transition:all .3s;transition:all .3s}.portal-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .portal-element.not-allowed[_ngcontent-%COMP%]{color:currentColor;cursor:not-allowed;opacity:.5;background:#d3d3d3;border:2px solid #d3d3d3;border-radius:.5rem;pointer-events:none}.portal-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .portal-element.not-allowed[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{cursor:not-allowed!important}.portal-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .portal-element[_ngcontent-%COMP%]:hover{border:2px solid #d3d3d3;border-radius:.5rem}.portal-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .portal-element[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-top:1rem;width:60px}.portal-title[_ngcontent-%COMP%]{color:#4472c4}']}),e})()},oB13:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("EQ5u");function r(e,t){return function(n){let r;if(r="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new s(r,t));const o=Object.create(n,i.b);return o.source=n,o.subjectFactory=r,o}}class s{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:n}=this,i=this.subjectFactory(),r=n(i).subscribe(e);return r.add(t.subscribe(i)),r}}},oG2T:function(e,t,n){"use strict";n.d(t,"a",function(){return Ws});var i=n("fXoL"),r=n("aceb"),s={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},o=n("zMQz"),a={date:Object(o.a)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Object(o.a)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Object(o.a)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},c={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},l=n("ku8+"),u={ordinalNumber:function(e,t){var n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Object(l.a)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Object(l.a)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Object(l.a)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Object(l.a)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:Object(l.a)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},d=n("wzM+"),h=n("vRX4"),p={code:"en-US",formatDistance:function(e,t,n){var i,r=s[e];return i="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i},formatLong:a,formatRelative:function(e,t,n,i){return c[e]},localize:u,match:{ordinalNumber:Object(h.a)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:Object(d.a)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Object(d.a)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Object(d.a)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Object(d.a)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Object(d.a)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},f=n("pl0G"),g=n("jIYg"),m=n("/h9T");function b(e,t){Object(g.a)(2,arguments);var n=Object(m.a)(t);return Object(f.a)(e,-n)}var y=n("/Tr7");function v(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var _=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},w=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},k={p:w,P:function(e,t){var n,i=e.match(/(P+)(p+)?/)||[],r=i[1],s=i[2];if(!s)return _(e,t);switch(r){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",_(r,t)).replace("{{time}}",w(s,t))}};function C(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var S=["D","DD"],T=["YY","YYYY"];function P(e){return-1!==S.indexOf(e)}function O(e){return-1!==T.indexOf(e)}function x(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").
vendor: 20,976 bytes, line 1
1concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}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},A(e)}function E(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)}function M(e,t){return M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},M(e,t)}function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,i=D(e);if(t){var r=D(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return R(this,n)}}function R(e,t){return!t||"object"!==A(t)&&"function"!=typeof t?L(e):t}function L(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D(e){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},D(e)}function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function V(e,t,n){return t&&N(e.prototype,t),n&&N(e,n),e}function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F=function(){function e(){j(this,e),z(this,"subPriority",0)}return V(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),B=function(e){E(n,e);var t=I(n);function n(e,i,r,s,o){var a;return j(this,n),(a=t.call(this)).value=e,a.validateValue=i,a.setValue=r,a.priority=s,o&&(a.subPriority=o),a}return V(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(F),q=function(e){E(n,e);var t=I(n);function n(){var e;j(this,n);for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];return z(L(e=t.call.apply(t,[this].concat(r))),"priority",10),z(L(e),"subPriority",-1),e}return V(n,[{key:"set",value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),n}(F);var 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;return(t=[{key:"run",value:function(e,t,n,i){var r=this.parse(e,t,n,i);return r?{setter:new B(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(e.prototype,t),e}();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},H(e)}function W(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G(e,t){return G=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},G(e,t)}function Y(e,t){return!t||"object"!==H(t)&&"function"!=typeof t?$(e):t}function $(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z(e){return Z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Z(e)}function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var X=function(e){!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&&G(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=Z(n);if(i){var r=Z(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return Y(this,e)});function s(){var e;W(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Q($(e=r.call.apply(r,[this].concat(n))),"priority",140),Q($(e),"incompatibleTokens",["R","u","t","T"]),e}return(t=[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U),K=(Math.pow(10,8),/^(1[0-2]|0?\d)/),J=/^(3[0-1]|[0-2]?\d)/,ee=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,te=/^(5[0-3]|[0-4]?\d)/,ne=/^(2[0-3]|[0-1]?\d)/,ie=/^(2[0-4]|[0-1]?\d)/,re=/^(1[0-1]|0?\d)/,se=/^(1[0-2]|0?\d)/,oe=/^[0-5]?\d/,ae=/^[0-5]?\d/,ce=/^\d/,le=/^\d{1,2}/,ue=/^\d{1,3}/,de=/^\d{1,4}/,he=/^-?\d+/,pe=/^-?\d/,fe=/^-?\d{1,2}/,ge=/^-?\d{1,3}/,me=/^-?\d{1,4}/,be=/^([+-])(\d{2})(\d{2})?|Z/,ye=/^([+-])(\d{2})(\d{2})|Z/,ve=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,_e=/^([+-])(\d{2}):(\d{2})|Z/,we=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function ke(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Ce(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Se(e,t){var n=t.match(e);return n?"Z"===n[0]?{value:0,rest:t.slice(1)}:{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:t.slice(n[0].length)}:null}function Te(e){return Ce(he,e)}function Pe(e,t){switch(e){case 1:return Ce(ce,t);case 2:return Ce(le,t);case 3:return Ce(ue,t);case 4:return Ce(de,t);default:return Ce(new RegExp("^\\d{1,"+e+"}"),t)}}function Oe(e,t){switch(e){case 1:return Ce(pe,t);case 2:return Ce(fe,t);case 3:return Ce(ge,t);case 4:return Ce(me,t);default:return Ce(new RegExp("^-?\\d{1,"+e+"}"),t)}}function xe(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Ae(e,t){var n,i=t>0,r=i?t:1-t;if(r<=50)n=e||100;else{var s=r+50;n=e+100*Math.floor(s/100)-(e>=s%100?100:0)}return i?n:1-n}function Ee(e){return e%400==0||e%4==0&&e%100!=0}function Me(e){return Me="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},Me(e)}function Ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Re(e,t){return Re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Re(e,t)}function Le(e,t){return!t||"object"!==Me(t)&&"function"!=typeof t?De(e):t}function De(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function je(e){return je=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},je(e)}function Ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ve=function(e){!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&&Re(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=je(n);if(i){var r=je(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return Le(this,e)});function s(){var e;Ie(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Ne(De(e=r.call.apply(r,[this].concat(n))),"priority",130),Ne(De(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return(t=[{key:"parse",value:function(e,t,n){var i=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return ke(Pe(4,e),i);case"yo":return ke(n.ordinalNumber(e,{unit:"year"}),i);default:return ke(Pe(t.length,e),i)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var i=e.getUTCFullYear();if(n.isTwoDigitYear){var r=Ae(n.year,i);return e.setUTCFullYear(r,0,1),e.setUTCHours(0,0,0,0),e}return e.setUTCFullYear("era"in t&&1!==t.era?1-n.year:n.year,0,1),e.setUTCHours(0,0,0,0),e}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U),ze=n("1vjI"),Fe=n("vq9N");function Be(e,t){var n,i,r,s,o,a,c,l;Object(g.a)(1,arguments);var u=Object(y.a)(e),d=u.getUTCFullYear(),h=Object(Fe.a)(),p=Object(m.a)(null!==(n=null!==(i=null!==(r=null!==(s=null==t?void 0:t.firstWeekContainsDate)&&void 0!==s?s:null==t||null===(o=t.locale)||void 0===o||null===(a=o.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:h.firstWeekContainsDate)&&void 0!==i?i:null===(c=h.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(d+1,0,p),f.setUTCHours(0,0,0,0);var b=Object(ze.a)(f,t),v=new Date(0);v.setUTCFullYear(d,0,p),v.setUTCHours(0,0,0,0);var _=Object(ze.a)(v,t);return u.getTime()>=b.getTime()?d+1:u.getTime()>=_.getTime()?d:d-1}function qe(e){return qe="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},qe(e)}function Ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function He(e,t){return He=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},He(e,t)}function We(e,t){return!t||"object"!==qe(t)&&"function"!=typeof t?Ge(e):t}function Ge(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ye(e){return Ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ye(e)}function $e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ze=function(e){!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&&He(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=Ye(n);if(i){var r=Ye(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return We(this,e)});function s(){var e;Ue(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return $e(Ge(e=r.call.apply(r,[this].concat(n))),"priority",130),$e(Ge(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return(t=[{key:"parse",value:function(e,t,n){var i=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return ke(Pe(4,e),i);case"Yo":return ke(n.ordinalNumber(e,{unit:"year"}),i);default:return ke(Pe(t.length,e),i)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,i){var r=Be(e,i);if(n.isTwoDigitYear){var s=Ae(n.year,r);return e.setUTCFullYear(s,0,i.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Object(ze.a)(e,i)}return e.setUTCFullYear("era"in t&&1!==t.era?1-n.year:n.year,0,i.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Object(ze.a)(e,i)}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U);function Qe(e){Object(g.a)(1,arguments);var t=1,n=Object(y.a)(e),i=n.getUTCDay(),r=(i<t?7:0)+i-t;return n.setUTCDate(n.getUTCDate()-r),n.setUTCHours(0,0,0,0),n}function Xe(e){return Xe="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},Xe(e)}function Ke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Je(e,t){return Je=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Je(e,t)}function et(e,t){return!t||"object"!==Xe(t)&&"function"!=typeof t?tt(e):t}function tt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nt(e){return nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},nt(e)}function it(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rt=function(e){!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&&Je(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=nt(n);if(i){var r=nt(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return et(this,e)});function s(){var e;Ke(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return it(tt(e=r.call.apply(r,[this].concat(n))),"priority",130),it(tt(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return(t=[{key:"parse",value:function(e,t){return Oe("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){var i=new Date(0);return i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0),Qe(i)}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U);function st(e){return st="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},st(e)}function ot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function at(e,t){return at=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},at(e,t)}function ct(e,t){return!t||"object"!==st(t)&&"function"!=typeof t?lt(e):t}function lt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ut(e){return ut=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ut(e)}function dt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ht=function(e){!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)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=ut(n);if(i){var r=ut(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return ct(this,e)});function s(){var e;ot(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return dt(lt(e=r.call.apply(r,[this].concat(n))),"priority",130),dt(lt(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return(t=[{key:"parse",value:function(e,t){return Oe("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U);function pt(e){return pt="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},pt(e)}function ft(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gt(e,t){return gt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},gt(e,t)}function mt(e,t){return!t||"object"!==pt(t)&&"function"!=typeof t?bt(e):t}function bt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yt(e){return yt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},yt(e)}function vt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _t=function(e){!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)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=yt(n);if(i){var r=yt(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return mt(this,e)});function s(){var e;ft(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return vt(bt(e=r.call.apply(r,[this].concat(n))),"priority",120),vt(bt(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return(t=[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return Pe(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i
1.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U);function wt(e){return wt="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},wt(e)}function kt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ct(e,t){return Ct=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ct(e,t)}function St(e,t){return!t||"object"!==wt(t)&&"function"!=typeof t?Tt(e):t}function Tt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pt(e){return Pt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pt(e)}function Ot(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xt=function(e){!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&&Ct(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=Pt(n);if(i){var r=Pt(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return St(this,e)});function s(){var e;kt(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Ot(Tt(e=r.call.apply(r,[this].concat(n))),"priority",120),Ot(Tt(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return(t=[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return Pe(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U);function At(e){return At="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},At(e)}function Et(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mt(e,t){return Mt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Mt(e,t)}function It(e,t){return!t||"object"!==At(t)&&"function"!=typeof t?Rt(e):t}function Rt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lt(e){return Lt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Lt(e)}function Dt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jt=function(e){!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)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=Lt(n);if(i){var r=Lt(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return It(this,e)});function s(){var e;Et(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Dt(Rt(e=r.call.apply(r,[this].concat(n))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Dt(Rt(e),"priority",110),e}return(t=[{key:"parse",value:function(e,t,n){var i=function(e){return e-1};switch(t){case"M":return ke(Ce(K,e),i);case"MM":return ke(Pe(2,e),i);case"Mo":return ke(n.ordinalNumber(e,{unit:"month"}),i);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U);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}
1,Nt(e)}function Vt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zt(e,t){return zt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},zt(e,t)}function Ft(e,t){return!t||"object"!==Nt(t)&&"function"!=typeof t?Bt(e):t}function Bt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qt(e){return qt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},qt(e)}function Ut(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ht=function(e){!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&&zt(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=qt(n);if(i){var r=qt(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return Ft(this,e)});function s(){var e;Vt(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Ut(Bt(e=r.call.apply(r,[this].concat(n))),"priority",110),Ut(Bt(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return(t=[{key:"parse",value:function(e,t,n){var i=function(e){return e-1};switch(t){case"L":return ke(Ce(K,e),i);case"LL":return ke(Pe(2,e),i);case"Lo":return ke(n.ordinalNumber(e,{unit:"month"}),i);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U);function Wt(e,t){var n,i,r,s,o,a,c,l;Object(g.a)(1,arguments);var u=Object(Fe.a)(),d=Object(m.a)(null!==(n=null!==(i=null!==(r=null!==(s=null==t?void 0:t.firstWeekContainsDate)&&void 0!==s?s:null==t||null===(o=t.locale)||void 0===o||null===(a=o.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:u.firstWeekContainsDate)&&void 0!==i?i:null===(c=u.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==n?n:1),h=Be(e,t),p=new Date(0);p.setUTCFullYear(h,0,d),p.setUTCHours(0,0,0,0);var f=Object(ze.a)(p,t);return f}function Gt(e,t){Object(g.a)(1,arguments);var n=Object(y.a)(e),i=Object(ze.a)(n,t).getTime()-Wt(n,t).getTime();return Math.round(i/6048e5)+1}function Yt(e){return Yt="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},Yt(e)}function $t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zt(e,t){return Zt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Zt(e,t)}function Qt(e,t){return!t||"object"!==Yt(t)&&"function"!=typeof t?Xt(e):t}function Xt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kt(e){return Kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Kt(e)}function Jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var en=function(e){!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&&Zt(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=Kt(n);if(i){var r=Kt(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return Qt(this,e)});function s(){var e;$t(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Jt(Xt(e=r.call.apply(r,[this].concat(n))),"priority",100),Jt(Xt(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return t=[{key:"parse",value:function(e,t,n){switch(t){case"w":return Ce(te,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return Pe(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,i){return Object(ze.a)(function(e,t,n){Object(g.a)(2,arguments);var i=Object(y.a)(e),r=Object(m.a)(t),s=Gt(i,n)-r;return i.setUTCDate(i.getUTCDate()-7*s),i}(e,n,i),i)}}],t&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U);function tn(e){Object(g.a)(1,arguments);var t=Object(y.a)(e),n=t.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(n+1,0,4),i.setUTCHours(0,0,0,0);var r=Qe(i),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var o=Qe(s);return t.getTime()>=r.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function nn(e){Object(g.a)(1,arguments);var t=tn(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var i=Qe(n);return i}function rn(e){Object(g.a)(1,arguments);var t=Object(y.a)(e),n=Qe(t).getTime()-nn(t).getTime();return Math.round(n/6048e5)+1}function sn(e){return sn="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},sn(e)}function on(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function an(e,t){return an=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},an(e,t)}function cn(e,t){return!t||"object"!==sn(t)&&"function"!=typeof t?ln(e):t}function ln(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function un(e){return un=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},un(e)}function dn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hn=function(e){!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&&an(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=un(n);if(i){var r=un(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return cn(this,e)});function s(){var e;on(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return dn(ln(e=r.call.apply(r,[this].concat(n))),"priority",100),dn(ln(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return t=[{key:"parse",value:function(e,t,n){switch(t){case"I":return Ce(te,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return Pe(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return Qe(function(e,t){Object(g.a)(2,arguments);var n=Object(y.a)(e),i=Object(m.a)(t),r=rn(n)-i;return n.setUTCDate(n.getUTCDate()-7*r),n}(e,n))}}],t&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U);function pn(e){return pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pn(e)}function fn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gn(e,t){return gn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},gn(e,t)}function mn(e,t){return!t||"object"!==pn(t)&&"function"!=typeof t?bn(e):t}function bn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yn(e){return yn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},yn(e)}
1function vn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _n=[31,28,31,30,31,30,31,31,30,31,30,31],wn=[31,29,31,30,31,30,31,31,30,31,30,31],kn=function(e){!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&&gn(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=yn(n);if(i){var r=yn(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return mn(this,e)});function s(){var e;fn(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return vn(bn(e=r.call.apply(r,[this].concat(n))),"priority",90),vn(bn(e),"subPriority",1),vn(bn(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return(t=[{key:"parse",value:function(e,t,n){switch(t){case"d":return Ce(J,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return Pe(t.length,e)}}},{key:"validate",value:function(e,t){var n=Ee(e.getUTCFullYear()),i=e.getUTCMonth();return n?t>=1&&t<=wn[i]:t>=1&&t<=_n[i]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U);function Cn(e){return Cn="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},Cn(e)}function Sn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tn(e,t){return Tn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Tn(e,t)}function Pn(e,t){return!t||"object"!==Cn(t)&&"function"!=typeof t?On(e):t}function On(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xn(e){return xn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xn(e)}function An(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var En=function(e){!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)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=xn(n);if(i){var r=xn(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return Pn(this,e)});function s(){var e;Sn(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return An(On(e=r.call.apply(r,[this].concat(n))),"priority",90),An(On(e),"subpriority",1),An(On(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return(t=[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return Ce(ee,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return Pe(t.length,e)}}},{key:"validate",value:function(e,t){return Ee(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U);function Mn(e,t,n){var i,r,s,o,a,c,l,u;Object(g.a)(2,arguments);var d=Object(Fe.a)(),h=Object(m.a)(null!==(i=null!==(r=null!==(s=null!==(o=null==n?void 0:n.weekStartsOn)&&void 0!==o?o:null==n||null===(a=n.locale)||void 0===a||null===(c=a.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==s?s:d.weekStartsOn)&&void 0!==r?r:null===(l=d.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==i?i:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Object(y.a)(e),f=Object(m.a)(t),b=p.getUTCDay(),v=f%7,_=(v+7)%7,w=(_<h?7:0)+f-b;return p.setUTCDate(p.getUTCDate()+w),p}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},In(e)}function Rn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function Ln(e,t){return Ln=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ln(e,t)}function Dn(e,t){return!t||"object"!==In(t)&&"function"!=typeof t?jn(e):t}function jn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nn(e){return Nn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Nn(e)}function Vn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zn=function(e){!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&&Ln(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=Nn(n);if(i){var r=Nn(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return Dn(this,e)});function s(){var e;Rn(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Vn(jn(e=r.call.apply(r,[this].concat(n))),"priority",90),Vn(jn(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return(t=[{key:"parse",value:function(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,i){return(e=Mn(e,n,i)).setUTCHours(0,0,0,0),e}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U);function Fn(e){return Fn="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},Fn(e)}function Bn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qn(e,t){return qn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},qn(e,t)}function Un(e,t){return!t||"object"!==Fn(t)&&"function"!=typeof t?Hn(e):t}function Hn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wn(e){return Wn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Wn(e)}function Gn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yn=function(e){!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&&qn(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=Wn(n);if(i){var r=Wn(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return Un(this,e)});function s(){var e;Bn(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Gn(Hn(e=r.call.apply(r,[this].concat(n))),"priority",90),Gn(Hn(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return(t=[{key:"parse",value:function(e,t,n,i){var r=function(e){var t=7*Math.floor((e-1)/7);return(e+i.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return ke(Pe(t.length,e),r);case"eo":return ke(n.ordinalNumber(e,{unit:"day"}),r);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,i){return(e=Mn(e,n,i)).setUTCHours(0,0,0,0),e}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U);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},$n(e)}function Zn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function Qn(e,t){return Qn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Qn(e,t)}function Xn(e,t){return!t||"object"!==$n(t)&&"function"!=typeof t?Kn(e):t}function Kn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jn(e){return Jn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Jn(e)}function ei(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ti=function(e){!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&&Qn(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=Jn(n);if(i){var r=Jn(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return Xn(this,e)});function s(){var e;Zn(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return ei(Kn(e=r.call.apply(r,[this].concat(n))),"priority",90),ei(Kn(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return(t=[{key:"parse",value:function(e,t,n,i){var r=function(e){var t=7*Math.floor((e-1)/7);return(e+i.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return ke(Pe(t.length,e),r);case"co":return ke(n.ordinalNumber(e,{unit:"day"}),r);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,i){return(e=Mn(e,n,i)).setUTCHours(0,0,0,0),e}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U);function ni(e){return ni="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},ni(e)}function ii(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function ri(e,t){return ri=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ri(e,t)}function si(e,t){return!t||"object"!==ni(t)&&"function"!=typeof t?oi(e):t}function oi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ai(e){return ai=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ai(e)}function ci(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var li=function(e){!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&&ri(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=ai(n);if(i){var r=ai(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return si(this,e)});function s(){var e;ii(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return ci(oi(e=r.call.apply(r,[this].concat(n))),"priority",90),ci(oi(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return t=[{key:"parse",value:function(e,t,n){var i=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return Pe(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return ke(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),i);case"iiiii":return ke(n.day(e,{width:"narrow",context:"formatting"}),i);case"iiiiii":return ke(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),i);default:return ke(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),i)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return e=function(e,t){Object(g.a)(2,arguments);var n=Object(m.a)(t);n%7==0&&(n-=7);var i=1,r=Object(y.a)(e),s=r.getUTCDay(),o=((n%7+7)%7<i?7:0)+n-s;return r.setUTCDate(r.getUTCDate()+o),r}(e,n),e.setUTCHours(0,0,0,0),e}}],t&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U);function ui(e){return ui="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},ui(e)}function di(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hi(e,t){return hi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},hi(e,t)}function pi(e,t){return!t||"object"!==ui(t)&&"function"!=typeof t?fi(e):t}function fi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gi(e){return gi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},gi(e)}function mi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bi=function(e){!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&&hi(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=gi(n);if(i){var r=gi(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return pi(this,e)});function s(){var e;di(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return mi(fi(e=r.call.apply(r,[this].concat(n))),"priority",80),mi(fi(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return(t=[{key:"parse",value:function(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(xe(n),0,0,0),e}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U);function yi(e){return yi="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},yi(e)}function vi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function _i(e,t){return _i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_i(e,t)}function wi(e,t){return!t||"object"!==yi(t)&&"function"!=typeof t?ki(e):t}function ki(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ci(e){return Ci=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ci(e)}function Si(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ti=function(e){!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)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=Ci(n);if(i){var r=Ci(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return wi(this,e)});function s(){var e;vi(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Si(ki(e=r.call.apply(r,[this].concat(n))),"priority",80),Si(ki(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return(t=[{key:"parse",value:function(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(xe(n),0,0,0),e}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U);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},Pi(e)}function Oi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xi(e,t){return xi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},xi(e,t)}function Ai(e,t){return!t||"object"!==Pi(t)&&"function"!=typeof t?Ei(e):t}function Ei(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mi(e){return Mi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Mi(e)}function Ii(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ri=function(e){!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&&xi(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=Mi(n);if(i){var r=Mi(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return Ai(this,e)});function s(){var e;Oi(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Ii(Ei(e=r.call.apply(r,[this].concat(n))),"priority",80),Ii(Ei(e),"incompatibleTokens",["a","b","t","T"]),e}return(t=[{key:"parse",value:function(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(xe(n),0,0,0),e}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U);function Li(e){return Li="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},Li(e)}function Di(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function ji(e,t){return ji=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ji(e,t)}function Ni(e,t){return!t||"object"!==Li(t)&&"function"!=typeof t?Vi(e):t}function Vi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zi(e){return zi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},zi(e)}function Fi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bi=function(e){!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&&ji(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=zi(n);if(i){var r=zi(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return Ni(this,e)});function s(){var e;Di(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Fi(Vi(e=r.call.apply(r,[this].concat(n))),"priority",70),Fi(Vi(e),"incompatibleTokens",["H","K","k","t","T"]),e}return(t=[{key:"parse",value:function(e,t,n){switch(t){case"h":return Ce(se,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return Pe(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,n){var i=e.getUTCHours()>=12;return e.setUTCHours(i&&n<12?n+12:i||12!==n?n:0,0,0,0),e}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U);function qi(e){return qi="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},qi(e)}function Ui(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hi(e,t){return Hi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Hi(e,t)}function Wi(e,t){return!t||"object"!==qi(t)&&"function"!=typeof t?Gi(e):t}function Gi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yi(e){return Yi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Yi(e)}function $i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zi=function(e){!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&&Hi(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=Yi(n);if(i){var r=Yi(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return Wi(this,e)});function s(){var e;Ui(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return $i(Gi(e=r.call.apply(r,[this].concat(n))),"priority",70),$i(Gi(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return(t=[{key:"parse",value:function(e,t,n){switch(t){case"H":return Ce(ne,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return Pe(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U);function Qi(e){return Qi="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},Qi(e)}function Xi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function Ki(e,t){return Ki=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ki(e,t)}function Ji(e,t){return!t||"object"!==Qi(t)&&"function"!=typeof t?er(e):t}function er(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tr(e){return tr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},tr(e)}function nr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ir=function(e){!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)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=tr(n);if(i){var r=tr(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return Ji(this,e)});function s(){var e;Xi(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return nr(er(e=r.call.apply(r,[this].concat(n))),"priority",70),nr(er(e),"incompatibleTokens",["h","H","k","t","T"]),e}return(t=[{key:"parse",value:function(e,t,n){switch(t){case"K":return Ce(re,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return Pe(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){var i=e.getUTCHours()>=12;return e.setUTCHours(i&&n<12?n+12:n,0,0,0),e}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U);function rr(e){return rr="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},rr(e)}function sr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function or(e,t){return or=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},or(e,t)}function ar(e,t){return!t||"object"!==rr(t)&&"function"!=typeof t?cr(e):t}function cr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lr(e){return lr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},lr(e)}function ur(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dr=function(e){!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&&or(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=lr(n);if(i){var r=lr(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return ar(this,e)});function s(){var e;sr(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return ur(cr(e=r.call.apply(r,[this].concat(n))),"priority",70),ur(cr(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return(t=[{key:"parse",value:function(e,t,n){switch(t){case"k":return Ce(ie,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return Pe(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){return e.setUTCHours(n<=24?n%24:n,0,0,0),e}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U);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},hr(e)}function pr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fr(e,t){return fr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},fr(e,t)}function gr(e,t){return!t||"object"!==hr(t)&&"function"!=typeof t?mr(e):t}function mr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function br(e){return br=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},br(e)}function yr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vr=function(e){!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&&fr(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=br(n);if(i){var r=br(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return gr(this,e)});function s(){var e;pr(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return yr(mr(e=r.call.apply(r,[this].concat(n))),"priority",60),yr(mr(e),"incompatibleTokens",["t","T"]),e}return(t=[{key:"parse",value:function(e,t,n){switch(t){case"m":return Ce(oe,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return Pe(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U);function _r(e){return _r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_r(e)}function wr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kr(e,t){return kr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},kr(e,t)}function Cr(e,t){return!t||"object"!==_r(t)&&"function"!=typeof t?Sr(e):t}function Sr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tr(e){return Tr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Tr(e)}function Pr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Or=function(e){!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}}
1),t&&kr(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=Tr(n);if(i){var r=Tr(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return Cr(this,e)});function s(){var e;wr(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Pr(Sr(e=r.call.apply(r,[this].concat(n))),"priority",50),Pr(Sr(e),"incompatibleTokens",["t","T"]),e}return(t=[{key:"parse",value:function(e,t,n){switch(t){case"s":return Ce(ae,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return Pe(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U);function xr(e){return xr="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},xr(e)}function Ar(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Er(e,t){return Er=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Er(e,t)}function Mr(e,t){return!t||"object"!==xr(t)&&"function"!=typeof t?Ir(e):t}function Ir(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rr(e){return Rr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Rr(e)}function Lr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dr=function(e){!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&&Er(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=Rr(n);if(i){var r=Rr(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return Mr(this,e)});function s(){var e;Ar(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Lr(Ir(e=r.call.apply(r,[this].concat(n))),"priority",30),Lr(Ir(e),"incompatibleTokens",["t","T"]),e}return(t=[{key:"parse",value:function(e,t){return ke(Pe(t.length,e),function(e){return Math.floor(e*Math.pow(10,3-t.length))})}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U);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},jr(e)}function Nr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vr(e,t){return Vr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Vr(e,t)}function zr(e,t){return!t||"object"!==jr(t)&&"function"!=typeof t?Fr(e):t}function Fr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Br(e){return Br=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Br(e)}function qr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ur=function(e){!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)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=Br(n);if(i){var r=Br(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return zr(this,e)});function s(){var e;Nr(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return qr(Fr(e=r.call.apply(r,[this].concat(n))),"priority",10),qr(Fr(e),"incompatibleTokens",["t","T","x"]),e}return(t=[{key:"parse",value:function(e,t){switch(t){case"X":return Se(be,e);case"XX":return Se(ye,e);case"XXXX":return Se(ve,e);case"XXXXX":return Se(we,e);default:return Se(_e,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U);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},Hr(e)}function Wr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gr(e,t){return Gr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Gr(e,t)}function Yr(e,t){return!t||"object"!==Hr(t)&&"function"!=typeof t?$r(e):t}function $r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zr(e){return Zr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zr(e)}function Qr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xr=function(e){!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&&Gr(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=Zr(n);if(i){var r=Zr(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return Yr(this,e)});function s(){var e;Wr(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Qr($r(e=r.call.apply(r,[this].concat(n))),"priority",10),Qr($r(e),"incompatibleTokens",["t","T","X"]),e}return(t=[{key:"parse",value:function(e,t){switch(t){case"x":return Se(be,e);case"xx":return Se(ye,e);case"xxxx":return Se(ve,e);case"xxxxx":return Se(we,e);default:return Se(_e,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U);function Kr(e){return Kr="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},Kr(e)}function Jr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1function es(e,t){return es=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},es(e,t)}function ts(e,t){return!t||"object"!==Kr(t)&&"function"!=typeof t?ns(e):t}function ns(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function is(e){return is=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},is(e)}function rs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ss=function(e){!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&&es(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=is(n);if(i){var r=is(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return ts(this,e)});function s(){var e;Jr(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return rs(ns(e=r.call.apply(r,[this].concat(n))),"priority",40),rs(ns(e),"incompatibleTokens","*"),e}return(t=[{key:"parse",value:function(e){return Te(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U);function os(e){return os="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},os(e)}function as(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cs(e,t){return cs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},cs(e,t)}function ls(e,t){return!t||"object"!==os(t)&&"function"!=typeof t?us(e):t}function us(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ds(e){return ds=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ds(e)}function hs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ps=function(e){!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&&cs(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=ds(n);if(i){var r=ds(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return ls(this,e)});function s(){var e;as(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return hs(us(e=r.call.apply(r,[this].concat(n))),"priority",20),hs(us(e),"incompatibleTokens","*"),e}return(t=[{key:"parse",value:function(e){return Te(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(s.prototype,t),s}(U),fs={G:new X,y:new Ve,Y:new Ze,R:new rt,u:new ht,Q:new _t,q:new xt,M:new jt,L:new Ht,w:new en,I:new hn,d:new kn,D:new En,E:new zn,e:new Yn,c:new ti,i:new li,a:new bi,b:new Ti,B:new Ri,h:new Bi,H:new Zi,K:new ir,k:new dr,m:new vr,s:new Or,S:new Dr,X:new Ur,x:new Xr,t:new ss,T:new ps};function gs(e){return gs="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},gs(e)}function ms(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return bs(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bs(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,s=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw s}}}}function bs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var ys=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vs=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_s=/^'([^]*?)'?$/,ws=/''/g,ks=/\S/,Cs=/[a-zA-Z]/;function Ss(e){return e.match(_s)[1].replace(ws,"'")}function Ts(e){return Ts="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},Ts(e)}function Ps(e){return Object(g.a)(1,arguments),e instanceof Date||"object"===Ts(e)&&"[object Date]"===Object.prototype.toString.call(e)}function Os(e){if(Object(g.a)(1,arguments),!Ps(e)&&"number"!=typeof e)return!1;var t=Object(y.a)(e);return!isNaN(Number(t))}function xs(e,t){for(var n=e<0?"-":"",i=Math.abs(e).toString();i.length<t;)i="0"+i;return n+i}var As={G:function(e,t,n){var i=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var i=e.getUTCFullYear();return n.ordinalNumber(i>0?i:1-i,{unit:"year"})}return function(e,t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return xs("yy"===t?i%100:i,t.length)}(e,t)},Y:function(e,t,n,i){var r=Be(e,i),s=r>0?r:1-r;return"YY"===t?xs(s%100,2):"Yo"===t?n.ordinalNumber(s,{unit:"year"}):xs(s,t.length)},R:function(e,t){return xs(tn(e),t.length)},u:function(e,t){return xs(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return xs(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return xs(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){var i=e.getUTCMonth();switch(t){case"M":case"MM":return function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):xs(n+1,2)}(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){var i=e.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return xs(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){var r=Gt(e,i);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):xs(r,t.length)},I:function(e,t,n){var i=rn(e);return"Io"===t?n.ordinalNumber(i,{unit:"week"}):xs(i,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):function(e,t){return xs(e.getUTCDate(),t.length)}(e,t)},D:function(e,t,n){var i=function(e){Object(g.a)(1,arguments);var t=Object(y.a)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var i=t.getTime();return Math.floor((n-i)/864e5)+1}(e);return"Do"===t?n.ordinalNumber(i,{unit:"dayOfYear"}):xs(i,t.length)},E:function(e,t,n){var i=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){var r=e.getUTCDay(),s=(r-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return xs(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){var r=e.getUTCDay(),s=(r-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return xs(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){var i=e.getUTCDay(),r=0===i?7:i;switch(t){case"i":return String(r);case"ii":return xs(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){var i=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){var i,r=e.getUTCHours();switch(i=12===r?"noon":0===r?"midnight":r/12>
1=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){var i,r=e.getUTCHours();switch(i=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var i=e.getUTCHours()%12;return 0===i&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return function(e,t){return xs(e.getUTCHours()%12||12,t.length)}(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):function(e,t){return xs(e.getUTCHours(),t.length)}(e,t)},K:function(e,t,n){var i=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(i,{unit:"hour"}):xs(i,t.length)},k:function(e,t,n){var i=e.getUTCHours();return 0===i&&(i=24),"ko"===t?n.ordinalNumber(i,{unit:"hour"}):xs(i,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):function(e,t){return xs(e.getUTCMinutes(),t.length)}(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):function(e,t){return xs(e.getUTCSeconds(),t.length)}(e,t)},S:function(e,t){return function(e,t){var n=t.length,i=e.getUTCMilliseconds();return xs(Math.floor(i*Math.pow(10,n-3)),t.length)}(e,t)},X:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return Ms(r);case"XXXX":case"XX":return Is(r);default:return Is(r,":")}},x:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();switch(t){case"x":return Ms(r);case"xxxx":case"xx":return Is(r);default:return Is(r,":")}},O:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Es(r,":");default:return"GMT"+Is(r,":")}},z:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Es(r,":");default:return"GMT"+Is(r,":")}},t:function(e,t,n,i){return xs(Math.floor((i._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,n,i){return xs((i._originalDate||e).getTime(),t.length)}};function Es(e,t){var n=e>0?"-":"+",i=Math.abs(e),r=Math.floor(i/60),s=i%60;if(0===s)return n+String(r);var o=t||"";return n+String(r)+o+xs(s,2)}function Ms(e,t){return e%60==0?(e>0?"-":"+")+xs(Math.abs(e)/60,2):Is(e,t)}function Is(e,t){var n=t||"",i=e>0?"-":"+",r=Math.abs(e);return i+xs(Math.floor(r/60),2)+n+xs(r%60,2)}var Rs=As,Ls=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ds=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,js=/^'([^]*?)'?$/,Ns=/''/g,Vs=/[a-zA-Z]/;function zs(e){var t=e.match(js);return t?t[1].replace(Ns,"'"):e}function Fs(e,t){var n,i,r,s,o,a,c,l;Object(g.a)(1,arguments);var u=Object(Fe.a)(),d=Object(m.a)(null!==(n=null!==(i=null!==(r=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t||null===(o=t.locale)||void 0===o||null===(a=o.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:u.weekStartsOn)&&void 0!==i?i:null===(c=u.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Object(y.a)(e),p=h.getDay(),f=(p<d?7:0)+p-d;return h.setDate(h.getDate()-f),h.setHours(0,0,0,0),h}function Bs(e,t){var n,i,r,s,o,a,c,l;Object(g.a)(1,arguments);var u=Object(y.a)(e),d=u.getFullYear(),h=Object(Fe.a)(),p=Object(m.a)(null!==(n=null!==(i=null!==(r=null!==(s=null==t?void 0:t.firstWeekContainsDate)&&void 0!==s?s:null==t||null===(o=t.locale)||void 0===o||null===(a=o.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:h.firstWeekContainsDate)&&void 0!==i?i:null===(c=h.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setFullYear(d+1,0,p),f.setHours(0,0,0,0);var b=Fs(f,t),v=new Date(0);v.setFullYear(d,0,p),v.setHours(0,0,0,0);var _=Fs(v,t);return u.getTime()>=b.getTime()?d+1:u.getTime()>=_.getTime()?d:d-1}function qs(e,t){var n,i,r,s,o,a,c,l;Object(g.a)(1,arguments);var u=Object(Fe.a)(),d=Object(m.a)(null!==(n=null!==(i=null!==(r=null!==(s=null==t?void 0:t.firstWeekContainsDate)&&void 0!==s?s:null==t||null===(o=t.locale)||void 0===o||null===(a=o.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:u.firstWeekContainsDate)&&void 0!==i?i:null===(c=u.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==n?n:1),h=Bs(e,t),p=new Date(0);p.setFullYear(h,0,d),p.setHours(0,0,0,0);var f=Fs(p,t);return f}let Us=(()=>{class e extends r.cb{constructor(e,t){super(e),this.options=t||{}}format(e,t){return e?function(e,t,n){var i,r,s,o,a,c,l,u,d,h,f,v,_,w,S,T,A,E;Object(g.a)(2,arguments);var M=String(t),I=Object(Fe.a)(),R=null!==(i=null!==(r=null==n?void 0:n.locale)&&void 0!==r?r:I.locale)&&void 0!==i?i:p,L=Object(m.a)(null!==(s=null!==(o=null!==(a=null!==(c=null==n?void 0:n.firstWeekContainsDate)&&void 0!==c?c:null==n||null===(l=n.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==a?a:I.firstWeekContainsDate)&&void 0!==o?o:null===(d=I.locale)||void 0===d||null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==s?s:1);if(!(L>=1&&L<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var D=Object(m.a)(null!==(f=null!==(v=null!==(_=null!==(w=null==n?void 0:n.weekStartsOn)&&void 0!==w?w:null==n||null===(S=n.locale)||void 0===S||null===(T=S.options)||void 0===T?void 0:T.weekStartsOn)&&void 0!==_?_:I.weekStartsOn)&&void 0!==v?v:null===(A=I.locale)||void 0===A||null===(E=A.options)||void 0===E?void 0:E.weekStartsOn)&&void 0!==f?f:0);if(!(D>=0&&D<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!R.localize)throw new RangeError("locale must contain localize property");if(!R.formatLong)throw new RangeError("locale must contain formatLong property");var j=Object(y.a)(e);if(!Os(j))throw new RangeError("Invalid time value");var N=C(j),V=b(j,N),z={firstWeekContainsDate:L,weekStartsOn:D,locale:R,_originalDate:j};return M.match(Ds).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,k[t])(e,R.formatLong):e}).join("").match(Ls).map(function(i){if("''"===i)return"'";var r=i[0];if("'"===r)return zs(i);var s=Rs[r];if(s)return null!=n&&n.useAdditionalWeekYearTokens||!O(i)||x(i,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!P(i)||x(i,t,String(e)),s(V,i,R.localize,z);
1if(r.match(Vs))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return i}).join("")}(e,t||this.options.format,this.options.formatOptions):""}parse(e,t){return function(e,t,n,i){var r,s,o,a,c,l,u,d,h,f,_,w,S,T,A,E,M,I;Object(g.a)(3,arguments);var R=String(e),L=String(t),D=Object(Fe.a)(),j=null!==(r=null!==(s=null==i?void 0:i.locale)&&void 0!==s?s:D.locale)&&void 0!==r?r:p;if(!j.match)throw new RangeError("locale must contain match property");var N=Object(m.a)(null!==(o=null!==(a=null!==(c=null!==(l=null==i?void 0:i.firstWeekContainsDate)&&void 0!==l?l:null==i||null===(u=i.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==c?c:D.firstWeekContainsDate)&&void 0!==a?a:null===(h=D.locale)||void 0===h||null===(f=h.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==o?o:1);if(!(N>=1&&N<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var V=Object(m.a)(null!==(_=null!==(w=null!==(S=null!==(T=null==i?void 0:i.weekStartsOn)&&void 0!==T?T:null==i||null===(A=i.locale)||void 0===A||null===(E=A.options)||void 0===E?void 0:E.weekStartsOn)&&void 0!==S?S:D.weekStartsOn)&&void 0!==w?w:null===(M=D.locale)||void 0===M||null===(I=M.options)||void 0===I?void 0:I.weekStartsOn)&&void 0!==_?_:0);if(!(V>=0&&V<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===L)return""===R?Object(y.a)(n):new Date(NaN);var z,F={firstWeekContainsDate:N,weekStartsOn:V,locale:j},B=[new q],U=L.match(vs).map(function(e){var t=e[0];return t in k?(0,k[t])(e,j.formatLong):e}).join("").match(ys),H=[],W=ms(U);try{var G=function(){var t=z.value;null!=i&&i.useAdditionalWeekYearTokens||!O(t)||x(t,L,e),null!=i&&i.useAdditionalDayOfYearTokens||!P(t)||x(t,L,e);var n=t[0],r=fs[n];if(r){var s=r.incompatibleTokens;if(Array.isArray(s)){var o=H.find(function(e){return s.includes(e.token)||e.token===n});if(o)throw new RangeError("The format string mustn't contain `".concat(o.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===r.incompatibleTokens&&H.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));H.push({token:n,fullToken:t});var a=r.run(R,t,j.match,F);if(!a)return{v:new Date(NaN)};B.push(a.setter),R=a.rest}else{if(n.match(Cs))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=Ss(t)),0!==R.indexOf(t))return{v:new Date(NaN)};R=R.slice(t.length)}};for(W.s();!(z=W.n()).done;){var Y=G();if("object"===gs(Y))return Y.v}}catch(ne){W.e(ne)}finally{W.f()}if(R.length>0&&ks.test(R))return new Date(NaN);var $=B.map(function(e){return e.priority}).sort(function(e,t){return t-e}).filter(function(e,t,n){return n.indexOf(e)===t}).map(function(e){return B.filter(function(t){return t.priority===e}).sort(function(e,t){return t.subPriority-e.subPriority})}).map(function(e){return e[0]}),Z=Object(y.a)(n);if(isNaN(Z.getTime()))return new Date(NaN);var Q,X=b(Z,C(Z)),K={},J=ms($);try{for(J.s();!(Q=J.n()).done;){var ee=Q.value;if(!ee.validate(X,F))return new Date(NaN);var te=ee.set(X,K,F);Array.isArray(te)?(X=te[0],v(K,te[1])):X=te}}catch(ne){J.e(ne)}finally{J.f()}return X}(e,t||this.options.format,new Date,this.options.parseOptions)}getId(){return"date-fns"}getWeekNumber(e){return function(e,t){Object(g.a)(1,arguments);var n=Object(y.a)(e),i=Fs(n,t).getTime()-qs(n,t).getTime();return Math.round(i/6048e5)+1}(e,this.options.getWeekOptions)}getDateFormat(){return"YYYY-MM-dd"}}return e.\u0275fac=function(t){return new(t||e)(i.gc(i.x),i.gc(r.a,8))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();const Hs={provide:r.A,useClass:Us};let Ws=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[Hs,{provide:r.a,useValue:t}]}}static forChild(t){return{ngModule:e,providers:[Hs,{provide:r.a,useValue:t}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({providers:[Hs]}),e})()},oaRb:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiPaymentFee"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiPaymentFee",plural:"SimiPaymentFees",path:"SimiPaymentFees",idName:"id",properties:{userId:{name:"userId",type:"any"},associateId:{name:"associateId",type:"any"},year:{name:"year",type:"number"},amount:{name:"amount",type:"number"},due_date:{name:"due_date",type:"Date"},details:{name:"details",type:"string"},status:{name:"status",type:"string",default:"pending"},processed_date:{name:"processed_date",type:"Date"},partial_amount:{name:"partial_amount",type:"number"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{associate:{name:"associate",type:"SimiAssociate",model:"SimiAssociate",relationType:"belongsTo",keyFrom:"associateId",keyTo:"id"},transactions:{name:"transactions",type:"SimiPaymentTransaction[]",model:"SimiPaymentTransaction",relationType:"hasMany",keyFrom:"id",keyTo:"targetId"},user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},ofXK:function(e,t,n){"use strict";n.d(t,"a",function(){return _}),n.d(t,"b",function(){return Le}),n.d(t,"c",function(){return Ne}),n.d(t,"d",function(){return c}),n.d(t,"e",function(){return De}),n.d(t,"f",function(){return x}),n.d(t,"g",function(){return E}),n.d(t,"h",function(){return k}),n.d(t,"i",function(){return d}),n.d(t,"j",function(){return C}),n.d(t,"k",function(){return y}),n.d(t,"l",function(){return me}),n.d(t,"m",function(){return ye}),n.d(t,"n",function(){return _e}),n.d(t,"o",function(){return Oe}),n.d(t,"p",function(){return Se}),n.d(t,"q",function(){return Te}),n.d(t,"r",function(){return Pe}),n.d(t,"s",function(){return xe}),n.d(t,"t",function(){return w}),n.d(t,"u",function(){return je}),n.d(t,"v",function(){return l}),n.d(t,"w",function(){return A}),n.d(t,"x",function(){return Be}),n.d(t,"y",function(){return Q}),n.d(t,"z",function(){return R}),n.d(t,"A",function(){return I}),n.d(t,"B",function(){return D}),n.d(t,"C",function(){return L}),n.d(t,"D",function(){return N}),n.d(t,"E",function(){return ze}),n.d(t,"F",function(){return Fe}),n.d(t,"G",function(){return fe}),n.d(t,"H",function(){return a}),n.d(t,"I",function(){return Ve}),n.d(t,"J",function(){return s}),n.d(t,"K",function(){return ge}),n.d(t,"L",function(){return o}
1);var i=n("fXoL");let r=null;function s(){return r}function o(e){r||(r=e)}class a{}const c=new i.t("DocumentToken");let l=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Pb)({factory:u,token:e,providedIn:"platform"}),e})();function u(){return Object(i.gc)(h)}const d=new i.t("Location Initialized");let h=(()=>{class e extends l{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=s().getLocation(),this._history=s().getHistory()}getBaseHrefFromDOM(){return s().getBaseHref(this._doc)}onPopState(e){s().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){s().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,n){p()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){p()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(i.gc(c))},e.\u0275prov=Object(i.Pb)({factory:f,token:e,providedIn:"platform"}),e})();function p(){return!!window.history.pushState}function f(){return new h(Object(i.gc)(c))}function g(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function m(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function b(e){return e&&"?"!==e[0]?"?"+e:e}let y=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Pb)({factory:v,token:e,providedIn:"root"}),e})();function v(e){const t=Object(i.gc)(c).location;return new w(Object(i.gc)(l),t&&t.origin||"")}const _=new i.t("appBaseHref");let w=(()=>{class e extends y{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return g(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+b(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,i){const r=this.prepareExternalUrl(n+b(i));this._platformLocation.pushState(e,t,r)}replaceState(e,t,n,i){const r=this.prepareExternalUrl(n+b(i));this._platformLocation.replaceState(e,t,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(i.gc(l),i.gc(_,8))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),k=(()=>{class e extends y{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=g(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,i){let r=this.prepareExternalUrl(n+b(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}replaceState(e,t,n,i){let r=this.prepareExternalUrl(n+b(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(i.gc(l),i.gc(_,8))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),C=(()=>
1{class e{constructor(e,t){this._subject=new i.o,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=m(T(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+b(t))}normalize(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,T(t)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+b(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+b(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)}))}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}return e.\u0275fac=function(t){return new(t||e)(i.gc(y),i.gc(l))},e.normalizeQueryParams=b,e.joinWithSlash=g,e.stripTrailingSlash=m,e.\u0275prov=Object(i.Pb)({factory:S,token:e,providedIn:"root"}),e})();function S(){return new C(Object(i.gc)(y),Object(i.gc)(l))}function T(e){return e.replace(/\/index.html$/,"")}var P=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}({}),O=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),x=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}({}),A=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}({}),E=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}({}),M=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function I(e,t,n){const r=Object(i.pb)(e),s=q([r[i.fb.DayPeriodsFormat],r[i.fb.DayPeriodsStandalone]],t);return q(s,n)}function R(e,t,n){const r=Object(i.pb)(e),s=q([r[i.fb.DaysFormat],r[i.fb.DaysStandalone]],t);return q(s,n)}function L(e,t,n){const r=Object(i.pb)(e),s=q([r[i.fb.MonthsFormat],r[i.fb.MonthsStandalone]],t);return q(s,n)}function D(e){return Object(i.pb)(e)[i.fb.FirstDayOfWeek]}function j(e,t){return q(Object(i.pb)(e)[i.fb.DateFormat],t)}function N(e,t){return q(Object(i.pb)(e)[i.fb.TimeFormat],t)}function V(e,t){return q(Object(i.pb)(e)[i.fb.DateTimeFormat],t)}function z(e,t){const n=Object(i.pb)(e),r=n[i.fb.NumberSymbols][t];if(void 0===r){if(t===M.CurrencyDecimal)return n[i.fb.NumberSymbols][M.Decimal];if(t===M.CurrencyGroup)return n[i.fb.NumberSymbols][M.Group]}return r}const F=i.sb;function B(e){if(!e[i.fb.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[i.fb.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function q(e,t){for(let n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function U(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const H=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,W={},G=/((?:[^GyYMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Y=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}({}),$=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}({}),Z=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}({});function Q(e,t,n,i){let r=function(e){if(le(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[t,n=1,i=1]=e.split("-").map(e=>+e);return X(t,n-1,i)}const t=parseFloat(e);
vendor: 22,459 bytes, line 1
1if(!isNaN(e-t))return new Date(t);let n;if(n=e.match(H))return function(e){const t=new Date(0);let n=0,i=0;const r=e[8]?t.setUTCFullYear:t.setFullYear,s=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),i=Number(e[9]+e[11])),r.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const o=Number(e[4]||0)-n,a=Number(e[5]||0)-i,c=Number(e[6]||0),l=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return s.call(t,o,a,c,l),t}(n)}const t=new Date(e);if(!le(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=K(n,t)||t;let s,o=[];for(;t;){if(s=G.exec(t),!s){o.push(t);break}{o=o.concat(s.slice(1));const e=o.pop();if(!e)break;t=e}}let a=r.getTimezoneOffset();i&&(a=ce(i,a),r=function(e,t,n){const i=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(ce(t,i)-i))}(r,i));let c="";return o.forEach(e=>{const t=function(e){if(ae[e])return ae[e];let t;switch(e){case"G":case"GG":case"GGG":t=ne(Z.Eras,A.Abbreviated);break;case"GGGG":t=ne(Z.Eras,A.Wide);break;case"GGGGG":t=ne(Z.Eras,A.Narrow);break;case"y":t=te($.FullYear,1,0,!1,!0);break;case"yy":t=te($.FullYear,2,0,!0,!0);break;case"yyy":t=te($.FullYear,3,0,!1,!0);break;case"yyyy":t=te($.FullYear,4,0,!1,!0);break;case"Y":t=oe(1);break;case"YY":t=oe(2,!0);break;case"YYY":t=oe(3);break;case"YYYY":t=oe(4);break;case"M":case"L":t=te($.Month,1,1);break;case"MM":case"LL":t=te($.Month,2,1);break;case"MMM":t=ne(Z.Months,A.Abbreviated);break;case"MMMM":t=ne(Z.Months,A.Wide);break;case"MMMMM":t=ne(Z.Months,A.Narrow);break;case"LLL":t=ne(Z.Months,A.Abbreviated,x.Standalone);break;case"LLLL":t=ne(Z.Months,A.Wide,x.Standalone);break;case"LLLLL":t=ne(Z.Months,A.Narrow,x.Standalone);break;case"w":t=se(1);break;case"ww":t=se(2);break;case"W":t=se(1,!0);break;case"d":t=te($.Date,1);break;case"dd":t=te($.Date,2);break;case"E":case"EE":case"EEE":t=ne(Z.Days,A.Abbreviated);break;case"EEEE":t=ne(Z.Days,A.Wide);break;case"EEEEE":t=ne(Z.Days,A.Narrow);break;case"EEEEEE":t=ne(Z.Days,A.Short);break;case"a":case"aa":case"aaa":t=ne(Z.DayPeriods,A.Abbreviated);break;case"aaaa":t=ne(Z.DayPeriods,A.Wide);break;case"aaaaa":t=ne(Z.DayPeriods,A.Narrow);break;case"b":case"bb":case"bbb":t=ne(Z.DayPeriods,A.Abbreviated,x.Standalone,!0);break;case"bbbb":t=ne(Z.DayPeriods,A.Wide,x.Standalone,!0);break;case"bbbbb":t=ne(Z.DayPeriods,A.Narrow,x.Standalone,!0);break;case"B":case"BB":case"BBB":t=ne(Z.DayPeriods,A.Abbreviated,x.Format,!0);break;case"BBBB":t=ne(Z.DayPeriods,A.Wide,x.Format,!0);break;case"BBBBB":t=ne(Z.DayPeriods,A.Narrow,x.Format,!0);break;case"h":t=te($.Hours,1,-12);break;case"hh":t=te($.Hours,2,-12);break;case"H":t=te($.Hours,1);break;case"HH":t=te($.Hours,2);break;case"m":t=te($.Minutes,1);break;case"mm":t=te($.Minutes,2);break;case"s":t=te($.Seconds,1);break;case"ss":t=te($.Seconds,2);break;case"S":t=te($.FractionalSeconds,1);break;case"SS":t=te($.FractionalSeconds,2);break;case"SSS":t=te($.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=ie(Y.Short);break;case"ZZZZZ":t=ie(Y.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=ie(Y.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=ie(Y.Long);break;default:return null}return ae[e]=t,t}(e);c+=t?t(r,n,a):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function X(e,t,n){const i=new Date(0);return i.setFullYear(e,t,n),i.setHours(0,0,0),i}function K(e,t){const n=function(e){return Object(i.pb)(e)[i.fb.LocaleId]}(e);if(W[n]=W[n]||{},W[n][t])return W[n][t];let r="";switch(t){case"shortDate":r=j(e,E.Short);break;case"mediumDate":r=j(e,E.Medium);break;case"longDate":r=j(e,E.Long);break;case"fullDate":r=j(e,E.Full);break;case"shortTime":r=N(e,E.Short);break;case"mediumTime":r=N(e,E.Medium);break;case"longTime":r=N(e,E.Long);break;case"fullTime":r=N(e,E.Full);break;case"short":const t=K(e,"shortTime"),n=K(e,"shortDate");r=J(V(e,E.Short),[t,n]);break;case"medium":const i=K(e,"mediumTime"),s=K(e,"mediumDate");r=J(V(e,E.Medium),[i,s]);break;case"long":const o=K(e,"longTime"),a=K(e,"longDate");r=J(V(e,E.Long),[o,a]);break;case"full":const c=K(e,"fullTime"),l=K(e,"fullDate");r=J(V(e,E.Full),[c,l])}return r&&(W[n][t]=r),r}function J(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function ee(e,t,n="-",i,r){let s="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,s=n));let o=String(e);for(;o.length<t;)o="0"+o;return i&&(o=o.substr(o.length-t)),s+o}function te(e,t,n=0,i=!1,r=!1){return function(s,o){let a=function(e,t){switch(e){case $.FullYear:return t.getFullYear();case $.Month:return t.getMonth();case $.Date:return t.getDate();case $.Hours:return t.getHours();case $.Minutes:return t.getMinutes();case $.Seconds:return t.getSeconds();case $.FractionalSeconds:return t.getMilliseconds();case $.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}(e,s);if((n>0||a>-n)&&(a+=n),e===$.Hours)0===a&&-12===n&&(a=12);else if(e===$.FractionalSeconds)return c=t,ee(a,3).substr(0,c);var c;const l=z(o,M.MinusSign);return ee(a,t,l,i,r)}}function ne(e,t,n=x.Format,r=!1){return function(s,o){return function(e,t,n,r,s,o){switch(n){case Z.Months:return L(t,s,r)[e.getMonth()];case Z.Days:return R(t,s,r)[e.getDay()];case Z.DayPeriods:const a=e.getHours(),c=e.getMinutes();if(o){const e=function(e){const t=Object(i.pb)(e);return B(t),(t[i.fb.ExtraData][2]||[]).map(e=>"string"==typeof e?U(e):[U(e[0]),U(e[1])])}(t),n=function(e,t,n){const r=Object(i.pb)(e);B(r);const s=q([r[i.fb.ExtraData][0],r[i.fb.ExtraData][1]],t)||[];return q(s,n)||[]}(t,s,r),o=e.findIndex(e=>{if(Array.isArray(e)){const[t,n]=e,i=a>=t.hours&&c>=t.minutes,r=a<n.hours||a===n.hours&&c<n.minutes;if(t.hours<n.hours){if(i&&r)return!0}else if(i||r)return!0}else if(e.hours===a&&e.minutes===c)return!0;return!1});if(-1!==o)return n[o]}return I(t,s,r)[a<12?0:1];case Z.Eras:return function(e,t){return q(Object(i.pb)(e)[i.fb.Eras],t)}(t,r)[e.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(s,o,e,t,n,r)}}function ie(e){return function(t,n,i){const r=-1*i,s=z(n,M.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(e){case Y.Short:return(r>=0?"+":"")+ee(o,2,s)+ee(Math.abs(r%60),2,s);case Y.ShortGMT:return"GMT"+(r>=0?"+":"")+ee(o,1,s);case Y.Long:return"GMT"+(r>=0?"+":"")+ee(o,2,s)+":"+ee(Math.abs(r%60),2,s);case Y.Extended:return 0===i?"Z":(r>=0?"+":"")+ee(o,2,s)+":"+ee(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${e}"`)}}}function re(e){return X(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function se(e,t=!1){return function(n,i){let r;if(t){const e=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,t=n.getDate();r=1+Math.floor((t+e)/7)}else{const e=re(n),t=function(e){const t=X(e,0,1).getDay();return X(e,0,1+(t<=4?4:11)-t)}(e.getFullYear()),i=e.getTime()-t.getTime();r=1+Math.round(i/6048e5)}return ee(r,e,z(i,M.MinusSign))}}function oe(e,t=!1){return function(n,i){return ee(re(n).getFullYear(),e,z(i,M.MinusSign),t)}}const ae={};function ce(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function le(e){return e instanceof Date&&!isNaN(e.valueOf())}const ue=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function de(e){const t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}class he{}let pe=(()=>{class e extends he{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(F(t||this.locale)(e)){case O.Zero:return"zero";case O.One:return"one";case O.Two:return"two";case O.Few:return"few";case O.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(i.gc(i.x))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();function fe(e,t,n){return Object(i.zb)(e,t,n)}function ge(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[i,r]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(i.trim()===t)return decodeURIComponent(r)}return null}let me=(()=>{class e{constructor(e,t,n,i){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(i.vb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Object(i.Bb)(e.item)}`);this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.v),i.Tb(i.w),i.Tb(i.l),i.Tb(i.H))},e.\u0275dir=i.Ob({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e})();class be{constructor(e,t,n,i){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ye=(()=>{class e{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,i)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new be(null,this._ngForOf,-1,-1),null===i?void 0:i),r=new ve(e,n);t.push(r)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,i);const s=new ve(e,r);t.push(s)}});for(let n=0;n<t.length;n++)this._perViewChange(t[n].view,t[n].record);for(let n=0,i=this._viewContainer.length;n<i;n++){const e=this._viewContainer.get(n);e.context.index=n,e.context.count=i,e.context.ngForOf=this._ngForOf}e.forEachIdentityChange(e=>{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.U),i.Tb(i.Q),i.Tb(i.v))},e.\u0275dir=i.Ob({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class ve{constructor(e,t){this.record=e,this.view=t}}let _e=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new we,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){ke("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){ke("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.U),i.Tb(i.Q))},e.\u0275dir=i.Ob({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class we{constructor(){this.$implicit=null,this.ngIf=null}}function ke(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Object(i.Bb)(t)}'.`)}class Ce{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let Se=(()=>{class e{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ob({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e})(),Te=(()=>{class e{constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new Ce(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.U),i.Tb(i.Q),i.Tb(Se,9))},e.\u0275dir=i.Ob({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e})(),Pe=(()=>{class e{constructor(e,t,n){n._addDefault(new Ce(e,t))}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.U),i.Tb(i.Q),i.Tb(Se,9))},e.\u0275dir=i.Ob({type:e,selectors:[["","ngSwitchDefault",""]]}),e})(),Oe=(()=>{class e{constructor(e,t,n){this._ngEl=e,this._differs=t,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,t){const[n,i]=e.split(".");null!=(t=null!=t&&i?`${t}${i}`:t)?this._renderer.setStyle(this._ngEl.nativeElement,n,t):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(e){e.forEachRemovedItem(e=>this._setStyle(e.key,null)),e.forEachAddedItem(e=>this._setStyle(e.key,e.currentValue)),e.forEachChangedItem(e=>this._setStyle(e.key,e.currentValue))}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.l),i.Tb(i.w),i.Tb(i.H))},e.\u0275dir=i.Ob({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e})(),xe=(()=>{class e{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const e=this._viewContainerRef;this._viewRef&&e.remove(e.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?e.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(e){const t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)}_hasContextShapeChanged(e){const t=Object.keys(e.previousValue||{}),n=Object.keys(e.currentValue||{});if(t.length===n.length){for(let e of n)if(-1===t.indexOf(e))return!0;return!1}return!0}_updateExistingContext(e){for(let t of Object.keys(e))this._viewRef.context[t]=this.ngTemplateOutletContext[t]}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.U))},e.\u0275dir=i.Ob({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.Eb]}),e})();function Ae(e,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${Object(i.Bb)(e)}'`)}class Ee{createSubscription(e,t){return e.subscribe({next:t,error:e=>{throw e}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class Me{createSubscription(e,t){return e.then(t,e=>{throw e})}dispose(e){}onDestroy(e){}}const Ie=new Me,Re=new Ee;let Le=(()=>{class e{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,t=>this._updateLatestValue(e,t))}_selectStrategy(t){if(Object(i.xb)(t))return Ie;if(Object(i.yb)(t))return Re;throw Ae(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}return e.\u0275fac=function(t){return new(t||e)(i.ic())},e.\u0275pipe=i.Sb({name:"async",type:e,pure:!1}),e})(),De=(()=>{class e{constructor(e){this.locale=e}transform(t,n="mediumDate",i,r){if(null==t||""===t||t!=t)return null;try{return Q(t,n,r||this.locale,i)}catch(s){throw Ae(e,s.message)}}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.x))},e.\u0275pipe=i.Sb({name:"date",type:e,pure:!0}),e})(),je=(()=>{class e{constructor(e){this._locale=e}transform(t,n,r){if(!function(e){return!(null==e||""===e||e!=e)}(t))return null;r=r||this._locale;try{return function(e,t,n){return function(e,t,n,i,r,s,o=!1){let a="",c=!1;if(isFinite(e)){let l=function(e){let t,n,i,r,s,o=Math.abs(e)+"",a=0;for((n=o.indexOf("."))>-1&&(o=o.replace(".","")),(i=o.search(/e/i))>0?(n<0&&(n=i),n+=+o.slice(i+1),o=o.substring(0,i)):n<0&&(n=o.length),i=0;"0"===o.charAt(i);i++);if(i===(s=o.length))t=[0],n=1;else{for(s--;"0"===o.charAt(s);)s--;for(n-=i,t=[],r=0;i<=s;i++,r++)t[r]=Number(o.charAt(i))}return n>22&&(t=t.splice(0,21),a=n-1,n=1),{digits:t,exponent:a,integerLen:n}}(e);o&&(l=function(e){if(0===e.digits[0])return e;const t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(l));let u=t.minInt,d=t.minFrac,h=t.maxFrac;if(s){const e=s.match(ue);if(null===e)throw new Error(`${s} is not a valid digit info`);const t=e[1],n=e[3],i=e[5];null!=t&&(u=de(t)),null!=n&&(d=de(n)),null!=i?h=de(i):null!=n&&d>h&&(h=d)}!function(e,t,n){if(t>n)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${n}).`);let i=e.digits,r=i.length-e.integerLen;const s=Math.min(Math.max(t,r),n);let o=s+e.integerLen,a=i[o];if(o>0){i.splice(Math.max(e.integerLen,o));for(let e=o;e<i.length;e++)i[e]=0}else{r=Math.max(0,r),e.integerLen=1,i.length=Math.max(1,o=s+1),i[0]=0;for(let e=1;e<o;e++)i[e]=0}if(a>=5)if(o-1<0){for(let t=0;t>o;t--)i.unshift(0),e.integerLen++;i.unshift(1),e.integerLen++}else i[o-1]++;for(;r<Math.max(0,s);r++)i.push(0);let c=0!==s;const l=t+e.integerLen,u=i.reduceRight(function(e,t,n,i){return i[n]=(t+=e)<10?t:t-10,c&&(0===i[n]&&n>=l?i.pop():c=!1),t>=10?1:0},0);u&&(i.unshift(u),e.integerLen++)}(l,d,h);let p=l.digits,f=l.integerLen;const g=l.exponent;let m=[];for(c=p.every(e=>!e);f<u;f++)p.unshift(0);for(;f<0;f++)p.unshift(0);f>0?m=p.splice(f,p.length):(m=p,p=[0]);const b=[];for(p.length>=t.lgSize&&b.unshift(p.splice(-t.lgSize,p.length).join(""));p.length>t.gSize;)b.unshift(p.splice(-t.gSize,p.length).join(""));p.length&&b.unshift(p.join("")),a=b.join(z(n,i)),m.length&&(a+=z(n,r)+m.join("")),g&&(a+=z(n,M.Exponential)+"+"+g)}else a=z(n,M.Infinity);return a=e<0&&!c?t.negPre+a+t.negSuf:t.posPre+a+t.posSuf,a}(e,function(e,t="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=e.split(";"),r=i[0],s=i[1],o=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],a=o[0],c=o[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let u=0;u<c.length;u++){const e=c.charAt(u);"0"===e?n.minFrac=n.maxFrac=u+1:"#"===e?n.maxFrac=u+1:n.posSuf+=e}const l=a.split(",");if(n.gSize=l[1]?l[1].length:0,n.lgSize=l[2]||l[1]?(l[2]||l[1]).length:0,s){const e=r.length-n.posPre.length-n.posSuf.length,t=s.indexOf("#");n.negPre=s.substr(0,t).replace(/'/g,""),n.negSuf=s.substr(t+e).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}(function(e,t){return Object(i.pb)(e)[i.fb.NumberFormats][t]}(t,P.Percent),z(t,M.MinusSign)),t,M.Group,M.Decimal,n,!0).replace(new RegExp("%","g"),z(t,M.PercentSign))}(function(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error(`${e} is not a number`);return e}(t),r,n)}catch(s){throw Ae(e,s.message)}}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.x))},e.\u0275pipe=i.Sb({name:"percent",type:e,pure:!0}),e})(),Ne=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}
1),e.\u0275inj=i.Qb({providers:[{provide:he,useClass:pe}]}),e})();const Ve="browser";function ze(e){return e===Ve}function Fe(e){return"server"===e}let Be=(()=>{class e{}return e.\u0275prov=Object(i.Pb)({token:e,providedIn:"root",factory:()=>new qe(Object(i.gc)(c),window)}),e})();class qe{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const t=function(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let i=n.currentNode;for(;i;){const e=i.shadowRoot;if(e){const n=e.getElementById(t)||e.querySelector(`[name="${t}"]`);if(n)return n}i=n.nextNode()}}return null}(this.document,e);t&&(this.scrollToElement(t),this.attemptFocus(t))}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}attemptFocus(e){return e.focus(),this.document.activeElement===e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=Ue(this.window.history)||Ue(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function Ue(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}},oh6q:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("XdDp"),a=n("wET7"),c=n("fXoL");let l=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getModelName(){return"TrackerEvents"}}return e.\u0275fac=function(t){return new(t||e)(c.gc(i.b),c.gc(r.a),c.gc(o.a),c.gc(a.a,8))},e.\u0275prov=c.Pb({token:e,factory:e.\u0275fac}),e})()},oscR:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getEvent(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseExamSubmissions/:id/event",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getSubscription(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseExamSubmissions/:id/subscription",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getExam(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseExamSubmissions/:id/exam",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseExamSubmissions/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseExamSubmissions/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}answer(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseExamSubmissions/:id/answer",r={id:e},s={};return null!=t&&(s.answer=t),this.request("POST",i,r,s,{},null,n)}submit(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseExamSubmissions/:id/submit";return this.request("POST",n,{id:e},{},{},null,t)}getModelName(){return"CourseExamSubmission"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},p3SZ:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getCongress(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressReviewAssignments/:id/congress",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getProfile(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressReviewAssignments/:id/profile",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getSubmission(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressReviewAssignments/:id/submission",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getReview(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressReviewAssignments/:id/review",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}createReview(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressReviewAssignments/:id/review";return this.request("POST",i,{id:e},{},{data:t},null,n)}updateReview(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressReviewAssignments/:id/review";return this.request("PUT",i,{id:e},{},{data:t},null,n)}destroyReview(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressReviewAssignments/:id/review";return this.request("DELETE",n,{id:e},{},{},null,t)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressReviewAssignments/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}createManyReview(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressReviewAssignments/:id/review";return this.request("POST",i,{id:e},{},{data:t},null,n)}getModelName(){return"CongressReviewAssignment"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},pFv7:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiElectionVote"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiElectionVote",plural:"SimiElectionVotes",path:"SimiElectionVotes",idName:"id",properties:{year:{name:"year",type:"number"},electionId:{name:"electionId",type:"any"},voterId:{name:"voterId",type:"any"},votes:{name:"votes",type:"Array<any>"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{election:{name:"election",type:"SimiElection",model:"SimiElection",relationType:"belongsTo",keyFrom:"electionId",keyTo:"id"},voter:{name:"voter",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"voterId",keyTo:"id"}}}}}},pGcS:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return s});class i{get(e){}set(e,t,n){}remove(e){}}class r extends i{}class s extends i{}},pLZG:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(e,t){return function(n){return n.lift(new s(e,t))}}class s{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new o(e,this.predicate,this.thisArg))}}class o extends i.a{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}},pVnL:function(e,t){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(this,arguments)}
1e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},pjAE:function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})()},pl0G:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("/h9T"),r=n("/Tr7"),s=n("jIYg");function o(e,t){Object(s.a)(2,arguments);var n=Object(r.a)(e).getTime(),o=Object(i.a)(t);return new Date(n+o)}},pwNt:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"CongressSubmission"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"CongressSubmission",plural:"CongressSubmissions",path:"CongressSubmissions",idName:"id",properties:{accessId:{name:"accessId",type:"any"},congressId:{name:"congressId",type:"any"},profileId:{name:"profileId",type:"any"},field:{name:"field",type:"string"},title:{name:"title",type:"string"},authors:{name:"authors",type:"Array<any>"},content:{name:"content",type:"string"},status:{name:"status",type:"string",default:"pending"},progressive_number:{name:"progressive_number",type:"number"},scores:{name:"scores",type:"Array<any>"},total_score:{name:"total_score",type:"number",default:0},current_reviews:{name:"current_reviews",type:"number"},result:{name:"result",type:"any"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{congress:{name:"congress",type:"Congress",model:"Congress",relationType:"belongsTo",keyFrom:"congressId",keyTo:"id"},profile:{name:"profile",type:"CongressProfile",model:"CongressProfile",relationType:"belongsTo",keyFrom:"profileId",keyTo:"id"},access:{name:"access",type:"CongressAccess",model:"CongressAccess",relationType:"belongsTo",keyFrom:"accessId",keyTo:"id"},reviews:{name:"reviews",type:"CongressReview[]",model:"CongressReview",relationType:"hasMany",keyFrom:"id",keyTo:"submissionId"},assignments:{name:"assignments",type:"CongressReviewAssignment[]",model:"CongressReviewAssignment",relationType:"hasMany",keyFrom:"id",keyTo:"submissionId"}}}}}},pxpQ:function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"a",function(){return a});var i=n("7o/Q"),r=n("WMd4");function s(e,t=0){return function(n){return n.lift(new o(e,t))}}class o{constructor(e,t=0){this.scheduler=e,this.delay=t}call(e,t){return t.subscribe(new a(e,this.scheduler,this.delay))}}class a extends i.a{constructor(e,t,n=0){super(e),this.scheduler=t,this.delay=n}static dispatch(e){const{notification:t,destination:n}=e;t.observe(n),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(a.dispatch,this.delay,new c(e,this.destination)))}_next(e){this.scheduleMessage(r.a.createNext(e))}_error(e){this.scheduleMessage(r.a.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(r.a.createComplete()),this.unsubscribe()}}class c{constructor(e,t){this.notification=e,this.destination=t}}},q6L4:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getSource(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SystemMessages/:id/source",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SystemMessages/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}getModelName(){return"SystemMessage"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},qCKp:function(e,t,n){"use strict";n.r(t),n.d(t,"Observable",function(){return i.a}),n.d(t,"ConnectableObservable",function(){return r.a}),n.d(t,"GroupedObservable",function(){return s.a}),n.d(t,"observable",function(){return o.a}),n.d(t,"Subject",function(){return a.a}),n.d(t,"BehaviorSubject",function(){return c.a}),n.d(t,"ReplaySubject",function(){return l.a}),n.d(t,"AsyncSubject",function(){return u.a}),n.d(t,"asap",function(){return d.a}),n.d(t,"asapScheduler",function(){return d.b}),n.d(t,"async",function(){return h.a}),n.d(t,"asyncScheduler",function(){return h.b}),n.d(t,"queue",function(){return p.a}),n.d(t,"queueScheduler",function(){return p.b}),n.d(t,"animationFrame",function(){return f.a}),n.d(t,"animationFrameScheduler",function(){return f.b}),n.d(t,"VirtualTimeScheduler",function(){return b}),n.d(t,"VirtualAction",function(){return y}),n.d(t,"Scheduler",function(){return v.a}),n.d(t,"Subscription",function(){return _.a}),n.d(t,"Subscriber",function(){return w.a}),n.d(t,"Notification",function(){return k.a}),n.d(t,"NotificationKind",function(){return k.b}),n.d(t,"pipe",function(){return C.a}),n.d(t,"noop",function(){return S.a}),n.d(t,"identity",function(){return T.a}),n.d(t,"isObservable",function(){return P.a}),n.d(t,"ArgumentOutOfRangeError",function(){return O.a}),n.d(t,"EmptyError",function(){return x.a}),n.d(t,"ObjectUnsubscribedError",function(){return A.a}),n.d(t,"UnsubscriptionError",function(){return E.a}),n.d(t,"TimeoutError",function(){return M.a}
1),n.d(t,"bindCallback",function(){return j}),n.d(t,"bindNodeCallback",function(){return z}),n.d(t,"combineLatest",function(){return U.b}),n.d(t,"concat",function(){return H.a}),n.d(t,"defer",function(){return W.a}),n.d(t,"empty",function(){return G.b}),n.d(t,"forkJoin",function(){return Y.a}),n.d(t,"from",function(){return $.a}),n.d(t,"fromEvent",function(){return Z.a}),n.d(t,"fromEventPattern",function(){return X}),n.d(t,"generate",function(){return K}),n.d(t,"iif",function(){return ee}),n.d(t,"interval",function(){return te.a}),n.d(t,"merge",function(){return ne.a}),n.d(t,"never",function(){return ie.b}),n.d(t,"of",function(){return re.a}),n.d(t,"onErrorResumeNext",function(){return se}),n.d(t,"pairs",function(){return oe}),n.d(t,"partition",function(){return de}),n.d(t,"race",function(){return he.a}),n.d(t,"range",function(){return pe}),n.d(t,"throwError",function(){return ge.a}),n.d(t,"timer",function(){return me.a}),n.d(t,"using",function(){return be}),n.d(t,"zip",function(){return ye.b}),n.d(t,"scheduled",function(){return ve.a}),n.d(t,"EMPTY",function(){return G.a}),n.d(t,"NEVER",function(){return ie.a}),n.d(t,"config",function(){return _e.a});var i=n("HDdC"),r=n("EQ5u"),s=n("OQgR"),o=n("kJWO"),a=n("XNiG"),c=n("2Vo4"),l=n("jtHE"),u=n("NHP+"),d=n("7Hc7"),h=n("D0XW"),p=n("qgXg"),f=n("eNwd"),g=n("3N8a"),m=n("IjjT");let b=(()=>{class e extends m.a{constructor(e=y,t=Number.POSITIVE_INFINITY){super(e,()=>this.frame),this.maxFrames=t,this.frame=0,this.index=-1}flush(){const{actions:e,maxFrames:t}=this;let n,i;for(;(i=e[0])&&i.delay<=t&&(e.shift(),this.frame=i.delay,!(n=i.execute(i.state,i.delay))););if(n){for(;i=e.shift();)i.unsubscribe();throw n}}}return e.frameTimeFactor=10,e})();class y extends g.a{constructor(e,t,n=(e.index+=1)){super(e,t),this.scheduler=e,this.work=t,this.index=n,this.active=!0,this.index=e.index=n}schedule(e,t=0){if(!this.id)return super.schedule(e,t);this.active=!1;const n=new y(this.scheduler,this.work);return this.add(n),n.schedule(e,t)}requestAsyncId(e,t,n=0){this.delay=e.frame+n;const{actions:i}=e;return i.push(this),i.sort(y.sortActions),!0}recycleAsyncId(e,t,n=0){}_execute(e,t){if(!0===this.active)return super._execute(e,t)}static sortActions(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>
1t.index?1:-1:e.delay>t.delay?1:-1}}var v=n("Y/cZ"),_=n("quSY"),w=n("7o/Q"),k=n("WMd4"),C=n("mCNh"),S=n("KqfI"),T=n("SpAZ"),P=n("7+OI"),O=n("4I5i"),x=n("sVev"),A=n("9ppp"),E=n("pjAE"),M=n("Y6u4"),I=n("lJxs"),R=n("8Qeq"),L=n("DH7j"),D=n("z+Ro");function j(e,t,n){if(t){if(!Object(D.a)(t))return(...i)=>j(e,n)(...i).pipe(Object(I.a)(e=>Object(L.a)(e)?t(...e):t(e)));n=t}return function(...t){const r=this;let s;const o={context:r,subject:s,callbackFunc:e,scheduler:n};return new i.a(i=>{if(n)return n.schedule(N,0,{args:t,subscriber:i,params:o});if(!s){s=new u.a;const n=(...e)=>{s.next(e.length<=1?e[0]:e),s.complete()};try{e.apply(r,[...t,n])}catch(a){Object(R.a)(s)?s.error(a):console.warn(a)}}return s.subscribe(i)})}}function N(e){const{args:t,subscriber:n,params:i}=e,{callbackFunc:r,context:s,scheduler:o}=i;let{subject:a}=i;if(!a){a=i.subject=new u.a;const e=(...e)=>{this.add(o.schedule(V,0,{value:e.length<=1?e[0]:e,subject:a}))};try{r.apply(s,[...t,e])}catch(c){a.error(c)}}this.add(a.subscribe(n))}function V(e){const{value:t,subject:n}=e;n.next(t),n.complete()}function z(e,t,n){if(t){if(!Object(D.a)(t))return(...i)=>z(e,n)(...i).pipe(Object(I.a)(e=>Object(L.a)(e)?t(...e):t(e)));n=t}return function(...t){const r={subject:void 0,args:t,callbackFunc:e,scheduler:n,context:this};return new i.a(i=>{const{context:s}=r;let{subject:o}=r;if(n)return n.schedule(F,0,{params:r,subscriber:i,context:s});if(!o){o=r.subject=new u.a;const n=(...e)=>{const t=e.shift();t?o.error(t):(o.next(e.length<=1?e[0]:e),o.complete())};try{e.apply(s,[...t,n])}catch(a){Object(R.a)(o)?o.error(a):console.warn(a)}}return o.subscribe(i)})}}function F(e){const{params:t,subscriber:n,context:i}=e,{callbackFunc:r,args:s,scheduler:o}=t;let a=t.subject;if(!a){a=t.subject=new u.a;const e=(...e)=>{const t=e.shift();this.add(t?o.schedule(q,0,{err:t,subject:a}):o.schedule(B,0,{value:e.length<=1?e[0]:e,subject:a}))};try{r.apply(i,[...s,e])}catch(c){this.add(o.schedule(q,0,{err:c,subject:a}))}}this.add(a.subscribe(n))}function B(e){const{value:t,subject:n}=e;n.next(t),n.complete()}function q(e){const{err:t,subject:n}=e;n.error(t)}var U=n("itXk"),H=n("GyhO"),W=n("NXyV"),G=n("EY2u"),Y=n("cp0P"),$=n("Cfvw"),Z=n("xgIS"),Q=n("n6bG");function X(e,t,n){return n?X(e,t).pipe(Object(I.a)(e=>Object(L.a)(e)?n(...e):n(e))):new i.a(n=>{const i=(...e)=>n.next(1===e.length?e[0]:e);let r;try{r=e(i)}catch(s){return void n.error(s)}if(Object(Q.a)(t))return()=>t(i,r)})}function K(e,t,n,r,s){let o,a;return 1==arguments.length?(a=e.initialState,t=e.condition,n=e.iterate,o=e.resultSelector||T.a,s=e.scheduler):void 0===r||Object(D.a)(r)?(a=e,o=T.a,s=r):(a=e,o=r),new i.a(e=>{let i=a;if(s)return s.schedule(J,0,{subscriber:e,iterate:n,condition:t,resultSelector:o,state:i});for(;;){if(t){let n;try{n=t(i)}catch(r){return void e.error(r)}if(!n){e.complete();break}}let s;try{s=o(i)}catch(r){return void e.error(r)}if(e.next(s),e.closed)break;try{i=n(i)}catch(r){return void e.error(r)}}})}function J(e){const{subscriber:t,condition:n}=e;if(t.closed)return;if(e.needIterate)try{e.state=e.iterate(e.state)}catch(r){return void t.error(r)}else e.needIterate=!0;if(n){let i;try{i=n(e.state)}catch(r){return void t.error(r)}if(!i)return void t.complete();if(t.closed)return}let i;try{i=e.resultSelector(e.state)}catch(r){return void t.error(r)}return t.closed||(t.next(i),t.closed)?void 0:this.schedule(e)}function ee(e,t=G.a,n=G.a){return Object(W.a)(()=>e()?t:n)}var te=n("l5mm"),ne=n("VRyK"),ie=n("5yfJ"),re=n("LRne");function se(...e){if(0===e.length)return G.a;const[t,...n]=e;return 1===e.length&&Object(L.a)(t)?se(...t):new i.a(e=>{const i=()=>e.add(se(...n).subscribe(e));return Object($.a)(t).subscribe({next(t){e.next(t)},error:i,complete:i})})}function oe(e,t){return new i.a(t?n=>{const i=Object.keys(e),r=new _.a;return r.add(t.schedule(ae,0,{keys:i,index:0,subscriber:n,subscription:r,obj:e})),r}:t=>{const n=Object.keys(e);for(let i=0;i<n.length&&!t.closed;i++){const r=n[i];e.hasOwnProperty(r)&&t.next([r,e[r]])}t.complete()})}function ae(e){const{keys:t,index:n,subscriber:i,subscription:r,obj:s}=e;if(!i.closed)if(n<t.length){const e=t[n];i.next([e,s[e]]),r.add(this.schedule({keys:t,index:n+1,subscriber:i,subscription:r,obj:s}))}else i.complete()}var ce=n("F97/"),le=n("SeVD"),ue=n("pLZG");function de(e,t,n){return[Object(ue.a)(t,n)(new i.a(Object(le.a)(e))),Object(ue.a)(Object(ce.a)(t,n))(new i.a(Object(le.a)(e)))]}var he=n("Nv8m");function pe(e=0,t,n){return new i.a(i=>{void 0===t&&(t=e,e=0);let r=0,s=e;if(n)return n.schedule(fe,0,{index:r,count:t,start:e,subscriber:i});for(;;){if(r++>=t){i.complete();break}if(i.next(s++),i.closed)break}})}function fe(e){const{start:t,index:n,count:i,subscriber:r}=e;n>=i?r.complete():(r.next(t),r.closed||(e.index=n+1,e.start=t+1,this.schedule(e)))}var ge=n("z6cu"),me=n("PqYM");function be(e,t){return new i.a(n=>{let i,r;try{i=e()}catch(o){return void n.error(o)}try{r=t(i)}catch(o){return void n.error(o)}const s=(r?Object($.a)(r):G.a).subscribe(n);return()=>{s.unsubscribe(),i&&i.unsubscribe()}})}var ye=n("1uah"),ve=n("7HRe"),_e=n("2fFW")},qWin:function(e,t){var n=Math.pow(2,32);e.exports={getUint64:function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength);return i.getBigUint64?(t=i.getBigUint64(0))<Number.MAX_SAFE_INTEGER?
1Number(t):t:i.getUint32(0)*n+i.getUint32(4)},MAX_UINT32:n}},qf2y:function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return s});var i=n("AytR");let r="https://congressi.simi.it";const s="api";i.a.production||(r="http://localhost:3000")},qgXg:function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return c});var i=n("3N8a");class r extends i.a{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}}var s=n("IjjT");class o extends s.a{}const a=new o(r),c=a},qmMu:function(e,t,n){const i=n("e/Dd"),r=n("ekOh"),s=n("e6BP"),o=n("V35J"),a=n("1sBl"),c=n("kk9/"),l=n("eQOe"),u=n("NPxG"),d=n("jSPq"),h=n("yKow"),p=n("lYJp"),f=n("u/Db"),g=n("vvrf");function m(e,t,n){const i=e.size,r=p.getEncodedBits(t,n);let s,o;for(s=0;s<15;s++)o=1==(r>>s&1),e.set(s<6?s:s<8?s+1:i-15+s,8,o,!0),e.set(8,s<8?i-s-1:s<9?15-s-1+1:15-s-1,o,!0);e.set(i-8,8,1,!0)}t.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");let n,p,b=r.M;return void 0!==t&&(b=r.from(t.errorCorrectionLevel,r.M),n=h.from(t.version),p=l.from(t.maskPattern),t.toSJISFunc&&i.setToSJISFunction(t.toSJISFunc)),function(e,t,n,r){let p;if(Array.isArray(e))p=g.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let i=t;if(!i){const t=g.rawSplit(e);i=h.getBestVersionForData(t,n)}p=g.fromString(e,i||40)}}const b=h.getBestVersionForData(p,n);if(!b)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<b)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+b+".\n")}else t=b;const y=function(e,t,n){const r=new s;n.forEach(function(t){r.put(t.mode.bit,4),r.put(t.getLength(),f.getCharCountIndicator(t.mode,e)),t.write(r)});const o=8*(i.getSymbolTotalCodewords(e)-u.getTotalCodewordsCount(e,t));for(r.getLengthInBits()+4<=o&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(0);const a=(o-r.getLengthInBits())/8;for(let i=0;i<a;i++)r.put(i%2?17:236,8);return function(e,t,n){const r=i.getSymbolTotalCodewords(t),s=r-u.getTotalCodewordsCount(t,n),o=u.getBlocksCount(t,n),a=o-r%o,c=Math.floor(r/o),l=Math.floor(s/o),h=l+1,p=c-l,f=new d(p);let g=0;const m=new Array(o),b=new Array(o);let y=0;const v=new Uint8Array(e.buffer);for(let i=0;i<o;i++){const e=i<a?l:h;m[i]=v.slice(g,g+e),b[i]=f.encode(m[i]),g+=e,y=Math.max(y,e)}const _=new Uint8Array(r);let w,k,C=0;for(w=0;w<y;w++)for(k=0;k<o;k++)w<m[k].length&&(_[C++]=m[k][w]);for(w=0;w<p;w++)for(k=0;k<o;k++)_[C++]=b[k][w];return _}(r,e,t)}(t,n,p),v=i.getSymbolSize(t),_=new o(v);return function(e,t){const n=e.size,i=c.getPositions(t);for(let r=0;r<i.length;r++){const t=i[r][0],s=i[r][1];for(let i=-1;i<=7;i++)if(!(t+i<=-1||n<=t+i))for(let r=-1;r<=7;r++)s+r<=-1||n<=s+r||e.set(t+i,s+r,i>=0&&i<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===i||6===i)||i>=2&&i<=4&&r>=2&&r<=4,!0)}}(_,t),function(e){const t=e.size;for(let n=8;n<t-8;n++){const t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}(_),function(e,t){const n=a.getPositions(t);for(let i=0;i<n.length;i++){const t=n[i][0],r=n[i][1];for(let n=-2;n<=2;n++)for(let i=-2;i<=2;i++)e.set(t+n,r+i,-2===n||2===n||-2===i||2===i||0===n&&0===i,!0)}}(_,t),m(_,n,0),t>=7&&function(e,t){const n=e.size,i=h.getEncodedBits(t);let r,s,o;for(let a=0;a<18;a++)r=Math.floor(a/3),s=a%3+n-8-3,o=1==(i>>a&1),e.set(r,s,o,!0),e.set(s,r,o,!0)}(_,t),function(e,t){const n=e.size;let i=-1,r=n-1,s=7,o=0;for(let a=n-1;a>0;a-=2)for(6===a&&a--;;){for(let n=0;n<2;n++)if(!e.isReserved(r,a-n)){let i=!1;o<t.length&&(i=1==(t[o]>>>s&1)),e.set(r,a-n,i),s--,-1===s&&(o++,s=7)}if(r+=i,r<0||n<=r){r-=i,i=-i;break}}}(_,y),isNaN(r)&&(r=l.getBestMask(_,m.bind(null,_,n))),l.applyMask(r,_),m(_,n,r),{modules:_,version:t,errorCorrectionLevel:n,maskPattern:r,segments:p}}(e,n,b,p)}},quSY:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("DH7j"),r=n("XoHu"),s=n("n6bG"),o=n("pjAE");let a=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:a,_unsubscribe:l,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;e<n.length;++e)n[e].remove(this);if(Object(s.a)(l)){a&&(this._unsubscribe=void 0);try{l.call(this)}catch(d){t=d instanceof o.a?c(d.errors):[d]}}if(Object(i.a)(u)){let e=-1,n=u.length;for(;++e<n;){const n=u[e];
1if(Object(r.a)(n))try{n.unsubscribe()}catch(d){t=t||[],d instanceof o.a?t=t.concat(c(d.errors)):t.push(d)}}}if(t)throw new o.a(t)}add(t){let n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){const t=n;n=new e,n._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:i}=n;if(null===i)n._parentOrParents=this;else if(i instanceof e){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[n]:r.push(n),n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}var t;return e.EMPTY=((t=new e).closed=!0,t),e})();function c(e){return e.reduce((e,t)=>e.concat(t instanceof o.a?t.errors:t),[])}},qy9N:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getElection(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiElectionVotes/:id/election",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getVoter(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiElectionVotes/:id/voter",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiElectionVotes/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}getModelName(){return"SimiElectionVote"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},r8II:function(e,t,n){"use strict";t.decode=t.parse=n("YcCt"),t.encode=t.stringify=n("6MUB")},r9BH:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getEvent(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseRecordings/:id/event",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getSubscription(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseRecordings/:id/subscription",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseRecordings/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseRecordings/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}uploadresource(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseRecordings/:id/upload/resource";return this.request("POST",n,{id:e},{},{},null,t)}downloadresource(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseRecordings/:id/resource/:filename";return this.request("GET",i,{id:e,filename:t},{},{},null,n)}getModelName(){return"CourseRecording"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},rNOo:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"CourseLogbookSubscription"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"CourseLogbookSubscription",plural:"CourseLogbookSubscriptions",path:"CourseLogbookSubscriptions",idName:"id",properties:{subscriptionId:{name:"subscriptionId",type:"any"},eventId:{name:"eventId",type:"any"},userId:{name:"userId",type:"any"},logbookId:{name:"logbookId",type:"any"},status:{name:"status",type:"string",default:"pending"},result:{name:"result",type:"string",default:"null"},tutor:{name:"tutor",type:"string"},location:{name:"location",type:"string"},date_start:{name:"date_start",type:"Date"},date_end:{name:"date_end",type:"Date"},review:{name:"review",type:"string"},submitted_entries:{name:"submitted_entries",type:"number"},skills:{name:"skills",type:"any"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{subscription:{name:"subscription",type:"CourseSubscription",model:"CourseSubscription",relationType:"belongsTo",keyFrom:"subscriptionId",keyTo:"id"},event:{name:"event",type:"Course",model:"Course",relationType:"belongsTo",keyFrom:"eventId",keyTo:"id"},logbook:{name:"logbook",type:"CourseLogbook",model:"CourseLogbook",relationType:"belongsTo",keyFrom:"logbookId",keyTo:"id"},entries:{name:"entries",type:"CourseLogbookEntry[]",model:"CourseLogbookEntry",relationType:"hasMany",keyFrom:"id",keyTo:"subscriptionId"},user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},rWzI:function(e,t,n){(function(e){var i;!function(r){"object"==typeof global&&global;var s,o=2147483647,a=/^xn--/,c=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,u={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >
1= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,h=String.fromCharCode;function p(e){throw RangeError(u[e])}function f(e,t){for(var n=e.length,i=[];n--;)i[n]=t(e[n]);return i}function g(e,t){var n=e.split("@"),i="";return n.length>1&&(i=n[0]+"@",e=n[1]),i+f((e=e.replace(l,".")).split("."),t).join(".")}function m(e){for(var t,n,i=[],r=0,s=e.length;r<s;)(t=e.charCodeAt(r++))>=55296&&t<=56319&&r<s?56320==(64512&(n=e.charCodeAt(r++)))?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),r--):i.push(t);return i}function b(e){return f(e,function(e){var t="";return e>65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+h(e)}).join("")}function y(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function v(e,t,n){var i=0;for(e=n?d(e/700):e>>1,e+=d(e/t);e>455;i+=36)e=d(e/35);return d(i+36*e/(e+38))}function _(e){var t,n,i,r,s,a,c,l,u,h,f,g=[],m=e.length,y=0,_=128,w=72;for((n=e.lastIndexOf("-"))<0&&(n=0),i=0;i<n;++i)e.charCodeAt(i)>=128&&p("not-basic"),g.push(e.charCodeAt(i));for(r=n>0?n+1:0;r<m;){for(s=y,a=1,c=36;r>=m&&p("invalid-input"),((l=(f=e.charCodeAt(r++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:36)>=36||l>d((o-y)/a))&&p("overflow"),y+=l*a,!(l<(u=c<=w?1:c>=w+26?26:c-w));c+=36)a>d(o/(h=36-u))&&p("overflow"),a*=h;w=v(y-s,t=g.length+1,0==s),d(y/t)>o-_&&p("overflow"),_+=d(y/t),y%=t,g.splice(y++,0,_)}return b(g)}function w(e){var t,n,i,r,s,a,c,l,u,f,g,b,_,w,k,C=[];for(b=(e=m(e)).length,t=128,n=0,s=72,a=0;a<b;++a)(g=e[a])<128&&C.push(h(g));for(i=r=C.length,r&&C.push("-");i<b;){for(c=o,a=0;a<b;++a)(g=e[a])>=t&&g<c&&(c=g);for(c-t>d((o-n)/(_=i+1))&&p("overflow"),n+=(c-t)*_,t=c,a=0;a<b;++a)if((g=e[a])<t&&++n>o&&p("overflow"),g==t){for(l=n,u=36;!(l<(f=u<=s?1:u>=s+26?26:u-s));u+=36)C.push(h(y(f+(k=l-f)%(w=36-f),0))),l=d(k/w);C.push(h(y(l,0))),s=v(n,_,i==r),n=0,++i}++n,++t}return C.join("")}s={version:"1.3.2",ucs2:{decode:m,encode:b},decode:_,encode:w,toASCII:function(e){return g(e,function(e){return c.test(e)?"xn--"+w(e):e})},toUnicode:function(e){return g(e,function(e){return a.test(e)?_(e.slice(4).toLowerCase()):e})}},void 0===(i=(function(){return s}).call(t,n,t,e))||(e.exports=i)}()}).call(this,n("YuTi")(e))},rpDa:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getEvent(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/event",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}
1findByIdPayments(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/payments/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}findByIdRecordings(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/recordings/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdRecordings(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/recordings/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdRecordings(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/recordings/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}findByIdSurveySubmissions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/surveySubmissions/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdSurveySubmissions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/surveySubmissions/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdSurveySubmissions(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/surveySubmissions/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}findByIdExamSubmissions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/examSubmissions/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdExamSubmissions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/examSubmissions/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdExamSubmissions(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/examSubmissions/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getPayments(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/payments",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}countPayments(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/payments/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getRecordings(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/recordings",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createRecordings(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/recordings";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteRecordings(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/recordings";return this.request("DELETE",n,{id:e},{},{},null,t)}countRecordings(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/recordings/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getSurveySubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/surveySubmissions",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createSurveySubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/surveySubmissions";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteSurveySubmissions(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/surveySubmissions";return this.request("DELETE",n,{id:e},{},{},null,t)}countSurveySubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/surveySubmissions/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getExamSubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/examSubmissions",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createExamSubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/examSubmissions";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteExamSubmissions(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/examSubmissions";return this.request("DELETE",n,{id:e},{},{},null,t)}countExamSubmissions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/examSubmissions/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}submit(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/submit";return this.request("POST",n,{id:e},{},{},null,t)}attended(e={},t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/result/attended",r={};return null!=e&&(r.where=e),null!=t&&(r.amount=t),this.request("POST",i,{},r,{},null,n)}passed(e={},t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/result/passed",r={};return null!=e&&(r.where=e),null!=t&&(r.data_acquisizione=t),this.request("POST",i,{},r,{},null,n)}failed(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/result/failed",i={};return null!=e&&(i.where=e),this.request("POST",n,{},i,{},null,t)}
1set_role(e={},t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/role",r={};return null!=e&&(r.subscriptionId=e),null!=t&&(r.role=t),this.request("POST",i,{},r,{},null,n)}startSurvey(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/start-survey",r={id:e},s={};return null!=t&&(s.name=t),this.request("POST",i,r,s,{},null,n)}startExam(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/start-exam";return this.request("POST",n,{id:e},{},{},null,t)}evaluate(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/evaluate";return this.request("POST",n,{id:e},{},{},null,t)}generateCertificatePassed(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/certificate-passed";return this.request("POST",n,{id:e},{},{},null,t)}generateCertificateLogbook(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/certificate-logbook";return this.request("POST",n,{id:e},{},{},null,t)}generateCertificateParticipation(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/certificate-participation";return this.request("POST",n,{id:e},{},{},null,t)}progress_material(e,t={},n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/progress-material",s={id:e},a={};return null!=t&&(a.materialId=t),null!=n&&(a.progress=n),this.request("POST",r,s,a,{},null,i)}verify_progress(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/progress/verify";return this.request("POST",n,{id:e},{},{},null,t)}reset_progress(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/progress/reset";return this.request("POST",n,{id:e},{},{},null,t)}uploadrequest_doc(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/upload/request_doc";return this.request("POST",n,{id:e},{},{},null,t)}downloadrequest_doc(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/request_doc/:filename";return this.request("GET",i,{id:e,filename:t},{},{},null,n)}downloadcertificate(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/certificate/:filename";return this.request("GET",i,{id:e,filename:t},{},{},null,n)}downloadparticipation(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/participation/:filename";return this.request("GET",i,{id:e,filename:t},{},{},null,n)}downloadlogbook_certificate(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/logbook_certificate/:filename";return this.request("GET",i,{id:e,filename:t},{},{},null,n)}getIdCode(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/code";return this.request("GET",n,{id:e},{},{},null,t)}verifyIdCode(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/code/verify";return this.request("POST",n,{},{},{code:e},null,t)}payment(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/payment",r={id:e},s={};return null!=t&&(s.amount=t),this.request("POST",i,r,s,{},null,n)}createManyRecordings(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/recordings";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManySurveySubmissions(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/surveySubmissions";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyExamSubmissions(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressSubscriptions/:id/examSubmissions";return this.request("POST",i,{id:e},{},{data:t},null,n)}getModelName(){return"CongressSubscription"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},"rpR/":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}
1getElection(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiElectionCandidates/:id/election",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getCandidate(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiElectionCandidates/:id/candidate",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiElectionCandidates/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}uploadpresentation(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiElectionCandidates/:id/upload/presentation";return this.request("POST",n,{id:e},{},{},null,t)}refresh_data(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiElectionCandidates/:id/refresh-data";return this.request("POST",n,{id:e},{},{},null,t)}getModelName(){return"SimiElectionCandidate"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},rvCO:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("fXoL"),r=n("3Pt+");const s=["search"];let o=(()=>{class e{constructor(e){this.ngZone=e,this.positionChanged=new i.o}ngOnInit(){this.location=this.model,this.form&&this.form.form&&this.form.form.addControl("place",new r.d("",r.y.required)),console.log(this.form)}}return e.\u0275fac=function(t){return new(t||e)(i.Tb(i.C))},e.\u0275cmp=i.Nb({type:e,selectors:[["ngx-search"]],viewQuery:function(e,t){if(1&e&&i.Vc(s,1),2&e){let e;i.Ec(e=i.kc())&&(t.searchElementRef=e.first)}},inputs:{form:"form",model:"model",title:"title"},outputs:{positionChanged:"positionChanged"},decls:0,vars:0,template:function(e,t){},styles:[".auth-row[_ngcontent-%COMP%]{padding:0;border-left:none;border-right:1px solid #dadfe6!important;border-top:1px solid #dadfe6!important;border-bottom:1px solid #dadfe6!important;border-radius:0 .375rem .375rem 0!important}.auth-row[_ngcontent-%COMP%]:hover{background-color:#4472c4}.auth-row[_ngcontent-%COMP%]:hover .auth-icon[_ngcontent-%COMP%]{color:#fff}.auth-icon[_ngcontent-%COMP%]{font-size:31px!important;color:#4472c4;padding:0 7px}label.auth-row[_ngcontent-%COMP%]{margin:0}"]}),e})()},"s8/3":function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"CourseLive"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"CourseLive",plural:"CourseLives",path:"CourseLives",idName:"id",properties:{eventId:{name:"eventId",type:"any"},access_level:{name:"access_level",type:"number",default:0},name:{name:"name",type:"string"},description:{name:"description",type:"string"},url:{name:"url",type:"string"},source:{name:"source",type:"any"},target:{name:"target",type:"any"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{event:{name:"event",type:"Course",model:"Course",relationType:"belongsTo",keyFrom:"eventId",keyTo:"id"}}}}}},sDzi:function(e,t){var n={"":1,lr:1,rl:1},i={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function r(e){return"string"==typeof e&&!!i[e.toLowerCase()]&&e.toLowerCase()}function s(e,t,i){this.hasBeenReset=!1;var s="",o=!1,a=e,c=t,l=i,u=null,d="",h=!0,p="auto",f="start",g="auto",m="auto",b=100,y="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return s},set:function(e){s=""+e}},pauseOnExit:{enumerable:!0,get:function(){return o},set:function(e){o=!!e}},startTime:{enumerable:!0,get:function(){return a}
vendor: 7,208 bytes, line 1
1,set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");a=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");c=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return l},set:function(e){l=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return u},set:function(e){u=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return d},set:function(e){var t=function(e){return"string"==typeof e&&!!n[e.toLowerCase()]&&e.toLowerCase()}(e);if(!1===t)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");d=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return h},set:function(e){h=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return p},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("Line: an invalid number or illegal string was specified.");p=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return f},set:function(e){var t=r(e);t?(f=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return g},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");g=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return m},set:function(e){var t=r(e);t?(m=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return b},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");b=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return y},set:function(e){var t=r(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");y=t,this.hasBeenReset=!0}}}),this.displayState=void 0}s.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=s},sHRr:function(e,t,n){var i=n("iadd"),r=n("4ciW"),s=n("sw/d"),o=n("4ANG"),a=r.DOMImplementation,c=i.NAMESPACE,l=o.ParseError,u=o.XMLReader;function d(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function h(e){this.options=e||{locator:{}}}function p(){this.cdata=!1}function f(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function g(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function m(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function b(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}h.prototype.parseFromString=function(e,t){var n=this.options,i=new u,r=n.domBuilder||new p,o=n.errorHandler,a=n.locator,l=n.xmlns||{},h=/\/x?html?$/.test(t),f=h?s.HTML_ENTITIES:s.XML_ENTITIES;return a&&r.setDocumentLocator(a),i.errorHandler=function(e,t,n){if(!e){if(t instanceof p)return t;e=t}var i={},r=e instanceof Function;function s(t){var s=e[t];!s&&r&&(s=2==e.length?function(n){e(t,n)}:e),i[t]=s&&function(e){s("[xmldom "+t+"]\t"+e+g(n))}||function(){}}return n=n||{},s("warning"),s("error"),s("fatalError"),i}(o,r,a),i.domBuilder=n.domBuilder||r,h&&(l[""]=c.HTML),l.xml=l.xml||c.XML,e&&"string"==typeof e?i.parse((n.normalizeLineEndings||d)(e),l,f):i.errorHandler.error("invalid doc source"),r.doc},p.prototype={startDocument:function(){this.doc=(new a).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,i){var r=this.doc,s=r.createElementNS(e,n||t),o=i.length;b(this,s),this.currentElement=s,this.locator&&f(this.locator,s);for(var a=0;a<o;a++){e=i.getURI(a);var c=i.getValue(a),l=(n=i.getQName(a),r.createAttributeNS(e,n));this.locator&&f(i.getLocator(a),l),l.value=l.nodeValue=c,s.setAttributeNode(l)}},endElement:function(e,t,n){this.currentElement=this.currentElement.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&f(this.locator,n),b(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=m.apply(this,arguments)){if(this.cdata)var i=this.doc.createCDATASection(e);else i=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(i):/^\s*$/.test(e)&&this.doc.appendChild(i),this.locator&&f(this.locator,i)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=m.apply(this,arguments);var i=this.doc.createComment(e);this.locator&&f(this.locator,i),b(this,i)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var i=this.doc.implementation;if(i&&i.createDocumentType){var r=i.createDocumentType(e,t,n);this.locator&&f(this.locator,r),b(this,r),this.doc.doctype=r}},warning:function(e){console.warn("[xmldom warning]\t"+e,g(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,g(this.locator))},fatalError:function(e){throw new l(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){p.prototype[e]=function(){return null}}),t.__DOMHandler=p,t.normalizeLineEndings=d,t.DOMParser=h},sSfP:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"CongressReviewAssignment"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"CongressReviewAssignment",plural:"CongressReviewAssignments",path:"CongressReviewAssignments",idName:"id",properties:{congressId:{name:"congressId",type:"any"},profileId:{name:"profileId",type:"any"},submissionId:{name:"submissionId",type:"any"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{congress:{name:"congress",type:"Congress",model:"Congress",relationType:"belongsTo",keyFrom:"congressId",keyTo:"id"},profile:{name:"profile",type:"CongressProfile",model:"CongressProfile",relationType:"belongsTo",keyFrom:"profileId",keyTo:"id"},submission:{name:"submission",type:"CongressSubmission",model:"CongressSubmission",relationType:"belongsTo",keyFrom:"submissionId",keyTo:"id"},review:{name:"review",type:"CongressReview",model:"CongressReview",relationType:"hasOne",keyFrom:"id",keyTo:"assignmentId"}}}}}},sVev:function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=(()=>{function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e})()},sXyB:function(e,t,n){var i=n("SksO"),r=n("b48C");function s(t,n,o){return r()?(e.exports=s=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=s=function(e,t,n){var r=[null];r.push.apply(r,t);var s=new(Function.bind.apply(e,r));return n&&i(s,n.prototype),s},e.exports.__esModule=!0,e.exports.default=e.exports),s.apply(null,arguments)}
1e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports},sk6X:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiPaymentTransaction"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiPaymentTransaction",plural:"SimiPaymentTransactions",path:"SimiPaymentTransactions",idName:"id",properties:{paymentId:{name:"paymentId",type:"any"},targetId:{name:"targetId",type:"any"},targetType:{name:"targetType",type:"string"},amount:{name:"amount",type:"number"},type:{name:"type",type:"string"},status:{name:"status",type:"string",default:"initial"},processed_date:{name:"processed_date",type:"Date"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{payment:{name:"payment",type:"SimiPayment",model:"SimiPayment",relationType:"belongsTo",keyFrom:"paymentId",keyTo:"id"},target:{name:"target",type:"any",model:"",relationType:"belongsTo",keyFrom:"targetId",keyTo:"id"}}}}}},sujq:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getEvent(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbookEntries/:id/event",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getSubscription(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbookEntries/:id/subscription",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getLogbook(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbookEntries/:id/logbook",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbookEntries/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbookEntries/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}submit(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbookEntries/:id/submit";return this.request("POST",n,{id:e},{},{},null,t)}uploadattachments(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbookEntries/:id/upload/attachments";return this.request("POST",n,{id:e},{},{},null,t)}downloadattachments(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbookEntries/:id/attachments/:filename";return this.request("GET",i,{id:e,filename:t},{},{},null,n)}getModelName(){return"CourseLogbookEntry"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},"sw/d":function(e,t,n){var i=n("iadd").freeze;t.XML_ENTITIES=i({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=i({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",times:"\xd7",divide:"\xf7",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u
103bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",euro:"\u20ac",trade:"\u2122",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}),t.entityMap=t.HTML_ENTITIES},tDC8:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"CampaignTarget"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"CampaignTarget",plural:"CampaignTargets",path:"CampaignTargets",idName:"id",properties:{campaignId:{name:"campaignId",type:"string"},type:{name:"type",type:"string"},target:{name:"target",type:"string"},template:{name:"template",type:"string"},data:{name:"data",type:"any"},token:{name:"token",type:"string"},id:{name:"id",type:"any"},timestamp:{name:"timestamp",type:"Date"}},relations:{}}}}},tEF2:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiEntity"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiEntity",plural:"SimiEntities",path:"SimiEntities",idName:"id",properties:{type:{name:"type",type:"string"},name:{name:"name",type:"string"},description:{name:"description",type:"string"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{}}}}},tR1z:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("aceb"),r=n("ZtdT"),s=n("fXoL");class o extends i.wb{constructor(e,t){super(e,""),this.name=e,this.content=t}getContent(e){return this.content.toSvg(Object.assign({width:"100%",height:"100%",fill:"currentColor"},e))}}let a=(()=>{class e{constructor(e){this.NAME="eva",e.registerSvgPack(this.NAME,this.createIcons()),e.setDefaultPack(this.NAME)}createIcons(){return Object.entries(r.icons).map(([e,t])=>[e,new o(e,t)]).reduce((e,[t,n])=>(e[t]=n,e),{})}}return e.\u0275fac=function(t){return new(t||e)(s.gc(i.K))},e.\u0275mod=s.Rb({type:e}),e.\u0275inj=s.Qb({}),e})()},tVOf:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getEvent(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSurveySubmissions/:id/event",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getSubscription(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSurveySubmissions/:id/subscription",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getSurvey(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSurveySubmissions/:id/survey",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSurveySubmissions/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSurveySubmissions/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}answer(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSurveySubmissions/:id/answer",r={id:e},s={};return null!=t&&(s.answers=t),this.request("POST",i,r,s,{},null,n)}submit(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseSurveySubmissions/:id/submit";return this.request("POST",n,{id:e},{},{},null,t)}getModelName(){return"CourseSurveySubmission"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},tcjf:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Scores/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}compute(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/Scores/compute",r={id:e},s={};return null!=t&&(s.params=t),this.request("POST",i,r,s,{},null,n)}inspect(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Scores/inspect";return this.request("POST",n,{id:e},{},{},null,t)}getModelName(){return"Score"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},tiT6:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAdmissions/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAdmissions/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}submit(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAdmissions/:id/submit";return this.request("POST",n,{id:e},{},{},null,t)}accept(e={},t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAdmissions/accept",r={};return null!=e&&(r.where=e),null!=t&&(r.associate=t),this.request("POST",i,{},r,{},null,n)}reject(e={},t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAdmissions/reject",r={};return null!=e&&(r.where=e),null!=t&&(r.message=t),this.request("POST",i,{},r,{},null,n)}setStatus(e={},t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAdmissions/status",r={};return null!=e&&(r.where=e),null!=t&&(r.status=t),this.request("POST",i,{},r,{},null,n)}getSubmitted(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAdmissions/submitted",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countSubmitted(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAdmissions/submitted/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}getAccepted(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAdmissions/accepted",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countAccepted(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAdmissions/accepted/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}getRejected(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAdmissions/rejected",i={};return null!=e&&(i.filter=e),this.request("GET",n,{},i,{},null,t)}countRejected(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/SimiAdmissions/rejected/count",i={};return null!=e&&(i.where=e),this.request("GET",n,{},i,{},null,t)}getModelName(){return"SimiAdmission"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},"tk/3":function(e,t,n){"use strict";n.d(t,"a",function(){return x}),n.d(t,"b",function(){return P}),n.d(t,"c",function(){return B}),n.d(t,"d",function(){return S}),n.d(t,"e",function(){return _}),n.d(t,"f",function(){return h}),n.d(t,"g",function(){return g}),n.d(t,"h",function(){return v}),n.d(t,"i",function(){return C});var i=n("fXoL"),r=n("LRne"),s=n("HDdC"),o=n("bOdf"),a=n("pLZG"),c=n("lJxs"),l=n("ofXK");class u{}class d{}class h{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>
vendor: 15,171 bytes, line 1
1{this.headers=new Map,e.split("\n").forEach(e=>{const t=e.indexOf(":");if(t>0){const n=e.slice(0,t),i=n.toLowerCase(),r=e.slice(t+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(r):this.headers.set(i,[r])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let n=e[t];const i=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(t,i))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof h?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new h;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof h?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);const i=("a"===e.op?this.headers.get(t):void 0)||[];i.push(...n),this.headers.set(t,i);break;case"d":const r=e.value;if(r){let e=this.headers.get(t);if(!e)return;e=e.filter(e=>-1===r.indexOf(e)),0===e.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class p{encodeKey(e){return f(e)}encodeValue(e){return f(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function f(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class g{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new p,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(e=>{const i=e.indexOf("="),[r,s]=-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],o=n.get(r)||[];o.push(s),n.set(r,o)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const n=e.fromObject[t];this.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(n=>{const i=e[n];Array.isArray(i)?i.forEach(e=>{t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(e=>t+"="+this.encoder.encodeValue(e)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new g({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(e.value),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const n=t.indexOf(e.value);-1!==n&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}function m(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function b(e){return"undefined"!=typeof Blob&&e instanceof Blob}function y(e){return"undefined"!=typeof FormData&&e instanceof FormData}class v{constructor(e,t,n,i){let r;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new h),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const n=t.indexOf("?");this.urlWithParams=t+(-1===n?"?":n<t.length-1?"&":"")+e}}else this.params=new g,this.urlWithParams=t}serializeBody(){return null===this.body?null:m(this.body)||b(this.body)||y(this.body)||"string"==typeof this.body?this.body:this.body instanceof g?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||y(this.body)?null:b(this.body)?this.body.type||null:m(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof g?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(e={}){const t=e.method||this.method,n=e.url||this.url,i=e.responseType||this.responseType,r=void 0!==e.body?e.body:this.body,s=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,o=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let a=e.headers||this.headers,c=e.params||this.params;return void 0!==e.setHeaders&&(a=Object.keys(e.setHeaders).reduce((t,n)=>t.set(n,e.setHeaders[n]),a)),e.setParams&&(c=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),c)),new v(t,n,r,{params:c,headers:a,reportProgress:o,responseType:i,withCredentials:s})}}var _=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({});class w{constructor(e,t=200,n="OK"){this.headers=e.headers||new h,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class k extends w{constructor(e={}){super(e),this.type=_.ResponseHeader}clone(e={}){return new k({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class C extends w{constructor(e={}){super(e),this.type=_.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new C({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class S extends w{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function T(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let P=(()=>{class e{constructor(e){this.handler=e}request(e,t,n={}){let i;if(e instanceof v)i=e;else{let r,s;r=n.headers instanceof h?n.headers:new h(n.headers),n.params&&(s=n.params instanceof g?n.params:new g({fromObject:n.params})),i=new v(e,t,void 0!==n.body?n.body:null,{headers:r,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=Object(r.a)(i).pipe(Object(o.a)(e=>this.handler.handle(e)));if(e instanceof v||"events"===n.observe)return s;const l=s.pipe(Object(a.a)(e=>e instanceof C));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return l.pipe(Object(c.a)(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return l.pipe(Object(c.a)(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return l.pipe(Object(c.a)(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));default:return l.pipe(Object(c.a)(e=>e.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new g).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,T(n,t))}post(e,t,n={}){return this.request("POST",e,T(n,t))}put(e,t,n={}){return this.request("PUT",e,T(n,t))}}return e.\u0275fac=function(t){return new(t||e)(i.gc(u))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();class O{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const x=new i.t("HTTP_INTERCEPTORS");let A=(()=>{class e{intercept(e,t){return t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();const E=/^\)\]\}',?\n/;class M{}let I=(()=>{class e{constructor(){}build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),R=(()=>{class e{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new s.a(t=>{const n=this.xhrFactory.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEach((e,t)=>n.setRequestHeader(e,t.join(","))),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&n.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();n.responseType="json"!==t?t:"text"}const i=e.serializeBody();let r=null;const s=()=>{if(null!==r)return r;const t=1223===n.status?204:n.status,i=n.statusText||"OK",s=new h(n.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||e.url;return r=new k({headers:s,status:t,statusText:i,url:o}),r},o=()=>{let{headers:i,status:r,statusText:o,url:a}=s(),c=null;204!==r&&(c=void 0===n.response?n.responseText:n.response),0===r&&(r=c?200:0);let l=r>=200&&r<300;if("json"===e.responseType&&"string"==typeof c){const e=c;c=c.replace(E,"");try{c=""!==c?JSON.parse(c):null}catch(u){c=e,l&&(l=!1,c={error:u,text:c})}}l?(t.next(new C({body:c,headers:i,status:r,statusText:o,url:a||void 0})),t.complete()):t.error(new S({error:c,headers:i,status:r,statusText:o,url:a||void 0}))},a=e=>{const{url:i}=s(),r=new S({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});t.error(r)};let c=!1;const l=i=>{c||(t.next(s()),c=!0);let r={type:_.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(r.total=i.total),"text"===e.responseType&&n.responseText&&(r.partialText=n.responseText),t.next(r)},u=e=>{let n={type:_.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),e.reportProgress&&(n.addEventListener("progress",l),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),t.next({type:_.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),e.reportProgress&&(n.removeEventListener("progress",l),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return e.\u0275fac=function(t){return new(t||e)(i.gc(M))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})();const L=new i.t("XSRF_COOKIE_NAME"),D=new i.t("XSRF_HEADER_NAME");class j{}let N=(()=>{class e{constructor(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(l.K)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)(i.gc(l.d),i.gc(i.E),i.gc(L))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),V=(()=>{class e{constructor(e,t){this.tokenService=e,this.headerName=t}intercept(e,t){const n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);const i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(i.gc(j),i.gc(D))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),z=(()=>{class e{constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get(x,[]);this.chain=e.reduceRight((e,t)=>new O(e,t),this.backend)}return this.chain.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(i.gc(d),i.gc(i.u))},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})(),F=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:V,useClass:A}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:L,useValue:t.cookieName}:[],t.headerName?{provide:D,useValue:t.headerName}:[]]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({providers:[V,{provide:x,useExisting:V,multi:!0},{provide:j,useClass:N},{provide:L,useValue:"XSRF-TOKEN"},{provide:D,useValue:"X-XSRF-TOKEN"}
1]}),e})(),B=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Rb({type:e}),e.\u0275inj=i.Qb({providers:[P,{provide:u,useClass:z},R,{provide:d,useExisting:R},I,{provide:M,useExisting:I}],imports:[[F.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e})()},tnsW:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("zx2A");function r(e){return function(t){return t.lift(new s(e))}}class s{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new o(e,this.durationSelector))}}class o extends i.b{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:t}=this;n=t(e)}catch(t){return this.destination.error(t)}const r=Object(i.c)(n,new i.a(this));!r||r.closed?this.clearThrottle():this.add(this.throttled=r)}}clearThrottle(){const{value:e,hasValue:t,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}},tyNb:function(e,t,n){"use strict";n.d(t,"a",function(){return je}),n.d(t,"b",function(){return L}),n.d(t,"c",function(){return rn}),n.d(t,"d",function(){return sn}),n.d(t,"e",function(){return cn}),n.d(t,"f",function(){return on}),n.d(t,"g",function(){return vn}),n.d(t,"h",function(){return ln});var i=n("ofXK"),r=n("fXoL"),s=n("Cfvw"),o=n("LRne"),a=n("2Vo4"),c=n("itXk"),l=n("HDdC"),u=n("sVev"),d=n("GyhO"),h=n("NXyV"),p=n("EY2u"),f=n("EQ5u"),g=n("XNiG"),m=n("lJxs"),b=n("eIep"),y=n("IzEk"),v=n("JX91"),_=n("Kqap"),w=n("pLZG"),k=n("JIr8"),C=n("bOdf"),S=n("NJ9Y"),T=n("SxV6"),P=n("5+tZ"),O=n("vkgz"),x=n("BFxc"),A=n("x+ZX"),E=n("nYR2"),M=n("bHdf");class I{constructor(e,t){this.id=e,this.url=t}}class R extends I{constructor(e,t,n="imperative",i=null){super(e,t),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class L extends I{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class D extends I{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class j extends I{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class N extends I{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class V extends I{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class z extends I{constructor(e,t,n,i,r){super(e,t),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class F extends I{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class B extends I{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class q{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class U{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class H{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class W{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class G{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Y{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ${constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Z{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function Q(e){return new Z(e)}function X(e){const t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function K(e,t,n){const i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length<e.length))return null;const r={};for(let s=0;s<i.length;s++){const t=i[s],n=e[s];if(t.startsWith(":"))r[t.substring(1)]=n;else if(t!==n.path)return null}return{consumed:e.slice(0,i.length),posParams:r}}function J(e,t){const n=e?Object.keys(e):void 0,i=t?Object.keys(t):void 0;if(!n||!i||n.length!=i.length)return!1;let r;for(let s=0;s<n.length;s++)if(r=n[s],!ee(e[r],t[r]))return!1;return!0}function ee(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const n=[...e].sort(),i=[...t].sort();return n.every((e,t)=>i[t]===e)}return e===t}function te(e){return Array.prototype.concat.apply([],e)}function ne(e){return e.length>0?e[e.length-1]:null}function ie(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function re(e){return Object(r.wb)(e)?e:Object(r.xb)(e)?Object(s.a)(Prom
1ise.resolve(e)):Object(o.a)(e)}function se(e,t,n){return n?function(e,t){return J(e,t)}(e.queryParams,t.queryParams)&&oe(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>ee(e[n],t[n]))}(e.queryParams,t.queryParams)&&ae(e.root,t.root)}function oe(e,t){if(!he(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(const n in t.children){if(!e.children[n])return!1;if(!oe(e.children[n],t.children[n]))return!1}return!0}function ae(e,t){return ce(e,t,t.segments)}function ce(e,t,n){if(e.segments.length>n.length)return!!he(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!he(e.segments,n))return!1;for(const n in t.children){if(!e.children[n])return!1;if(!ae(e.children[n],t.children[n]))return!1}return!0}{const i=n.slice(0,e.segments.length),r=n.slice(e.segments.length);return!!he(e.segments,i)&&!!e.children.primary&&ce(e.children.primary,t,r)}}class le{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Q(this.queryParams)),this._queryParamMap}toString(){return ge.serialize(this)}}class ue{constructor(e,t){this.segments=e,this.children=t,this.parent=null,ie(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return me(this)}}class de{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=Q(this.parameters)),this._parameterMap}toString(){return Ce(this)}}function he(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}class pe{}class fe{parse(e){const t=new xe(e);return new le(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){var t;return`/${be(e.root,!0)}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${ve(t)}=${ve(e)}`).join("&"):`${ve(t)}=${ve(n)}`});return t.length?`?${t.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${t=e.fragment,encodeURI(t)}`:""}`}}const ge=new fe;function me(e){return e.segments.map(e=>Ce(e)).join("/")}function be(e,t){if(!e.hasChildren())return me(e);if(t){const t=e.children.primary?be(e.children.primary,!1):"",n=[];return ie(e.children,(e,t)=>{"primary"!==t&&n.push(`${t}:${be(e,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}{const t=function(e,t){let n=[];return ie(e.children,(e,i)=>{"primary"===i&&(n=n.concat(t(e,i)))}),ie(e.children,(e,i)=>{"primary"!==i&&(n=n.concat(t(e,i)))}),n}(e,(t,n)=>"primary"===n?[be(e.children.primary,!1)]:[`${n}:${be(t,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children.primary?`${me(e)}/${t[0]}`:`${me(e)}/(${t.join("//")})`}}function ye(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ve(e){return ye(e).replace(/%3B/gi,";")}function _e(e){return ye(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function we(e){return decodeURIComponent(e)}function ke(e){return we(e.replace(/\+/g,"%20"))}function Ce(e){return`${_e(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${_e(e)}=${_e(t[e])}`).join("")}`;var t}const Se=/^[^\/()?;=#]+/;function Te(e){const t=e.match(Se);return t?t[0]:""}const Pe=/^[^=?&#]+/,Oe=/^[^?&#]+/;class xe{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ue([],{}):new ue([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new ue(e,t)),n}parseSegment(){const e=Te(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new de(we(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Te(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=Te(this.remaining);e&&(n=e,this.capture(n))}e[we(t)]=we(n)}parseQueryParam(e){const t=function(e){const t=e.match(Pe);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(Oe);return t?t[0]:""}(this.remaining);e&&(n=e,this.capture(n))}const i=ke(t),r=ke(n);if(e.hasOwnProperty(i)){let t=e[i];Array.isArray(t)||(t=[t],e[i]=t),t.push(r)}else e[i]=r}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Te(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let r;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r="primary");const s=this.parseChildren();t[r]=1===Object.keys(s).length?s.primary:new ue([],s),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class Ae{constructor(e){this._root=e}get root(){return this._root.value}
1parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=Ee(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=Ee(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=Me(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return Me(e,this._root).map(e=>e.value)}}function Ee(e,t){if(e===t.value)return t;for(const n of t.children){const t=Ee(e,n);if(t)return t}return null}function Me(e,t){if(e===t.value)return[t];for(const n of t.children){const i=Me(e,n);if(i.length)return i.unshift(t),i}return[]}class Ie{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function Re(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class Le extends Ae{constructor(e,t){super(e),this.snapshot=t,Fe(this,e)}toString(){return this.snapshot.toString()}}function De(e,t){const n=function(e,t){const n=new Ve([],{},{},"",{},"primary",t,null,e.root,-1,{});return new ze("",new Ie(n,[]))}(e,t),i=new a.a([new de("",{})]),r=new a.a({}),s=new a.a({}),o=new a.a({}),c=new a.a(""),l=new je(i,r,o,c,s,"primary",t,n.root);return l.snapshot=n.root,new Le(new Ie(l,[]),n)}class je{constructor(e,t,n,i,r,s,o,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Object(m.a)(e=>Q(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(m.a)(e=>Q(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ne(e,t="emptyOnly"){const n=e.pathFromRoot;let i=0;if("always"!==t)for(i=n.length-1;i>=1;){const e=n[i],t=n[i-1];if(e.routeConfig&&""===e.routeConfig.path)i--;else{if(t.component)break;i--}}return function(e){return e.reduce((e,t)=>({params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class Ve{constructor(e,t,n,i,r,s,o,a,c,l,u){this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=l,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Q(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Q(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ze extends Ae{constructor(e,t){super(t),this.url=e,Fe(this,t)}toString(){return Be(this._root)}}function Fe(e,t){t.value._routerState=e,t.children.forEach(t=>Fe(e,t))}function Be(e){const t=e.children.length>0?` { ${e.children.map(Be).join(", ")} } `:"";return`${e.value}${t}`}function qe(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,J(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),J(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!J(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),J(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function Ue(e,t){const n=J(e.params,t.params)&&he(i=e.url,r=t.url)&&i.every((e,t)=>J(e.parameters,r[t].parameters));var i,r;return n&&!(!e.parent!=!t.parent)&&(!e.parent||Ue(e.parent,t.parent))}function He(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=t.value;const r=function(e,t,n){return t.children.map(t=>{for(const i of n.children)if(e.shouldReuseRoute(t.value,i.value.snapshot))return He(e,t,i);return He(e,t)})}
1(e,t,n);return new Ie(i,r)}{if(e.shouldAttach(t.value)){const n=e.retrieve(t.value);if(null!==n){const e=n.route;return We(t,e),e}}const n=new je(new a.a((i=t.value).url),new a.a(i.params),new a.a(i.queryParams),new a.a(i.fragment),new a.a(i.data),i.outlet,i.component,i),r=t.children.map(t=>He(e,t));return new Ie(n,r)}var i}function We(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(let n=0;n<e.children.length;++n)We(e.children[n],t.children[n])}function Ge(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Ye(e){return"object"==typeof e&&null!=e&&e.outlets}function $e(e,t,n,i,r){let s={};return i&&ie(i,(e,t)=>{s[t]=Array.isArray(e)?e.map(e=>`${e}`):`${e}`}),new le(n.root===e?t:Ze(n.root,e,t),s,r)}function Ze(e,t,n){const i={};return ie(e.children,(e,r)=>{i[r]=e===t?n:Ze(e,t,n)}),new ue(e.segments,i)}class Qe{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&Ge(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(Ye);if(i&&i!==ne(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Xe{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function Ke(e,t,n){if(e||(e=new ue([],{})),0===e.segments.length&&e.hasChildren())return Je(e,t,n);const i=function(e,t,n){let i=0,r=t;const s={match:!1,pathIndex:0,commandIndex:0};for(;r<e.segments.length;){if(i>=n.length)return s;const t=e.segments[r],o=n[i];if(Ye(o))break;const a=`${o}`,c=i<n.length-1?n[i+1]:null;if(r>0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!it(a,c,t))return s;i+=2}else{if(!it(a,{},t))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex<e.segments.length){const t=new ue(e.segments.slice(0,i.pathIndex),{});return t.children.primary=new ue(e.segments.slice(i.pathIndex),e.children),Je(t,0,r)}return i.match&&0===r.length?new ue(e.segments,{}):i.match&&!e.hasChildren()?et(e,t,n):i.match?Je(e,0,r):et(e,t,n)}function Je(e,t,n){if(0===n.length)return new ue(e.segments,{});{const i=function(e){return Ye(e[0])?e[0].outlets:{primary:e}}(n),r={};return ie(i,(n,i)=>{"string"==typeof n&&(n=[n]),null!==n&&(r[i]=Ke(e.children[i],t,n))}),ie(e.children,(e,t)=>{void 0===i[t]&&(r[t]=e)}),new ue(e.segments,r)}}function et(e,t,n){const i=e.segments.slice(0,t);let r=0;for(;r<n.length;){const s=n[r];if(Ye(s)){const e=tt(s.outlets);return new ue(i,e)}if(0===r&&Ge(n[0])){i.push(new de(e.segments[t].path,nt(n[0]))),r++;continue}const o=Ye(s)?s.outlets.primary:`${s}`,a=r<n.length-1?n[r+1]:null;o&&a&&Ge(a)?(i.push(new de(o,nt(a))),r+=2):(i.push(new de(o,{})),r++)}return new ue(i,{})}function tt(e){const t={};return ie(e,(e,n)=>{"string"==typeof e&&(e=[e]),null!==e&&(t[n]=et(new ue([],{}),0,e))}),t}function nt(e){const t={};return ie(e,(e,n)=>t[n]=`${e}`),t}function it(e,t,n){return e==n.path&&J(t,n.parameters)}class rt{constructor(e,t,n,i){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=i}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),qe(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const i=Re(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,i[t],n),delete i[t]}),ie(i,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const i=e.value,r=t?t.value:null;if(i===r)if(i.component){const r=n.getContext(i.outlet);r&&this.deactivateChildRoutes(e,t,r.children)}else this.deactivateChildRoutes(e,t,n);else r&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:i})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet),i=n&&e.value.component?n.children:t,r=Re(e);for(const s of Object.keys(r))this.deactivateRouteAndItsChildren(r[s],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}
1activateChildRoutes(e,t,n){const i=Re(t);e.children.forEach(e=>{this.activateRoutes(e,i[e.value.outlet],n),this.forwardEvent(new Y(e.value.snapshot))}),e.children.length&&this.forwardEvent(new W(e.value.snapshot))}activateRoutes(e,t,n){const i=e.value,r=t?t.value:null;if(qe(i),i===r)if(i.component){const r=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,r.children)}else this.activateChildRoutes(e,t,n);else if(i.component){const t=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const e=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),st(e.route)}else{const n=function(e){for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(i.snapshot),r=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=i,t.resolver=r,t.outlet&&t.outlet.activateWith(i,r),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function st(e){qe(e.value),e.children.forEach(st)}class ot{constructor(e,t){this.routes=e,this.module=t}}function at(e){return"function"==typeof e}function ct(e){return e instanceof le}const lt=Symbol("INITIAL_VALUE");function ut(){return Object(b.a)(e=>Object(c.b)(e.map(e=>e.pipe(Object(y.a)(1),Object(v.a)(lt)))).pipe(Object(_.a)((e,t)=>{let n=!1;return t.reduce((e,i,r)=>{if(e!==lt)return e;if(i===lt&&(n=!0),!n){if(!1===i)return i;if(r===t.length-1||ct(i))return i}return e},e)},lt),Object(w.a)(e=>e!==lt),Object(m.a)(e=>ct(e)?e:!0===e),Object(y.a)(1)))}let dt=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Nb({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&r.Ub(0,"router-outlet")},directives:function(){return[ln]},encapsulation:2}),e})();function ht(e,t=""){for(let n=0;n<e.length;n++){const i=e[n];pt(i,ft(t,i))}}function pt(e,t){e.children&&ht(e.children,t)}function ft(e,t){return t?e||t.path?e&&!t.path?`${e}/`:!e&&t.path?t.path:`${e}/${t.path}`:"":e}function gt(e){const t=e.children&&e.children.map(gt),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=dt),n}function mt(e){return e.outlet||"primary"}function bt(e,t){const n=e.filter(e=>mt(e)===t);return n.push(...e.filter(e=>mt(e)!==t)),n}const yt={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function vt(e,t,n){var i;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},yt):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const r=(t.matcher||K)(n,e,t);if(!r)return Object.assign({},yt);const s={};ie(r.posParams,(e,t)=>{s[t]=e.path});const o=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function _t(e,t,n,i,r="corrected"){if(n.length>0&&function(e,t,n){return n.some(n=>wt(e,t,n)&&"primary"!==mt(n))}(e,n,i)){const r=new ue(t,function(e,t,n,i){const r={};r.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;for(const s of n)if(""===s.path&&"primary"!==mt(s)){const n=new ue([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,r[mt(s)]=n}return r}(e,t,i,new ue(n,e.children)));return r._sourceSegment=e,r._segmentIndexShift=t.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(n=>wt(e,t,n))}(e,n,i)){const s=new ue(e.segments,function(e,t,n,i,r,s){const o={};for(const a of i)if(wt(e,n,a)&&!r[mt(a)]){const n=new ue([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===s?e.segments.length:t.length,o[mt(a)]=n}return Object.assign(Object.assign({},r),o)}(e,t,n,i,e.children,r));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}const s=new ue(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function wt(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function kt(e,t,n,i){return!!(mt(e)===i||"primary"!==i&&wt(t,n,e))&&("**"===e.path||vt(t,e,n).matched)}function Ct(e,t,n){return 0===t.length&&!e.children[n]}class St{constructor(e){this.segmentGroup=e||null}}class Tt{constructor(e){this.urlTree=e}}function Pt(e){return new l.a(t=>t.error(new St(e)))}function Ot(e){return new l.a(t=>t.error(new Tt(e)))}function xt(e){return new l.a(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class At{constructor(e,t,n,i,s){this.configLoader=t,this.urlSerializer
1=n,this.urlTree=i,this.config=s,this.allowRedirects=!0,this.ngModule=e.get(r.A)}apply(){const e=_t(this.urlTree.root,[],[],this.config).segmentGroup,t=new ue(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,t,"primary").pipe(Object(m.a)(e=>this.createUrlTree(Et(e),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(k.a)(e=>{if(e instanceof Tt)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof St)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(Object(m.a)(t=>this.createUrlTree(Et(t),e.queryParams,e.fragment))).pipe(Object(k.a)(e=>{if(e instanceof St)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const i=e.segments.length>0?new ue([],{primary:e}):e;return new le(i,t,n)}expandSegmentGroup(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Object(m.a)(e=>new ue([],e))):this.expandSegment(e,n,t,n.segments,i,!0)}expandChildren(e,t,n){const i=[];for(const r of Object.keys(n.children))"primary"===r?i.unshift(r):i.push(r);return Object(s.a)(i).pipe(Object(C.a)(i=>{const r=n.children[i],s=bt(t,i);return this.expandSegmentGroup(e,s,r,i).pipe(Object(m.a)(e=>({segment:e,outlet:i})))}),Object(_.a)((e,t)=>(e[t.outlet]=t.segment,e),{}),Object(S.a)())}expandSegment(e,t,n,i,r,a){return Object(s.a)(n).pipe(Object(C.a)(s=>this.expandSegmentAgainstRoute(e,t,n,s,i,r,a).pipe(Object(k.a)(e=>{if(e instanceof St)return Object(o.a)(null);throw e}))),Object(T.a)(e=>!!e),Object(k.a)((e,n)=>{if(e instanceof u.a||"EmptyError"===e.name){if(Ct(t,i,r))return Object(o.a)(new ue([],{}));throw new St(t)}throw e}))}expandSegmentAgainstRoute(e,t,n,i,r,s,o){return kt(i,t,r,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,s):Pt(t):Pt(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,i){const r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Ot(r):this.lineralizeSegments(n,r).pipe(Object(P.b)(n=>{const r=new ue(n,{});return this.expandSegment(e,r,t,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,s){const{matched:o,consumedSegments:a,lastChild:c,positionalParamSegments:l}=vt(t,i,r);if(!o)return Pt(t);const u=this.applyRedirectCommands(a,i.redirectTo,l);return i.redirectTo.startsWith("/")?Ot(u):this.lineralizeSegments(i,u).pipe(Object(P.b)(i=>this.expandSegment(e,t,n,i.concat(r.slice(c)),s,!1)))}matchSegmentAgainstRoute(e,t,n,i,r){if("**"===n.path)return n.loadChildren?(n._loadedConfig?Object(o.a)(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(Object(m.a)(e=>(n._loadedConfig=e,new ue(i,{})))):Object(o.a)(new ue(i,{}));const{matched:s,consumedSegments:a,lastChild:c}=vt(t,n,i);if(!s)return Pt(t);const l=i.slice(c);return this.getChildConfig(e,n,i).pipe(Object(P.b)(e=>{const i=e.module,s=e.routes,{segmentGroup:c,slicedSegments:u}=_t(t,a,l,s),d=new ue(c.segments,c.children);if(0===u.length&&d.hasChildren())return this.expandChildren(i,s,d).pipe(Object(m.a)(e=>new ue(a,e)));if(0===s.length&&0===u.length)return Object(o.a)(new ue(a,{}));const h=mt(n)===r;return this.expandSegment(i,d,s,u,h?"primary":r,!0).pipe(Object(m.a)(e=>new ue(a.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?Object(o.a)(new ot(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Object(o.a)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(Object(P.b)(n=>n?this.configLoader.load(e.injector,t).pipe(Object(m.a)(e=>(t._loadedConfig=e,e))):function(e){return new l.a(t=>t.error(X(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):Object(o.a)(new ot([],e))}runCanLoadGuards(e,t,n){const i=t.canLoad;if(!i||0===i.length)return Object(o.a)(!0);const r=i.map(i=>{const r=e.get(i);let s;if(function(e){return e&&at(e.canLoad)}(r))s=r.canLoad(t,n);else{if(!at(r))throw new Error("Invalid CanLoad guard");s=r(t,n)}return re(s)});return Object(o.a)(r).pipe(ut(),Object(O.a)(e=>{if(!ct(e))return;const t=X(`Redirecting to "${this.urlSerializer.serialize(e)}"`);throw t.url=e,t}),Object(m.a)(e=>!0===e))}lineralizeSegments(e,t){let n=[],i=t.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Object(o.a)(n);if(i.numberOfChildren>1||!i.children.primary)return xt(e.redirectTo);i=i.children.primary}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,i){const r=this.createSegmentGroup(e,t.root,n,i);return new le(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return ie(e,(e,i)=>{if("string"==typeof e&&e.startsWith(":")){const r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}createSegmentGroup(e,t,n,i){const r=this.createSegments(e,t.segments,n,i);let s={};return ie(t.children,(t,r)=>{s[r]=this.createSegmentGroup(e,t,n,i)}
1),new ue(r,s)}createSegments(e,t,n,i){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,i):this.findOrReturn(t,n))}findPosParam(e,t,n){const i=n[t.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return i}findOrReturn(e,t){let n=0;for(const i of t){if(i.path===e.path)return t.splice(n),i;n++}return e}}function Et(e){const t={};for(const n of Object.keys(e.children)){const i=Et(e.children[n]);(i.segments.length>0||i.hasChildren())&&(t[n]=i)}return function(e){if(1===e.numberOfChildren&&e.children.primary){const t=e.children.primary;return new ue(e.segments.concat(t.segments),t.children)}return e}(new ue(e.segments,t))}class Mt{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class It{constructor(e,t){this.component=e,this.route=t}}function Rt(e,t,n){const i=e._root;return Dt(i,t?t._root:null,n,[i.value])}function Lt(e,t,n){const i=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function Dt(e,t,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=Re(t);return e.children.forEach(e=>{!function(e,t,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=e.value,o=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const c=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!he(e.url,t.url);case"pathParamsOrQueryParamsChange":return!he(e.url,t.url)||!J(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ue(e,t)||!J(e.queryParams,t.queryParams);default:return!Ue(e,t)}}(o,s,s.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new Mt(i)):(s.data=o.data,s._resolvedData=o._resolvedData),Dt(e,t,s.component?a?a.children:null:n,i,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new It(a.outlet.component,o))}else o&&jt(t,a,r),r.canActivateChecks.push(new Mt(i)),Dt(e,null,s.component?a?a.children:null:n,i,r)}(e,s[e.value.outlet],n,i.concat([e.value]),r),delete s[e.value.outlet]}),ie(s,(e,t)=>jt(e,n.getContext(t),r)),r}function jt(e,t,n){const i=Re(e),r=e.value;ie(i,(e,i)=>{jt(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new It(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}class Nt{}function Vt(e){return new l.a(t=>t.error(e))}class zt{constructor(e,t,n,i,r,s){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=s}recognize(){const e=_t(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary");if(null===t)return null;const n=new Ve([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Ie(n,t),r=new ze(this.url,i);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(e){const t=e.value,n=Ne(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=[];for(const r of Object.keys(t.children)){const i=t.children[r],s=bt(e,r),o=this.processSegmentGroup(s,i,r);if(null===o)return null;n.push(...o)}const i=Bt(n);return i.sort((e,t)=>"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)),i}processSegment(e,t,n,i){for(const r of e){const e=this.processSegmentAgainstRoute(r,t,n,i);if(null!==e)return e}return Ct(t,n,i)?[]:null}processSegmentAgainstRoute(e,t,n,i){if(e.redirectTo||!kt(e,t,n,i))return null;let r,s=[],o=[];if("**"===e.path){const i=n.length>0?ne(n).parameters:{};r=new Ve(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ht(e),mt(e),e.component,e,qt(t),Ut(t)+n.length,Wt(e))}else{const i=vt(t,e,n);if(!i.matched)return null;
1s=i.consumedSegments,o=n.slice(i.lastChild),r=new Ve(s,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ht(e),mt(e),e.component,e,qt(t),Ut(t)+s.length,Wt(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:c,slicedSegments:l}=_t(t,s,o,a.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution);if(0===l.length&&c.hasChildren()){const e=this.processChildren(a,c);return null===e?null:[new Ie(r,e)]}if(0===a.length&&0===l.length)return[new Ie(r,[])];const u=mt(e)===i,d=this.processSegment(a,c,l,u?"primary":i);return null===d?null:[new Ie(r,d)]}}function Ft(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function Bt(e){const t=[],n=new Set;for(const i of e){if(!Ft(i)){t.push(i);continue}const e=t.find(e=>i.value.routeConfig===e.value.routeConfig);void 0!==e?(e.children.push(...i.children),n.add(e)):t.push(i)}for(const i of n){const e=Bt(i.children);t.push(new Ie(i.value,e))}return t.filter(e=>!n.has(e))}function qt(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function Ut(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Ht(e){return e.data||{}}function Wt(e){return e.resolve||{}}function Gt(e){return Object(b.a)(t=>{const n=e(t);return n?Object(s.a)(n).pipe(Object(m.a)(()=>t)):Object(o.a)(t)})}class Yt{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}class $t extends Yt{}const Zt=new r.t("ROUTES");class Qt{constructor(e,t,n,i){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=i}load(e,t){if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);const n=this.loadModuleFactory(t.loadChildren).pipe(Object(m.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const i=n.create(e);return new ot(te(i.injector.get(Zt,void 0,r.s.Self|r.s.Optional)).map(gt),i)}),Object(k.a)(e=>{throw t._loader$=void 0,e}));return t._loader$=new f.a(n,()=>new g.a).pipe(Object(A.a)()),t._loader$}loadModuleFactory(e){return"string"==typeof e?Object(s.a)(this.loader.load(e)):re(e()).pipe(Object(P.b)(e=>e instanceof r.y?Object(o.a)(e):Object(s.a)(this.compiler.compileModuleAsync(e))))}}class Xt{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Kt,this.attachRef=null}}class Kt{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Xt,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class Jt{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function en(e){throw e}function tn(e,t,n){return t.parse("/")}function nn(e,t){return Object(o.a)(null)}let rn=(()=>{class e{constructor(e,t,n,i,s,o,c,l){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=i,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new g.a,this.errorHandler=en,this.malformedUriErrorHandler=tn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:nn,afterPreactivation:nn},this.urlHandlingStrategy=new Jt,this.routeReuseStrategy=new $t,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=s.get(r.A),this.console=s.get(r.db);const u=s.get(r.C);this.isNgZoneEnabled=u instanceof r.C&&r.C.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new le(new ue([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Qt(o,c,e=>this.triggerEvent(new q(e)),e=>
1this.triggerEvent(new U(e))),this.routerState=De(this.currentUrlTree,this.rootComponentType),this.transitions=new a.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(e){const t=this.events;return e.pipe(Object(w.a)(e=>0!==e.id),Object(m.a)(e=>Object.assign(Object.assign({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),Object(b.a)(e=>{let n=!1,i=!1;return Object(o.a)(e).pipe(Object(O.a)(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(b.a)(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Object(o.a)(e).pipe(Object(b.a)(e=>{const n=this.transitions.getValue();return t.next(new R(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?p.a:Promise.resolve(e)}),(i=this.ngModule.injector,r=this.configLoader,s=this.urlSerializer,a=this.config,Object(b.a)(e=>function(e,t,n,i,r){return new At(e,t,n,i,r).apply()}(i,r,s,e.extractedUrl,a).pipe(Object(m.a)(t=>Object.assign(Object.assign({},e),{urlAfterRedirects:t}))))),Object(O.a)(e=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,t,n,i,r){return Object(P.b)(s=>function(e,t,n,i,r="emptyOnly",s="legacy"){try{const a=new zt(e,t,n,i,r,s).recognize();return null===a?Vt(new Nt):Object(o.a)(a)}catch(a){return Vt(a)}}(e,t,s.urlAfterRedirects,n(s.urlAfterRedirects),i,r).pipe(Object(m.a)(e=>Object.assign(Object.assign({},s),{targetSnapshot:e}))))}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(O.a)(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects);const n=new N(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));var i,r,s,a;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:r,restoredState:s,extras:a}=e,c=new R(n,this.serializeUrl(i),r,s);t.next(c);const l=De(i,this.rootComponentType).snapshot;return Object(o.a)(Object.assign(Object.assign({},e),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),p.a}),Gt(e=>{const{targetSnapshot:t,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),Object(O.a)(e=>{const t=new V(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),Object(m.a)(e=>Object.assign(Object.assign({},e),{guards:Rt(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return Object(P.b)(n=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:a,canDeactivateChecks:c}}=n;return 0===c.length&&0===a.length?Object(o.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return Object(s.a)(e).pipe(Object(P.b)(e=>function(e,t,n,i,r){const s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;
1if(!s||0===s.length)return Object(o.a)(!0);const a=s.map(s=>{const o=Lt(s,t,r);let a;if(function(e){return e&&at(e.canDeactivate)}(o))a=re(o.canDeactivate(e,t,n,i));else{if(!at(o))throw new Error("Invalid CanDeactivate guard");a=re(o(e,t,n,i))}return a.pipe(Object(T.a)())});return Object(o.a)(a).pipe(ut())}(e.component,e.route,n,t,i)),Object(T.a)(e=>!0!==e,!0))}(c,i,r,e).pipe(Object(P.b)(n=>n&&"boolean"==typeof n?function(e,t,n,i){return Object(s.a)(t).pipe(Object(C.a)(t=>Object(d.a)(function(e,t){return null!==e&&t&&t(new H(e)),Object(o.a)(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new G(e)),Object(o.a)(!0)}(t.route,i),function(e,t,n){const i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(e=>function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)).filter(e=>null!==e).map(t=>Object(h.a)(()=>{const r=t.guards.map(r=>{const s=Lt(r,t.node,n);let o;if(function(e){return e&&at(e.canActivateChild)}(s))o=re(s.canActivateChild(i,e));else{if(!at(s))throw new Error("Invalid CanActivateChild guard");o=re(s(i,e))}return o.pipe(Object(T.a)())});return Object(o.a)(r).pipe(ut())}));return Object(o.a)(r).pipe(ut())}(e,t.path,n),function(e,t,n){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return Object(o.a)(!0);const r=i.map(i=>Object(h.a)(()=>{const r=Lt(i,t,n);let s;if(function(e){return e&&at(e.canActivate)}(r))s=re(r.canActivate(t,e));else{if(!at(r))throw new Error("Invalid CanActivate guard");s=re(r(t,e))}return s.pipe(Object(T.a)())}));return Object(o.a)(r).pipe(ut())}(e,t.route,n))),Object(T.a)(e=>!0!==e,!0))}(i,a,e,t):Object(o.a)(n)),Object(m.a)(e=>Object.assign(Object.assign({},n),{guardsResult:e})))})}(this.ngModule.injector,e=>this.triggerEvent(e)),Object(O.a)(e=>{if(ct(e.guardsResult)){const t=X(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}const t=new z(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),Object(w.a)(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new D(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),Gt(e=>{if(e.guards.canActivateChecks.length)return Object(o.a)(e).pipe(Object(O.a)(e=>{const t=new F(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),Object(b.a)(e=>{let n=!1;return Object(o.a)(e).pipe((i=this.paramsInheritanceStrategy,r=this.ngModule.injector,Object(P.b)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:n}}=e;if(!n.length)return Object(o.a)(e);let a=0;return Object(s.a)(n).pipe(Object(C.a)(e=>function(e,t,n,i){return function(e,t,n,i){const r=Object.keys(e);if(0===r.length)return Object(o.a)({});const a={};return Object(s.a)(r).pipe(Object(P.b)(r=>function(e,t,n,i){const r=Lt(e,t,i);return re(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe(Object(O.a)(e=>{a[r]=e}))),Object(x.a)(1),Object(P.b)(()=>Object.keys(a).length===r.length?Object(o.a)(a):p.a))}(e._resolve,e,t,i).pipe(Object(m.a)(t=>(e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),Ne(e,n).resolve),null)))}(e.route,t,i,r)),Object(O.a)(()=>a++),Object(x.a)(1),Object(P.b)(t=>a===n.length?Object(o.a)(e):p.a))})),Object(O.a)({next:()=>n=!0,complete:()=>{if(!n){const n=new D(e.id,this.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");t.next(n),e.resolve(!1)}}}));var i,r}),Object(O.a)(e=>{const t=new B(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),Gt(e=>{const{targetSnapshot:t,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),Object(m.a)(e=>{const t=function(e,t,n){const i=He(e,t._root,n?n._root:void 0);return new Le(i,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:t})}),Object(O.a)(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),(r=this.rootContexts,a=this.routeReuseStrategy,c=e=>this.triggerEvent(e),Object(m.a)(e=>(new rt(a,e.targetRouterState,e.currentRouterState,c).activate(r),e))),Object(O.a)({next(){
1n=!0},complete(){n=!0}}),Object(E.a)(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new D(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null}),Object(k.a)(n=>{if(i=!0,(r=n)&&r.ngNavigationCancelingError){const i=ct(n.url);i||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const r=new D(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(r),i?setTimeout(()=>{const t=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(t,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const i=new j(e.id,this.serializeUrl(e.extractedUrl),n);t.next(i);try{e.resolve(this.errorHandler(n))}catch(s){e.reject(s)}}var r;return p.a}));var r,a,c}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t=this.extractLocationChangeInfoFromEvent(e);this.shouldScheduleNavigation(this.lastLocationChangeInfo,t)&&setTimeout(()=>{const{source:e,state:n,urlTree:i}=t,r={replaceUrl:!0};if(n){const e=Object.assign({},n);delete e.navigationId,0!==Object.keys(e).length&&(r.state=e)}this.scheduleNavigation(i,e,n,r)},0),this.lastLocationChangeInfo=t}))}extractLocationChangeInfoFromEvent(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(e,t){if(!e)return!0;const n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){ht(e),this.config=e.map(gt),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:n,queryParams:i,fragment:r,queryParamsHandling:s,preserveFragment:o}=t,a=n||this.routerState.root,c=o?this.currentUrlTree.fragment:r;let l=null;switch(s){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}return null!==l&&(l=this.removeEmptyProps(l)),function(e,t,n,i,r){if(0===n.length)return $e(t.root,t.root,t,i,r);const s=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Qe(!0,0,e);let t=0,n=!1;const i=e.reduce((e,i,r)=>{if("object"==typeof i&&null!=i){if(i.outlets){const t={};return ie(i.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(i.segmentPath)return[...e,i.segmentPath]}return"string"!=typeof i?[...e,i]:0===r?(i.split("/").forEach((i,r)=>{0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[...e,i]},[]);return new Qe(n,t,i)}(n);if(s.toRoot())return $e(t.root,new ue([],{}),t,i,r);const o=function(e,t,n){if(e.isAbsolute)return new Xe(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){const e=n.snapshot._urlSegment;return new Xe(e,e===t.root,0)}const i=Ge(e.commands[0])?0:1;return function(e,t,n){let i=e,r=t,s=n;for(;s>r;){if(s-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new Xe(i,!1,r-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(s,t,e),a=o.processChildren?Je(o.segmentGroup,o.index,s.commands):Ke(o.segmentGroup,o.index,s.commands);return $e(o.segmentGroup,a,t,i,r)}(a,this.currentUrlTree,e,l,c)}navigateByUrl(e,t={skipLocationChange:!1}){const n=ct(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t<e.length;t++){const n=e[t];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${t}`)}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}isActive(e,t){if(ct(e))return se(this.currentUrlTree,e,t);const n=this.parseUrl(e);return se(this.currentUrlTree,n,t)}removeEmptyProps(e){return Object.keys(e).reduce((t,n)=>{const i=e[n];return null!=i&&(t[n]=i),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new L(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,i,r){if(this.disposed)return Promise.resolve(!1);const s=this.getTransition(),o="imperative"!==t&&"imperative"===(null==s?void 0:s.source),a=(this.lastSuccessfulId===s.id||this.currentNavigation?s.rawUrl:s.urlAfterRedirects).toString()===e.toString();if(o&&a)return Promise.resolve(!0);let c,l,u;r?(c=r.resolve,l=r.reject,u=r.promise):u=new Promise((e,t)=>
1{c=e,l=t});const d=++this.navigationId;return this.setTransition({id:d,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:i,resolve:c,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,i){const r=this.urlSerializer.serialize(e);i=i||{},this.location.isCurrentPathEqualTo(r)||t?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return e.\u0275fac=function(t){return new(t||e)(r.gc(r.S),r.gc(pe),r.gc(Kt),r.gc(i.j),r.gc(r.u),r.gc(r.z),r.gc(r.i),r.gc(void 0))},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})(),sn=(()=>{class e{constructor(e,t,n,i,r){this.router=e,this.route=t,this.commands=[],this.onChanges=new g.a,null==n&&i.setAttribute(r.nativeElement,"tabindex","0")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}onClick(){const e={skipLocationChange:an(this.skipLocationChange),replaceUrl:an(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:an(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(r.Tb(rn),r.Tb(je),r.hc("tabindex"),r.Tb(r.H),r.Tb(r.l))},e.\u0275dir=r.Ob({type:e,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&r.jc("click",function(){return t.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.Eb]}),e})(),on=(()=>{class e{constructor(e,t,n){this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.onChanges=new g.a,this.subscription=e.events.subscribe(e=>{e instanceof L&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,n,i,r){if(0!==e||t||n||i||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:an(this.skipLocationChange),replaceUrl:an(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:an(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(r.Tb(rn),r.Tb(je),r.Tb(i.k))},e.\u0275dir=r.Ob({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&r.jc("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(r.cc("href",t.href,r.Jc),r.Hb("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.Eb]}),e})();function an(e){return""===e||!!e}let cn=(()=>{class e{constructor(e,t,n,i,r,s){this.router=e,this.element=t,this.renderer=n,this.cdr=i,this.link=r,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=e.events.subscribe(e=>{e instanceof L&&this.update()})}ngAfterContentInit(){Object(o.a)(this.links.changes,this.linksWithHrefs.changes,Object(o.a)(null)).pipe(Object(M.a)()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var e;null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe();const t=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(e=>!!e).map(e=>e.onChanges);this.linkInputChangesSubscription=Object(s.a)(t).pipe(Object(M.a)()).subscribe(e=>{this.isActive!==this.isLinkActive(this.router)(e)&&this.update()})}set routerLinkActive(e){const t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter(e=>!!e)}ngOnChanges(e){this.update()}ngOnDestroy(){var e;this.routerEventsSubscription.unsubscribe(),null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const e=this.hasActiveLinks();this.isActive!==e&&(this.isActive=e,this.cdr.markForCheck(),this.classes.forEac
1h(t=>{e?this.renderer.addClass(this.element.nativeElement,t):this.renderer.removeClass(this.element.nativeElement,t)}))})}isLinkActive(e){return t=>e.isActive(t.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}}return e.\u0275fac=function(t){return new(t||e)(r.Tb(rn),r.Tb(r.l),r.Tb(r.H),r.Tb(r.h),r.Tb(sn,8),r.Tb(on,8))},e.\u0275dir=r.Ob({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(e,t,n){if(1&e&&(r.Mb(n,sn,1),r.Mb(n,on,1)),2&e){let e;r.Ec(e=r.kc())&&(t.links=e),r.Ec(e=r.kc())&&(t.linksWithHrefs=e)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[r.Eb]}),e})(),ln=(()=>{class e{constructor(e,t,n,i,s){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.o,this.deactivateEvents=new r.o,this.name=i||"primary",e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new un(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)(r.Tb(Kt),r.Tb(r.U),r.Tb(r.j),r.hc("name"),r.Tb(r.h))},e.\u0275dir=r.Ob({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e})();class un{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===je?this.route:e===Kt?this.childContexts:this.parent.get(e,t)}}class dn{}class hn{preload(e,t){return Object(o.a)(null)}}let pn=(()=>{class e{constructor(e,t,n,i,r){this.router=e,this.injector=i,this.preloadingStrategy=r,this.loader=new Qt(t,n,t=>e.triggerEvent(new q(t)),t=>e.triggerEvent(new U(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(w.a)(e=>e instanceof L),Object(C.a)(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(r.A);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const i of t)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const e=i._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(e,i)):i.children&&n.push(this.processRoutes(e,i.children));return Object(s.a)(n).pipe(Object(M.a)(),Object(m.a)(e=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>(t._loadedConfig?Object(o.a)(t._loadedConfig):this.loader.load(e.injector,t)).pipe(Object(P.b)(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}return e.\u0275fac=function(t){return new(t||e)(r.gc(rn),r.gc(r.z),r.gc(r.i),r.gc(r.u),r.gc(dn))},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})(),fn=(()=>{class e{constructor(e,t,n={}){this.router=e,this.viewportScroller=t,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anch
1orScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof R?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof L&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof $&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new $(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(r.gc(rn),r.gc(i.x),r.gc(void 0))},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})();const gn=new r.t("ROUTER_CONFIGURATION"),mn=new r.t("ROUTER_FORROOT_GUARD"),bn=[i.j,{provide:pe,useClass:fe},{provide:rn,useFactory:function(e,t,n,r,s,o,a,c={},l,u){const d=new rn(null,e,t,n,r,s,o,te(a));if(l&&(d.urlHandlingStrategy=l),u&&(d.routeReuseStrategy=u),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(c,d),c.enableTracing){const e=Object(i.J)();d.events.subscribe(t=>{e.logGroup(`Router Event: ${t.constructor.name}`),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return d},deps:[pe,Kt,i.j,r.u,r.z,r.i,Zt,gn,[class{},new r.D],[class{},new r.D]]},Kt,{provide:je,useFactory:function(e){return e.routerState.root},deps:[rn]},{provide:r.z,useClass:r.P},pn,hn,class{preload(e,t){return t().pipe(Object(k.a)(()=>Object(o.a)(null)))}},{provide:gn,useValue:{enableTracing:!1}}];function yn(){return new r.B("Router",rn)}let vn=(()=>{class e{constructor(e,t){}static forRoot(t,n){return{ngModule:e,providers:[bn,Cn(t),{provide:mn,useFactory:kn,deps:[[rn,new r.D,new r.O]]},{provide:gn,useValue:n||{}},{provide:i.k,useFactory:wn,deps:[i.v,[new r.r(i.a),new r.D],gn]},{provide:fn,useFactory:_n,deps:[rn,i.x,gn]},{provide:dn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:hn},{provide:r.B,multi:!0,useFactory:yn},[Sn,{provide:r.d,multi:!0,useFactory:Tn,deps:[Sn]},{provide:On,useFactory:Pn,deps:[Sn]},{provide:r.b,multi:!0,useExisting:On}]]}}static forChild(t){return{ngModule:e,providers:[Cn(t)]}}}return e.\u0275fac=function(t){return new(t||e)(r.gc(mn,8),r.gc(rn,8))},e.\u0275mod=r.Rb({type:e}),e.\u0275inj=r.Qb({}),e})();function _n(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new fn(e,t,n)}function wn(e,t,n={}){return n.useHash?new i.h(e,t):new i.t(e,t)}function kn(e){return"guarded"}function Cn(e){return[{provide:r.a,multi:!0,useValue:e},{provide:Zt,multi:!0,useValue:e}]}let Sn=(()=>{class e{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new g.a}appInitializer(){return this.injector.get(i.i,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(rn),i=this.injector.get(gn);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),e(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?Object(o.a)(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()):e(!0),t})}bootstrapListener(e){const t=this.injector.get(gn),n=this.injector.get(pn),i=this.injector.get(fn),s=this.injector.get(rn),o=this.injector.get(r.g);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||s.initialNavigation(),n.setUpPreloading(),i.init(),s.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return e.\u0275fac=function(t){return new(t||e)(r.gc(r.u))},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})();function Tn(e){return e.appInitializer.bind(e)}function Pn(e){return e.bootstrapListener.bind(e)}
1const On=new r.t("Router Initializer")},"u/Db":function(e,t,n){const i=n("J6Nv"),r=n("BCVQ");t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!i.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return r.testNumeric(e)?t.NUMERIC:r.testAlphanumeric(e)?t.ALPHANUMERIC:r.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(i){return n}}},uPX2:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("fXoL"),r=n("ofXK");function s(e,t){if(1&e&&(i.Zb(0,"span",6),i.Qc(1),i.Yb()),2&e){const e=i.nc();i.Lb("active",e.isSecondValue()),i.Gb(1),i.Sc(" ",e.secondValueLabel," ")}}let o=(()=>{class e{constructor(){this.valueChange=new i.o}isFirstValue(){return this.value===this.firstValue}isSecondValue(){return this.value===this.secondValue}currentValueLabel(){return this.isFirstValue()?this.firstValueLabel:this.secondValueLabel}changeValue(){this.value=this.isFirstValue()?this.secondValue:this.firstValue,this.valueChange.emit(this.value)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Nb({type:e,selectors:[["ngx-switcher"]],inputs:{firstValue:"firstValue",secondValue:"secondValue",firstValueLabel:"firstValueLabel",secondValueLabel:"secondValueLabel",vertical:"vertical",value:"value"},outputs:{valueChange:"valueChange"},decls:7,vars:7,consts:[[1,"switch-label"],[1,"first"],[1,"switch"],["type","checkbox",3,"checked","change"],[1,"slider"],["class","second",3,"active",4,"ngIf"],[1,"second"]],template:function(e,t){1&e&&(i.Zb(0,"label",0),i.Zb(1,"span",1),i.Qc(2),i.Yb(),i.Zb(3,"div",2),i.Zb(4,"input",3),i.jc("change",function(){return t.changeValue()}),i.Yb(),i.Ub(5,"span",4),i.Yb(),i.Oc(6,s,2,3,"span",5),i.Yb()),2&e&&(i.Lb("vertical",t.vertical),i.Gb(1),i.Lb("active",t.vertical||t.isFirstValue()),i.Gb(1),i.Sc(" ",t.vertical?t.currentValueLabel():t.firstValueLabel," "),i.Gb(2),i.tc("checked",t.isSecondValue()),i.Gb(2),i.tc("ngIf",!t.vertical))},directives:[r.n],styles:['.nb-theme-default [_nghost-%COMP%] .switch-label[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;margin:0}.nb-theme-default [_nghost-%COMP%] .switch-label.vertical[_ngcontent-%COMP%]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.nb-theme-default [_nghost-%COMP%] .switch-label.vertical[_ngcontent-%COMP%] .first[_ngcontent-%COMP%], .nb-theme-default [_nghost-%COMP%] .switch-label.vertical[_ngcontent-%COMP%] .second[_ngcontent-%COMP%]{padding:0}.nb-theme-default [_nghost-%COMP%] .switch-label.vertical[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%]{margin-top:.5em}.nb-theme-default [_nghost-%COMP%] .switch-label[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:1.125rem;-webkit-transition:opacity .3s ease;transition:opacity .3s ease}[dir=ltr] .nb-theme-default [_nghost-%COMP%] .switch-label[_ngcontent-%COMP%] > span.first[_ngcontent-%COMP%]{padding-right:10px}[dir=rtl] .nb-theme-default [_nghost-%COMP%] .switch-label[_ngcontent-%COMP%] > span.first[_ngcontent-%COMP%]{padding-left:10px}[dir=ltr] .nb-theme-default [_nghost-%COMP%] .switch-label[_ngcontent-%COMP%] > span.second[_ngcontent-%COMP%]{padding-left:10px}[dir=rtl] .nb-theme-default [_nghost-%COMP%] .switch-label[_ngcontent-%COMP%] > span.second[_ngcontent-%COMP%]{padding-right:10px}.nb-theme-default [_nghost-%COMP%] .switch-label[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:active{opacity:.78}.nb-theme-default [_nghost-%COMP%] .switch[_ngcontent-%COMP%]{position:relative;display:inline-block;width:3rem;height:1.5rem;margin:0}.nb-theme-default [_nghost-%COMP%] .switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}[dir=ltr] .nb-theme-default [_nghost-%COMP%] .switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:before{-webkit-transform:translateX(1.5rem);transform:translateX(1.5rem)}[dir=rtl] .nb-theme-default [_nghost-%COMP%] .switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:before{-webkit-transform:translateX(-1.5rem);transform:translateX(-1.5rem)}.nb-theme-default [_nghost-%COMP%] .switch[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:1.75rem;background-color:rgba(0,0,0,.1)}.nb-theme-default [_nghost-%COMP%] .switch[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:before{position:absolute;content:"";height:1.5rem;width:1.5rem;border-radius:50%;-webkit-transition:.2s;transition:.2s;background-color:#00b887}@media (max-width:399.98px){.nb-theme-default [_nghost-%COMP%]{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}}']}),e})()},uST9:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiEvent"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiEvent",plural:"SimiEvents",path:"SimiEvents",idName:"id",properties:{ecm:{name:"ecm",type:"any"},payment_details:{name:"payment_details",type:"string"},payment_data:{name:"payment_data",type:"any"},program:{name:"program",type:"string"},sezione_regionale:{name:"sezione_regionale",type:"string",default:"null"},fad:{name:"fad",type:"number"},webinar:{name:"webinar",type:"any"},quality_surveyId:{name:"quality_surveyId",type:"any"},ecm_surveyId:{name:"ecm_surveyId",type:"any"},examId:{name:"examId",type:"any"},days:{name:"days",type:"Array<any>"},demo:{name:"demo",type:"boolean"},sponsorIds:{name:"sponsorIds",type:"Array<any>",default:[]},header:{name:"header",type:"any"},logbookId:{name:"logbookId",type:"string"},progress_mode:{name:"progress_mode",type:"number"},name:{name:"name",type:"string"},edition:{name:"edition",type:"number"},type:{name:"type",type:"string"},date_start:{name:"date_start",type:"Date"},date_end:{name:"date_end",type:"Date"},sede:{name:"sede",type:"string"},address:{name:"address",type:"any"},description:{name:"description",type:"string"},picture:{name:"picture",type:"any"},status:{name:"status",type:"string",default:"pending"},tags:{name:"tags",type:"Array<any>"},subscriptions_end:{name:"subscriptions_end",type:"Date"},subscriptions_max:{name:"subscriptions_max",type:"number"},subscriptions_count:{name:"subscriptions_count",type:"number"},access_level:{name:"access_level",type:"number",default:0},public_name:{name:"public_name",type:"string"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{sponsors:{name:"sponsors",type:"SimiSponsor[]",model:"SimiSponsor",relationType:"referencesMany",keyFrom:"sponsorIds",keyTo:"id"},settings:{name:"settings",type:"any",model:"",relationType:"hasOne",keyFrom:"id",keyTo:"eventId"},links:{name:"links",type:"any[]",model:"",relationType:"hasMany",keyFrom:"id",keyTo:"eventId"},exam:{name:"exam",type:"SimiEventExam",model:"SimiEventExam",relationType:"belongsTo",keyFrom:"examId",keyTo:"id"},quality_survey:{name:"quality_survey",type:"SimiEventSurvey",model:"SimiEventSurvey",relationType:"belongsTo",keyFrom:"quality_surveyId",keyTo:"id"},ecm_survey:{name:"ecm_survey",type:"SimiEventSurvey",model:"SimiEventSurvey",relationType:"belongsTo",keyFrom:"ecm_surveyId",keyTo:"id"},roles:{name:"roles",type:"SimiEventRole[]",model:"SimiEventRole",relationType:"hasMany",keyFrom:"id",keyTo:"eventId"},threads:{name:"threads",type:"SimiEventThread[]",model:"SimiEventThread",relationType:"hasMany",keyFrom:"id",keyTo:"eventId"}}}}}},uca9:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"CongressReview"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"CongressReview",plural:"CongressReviews",path:"CongressReviews",idName:"id",properties:{assignmentId:{name:"assignmentId",type:"any"},congressId:{name:"congressId",type:"any"},profileId:{name:"profileId",type:"any"},submissionId:{name:"submissionId",type:"any"},status:{name:"status",type:"string",default:"pending"},scores:{name:"scores",type:"Array<any>"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{congress:{name:"congress",type:"Congress",model:"Congress",relationType:"belongsTo",keyFrom:"congressId",keyTo:"id"},profile:{name:"profile",type:"CongressProfile",model:"CongressProfile",relationType:"belongsTo",keyFrom:"profileId",keyTo:"id"},submission:{name:"submission",type:"CongressSubmission",model:"CongressSubmission",relationType:"belongsTo",keyFrom:"submissionId",keyTo:"id"},assignment:{name:"assignment",type:"CongressReviewAssignment",model:"CongressReviewAssignment",relationType:"belongsTo",keyFrom:"assignmentId",keyTo:"id"}}}}}},vRX4:function(e,t,n){"use strict";function i(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.match(e.matchPattern);if(!i)return null;var r=i[0],s=t.match(e.parsePattern);if(!s)return null;var o=e.valueCallback?e.valueCallback(s[0]):s[0];o=n.valueCallback?n.valueCallback(o):o;var a=t.slice(r.length);return{value:o,rest:a}}}n.d(t,"a",function(){return i})},vTDv:function(e,t,n){"use strict";n.d(t,"a",function(){return v});var i=n("ofXK"),r=n("3Pt+"),s=n("1kSV"),o=(n("o8co"),n("aceb")),a=(n("KWzY"),n("fXoL")),c=n("5MUS");n("EaRH"),n("uPX2"),n("BoUZ"),n("IAMq"),n("E9fl");var l=n("VYMQ"),u=n("9vru");n("GYvr");var d=n("Zx8I"),h=n("RS3s"),p=n("ZOsW"),f=(n("rvCO"),n("tR1z")),g=n("zioG");n("F9a2");const m=[i.c,r.i,r.v],b=[o.v,o.X,o.n,o.w,o.q,o.U,o.zb,o.jb,o.ab,o.Mb,o.j,o.kb,o.pb,o.y,o.fb,o.z,s.j,o.tb,o.N,o.p,o.Kb,u.d,d.a,h.c,o.ib,p.b,o.L,f.a,g.b,o.mb,o.g,o.F,o.E,o.Fb],y=[...o.Cb.forRoot({name:"default"},[{name:"default",base:null,variables:{temperature:["#42db7d","#42db7d","#42db7d","#42db7d","#42db7d"],solar:{gradientLeft:"#42db7d",gradientRight:"#42db7d",shadowColor:"rgba(0, 0, 0, 0)",radius:["80%","90%"]},traffic:{colorBlack:"#000000",tooltipBg:"#ffffff",tooltipBorderColor:"#c0c8d1",tooltipExtraCss:"border-radius: 10px; padding: 4px 16px;",tooltipTextColor:"#2a2a2a",tooltipFontWeight:"bolder",lineBg:"#c0c8d1",lineShadowBlur:"1",itemColor:"#bcc3cc",itemBorderColor:"#bcc3cc",itemEmphasisBorderColor:"#42db7d",shadowLineDarkBg:"rgba(0, 0, 0, 0)",shadowLineShadow:"rgba(0, 0, 0, 0)",gradFrom:"#ebeef2",gradTo:"#ebeef2"},electricity:{tooltipBg:"#ffffff",tooltipLineColor:"rgba(0, 0, 0, 0)",tooltipLineWidth:"0",tooltipBorderColor:"#ebeef2",tooltipExtraCss:"border-radius: 10px; padding: 8px 24px;",tooltipTextColor:"#2a2a2a",tooltipFontWeight:"bolder",axisLineColor:"rgba(0, 0, 0, 0)",xAxisTextColor:"#2a2a2a",yAxisSplitLine:"#ebeef2",itemBorderColor:"#42db7d",lineStyle:"solid",lineWidth:"4",lineGradFrom:"#42db7d",lineGradTo:"#42db7d",lineShadow:"rgba(0, 0, 0, 0)",areaGradFrom:"rgba(235, 238, 242, 0.5)",areaGradTo:"rgba(235, 238, 242, 0.5)",shadowLineDarkBg:"rgba(0, 0, 0, 0)"},bubbleMap:{titleColor:"#484848",areaColor:"#dddddd",areaHoverColor:"#cccccc",areaBorderColor:"#ebeef2"},echarts:{bg:"#ffffff",textColor:"#484848",axisLineColor:"#bbbbbb",splitLineColor:"#ebeef2",itemHoverShadowColor:"rgba(0, 0, 0, 0.5)",tooltipBackgroun
1dColor:"#6a7985",areaOpacity:"0.7"},chartjs:{axisLineColor:"#cccccc",textColor:"#484848"},countryOrders:{countryBorderColor:"rgba(255, 255, 255, 1)",countryFillColor:"rgba(236, 242, 245, 1)",countryBorderWidth:"1",hoveredCountryBorderColor:"rgba(113, 158, 252, 1)",hoveredCountryFillColor:"rgba(199, 216, 247, 1)",hoveredCountryBorderWidth:"3",chartAxisLineColor:"rgba(0, 0, 0, 0)",chartAxisTextColor:"#b2bac2",chartAxisFontSize:"16",chartGradientTo:"rgba(113, 158, 252, 1)",chartGradientFrom:"rgba(113, 158, 252, 1)",chartAxisSplitLine:"#ebeef2",chartShadowLineColor:"#2f296b",chartLineBottomShadowColor:"rgba(113, 158, 252, 1)",chartInnerLineColor:"#eceff4"}}}]).providers,...o.pb.forRoot().providers,...o.ab.forRoot().providers,...o.Fb.forRoot().providers];let v=(()=>{class e{static forRoot(){return{ngModule:e,providers:[...y,l.a,c.a]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.Rb({type:e}),e.\u0275inj=a.Qb({imports:[[...m,...b],i.c,r.i,r.v,o.v,o.X,o.n,o.w,o.q,o.U,o.zb,o.jb,o.ab,o.Mb,o.j,o.kb,o.pb,o.y,o.fb,o.z,s.j,o.tb,o.N,o.p,o.Kb,u.d,d.a,h.c,o.ib,p.b,o.L,f.a,g.b,o.mb,o.g,o.F,o.E,o.Fb]}),e})()},vYFQ:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"Notification"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"Notification",plural:"Notifications",path:"Notifications",idName:"id",properties:{userId:{name:"userId",type:"any"},targetId:{name:"targetId",type:"any"},targetType:{name:"targetType",type:"string"},content:{name:"content",type:"string"},category:{name:"category",type:"string"},status:{name:"status",type:"number",default:0},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{target:{name:"target",type:"any",model:"",relationType:"belongsTo",keyFrom:"targetId",keyTo:"id"},user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},vgmO:function(e,t){var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e.exports=n},vkgz:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("7o/Q"),r=n("KqfI"),s=n("n6bG");function o(e,t,n){return function(i){return i.lift(new a(e,t,n))}}class a{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new c(e,this.nextOrObserver,this.error,this.complete))}}class c extends i.a{constructor(e,t,n,i){super(e),this._tapNext=r.a,this._tapError=r.a,this._tapComplete=r.a,this._tapError=n||r.a,this._tapComplete=i||r.a,Object(s.a)(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||r.a,this._tapError=t.error||r.a,this._tapComplete=t.complete||r.a)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}},vq9N:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i={};function r(){return i}},vvrf:function(e,t,n){const i=n("u/Db"),r=n("3X7Y"),s=n("nZSm"),o=n("AZa5"),a=n("Lzq4"),c=n("BCVQ"),l=n("e/Dd"),u=n("ELBg");function d(e){return unescape(encodeURIComponent(e)).length}function h(e,t,n){const i=[];let r;for(;null!==(r=e.exec(n));)i.push({data:r[0],index:r.index,mode:t,length:r[0].length});return i}function p(e){const t=h(c.NUMERIC,i.NUMERIC,e),n=h(c.ALPHANUMERIC,i.ALPHANUMERIC,e);let r,s;return l.isKanjiModeEnabled()?(r=h(c.BYTE,i.BYTE,e),s=h(c.KANJI,i.KANJI,e)):(r=h(c.BYTE_KANJI,i.BYTE,e),s=[]),t.concat(n,r,s).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function f(e,t){switch(t){case i.NUMERIC:return r.getBitsLength(e);case i.ALPHANUMERIC:return s.getBitsLength(e);case i.KANJI:return a.getBitsLength(e);case i.BYTE:return o.getBitsLength(e)}}function g(e,t){let n;const c=i.getBestModeForData(e);if(n=i.from(t,c),n!==i.BYTE&&n.bit<c.bit)throw new Error('"'+e+'" cannot be encoded with mode '+i.toString(n)+".\n Suggested mode is: "+i.toString(c));switch(n!==i.KANJI||l.isKanjiModeEnabled()||(n=i.BYTE),n){case i.NUMERIC:return new r(e);case i.ALPHANUMERIC:return new s(e);case i.KANJI:return new a(e);case i.BYTE:return new o(e)}}t.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(g(t,null)):t.data&&e.push(g(t.data,t.mode)),e},[])},t.fromString=function(e,n){const r=function(e,t){const n={}
1,r={start:{}};let s=["start"];for(let o=0;o<e.length;o++){const a=e[o],c=[];for(let e=0;e<a.length;e++){const l=a[e],u=""+o+e;c.push(u),n[u]={node:l,lastCount:0},r[u]={};for(let e=0;e<s.length;e++){const o=s[e];n[o]&&n[o].node.mode===l.mode?(r[o][u]=f(n[o].lastCount+l.length,l.mode)-f(n[o].lastCount,l.mode),n[o].lastCount+=l.length):(n[o]&&(n[o].lastCount=l.length),r[o][u]=f(l.length,l.mode)+4+i.getCharCountIndicator(l.mode,t))}}s=c}for(let i=0;i<s.length;i++)r[s[i]].end=0;return{map:r,table:n}}(function(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];switch(r.mode){case i.NUMERIC:t.push([r,{data:r.data,mode:i.ALPHANUMERIC,length:r.length},{data:r.data,mode:i.BYTE,length:r.length}]);break;case i.ALPHANUMERIC:t.push([r,{data:r.data,mode:i.BYTE,length:r.length}]);break;case i.KANJI:t.push([r,{data:r.data,mode:i.BYTE,length:d(r.data)}]);break;case i.BYTE:t.push([{data:r.data,mode:i.BYTE,length:d(r.data)}])}}return t}(p(e,l.isKanjiModeEnabled())),n),s=u.find_path(r.map,"start","end"),o=[];for(let t=1;t<s.length-1;t++)o.push(r.table[s[t]].node);return t.fromArray(o.reduce(function(e,t){const n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[]))},t.rawSplit=function(e){return t.fromArray(p(e,l.isKanjiModeEnabled()))}},w1tV:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("oB13"),r=n("x+ZX"),s=n("XNiG");function o(){return new s.a}function a(){return e=>Object(r.a)()(Object(i.a)(o)(e))}},wET7:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("z6cu"),r=n("fXoL");let s=(()=>{class e{handleError(e){return Object(i.a)(e.error.error||"Server error")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})()},"wO+i":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("lJxs");function r(...e){const t=e.length;if(0===t)throw new Error("list of properties cannot be empty.");return n=>Object(i.a)(function(e,t){return n=>{let i=n;for(let r=0;r<t;r++){const t=null!=i?i[e[r]]:void 0;if(void 0===t)return;i=t}return i}}(e,t))(n)}},"wQ+c":function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r}),n.d(t,"d",function(){return s}),n.d(t,"c",function(){return o}),n.d(t,"e",function(){return a});var i=function(e){return e.GetCurrentUser="[Auth] currentUser",e.GetCurrentUserSuccess="[Auth] currentUser Success",e.GetCurrentUserFail="[Auth] currentUser Fail",e.Logout="[Auth] Logout",e}({});class r{constructor(){this.type=i.GetCurrentUser}}class s{constructor(e){this.payload=e,this.type=i.GetCurrentUserSuccess}}class o{constructor(e){this.payload=e,this.type=i.GetCurrentUserFail}}class a{constructor(){this.type=i.Logout}}},wdnR:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SimiAdminEvent"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SimiAdminEvent",plural:"SimiAdminEvents",path:"SimiAdminEvents",idName:"id",properties:{type:{name:"type",type:"string"},userId:{name:"userId",type:"any"},data:{name:"data",type:"any"},notes:{name:"notes",type:"string"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},"wm+Y":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getSubscription(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbookSubscriptions/:id/subscription",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getEvent(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbookSubscriptions/:id/event",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getLogbook(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbookSubscriptions/:id/logbook",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}findByIdEntries(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbookSubscriptions/:id/entries/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdEntries(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbookSubscriptions/:id/entries/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdEntries(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbookSubscriptions/:id/entries/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbookSubscriptions/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getEntries(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbookSubscriptions/:id/entries",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createEntries(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbookSubscriptions/:id/entries";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteEntries(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbookSubscriptions/:id/entries";return this.request("DELETE",n,{id:e},{},{},null,t)}countEntries(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbookSubscriptions/:id/entries/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbookSubscriptions/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}submit(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbookSubscriptions/:id/submit";return this.request("POST",n,{id:e},{},{},null,t)}refreshEntriesCounts(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbookSubscriptions/:id/refresh";return this.request("POST",n,{id:e},{},{},null,t)}createManyEntries(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbookSubscriptions/:id/entries";return this.request("POST",i,{id:e},{},{data:t},null,n)}getModelName(){return"CourseLogbookSubscription"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},"wtl+":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}next(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Events/next",i={};return null!=e&&(i.query=e),this.request("GET",n,{},i,{},null,t)}past(e={},t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/Events/past",i={};return null!=e&&(i.query=e),this.request("GET",n,{},i,{},null,t)}getModelName(){return"Events"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},wwwC:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"SystemMessage"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"SystemMessage",plural:"SystemMessages",path:"SystemMessages",idName:"id",properties:{sourceId:{name:"sourceId",type:"string"},category:{name:"category",type:"string"},url:{name:"url",type:"string"},query:{name:"query",type:"any"},headers:{name:"headers",type:"any"},body:{name:"body",type:"any"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"}},relations:{source:{name:"source",type:"CoreApplication",model:"CoreApplication",relationType:"belongsTo",keyFrom:"sourceId",keyTo:"id"}}}}}},"wzM+":function(e,t,n){"use strict";function i(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var c,l=a[0],u=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(u)?s(u,function(e){return e.test(l)}):r(u,function(e){return e.test(l)});c=e.valueCallback?e.valueCallback(d):d,c=n.valueCallback?n.valueCallback(c):c;var h=t.slice(l.length);return{value:c,rest:h}}}function r(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function s(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}n.d(t,"a",function(){return i})},"x+ZX":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(){return function(e){return e.lift(new s(e))}}class s{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const i=new o(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}class o extends i.a{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;
1if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}},x2L9:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}findByIdPrincipals(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CoreRoles/:id/principals/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdPrincipals(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CoreRoles/:id/principals/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdPrincipals(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/CoreRoles/:id/principals/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}getPrincipals(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CoreRoles/:id/principals",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createPrincipals(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CoreRoles/:id/principals";return this.request("POST",i,{id:e},{},{data:t},null,n)}deletePrincipals(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CoreRoles/:id/principals";return this.request("DELETE",n,{id:e},{},{},null,t)}countPrincipals(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CoreRoles/:id/principals/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CoreRoles/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}createManyPrincipals(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CoreRoles/:id/principals";return this.request("POST",i,{id:e},{},{data:t},null,n)}getModelName(){return"CoreRole"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},x6sH:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"Score"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"Score",plural:"Scores",path:"Scores",idName:"id",properties:{id:{name:"id",type:"string"},name:{name:"name",type:"string"},description:{name:"description",type:"string"},category:{name:"category",type:"string"},usage:{name:"usage",type:"any"},text:{name:"text",type:"string"},params:{name:"params",type:"Array<any>"},outputs:{name:"outputs",type:"Array<any>"},unit:{name:"unit",type:"string"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{}}}}},xRy2:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CampaignRecords/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}getModelName(){return"CampaignRecord"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},"xS+Q":function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"CongressMaterial"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"CongressMaterial",plural:"CongressMaterials",path:"CongressMaterials",idName:"id",properties:{eventId:{name:"eventId",type:"any"},type:{name:"type",type:"string"},access_level:{name:"access_level",type:"number",default:0},name:{name:"name",type:"string"},description:{name:"description",type:"string"},section:{name:"section",type:"number"},order:{name:"order",type:"number"},resource:{name:"resource",type:"any"},target_level:{name:"target_level",type:"number"},video:{name:"video",type:"any"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{event:{name:"event",type:"Congress",model:"Congress",relationType:"belongsTo",keyFrom:"eventId",keyTo:"id"}}}}}},xbPD:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(e=null){return t=>t.lift(new s(e))}class s{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new o(e,this.defaultValue))}}class o extends i.a{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},xgIS:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("HDdC"),r=n("DH7j"),s=n("n6bG"),o=n("lJxs");function a(e,t,n,l){return Object(s.a)(n)&&(l=n,n=void 0),l?a(e,t,n).pipe(Object(o.a)(e=>Object(r.a)(e)?l(...e):l(e))):new i.a(i=>{c(e,t,function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},i,n)})}function c(e,t,n,i,r){let s;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){const i=e;e.addEventListener(t,n,r),s=()=>i.removeEventListener(t,n,r)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){const i=e;e.on(t,n),s=()=>i.off(t,n)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){const i=e;e.addListener(t,n),s=()=>i.removeListener(t,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let s=0,o=e.length;s<o;s++)c(e[s],t,n,i,r)}i.add(s)}},xutz:function(e,t,n){"use strict";(function(e){var i=n("XqMk"),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=r&&"object"==typeof e&&e&&!e.nodeType&&e,o=s&&s.exports===r&&i.a.process,a=function(){try{return s&&s.require&&s.require("util").t
1ypes||o&&o.binding&&o.binding("util")}catch(e){}}();t.a=a}).call(this,n("3UD+")(e))},yCtX:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("HDdC"),r=n("ngJS"),s=n("jZKg");function o(e,t){return t?Object(s.a)(e,t):new i.a(Object(r.a)(e))}},yKow:function(e,t,n){const i=n("e/Dd"),r=n("NPxG"),s=n("ekOh"),o=n("u/Db"),a=n("J6Nv"),c=i.getBCHDigit(7973);function l(e,t){return o.getCharCountIndicator(e,t)+4}function u(e,t){let n=0;return e.forEach(function(e){const i=l(e.mode,t);n+=i+e.getBitsLength()}),n}t.from=function(e,t){return a.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!a.isValid(e))throw new Error("Invalid QR Code version");void 0===n&&(n=o.BYTE);const s=8*(i.getSymbolTotalCodewords(e)-r.getTotalCodewordsCount(e,t));if(n===o.MIXED)return s;const c=s-l(n,e);switch(n){case o.NUMERIC:return Math.floor(c/10*3);case o.ALPHANUMERIC:return Math.floor(c/11*2);case o.KANJI:return Math.floor(c/13);default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,n){let i;const r=s.from(n,s.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let i=1;i<=40;i++)if(u(e,i)<=t.getCapacity(i,n,o.MIXED))return i}(e,r);if(0===e.length)return 1;i=e[0]}else i=e;return function(e,n,i){for(let r=1;r<=40;r++)if(n<=t.getCapacity(r,i,e))return r}(i.mode,i.getLength(),r)},t.getEncodedBits=function(e){if(!a.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;i.getBCHDigit(t)-c>=0;)t^=7973<<i.getBCHDigit(t)-c;return e<<12|t}},yYKy:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n("n2g9")},yrWc:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"Report"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"Report",plural:"Reports",path:"Reports",idName:"id",properties:{userId:{name:"userId",type:"any"},targetId:{name:"targetId",type:"any",default:null},targetType:{name:"targetType",type:"string"},title:{name:"title",type:"string"},content:{name:"content",type:"string"},category:{name:"category",type:"string"},severity:{name:"severity",type:"number",default:0},status:{name:"status",type:"number",default:0},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{target:{name:"target",type:"any",model:"",relationType:"belongsTo",keyFrom:"targetId",keyTo:"id"},user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},yuhW:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return s});var i=n("zx2A");const r={leading:!0,trailing:!1};function s(e,t=r){return n=>n.lift(new o(e,!!t.leading,!!t.trailing))}class o{constructor(e,t,n){this.durationSelector=e,this.leading=t,this.trailing=n}call(e,t){return t.subscribe(new a(e,this.durationSelector,this.leading,this.trailing))}}class a extends i.b{constructor(e,t,n,i){super(e),this.destination=e,this.durationSelector=t,this._leading=n,this._trailing=i,this._hasValue=!1}_next(e){this._hasValue=!0,this._sendValue=e,this._throttled||(this._leading?this.send():this.throttle(e))}send(){const{_hasValue:e,_sendValue:t}=this;e&&(this.destination.next(t),this.throttle(t)),this._hasValue=!1,this._sendValue=void 0}throttle(e){const t=this.tryDurationSelector(e);t&&this.add(this._throttled=Object(i.c)(t,new i.a(this)))}tryDurationSelector(e){try{return this.durationSelector(e)}catch(t){return this.destination.error(t),null}}throttlingDone(){const{_throttled:e,_trailing:t}=this;e&&e.unsubscribe(),this._throttled=void 0,t&&this.send()}notifyNext(){this.throttlingDone()}notifyComplete(){this.throttlingDone()}}},yvWd:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getEvent(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressRecordings/:id/event",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getSubscription(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressRecordings/:id/subscription",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}getUser(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressRecordings/:id/user",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressRecordings/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}uploadresource(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressRecordings/:id/upload/resource";return this.request("POST",n,{id:e},{},{},null,t)}downloadresource(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CongressRecordings/:id/resource/:filename";return this.request("GET",i,{id:e,filename:t},{},{},null,n)}getModelName(){return"CongressRecording"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},"z+Ro":function(e,t,n){"use strict";function i(e){return e&&"function"==typeof e.schedule}n.d(t,"a",function(){return i})},z20w:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"CongressRecording"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"CongressRecording",plural:"CongressRecordings",path:"CongressRecordings",idName:"id",properties:{eventId:{name:"eventId",type:"any"},userId:{name:"userId",type:"any"},subscriptionId:{name:"subscriptionId",type:"any"},type:{name:"type",type:"string"},title:{name:"title",type:"string"},description:{name:"description",type:"string"},resource:{name:"resource",type:"any"},access_level:{name:"access_level",type:"number",default:0},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{event:{name:"event",type:"Congress",model:"Congress",relationType:"belongsTo",keyFrom:"eventId",keyTo:"id"},subscription:{name:"subscription",type:"CongressSubscription",model:"CongressSubscription",relationType:"belongsTo",keyFrom:"subscriptionId",keyTo:"id"},user:{name:"user",type:"SimiUser",model:"SimiUser",relationType:"belongsTo",keyFrom:"userId",keyTo:"id"}}}}}},z6cu:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("HDdC");function r(e,t){return new i.a(t?n=>t.schedule(s,0,{error:e,subscriber:n}):t=>t.error(e))}function s({error:e,subscriber:t}){t.error(e)}},zHbR:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){Object.assign(this,e)}static getModelName(){return"CongressAccess"}static factory(e){return new i(e)}static getModelDefinition(){return{name:"CongressAccess",plural:"CongressAccesses",path:"CongressAccesses",
1idName:"id",properties:{congressId:{name:"congressId",type:"any"},profileId:{name:"profileId",type:"any"},status:{name:"status",type:"string",default:"pending"},id:{name:"id",type:"any"},created:{name:"created",type:"Date"},updated:{name:"updated",type:"Date"}},relations:{congress:{name:"congress",type:"Congress",model:"Congress",relationType:"belongsTo",keyFrom:"congressId",keyTo:"id"},profile:{name:"profile",type:"CongressProfile",model:"CongressProfile",relationType:"belongsTo",keyFrom:"profileId",keyTo:"id"},submissions:{name:"submissions",type:"CongressSubmission[]",model:"CongressSubmission",relationType:"hasMany",keyFrom:"id",keyTo:"accessId"}}}}}},zMQz:function(e,t,n){"use strict";function i(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,i=e.formats[n]||e.formats[e.defaultWidth];return i}}n.d(t,"a",function(){return i})},zP0r:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(e){return t=>t.lift(new s(e))}class s{constructor(e){this.total=e}call(e,t){return t.subscribe(new o(e,this.total))}}class o extends i.a{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}},zPie:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("tk/3"),r=n("Zvzv"),s=n("zktE"),o=n("Zfcy"),a=n("XdDp"),c=n("wET7"),l=n("fXoL");let u=(()=>{class e extends s.a{constructor(e,t,n,i){super(e,t,n,i),this.http=e,this.models=t,this.auth=n,this.errorHandler=i}getEvent(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id/event",r={id:e},s={};return null!=t&&(s.refresh=t),this.request("GET",i,r,s,{},null,n)}findByIdSubscriptions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id/subscriptions/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdSubscriptions(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id/subscriptions/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdSubscriptions(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id/subscriptions/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}findByIdEntries(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id/entries/:fk";return this.request("GET",i,{id:e,fk:t},{},{},null,n)}destroyByIdEntries(e,t,n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id/entries/:fk";return this.request("DELETE",i,{id:e,fk:t},{},{},null,n)}updateByIdEntries(e,t,n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id/entries/:fk";return this.request("PUT",r,{id:e,fk:t},{},{data:n},null,i)}getSubscriptions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id/subscriptions",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createSubscriptions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id/subscriptions";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteSubscriptions(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id/subscriptions";return this.request("DELETE",n,{id:e},{},{},null,t)}countSubscriptions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id/subscriptions/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}getEntries(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id/entries",r={id:e},s={};return null!=t&&(s.filter=t),this.request("GET",i,r,s,{},null,n)}createEntries(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id/entries";return this.request("POST",i,{id:e},{},{data:t},null,n)}deleteEntries(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id/entries";return this.request("DELETE",n,{id:e},{},{},null,t)}countEntries(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id/entries/count",r={id:e},s={};return null!=t&&(s.where=t),this.request("GET",i,r,s,{},null,n)}patchAttributes(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id";return this.request("PATCH",i,{id:e},{},{data:t},null,n)}activate(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id/activate";return this.request("POST",n,{id:e},{},{},null,t)}close(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id/close";return this.request("POST",n,{id:e},{},{},null,t)}checkValidity(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id/check-validity";return this.request("GET",n,{id:e},{},{},null,t)}linkEvent(e,t){let n=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id/event/link";return this.request("POST",n,{id:e},{},{},null,t)}verifiedSubscriptions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id/subscriptions/:fk/verified";return this.request("POST",i,{id:e,fk:t},{},{},null,n)}passedSubscriptions(e,t={},n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id/subscriptions/:fk/passed",s={id:e,fk:t},a={};return null!=n&&(a.data_acquisizione=n),this.request("POST",r,s,a,{},null,i)}failedSubscriptions(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id/subscriptions/:fk/failed";return this.request("POST",i,{id:e,fk:t},{},{},null,n)}reviewSubscriptions(e,t={},n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id/subscriptions/:fk/review",s={id:e,fk:t},a={};return null!=n&&(a.notes=n),this.request("POST",r,s,a,{},null,i)}passedEntries(e,t={},n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id/entries/:fk/passed";return this.request("POST",i,{id:e,fk:t},{},{},null,n)}failedEntries(e,t={},n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id/entries/:fk/failed",
1s={id:e,fk:t},a={};return null!=n&&(a.notes=n),this.request("POST",r,s,a,{},null,i)}reviewEntries(e,t={},n={},i){let r=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id/entries/:fk/review",s={id:e,fk:t},a={};return null!=n&&(a.notes=n),this.request("POST",r,s,a,{},null,i)}createManySubscriptions(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id/subscriptions";return this.request("POST",i,{id:e},{},{data:t},null,n)}createManyEntries(e,t=[],n){let i=o.a.getPath()+"/"+o.a.getApiVersion()+"/CourseLogbooks/:id/entries";return this.request("POST",i,{id:e},{},{data:t},null,n)}getModelName(){return"CourseLogbook"}}return e.\u0275fac=function(t){return new(t||e)(l.gc(i.b),l.gc(r.a),l.gc(a.a),l.gc(c.a,8))},e.\u0275prov=l.Pb({token:e,factory:e.\u0275fac}),e})()},zUnb:function(e,t,n){"use strict";n.r(t);var i=n("jhN1"),r=n("fXoL"),s=n("ofXK"),o=n("R0Ic");function a(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function c(e){switch(e.length){case 0:return new o.d;case 1:return e[0];default:return new o.l(e)}}function l(e,t,n,i,r={},s={}){const a=[],c=[];let l=-1,u=null;if(i.forEach(e=>{const n=e.offset,i=n==l,d=i&&u||{};Object.keys(e).forEach(n=>{let i=n,c=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,a),c){case o.m:c=r[n];break;case o.a:c=s[n];break;default:c=t.normalizeStyleValue(n,i,c,a)}d[i]=c}),i||c.push(d),u=d,l=n}),a.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${a.join(e)}`)}return c}function u(e,t,n,i){switch(t){case"start":e.onStart(()=>i(n&&d(n,"start",e)));break;case"done":e.onDone(()=>i(n&&d(n,"done",e)));break;case"destroy":e.onDestroy(()=>i(n&&d(n,"destroy",e)))}}function d(e,t,n){const i=n.totalTime,r=h(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),s=e._data;return null!=s&&(r._data=s),r}function h(e,t,n,i,r="",s=0,o){return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function p(e,t,n){let i;return e instanceof Map?(i=e.get(t),i||e.set(t,i=n)):(i=e[t],i||(i=e[t]=n)),i}function f(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let g=(e,t)=>!1,m=(e,t)=>!1,b=(e,t,n)=>[];const y=a();(y||"undefined"!=typeof Element)&&(g=(e,t)=>e.contains(t),m=(()=>{if(y||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):m}})(),b=(e,t,n)=>{let i=[];if(n){const n=e.querySelectorAll(t);for(let e=0;e<n.length;e++)i.push(n[e])}else{const n=e.querySelector(t);n&&i.push(n)}return i});let v=null,_=!1;function w(e){v||(v=("undefined"!=typeof document?document.body:null)||{},_=!!v.style&&"WebkitAppearance"in v.style);let t=!0;return v.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in v.style,!t&&_)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in v.style),t}const k=m,C=g,S=b;function T(e){const t={};return Object.keys(e).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]}),t}let P=(()=>{class e{validateStyleProperty(e){return w(e)}matchesElement(e,t){return k(e,t)}containsElement(e,t){return C(e,t)}query(e,t,n){return S(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,i,r,s=[],a){return new o.d(n,i)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})(),O=(()=>{class e{}return e.NOOP=new P,e})();function x(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:A(parseFloat(t[1]),t[2])}function A(e,t){return"s"===t?1e3*e:e}function E(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let i,r=0,s="";if("string"==typeof e){const n=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};i=A(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=A(parseFloat(o),n[4]));const a=n[5];a&&(s=a)}else i=e;if(!n){let n=!1,s=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(s,0,`The provided timing value "${e}
1" is invalid.`)}return{duration:i,delay:r,easing:s}}(e,t,n)}function M(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function I(e,t,n={}){if(t)for(let i in e)n[i]=e[i];else M(e,n);return n}function R(e,t,n){return n?t+":"+n+";":""}function L(e){let t="";for(let n=0;n<e.style.length;n++){const i=e.style.item(n);t+=R(0,i,e.style.getPropertyValue(i))}for(const n in e.style)e.style.hasOwnProperty(n)&&!n.startsWith("_")&&(t+=R(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[n]));e.setAttribute("style",t)}function D(e,t,n){e.style&&(Object.keys(t).forEach(i=>{const r=U(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[r]),e.style[r]=t[i]}),a()&&L(e))}function j(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=U(t);e.style[n]=""}),a()&&L(e))}function N(e){return Array.isArray(e)?1==e.length?e[0]:Object(o.g)(e):e}const V=new RegExp("{{\\s*(.+?)\\s*}}","g");function z(e){let t=[];if("string"==typeof e){let n;for(;n=V.exec(e);)t.push(n[1]);V.lastIndex=0}return t}function F(e,t,n){const i=e.toString(),r=i.replace(V,(e,i)=>{let r=t[i];return t.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),r=""),r.toString()});return r==i?e:r}function B(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const q=/-+([a-z0-9])/g;function U(e){return e.replace(q,(...e)=>e[1].toUpperCase())}function H(e,t){return 0===e||0===t}function W(e,t,n){const i=Object.keys(n);if(i.length&&t.length){let s=t[0],o=[];if(i.forEach(e=>{s.hasOwnProperty(e)||o.push(e),s[e]=n[e]}),o.length)for(var r=1;r<t.length;r++){let n=t[r];o.forEach(function(t){n[t]=Y(e,t)})}}return t}function G(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error(`Unable to resolve animation metadata node #${t.type}`)}}function Y(e,t){return window.getComputedStyle(e)[t]}function $(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(e=>function(e,t,n){if(":"==e[0]){const i=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(`The transition alias value "${e}" is not supported`),"* => *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}const i=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const r=i[1],s=i[2],o=i[3];t.push(X(r,o)),"<"!=s[0]||"*"==r&&"*"==o||t.push(X(o,r))}(e,n,t)):n.push(e),n}const Z=new Set(["true","1"]),Q=new Set(["false","0"]);function X(e,t){const n=Z.has(e)||Q.has(e),i=Z.has(t)||Q.has(t);return(r,s)=>{let o="*"==e||e==r,a="*"==t||t==s;return!o&&n&&"boolean"==typeof r&&(o=r?Z.has(e):Q.has(e)),!a&&i&&"boolean"==typeof s&&(a=s?Z.has(t):Q.has(t)),o&&a}}const K=new RegExp("s*:selfs*,?","g");function J(e,t,n){return new ee(e).build(t,n)}class ee{constructor(e){this._driver=e}build(e,t){const n=new te(t);return this._resetContextStyleTimingState(n),G(this,N(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,i=t.depCount=0;const r=[],s=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,i=n.name;i.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,r.push(this.visitState(n,t))}),n.name=i}else if(1==e.type){const r=this.visitTransition(e,t);n+=r.queryCount,i+=r.depCount,s.push(r)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:r,transitions:s,queryCount:n,depCount:i,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){const r=new Set,s=i||{};
1if(n.styles.forEach(e=>{if(ne(e)){const t=e;Object.keys(t).forEach(e=>{z(t[e]).forEach(e=>{s.hasOwnProperty(e)||r.add(e)})})}}),r.size){const n=B(r.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=G(this,N(e.animation),t);return{type:1,matchers:$(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:ie(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>G(this,e,t)),options:ie(e.options)}}visitGroup(e,t){const n=t.currentTime;let i=0;const r=e.steps.map(e=>{t.currentTime=n;const r=G(this,e,t);return i=Math.max(i,t.currentTime),r});return t.currentTime=i,{type:3,steps:r,options:ie(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return re(E(e,t).duration,0,"");const i=e;if(i.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=re(0,0,"");return e.dynamic=!0,e.strValue=i,e}return n=n||E(i,t),re(n.duration,n.delay,n.easing)}(e.timings,t.errors);let i;t.currentAnimateTimings=n;let r=e.styles?e.styles:Object(o.i)({});if(5==r.type)i=this.visitKeyframes(r,t);else{let r=e.styles,s=!1;if(!r){s=!0;const e={};n.easing&&(e.easing=n.easing),r=Object(o.i)(e)}t.currentTime+=n.duration+n.delay;const a=this.visitStyle(r,t);a.isEmptyStep=s,i=a}return t.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?e==o.a?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let i=!1,r=null;return n.forEach(e=>{if(ne(e)){const t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(let e in t)if(t[e].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let i=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const s=t.collectedStyles[t.currentQuerySelector],o=s[n];let a=!0;o&&(r!=i&&r>=o.startTime&&i<=o.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${i}ms"`),a=!1),r=o.startTime),a&&(s[n]={startTime:r,endTime:i}),t.options&&function(e,t,n){const i=t.params||{},r=z(e);r.length&&r.forEach(e=>{i.hasOwnProperty(e)||n.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(e[n],t.options,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const r=[];let s=!1,o=!1,a=0;const c=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let c=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(ne(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(ne(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),l=0;return null!=c&&(i++,l=n.offset=c),o=o||l<0||l>1,s=s||l<a,a=l,r.push(l),n});o&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),s&&t.errors.push("Please ensure that all keyframe offsets are in order");const l=e.steps.length;let u=0;i>0&&i<l?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(u=1/(l-1));const d=l-1,h=t.currentTime,p=t.currentAnimateTimings,f=p.duration;return c.forEach((e,i)=>{const s=u>0?i==d?1:u*i:r[i],o=s*f;
1t.currentTime=h+p.delay+o,p.duration=o,this._validateStyleAst(e,t),e.offset=s,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:G(this,N(e.animation),t),options:ie(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:ie(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:ie(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;const[r,s]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>":self"==e);return t&&(e=e.replace(K,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,e=>".ng-trigger-"+e.substr(1)).replace(/:animating/g,".ng-animating"),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,p(t.collectedStyles,t.currentQuerySelector,{});const o=G(this,N(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:o,originalSelector:e.selector,options:ie(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:E(e.timings,t.errors,!0);return{type:12,animation:G(this,N(e.animation),t),timings:n,options:null}}}class te{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function ne(e){return!Array.isArray(e)&&"object"==typeof e}function ie(e){var t;return e?(e=M(e)).params&&(e.params=(t=e.params)?M(t):null):e={},e}function re(e,t,n){return{duration:e,delay:t,easing:n}}function se(e,t,n,i,r,s,o=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class oe{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const ae=new RegExp(":enter","g"),ce=new RegExp(":leave","g");function le(e,t,n,i,r,s={},o={},a,c,l=[]){return(new ue).buildKeyframes(e,t,n,i,r,s,o,a,c,l)}class ue{buildKeyframes(e,t,n,i,r,s,o,a,c,l=[]){c=c||new oe;const u=new he(e,t,c,i,r,l,[]);u.options=a,u.currentTimeline.setStyles([s],null,u.errors,a),G(this,n,u);const d=u.timelines.filter(e=>e.containsAnimation());if(d.length&&Object.keys(o).length){const e=d[d.length-1];e.allowOnlyTimelineStyles()||e.setStyles([o],null,u.errors,a)}return d.length?d.map(e=>e.buildKeyframes()):[se(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,s=this._visitSubInstructions(n,i,i.options);r!=s&&t.transformIntoNewTimeline(s)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let i=t.currentTimeline.currentTime;const r=null!=n.duration?x(n.duration):null,s=null!=n.delay?x(n.delay):null;return 0!==r&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,r,s);i=Math.max(i,n.duration+n.delay)}),i}visitReference(e,t){t.updateOptions(e.options,!0),G(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let i=t;const r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),null!=r.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=de);const e=x(r.delay);i.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>G(this,e,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let i=t.currentTimeline.currentTime;const r=e.options&&e.options.delay?x(e.options.delay):0;e.steps.forEach(s=>{const o=t.createSubContext(e.options);r&&o.delayNextStep(r),G(this,s,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}
1),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return E(t.params?F(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());const r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,s=t.createSubContext().currentTimeline;s.easing=n.easing,e.styles.forEach(e=>{s.forwardTime((e.offset||0)*r),s.setStyles(e.styles,e.easing,t.errors,t.options),s.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(s),t.transformIntoNewTimeline(i+r),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?x(i.delay):0;r&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=de);let s=n;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{t.currentQueryIndex=i;const o=t.createSubContext(e.options,n);r&&o.delayNextStep(r),n===t.element&&(a=o.currentTimeline),G(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,o.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,i=t.currentTimeline,r=e.timings,s=Math.abs(r.duration),o=s*(t.currentQueryTotal-1);let a=s*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const c=t.currentTimeline;a&&c.delayNextStep(a);const l=c.currentTime;G(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}const de={};class he{constructor(e,t,n,i,r,s,o,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=s,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=de,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new pe(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let i=this.options;null!=n.duration&&(i.duration=x(n.duration)),null!=n.delay&&(i.delay=x(n.delay));const r=n.params;if(r){let e=i.params;e||(e=this.options.params={}),Object.keys(r).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=F(r[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const i=t||this.element,r=new he(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=de,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new fe(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,i,r,s){let o=[];if(i&&o.push(this.element),e.length>0){e=(e=e.replace(ae,"."+this._enterClassName)).replace(ce,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=n);0!==n&&(t=n<0?t.slice(t.length+n,t.length):t.slice(0,n)),o.push(...t)}return r||0!=o.length||s.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),o}}class pe{constructor(e,t,n,i){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pe
1ndingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new pe(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||o.a,this._currentKeyframe[e]=o.a}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,i){t&&(this._previousKeyframe.easing=t);const r=i&&i.params||{},s=function(e,t){const n={};let i;return e.forEach(e=>{"*"===e?(i=i||Object.keys(t),i.forEach(e=>{n[e]=o.a})):I(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(s).forEach(e=>{const t=F(s[e],r,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:o.a),this._updateStyle(e,t)})}
1applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],i=e._styleSummary[t];(!n||i.time>n.time)&&this._updateStyle(t,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((r,s)=>{const a=I(r,!0);Object.keys(a).forEach(n=>{const i=a[n];i==o.m?e.add(n):i==o.a&&t.add(n)}),n||(a.offset=s/this.duration),i.push(a)});const r=e.size?B(e.values()):[],s=t.size?B(t.values()):[];if(n){const e=i[0],t=M(e);e.offset=0,t.offset=1,i=[e,t]}return se(this.element,i,r,s,this.duration,this.startTime,this.easing,!1)}}class fe extends pe{constructor(e,t,n,i,r,s,o=!1){super(e,t,s.delay),this.element=t,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){const r=[],s=n+t,o=t/s,a=I(e[0],!1);a.offset=0,r.push(a);const c=I(e[0],!1);c.offset=ge(o),r.push(c);const l=e.length-1;for(let i=1;i<=l;i++){let o=I(e[i],!1);o.offset=ge((t+o.offset*n)/s),r.push(o)}n=s,t=0,i="",e=r}return se(this.element,e,this.preStyleProps,this.postStyleProps,n,t,i,!0)}}function ge(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class me{}class be extends me{normalizePropertyName(e,t){return U(e)}normalizeStyleValue(e,t,n,i){let r="";const s=n.toString().trim();if(ve[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&i.push(`Please provide a CSS unit value for ${e}:${n}`)}return s+r}}const ye=()=>function(e){const t={};return e.forEach(e=>t[e]=!0),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")),ve=ye();function _e(e,t,n,i,r,s,o,a,c,l,u,d,h){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:d,errors:h}}const we={};class ke{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,i){return function(e,t,n,i,r){return e.some(e=>e(t,n,i,r))}(this.ast.matchers,e,t,n,i)}buildStyles(e,t,n){const i=this._stateStyles["*"],r=this._stateStyles[e],s=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):s}build(e,t,n,i,r,s,o,a,c,l){const u=[],d=this.ast.options&&this.ast.options.params||we,h=this.buildStyles(n,o&&o.params||we,u),f=a&&a.params||we,g=this.buildStyles(i,f,u),m=new Set,b=new Map,y=new Map,v="void"===i,_={params:Object.assign(Object.assign({},d),f)},w=l?[]:le(e,t,this.ast.animation,r,s,h,g,_,c,u);let k=0;if(w.forEach(e=>{k=Math.max(e.duration+e.delay,k)}),u.length)return _e(t,this._triggerName,n,i,v,h,g,[],[],b,y,k,u);w.forEach(e=>{const n=e.element,i=p(b,n,{});e.preStyleProps.forEach(e=>i[e]=!0);const r=p(y,n,{});e.postStyleProps.forEach(e=>r[e]=!0),n!==t&&m.add(n)});const C=B(m.values());return _e(t,this._triggerName,n,i,v,h,g,w,C,b,y,k)}}class Ce{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},i=M(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(i[t]=n)}
1),this.styles.styles.forEach(e=>{if("string"!=typeof e){const r=e;Object.keys(r).forEach(e=>{let s=r[e];s.length>1&&(s=F(s,i,t)),n[e]=s})}}),n}}class Se{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new Ce(e.style,e.options&&e.options.params||{})}),Te(this.states,"true","1"),Te(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new ke(e,t,this.states))}),this.fallbackTransition=new ke(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,i){return this.transitionFactories.find(r=>r.match(e,t,n,i))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function Te(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const Pe=new oe;class Oe{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],i=J(this._driver,t,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[e]=i}_buildPlayer(e,t,n){const i=e.element,r=l(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const i=[],r=this._animations[e];let s;const a=new Map;if(r?(s=le(this._driver,t,r,"ng-enter","ng-leave",{},{},n,Pe,i),s.forEach(e=>{const t=p(a,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),s=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);a.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,o.a)})});const l=c(s.map(e=>{const t=a.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=l,l.onDestroy(()=>this.destroy(e)),this.players.push(l),l}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error(`Unable to find the timeline player referenced by ${e}`);return t}listen(e,t,n,i){const r=h(t,"","","");return u(this._getPlayer(e),n,r,i),()=>{}}command(e,t,n,i){if("register"==n)return void this.register(e,i[0]);if("create"==n)return void this.create(e,t,i[0]||{});const r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}}const xe=[],Ae={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ee={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Me{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=null!=(i=n?e.value:e)?i:null,n){const t=M(e);delete t.value,this.options=t}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const Ie=new Me("void");class Re{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"
1+e,Fe(t,this._hostClassName)}listen(e,t,n,i){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var r;const s=p(this._elementListeners,e,[]),o={name:t,phase:n,callback:i};s.push(o);const a=p(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Fe(e,"ng-trigger"),Fe(e,"ng-trigger-"+t),a[t]=Ie),()=>{this._engine.afterFlush(()=>{const e=s.indexOf(o);e>=0&&s.splice(e,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,i=!0){const r=this._getTrigger(t),s=new De(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(Fe(e,"ng-trigger"),Fe(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o={}));let a=o[t];const c=new Me(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),o[t]=c,a||(a=Ie),"void"!==c.value&&a.value===c.value){if(!function(e,t){const n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(let r=0;r<n.length;r++){const i=n[r];if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}(a.params,c.params)){const t=[],n=r.matchStyles(a.value,a.params,t),i=r.matchStyles(c.value,c.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush(()=>{j(e,n),D(e,i)})}return}const l=p(this._engine.playersByElement,e,[]);l.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let u=r.matchTransition(a.value,c.value,e,c.params),d=!1;if(!u){if(!i)return;u=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:u,fromState:a,toState:c,player:s,isFallbackTransition:d}),d||(Fe(e,"ng-animate-queued"),s.onStart(()=>{Be(e,"ng-animate-queued")})),s.onDone(()=>{let t=this.players.indexOf(s);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(s);e>=0&&n.splice(e,1)}}),this.players.push(s),l.push(s),s}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const n=this._engine.driver.query(e,".ng-trigger",!0);n.forEach(e=>{if(e.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(e=>this.clearElementCache(e)))}triggerLeaveAnimation(e,t,n,i){const r=this._engine.statesByElement.get(e);if(r){const s=[];if(Object.keys(r).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,"void",i);n&&s.push(n)}}),s.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&c(s).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){const i=new Set;t.forEach(t=>{const r=t.name;if(i.has(r))return;i.add(r);const s=this._triggers[r].fallbackTransition,o=n[r]||Ie,a=new Me("void"),c=new De(this.id,r,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:r,transition:s,fromState:o,toState:a,player:c,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)i=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)n.markElementAsRemoved(this.id,e,!1,t);else{const i=e.__ng_removed;i&&i!==Ae||(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){Fe(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const r=n.element,s=this._elementListeners.get(r);
1s&&s.forEach(t=>{if(t.name==n.triggerName){const i=h(r,n.triggerName,n.fromState.value,n.toState.value);i._data=e,u(n.player,t.phase,i,t.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,i=t.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(t=>t.element===e)||t,t}}class Le{constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new Re(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let i=0;i<e.length;i++){const r=n[e[i]].namespaceId;if(r){const e=this._fetchNamespace(r);e&&t.add(e)}}}return t}trigger(e,t,n,i){if(je(t)){const r=this._fetchNamespace(e);if(r)return r.trigger(t,n,i),!0}return!1}insertNode(e,t,n,i){if(!je(t))return;const r=t.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const i=this._fetchNamespace(e);i&&i.insertNode(t,n)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Fe(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Be(e,"ng-animate-disabled"))}removeNode(e,t,n,i){if(je(t)){const r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,i)}}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,i,r){return je(t)?this._fetchNamespace(e).listen(t,n,i,r):()=>{}}_buildInstruction(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,".ng-trigger",!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,".ng-animating",!0),t.forEach(e
1=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return c(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=Ae,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Fe(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{t=this._flushAnimations(n,e)}finally{for(let e=0;e<n.length;e++)n[e]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(e=>e()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?c(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${e.join("\n")}`)}_flushAnimations(e,t){const n=new oe,i=[],r=new Map,s=[],a=new Map,l=new Map,u=new Map,d=new Set;this.disabledNodes.forEach(e=>{d.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let n=0;n<t.length;n++)d.add(t[n])});const h=this.bodyNode,f=Array.from(this.statesByElement.keys()),g=ze(f,this.collectedEnterElements),m=new Map;let b=0;g.forEach((e,t)=>{const n="ng-enter"+b++;m.set(t,n),e.forEach(e=>Fe(e,n))});const y=[],v=new Set,_=new Set;for(let o=0;o<this.collectedLeaveElements.length;o++){const e=this.collectedLeaveElements[o],t=e.__ng_removed;t&&t.setForRemoval&&(y.push(e),v.add(e),t.hasAnimation?this.driver.query(e,".ng-star-inserted",!0).forEach(e=>v.add(e)):_.add(e))}const w=new Map,k=ze(f,Array.from(v));
1k.forEach((e,t)=>{const n="ng-leave"+b++;w.set(t,n),e.forEach(e=>Fe(e,n))}),e.push(()=>{g.forEach((e,t)=>{const n=m.get(t);e.forEach(e=>Be(e,n))}),k.forEach((e,t)=>{const n=w.get(t);e.forEach(e=>Be(e,n))}),y.forEach(e=>{this.processLeaveNode(e)})});const C=[],S=[];for(let o=this._namespaceList.length-1;o>=0;o--)this._namespaceList[o].drainQueuedTransitions(t).forEach(e=>{const t=e.player,r=e.element;if(C.push(t),this.collectedEnterElements.length){const e=r.__ng_removed;if(e&&e.setForMove)return void t.destroy()}const o=!h||!this.driver.containsElement(h,r),c=w.get(r),d=m.get(r),f=this._buildInstruction(e,n,d,c,o);if(f.errors&&f.errors.length)S.push(f);else{if(o)return t.onStart(()=>j(r,f.fromStyles)),t.onDestroy(()=>D(r,f.toStyles)),void i.push(t);if(e.isFallbackTransition)return t.onStart(()=>j(r,f.fromStyles)),t.onDestroy(()=>D(r,f.toStyles)),void i.push(t);f.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(r,f.timelines),s.push({instruction:f,player:t,element:r}),f.queriedElements.forEach(e=>p(a,e,[]).push(t)),f.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=l.get(t);e||l.set(t,e=new Set),n.forEach(t=>e.add(t))}}),f.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let i=u.get(t);i||u.set(t,i=new Set),n.forEach(e=>i.add(e))})}});if(S.length){const e=[];S.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),C.forEach(e=>e.destroy()),this.reportError(e)}const T=new Map,P=new Map;s.forEach(e=>{const t=e.element;n.has(t)&&(P.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,T))}
1),i.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{p(T,t,[]).push(e),e.destroy()})});const O=y.filter(e=>He(e,l,u)),x=new Map;Ve(x,this.driver,_,u,o.a).forEach(e=>{He(e,l,u)&&O.push(e)});const A=new Map;g.forEach((e,t)=>{Ve(A,this.driver,new Set(e),l,o.m)}),O.forEach(e=>{const t=x.get(e),n=A.get(e);x.set(e,Object.assign(Object.assign({},t),n))});const E=[],M=[],I={};s.forEach(e=>{const{element:t,player:s,instruction:o}=e;if(n.has(t)){if(d.has(t))return s.onDestroy(()=>D(t,o.toStyles)),s.disabled=!0,s.overrideTotalTime(o.totalTime),void i.push(s);let e=I;if(P.size>1){let n=t;const i=[];for(;n=n.parentNode;){const t=P.get(n);if(t){e=t;break}i.push(n)}i.forEach(t=>P.set(t,e))}const n=this._buildAnimation(s.namespaceId,o,T,r,A,x);if(s.setRealPlayer(n),e===I)E.push(s);else{const t=this.playersByElement.get(e);t&&t.length&&(s.parentPlayer=c(t)),i.push(s)}}else j(t,o.fromStyles),s.onDestroy(()=>D(t,o.toStyles)),M.push(s),d.has(t)&&i.push(s)}),M.forEach(e=>{const t=r.get(e.element);if(t&&t.length){const n=c(t);e.setRealPlayer(n)}}
1),i.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let o=0;o<y.length;o++){const e=y[o],t=e.__ng_removed;if(Be(e,"ng-leave"),t&&t.hasAnimation)continue;let n=[];if(a.size){let t=a.get(e);t&&t.length&&n.push(...t);let i=this.driver.query(e,".ng-animating",!0);for(let e=0;e<i.length;e++){let t=a.get(i[e]);t&&t.length&&n.push(...t)}}const i=n.filter(e=>!e.destroyed);i.length?qe(this,e,i):this.processLeaveNode(e)}return y.length=0,E.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),E}elementContainsData(e,t){let n=!1;const i=t.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,i,r){let s=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(s=t)}else{const t=this.playersByElement.get(e);if(t){const e=!r||"void"==r;t.forEach(t=>{t.queued||(e||t.triggerName==i)&&s.push(t)})}}return(n||i)&&(s=s.filter(e=>!(n&&n!=e.namespaceId||i&&i!=e.triggerName))),s}_beforeAnimationBuild(e,t,n){const i=t.element,r=t.isRemovalTransition?void 0:e,s=t.isRemovalTransition?void 0:t.triggerName;for(const o of t.timelines){const e=o.element,a=e!==i,c=p(n,e,[]);this._getPreviousPlayers(e,a,r,s,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),c.push(e)})}j(i,t.fromStyles)}_buildAnimation(e,t,n,i,r,s){const a=t.triggerName,u=t.element,d=[],h=new Set,f=new Set,g=t.timelines.map(t=>{const c=t.element;h.add(c);const p=c.__ng_removed;if(p&&p.removedBeforeQueried)return new o.d(t.duration,t.delay);const g=c!==u,m=function(e){const t=[];return Ue(e,t),t}((n.get(c)||xe).map(e=>e.getRealPlayer())).filter(e=>!!e.element&&e.element===c),b=r.get(c),y=s.get(c),v=l(0,this._normalizer,0,t.keyframes,b,y),_=this._buildPlayer(t,v,m);if(t.subTimeline&&i&&f.add(c),g){const t=new De(e,a,c);t.setRealPlayer(_),d.push(t)}return _});d.forEach(e=>{p(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>function(e,t,n){let i;if(e instanceof Map){if(i=e.get(t),i){if(i.length){const e=i.indexOf(n);i.splice(e,1)}0==i.length&&e.delete(t)}}else if(i=e[t],i){if(i.length){const e=i.indexOf(n);i.splice(e,1)}0==i.length&&delete e[t]}return i}(this.playersByQueriedElement,e.element,e))}),h.forEach(e=>Fe(e,"ng-animating"));const m=c(g);return m.onDestroy(()=>{h.forEach(e=>Be(e,"ng-animating")),D(u,t.toStyles)}),f.forEach(e=>{p(i,e,[]).push(m)}),m}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new o.d(e.duration,e.delay)}}class De{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new o.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEac
1h(t=>{this._queuedCallbacks[t].forEach(n=>u(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){p(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function je(e){return e&&1===e.nodeType}function Ne(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function Ve(e,t,n,i,r){const s=[];n.forEach(e=>s.push(Ne(e)));const o=[];i.forEach((n,i)=>{const s={};n.forEach(e=>{const n=s[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=Ee,o.push(i))}),e.set(i,s)});let a=0;return n.forEach(e=>Ne(e,s[a++])),o}function ze(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const i=new Set(t),r=new Map;function s(e){if(!e)return 1;let t=r.get(e);if(t)return t;const o=e.parentNode;return t=n.has(o)?o:i.has(o)?1:s(o),r.set(e,t),t}return t.forEach(e=>{const t=s(e);1!==t&&n.get(t).push(e)}),n}function Fe(e,t){if(e.classList)e.classList.add(t);else{let n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function Be(e,t){if(e.classList)e.classList.remove(t);else{let n=e.$$classes;n&&delete n[t]}}function qe(e,t,n){c(n).onDone(()=>e.processLeaveNode(t))}function Ue(e,t){for(let n=0;n<e.length;n++){const i=e[n];i instanceof o.l?Ue(i.players,t):t.push(i)}}function He(e,t,n){const i=n.get(e);if(!i)return!1;let r=t.get(e);return r?i.forEach(e=>r.add(e)):t.set(e,i),n.delete(e),!0}class We{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new Le(e,t,n),this._timelineEngine=new Oe(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,i,r){const s=e+"-"+i;let o=this._triggerCache[s];if(!o){const e=[],t=J(this._driver,r,e);if(e.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);o=function(e,t){return new Se(e,t)}(i,t),this._triggerCache[s]=o}this._transitionEngine.registerTrigger(t,i,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}onRemove(e,t,n,i){this._transitionEngine.removeNode(e,t,i||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,i){if("@"==n.charAt(0)){const[e,r]=f(n);this._timelineEngine.command(e,t,r,i)}else this._transitionEngine.trigger(e,t,n,i)}listen(e,t,n,i,r){if("@"==n.charAt(0)){const[e,i]=f(n);return this._timelineEngine.listen(e,t,i,r)}return this._transitionEngine.listen(e,t,n,i,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Ge(e,t){let n=null,i=null;return Array.isArray(t)&&t.length?(n=$e(t[0]),t.length>1&&(i=$e(t[t.length-1]))):t&&(n=$e(t)),n||i?new Ye(e,n,i):null}let Ye=(()=>{class e{constructor(t,n,i){this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;let r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&D(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(D(this._element,this._initialStyles),this._endStyles&&(D(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(j(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(j(this._element,this._endStyles),this._endStyles=null),D(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function $e(e){let t=null;const n=Object.keys(e);for(let i=0;i<n.length;i++){const r=n[i];Ze(r)&&(t=t||{},t[r]=e[r])}return t}function Ze(e){return"display"===e||"position"===e}class Qe{constructor(e,t,n,i,r,s,o){this._element=e,this._name=t,this._duration=n,this._delay=i,this._easing=r,this._fillMode=s,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=e
1=>this._handleCallback(e)}apply(){!function(e,t){const n=nt(e,"").trim();n.length&&(function(e,t){let n=0;for(let i=0;i<e.length;i++)","===e.charAt(i)&&n++}(n),t=`${n}, ${t}`),tt(e,"",t)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),et(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Xe(this._element,this._name,"paused")}resume(){Xe(this._element,this._name,"running")}setPosition(e){const t=Ke(this._element,this._name);this._position=e*this._duration,tt(this._element,"Delay",`-${this._position}ms`,t)}getPosition(){return this._position}_handleCallback(e){const t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),et(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=nt(e,"").split(","),i=Je(n,t);i>=0&&(n.splice(i,1),tt(e,"",n.join(",")))}(this._element,this._name))}}function Xe(e,t,n){tt(e,"PlayState",n,Ke(e,t))}function Ke(e,t){const n=nt(e,"");return n.indexOf(",")>0?Je(n.split(","),t):Je([n],t)}function Je(e,t){for(let n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function et(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function tt(e,t,n,i){const r="animation"+t;if(null!=i){const t=e.style[r];if(t.length){const e=t.split(",");e[i]=n,n=e.join(",")}}e.style[r]=n}function nt(e,t){return e.style["animation"+t]||""}class it{constructor(e,t,n,i,r,s,o,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=i+r,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Qe(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:Y(this.element,n))})}this.currentSnapshot=e}}class rt extends o.d{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=T(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEac
1h(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}class st{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(e){return w(e)}matchesElement(e,t){return k(e,t)}containsElement(e,t){return C(e,t)}query(e,t,n){return S(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>T(e));let i=`@keyframes ${t} {\n`,r="";n.forEach(e=>{r=" ";const t=parseFloat(e.offset);i+=`${r}${100*t}% {\n`,r+=" ",Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+=`${r}animation-timing-function: ${n};\n`));default:return void(i+=`${r}${t}: ${n};\n`)}}),i+=`${r}}\n`}),i+="}\n";const s=document.createElement("style");return s.textContent=i,s}animate(e,t,n,i,r,s=[],o){const a=s.filter(e=>e instanceof it),c={};H(n,i)&&a.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>c[e]=t[e])});const l=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=W(e,t,c));if(0==n)return new rt(e,l);const u="gen_css_kf_"+this._count++,d=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(d);const h=Ge(e,t),p=new it(e,t,u,n,i,r,l,h);return p.onDestroy(()=>{var e;(e=d).parentNode.removeChild(e)}),p}}class ot{constructor(e,t,n,i){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:Y(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class at{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ct().toString()),this._cssKeyframesDriver=new st}validateStyleProperty(e){return w(e)}matchesElement(e,t){return k(e,t)}containsElement(e,t){return C(e,t)}query(e,t,n){return S(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,i,r,s=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,s);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(a.easing=r);const c={},l=s.filter(e=>e instanceof ot);
1H(n,i)&&l.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>c[e]=t[e])});const u=Ge(e,t=W(e,t=t.map(e=>I(e,!1)),c));return new ot(e,t,a,u)}}function ct(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let lt=(()=>{class e extends o.b{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:r.V.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?Object(o.g)(e):e;return ht(this._renderer,null,t,"register",[n]),new ut(t,this._renderer)}}return e.\u0275fac=function(t){return new(t||e)(r.gc(r.I),r.gc(s.d))},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})();class ut extends o.c{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new dt(this._id,e,t||{},this._renderer)}}class dt{constructor(e,t,n,i){this.id=e,this.element=t,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return ht(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function ht(e,t,n,i,r){return e.setProperty(t,`@@${n}:${i}`,r)}let pt=(()=>{class e{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new ft("",n,this.engine),this._rendererCache.set(n,e)),e}const i=t.id,r=t.id+"-"+this._currentId;this._currentId++,this.engine.register(r,e);const s=t=>{Array.isArray(t)?t.forEach(s):this.engine.registerTrigger(i,r,e,t.name,t)};return t.data.animation.forEach(s),new gt(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&e<this._microtaskId?this._zone.run(()=>t(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return e.\u0275fac=function(t){return new(t||e)(r.gc(r.I),r.gc(We),r.gc(r.C))},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})();class ft{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,i=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,i){this.delegate.setStyle(e,t,n,i)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}
1listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class gt extends ft{constructor(e,t,n,i){super(t,n,i),this.factory=e,this.namespaceId=t}setProperty(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if("@"==t.charAt(0)){const i=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let r=t.substr(1),s="";return"@"!=r.charAt(0)&&([r,s]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(r)),this.engine.listen(this.namespaceId,i,r,s,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}let mt=(()=>{class e extends We{constructor(e,t,n){super(e.body,t,n)}}return e.\u0275fac=function(t){return new(t||e)(r.gc(s.d),r.gc(O),r.gc(me))},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})();const bt=[{provide:O,useFactory:function(){return"function"==typeof ct()?new at:new st}},{provide:new r.t("AnimationModuleType"),useValue:"BrowserAnimations"},{provide:o.b,useClass:lt},{provide:me,useFactory:function(){return new be}},{provide:We,useClass:mt},{provide:r.I,useFactory:function(e,t,n){return new pt(e,t,n)},deps:[i.e,We,r.C]}];let yt=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Rb({type:e}),e.\u0275inj=r.Qb({providers:bt,imports:[i.a]}),e})();var vt=n("3Pt+"),_t=n("McNs"),wt=n("NTD5"),kt=n("5MUS");let Ct=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})();var St=n("Ficc"),Tt=n("+21N");const Pt=[wt.a,kt.a,Ct,Tt.a,St.a];let Ot=(()=>{class e{static forRoot(){return{ngModule:e,providers:[...Pt]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Rb({type:e}),e.\u0275inj=r.Qb({providers:[...Pt],imports:[[s.c]]}),e})();var xt=n("BoUZ"),At=n("l7P3"),Et=n("VRyK"),Mt=n("HDdC"),It=n("XNiG"),Rt=(n("NXyV"),n("WMd4"),n("mCNh"),n("LRne")),Lt=n("4A3s"),Dt=n("dkDA"),jt=n("lJxs"),Nt=n("JIr8"),Vt=n("pLZG"),zt=n("OQgR"),Ft=n("5+tZ"),Bt=n("XqQ8"),qt=n("kgNN"),Ut=n("IzEk");n("bOdf"),n("nYR2"),n("zp1y");const Ht={dispatch:!0,useEffectsErrorHandler:!0};function Wt(e){return Object.getOwnPropertyNames(e).filter(t=>!(!e[t]||!e[t].hasOwnProperty("__@ngrx/effects_create__"))&&e[t]["__@ngrx/effects_create__"].hasOwnProperty("dispatch")).map(t=>Object.assign({propertyName:t},e[t]["__@ngrx/effects_create__"]))}function Gt(e){return Object.getPrototypeOf(e)}function Yt(e={}){return function(t,n){var i,r;i=t,r=Object.assign(Object.assign(Object.assign({},Ht),e),{propertyName:n}),Zt(i)?i.constructor["__@ngrx/effects__"].push(r):Object.defineProperty(i.constructor,"__@ngrx/effects__",{value:[r]})}}function $t(e){return Object(At.f)(Qt,Gt)(e)}function Zt(e){return e.constructor.hasOwnProperty("__@ngrx/effects__")}function Qt(e){return Zt(e)?e.constructor["__@ngrx/effects__"]:[]}function Xt(e,t,n=10){return e.pipe(Object(Nt.a)(i=>(t&&t.handleError(i),n<=1?e:Xt(e,t,n-1))))}let Kt=(()=>{class e extends Mt.a{constructor(e){super(),e&&(this.source=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}}return e.\u0275fac=function(t){return new(t||e)(r.gc(At.a))},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})();function Jt(e){return en(e,"ngrxOnInitEffects")}function en(e,t){return e&&t in e&&"function"==typeof e[t]}const tn=new r.t("@ngrx/effects Internal Root Guard"),nn=new r.t("@ngrx/effects User Provided Effects"),rn=new r.t("@ngrx/effects Internal Root Effects"),sn=new r.t("@ngrx/effects Root Effects"),on=new r.t("@ngrx/effects Internal Feature Effects"),an=new r.t("@ngrx/effects Feature Effects"),cn=new r.t("@ngrx/effects Effects Error Handler");let ln=(()=>{class e extends It.a{constructor(e,t){super(),this.errorHandler=e,this.effectsErrorHandler=t}addEffects(e){this.next(e)}toActions(){return this.pipe(Object(zt.b)(Gt),Object(Ft.b)(e=>e.pipe(Object(zt.b)(un))),Object(Ft.b)(e=>{const t=e.pipe(Object(Bt.a)(e=>{return(t=this.errorHandler,n=this.effectsErrorHandler,e=>{const i=function(e,t,n){const i=Gt(e).constructor.name,r=(s=e,[$t,Wt].reduce((e,t)=>
1e.concat(t(s)),[])).map(({propertyName:r,dispatch:s,useEffectsErrorHandler:o})=>{const a="function"==typeof e[r]?e[r]():e[r],c=o?n(a,t):a;return!1===s?c.pipe(Object(Lt.a)()):c.pipe(Object(Dt.a)()).pipe(Object(jt.a)(t=>({effect:e[r],notification:t,propertyName:r,sourceName:i,sourceInstance:e})))});var s;return Object(Et.a)(...r)}(e,t,n);return en(e,"ngrxOnRunEffects")?e.ngrxOnRunEffects(i):i})(e);var t,n}),Object(jt.a)(e=>(function(e,t){if("N"===e.notification.kind){const n=e.notification.value,i=!function(e){return"function"!=typeof e&&e&&e.type&&"string"==typeof e.type}(n);i&&t.handleError(new Error(`Effect ${function({propertyName:e,sourceInstance:t,sourceName:n}){const i="function"==typeof t[e];return`"${n}.${String(e)}${i?"()":""}"`}(e)} dispatched an invalid action: ${function(e){try{return JSON.stringify(e)}catch(t){return e}}(n)}`))}}(e,this.errorHandler),e.notification)),Object(Vt.a)(e=>"N"===e.kind&&null!=e.value),Object(qt.a)()),n=e.pipe(Object(Ut.a)(1),Object(Vt.a)(Jt),Object(jt.a)(e=>e.ngrxOnInitEffects()));return Object(Et.a)(t,n)}))}}return e.\u0275fac=function(t){return new(t||e)(r.gc(r.n),r.gc(cn))},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})();function un(e){return en(e,"ngrxOnIdentifyEffects")?e.ngrxOnIdentifyEffects():""}let dn=(()=>{class e{constructor(e,t){this.effectSources=e,this.store=t,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return e.\u0275fac=function(t){return new(t||e)(r.gc(ln),r.gc(At.b))},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})();Object(At.g)("@ngrx/effects/init");let hn=(()=>{class e{constructor(e,t,n,i,r,s,o){this.sources=e,t.start(),i.forEac
1h(t=>e.addEffects(t)),n.dispatch({type:"@ngrx/effects/init"})}addEffects(e){this.sources.addEffects(e)}}return e.\u0275fac=function(t){return new(t||e)(r.gc(ln),r.gc(dn),r.gc(At.b),r.gc(sn),r.gc(At.e,8),r.gc(At.c,8),r.gc(tn,8))},e.\u0275mod=r.Rb({type:e}),e.\u0275inj=r.Qb({}),e})(),pn=(()=>{class e{constructor(e,t,n,i){t.forEach(t=>t.forEach(t=>e.addEffects(t)))}}return e.\u0275fac=function(t){return new(t||e)(r.gc(hn),r.gc(an),r.gc(At.e,8),r.gc(At.c,8))},e.\u0275mod=r.Rb({type:e}),e.\u0275inj=r.Qb({}),e})(),fn=(()=>{class e{static forFeature(e=[]){return{ngModule:pn,providers:[e,{provide:on,multi:!0,useValue:e},{provide:nn,multi:!0,useValue:[]},{provide:an,multi:!0,useFactory:gn,deps:[r.u,on,nn]}]}}static forRoot(e=[]){return{ngModule:hn,providers:[{provide:cn,useValue:Xt},dn,ln,Kt,e,{provide:rn,useValue:[e]},{provide:tn,useFactory:mn,deps:[[dn,new r.D,new r.O],[rn,new r.M]]},{provide:nn,multi:!0,useValue:[]},{provide:sn,useFactory:gn,deps:[r.u,rn,nn]}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Rb({type:e}),e.\u0275inj=r.Qb({}),e})();function gn(e,t,n){const i=[];for(let r of t)i.push(...r);for(let r of n)i.push(...r);return function(e,t){return t.map(t=>e.get(t))}(e,i)}function mn(e,t){if((1!==t.length||0!==t[0].length)&&e)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}var bn=n("4c1C"),yn=n("wQ+c"),vn=n("G4OQ"),_n=n("eIep"),wn=n("tyNb"),kn=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Cn=(()=>{class e{constructor(e,t,n){this.actions$=e,this.userService=t,this.router=n,this.getSurveys$=this.actions$.pipe(function(...e){return Object(Vt.a)(t=>e.some(e=>"string"==typeof e?e===t.type:e.type===t.type))}(yn.a.GetCurrentUser),Object(_n.a)(e=>(console.log(e),localStorage.getItem("userId")?this.userService.currentProfiles(localStorage.getItem("userId")).pipe(Object(jt.a)(e=>new yn.d(e)),Object(Nt.a)(e=>Object(vn.of)(new yn.c(e)))):Object(vn.of)())))}}return e.\u0275fac=function(t){return new(t||e)(r.gc(Kt),r.gc(wt.a),r.gc(wn.c))},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);s>3&&o&&Object.defineProperty(t,n,o)}([Yt(),kn("design:type",bn.Observable)],e.prototype,"getSurveys$",void 0),e})();var Sn=n("UOn2");const Tn={redirectDelay:4,showMessages:{success:!0}},Pn=[...Ot.forRoot().providers,..._t.c.forRoot({forms:{forms:{login:Tn,register:Tn,requestPassword:Tn,resetPassword:Tn,logout:{redirectDelay:0}},validation:{password:{required:!0,pattern:"(?=.*\\d)(?=.*[a-z]).{8,}",minLength:8,maxLength:30}}}}).providers,xt.a];let On=(()=>{class e{constructor(e){!function(e,t){if(e)throw new Error("CoreModule has already been loaded. Import Core modules in the AppModule only.")}(e)}static forRoot(){return{ngModule:e,providers:[...Pn]}}}return e.\u0275fac=function(t){return new(t||e)(r.gc(e,12))},e.\u0275mod=r.Rb({type:e}),e.\u0275inj=r.Qb({imports:[[s.c,fn.forFeature([Cn]),At.d.forFeature("auth",Sn.a)],_t.c]}),e})();var xn=n("D/fu");let An=(()=>{class e{get nativeWindow(){return"undefined"!=typeof window?window:void 0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})(),En=(()=>{class e{constructor(){this.enabled=!0,this.whitelistPage=[],this.blackl
1istPage=[]}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})(),Mn=(()=>{class e{constructor(e,t){this.popupOpenSource=new It.a,this.popupCloseSource=new It.a,this.initializeSource=new It.a,this.statusChangeSource=new It.a,this.revokeChoiceSource=new It.a,this.noCookieLawSource=new It.a,this.popupOpen$=this.popupOpenSource.asObservable(),this.popupClose$=this.popupCloseSource.asObservable(),this.initialize$=this.initializeSource.asObservable(),this.statusChange$=this.statusChangeSource.asObservable(),this.revokeChoice$=this.revokeChoiceSource.asObservable(),this.noCookieLaw$=this.noCookieLawSource.asObservable(),this.window=e.nativeWindow,this.init(t)}checkPopupInstantiated(e){if(null==this.popupInstance)throw new Error(`Cookie popup has not yet been instantiated. Cannot invoke ${e}()`)}init(e){this.window&&(this.cookieconsent=this.window.cookieconsent,this.config=e,this.config.onPopupOpen=()=>this.popupOpenSource.next(),this.config.onPopupClose=()=>this.popupCloseSource.next(),this.config.onInitialise=e=>this.initializeSource.next({status:e}),this.config.onStatusChange=(e,t)=>
1{this.statusChangeSource.next({status:e,chosenBefore:t})},this.config.onRevokeChoice=()=>this.revokeChoiceSource.next(),this.config.onNoCookieLaw=(e,t)=>{this.noCookieLawSource.next({countryCode:e,country:t})},this.cookieconsent.initialise(this.config,e=>this.popupInstance=e))}getConfig(){return this.config}getStatus(){return this.cookieconsent.status}getTransition(){return this.cookieconsent.hasTransition}clearStatus(){return this.checkPopupInstantiated("clearStatus"),this.popupInstance.clearStatus()}open(){return this.checkPopupInstantiated("open"),this.popupInstance.open()}close(e){return this.checkPopupInstantiated("close"),this.popupInstance.close(e)}destroy(){this.checkPopupInstantiated("destroy"),this.popupInstance.destroy()}fadeIn(){this.checkPopupInstantiated("fadeIn"),this.popupInstance.fadeIn()}fadeOut(){this.checkPopupInstantiated("fadeOut"),this.popupInstance.fadeOut()}isOpen(){return this.checkPopupInstantiated("isOpen"),this.popupInstance.isOpen()}toggleRevokeButton(e){this.checkPopupInstantiated("toggleRevokeButton"),this.popupInstance.toggleRevokeButton(e)}hasAnswered(){return this.checkPopupInstantiated("hasAnswered"),this.popupInstance.hasAnswered()}hasConsented(){return this.checkPopupInstantiated("hasConsented"),this.popupInstance.hasConsented()}}return e.\u0275fac=function(t){return new(t||e)(r.gc(An),r.gc(En))},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})(),In=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[An,{provide:En,useValue:t},Mn]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Rb({type:e}),e.\u0275inj=r.Qb({imports:[[s.c]]}),e})(),Rn=(()=>{class e{constructor(e,t){this.analytics=e,this.ccService=t}ngOnInit(){this.analytics.trackPageViews(),localStorage.getItem("cookie")||(this.ccService.open(),this.statusChangeSubscription=this.ccService.statusChange$.subscribe(e=>{localStorage.setItem("cookie","true")}))}}return e.\u0275fac=function(t){return new(t||e)(r.Tb(xt.a),r.Tb(Mn))},e.\u0275cmp=r.Nb({type:e,selectors:[["ngx-app"]],decls:1,vars:0,template:function(e,t){1&e&&r.Ub(0,"router-outlet")},directives:[wn.h],encapsulation:2}),e})();var Ln=n("NOtv");const Dn=Ln("core:security:role");let jn=(()=>{class e{constructor(e,t,n,i){this.user=e,this.service=t,this.router=n,this.store=i,this.userSubscription=i.pipe(Object(At.j)(Sn.b)).subscribe(e=>{this.currentUser=e,this.currentUser&&(localStorage.getItem("userId")||localStorage.setItem("userId",this.currentUser.id))})}canActivate(e,t){const n=e.data.roles;return console.log(e),this.currentUser?this.service.currentProfiles(this.currentUser.id).pipe(Object(jt.a)(e=>{if(e)return this.checkRole(e,n)})):this.user.me().pipe(Object(Ft.b)(e=>this.service.currentProfiles(e.id),(e,t)=>!t||this.checkRole(t,n)))}checkRole(e,t){return e.roles.length?!e.roles.length||null!=t&&-1===t.indexOf(e.roles[0].name)?(this.router.navigate(["dashboard"],{queryParamsHandling:"preserve"}),!1):(Dn("User is admin: ",t),!0):(Dn("User has no roles"),this.router.navigate(["dashboard"]),!1)}canActivateChild(e,t){return this.canActivate(e,t)}}return e.\u0275fac=function(t){return new(t||e)(r.gc(xn.y),r.gc(wt.a),r.gc(wn.c),r.gc(At.b))},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})();var Nn=n("F/Ng"),Vn=n("VYMQ");const zn=Ln("core:security:auth");let Fn=(()=>{class e{constructor(e,t,n,i,r){this.user=e,this.auth=t,this.router=n,this.store=i,this.service=r,this.currentUser||this.store.dispatch(new yn.b)}canActivate(e,t){return console.log(t.url),this.service.redirectUrl=t.url,localStorage.setItem("redirect-url",t.url),this.user.me().pipe(Object(jt.a)(e=>e?(localStorage.getItem("userId")&&localStorage.getItem("userId")===e.id||localStorage.setItem("userId",e.id),zn("User is authenticated"),!0):(zn("User is not authenticated, redirect"),this.router.navigate(["/login"]),!1)),Object(Nt.a)(e=>(zn("User is not authenticated, redirect"),this.router.navigate(["/login"]),Object(Rt.a)(!1))))}canActivateChild(e,t){return this.canActivate(e,t)}}return e.\u0275fac=function(t){return new(t||e)(r.gc(xn.y),r.gc(Nn.a),r.gc(wn.c),r.gc(At.b),r.gc(Vn.a))},e.\u0275prov=r.Pb({token:e,factory:e.\u0275fac}),e})();var Bn=n("zhMp"),qn=n("aceb");let Un=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Nb({type:e,selectors:[["history"]],decls:13,vars:0,consts:[[1,"landing-father"],["id","header",1,"nav"],[1,"nav-btn"],["for","nav-check"],["type","checkbox","id","nav-check",1,"nav-check"],[1,"nav-links"],[1,"header-login"],[1,"ion-ios-contact","header-icon","right-link"],[1,"pages-wrapper"]],template:function(e,t){1&e&&(r.Zb(0,"nb-layout",0),r.Zb(1,"nb-layout-column"),r.Zb(2,"div",1),r.Zb(3,"div",2),r.Zb(4,"label",3),r.Ub(5,"span"),r.Ub
1(6,"span"),r.Ub(7,"span"),r.Yb(),r.Yb(),r.Ub(8,"input",4),r.Zb(9,"div",5),r.Zb(10,"a",6),r.Ub(11,"i",7),r.Yb(),r.Yb(),r.Yb(),r.Ub(12,"div",8),r.Yb(),r.Yb())},directives:[qn.P,qn.O],styles:[".faq-header[_ngcontent-%COMP%] .landing-link[_ngcontent-%COMP%], .simi-link[_ngcontent-%COMP%], .simi-logo[_ngcontent-%COMP%]{color:#4472c4;text-decoration:none}.faq-header[_ngcontent-%COMP%] .landing-link[_ngcontent-%COMP%]:hover, .simi-link[_ngcontent-%COMP%]:hover, .simi-logo[_ngcontent-%COMP%]:hover{color:#859fce}.faq-header[_ngcontent-%COMP%] .landing-link[_ngcontent-%COMP%]:active, .simi-link[_ngcontent-%COMP%]:active, .simi-logo[_ngcontent-%COMP%]:active{color:#325491}.faq-header[_ngcontent-%COMP%] .landing-link[_ngcontent-%COMP%]:focus, .simi-link[_ngcontent-%COMP%]:focus, .simi-logo[_ngcontent-%COMP%]:focus{color:#4472c4}.column-fc[_ngcontent-%COMP%], .fc[_ngcontent-%COMP%]{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.column-fc[_ngcontent-%COMP%], .column-fsb[_ngcontent-%COMP%], .fc[_ngcontent-%COMP%], .fsb[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex}.column-fsb[_ngcontent-%COMP%], .fsb[_ngcontent-%COMP%]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.column-fc[_ngcontent-%COMP%], .column-fsb[_ngcontent-%COMP%]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.simi-logo[_ngcontent-%COMP%]{margin:auto 0}.simi-logo[_ngcontent-%COMP%] .home-link[_ngcontent-%COMP%]{text-transform:uppercase;font-size:x-large;margin-left:1rem}title-header[_ngcontent-%COMP%]{padding-top:11px;padding-left:10px;color:#4472c4}.svg-simi-home[_ngcontent-%COMP%]{height:30px;float:left}.svg-simi-home[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:#4472c4}.nav-links-2[_ngcontent-%COMP%]{padding:0 2rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:100%}.nav-links-2[_ngcontent-%COMP%] .header-login[_ngcontent-%COMP%]{margin:auto 0;padding-top:0!important;padding-bottom:0!important}.nav-links-2[_ngcontent-%COMP%] .header-icon[_ngcontent-%COMP%]{font-size:2.5rem;vertical-align:middle}.nav[_ngcontent-%COMP%]{position:fixed;z-index:3;height:50px;width:100%;background:hsla(0,0%,100%,.95)}.nav-links[_ngcontent-%COMP%] .header-login[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.nav-links[_ngcontent-%COMP%] .header-icon[_ngcontent-%COMP%]{font-size:2.5rem;vertical-align:middle}.nav[_ngcontent-%COMP%] > .nav-header[_ngcontent-%COMP%]{display:inline}.nav[_ngcontent-%COMP%] > .nav-header[_ngcontent-%COMP%] > .nav-title[_ngcontent-%COMP%]{display:inline-block;font-size:22px;padding:10px}.nav[_ngcontent-%COMP%] > .nav-btn[_ngcontent-%COMP%]{display:none}.nav[_ngcontent-%COMP%] > .nav-links[_ngcontent-%COMP%]{display:inline;float:right;margin-left:auto}.nav[_ngcontent-%COMP%] > .nav-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;text-decoration:none;font-size:1rem;padding:1rem;color:#4472c4}.nav[_ngcontent-%COMP%] > .nav-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:hover{color:#859fce}.nav[_ngcontent-%COMP%] > .nav-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:active{color:#325491}.nav[_ngcontent-%COMP%] > .nav-check[_ngcontent-%COMP%]{display:none}.faq-header[_ngcontent-%COMP%]{font-size:3rem;border-bottom:1px dotted #ccc;padding:24px;color:#2f4f4f}.faq-header[_ngcontent-%COMP%] .landing-link[_ngcontent-%COMP%]{float:right}.faq-content[_ngcontent-%COMP%]{margin:0 auto;background:#fff}.faq-question[_ngcontent-%COMP%]{padding:20px 0;border-bottom:1px dotted #ccc}.panel-title[_ngcontent-%COMP%]{color:#708090;font-size:1.7rem;width:100%;position:relative;margin:0;padding:10px 10px 0 48px;display:block;cursor:pointer}.panel-content[_ngcontent-%COMP%]{font-size:1.2rem;padding:0 14px;margin:0 40px;height:0;overflow:hidden;z-index:-1;position:relative;opacity:0;-webkit-transition:.4s ease;transition:.4s ease}.panel[_ngcontent-%COMP%]:checked ~ .panel-content[_ngcontent-%COMP%]{height:auto;opacity:1;padding:14px;z-index:auto}.plus[_ngcontent-%COMP%]{position:absolute;margin-left:20px;margin-top:4px;z-index:5;font-size:42px;line-height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;
1-o-user-select:none;user-select:none;-webkit-transition:.2s ease;transition:.2s ease}.panel[_ngcontent-%COMP%]:checked ~ .plus[_ngcontent-%COMP%]{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.panel[_ngcontent-%COMP%]{display:none}@media (max-width:576px){.pages-wrapper[_ngcontent-%COMP%]{padding:4rem 0!important}.faq-header[_ngcontent-%COMP%]{font-size:2rem}.faq-header[_ngcontent-%COMP%] .landing-link[_ngcontent-%COMP%], .faq-header[_ngcontent-%COMP%] .simi-link[_ngcontent-%COMP%], .faq-header[_ngcontent-%COMP%] .simi-logo[_ngcontent-%COMP%]{display:none}.panel-title[_ngcontent-%COMP%]{font-size:1.5rem}.panel-content[_ngcontent-%COMP%]{font-size:1rem}}.landing-father[_ngcontent-%COMP%] nb-layout-column[_ngcontent-%COMP%]{padding:0!important}.pages-wrapper[_ngcontent-%COMP%]{padding:5rem}.blu-simi[_ngcontent-%COMP%]{color:#4472c4}.logo-containter[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.button[_ngcontent-%COMP%]{padding:12px;font-size:12px;font-weight:400;text-align:center;cursor:pointer;text-transform:uppercase}.button-danger[_ngcontent-%COMP%]{border-radius:.5rem;margin-top:1rem;color:#fff;-webkit-box-shadow:0 0 5px rgba(0,0,0,.17);box-shadow:0 0 5px rgba(0,0,0,.17);transition:all .3s ease-in-out 0s;-moz-transition:all .3s ease-in-out 0s;-webkit-transition:all .3s ease-in-out 0s;-o-transition:all .3s ease-in-out 0s}.button-danger[_ngcontent-%COMP%], .button-danger[_ngcontent-%COMP%]:active, .button-danger[_ngcontent-%COMP%]:hover{background:-webkit-gradient(linear,left top,right bottom,from(#e66465),to(#000));background:linear-gradient(to bottom right,#e66465,#000)}.gradient-icon[_ngcontent-%COMP%], .icon-box[_ngcontent-%COMP%] .main-icon[_ngcontent-%COMP%], .nav-links[_ngcontent-%COMP%] .header-icon[_ngcontent-%COMP%], .nav-links-2[_ngcontent-%COMP%] .header-icon[_ngcontent-%COMP%]{background:-webkit-gradient(linear,left top,right bottom,from(#4472c4),to(#000));background:linear-gradient(to bottom right,#4472c4,#000);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.gradient-icon[_ngcontent-%COMP%]:before, .icon-box[_ngcontent-%COMP%] .main-icon[_ngcontent-%COMP%]:before, .nav-links[_ngcontent-%COMP%] .header-icon[_ngcontent-%COMP%]:before, .nav-links-2[_ngcontent-%COMP%] .header-icon[_ngcontent-%COMP%]:before{display:inline}.icon-box[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 0}.icon-box[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1.5rem;vertical-align:middle;padding-left:1rem;color:#325491}.icon-box[_ngcontent-%COMP%] .main-icon[_ngcontent-%COMP%]{font-size:2rem;vertical-align:middle}"]}),e})(),Hn=(()=>{class e{constructor(e,t){this.route=e,this.service=t,this.courseId=this.route.snapshot.paramMap.get("id")}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(r.Tb(wn.a),r.Tb(Tt.a))},e.\u0275cmp=r.Nb({type:e,selectors:[["regional"]],decls:59,vars:0,consts:[[1,"landing-father"],["id","header",1,"nav"],[1,"logo-containter"],[1,"navigation"],["src","/assets/images/logo-simi.png","width","40"],[2,"padding-top","11px","padding-left","10px"],[1,"blu-simi"],[1,"nav-btn"],["for","nav-check"],["type","checkbox","id","nav-check",1,"nav-check"],[1,"nav-links"],["routerLink","/login",1,"header-login"],[1,"ion-ios-contact","header-icon","right-link",2,"margin-left","0.5rem"],[1,"pages-wrapper"],[2,"background-color","#e66465","color","white"],[2,"display","flex","justify-content","center"],["src","/assets/images/Corso-pre-meeting.png","width","200px"],[2,"margin-top","3rem"],[1,"icon-box"],[1,"ion-android-pin","main-icon"],[1,"ion-android-calendar","main-icon"],[1,"ion-ios-download","main-icon"],["href","https://congressi.simi.it/p/courses/SIMI_corso_premeeting.pdf","target","_blank"],[1,"col-lg-6","offset-lg-3",2,"margin-top","1rem"],["routerLink","/dashboard/5ce33fbc31cca07fd29a3292/courses/5ced4586d766ae459e71254d",1,"button","button-danger",2,"width","auto"]],template:function(e,t){1&e&&(r.Zb(0,"nb-layout",0),r.Zb(1,"nb-layout-column"),r.Zb(2,"div",1),r.Zb(3,"div",2),r.Zb(4,"a",3),r.Zb(5,"i"),r.Ub(6,"img",4),r.Yb(),r.Yb(),r.Yb(),r.Zb(7,"h4",5),r.Qc(8,"SIMI "),r.Zb(9,"span",6),r.Qc(10,"Congressi"),r.Yb(),r.Yb(),r.Zb(11,"div",7),r.Zb(12,"label",8),r.Ub(13,"span"),r.Ub
1(14,"span"),r.Ub(15,"span"),r.Yb(),r.Yb(),r.Ub(16,"input",9),r.Zb(17,"div",10),r.Zb(18,"a",11),r.Qc(19,"Area Riservata"),r.Ub(20,"i",12),r.Yb(),r.Yb(),r.Yb(),r.Zb(21,"div",13),r.Zb(22,"nb-card"),r.Zb(23,"nb-card-header",14),r.Qc(24,"Corso pre-congressuale "),r.Zb(25,"i"),r.Qc(26,"\u201cUrgenze in Medicina Interna\u201d"),r.Yb(),r.Yb(),r.Zb(27,"nb-card-body"),r.Zb(28,"div",15),r.Zb(29,"div"),r.Ub(30,"img",16),r.Yb(),r.Yb(),r.Zb(31,"div",15),r.Zb(32,"div"),r.Zb(33,"div",17),r.Zb(34,"div",18),r.Ub(35,"i",19),r.Zb(36,"span"),r.Zb(37,"b"),r.Qc(38," Sede:"),r.Yb(),r.Qc(39," Via A. Cadlolo 101, Roma "),r.Yb(),r.Yb(),r.Zb(40,"div"),r.Zb(41,"div",18),r.Ub(42,"i",20),r.Zb(43,"span"),r.Zb(44,"b"),r.Qc(45," Data:"),r.Yb(),r.Qc(46," 17 Ottobre 2019"),r.Yb(),r.Yb(),r.Yb(),r.Zb(47,"div",18),r.Ub(48,"i",21),r.Zb(49,"span"),r.Zb(50,"a",22),r.Qc(51,"Scarica il programma"),r.Yb(),r.Yb(),r.Yb(),r.Yb(),r.Yb(),r.Yb(),r.Zb(52,"p",23),r.Qc(53," Le urgenze accadono. In reparto, in ambulatorio, in Pronto Soccorso le condizioni dei pazienti possono deteriorarsi rapidamente o un sintomo acuto pu\xf2 essere l\u2019 annuncio di un catastrofe imminente. La scelta di essere internisti e medici d\u2019urgenza impone la capacit\xe0 di saper affrontare in modo non improvvisato questo importante aspetto della Medicina. Il Corso non si propone, naturalmente, di essere esaustivo ma di fornire alcuni elementi essenziali su cosa fare e cosa non fare di fronte alle pi\xf9 frequenti e rilevanti urgenze che ci attendono alla luce delle pi\xf9 recenti acquisizioni di un campo in continua, rapida, evoluzione. "),r.Yb(),r.Zb(54,"div",15),r.Zb(55,"div",24),r.Zb(56,"a"),r.Zb(57,"span"),r.Qc(58,"Iscriviti"),r.Yb(),r.Yb(),r.Yb(),r.Yb(),r.Yb(),r.Yb(),r.Yb(),r.Yb(),r.Yb())},directives:[qn.P,qn.O,wn.f,qn.s,qn.u,qn.r,wn.d],styles:[".faq-header[_ngcontent-%COMP%] .landing-link[_ngcontent-%COMP%], .simi-link[_ngcontent-%COMP%], .simi-logo[_ngcontent-%COMP%]{color:#4472c4;text-decoration:none}.faq-header[_ngcontent-%COMP%] .landing-link[_ngcontent-%COMP%]:hover, .simi-link[_ngcontent-%COMP%]:hover, .simi-logo[_ngcontent-%COMP%]:hover{color:#859fce}.faq-header[_ngcontent-%COMP%] .landing-link[_ngcontent-%COMP%]:active, .simi-link[_ngcontent-%COMP%]:active, .simi-logo[_ngcontent-%COMP%]:active{color:#325491}.faq-header[_ngcontent-%COMP%] .landing-link[_ngcontent-%COMP%]:focus, .simi-link[_ngcontent-%COMP%]:focus, .simi-logo[_ngcontent-%COMP%]:focus{color:#4472c4}.column-fc[_ngcontent-%COMP%], .fc[_ngcontent-%COMP%]{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.column-fc[_ngcontent-%COMP%], .column-fsb[_ngcontent-%COMP%], .fc[_ngcontent-%COMP%], .fsb[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex}.column-fsb[_ngcontent-%COMP%], .fsb[_ngcontent-%COMP%]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.column-fc[_ngcontent-%COMP%], .column-fsb[_ngcontent-%COMP%]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.simi-logo[_ngcontent-%COMP%]{margin:auto 0}.simi-logo[_ngcontent-%COMP%] .home-link[_ngcontent-%COMP%]{text-transform:uppercase;font-size:x-large;margin-left:1rem}title-header[_ngcontent-%COMP%]{padding-top:11px;padding-left:10px;color:#4472c4}.svg-simi-home[_ngcontent-%COMP%]{height:30px;float:left}.svg-simi-home[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:#4472c4}.nav-links-2[_ngcontent-%COMP%]{padding:0 2rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:100%}.nav-links-2[_ngcontent-%COMP%] .header-login[_ngcontent-%COMP%]{margin:auto 0;padding-top:0!important;padding-bottom:0!important}.nav-links-2[_ngcontent-%COMP%] .header-icon[_ngcontent-%COMP%]{font-size:2.5rem;vertical-align:middle}.nav[_ngcontent-%COMP%]{position:fixed;z-index:3;height:50px;width:100%;background:hsla(0,0%,100%,.95)}.nav-links[_ngcontent-%COMP%] .header-login[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.nav-links[_ngcontent-%COMP%] .header-icon[_ngcontent-%COMP%]{font-size:2.5rem;vertical-align:middle}.nav[_ngcontent-%COMP%] > .nav-header[_ngcontent-%COMP%]{display:inline}.nav[_ngcontent-%COMP%] > .nav-header[_ngcontent-%COMP%] > .nav-title[_ngcontent-%COMP%]{display:inline-block;font-size:22px;padding:10px}.nav[_ngcontent-%COMP%] > .nav-btn[_ngcontent-%COMP%]{display:none}.nav[_ngcontent-%COMP%] > .nav-links[_ngcontent-%COMP%]{display:inline;float:right;margin-left:auto}.nav[_ngcontent-%COMP%] > .nav-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;text-decoration:none;font-size:1rem;padding:1rem;color:#4472c4}.nav[_ngcontent-%COMP%] > .nav-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:hover{color:#859fce}.nav[_ngcontent-%COMP%] > .nav-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:active{color:#325491}.nav[_ngcontent-%COMP%] > .nav-check[_ngcontent-%COMP%]{display:none}.faq-header[_ngcontent-%COMP%]{font-size:3rem;border-bottom:1px dotted #ccc;padding:24px;color:#2f4f4f}.faq-header[_ngcontent-%COMP%] .landing-link[_ngcontent-%COMP%]{float:right}.faq-content[_ngcontent-%COMP%]{margin:0 auto;background:#fff}.faq-question[_ngcontent-%COMP%]{padding:20px 0;border-bottom:1px dotted #ccc}.panel-title[_ngcontent-%COMP%]{color:#708090;font-size:1.7rem;width:100%;position:relative;margin:0;padding:10px 10px 0 48px;display:block;cursor:pointer}.panel-content[_ngcontent-%COMP%]{font-size:1.2rem;padding:0 14px;margin:0 40px;height:0;overflow:hidden;z-index:-1;position:relative;opacity:0;-webkit-transition:.4s ease;transition:.4s ease}.panel[_ngcontent-%COMP%]:checked ~ .panel-content[_ngcontent-%COMP%]{height:auto;opacity:1;padding:14px;z-index:auto}.plus[_ngcontent-%COMP%]{position:absolute;margin-left:20px;margin-top:4px;z-index:5;font-size:42px;line-height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;
1-o-user-select:none;user-select:none;-webkit-transition:.2s ease;transition:.2s ease}.panel[_ngcontent-%COMP%]:checked ~ .plus[_ngcontent-%COMP%]{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.panel[_ngcontent-%COMP%]{display:none}@media (max-width:576px){.pages-wrapper[_ngcontent-%COMP%]{padding:4rem 0!important}.faq-header[_ngcontent-%COMP%]{font-size:2rem}.faq-header[_ngcontent-%COMP%] .landing-link[_ngcontent-%COMP%], .faq-header[_ngcontent-%COMP%] .simi-link[_ngcontent-%COMP%], .faq-header[_ngcontent-%COMP%] .simi-logo[_ngcontent-%COMP%]{display:none}.panel-title[_ngcontent-%COMP%]{font-size:1.5rem}.panel-content[_ngcontent-%COMP%]{font-size:1rem}}.landing-father[_ngcontent-%COMP%] nb-layout-column[_ngcontent-%COMP%]{padding:0!important}.pages-wrapper[_ngcontent-%COMP%]{padding:5rem}.blu-simi[_ngcontent-%COMP%]{color:#4472c4}.logo-containter[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.button[_ngcontent-%COMP%]{padding:12px;font-size:12px;font-weight:400;text-align:center;cursor:pointer;text-transform:uppercase}.button-danger[_ngcontent-%COMP%]{border-radius:.5rem;margin-top:1rem;color:#fff;-webkit-box-shadow:0 0 5px rgba(0,0,0,.17);box-shadow:0 0 5px rgba(0,0,0,.17);transition:all .3s ease-in-out 0s;-moz-transition:all .3s ease-in-out 0s;-webkit-transition:all .3s ease-in-out 0s;-o-transition:all .3s ease-in-out 0s}.button-danger[_ngcontent-%COMP%], .button-danger[_ngcontent-%COMP%]:active, .button-danger[_ngcontent-%COMP%]:hover{background:-webkit-gradient(linear,left top,right bottom,from(#e66465),to(#000));background:linear-gradient(to bottom right,#e66465,#000)}.gradient-icon[_ngcontent-%COMP%], .icon-box[_ngcontent-%COMP%] .main-icon[_ngcontent-%COMP%], .nav-links[_ngcontent-%COMP%] .header-icon[_ngcontent-%COMP%], .nav-links-2[_ngcontent-%COMP%] .header-icon[_ngcontent-%COMP%]{background:-webkit-gradient(linear,left top,right bottom,from(#4472c4),to(#000));background:linear-gradient(to bottom right,#4472c4,#000);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.gradient-icon[_ngcontent-%COMP%]:before, .icon-box[_ngcontent-%COMP%] .main-icon[_ngcontent-%COMP%]:before, .nav-links[_ngcontent-%COMP%] .header-icon[_ngcontent-%COMP%]:before, .nav-links-2[_ngcontent-%COMP%] .header-icon[_ngcontent-%COMP%]:before{display:inline}.icon-box[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 0}.icon-box[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1.5rem;vertical-align:middle;padding-left:1rem;color:#325491}.icon-box[_ngcontent-%COMP%] .main-icon[_ngcontent-%COMP%]{font-size:2rem;vertical-align:middle}"]}),e})(),Wn=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Nb({type:e,selectors:[["faq"]],decls:105,vars:0,consts:[[1,"landing-father"],["id","header",1,"nav"],[1,"nav-btn"],["for","nav-check"],["type","checkbox","id","nav-check",1,"nav-check"],[1,"nav-links-2"],["routerLink","/",1,"simi-logo"],["xmlns","http://www.w3.org/2000/svg","fill-rule","evenodd","stroke-linejoin","round","stroke-miterlimit","1.4","clip-rule","evenodd","viewBox","0 0 2048 2048",1,"svg-simi-home"],["fill-rule","nonzero","d","M1025.6 0c142.4.3 284.4 30.3 414 88a1032.7 1032.7 0 0 1 401.2 318.6 1026.3 1026.3 0 0 1 202.8 520.9c20 212.8-28 431-136.7 615.4A1033 1033 0 0 1 1505 1928a1028.3 1028.3 0 0 1-577.7 115.5 1026.2 1026.2 0 0 1-538-215.9A1032.6 1032.6 0 0 1 43 1319.4a1032 1032 0 0 1 11.6-626.6c54-157.9 147.6-302 269.5-416.2 143-134 324.9-226 518.6-260.6a1027.2 1027.2 0 0 1 182.8-16zm-3.3 14.9a1012 1012 0 0 0-408 86.7A1010 1010 0 0 0 57.4 1315a1014.4 1014.4 0 0 0 267.2 436.1 1014.3 1014.3 0 0 0 505.4 263.3 1016.6 1016.6 0 0 0 581-58.3c226-94 416-272.9 523.4-496.2a1015.2 1015.2 0 0 0 80.5-628.5 1009.6 1009.6 0 0 0-185.9-416 1018.4 1018.4 0 0 0-395.4-314A1010 1010 0 0 0 1022.3 15zM957 1931.6c-12-11-19.6-19.8-22.9-26.2-3.2-6.5-4.7-13-4.3-19.7.6-10.3 5-19 13.5-26 8.3-7 19.1-10.1 32.3-9.3 12.8.7 22.9 4.7 30.3 12.1a31.2 31.2 0 0 1 10.3 24.4c-.3 6-2.7 11.9-7.3 17.8a91.9 91.9 0 0 1-27.6 20.3 149.5 149.5 0 0 1 25.9 26.6c5.4 8.3 8 16.8 7.4 25.6a37.8 37.8 0 0 1-14.4 28 47.2 47.2
10 0 1-34.1 9.9c-15-.9-26.5-6.3-34.4-16.2-6.3-8-9.2-16.4-8.7-25.4.4-7 3.2-13.8 8.3-20.4 5.1-6.7 13.7-13.8 25.7-21.5zm110 1.4a109.7 109.7 0 0 1-25.8-23.3c-4-6-6.2-12.4-6.6-19a35.3 35.3 0 0 1 10.3-27.4c7.5-8 17.8-12.3 31-13.2 12.8-.8 23.3 2 31.5 8.5a31.2 31.2 0 0 1 13.2 23c.3 6-1.4 12.1-5.2 18.6a91.9 91.9 0 0 1-25 23.4c14.4 9.7 24 17.5 28.8 23.3 6.5 7.6 10 15.8 10.5 24.6.7 11.1-3 21-11 29.4-8 8.4-18.9 13-32.7 14-15 .9-27-3.1-36-12a36.7 36.7 0 0 1-11.7-24.2c-.4-7 1.5-14.1 5.8-21.3 4.3-7.2 12-15.3 23-24.4zm-104.8 3.3a55 55 0 0 0-15.4 17 47.3 47.3 0 0 0-5.8 20.7c-.6 10 1.7 18.2 6.8 24.6 5.2 6.4 12 9.8 20.5 10.3 8.4.4 15.3-1.5 20.7-6a23 23 0 0 0 8.6-16.9c.3-5.6-1-10.7-3.6-15.3-5-8.6-15.7-20-31.8-34.4zm110.6.8a55 55 0 0 0-13.2 18.7 47.3 47.3 0 0 0-3.4 21.2c.6 10 3.9 18 9.7 23.6 5.9 5.7 13 8.3 21.6 7.8 8.4-.5 15-3.3 19.8-8.4 4.8-5 7-11 6.5-17.8a26.6 26.6 0 0 0-5.4-14.8c-6-8-17.9-18-35.6-30.3zm-231.5-85.7l41.4-11.6 3.8.7-24 132a71.3 71.3 0 0 0-1.8 16.6 8.7 8.7 0 0 0 3.7 5.7c2 1.6 6.6 3.1 13.7 4.6l-.8 4.2-58.8-10.6.8-4.3a40.3 40.3 0 0 0 14.6.7c2.4-.7 4.1-2 5.3-3.7 1.2-1.7 2.6-7.3 4.3-16.7l15.3-84.4c2.1-11.3 3-18.7 2.9-22-.1-2.6-.8-4.6-2-6a8 8 0 0 0-4.8-2.7c-2.9-.5-7 0-12.5 1.4l-1.1-3.9zm299.9-3.8l83.8-15.5.8 4.4-23.5 164.7-12.9 2.4 20.7-149.3-43 7.9a41 41 0 0 0-18 6.5 39.4 39.4 0 0 0-12.5 19.3l-3.6-.7 8.2-39.7zM976 1920a83.3 83.3 0 0 0 19-19 35.9 35.9 0 0 0 4.6-16.3c.5-8.2-1.5-14.7-5.8-19.6a25.4 25.4 0 0 0-18.4-8c-8-.5-14.6 1.4-19.9 5.7-5.2 4.4-8 9.6-8.4 15.8-.2 4 .6 8.1 2.4 12.3 1.9 4.2 4.6 8.2 8.2 12.1l18.3 17zm108.5-.8c8.9-9 14.4-16 16.6-21 2.2-5 3-10.6 2.7-16.8a26.2 26.2 0 0 0-8.1-18.8 25.4 25.4 0 0 0-19.3-5.8c-8 .5-14.3 3.2-19 8.1-4.7 5-6.8 10.5-6.4 16.6.2 4 1.5 8 3.8 12s5.5 7.6 9.6 11l20.1 14.7zm-59.3-1714.6a823.1 823.1 0 0 1 331.2 70.3A820.2 820.2 0 0 1 1840 948a824.3 824.3 0 0 1-76.3 428.9 827.5 827.5 0 0 1-294 334.6A824.1 824.1 0 0 1 948 1840 819.7 819.7 0 0 1 219.2 869c23.3-121.8 75-238 149.7-337a827 827 0 0 1 415-291.6 821.7 821.7 0 0 1 237.4-35.7h4zm-2.7 14.8a806.8 806.8 0 0 0-325.2 69.2A811.4 811.4 0 0 0 382.2 539a806.6 806.6 0 0 0-159 406.6 809.9 809.9 0 0 0 112 494.4 812.7 812.7 0 0 0 248.1 257 806 806 0 0 0 749.2 70 813 813 0 0 0 344-272.5A804.9 804.9 0 0 0 1821 1134a810.1 810.1 0 0 0-82.2-479.3A814 814 0 0 0 1351.6 289a804.4 804.4 0 0 0-325-69.5h-4zm-519 404V454.1c.5-3.1 2.2-6 5.1-7 .8-.3 1.6-.3 2.4-.4h1025.7l2.3.4c2.2 1 4.1 2.5 4.8 4.7.3.8.3 1.6.4 2.3V623l-.1.7v.4c1.6 223.4-21.3 445.7-96.7 652.8-46 126.3-113 246.7-206 343-51.3 53-110.5 99.4-176.3 130.9a339.7 339.7 0 0 1-34.7 14.5l-.8.7-2 1c-1.9.4-1.9.5-3.8.3l-1.4.2c-.8-.2-1.6-.2-2.3-.5-1.9-.6-1.4-1.2-3.5-2-46.5-16.4-89-42.6-128.2-72.2-111.1-83.7-194-201.4-251.5-326.8-60.7-132-95.9-275.7-115-421a2330 2330 0 0 1-18.4-315.3v-6.3zm131.7 7h-72.6c-14.6 0-29.2.3-43.7.6h-.5c-1 196.5 17.5 394 76.4 583a1104 1104 0 0 0 117.8 261c60.3 96 138.9 182.1 235.6 240.2 24 14.4 49.1 27.6 75.6 36.5a390 390 0 0 0 78.4-38.2c101.6-61.8 183.8-155.4 244.8-257.8 90.5-152 138.4-326.2 162.5-501.6a2298.2 2298.2 0 0 0 19.8-321.7v-1.4c-13.3-.3-26.5-.5-39.8-.6h-92.3c-124.2 0-248.8.5-373.4 1.1a78438.8 78438.8 0 0 0-388.6-1.1zm363.1 276.8l-.3-.3c-10.6-12.3-13.6-29.8-14.8-46.4-3-40.5 4.1-81.4 12-121 3.8-18.7 8-37.4 12.7-55.8a17 17 0 0 1 16.1-12.4c7.1 0 13.8 5 15.8 12.2 12 45.9 21.6 92.8 24.6 140.4 1.1 18.6 1.4 37.5-2.6 55.9-2.2 9.9-6 20-12.5 27.4 2.8 1.4 5.3 3.3 7.5 6 8.3 10 9 24 10 37.3 2.3 34.6.7 69.4 0 104.3v1.9c25.8-5 50.3-17 68.5-35.4 14-14.3 25.6-34.4 17.2-52.8-5.2-11.3-16.6-19-28-24.9-17.9-9.3-40.2-14.2-47.6-35.7-2.7-8-2.8-16.7-1.5-25 1.8-12.1 8.3-24.4 19.9-29.8a44 44 0 0 1 18.7-3.6c17.3.1 34.7 6.4 49.9 14.7 27.4 17.8 53.6 40.1 66.7 69.4a91 91 0 0 1 4.8 61c-7.3 27-25.3 50-45.1 69-10.6 10-22 19.3-34.1 27.5l-1 .7c22.4 23 43 51 39 84.3-2.4 19.4-14.5 36.8-29.9 49.4a151.4 151.4 0 0 1-35.4 21.3l-.6.3c21.4 23.7 34.1 56 24.2 89.3-8.3 27.7-28 50.6-50.1 68.4l-.6.4c24.9 28 38.6 64.2 35.9 103a190.3 190.3 0 0 1-36.4 96.3v.1c-1.6 1.5-2 2.1-4 2.7-5 1.3-10.3-2.9-9.3-9l.4-3c5.3-35.8 10-73-.5-108.4a63.1 63.1 0 0 0-18.7-30.8 53.2 53.2 0 0 0-7.2-5c-.3 31.7-1.5 63.6-7.5 94.4-2.5 13-5.5 26.5-13.5 36.8-3.3 4.4-8.2 8-14 8.3h-.3-5.7c-9.2-.1-16-9.4-19.6-17.1-8.2-17.9-10.4-38-12.4-58-2.2-21.4-3-43-3.2-64.6a52.3 52.3 0 0 0-15 13.2c-11.4 14.9-14.8 34.4-16.1 52.5-2 27.5.9 55 5 82.3v2.5a10 10 0 0 1-2.3 4.2 7.6 7.6 0 0 1-7 1.7c-2.3-.7-2.7-1.1-4.3-3.3a195.3 195.3 0 0 1-25.6-48.7c-13.3-36.5-15.3-78 1.7-114.4 6-13 14.1-24.9 23.7-35.6 0 0-3.2-2.6-5.8-5-25.8-22.2-47.7-51.5-48.5-86.6-.5-24.5 11.3-48.2 28-66.6l-7.3-3.4c-19-9.2-36.7-21.8-48-39.1-9.3-14.1-13.1-31.5-10-48.5 4.6-25.1 20.7-46.2 37.7-63.8l.5-.6a223 223 0 0 1-65.7-65c-15.1-24.1-22.6-54-13.7-82.4 10.5-33.7 39.6-59.6 69.5-79.3 0 0 1.5-1 1.8-1l.9-.6a108.2 108.2 0 0 1 48.7-13.9h.5c12.8.1 25.8 5.4 32.5 17.3 3.7 6.5 5.3 14 5.8 21.3a42.9 42.9 0 0 1-9.3 32.1c-9.7 11-24.7 15.6-37.2 21.8-15.7 7.7-32.7 18.3-33.9 37.4a51 51 0 0 0 12 32.8c18 23.8 46.4 38.9 76.5 44.5-.8-35.3-2.3-70.5 0-105.6 1.1-16.7 1.5-36 17.4-43.9zm53.4 157.8v-5.3c.8-36.6 2.8-73.3 0-109.8a79.3 79.3 0 0 0-3.8-22.6c-1.4-3.6-4.1-6.8-7.9-7.8a
154.2 54.2 0 0 0-16.7-1h-.7c-8.2 0-17.5-.6-21.2 5.5-4.7 7.6-4.9 17.5-5.6 27-1.7 24.8-1 49.8-.6 74.7a46996.6 46996.6 0 0 0 .8 39.6l.5 23.1.2 8.2-.2 1.6 2.2 123.6.4 2.3c0 9.3.2 18.5.3 27.8 0 1.3.2 3.3-.2 5.4a13653 13653 0 0 1 1.3 179.3v2.7c0 35.7.6 71.3 8 106.2 1.9 9.4 4 19 9.1 26.6 1 1.5 2 3.2 3.7 3.7 2.4.6 5.3.4 7.1-1.6 5.2-5.5 7.2-13.6 9.2-21.3 6.6-25.6 8-52.3 8.9-78.9.4-11.3.6-22.7.6-34-.2-1.7 0-3.1 0-4.6l.1-59.7v-3.7l.1-.5c.2-38 .6-76 1-114l-.1-1.5c0-9.4.2-18.7.3-28v-3.9l.3-1c.6-42 1.4-83.8 2.2-125.7v-.8l.4-23.8.2-7.5v-.3zM882 883.5c-21.6 15.2-41.3 33.6-51.6 57a75.3 75.3 0 0 0-4.4 47.5c6.3 26.6 24.4 48.9 44.3 67.3A233.2 233.2 0 0 0 908 1084l.1.1c1.6 1.3 2.2 1.5 3 3.4 1.7 3.7-1 7.6-4.8 11.4a153.8 153.8 0 0 0-31.2 41.5 57.9 57.9 0 0 0-2.8 48c10.8 24.6 37.8 40.5 62.6 48.7 0 0 4.3 2 5 5.4.9 3.6-2 6.9-4.4 9.4-19.6 19.7-33.9 46.5-27.2 75.5 6.6 28.7 27.8 51.8 49.6 68.3l3.3 2.4 1.9 1.8c.3.7.9 1.5 1 2.3 1.5 4.9-3.4 8.8-7.3 13.2-21 23.8-33.4 55-32 87.5.8 21.4 6.8 42.5 15.7 61.9l-.3-4.7c-1.9-25-2.3-50.3 4.7-75.4a77.1 77.1 0 0 1 40.2-50.2l.5-.3a23073.2 23073.2 0 0 0-.1-57.5c-16.5-8-32.1-18.8-42-33.5-4.9-7.4-7.6-16-7.1-25.2 1.4-28.6 22.2-54.4 48-66.7l-.3-21.6c-20-6-41.2-10.9-57.4-23.7A52.8 52.8 0 0 1 907 1163a49 49 0 0 1 13.1-26.1c16.6-19.1 39-32.7 61.7-44.5l-.4-20.4a146.2 146.2 0 0 1-81.3-42c-15.2-16-27-37.2-21-60.3 4-15.4 16.3-26.7 30.2-35.2l-.3-3c-2.8-18.7-11-37.7-26.9-48zm283.5 0c-1 .5-2 1-2.8 1.7-14.8 11.2-22.4 30.2-24.8 48.8a70.4 70.4 0 0 1 25.7 23.6 47.6 47.6 0 0 1 6 31.9c-3.6 22.9-20.3 42.1-39.7 56.1a152.5 152.5 0 0 1-63.4 26.5l-.4 16.8v3.4l1.4.8c25.8 13.6 52.4 29.2 67.2 53.2a38.5 38.5 0 0 1 5.8 25.7c-1.9 14.1-9.9 27.2-21.5 35.6-15.9 11.6-36.1 16.4-55.1 22.2h-.2l-.3 21.6c25.5 12 46.5 36.7 48 66.7.8 16.4-10 31.3-22.7 41.9-8 6.7-17 12.2-26.5 16.9v57.3s4.5 2.2 8 4.3a67.7 67.7 0 0 1 21.9 21.4c12.7 19.7 15.8 43.9 16.4 66.7.3 12.7-.2 25.3-1.3 38v.2c14.2-31 20.9-66.3 11.3-99.9a131.5 131.5 0 0 0-33-55s-1.2-1.4-1.7-2.5c-1-2.4-.7-5.4.8-7.5.6-.9 1.6-1.6 2.4-2.2a148.8 148.8 0 0 0 41-43.3 79.7 79.7 0 0 0 12.7-50c-2.4-21-15.7-40-30.7-54.5 0 0-1.2-1.2-1.7-2.3a7.7 7.7 0 0 1 2.1-9.3c1-.7 2-1 3-1.4a120 120 0 0 0 52.8-34 53.6 53.6 0 0 0 13.1-39.6c-2.2-21.6-15.8-40.2-30-55.8-3.5-4-7.3-7.8-11.1-11.5l-1.4-1.8c-1-3-1-6.4 1-8.6.9-1 2.1-1.7 3.2-2.3 28.4-17.9 54.6-41.3 70.5-70a84.6 84.6 0 0 0 11-55.7c-5.6-30.6-30.2-55.2-57-74.1zm682.6 385.3l86.3 76-5.4 14.4-116 3.8 5.7-15.2 34.9-.4 15.6-42-26.4-22.5 5.3-14.1zm-863.5-.7c-18.7 11.1-33 30.4-33.4 52.4-.2 11.5 9.1 21.4 18.7 29 4.9 4 10 7.4 15.5 10.5-.2-30.7-.4-61.3-.8-91.9zm78.6.1l
1-.9 91.7a83.9 83.9 0 0 0 28.9-24.1 27.7 27.7 0 0 0 5-18.6c-1.5-20.4-15.5-38.4-33-49zm815.4 45l-12.7 34.1 31.8-.1c9.7 0 17.5.1 23.5.6-6-3.7-11.7-7.9-17.2-12.6l-25.4-22zm-1693.2 20l-5.2-12.4c5-2.3 8.7-5 11.2-8.3 2.6-3.3 4.1-7.5 4.6-12.8a41 41 0 0 0-2-16.7c-1.7-5.2-4-9.5-6.7-13a20 20 0 0 0-9.2-6.7c-3.3-1-6.5-1-9.7 0a14 14 0 0 0-7.5 5.5 21.7 21.7 0 0 0-3 11.1c-.2 3.1 0 9.7.9 19.8.8 10.1.8 17.4 0 21.8a29 29 0 0 1-6 14c-3 3.6-6.8 6.2-11.5 7.7a27.3 27.3 0 0 1-16 .3 28.6 28.6 0 0 1-14.3-9.5 51.1 51.1 0 0 1-9.5-17.6 53.8 53.8 0 0 1-2.9-21.3 30.4 30.4 0 0 1 21-27l5.1 12.6a22 22 0 0 0-12.3 11.8c-2 5.1-1.7 11.6.8 19.4 2.6 8.2 6 13.7 10.3 16.5 4.2 2.7 8.4 3.4 12.6 2 3.7-1.1 6.3-3.4 7.8-6.9 1.5-3.3 1.8-10.9.7-22.7-1-11.8-1.4-20-.8-24.7.8-6.8 2.8-12.4 6.1-16.6 3.3-4.1 7.7-7.1 13.2-9 5.4-1.7 11-1.8 16.8-.2 5.9 1.5 11 4.8 15.6 9.8a61.8 61.8 0 0 1 13.9 43 34.2 34.2 0 0 1-7.4 18.5 36.2 36.2 0 0 1-16.6 11.6zm1685.2-158.7l104.5 24.6-3.3 14.2-95 35.5 82 19.4-3.1 13.3-104.5-24.7 3.3-14.2 95.1-35.5-82.1-19.4 3.1-13.2zM136.3 1236c-17.5 3.3-32.1 1.1-43.8-6.4a48.8 48.8 0 0 1-21.6-33.7c-1.8-9.8-1.1-19 2-27.7a46.4 46.4 0 0 1 16.2-21.5 64.3 64.3 0 0 1 27.2-11.4c10.7-2 20.7-1.6 30 1.1a45 45 0 0 1 22.6 14.9 53.4 53.4 0 0 1 11.2 24.4c1.9 10 1.1 19.2-2.2 28a47.1 47.1 0 0 1-16.4 21.4c-7.5 5.6-16 9.2-25.2 11zm-2.5-14.4a43 43 0 0 0 28.2-15.8c6-8.2 8.1-17.5 6.2-27.8a34.3 34.3 0 0 0-16-24 45.6 45.6 0 0 0-33.3-4.3 55 55 0 0 0-21.7 8.5 34 34 0 0 0-14.3 35.4 36.3 36.3 0 0 0 15 23.6c8 5.9 20 7.3 36 4.4zM982.1 1109c-16.2 8.8-31.9 18.9-45.1 31.7-7.4 7-15.4 15.2-15.3 25.3a39 39 0 0 0 19.3 31.7c12.9 8.1 28 12 43 16.4l-1.9-105.1zm83.7 0l-1.8 105c13.2-3.8 26.4-7.4 38.3-13.7a41.4 41.4 0 0 0 23.7-32.8c.7-7.6-4.1-14.6-9.3-20.7a174 174 0 0 0-50.9-37.8zm817.8-41.8l106.7 11.8-5.2 47.3c-1 9.5-2.8 16.6-5.2 21.4a23.9 23.9 0 0 1-11.5 10.7 30.5 30.5 0 0 1-16.6 2.7 27 27 0 0 1-18.3-9.5 37.4 37.4 0 0 1-7.4-23.8 36.8 36.8 0 0 1-6.3 8c-4.2 3.7-9.4 7-15.4 10.1l-31.1 15.4 2-17.8 23.7-11.7c6.8-3.4 12.1-6.2 15.8-8.5 3.7-2.3 6.3-4.4 8-6.4 1.5-2 2.7-4 3.5-6.1.5-1.6 1-4.2 1.4-7.8l1.8-16.4-47.4-5.2 1.5-14.2zm58 20.7l-3.3 30.4c-.7 6.4-.6 11.6.4 15.3 1 3.8 2.7 6.8 5.5 9 2.7 2.3 5.8 3.6 9.2 4 5 .5 9.4-.9 13-4.2 3.7-3.3 6-8.9 6.9-16.8l3.7-33.8-35.3-3.9zM126 1032.7l3-14.4c11.7 2.4 20.9 7.3 27.4 14.7 6.5 7.4 10 16.7 10.6 28a51 51 0 0 1-5.7 28.5 44.1 44.1 0 0 1-19.6 17.5 73 73 0 0 1-58 2.2 44 44 0 0 1-19.8-17.2 53.3 53.3 0 0 1-7.8-25.7 44 44 0 0 1 6.8-27.5c5.1-7.6 12.5-13 22.3-16.5l4 13.9a33.2 33.2 0 0 0-16.5 11.6c-3.3 5-4.8 11-4.5 18.2.5 8.2 2.8 15 7 20.3 4.2 5.4 9.7 9 16.5 10.9 6.8 1.9 13.7 2.7 20.8 2.3 9-.4 17-2.2 23.6-5.2 6.7-3 11.6-7.4 14.7-13.1 3-5.8 4.4-12 4.1-18.5-.4-8-3-14.6-7.9-19.9a35.2 35.2 0 0 0-21-10.1zm1757-65.4l107.3-1.7 1.2 77.7-12.7.2-1-63.4-32.8.5.9 59.4-12.6.2-1-59.4-36.5.5 1 66-12.6.1-1.3-80zM164.3 996.7l-107.3-4 .6-14.1 107.3 3.9-.6 14.2zm1.2-39.7L59 944l9.4-77.1 12.6 1.5-7.7 63 32.6 4 7.2-59 12.5 1.5-7.2 59 36.3 4.4 8-65.4 12.6 1.5-9.7 79.6zm1709.9-54l93.9-12.2-4.6-35 12.6-1.7 11 84.4-12.6 1.6-4.6-35.2-93.9 12.3-1.8-14.1zm-952.2 24l.4-.1c12-5.7 26.2-9.5 32-21.1 3.9-8 3.3-17.6.7-26.1-1.3-4.6-3.9-9-8-11.7a26.2 26.2 0 0 0-14.3-3.5 89.7 89.7 0 0 0-38.4 10.5 86.1 86.1 0 0 1 27.6 52zm228.5-52.1a89.3 89.3 0 0 0-40.2-10.3c-6 .3-12.1 2.1-16 7-5 6.2-6 14.8-5.9 22.4.2 5.5 1.4 11.1 5 15.6 6.7 8.2 17.3 11.6 26.5 15.8l2.8 1.3c3.5-20 12.2-39.4 27.8-51.8zm-126.4 28.8c3.6-.2 7-1.4 10-3.5 9.5-7.2 12-20.8 13.6-33.2 2.6-20.5 1.1-41.5-1.2-62.3-4.1-37.8-12-75.4-21-112.3-.7-2.6-.8-6.1-2.9-6.1-1.6 0-1.8 2.3-2.3 4.4-11.5 46.4-21.6 93.8-23.7 141.2-.8 19-.8 38.7 5.7 55.3 2.9 7.2 7.9 14.1 15.2 16l3.6.5h2.9zM1847 770.4l104-26.5 3.6 14-67.7 75.6 81.7-20.9 3.3 13.2-104 26.5-3.6-14 67.8-75.6-81.7 20.9-3.4-13.2zM185.3 831.7l-92.1-22-8.2 34.5-12.3-3 19.7-82.7 12.3 2.9-8.2 34.6 92.1 21.8-3.3 13.9zm8.9-40.7l-88-74 5-14.5 115.9-6.4-5.3 15.3-34.9 1.2-14.7 42.4 26.9 21.8-5 14.2zm-31.6-43.7l12-34.4-31.8.9c-9.7.3-17.5.2-23.5-.1 6 3.5 11.8 7.6 17.4 12.2l26 21.4zm1671-13.8l101.3-35.6 4.7 13.4-101.3 35.6-4.7-13.4zm-1665-73.6L149 655l-16.5-7.1 6-13.8 16.5 7.2 17 11.2-3.2 7.4zm1326-44.3h34.8v-154l-1010.9.1v153.9h73c43-.2 85.8-.1 128.6 0h691.6c27.6 0 55.2-.3 82.8 0zm233.4-86.8l112.9-22 8 13-67.6 94.2-8.6-13.7 21-27.9-24-38-33.7 7.2-8-12.8zm-922.3-29h12.1v52.8c0 9.2-1 16.5-3 22-2.2 5.3-6 9.7-11.4 13.1a40 40 0 0 1-21.3 5.1 44 44 0 0 1-21-4.4c-5.5-3-9.4-7.3-11.8-12.9a61.1 61.1 0 0 1-3.5-22.9v-52.9H758v52.8c0 8 .7 13.8 2.2 17.6 1.5 3.8 4 6.7 7.6 8.7 3.6 2 8 3 13.2 3 8.9 0 15.3-2 19-6 3.8-4 5.7-11.8 5.7-23.3v-52.8zm256 46.9c0-15.2 4-27.1 12.2-35.7a41.6 41.6 0 0 1 31.6-12.9c8.4 0 16 2 22.8 6 6.8 4 12 9.7 15.6 17a54.9 54.9 0 0 1 5.3 24.5 54 54 0 0 1-5.6 25c-3.8 7.2-9 12.8-16 16.6a45.5 45.5 0 0 1-22.2 5.6c-8.6 0-16.3-2-23-6.2-6.9-4.2-12-9.9-15.5-17a51.6 51.6 0 0 1-5.2-23zm-135 0c0-15.2 4-27.1 12.2-35.7a41.6 41.6 0 0 1 31.6-12.9c8.4 0 16 2 22.8 6 6.8 4 12 9.7 15.6 17a54.8 54.8 0 0 1 5.3 24.5 54 54 0 0 1-5.6 25c-3.8 7.2-9 12.8-16 16.6a45.5 45.5 0 0 1-45.3-.6c-6.8-4.2-11.9-9.9-15.4-1
17a51.7 51.7 0 0 1-5.2-23zm548.1 44.5H1461l-10.7-27.7h-38.2l-10.1 27.7h-12.9l35.2-91.5h13l37.5 91.5zm-845.5 0h-11.6v-91.5H630l48 71.9v-71.9h11.7v91.5h-12.4l-48.1-71.9v72zm546.8 0h-11.7v-91.5h18.3l21.6 64.8 4.4 13.6c1-3.4 2.7-8.2 4.9-14.7l21.9-63.7h16.3v91.5H1240v-76.6l-26.6 76.6h-11l-26.4-77.9v78zm-326.6 0h-11.6v-91.5h12.4l48 71.9v-71.9H910v91.5h-12.4l-48.1-71.9v72zm528.3 0h-12v-91.5h12v91.5zm-781.4 0h-12v-91.5h12v91.5zm686.4 0h-11.6v-91.5h12.4l48 71.9v-71.9h11.7v91.5H1331l-48-71.9v72zM939.2 547c0 11 3 19.7 8.8 26 6 6.4 13.4 9.5 22.4 9.5 9 0 16.6-3.2 22.5-9.6a38.9 38.9 0 0 0 8.8-27.3c0-7.4-1.2-14-3.8-19.5a29 29 0 0 0-27.3-17.5c-8.6 0-16 3-22.2 8.9-6.2 5.8-9.2 15.7-9.2 29.5zm135 0c0 11 3 19.7 8.8 26 6 6.4 13.4 9.5 22.4 9.5 9 0 16.6-3.2 22.5-9.6a38.9 38.9 0 0 0 8.8-27.3c0-7.4-1.3-14-3.8-19.5a29 29 0 0 0-27.4-17.5c-8.5 0-16 3-22 8.9-6.3 5.8-9.4 15.7-9.4 29.5zm707.6-15.2l19.3 30.8 19.2-25.2c5.9-7.7 10.8-13.8 14.9-18.3-6.6 2.5-13.4 4.5-20.5 6l-33 6.7zm-366.3 22h31l-9.5-25.4c-2.9-7.7-5-14-6.5-19-1.1 6-2.8 11.7-4.9 17.5l-10 26.9zm-1108-4.4l-88.8-60.6 8-11.7 88.7 60.5-8 11.8zM1667 453.4l83.4-67.6 9.2 11.3-30 97 65.5-53.2 8.6 10.6-83.4 67.6-9.1-11.3 30-97-65.6 53.2-8.6-10.6zM346.5 495.5l-73.8-59.3-22.2 27.6-9.9-7.9 53.3-66.4 9.9 8-22.3 27.7 74 59.2-9 11.1zm25.4-32.8l-48-104.6 10.8-11L442 390.9l-11.3 11.6-32-13.8-31.4 32.1 15 31.2-10.5 10.8zm1267.7-37.2l77.2-74.5 9.9 10.2-77.3 74.6-9.8-10.3zM362 409.7l25.5-26-29.1-12.8a294 294 0 0 1-21.3-10.1c4 5.7 7.5 11.9 10.7 18.4l14.2 30.5zm1278.3-37l8.3 12.1c-9.9 6.9-19.8 10-29.6 9.6-9.9-.5-19-4.4-27.5-11.7a51 51 0 0 1-16.6-23.9c-2.4-8.3-2-17 1-26.3a73 73 0 0 1 38.6-43.3 44 44 0 0 1 26.2-2.3c8.8 2 16.8 6 24 12.2a44 44 0 0 1 15 24c2 9 .7 18-3.6 27.4l-12.7-6.7a33.2 33.2 0 0 0 3-20c-1.2-5.7-4.6-11-10-15.7a34.7 34.7 0 0 0-19.5-9.1c-6.8-.7-13.2.8-19.2 4.3-6.1 3.6-11.5 8-16.1 13.3a65.5 65.5 0 0 0-12.7 20.7 29.7 29.7 0 0 0-.7 19.7c2 6.2 5.5 11.5 10.4 15.8 6 5.2 12.6 7.9 19.8 8 7.2.2 14.5-2.5 21.9-8zM450.9 384l-68-83 11-9 60 73.2 40.9-33.5 8 9.8L451 384zm1075-55.8l63.2-86.8 11.5 8.4-63.2 86.8-11.5-8.4zm-1007.2 2.3L456.5 243l11.6-8.3 62.2 87.6-11.6 8.2zm21.7-16.9l-19.3-113.4 13.1-7.8 92.6 70-13.9 8.2-27.4-2
11.6-38.6 23 6.5 33.9-13 7.7zm892-44.9l55.5-91.8 31.7 19.1c7.1 4.3 12.3 8 15.5 11.2 4.6 4.4 7.7 9.3 9.5 14.7 2.4 7 2.9 14.5 1.4 22.3a72 72 0 0 1-9.6 24 75 75 0 0 1-13.7 17.1 52.6 52.6 0 0 1-14.3 9.6 39 39 0 0 1-13.4 3.3c-4.3.2-8.9-.5-13.8-2-4.9-1.6-10.1-4-15.7-7.4l-33.1-20zm18.7-3.5l19.6 12c6 3.6 11.2 5.9 15.3 6.8 4.1 1 7.8 1 11.1.3 4.6-1.2 9.2-3.7 13.8-7.6 4.5-3.9 8.9-9.3 13-16.2a50 50 0 0 0 8.8-25c0-7.1-1.8-12.9-5.3-17.4-2.5-3.2-7.3-7-14.6-11.4l-19.3-11.6-42.4 70.1zM544.6 260l31.3-18.6-24.8-19.9c-7.6-6-13.6-11-18-15.2 2.4 6.6 4.2 13.5 5.5 20.6l6 33zm797-33l44-98 70.8 31.9-5.2 11.5-57.8-26-13.5 30 54.2 24.4-5.2 11.5-54.2-24.4-15 33.3 60.2 27-5.2 11.6-73.1-32.8zM637 257.6L594 159.3l13.3-5.9 85.6 54.4-34-77.1 12.5-5.5 43.3 98.3-13.4 5.8-85.6-54.5 34 77.3-12.5 5.5zm88.8-38.8l8.5-114.7 14.7-4.5 73 90.2-15.5 4.6-21.4-27.5-43 13-1.8 34.5-14.5 4.4zm496-30L1252.6 86 1273 92l2.6 80.1.4 16.7a738 738 0 0 1 10.4-14.8l46-64.3 18.3 5.5L1320 218l-13.1-4 25.6-86-55.5 77.2-12.3-3.7-3.7-96.5-26 87.6-13.2-3.9zm-273.2-19.1l-3.8-107.3 37-1.3c8.4-.3 14.7 0 19.2.9a36.4 36.4 0 0 1 16 7.1 43.7 43.7 0 0 1 13.3 17.9 72 72 0 0 1 5.1 25.4 75 75 0 0 1-2 21.7c-1.8 6.4-4 11.7-6.8 15.9a39 39 0 0 1-9.5 10 39.8 39.8 0 0 1-12.6 6 73 73 0 0 1-17.2 2.3l-38.7 1.4zm110.6-1.4l5.2-107.3 14.1.7-5.1 107.3-14.2-.7zm-316.5-.7l34.9-10.5-19.3-25.2a294 294 0 0 1-13.7-19.2c.6 7 .8 14.1.3 21.3l-2.2 33.6zm219.7-11l22.9-.9c7-.2 12.6-1 16.6-2.5 4-1.5 7-3.4 9.4-6 3.2-3.4 5.7-8 7.4-13.8a66.4 66.4 0 0 0 2-20.8 50 50 0 0 0-6.4-25.6 27.8 27.8 0 0 0-13.8-11.7c-3.9-1.3-10-1.8-18.5-1.5l-22.5.8 2.9 82z"],[1,"home-link"],["routerLink","/login",1,"header-login"],[1,"ion-ios-contact","header-icon","right-link"],[1,"pages-wrapper"],[1,"faq-header"],["routerLink","/",1,"landing-link"],[1,"ion-home"],[1,"faq-content"],[1,"faq-question"],["id","q1","type","checkbox",1,"panel"],[1,"plus"],["for","q1",1,"panel-title"],[1,"panel-content"],["href","www.adr.it/portal/adr/Fiumicino/Leonardo_da_vinci","target","_blank"],["href","www.adr.it/portal/adr/Ciampino/Servizi","target","_blank"],["href","www.atac.roma.it"],["href","www.romecavalieri.it/directions.php"],["id","q2","type","checkbox",1,"panel"],["for","q2",1,"panel-title"],["id","q3","type","checkbox",1,"panel"],["for","q3",1,"panel-title"]],template:function(e,t){1&e&&(r.Zb(0,"nb-layout",0),r.Zb(1,"nb-layout-column"),r.Zb(2,"div",1),r.Zb(3,"div",2),r.Zb(4,"label",3),r.Ub(5,"span"),r.Ub(6,"span"),r.Ub(7,"span"),r.Yb(),r.Yb(),r.Ub(8,"input",4),r.Zb(9,"div",5),r.Zb(10,"a",6),r.mc(),r.Zb(11,"svg",7),r.Ub(12,"path",8),r.Yb(),r.lc(),r.Zb(13,"span",9),r.Qc(14,"simi"),r.Yb(),r.Yb(),r.Zb(15,"a",10),r.Ub(16,"i",11),r.Yb(),r.Yb(),r.Yb(),r.Zb(17,"div",12),r.Zb(18,"div",13),r.Qc(19,"Domande Frequenti "),r.Zb(20,"a",14),r.Ub(21,"i",15),r.Yb(),r.Yb(),r.Zb(22,"div",16),r.Zb(23,"div",17),r.Ub(24,"input",18),r.Zb(25,"div",19),r.Qc(26,"+"),r.Yb(),r.Zb(27,"label",20),r.Qc(28,"Come raggiungere la sede congressuale"),r.Yb(),r.Zb(29,"div",21),r.Zb(30,"p"),r.Qc(31,"Il Congress Center Rome Cavalieri \xe8 ubicato a pochi minuti di distanza dalla Citt\xe0 del Vaticano e dal centro storico. Di seguito le informazioni utili per raggiungere la sede."),r.Yb(),r.Zb(32,"p"),r.Zb(33,"b"),r.Qc(34,"Aereo"),r.Yb(),r.Yb(),r.Zb(35,"p"),r.Qc(36,"Aeroporto di Roma Fiumicino \u201cLeonardo da Vinci\u201d"),r.Yb(),r.Zb(37,"p"),r.Qc(38,"Un trenino diretto collega l\u2019Aeroporto di Fiumicino alla Stazione Termini ogni 30 minuti circa."),r.Yb(),r.Zb(39,"a",22),r.Qc(40,"www.adr.it/portal/adr/Fiumicino/Leonardo_da_vinci"),r.Yb(),r.Zb(41,"p"),r.Qc(42,"Aeroporto di Roma Ciampino"),r.Yb(),r.Zb(43,"p"),r.Qc(44,"Numerose linee di autobus collegano l\u2019Aeroporto di Ciampino con la Stazione Termini."),r.Yb(),r.Zb(45,"a",23),r.Qc(46,"www.adr.it/portal/adr/Ciampino/Servizi"),r.Yb(),r.Zb(47,"p"),r.Zb(48,"b"),r.Qc(49,"Treno"),r.Yb(),r.Yb(),r.Zb(50,"p"),r.Qc(51,"Stazione Roma Termini (circa 7 km)"),r.Yb(),r.Zb(52,"p"),r.Qc(53,"Dalla Stazione Termini si consiglia di prendere un taxi o di consultare il sito "),r.Zb(54,"a",24),r.Qc(55,"www.atac.roma.it "),r.Yb(),r.Qc(56," per dettagli sui trasferimenti con i mezzi pubblici."),r.Yb(),r.Zb(57,"p"),r.Qc(58,"Auto"),r.Yb(),r.Zb(59,"p"),r.Qc(60,"Si consiglia di consultare le indicazioni presenti sul sito dell\u2019hotel:"),r.Yb(),r.Zb(61,"a",25),r.Qc(62,"www.romecavalieri.it/directions.php"),r.Yb(),r.Yb(),r.Yb(),r.Zb(63,"div",17),r.Ub(64,"input",26),r.Zb(65,"div",19),r.Qc(66,"+"),r.Yb(),r.Zb(67,"label",27),r.Qc(68,"Supporti audiovisivi"),r.Yb(),r.Zb(69,"div",21),r.Qc(70,"Ogni sala sar\xe0 provvista di personal computer per la presentazione in videoproiezione dei lavori. I file dovranno essere preparati con il programma Power Point di Windows \u2013 non Macintosh/Apple \u2013 con risoluzione 800x600 o 1024x768. I file dovranno essere conseg
1nati su Pendrive. Non \xe8 consentito utilizzare il proprio computer. La consegna del materiale allo Slide Center dovr\xe0 essere effettuata almeno un\u2019ora prima della corrispondente sessione. "),r.Yb(),r.Yb(),r.Zb(71,"div",17),r.Ub(72,"input",28),r.Zb(73,"div",19),r.Qc(74,"+"),r.Yb(),r.Zb(75,"label",29),r.Qc(76,"Volumi congressuali"),r.Yb(),r.Zb(77,"div",21),r.Zb(78,"p"),r.Zb(79,"b"),r.Qc(80,"Soci SIMI in regola"),r.Yb(),r.Yb(),r.Zb(81,"p"),r.Qc(82,"Presenti:"),r.Yb(),r.Zb(83,"p"),r.Qc(84,"Volume degli Atti e volume delle Comunicazioni Orali e Poster."),r.Yb(),r.Zb(85,"p"),r.Qc(86,"Non presenti:"),r.Yb(),r.Zb(87,"p"),r.Qc(88,"Volume degli Atti e volume delle Comunicazioni Orali e Poster a domicilio a cura della SIMI previa specifica richiesta."),r.Yb(),r.Zb(89,"p"),r.Zb(90,"b"),r.Qc(91,"Soci Junior"),r.Yb(),r.Yb(),r.Zb(92,"p"),r.Qc(93,"I Soci Junior sono ammessi alle sessioni scientifiche, ricevono l\u2019attestato di partecipazione, non hanno diritto ai volumi congressuali."),r.Yb(),r.Zb(94,"p"),r.Zb(95,"b"),r.Qc(96,"Non Soci SIMI"),r.Yb(),r.Yb(),r.Zb(97,"p"),r.Qc(98,"Presenti:"),r.Yb(),r.Zb(99,"p"),r.Qc(100,"Volume degli Atti e volume delle Comunicazioni Orali e Poster."),r.Yb(),r.Zb(101,"p"),r.Qc(102,"Non presenti:"),r.Yb(),r.Zb(103,"p"),r.Qc(104,"Volume degli Atti e volume delle Comunicazioni Orali e Poster a domicilio a cura della Segreteria Organizzativa previa specifica richiesta."),r.Yb(),r.Yb(),r.Yb(),r.Yb(),r.Yb(),r.Yb(),r.Yb())},directives:[qn.P,qn.O,wn.f],styles:[".faq-header[_ngcontent-%COMP%] .landing-link[_ngcontent-%COMP%], .simi-link[_ngcontent-%COMP%], .simi-logo[_ngcontent-%COMP%]{color:#4472c4;text-decoration:none}.faq-header[_ngcontent-%COMP%] .landing-link[_ngcontent-%COMP%]:hover, .simi-link[_ngcontent-%COMP%]:hover, .simi-logo[_ngcontent-%COMP%]:hover{color:#859fce}.faq-header[_ngcontent-%COMP%] .landing-link[_ngcontent-%COMP%]:active, .simi-link[_ngcontent-%COMP%]:active, .simi-logo[_ngcontent-%COMP%]:active{color:#325491}.faq-header[_ngcontent-%COMP%] .landing-link[_ngcontent-%COMP%]:focus, .simi-link[_ngcontent-%COMP%]:focus, .simi-logo[_ngcontent-%COMP%]:focus{color:#4472c4}.column-fc[_ngcontent-%COMP%], .fc[_ngcontent-%COMP%]{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.column-fc[_ngcontent-%COMP%], .column-fsb[_ngcontent-%COMP%], .fc[_ngcontent-%COMP%], .fsb[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex}.column-fsb[_ngcontent-%COMP%], .fsb[_ngcontent-%COMP%]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.column-fc[_ngcontent-%COMP%], .column-fsb[_ngcontent-%COMP%]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.simi-logo[_ngcontent-%COMP%]{margin:auto 0}.simi-logo[_ngcontent-%COMP%] .home-link[_ngcontent-%COMP%]{text-transform:uppercase;font-size:x-large;margin-left:1rem}title-header[_ngcontent-%COMP%]{padding-top:11px;padding-left:10px;color:#4472c4}.svg-simi-home[_ngcontent-%COMP%]{height:30px;float:left}.svg-simi-home[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:#4472c4}.nav-links-2[_ngcontent-%COMP%]{padding:0 2rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:100%}.nav-links-2[_ngcontent-%COMP%] .header-login[_ngcontent-%COMP%]{margin:auto 0;padding-top:0!important;padding-bottom:0!important}.nav-links-2[_ngcontent-%COMP%] .header-icon[_ngcontent-%COMP%]{font-size:2.5rem;vertical-align:middle}.nav[_ngcontent-%COMP%]{position:fixed;z-index:3;height:50px;width:100%;background:hsla(0,0%,100%,.95)}.nav-links[_ngcontent-%COMP%] .header-login[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.nav-links[_ngcontent-%COMP%] .header-icon[_ngcontent-%COMP%]{font-size:2.5rem;vertical-align:middle}.nav[_ngcontent-%COMP%] > .nav-header[_ngcontent-%COMP%]{display:inline}.nav[_ngcontent-%COMP%] > .nav-header[_ngcontent-%COMP%] > .nav-title[_ngcontent-%COMP%]{display:inline-block;font-size:22px;padding:10px}.nav[_ngcontent-%COMP%] > .nav-btn[_ngcontent-%COMP%]{display:none}.nav[_ngcontent-%COMP%] > .nav-links[_ngcontent-%COMP%]{display:inline;float:right;margin-left:auto}.nav[_ngcontent-%COMP%] > .nav-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;text-decoration:none;font-size:1rem;padding:1rem;color:#4472c4}.nav[_ngcontent-%COMP%] > .nav-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:hover{color:#859fce}.nav[_ngcontent-%COMP%] > .nav-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:active{color:#325491}.nav[_ngcontent-%COMP%] > .nav-check[_ngcontent-%COMP%]{display:none}.faq-header[_ngcontent-%COMP%]{font-size:3rem;border-bottom:1px dotted #ccc;padding:24px;color:#2f4f4f}.faq-header[_ngcontent-%COMP%] .landing-link[_ngcontent-%COMP%]{float:right}.faq-content[_ngcontent-%COMP%]{margin:0 auto;background:#fff}.faq-question[_ngcontent-%COMP%]{padding:20px 0;border-bottom:1px dotted #ccc}.panel-title[_ngcontent-%COMP%]{color:#708090;font-size:1.7rem;width:100%;position:relative;margin:0;padding:10px 10px 0 48px;display:block;cursor:pointer}.panel-content[_ngcontent-%COMP%]{font-size:1.2rem;padding:0 14px;margin:0 40px;height:0;overflow:hidden;z-index:-1;position:relative;opacity:0;-webkit-transition:.4s ease;transition:.4s ease}.panel[_ngcontent-%COMP%]:checked ~ .panel-content[_ngcontent-%COMP%]{height:auto;opacity:1;padding:14px;z-index:auto}.plus[_ngcontent-%COMP%]{position:absolute;margin-left:20px;margin-top:4px;z-index:5;font-size:42px;line-height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;
1-o-user-select:none;user-select:none;-webkit-transition:.2s ease;transition:.2s ease}.panel[_ngcontent-%COMP%]:checked ~ .plus[_ngcontent-%COMP%]{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.panel[_ngcontent-%COMP%]{display:none}@media (max-width:576px){.pages-wrapper[_ngcontent-%COMP%]{padding:4rem 0!important}.faq-header[_ngcontent-%COMP%]{font-size:2rem}.faq-header[_ngcontent-%COMP%] .landing-link[_ngcontent-%COMP%], .faq-header[_ngcontent-%COMP%] .simi-link[_ngcontent-%COMP%], .faq-header[_ngcontent-%COMP%] .simi-logo[_ngcontent-%COMP%]{display:none}.panel-title[_ngcontent-%COMP%]{font-size:1.5rem}.panel-content[_ngcontent-%COMP%]{font-size:1rem}}.landing-father[_ngcontent-%COMP%] nb-layout-column[_ngcontent-%COMP%]{padding:0!important}.pages-wrapper[_ngcontent-%COMP%]{padding:5rem}.blu-simi[_ngcontent-%COMP%]{color:#4472c4}.logo-containter[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.button[_ngcontent-%COMP%]{padding:12px;font-size:12px;font-weight:400;text-align:center;cursor:pointer;text-transform:uppercase}.button-danger[_ngcontent-%COMP%]{border-radius:.5rem;margin-top:1rem;color:#fff;-webkit-box-shadow:0 0 5px rgba(0,0,0,.17);box-shadow:0 0 5px rgba(0,0,0,.17);transition:all .3s ease-in-out 0s;-moz-transition:all .3s ease-in-out 0s;-webkit-transition:all .3s ease-in-out 0s;-o-transition:all .3s ease-in-out 0s}.button-danger[_ngcontent-%COMP%], .button-danger[_ngcontent-%COMP%]:active, .button-danger[_ngcontent-%COMP%]:hover{background:-webkit-gradient(linear,left top,right bottom,from(#e66465),to(#000));background:linear-gradient(to bottom right,#e66465,#000)}.gradient-icon[_ngcontent-%COMP%], .icon-box[_ngcontent-%COMP%] .main-icon[_ngcontent-%COMP%], .nav-links[_ngcontent-%COMP%] .header-icon[_ngcontent-%COMP%], .nav-links-2[_ngcontent-%COMP%] .header-icon[_ngcontent-%COMP%]{background:-webkit-gradient(linear,left top,right bottom,from(#4472c4),to(#000));background:linear-gradient(to bottom right,#4472c4,#000);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.gradient-icon[_ngcontent-%COMP%]:before, .icon-box[_ngcontent-%COMP%] .main-icon[_ngcontent-%COMP%]:before, .nav-links[_ngcontent-%COMP%] .header-icon[_ngcontent-%COMP%]:before, .nav-links-2[_ngcontent-%COMP%] .header-icon[_ngcontent-%COMP%]:before{display:inline}.icon-box[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 0}.icon-box[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1.5rem;vertical-align:middle;padding-left:1rem;color:#325491}.icon-box[_ngcontent-%COMP%] .main-icon[_ngcontent-%COMP%]{font-size:2rem;vertical-align:middle}"]}),e})(),Gn=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Nb({type:e,selectors:[["ngx-terms-conditions"]],decls:210,vars:0,consts:[["windowMode",""],["fixed",""],[1,"header-container"],[1,"logo-containter"],["href","/",1,"navigation"],["src","../../../assets/images/logo-simi.png","width","50px",1,"header-logo"],[1,"logo",2,"padding-left","1rem"],[1,"main-content"],["type","A"],["type","circle"],["href","[email protected]"],["href","http://www.garanteprivacy.it/web/guest/home/docweb/-/docweb- display/docweb/1311248"],["href","http://eur- lex.europa.eu/legal-content/IT/TXT/?uri=uriserv:OJ.L_.2016.119.01.0001.01.ITA&toc=OJ:L:2016:119:TOC"],["href"," https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage"],["href","http://www.google.com/intl/en/analytics/privacyoverview.html"],["href",""],["href","https://support.twitter.com/articles/20170519-uso-dei-cookie-e-di-altre-tecnologie-simili-da-parte-di-twitter#"],["href","https://www.facebook.com/help/cookies"],["href","https://www.linkedin.com/legal/cookie_policy"],["href","http://www.google.com/intl/it/policies/privacy/"],["href","http://www.youronlinechoices.com/it/le-tue-scelte; http://www.aboutcookies.org/"],["type","a"],["href","https://congressi.simi.it/p/docs/privacy.pdf"]],template:function(e,t){1&e&&(r.Zb(0,"nb-layout",0),r.Zb(1,"nb-layout-header",1),r.Zb(2,"div",2),r.Zb(3,"div",3),r.Zb(4,"a",4),r.Zb(5,"i"),r.Ub(6,"img",5),r.Yb(),r.Yb(),r.Zb(7,"div",6),r.Qc(8," SIMI"),r.Zb(9,"span"),r.Qc(10,"Societ\xe0 Italiana di Medicina Interna"),r.Yb(),r.Yb(),r.Yb(),r.Yb(),r.Yb(),r.Zb(11,"nb-layout-column",7),r.Zb(12,"nb-card"),r.Zb(13,"nb-card-body"),r.Zb(14,"h5"),r.Qc(15,"Informativa Privacy"),r.Yb(),r.Zb(16,"b"),r.Qc(17,"Titolare del trattamento"),r.Yb(),r.Zb(18,"p"),r.Qc(19," Societa\u0300 Italiana di Medicina Interna con sede in Viale dell\u2019Universita\u0300, 25 \u2013 00185 Roma, e\u0300 il Titolare del trattamento dei dati personali raccolti su questo sito ai sensi e per gli effetti del Codice della Privacy. Il titolare del trattamento dati (legale rappresentante) determina le finalita\u0300 e i mezzi del trattamento dati. Conformemente all\u2019impegno e alla cura che Societa\u0300 Italiana di Medicina Interna dedica alla tutela dei dati personali, La informiamo sulle modalita\u0300, finalita\u0300 e ambito di comunicazione e diffusione dei Suoi dati personali e sui Suoi diritti, in conformita\u0300 all\u2019art. 13 D.Lgs. 30.6.2003 n. 196 (in seguito, \u201cCodice Privacy\u201d) e dell\u2019art. 13 Regolamento UE n. 2016/679 (in seguito, \u201cGDPR\u201d) che i Suoi dati saranno trattati con le modalita\u0300 e per le finalita\u0300 seguenti: "),r.Yb(),r.Zb(20,"ol"),r.Zb(21,"li"),r.Zb(22,"b"),r.Qc(23,"Oggetto del trattamento"),r.Yb(),r.Zb(24,"p"),r.Qc(25," Il Titolare tratta i dati personali forniti dall'utente, identificativi (ad esempio, nome, cognome, ragione sociale, indirizzo, telefono, email, riferimenti bancari e di pagamento, denominazione dell\u2019azienda, partita Iva, nome referente, indirizzo email, numero di telefono) - in seguito, \u201cdati personali\u201d o anche \u201cdati\u201d - da Lei comunicati in occasione dell\u2019iscrizione alla Societa\u0300 Italiana di Medicina Interna e/o in occasione della conclusione di contratti per i servizi del Titolare e dati raccolti automaticamente durante la navigazione sul nostro
1sito da parte dell'utente come dati tecnici quali ad esempio indirizzo IP, tipo di browser e dati tramite cookie per garantire una migliore esperienza di utilizzo del nostro sito. Per avere informazioni complete sui cookie da noi utilizzati visita la pagina dedicata alla cookie policy. "),r.Yb(),r.Yb(),r.Zb(26,"li"),r.Zb(27,"b"),r.Qc(28,"Finalita\u0300 e durata del trattamento I Suoi dati personali sono trattati:"),r.Yb(),r.Zb(29,"ol",8),r.Zb(30,"li"),r.Qc(31,"senza il Suo consenso espresso (art. 24 lett. a), b), c) Codice Privacy e art. 6 lett. b), e) GDPR), per le seguenti Finalita\u0300 di Servizio: "),r.Zb(32,"ul",9),r.Zb(33,"li"),r.Qc(34,"concludere i contratti per i servizi del Titolare;"),r.Yb(),r.Zb(35,"li"),r.Qc(36,"adempiere agli obblighi precontrattuali, contrattuali e fiscali derivanti da rapporti con Lei in essere; "),r.Yb(),r.Zb(37,"li"),r.Qc(38,"adempiere agli obblighi previsti dalla legge, da un regolamento, dalla normativa comunitaria o da un ordine dell\u2019Autorita\u0300 (come ad esempio in materia di antiriciclaggio); "),r.Yb(),r.Zb(39,"li"),r.Qc(40,"esercitare i diritti del Titolare, ad esempio il diritto di difesa in giudizio;"),r.Yb(),r.Zb(41,"li"),r.Qc(42,"per la salvaguardia degli interessi vitali dell'interessato o di un'altra persona;"),r.Yb(),r.Zb(43,"li"),r.Qc(44,"per l'esecuzione di un compito di interesse pubblico da parte del titolare del trattamento;"),r.Yb(),r.Zb(45,"li"),r.Qc(46,"per il perseguimento del legittimo interesse del titolare del trattamento o di terzi."),r.Yb(),r.Yb(),r.Yb(),r.Zb(47,"li"),r.Qc(48,"Solo previo Suo specifico e distinto consenso (artt. 23 e 130 Codice Privacy e art. 7 GDPR), per le seguenti Finalita\u0300 di Marketing: "),r.Zb(49,"ul",9),r.Zb(50,"li"),r.Qc(51," inviarLe via email, posta e/o sms e/o contatti telefonici, newsletter, comunicazioni commerciali e/o materiale pubblicitario su prodotti o servizi offerti dal Titolare, rilevazione del grado di soddisfazione sulla qualita\u0300 dei servizi o iniziative (quali ad esempio convegni organizzati da Societa\u0300 Italiana di Medicina Interna); Le segnaliamo che se e\u0300 gia\u0300 nostro iscritto, potremo inviarLe comunicazioni commerciali relative a servizi e prodotti del Titolare analoghi a quelli di cui ha gia\u0300 usufruito, salvo Suo dissenso (art. 130 c. 4 Codice Privacy). Per negare il proprio consenso a questo utilizzo dei dati sara\u0300 possibile contattare Societa\u0300 Italiana di Medicina Interna e revocare il proprio consenso a questo tipo di trattamento secondo quanto previsto dai diritti dell'interessato di cui all\u2019art. 7 Codice Privacy e art. 15 e 16-21 GDPR. I diritti dell'interessato sono pienamente elencati al punto 8 dell'informativa. "),r.Yb(),r.Yb(),r.Yb(),r.Yb(),r.Yb(),r.Ub(52,"br"),r.Zb(53,"li"),r.Zb(54,"b"),r.Qc(55,"Modalita\u0300 e durata del trattamento"),r.Yb(),r.Zb(56,"p"),r.Qc(57," Il trattamento dei Suoi dati personali e\u0300 realizzato per mezzo delle operazioni indicate all\u2019art. 4 Codice Privacy e all\u2019art. 4 n. 2 GDPR e precisamente: raccolta, registrazione, organizzazione, conservazione, consultazione, elaborazione, modificazione, selezione, estrazione, raffronto, utilizzo, interconnessione, blocco, comunicazione, cancellazione e distruzione dei dati. I Suoi dati personali sono sottoposti a trattamento sia cartaceo che elettronico e/o automatizzato. Il Titolare trattera\u0300 i dati personali per il tempo necessario per adempiere alle finalita\u0300 di cui sopra e comunque per non oltre 10 anni dalla cessazione del rapporto per le Finalita\u0300 di Servizio e per non oltre 2 anni dalla raccolta dei dati per le Finalita\u0300 di Marketing; le fatture, i documenti contabili e i dati relativi alle transazioni saranno conservati per 10 anni ai sensi di legge (ivi compresi gli obblighi fiscali); dati riguardanti traffico telematico, esclusi comunque i contenuti delle comunicazioni, saranno conservati non oltre 6 anni dalla data di comunicazione, ai sensi dell\u2019art. 24 della Legge n. 167/2017, che ha recepito la Direttiva UE 2017/541 in materia di antiterrorismo; nel caso di esercizio del diritto all\u2019oblio attraverso richiesta di cancellazione espressa dei dati personali trattati dal titolare, tali dati saranno conservati, in forma protetta e con accesso limitato, unicamente per finalita\u0300 di accertamento e repressione dei reati, non oltre 12 mesi dalla data della richiesta e successivamente saranno cancellati in maniera sicura o anonimizzati in maniera irreversibile. Le modalita\u0300 di esercizio del diritto all'oblio sono espresse al punto 8 della presente informativa. "),r.Yb(),r.Yb(),r.Zb(58,"li"),r.Zb(59,"b"),r.Qc(60,"Accesso ai dati"),r.Yb(),r.Zb(61,"ul",9),r.Qc(62," I Suoi dati potranno essere resi accessibili per le finalita\u0300 di cui all\u2019art. 2. lett. a): "),r.Zb(63,"li"),r.Qc(64,"a dipendenti e collaboratori del Titolare, nella loro qualita\u0300 di incaricati e/o responsabili interni del trattamento e/o amministratori di sistema; "),r.Yb(),r.Zb(65,"li"),r.Qc(66,"altri soggetti (a titolo indicativo, studi professionali, consulenti quali studio commercialista, consulenti del lavoro, etc.) che svolgono attivita\u0300 in outsourcing per conto del Titolare, nella loro qualita\u0300 di responsabili esterni del trattamento. "),r.Yb(),r.Yb(),r.Yb(),r.Ub(67,"br"),r.Zb(68,"li"),r.Zb(69,"b"),r.Qc(70,"Comunicazione dei dati"),r.Yb(),r.Zb(71,"p"),r.Qc(72," Senza la necessita\u0300 di un espresso consenso (ex art. 24 lett. a), b), d) Codice Privacy e art. 6 lett. b) e c) GDPR), il Titolare potra\u0300 comunicare i Suoi dati per le finalita\u0300 di cui all\u2019art. 2 lett. a) ad Autorita\u0300 giudiziarie, nonche\u0301 a quei soggetti ai quali la comunicazione sia obbligatoria per legge per l\u2019espletamento delle finalita\u0300 dette. Detti soggetti tratteranno i dati nella loro qualita\u0300 di autonomi titolari del trattamento. Il titolare del trattamento assicura la non diffusione dei suoi dati. "),r.Yb(),r.Yb(),r.Zb(73,"li"),r.Zb(74,"b"),r.Qc(75,"Trasferimento dati"),r.Yb(),r.Zb(76,"p"),r.Qc(77," I dati personali sono conservati su server ubicati all\u2019interno dell\u2019Unione Europea secondo modalita\u0300 che rispettano la normativa europea in materia di trattamento dati GDPR per quanto concerne la corretta e in sicurezza conservazione degli stessi. Resta in ogni caso inteso che il Titolare, ove si rendesse necessario, avra\u0300 facolta\u0300 di spostare i server anche extra-UE. In tal caso, il Titolare assicura sin d\u2019ora che il trasferimento dei dati extra-UE avverra\u0300 in conformita\u0300 alle disposizioni di legge applicabili, previa stipula delle clausole contrattuali standard previste dalla Commissione Europea. "),r.Yb(),r.Yb(),r.Zb(78,"li"),r.Zb(79,"b"),r.Qc(80,"Natura del conferimento dei dati e conseguenze del rifiuto di rispondere"),r.Yb(),r.Zb(81,"p"),r.Qc(82," Il conferimento dei dati per le finalita\u0300 di cui all\u2019art. 2. lett. a) e\u0300 obbligatorio. In loro assenza, non potremo garantirLe i Servizi dell\u2019art. 2. lett. a). Il conferimento dei dati per le finalita\u0300 di cui all\u2019art. 2. lett. b) e\u0300 invece facoltativo. Puo\u0300 quindi decidere di non conferire alcun dato o di negare successivamente la possibilita\u0300 di trattare dati gia\u0300 forniti: in tal caso, non potra\u0300 ricevere newsletter inerenti comunicazioni su iniziative intraprese da Societa\u0300 Italiana di Medicina Interna secondo quanto previsto dello Statuto, comunicazioni commerciali, materiale pubblicitario sui servizi offerti dal Titolare ed eventuali auguri in concomitanza di festivita\u0300. Continuera\u0300 comunque ad avere diritto ai Servizi di cui all\u2019art. 2. lett. a). "),r.Yb(),r.Yb(),r.Zb(83,"li"),r.Zb(84,"b"),r.Qc(85,"Diritti dell\u2019interessato"),r.Yb(),r.Zb(86,"p"),r.Qc(87," Nella Sua qualita\u0300 di interessato, ha i diritti di cui all\u2019art. 7 Codice Privacy e art. 15 GDPR e precisamente i diritti di: ottenere la conferma dell'esistenza o meno di dati personali che La riguardano, anche se non ancora registrati, e la loro comunicazione in forma intelligibile; ottenere l'indicazione: a) dell'origine dei dati personali; b) delle finalita\u0300 e modalita\u0300 del trattamento; c) della logica applicata in caso di trattamento effettuato con l'ausilio di strumenti elettronici; d) degli estremi identificativi del titolare, dei responsabili e del rappresentante designato ai sensi dell'art. 5, comma 2 Codice Privacy e art. 3, comma 1, GDPR; e) dei soggetti o delle categorie di soggetti ai quali i dati personali possono essere comunicati o che possono venirne a conoscenza in qualita\u0300 di rappresentante designato nel territorio dello Stato, di responsabili o incaricati; ottenere: a) l'aggiornamento, la rettificazione ovvero, quando vi ha interesse, l'integrazione dei dati; b) la cancellazione, la trasformazione in forma anonima o il blocco dei dati trattati in violazione di legge, compresi quelli di cui non e\u0300 necessaria la conservazione in relazione agli scopi per i quali i dati sono stati raccolti o successivamente trattati; c) l'attestazione che le operazioni di cui alle lettere a) e b) sono state portate a conoscenza, anche per quanto riguarda il loro contenuto, di coloro ai quali i dati sono stati comunicati o diffusi, eccettuato il caso in cui tale adempimento si rivela impossibile o comporta un impiego di mezzi manifestamente sproporzionato rispetto al diritto tutelato; opporsi, in tutto o in parte: a) per motivi legittimi al trattamento dei dati personali che La riguardano, ancorche\u0301 pertinenti allo scopo della raccolta; b) al trattamento di dati personali che La riguardano a fini di invio di materiale pubblicitario o di vendita diretta o per il compimento di ricerche di mercato o di comunicazione commerciale, mediante l\u2019uso di sistemi automatizzati di chiamata senza l\u2019intervento di un operatore mediante email e/o mediante modalita\u0300 di marketing tradizionali mediante telefono e/o posta email. Si fa presente che il diritto di opposizione dell\u2019interessato, esposto al precedente punto b), per finalita\u0300 di marketing diretto mediante modalita\u0300 automatizzate si estende a quelle tradizionali e che comunque resta salva la possibilita\u0300 per l\u2019interessato di esercitare il diritto di opposizione anche solo in parte. Pertanto, l\u2019interessato puo\u0300 decidere di ricevere solo comunicazioni mediante modalita\u0300 tradizionali ovvero solo comunicazioni automatizzate oppure nessuna delle due tipologie di comunicazione. Ove applicabili, ha altresi\u0300 i diritti di cui agli artt. 16-21 GDPR (Diritto di rettifica, diritto all\u2019oblio, diritto di limitazione di trattamento, diritto alla portabilita\u0300 dei dati, diritto di opposizione), nonche\u0301 il diritto di reclamo all\u2019Autorita\u0300 Garante. "),r.Yb(),r.Yb(),r.Zb(88,"li"),r.Zb(89,"b"),r.Qc(90,"Modalita\u0300 di esercizio dei diritti"),r.Yb(),r.Zb(91,"ul",9),r.Qc(92," Potra\u0300 in qualsiasi momento esercitare i diritti inviando: "),r.Zb(93,"li"),r.Qc(94,"una raccomandata a: Societa\u0300 Italiana di Medicina Interna Roma"),r.Yb(),r.Zb(95,"li"),r.Qc(96,"una email all\u2019indirizzo "),r.Zb(97,"a",10),r.Qc(98,"[email protected]"),r.Yb(),r.Yb(),r.Yb(),r.Yb(),r.Ub(99,"br"),r.Zb(100,"li"),r.Zb(101,"b"),r.Qc(102,"Modifiche all\u2019informativa"),r.Yb(),r.Zb(103,"p"),r.Qc(104," La presente informativa potrebbe essere soggetta a modifiche. Qualora vengano apportate sostanziali modifiche all\u2019utilizzo dei dati relativi all\u2019utente da parte del Titolare, quest\u2019ultimo avvisera\u0300 l\u2019utente pubblicandole con la massima evidenza sulle proprie pagine o tramite mezzi alternativi o similari. "),r.Yb(),r.Yb(),r.Zb(105,"li"),r.Zb(106,"b"),r.Qc(107,"Titolare, responsabile e incaricati"),r.Yb(),r.Zb(108,"p"),r.Qc(109," Il Titolare del trattamento e\u0300 Societa\u0300 Italiana di Medicina Interna \u2013 Viale dell\u2019Universita\u0300 25, 00185 Roma. L\u2019elenco aggiornato dei responsabili e degli incaricati al trattamento e\u0300 custodito presso la sede legale del Titolare del trattamento. "),r.Yb(),r.Yb(),r.Zb(110,"li"),r.Zb(111,"b"),r.Qc(112,"Riferimenti normativi"),r.Yb(),r.Zb(113,"p"),r.Qc(114," E' possibile visionare il Codice in materia di protezione dei dati personali del Garante della privacy cliccando "),r.Zb(115,"a",11),r.Qc(116," http://www.garanteprivacy.it/web/guest/home/docweb/-/docweb-display/d
1ocweb/1311248"),r.Yb(),r.Yb(),r.Zb(117,"p"),r.Qc(118," E\u2019 possibile visionare il Regolamento europeo della privacy cliccando "),r.Zb(119,"a",12),r.Qc(120," http://eur-lex.europa.eu/legal-content/IT/TXT/?uri=uriserv:OJ.L_.2016.119.01.0001.01.ITA&toc=OJ:L:2016:119:TOC"),r.Yb(),r.Yb(),r.Yb(),r.Yb(),r.Zb(121,"h5"),r.Qc(122,"Informativa cookie"),r.Yb(),r.Zb(123,"p"),r.Qc(124," Con il presente documento, ai sensi degli artt. 13 e 122 del D. Lgs. 196/2003 (\u201ccodice privacy\u201d), nonche\u0301 in base a quanto previsto dal Provvedimento generale del Garante privacy dell\u20198 maggio 2014, la Societa\u0300 Italiana di Medicina Interna, titolare del trattamento, fornisce agli utenti del sito www.simi.it alcune informazioni relative ai cookie utilizzati. "),r.Yb(),r.Zb(125,"b"),r.Qc(126,"Cosa sono i cookie"),r.Yb(),r.Zb(127,"p"),r.Qc(128," I cookie sono piccoli file di testo che i siti visitati dall'utente inviano al suo browser (Internet Explorer, Mozilla Firefox, Google Chrome, ecc.), dove vengono memorizzati per essere poi ritrasmessi agli stessi siti alla successiva visita del medesimo utente. Nel corso della navigazione su un sito, l'utente puo\u0300 ricevere sul suo terminale anche cookie di siti o di web server diversi (c.d. cookie di \"terze parti\"); cio\u0300 accade perche\u0301 sul sito web visitato possono essere presenti elementi come, ad esempio, immagini, mappe, suoni, specifici link a pagine web di altri domini che risiedono su server diversi da quello sul quale si trova la pagina richiesta. I cookie sono usati per eseguire autenticazioni informatiche, monitoraggio di sessioni e memorizzazione di informazioni specifiche riguardanti gli utenti che accedono al server e di norma sono presenti nel browser di ciascun utente in numero molto elevato. "),r.Yb(),r.Zb(129,"h5"),r.Qc(130,"Tipologie di cookie utilizzate dal presente sito"),r.Yb(),r.Zb(131,"b"),r.Qc(132,"Cookie del Titolare"),r.Yb(),r.Zb(133,"p"),r.Qc(134," Questo sito utilizza solo cookie tecnici, rispetto ai quali, ai sensi dell\u2019art. 122 del codice privacy e del Provvedimento del Garante dell\u20198 maggio 2014, non e\u0300 richiesto alcun consenso da parte dell\u2019interessato. Piu\u0300 precisamente il sito utilizza: "),r.Yb(),r.Zb(135,"ul"),r.Zb(136,"li"),r.Zb(137,"i"),r.Qc(138,"cookie tecnici"),r.Yb(),r.Qc(139," necessari alla navigazione da parte dell\u2019utente, cookie di questo tipo sono necessari per il corretto funzionamento di alcune aree del sito. In assenza di tali cookie, il sito o alcune porzioni di esso potrebbero non funzionare correttamente. Pertanto, vengono sempre utilizzati, indipendentemente dalle preferenze dall'utente. I cookie di questa categoria vengono sempre inviati dal nostro dominio. "),r.Yb(),r.Zb(140,"li"),r.Zb(141,"i"),r.Qc(142,"cookie tecnici funzionali"),r.Yb(),r.Qc(143,", che agevolano la navigazione dell'utente Questo sito internet utilizza solo cookies tecnici ed analitici, che possono essere utilizzati senza chiedere il consenso dell\u2019utente, poiche\u0301 sono strettamente necessari per la fornitura del servizio. "),r.Yb(),r.Yb(),r.Zb(144,"b"),r.Qc(145,"Cookie di terze parti"),r.Yb(),r.Zb(146,"p"),r.Qc(147," Attraverso il sito www.cris.simi.it sono installati alcuni cookie di terze parti, anche profilanti, che si attivano cliccando \u201caccetto\u201d sul banner. Si riportano nel dettaglio i singoli cookie di terze parti, nonche\u0301 i link attraverso i quali l\u2019utente puo\u0300 ricevere maggiori informazioni e richiedere la disattivazione dei cookie. "),r.Yb(),r.Zb(148,"h5"),r.Qc(149,"Google Analytics"),r.Yb(),r.Zb(150,"p"),r.Qc(151," Il Sito utilizza Google Analytics. Si tratta di un servizio di analisi web fornito da Google Inc. (\u201cGoogle\u201d) che utilizza dei cookie che vengono depositati sul computer dell\u2019utente per consentire analisi statistiche in forma aggregata in ordine all\u2019utilizzo del sito web visitato. I Dati generati da Google Analytics sono conservati da Google cosi\u0300 come indicato nella Informativa reperibile al seguente link "),r.Zb(152,"a",13),r.Qc(153," https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage"),r.Yb(),r.Qc(154," Per consultare l\u2019informativa privacy della societa\u0300 Google Inc., titolare autonomo del trattamento dei dati relativi al servizio Google Analytics, si rinvia al sito Internet "),r.Zb(155,"a",14),r.Qc(156,"http://www.google.com/intl/en/analytics/privacyoverview.html"),r.Yb(),r.Qc(157," Al seguente link "),r.Ub(158,"a",15),r.Qc(159," https://tools.google.com/dlpage/gaoptout?hl=it e\u0300 inoltre reso disponibile da Google il componente aggiuntivo del browser per la disattivazione di Google Analytics. "),r.Yb(),r.Zb(160,"h5"),r.Qc(161,"Pulsanti e widget di social network"),r.Yb(),r.Zb(162,"p"),r.Qc(163," I Social buttons sono quei particolari \u201cpulsanti\u201d presenti sul sito che raffigurano le icone di social network (esempio, Facebook e Twitter) e consentono agli utenti che stanno navigando di interagire con un \u201cclick\u201d direttamente con i social network. I social buttons utilizzati da questo sito sono dei link che rinviano agli account del Titolare sul social network individuato. Tramite l\u2019utilizzo di tali pulsanti n
1on sono pertanto installati sul sito cookie di terze parti. Si riportano i link ove l\u2019utente puo\u0300 prendere visione dell\u2019informativa privacy relativa alla gestione dei dati da parte dei Social cui i pulsanti rinviano. "),r.Zb(164,"a",16),r.Qc(165," https://support.twitter.com/articles/20170519-uso-dei-cookie-e-di-altre-tecnologie-simili-da-parte-di-twitter#"),r.Yb(),r.Zb(166,"a",17),r.Qc(167," https://www.facebook.com/help/cookies"),r.Yb(),r.Zb(168,"a",18),r.Qc(169," https://www.linkedin.com/legal/cookie_policy"),r.Yb(),r.Zb(170,"a",19),r.Qc(171," http://www.google.com/intl/it/policies/privacy/"),r.Yb(),r.Yb(),r.Zb(172,"h5"),r.Qc(173,"Modalita\u0300 del trattamento"),r.Yb(),r.Zb(174,"p"),r.Qc(175," Il trattamento viene effettuato con strumenti automatizzati dal Titolare. Non viene effettuata alcuna diffusione o comunicazione. "),r.Yb(),r.Zb(176,"h5"),r.Qc(177,"Conferimento dei dati"),r.Yb(),r.Zb(178,"p"),r.Qc(179," Fatta eccezione per i cookie tecnici strettamente necessari alla normale navigazione, il conferimento dei dati e\u0300 rimesso alla volonta\u0300 dell\u2019interessato che decida di navigare sul sito dopo aver preso visione dell\u2019informativa breve contenuta nell\u2019apposito banner e di usufruire dei servizi che comportano l\u2019installazione di cookie. L\u2019interessato puo\u0300 quindi evitare l\u2019installazione dei cookie mantenendo il banner (astenendosi quindi dal chiuderlo cliccando sul tasto \u201caccetto\u201d), nonche\u0301 attraverso le apposite funzioni disponibili sul proprio browser. "),r.Yb(),r.Zb(180,"h5"),r.Qc(181,"Disabilitazione dei cookie"),r.Yb(),r.Zb(182,"p"),r.Qc(183,"Fermo restando quanto sopra indicato in ordine ai cookie strettamente necessari alla navigazione, l\u2019utente puo\u0300 eliminare gli altri cookie attraverso la funzionalita\u0300 a tal fine messa a disposizione dal Titolare tramite la presente informativa oppure direttamente tramite il proprio browser. Ciascun browser presenta procedure diverse per la gestione delle impostazioni. L\u2019utente puo\u0300 ottenere istruzioni specifiche attraverso i link sottostanti. Microsoft Windows Internet Explorer Google Chrome Mozilla Firefox Apple Safari Opera La disattivazione dei cookie di terze parti e\u0300 inoltre possibile attraverso le modalita\u0300 rese disponibili direttamente dalla societa\u0300 terza titolare per detto trattamento, come indicato ai link riportati nel precedente paragrafo \u201ccookie di terze parti\u201d Per avere informazioni sui cookie archiviati sul proprio terminale e disattivarli singolarmente si rinvia ai link: "),r.Zb(184,"a",20),r.Qc(185," http://www.youronlinechoices.com/it/le-tue-scelte; http://www.aboutcookies.org/"),r.Yb(),r.Qc(186," Diritti dell\u2019interessato L\u2019interessato potra\u0300 far valere in ogni momento, rivolgendosi al titolare del trattamento tramite l\u2019invio di una mail all\u2019indirizzo [email protected], i diritti di cui all\u2019art. 7 del D.Lgs. 30 giugno 2003 n. 196, che di seguito si riporta testualmente. Art. 7 D. Lgs. 196/2003 L\u2019interessato ha diritto di ottenere la conferma dell\u2019esistenza o meno di dati personali che lo riguardano, anche se non ancora registrati, e la loro comunicazione in forma intelligibile. "),r.Yb(),r.Zb(187,"ol",21),r.Qc(188," L\u2019interessato ha diritto di ottenere l\u2019indicazione: "),r.Zb(189,"li"),r.Qc(190,"dell\u2019origine dei dati personali;"),r.Yb(),r.Zb(191,"li"),r.Qc(192,"delle finalita\u0300 e modalita\u0300 del trattamento;"),r.Yb(),r.Zb(193,"li"),r.Qc(194,"della logica applicata in caso di trattamento effettuato con l\u2019ausilio di strumenti elettronici;"),r.Yb(),r.Zb(195,"li"),r.Qc(196," degli estremi identificativi del titolare, dei responsabili e del rappresentante designato ai sensi dell\u2019articolo 5, comma 2; e) dei soggetti o delle categorie di soggetti ai quali i dati personali possono essere comunicati o che possono venirne a conoscenza in qualita\u0300 di rappresentante designato nel territorio dello Stato, di responsabili o incaricati. "),r.Yb(),r.Yb(),r.Zb(197,"ol",21),r.Qc(198," L\u2019interessato ha diritto di ottenere: "),r.Zb(199,"li"),r.Qc(200,"l\u2019aggiornamento, la rettificazione ovvero, quando vi ha interesse, l\u2019integrazione dei dati;"),r.Yb(),r.Zb(201,"li"),r.Qc(202,"la cancellazione, la trasformazione in forma anonima o il blocco dei dati trattati in violazione di legge, compresi quelli di cui non e\u0300 necessaria la conservazione in relazione agli scopi per i quali i dati sono stati raccolti o successivamente trattati; "),r.Yb(),r.Zb(203,"li"),r.Qc(204,"l\u2019attestazione che le operazioni di cui alle lettere a) e b) sono state portate a conoscenza, anche per quanto riguarda il loro contenuto, di coloro ai quali i dati sono stati comunicati o diffusi, eccettuato il caso in cui tale adempimento si rivela impossibile o comporta un impiego di mezzi manifestamente sproporzionato rispetto al diritto tutelato. "),r.Yb(),r.Yb(),r.Zb(205,"ol",21),r.Qc(206," L\u2019interessato ha diritto di opporsi, in tutto o in parte: a) per motivi legittimi al trattamento dei dati personali che lo riguardano, ancorche\u0301 pertinenti allo scopo della raccolta; b) al trattamento di dati personali che lo riguardano a fini di invio di materiale pubblicitario o di vendita diretta o per il compimento di ricerche di mercato o di comunicazione commerciale. "),r.Yb(),r.Qc(207," Informativa completa "),r.Zb(208,"a",22),r.Qc(209," https://congressi.simi.it/p/docs/privacy.pdf"),r.Yb(),r.Yb(),r.Yb(),r.Yb(),r.Yb())},directives:[qn.P,qn.T,qn.O,qn.s,qn.r],styles:['.box-content[_ngcontent-%COMP%] .icon-box[_ngcontent-%COMP%] .main-icon[_ngcontent-%COMP%], .gradient-icon[_ngcontent-%COMP%], .gradient-icon-active[_ngcontent-%COMP%], .gradient-icon-hover[_ngcontent-%COMP%], .nav-links[_ngcontent-%COMP%] .header-icon[_ngcontent-%COMP%], .nav-links[_ngcontent-%COMP%] .header-login[_ngcontent-%COMP%]:active .header-icon[_ngcontent-%COMP%], .nav-links[_ngcontent-%COMP%] .header-login[_ngcontent-%COMP%]:hover .header-icon[_ngcontent-%COMP%]{background:-webkit-gradient(linear,left top,right bottom,from(#4472c4),to(#000));background:linear-gradient(to bottom right,#4472c4,#000);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.box-content[_ngcontent-%COMP%] .icon-box[_ngcontent-%COMP%] .main-icon[_ngcontent-%COMP%]:before, .gradient-icon-active[_ngcontent-%COMP%]:before, .gradient-icon-hover[_ngcontent-%COMP%]:before, .gradient-icon[_ngcontent-%COMP%]:before, .nav-links[_ngcontent-%COMP%] .header-icon[_ngcontent-%COMP%]:before, .nav-links[_ngcontent-%COMP%] .header-login[_ngcontent-%COMP%]:active .header-icon[_ngcontent-%COMP%]:before, .nav-links[_ngcontent-%COMP%] .header-login[_ngcontent-%COMP%]:hover .header-icon[_ngcontent-%COMP%]:before{display:inline}.gradient-icon-hover[_ngcontent-%COMP%], .nav-links[_ngcontent-%COMP%] .header-login[_ngcontent-%COMP%]:hover .header-icon[_ngcontent-%COMP%]{background:-webkit-gradient(linear,left top,right bottom,from(#325491),to(#000));background:linear-gradient(to bottom right,#325491,#000);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.gradient-icon-active[_ngcontent-%COMP%], .nav-links[_ngcontent-%COMP%] .header-login[_ngcontent-%COMP%]:active .header-icon[_ngcontent-%COMP%]{background:-webkit-gradient(linear,left top,right bottom,from(#859fce),to(rgba(0,0,0,.8)));background:linear-gradient(to bottom right,#859fce,rgba(0,0,0,.8));-webkit-background-clip:text;-webkit-text-fill-color:transparent}.column-fc[_ngcontent-%COMP%], .fc[_ngcontent-%COMP%]{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.column-fc[_ngcontent-%COMP%], .column-fsb[_ngcontent-%COMP%], .fc[_ngcontent-%COMP%], .fsb[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex}.column-fsb[_ngcontent-%COMP%], .fsb[_ngcontent-%COMP%]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.column-fc[_ngcontent-%COMP%], .column-fsb[_ngcontent-%COMP%]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.abstract-section[_ngcontent-%COMP%] .abstract-title[_ngcontent-%COMP%], .details-section[_ngcontent-%COMP%] .details-title[_ngcontent-%COMP%], .schedule-section[_ngcontent-%COMP%] .schedule-title[_ngcontent-%COMP%], .section-title[_ngcontent-%COMP%], .speakers-section[_ngcontent-%COMP%] .speakers-title[_ngcontent-%COMP%], .specs-section[_ngcontent-%COMP%] .specs-title[_ngcontent-%COMP%], .sponsor-section[_ngcontent-%COMP%] .sponsor-title[_ngcontent-%COMP%]{text-align:center;padding-top:4rem}.abstract-section[_ngcontent-%COMP%] .abstract-title[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .details-section[_ngcontent-%COMP%] .details-title[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .schedule-section[_ngcontent-%COMP%] .schedule-title[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .section-title[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .speakers-section[_ngcontent-%COMP%] .speakers-title[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .specs-section[_ngcontent-%COMP%] .specs-title[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sponsor-section[_ngcontent-%COMP%] .sponsor-title[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{text-transform:uppercase;color:#2f4f4f}.abstract-section[_ngcontent-%COMP%] .abstract-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .details-section[_ngcontent-%COMP%] .details-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .schedule-section[_ngcontent-%COMP%] .schedule-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .section-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .speakers-section[_ngcontent-%COMP%] .speakers-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .specs-section[_ngcontent-%COMP%] .specs-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .sponsor-section[_ngcontent-%COMP%] .sponsor-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.3rem;color:#708090}@media (max-width:576px){.abstract-section[_ngcontent-%COMP%] .abstract-title[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .details-section[_ngcontent-%COMP%] .details-title[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .schedule-section[_ngcontent-%COMP%] .schedule-title[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .section-title[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .speakers-section[_ngcontent-%COMP%] .speakers-title[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .specs-section[_ngcontent-%COMP%] .specs-title[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sponsor-section[_ngcontent-%COMP%] .sponsor-title[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.5rem}.abstract-section[_ngcontent-%COMP%] .abstract-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .details-section[_ngcontent-%COMP%] .details-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .schedule-section[_ngcontent-%COMP%] .schedule-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .section-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .speakers-section[_ngcontent-%COMP%] .speakers-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .specs-section[_ngcontent-%COMP%] .specs-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .sponsor-section[_ngcontent-%COMP%] .sponsor-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1rem}}.nav-bg[_ngcontent-%COMP%]{background:#fff!important}.nav[_ngcontent-%COMP%], .nav-bg[_ngcontent-%COMP%]{-webkit-transition:all .3s ease-out;transition:all .3s ease-out}.nav[_ngcontent-%COMP%]{position:fixed;z-index:3;height:50px;width:100%;background:hsla(0,0%,100%,.95)}.nav-links[_ngcontent-%COMP%] .header-login[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.nav-links[_ngcontent-%COMP%] .header-icon[_ngcontent-%COMP%]{font-size:2.5rem;vertical-align:middle}.nav[_ngcontent-%COMP%] > .nav-header[_ngcontent-%COMP%]{display:inline}.nav[_ngcontent-%COMP%] > .nav-header[_ngcontent-%COMP%] > .nav-title[_ngcontent-%COMP%]{display:inline-block;font-size:22px;padding:10px}.nav[_ngcontent-%COMP%] > .nav-btn[_ngcontent-%COMP%]{display:none}.nav[_ngcontent-%COMP%] > .nav-links[_ngcontent-%COMP%]{display:inline;float:right;margin-left:auto}.nav[_ngcontent-%COMP%] > .nav-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;text-decoration:none;font-size:1rem;padding:1rem;color:#4472c4;cursor:pointer}.nav[_ngcontent-%COMP%] > .nav-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:hover{color:#859fce}.nav[_ngcontent-%COMP%] > .nav-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:active{color:#325491}.nav[_ngcontent-%COMP%] > .nav-check[_ngcontent-%COMP%]{display:none}.arrows-row[_ngcontent-%COMP%]{margin-right:auto;margin-top:4rem}.arrows[_ngcontent-%COMP%]{margin-left:22px;top:50%;left:50%;width:25px;height:25px;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.arrows[_ngcontent-%COMP%]:before{border-left:2.5px solid rgba(0,0,0,.7);border-bottom:2.5px solid rgba(0,0,0,.7);-webkit-transform:translate(8.3333333333px,33.3333333333px) rotate(-45deg);transform:translate(8.3333333333px,33.3333333333px) rotate(-45deg);-webkit-animation:arrows 3s linear infinite;animation:arrows 3s linear infinite}.arrows[_ngcontent-%COMP%]:after, .arrows[_ngcontent-%COMP%]:before{content:"";position:absolute;width:100%;height:100%}.arrows[_ngcontent-%COMP%]:after{border-left:8.3333333333px solid rgba(0,0,0,.7);border-bottom:8.3333333333px solid rgba(0,0,0,.7);-webkit-transform:translate(16.6666666667px) rotate(-45deg);transform:translate(16.6666666667px) rotate(-45deg);-webkit-animation:arrows 3s linear -1.5s infinite;animation:arrows 3s linear -1.5s infinite}@-webkit-keyframes arrows{0%{border-left:2.5px solid transparent;border-bottom:2.5px solid transparent;-webkit-transform:translate(-4.1666666667px,-16.6666666667px) rotate(-45deg);transform:translate(-4.1666666667px,-16.6666666667px) rotate(-45deg)}10%,90%{border-left:2.7777777778px solid transparent;border-bottom:2.7777777778px solid transparent}50%{border-left:3.125px solid rgba(0,0,0,.7);border-bottom:3.125px solid rgba(0,0,0,.7);-webkit-transform:translate(-4.1666666667px) rotate(-45deg);transform:translate(-4.1666666667px) rotate(-45deg)}to{border-left:2.5px solid transparent;border-bottom:2.5px solid transparent;-webkit-transform:translate(-4.1666666667px,16.6666666667px) rotate(-45deg);transform:translate(-4.1666666667px,16.6666666667px) rotate(-45deg)}}@keyframes arrows{0%{border-left:2.5px solid transparent;border-bottom:2.5px solid transparent;-webkit-transform:translate(-4.1666666667px,-16.6666666667px) rotate(-45deg);transform:translate(-4.1666666667px,-16.6666666667px) rotate(-45deg)}10%,90%{border-left:2.7777777778px solid transparent;border-bottom:2.7777777778px solid transparent}50%{border-left:3.125px solid rgba(0,0,0,.7);border-bottom:3.125px solid rgba(0,0,0,.7);-webkit-transform:translate(-4.1666666667px) rotate(-45deg);transform:translate(-4.1666666667px) rotate(-45deg)}to{border-left:2.5px solid transparent;border-bottom:2.5px solid transparent;-webkit-transform:translate(-4.1666666667px,16.6666666667px) rotate(-45deg);transform:translate(-4.1666666667px,16.6666666667px) rotate(-45deg)}}.landing-father[_ngcontent-%COMP%]{overflow-x:hidden}.box-father[_ngcontent-%COMP%]{background-size:cover!important;background-attachment:fixed!important;background-position:50%!important}.box[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;min-height:486px;background:#fff}.box-left[_ngcontent-%COMP%]{padding:0}.box-right[_ngcontent-%COMP%]{padding:0 5%;background:hsla(0,0%,100%,.95)}.box-bg[_ngcontent-%COMP%]{z-index:3;top:0;left:0;width:100%;height:100%;position:inherit;background-size:cover;background-attachment:fixed;background-position:50%}.box-bg[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:-webkit-gradient(linear,left top,right bottom,from(#4472c4),to(#000));background:linear-gradient(to bottom right,#4472c4,#000);opacity:.9;z-index:-1}.box-brand[_ngcontent-%COMP%]{position:absolute;z-index:4;font-size:40px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;top:270px;left:0;width:100%}.box-brand[_ngcontent-%COMP%], .box-brand[_ngcontent-%COMP%] .brand-align[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex}.box-brand[_ngconte
1nt-%COMP%] .brand-align[_ngcontent-%COMP%]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;text-align:center;text-shadow:1px 2px 4px rgba(0,0,0,.2)}.box-brand[_ngcontent-%COMP%] .brand-align[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin-bottom:1rem;color:#fff;font-size:larger}.box-brand[_ngcontent-%COMP%] .brand-align[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{padding:0 2rem;color:#859fce}.box-login[_ngcontent-%COMP%]{position:relative;top:36px;right:30px;font-size:12px;text-align:right}.box-login-button[_ngcontent-%COMP%]{margin-left:10px}.box-content[_ngcontent-%COMP%]{padding:80px 16px 16px}.box-content[_ngcontent-%COMP%] .icon-box[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 0}.box-content[_ngcontent-%COMP%] .icon-box[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1.5rem;vertical-align:middle;padding-left:1rem;color:#325491}.box-content[_ngcontent-%COMP%] .icon-box[_ngcontent-%COMP%] .main-icon[_ngcontent-%COMP%]{font-size:2rem;vertical-align:middle}.box-title[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:2.5rem;text-transform:uppercase;color:#325491}.box-caption[_ngcontent-%COMP%]{color:#325491;margin:4rem 4rem 4rem 0;font-size:1.5rem}.menu[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:100%;top:80px;position:absolute;z-index:4}.menu[_ngcontent-%COMP%] .svg-simi-home[_ngcontent-%COMP%]{height:150px}.menu[_ngcontent-%COMP%] .svg-simi-home[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:#fff}.button[_ngcontent-%COMP%]{padding:12px;font-size:12px;font-weight:400;text-align:center;cursor:pointer;text-transform:uppercase}.button-primary[_ngcontent-%COMP%]{background:-webkit-gradient(linear,left top,right bottom,from(#4472c4),to(#000));background:linear-gradient(to bottom right,#4472c4,#000);border-radius:.5rem;margin-top:1rem;color:#fff;-webkit-box-shadow:0 0 5px rgba(0,0,0,.17);box-shadow:0 0 5px rgba(0,0,0,.17);transition:all .3s ease-in-out 0s;-moz-transition:all .3s ease-in-out 0s;-webkit-transition:all .3s ease-in-out 0s;-o-transition:all .3s ease-in-out 0s}.button-primary[_ngcontent-%COMP%]:hover{background:-webkit-gradient(linear,left top,right bottom,from(#325491),to(#000));background:linear-gradient(to bottom right,#325491,#000)}.button-primary[_ngcontent-%COMP%]:active{background:-webkit-gradient(linear,left top,right bottom,from(#859fce),to(rgba(0,0,0,.8)));background:linear-gradient(to bottom right,#859fce,rgba(0,0,0,.8))}.button-danger[_ngcontent-%COMP%]{border-radius:.5rem;margin-top:1rem;color:#fff;-webkit-box-shadow:0 0 5px rgba(0,0,0,.17);box-shadow:0 0 5px rgba(0,0,0,.17);transition:all .3s ease-in-out 0s;-moz-transition:all .3s ease-in-out 0s;-webkit-transition:all .3s ease-in-out 0s;-o-transition:all .3s ease-in-out 0s}.button-danger[_ngcontent-%COMP%], .button-danger[_ngcontent-%COMP%]:active, .button-danger[_ngcontent-%COMP%]:hover{background:-webkit-gradient(linear,left top,right bottom,from(#e66465),to(#000));background:linear-gradient(to bottom right,#e66465,#000)}.button--circle[_ngcontent-%COMP%]{padding:5px 10px;border-radius:50%;line-height:0}.main[_ngcontent-%COMP%]{background:#f8f8f8}.landing-colums[_ngcontent-%COMP%]{overflow-x:hidden;padding:0!important;min-width:auto!important}.description-slide[_ngcontent-%COMP%]{padding-top:3rem}.description-slide[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{font-size:1.2rem}.description-slide[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]{width:100%}.description-slide[_ngcontent-%COMP%] .outline-gradient-button[_ngcontent-%COMP%]{z-index:0}.description-slide[_ngcontent-%COMP%] .outline-gradient-button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}.description-slide[_ngcontent-%COMP%] .button-secondary[_ngcontent-%COMP%]{width:100%;margin-top:1.2rem;position:relative;padding:.6rem;color:#325491;background:hsla(0,0%,100%,.95);background-clip:padding-box;border-radius:.3rem}.description-slide[_ngcontent-%COMP%] .button-secondary[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;margin:-3px;border-radius:.5rem;background:-webkit-gradient(linear,left top,right bottom,from(#4472c4),to(#000));background:linear-gradient(to bottom right,#4472c4,#000);-webkit-box-shadow:0 0 5px rgba(0,0,0,.17);box-shadow:0 0 5px rgba(0,0,0,.17);transition:all .3s ease-in-out 0s;-moz-transition:all .3s ease-in-out 0s;-webkit-transition:all .3s ease-in-out 0s;-o-transition:all .3s ease-in-out 0s}
1.description-slide[_ngcontent-%COMP%] .button-secondary[_ngcontent-%COMP%]:hover{-webkit-transition:all .3s ease-out;transition:all .3s ease-out;background:none;color:#fff}.specs-section[_ngcontent-%COMP%]{text-align:center}.specs-section[_ngcontent-%COMP%] .specs-row[_ngcontent-%COMP%]{margin:2rem;padding:2rem 0}.specs-section[_ngcontent-%COMP%] .specs-row[_ngcontent-%COMP%] .specs[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{text-transform:uppercase}.specs-section[_ngcontent-%COMP%] .specs-row[_ngcontent-%COMP%] .specs[_ngcontent-%COMP%]:hover .icon-specs[_ngcontent-%COMP%]{color:#325491}.specs-section[_ngcontent-%COMP%] .specs-row[_ngcontent-%COMP%] .specs[_ngcontent-%COMP%]:hover .icon-specs[_ngcontent-%COMP%]:before{-webkit-transition:all .3s ease-in-out 0s;transition:all .3s ease-in-out 0s;-webkit-transform:scale(1.2);transform:scale(1.2)}.specs-section[_ngcontent-%COMP%] .specs-row[_ngcontent-%COMP%] .specs[_ngcontent-%COMP%] .icon-specs[_ngcontent-%COMP%]{font-size:5rem;-webkit-transition:all .3s ease-in-out 0s;transition:all .3s ease-in-out 0s}.specs-section[_ngcontent-%COMP%] .specs-row[_ngcontent-%COMP%] .specs[_ngcontent-%COMP%] .icon-specs[_ngcontent-%COMP%]:after{content:"";margin:0 auto;width:62px;height:3px;display:block;background:#ededef;left:0;right:0}.specs-section[_ngcontent-%COMP%] .specs-row[_ngcontent-%COMP%] .specs[_ngcontent-%COMP%] .title-specs[_ngcontent-%COMP%]{text-transform:uppercase;color:#859fce;display:block;margin-top:1.5rem;font-weight:500;font-size:1.5rem}.specs-section[_ngcontent-%COMP%] .specs-row[_ngcontent-%COMP%] .specs[_ngcontent-%COMP%] .desc-specs[_ngcontent-%COMP%]{font-size:1.2rem;margin-top:1rem;display:block}.schedule-section[_ngcontent-%COMP%]{text-align:center;min-height:70vh;background-image:-webkit-gradient(linear,left top,right bottom,from(#0055a8),color-stop(#00859a),color-stop(#007ab1),color-stop(#2071b7),to(#4f65b5));background-image:linear-gradient(to right bottom,#0055a8,#00859a,#007ab1,#2071b7,#4f65b5)}.schedule-section[_ngcontent-%COMP%] .schedule-title[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .schedule-section[_ngcontent-%COMP%] .schedule-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#fff}.schedule-section[_ngcontent-%COMP%] .schedule-title[_ngcontent-%COMP%] fama-congress-compact-scheduler[_ngcontent-%COMP%]{color:#708090}.speakers-section[_ngcontent-%COMP%] .speakers-wrapper[_ngcontent-%COMP%]{padding:4rem 2rem}.speakers-section[_ngcontent-%COMP%] .speakers-wrapper[_ngcontent-%COMP%] .speaker-card[_ngcontent-%COMP%]{margin:5rem;padding:10px;border-radius:.5rem;position:relative;-webkit-box-shadow:0 0 5px rgba(0,0,0,.17);box-shadow:0 0 5px rgba(0,0,0,.17);transition:all .3s ease-in-out 0s;-moz-transition:all .3s ease-in-out 0s;-webkit-transition:all .3s ease-in-out 0s;-o-transition:all .3s ease-in-out 0s}.speakers-section[_ngcontent-%COMP%] .speakers-wrapper[_ngcontent-%COMP%] .speaker-card[_ngcontent-%COMP%]:hover{-webkit-box-shadow:0 25px 35px -12px rgba(0,0,0,.35);box-shadow:0 25px 35px -12px rgba(0,0,0,.35)}.speakers-section[_ngcontent-%COMP%] .speakers-wrapper[_ngcontent-%COMP%] .speaker-card[_ngcontent-%COMP%]:hover .speaker-overlay[_ngcontent-%COMP%]{opacity:1!important}.speakers-section[_ngcontent-%COMP%] .speakers-wrapper[_ngcontent-%COMP%] .speaker-card[_ngcontent-%COMP%]:hover .speaker-overlay[_ngcontent-%COMP%] .social-icons[_ngcontent-%COMP%]{-webkit-transform:translateY(0)!important;transform:translateY(0)!important}.speakers-section[_ngcontent-%COMP%] .speakers-wrapper[_ngcontent-%COMP%] .speaker-card[_ngcontent-%COMP%]:hover .speaker-overlay[_ngcontent-%COMP%] .social-icons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none!important}.speakers-section[_ngcontent-%COMP%] .speakers-wrapper[_ngcontent-%COMP%] .speaker-card[_ngcontent-%COMP%] .speaker-img[_ngcontent-%COMP%]{position:relative;cursor:pointer;overflow:hidden}.speakers-section[_ngcontent-%COMP%] .speakers-wrapper[_ngcontent-%COMP%] .speaker-card[_ngcontent-%COMP%] .speaker-img[_ngcontent-%COMP%] .img-fluid[_ngcontent-%COMP%]{width:100%;height:auto}.speakers-section[_ngcontent-%COMP%] .speakers-wrapper[_ngcontent-%COMP%] .speaker-card[_ngcontent-%COMP%] .speaker-img[_ngcontent-%COMP%] .speaker-overlay[_ngcontent-%COMP%]{height:100%;position:absolute;top:0;background:rgba(47,47,47,.7);opacity:0;width:100%;transition:all .3s ease-in-out 0s;-moz-transition:all .3s ease-in-out 0s;-webkit-transition:all .3s ease-in-out 0s;-o-transition:all .3s ease-in-out 0s}.speakers-section[_ngcontent-%COMP%] .speakers-wrapper[_ngcontent-%COMP%] .speaker-card[_ngcontent-%COMP%] .speaker-img[_ngcontent-%COMP%] .speaker-overlay[_ngcontent-%COMP%] .overlay-social-icon[_ngcontent-%COMP%]{color:#fff;top:15px;position:absolute;right:15px}.speakers-section[_ngcontent-%COMP%] .speakers-wrapper[_ngcontent-%COMP%] .speaker-card[_ngcontent-%COMP%] .speaker-img[_ngcontent-%COMP%] .speaker-overlay[_ngcontent-%COMP%] .overlay-social-icon[_ngcontent-%COMP%] .social-icons[_ngcontent-%COMP%]{padding-left:0;-webkit-transform:translateY(-30px);transform:translateY(-30px);transition:all .3s ease-in-out 0s;-moz-transition:all .3s ease-in-out 0s;-webkit-transition:all .3s ease-in-out 0s;-o-transition:all .3s ease-in-out 0s}.speakers-section[_ngcontent-%COMP%] .speakers-wrapper[_ngcontent-%COMP%] .speaker-card[_ngcontent-%COMP%] .speaker-img[_ngcontent-%COMP%] .speaker-overlay[_ngcontent-%COMP%] .overlay-social-icon[_ngcontent-%COMP%] .social-icons[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:inline-block;margin:0 4px}.speakers-section[_ngcontent-%COMP%] .speakers-wrapper[_ngcontent-%COMP%] .speaker-card[_ngcontent-%COMP%] .speaker-img[_ngcontent-%COMP%] .speaker-overlay[_ngcontent-%COMP%] .overlay-social-icon[_ngcontent-%COMP%] .social-icons[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{letter-spacing:0;outline:0!important}.speakers-section[_ngcontent-%COMP%] .speakers-wrapper[_ngcontent-%COMP%] .speaker-card[_ngcontent-%COMP%] .speaker-img[_ngcontent-%COMP%] .speaker-overlay[_ngcontent-%COMP%] .overlay-social-icon[_ngcontent-%COMP%] .social-icons[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:20px;color:#fff;width:36px;height:36px;background:#4472c4;display:block;border-radius:.5rem;line-height:41px;transition:all .3s ease-in-out 0s;-moz-transition:all .3s ease-in-out 0s;-webkit-transition:all .3s ease-in-out 0s;-o-transition:all .3s ease-in-out 0s}.speakers-section[_ngcontent-%COMP%] .speakers-wrapper[_ngcontent-%COMP%] .speaker-card[_ngcontent-%COMP%] .info-text[_ngcontent-%COMP%]{position:absolute;bottom:10px;left:10px;padding:15px 20px;background:#f3f4f3;text-align:left}.speakers-section[_ngcontent-%COMP%] .speakers-wrapper[_ngcontent-%COMP%] .speaker-card[_ngcontent-%COMP%] .info-text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:16px;text-transform:uppercase;font-weight:700;margin-bottom:5px}.speakers-section[_ngcontent-%COMP%] .speakers-wrapper[_ngcontent-%COMP%] .speaker-card[_ngcontent-%COMP%] .info-text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#212121}.speakers-section[_ngcontent-%COMP%] .speakers-wrapper[_ngcontent-%COMP%] .speaker-card[_ngcontent-%COMP%] .info-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:#888}.details-section[_ngcontent-%COMP%]{background:#fff;text-align:center}.details-section[_ngcontent-%COMP%] .details-row[_ngcontent-%COMP%]{padding:4rem 1rem}.details-section[_ngcontent-%COMP%] .details-row[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:#708090}.details-section[_ngcontent-%COMP%] .details-row[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.2rem}.details-section[_ngcontent-%COMP%] .details-row[_ngcontent-%COMP%] .btn-outline.btn-info[_ngcontent-%COMP%]:focus{color:#000}.details-section[_ngcontent-%COMP%] .congress-image[_ngcontent-%COMP%]{width:100%;margin-bottom:4rem;border-radius:.5rem;-webkit-box-shadow:0 0 5px rgba(0,0,0,.17);box-shadow:0 0 5px rgba(0,0,0,.17)}.details-section[_ngcontent-%COMP%] .carousel-wrapper[_ngcontent-%COMP%]{padding-bottom:4rem}.details-section[_ngcontent-%COMP%] .carousel-wrapper[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:auto;width:auto;max-width:100%;max-height:50vh}.details-section[_ngcontent-%COMP%] .carousel-wrapper[_ngcontent-%COMP%] .carousel-caption[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#fff}.sponsor-section[_ngcontent-%COMP%] .sponsor-row[_ngcontent-%COMP%]{padding:4rem 1rem;text-align:center}.sponsor-section[_ngcontent-%COMP%] .sponsor-row[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#859fce;font-size:5rem}.place-section[_ngcontent-%COMP%]{padding:3rem;background-image:url(https://congressi.simi.it/p/images/congress/salone-dei-cavalieri-light.jpg);background-attachment:fixed;background-size:cover;background-position:50%;position:relative;z-index:1;color:#fff;text-align:center}.place-section[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:-webkit-gradient(linear,left top,right bottom,from(#c49644),to(#000));background:linear-gradient(to bottom right,#c49644,#000);opacity:.9;z-index:-1}.place-section[_ngcontent-%COMP%] .place-title[_ngcontent-%COMP%]{text-align:left;color:#fff;text-transform:uppercase}.place-section[_ngcontent-%COMP%] .place-title[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:#fff;font-weight:700;font-size:2rem;margin-bottom:1rem}.place-section[_ngcontent-%COMP%] .place-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.3rem}.place-section[_ngcontent-%COMP%] .map-wrapper[_ngcontent-%COMP%] .mapouter[_ngcontent-%COMP%]{position:relative;text-align:right;height:400px;width:auto;margin:auto}.place-section[_ngcontent-%COMP%] .map-wrapper[_ngcontent-%COMP%] .gmap_canvas[_ngcontent-%COMP%]{overflow:hidden;background:none!important;height:400px;width:100%;border-radius:.5rem}.place-section[_ngcontent-%COMP%] .map-wrapper[_ngcontent-%COMP%] .gmap_canvas[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{width:100%}.abstract-section[_ngcontent-%COMP%]{background:#fff}.abstract-section[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]{margin:2rem auto 4rem}.back-top[_ngcontent-%COMP%]{z-index:1000;position:fixed;bottom:20px;right:20px;-webkit-transition:opacity .3s ease-in-out 0s;transition:opacity .3s ease-in-out 0s;opacity:0;height:0;overflow:hidden}.back-top[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:2rem;color:#4472c4;background:hsla(0,0%,100%,.95);padding:0 .5rem;border-radius:.5rem;-webkit-box-shadow:inset 0 0 2px #2f4f4f;box-shadow:inset 0 0 2px #2f4f4f}.back-top-visible[_ngcontent-%COMP%]{height:auto;cursor:pointer;opacity:1;-webkit-transition:opacity .3s ease-in-out 0s;transition:opacity .3s ease-in-out 0s}.congress-footer[_ngcontent-%COMP%] .main-footer[_ngcontent-%COMP%]{padding:2rem;background:#293752;color:#ddd;text-align:center}.congress-footer[_ngcontent-%COMP%] .main-footer[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#859fce;text-decoration:none}.congress-footer[_ngcontent-%COMP%] .main-footer[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#4472c4}.congress-footer[_ngcontent-%COMP%] .main-footer[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:active{color:#325491}.congress-footer[_ngcontent-%COMP%] .main-footer[_ngcontent-%COMP%] .footer-contacts[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block}.congress-footer[_ngcontent-%COMP%] .main-footer[_ngcontent-%COMP%] .footer-contacts[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#fff;margin-bottom:2rem}.congress-footer[_ngcontent-%COMP%] .main-footer[_ngcontent-%COMP%] .footer-contacts[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:1rem}
1.congress-footer[_ngcontent-%COMP%] .main-footer[_ngcontent-%COMP%] .footer-logo[_ngcontent-%COMP%] .svg-simi-footer[_ngcontent-%COMP%]{width:auto;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;padding:2rem}.congress-footer[_ngcontent-%COMP%] .main-footer[_ngcontent-%COMP%] .footer-logo[_ngcontent-%COMP%] .svg-simi-footer[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:#fff}.congress-footer[_ngcontent-%COMP%] .main-footer[_ngcontent-%COMP%] .footer-links[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block}.congress-footer[_ngcontent-%COMP%] .main-footer[_ngcontent-%COMP%] .footer-links[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#fff;margin-bottom:2rem}.congress-footer[_ngcontent-%COMP%] .main-footer[_ngcontent-%COMP%] .footer-links[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:1rem}.congress-footer[_ngcontent-%COMP%] .main-footer[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border:0;height:2px;background:#000}.congress-footer[_ngcontent-%COMP%] .details-footer[_ngcontent-%COMP%]{background:#202b40;padding:2rem}.congress-footer[_ngcontent-%COMP%] .details-footer[_ngcontent-%COMP%] .bottom-footer[_ngcontent-%COMP%]{text-align:center;margin:auto}.footer[_ngcontent-%COMP%]{background:#202b40;color:#ddd;padding:4rem 2rem}.footer[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{line-height:1.5}.footer[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .footer[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#aaa}.footer[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border:0;height:2px;background:#000}@media (max-width:576px){.nav-bg[_ngcontent-%COMP%]{-webkit-transition:all .3s ease-out;transition:all .3s ease-out;background:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.1)),to(transparent))!important;background:linear-gradient(180deg,rgba(0,0,0,.1),transparent)!important}.right-link[_ngcontent-%COMP%]{float:right}.box-content[_ngcontent-%COMP%]{top:0;padding:16px}.icon-box[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1rem!important}.nav[_ngcontent-%COMP%] > .nav-btn[_ngcontent-%COMP%]{display:inline-block;position:absolute;right:0;top:0;z-index:101}.nav[_ngcontent-%COMP%] > .nav-btn[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{display:inline-block;width:50px;height:50px;padding:13px}.nav[_ngcontent-%COMP%] > .nav-btn[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.3)}.nav[_ngcontent-%COMP%] > .nav-btn[_ngcontent-%COMP%] > label[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:block;width:25px;height:10px;border-top:2px solid #4472c4}.nav[_ngcontent-%COMP%] > .nav-links[_ngcontent-%COMP%]{position:absolute;display:block;width:100%;background:hsla(0,0%,100%,.95);height:0;-webkit-transition:opacity .3s cubic-bezier(0,0,.2,1);transition:opacity .3s cubic-bezier(0,0,.2,1);overflow-y:hidden;top:50px;left:0;opacity:0}
1.nav[_ngcontent-%COMP%] > .nav-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{display:block;width:100%;height:45.5px}.nav[_ngcontent-%COMP%] > .nav-check[_ngcontent-%COMP%]:not(:checked) + .nav-links[_ngcontent-%COMP%]{height:0}.nav[_ngcontent-%COMP%] > .nav-check[_ngcontent-%COMP%]:checked + .nav-links[_ngcontent-%COMP%]{overflow-y:auto;height:auto;z-index:100;opacity:1;-webkit-transform:translateY(-50px);transform:translateY(-50px);padding-top:50px;width:58%;right:0}.box-right[_ngcontent-%COMP%]{padding:5rem 0 0}.box-title[_ngcontent-%COMP%]{font-size:2rem;margin-bottom:3rem!important}.box-brand[_ngcontent-%COMP%]{top:71px}.box-caption[_ngcontent-%COMP%]{display:none;margin:2rem 2rem 2rem 0;font-size:1.2rem}.description-slide[_ngcontent-%COMP%]{padding-top:1rem}.description-slide[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{font-size:1rem}.brand-align[_ngcontent-%COMP%]{text-align:right!important;padding-right:16px}.brand-align[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2rem!important;margin-bottom:.3rem!important;padding-top:16px;margin-top:0}.brand-align[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{line-height:2rem;font-size:1.2rem;padding:0!important}.menu[_ngcontent-%COMP%]{top:230px}.menu[_ngcontent-%COMP%] .svg-simi-home[_ngcontent-%COMP%]{height:80px}.specs-section[_ngcontent-%COMP%] .specs[_ngcontent-%COMP%]{margin-bottom:3rem}.specs-section[_ngcontent-%COMP%] .specs[_ngcontent-%COMP%] .icon-specs[_ngcontent-%COMP%]{font-size:4rem}.specs-section[_ngcontent-%COMP%] .specs[_ngcontent-%COMP%] .title-specs[_ngcontent-%COMP%]{font-size:1.2rem}.specs-section[_ngcontent-%COMP%] .specs[_ngcontent-%COMP%] .desc-specs[_ngcontent-%COMP%]{font-size:1rem}.speakers-section[_ngcontent-%COMP%] .speakers-wrapper[_ngcontent-%COMP%]{padding:2rem 2rem 4rem}.speakers-section[_ngcontent-%COMP%] .speakers-wrapper[_ngcontent-%COMP%] .speaker-card[_ngcontent-%COMP%]{margin:1rem;padding:10px}.speakers-section[_ngcontent-%COMP%] .speakers-wrapper[_ngcontent-%COMP%] .speaker-card[_ngcontent-%COMP%] .speaker-img[_ngcontent-%COMP%] .speaker-overlay[_ngcontent-%COMP%] .overlay-social-icon[_ngcontent-%COMP%]{top:3px;right:0}.speakers-section[_ngcontent-%COMP%] .speakers-wrapper[_ngcontent-%COMP%] .speaker-card[_ngcontent-%COMP%] .speaker-img[_ngcontent-%COMP%] .speaker-overlay[_ngcontent-%COMP%] .overlay-social-icon[_ngcontent-%COMP%] .social-icons[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 3px}.speakers-section[_ngcontent-%COMP%] .speakers-wrapper[_ngcontent-%COMP%] .speaker-card[_ngcontent-%COMP%] .speaker-img[_ngcontent-%COMP%] .speaker-overlay[_ngcontent-%COMP%] .overlay-social-icon[_ngcontent-%COMP%] .social-icons[_ngcontent-%COMP%] li[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:15px!important;width:23px!important;height:23px!important;line-height:28px!important}.speakers-section[_ngcontent-%COMP%] .speakers-wrapper[_ngcontent-%COMP%] .speaker-card[_ngcontent-%COMP%] .info-text[_ngcontent-%COMP%]{bottom:10px;left:10px;padding:10px;width:calc(100% - 20px)}.speakers-section[_ngcontent-%COMP%] .speakers-wrapper[_ngcontent-%COMP%] .speaker-card[_ngcontent-%COMP%] .info-text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:1rem;margin-bottom:3px}.speakers-section[_ngcontent-%COMP%] .speakers-wrapper[_ngcontent-%COMP%] .speaker-card[_ngcontent-%COMP%] .info-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.7rem}.details-section[_ngcontent-%COMP%] .details-row[_ngcontent-%COMP%]{padding:2rem 1rem 0}.details-section[_ngcontent-%COMP%] .details-row[_ngcontent-%COMP%] .details-element[_ngcontent-%COMP%]{margin-bottom:2rem}.details-section[_ngcontent-%COMP%] .details-row[_ngcontent-%COMP%] .details-element[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.3rem}.details-section[_ngcontent-%COMP%] .details-row[_ngcontent-%COMP%] .details-element[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1rem}.details-section[_ngcontent-%COMP%] .carousel-wrapper[_ngcontent-%COMP%] .carousel-indicators[_ngcontent-%COMP%]{margin-bottom:0!important}.details-section[_ngcontent-%COMP%] .carousel-wrapper[_ngcontent-%COMP%] .carousel-caption[_ngcontent-%COMP%]{line-height:1rem;bottom:0;background:hsla(0,0%,100%,.95);color:#000;padding:0;border-top-left-radius:.5rem;border-top-right-radius:.5rem}.details-section[_ngcontent-%COMP%] .carousel-wrapper[_ngcontent-%COMP%] .carousel-caption[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#000;font-size:1rem}.details-section[_ngcontent-%COMP%] .carousel-wrapper[_ngcontent-%COMP%] .carousel-caption[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.8rem}.sponsor-section[_ngcontent-%COMP%] .sponsor-row[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:3rem!important}.place-section[_ngcontent-%COMP%] .place-title[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.5rem}.place-section[_ngcontent-%COMP%] .place-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1rem}.place-section[_ngcontent-%COMP%] .mapouter[_ngcontent-%COMP%]{width:auto!important}.place-section[_ngcontent-%COMP%] .mapouter[_ngcontent-%COMP%] .gmap_canvas[_ngcontent-%COMP%], .place-section[_ngcontent-%COMP%] .mapouter[_ngcontent-%COMP%] .gmap_canvas[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{width:100%}}.control-item[_ngcontent-%COMP%]{display:block}.header-container[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%}.header-container[_ngcontent-%COMP%] .navigation[_ngcontent-%COMP%]{padding-right:nb-theme(padding);font-size:2.5rem;text-decoration:none}.header-container[_ngcontent-%COMP%] .navigation[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:block}.header-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{padding:0 nb-theme(padding);font-size:1.75rem;
1font-weight:nb-theme(font-weight-bolder);border-left:1px solid nb-theme(separator);white-space:normal}.header-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-left:1rem;font-weight:300}.blu-simi[_ngcontent-%COMP%]{color:#4472c4}.logo-containter[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}']}),e})(),Yn=(()=>{class e{constructor(e,t,n){this.routed=e,this.service=t,this.router=n;const i=this.routed.snapshot.paramMap.get("id");console.log(this.routed.snapshot.paramMap.get("id")),this.service.findCongressByPublicName(i).subscribe(e=>{console.log(e),this.router.navigateByUrl(e.length?"dashboard/"+e[0].id+"/home":"dashboard")},e=>{console.log(e),localStorage.setItem("congress_name",i),this.router.navigateByUrl("login")})}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(r.Tb(wn.a),r.Tb(Tt.a),r.Tb(wn.c))},e.\u0275cmp=r.Nb({type:e,selectors:[["ngx-app"]],decls:1,vars:0,template:function(e,t){1&e&&r.Ub(0,"router-outlet")},directives:[wn.h],encapsulation:2}),e})();var $n=n("0FX9"),Zn=n.n($n);const Qn=["qrcElement"];
1var Xn=function(e){return e.URL="url",e.IMG="img",e.CANVAS="canvas",e}({});const Kn={elementType:Xn.URL,cssClass:"qrcode",value:"https://www.techiediaries.com",version:"",errorCorrectionLevel:function(e){return e.LOW="L",e.MEDIUM="M",e.QUARTILE="Q",e.HIGH="H",e}({}).MEDIUM,margin:4,scale:4,width:10,colorDark:"#000",colorLight:"#FFF"};let Jn=(()=>{let e=class{constructor(e){this.renderer=e,this.elementType=Kn.elementType,this.cssClass=Kn.cssClass,this.value=Kn.value,this.version=Kn.version,this.errorCorrectionLevel=Kn.errorCorrectionLevel,this.margin=Kn.margin,this.scale=Kn.scale,this.width=Kn.width,this.colorDark=Kn.colorDark,this.colorLight=Kn.colorLight}ngOnChanges(){this.createQRCode()}createQRCode(){if(!this.value)return;let e;this.elementType===Xn.CANVAS?(e=this.renderer.createElement("canvas"),this.toCanvas(e).then(()=>{this.renderElement(e)}).catch(e=>{this.removeElementChildren(),console.error(e)})):(e=this.renderer.createElement("img"),this.toDataURL().then(t=>{e.setAttribute("src",t),this.alt&&e.setAttribute("alt",this.alt),this.renderElement(e)}).catch(e=>{this.removeElementChildren(),console.error(e)}))}toDataURL(){return Zn.a.toDataURL(this.value,{version:this.version,errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,width:this.width,color:{dark:this.colorDark,light:this.colorLight}})}toCanvas(e){return Zn.a.toCanvas(e,this.value,{version:this.version,errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,width:this.width,color:{dark:this.colorDark,light:this.colorLight}})}renderElement(e){this.removeElementChildren(),this.renderer.appendChild(this.qrcElement.nativeElement,e)}removeElementChildren(){for(const e of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,e)}};return e.\u0275fac=function(t){return new(t||e)(r.Tb(r.H))},e.\u0275cmp=r.Nb({type:e,selectors:[["ngx-qrcode"]],viewQuery:function(e,t){if(1&e&&r.Vc(Qn,1),2&e){let e;r.Ec(e=r.kc())&&(t.qrcElement=e.first)}},inputs:{elementType:"elementType",cssClass:"cssClass",value:"value",version:"version",errorCorrectionLevel:"errorCorrectionLevel",margin:"margin",scale:"scale",width:"width",colorDark:"colorDark",colorLight:"colorLight",alt:"alt"},features:[r.Eb],decls:2,vars:2,consts:[["qrcElement",""]],template:function(e,t){1&e&&r.Ub(0,"div",null,0),2&e&&r.Ib(t.cssClass)},encapsulation:2,changeDetection:0}),e})(),ei=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Rb({type:e}),e.\u0275inj=r.Qb({}),e})();function ti(e,t){if(1&e&&(r.Zb(0,"div",4),r.Ub(1,"ngx-qrcode",5),r.Yb()),2&e){const e=r.nc();r.Gb(1),r.tc("elementType","url")("value",e.qrData)}}function ni(e,t){1&e&&(r.Zb(0,"p"),r.Qc(1,"Nessun QR code disponibile"),r.Yb())}const ii=[{path:"dashboard",loadChildren:()=>n.e(15).then(n.bind(null,"cRhG")).then(e=>
1e.ProfileModule),canActivate:[Fn]},{path:"admin",canActivate:[Fn,jn],loadChildren:()=>Promise.all([n.e(4),n.e(11)]).then(n.bind(null,"jkDv")).then(e=>e.AdminModule),data:{roles:["admin","admin:simi"]}},{path:"qr",component:(()=>{class e{constructor(e){this.route=e,this.qrData=null}ngOnInit(){console.log("r",this.route),this.route.queryParams.subscribe(e=>{this.qrData=e.code||null,console.log("code",this.qrData)})}}return e.\u0275fac=function(t){return new(t||e)(r.Tb(wn.a))},e.\u0275cmp=r.Nb({type:e,selectors:[["app-qr-code"]],decls:4,vars:3,consts:[["windowMode","",3,"center"],[1,"main-content"],["class","qr-container",4,"ngIf"],[4,"ngIf"],[1,"qr-container"],["errorCorrectionLevel","M",3,"elementType","value"]],template:function(e,t){1&e&&(r.Zb(0,"nb-layout",0),r.Zb(1,"nb-layout-column",1),r.Oc(2,ti,2,2,"div",2),r.Oc(3,ni,2,0,"p",3),r.Yb(),r.Yb()),2&e&&(r.tc("center",!0),r.Gb(2),r.tc("ngIf",t.qrData),r.Gb(1),r.tc("ngIf",!t.qrData))},directives:[qn.P,qn.O,s.n,Jn],styles:[".qr-container[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100vh;\n }"]}),e})()},{path:"terms",component:Gn},{path:"history",component:Un},{path:"regional",component:Hn},{path:"faq",component:Wn},{path:"corso-pre-congressuale",component:Hn},{path:"c/:id",component:Yn},{path:"",loadChildren:()=>n.e(12).then(n.bind(null,"H29j")).then(e=>e.AuthModule)},{path:"**",redirectTo:"admin"}],ri={useHash:!1,relativeLinkResolution:"legacy"};let si=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Rb({type:e}),e.\u0275inj=r.Qb({providers:[Fn,jn,Bn.a],imports:[[wn.g.forRoot(ii,ri)],wn.g]}),e})();var oi=n("vTDv"),ai=n("1kSV"),ci=n("kCaL"),li=n("tk/3"),ui=n("Zx8I"),di=n("YBtx"),hi=n("1IWC"),pi=n.n(hi),fi=n("oG2T"),gi=n("VFot"),mi=n("DKVz");Object(s.G)(pi.a);const bi={cookie:{domain:"https://congressi.simi.it"},palette:{popup:{background:"#000"},button:{background:"#ffffff"}},autoOpen:!1,dismissOnTimeout:10,theme:"classic",type:"info",content:{message:"Questo sito web utilizza i cookie per garantirti la migliore esperienza di navigazione.",dismiss:"Accetto",allow:"Accetto",deny:"Refuse cookies",link:"Maggiori informazioni",href:"https://congressi.simi.it/terms"}};let yi=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Rb({type:e,bootstrap:[Rn]}),e.\u0275inj=r.Qb({providers:[wt.a,Tt.a,{provide:s.a,useValue:"/"},{provide:li.a,useClass:ci.a,multi:!0}],imports:[[i.a,yt,si,vt.i,vt.v,ui.a,In.forRoot(bi),At.d.forRoot({}),fn.forRoot([Cn]),xn.q.forRoot(),ai.j,ei,qn.E.forRoot(),fi.a.forRoot({format:"dd/MM/yyyy",parseOptions:{locale:di.a},formatOptions:{locale:di.a}}),qn.Eb.forRoot(),gi.a.forRoot("pk_live_51MRwDiEurjVZM74CWljx6NnVgGnGDryF9mN5PbyMRFT8DKf19PYKScdXM3zSxr0gnJdDPiPXa6H8I48vQtPyB5dO00YCOJeKhT"),oi.a.forRoot(),On.forRoot(),qn.F.forRoot(),mi.b.forRoot({echarts:()=>n.e(2).then(n.bind(null,"MT78"))})]]}),e})();n("AytR").a.production&&Object(r.X)(),i.d().bootstrapModule(yi).catch(e=>console.error(e))},zhMp:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("fXoL");let r=(()=>{class e{constructor(){}canDeactivate(e){return!e.canDeactivate||e.canDeactivate()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Pb({token:e,factory:e.\u0275fac}),e})()},zioG:function(e,t,n){"use strict";function i(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{c(i.next(e))}catch(t){s(t)}}function a(e){try{c(i.throw(e))}catch(t){s(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}c((i=i.apply(e,t||[])).next())})}n.d(t,"a",function(){return Ct}),n.d(t,"b",function(){return St});var r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},s=n("Ju5/"),o=function(){return s.a.Date.now()},a=/\s/,c=/^\s+/,l=s.a.Symbol,u=Object.prototype,d=u.hasOwnProperty,h=u.toString,p=l?l.toStringTag:void 0,f=Object.prototype.toString,g=l?l.toStringTag:void 0,m=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":g&&g in Object(e)?function(e){var t=d.call(e,p),n=e[p];try{e[p]=void 0;var i=!0}catch(s){}var r=h.call(e);
1return i&&(t?e[p]=n:delete e[p]),r}(e):function(e){return f.call(e)}(e)},b=function(e){return null!=e&&"object"==typeof e},y=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,_=/^0o[0-7]+$/i,w=parseInt,k=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||b(e)&&"[object Symbol]"==m(e)}(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;var n;e=(n=e)?n.slice(0,function(e){for(var t=e.length;t--&&a.test(e.charAt(t)););return t}(n)+1).replace(c,""):n;var i=v.test(e);return i||_.test(e)?w(e.slice(2),i?2:8):y.test(e)?NaN:+e},C=Math.max,S=Math.min,T=function(e,t){return e===t||e!=e&&t!=t},P=function(e,t){for(var n=e.length;n--;)if(T(e[n][0],t))return n;return-1},O=Array.prototype.splice;function x(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}x.prototype.clear=function(){this.__data__=[],this.size=0},x.prototype.delete=function(e){var t=this.__data__,n=P(t,e);return!(n<0||(n==t.length-1?t.pop():O.call(t,n,1),--this.size,0))},x.prototype.get=function(e){var t=this.__data__,n=P(t,e);return n<0?void 0:t[n][1]},x.prototype.has=function(e){return P(this.__data__,e)>-1},x.prototype.set=function(e,t){var n=this.__data__,i=P(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};var A,E=x,M=function(e){if(!r(e))return!1;var t=m(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},I=s.a["__core-js_shared__"],R=(A=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+A:"",L=Function.prototype.toString,D=function(e){if(null!=e){try{return L.call(e)}catch(t){}try{return e+""}catch(t){}}return""},j=/^\[object .+?Constructor\]$/,N=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),V=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!r(e)||(t=e,R&&R in t))&&(M(e)?N:j).test(D(e));var t}(n)?n:void 0},z=V(s.a,"Map"),F=V(Object,"create"),B=Object.prototype.hasOwnProperty,q=Object.prototype.hasOwnProperty;function U(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}U.prototype.clear=function(){this.__data__=F?F(null):{},this.size=0},U.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},U.prototype.get=function(e){var t=this.__data__;if(F){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return B.call(t,e)?t[e]:void 0},U.prototype.has=function(e){var t=this.__data__;return F?void 0!==t[e]:q.call(t,e)},U.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=F&&void 0===t?"__lodash_hash_undefined__":t,this};var H=U,W=function(e,t){var n,i,r=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map};function G(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}G.prototype.clear=function(){this.size=0,this.__data__={hash:new H,map:new(z||E),string:new H}},G.prototype.delete=function(e){var t=W(this,e).delete(e);return this.size-=t?1:0,t},G.prototype.get=function(e){return W(this,e).get(e)},G.prototype.has=function(e){return W(this,e).has(e)},G.prototype.set=function(e,t){var n=W(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};var Y=G;function $(e){var t=this.__data__=new E(e);this.size=t.size}$.prototype.clear=function(){this.__data__=new E,this.size=0},$.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},$.prototype.get=function(e){return this.__data__.get(e)},$.prototype.has=function(e){return this.__data__.has(e)},$.prototype.set=function(e,t){var n=this.__data__;if(n instanceof E){var i=n.__data__;if(!z||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Y(i)}return n.set(e,t),this.size=n.size,this};var Z=$,Q=function(){try{var e=V(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),X=function(e,t,n){"__proto__"==t&&Q?Q(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},K=Object.prototype.hasOwnProperty,J=function(e,t,n){var i=e[t];K.call(e,t)&&T(i,n)&&(void 0!==n||t in e)||X(e,t,n)},ee=function(e,t,n,i){var r=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var a=t[s],c=i?i(n[a],e[a],a,n,e):void 0;void 0===c&&(c=e[a]),r?X(n,a,c):J(n,a,c)}return n},te=function(e){return b(e)&&"[object Arguments]"==m(e)},ne=Object.prototype,ie=ne.hasOwnProperty,re=ne.propertyIsEnumerable,se=te(function(){return arguments}())?te:function(e){return b(e)&&ie.call(e,"callee")&&!re.call(e,"callee")},oe=se,ae=Array.isArray,ce=n("WOAq"),le=/^(?:0|[1-9]\d*)$/,ue=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&le.test(e))&&e>-1&&e%1==0&&e<t},de=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},he={};
1he["[object Float32Array]"]=he["[object Float64Array]"]=he["[object Int8Array]"]=he["[object Int16Array]"]=he["[object Int32Array]"]=he["[object Uint8Array]"]=he["[object Uint8ClampedArray]"]=he["[object Uint16Array]"]=he["[object Uint32Array]"]=!0,he["[object Arguments]"]=he["[object Array]"]=he["[object ArrayBuffer]"]=he["[object Boolean]"]=he["[object DataView]"]=he["[object Date]"]=he["[object Error]"]=he["[object Function]"]=he["[object Map]"]=he["[object Number]"]=he["[object Object]"]=he["[object RegExp]"]=he["[object Set]"]=he["[object String]"]=he["[object WeakMap]"]=!1;var pe=function(e){return function(t){return e(t)}},fe=n("xutz"),ge=fe.a&&fe.a.isTypedArray,me=ge?pe(ge):function(e){return b(e)&&de(e.length)&&!!he[m(e)]},be=Object.prototype.hasOwnProperty,ye=function(e,t){var n=ae(e),i=!n&&oe(e),r=!n&&!i&&Object(ce.a)(e),s=!n&&!i&&!r&&me(e),o=n||i||r||s,a=o?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],c=a.length;for(var l in e)!t&&!be.call(e,l)||o&&("length"==l||r&&("offset"==l||"parent"==l)||s&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ue(l,c))||a.push(l);return a},ve=Object.prototype,_e=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ve)},we=function(e,t){return function(n){return e(t(n))}},ke=we(Object.keys,Object),Ce=Object.prototype.hasOwnProperty,Se=function(e){return null!=e&&de(e.length)&&!M(e)},Te=function(e){return Se(e)?ye(e):function(e){if(!_e(e))return ke(e);var t=[];for(var n in Object(e))Ce.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)},Pe=Object.prototype.hasOwnProperty,Oe=function(e){return Se(e)?ye(e,!0):function(e){if(!r(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=_e(e),n=[];for(var i in e)("constructor"!=i||!t&&Pe.call(e,i))&&n.push(i);return n}(e)},xe=n("3/ER"),Ae=function(){return[]},Ee=Object.prototype.propertyIsEnumerable,Me=Object.getOwnPropertySymbols,Ie=Me?function(e){return null==e?[]:(e=Object(e),function(t,n){for(var i=-1,r=null==t?0:t.length,s=0,o=[];++i<r;){var a=t[i];Ee.call(e,a)&&(o[s++]=a)}return o}(Me(e)))}:Ae,Re=function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e},Le=we(Object.getPrototypeOf,Object),De=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Re(t,Ie(e)),e=Le(e);return t}:Ae,je=function(e,t,n){var i=t(e);return ae(e)?i:Re(i,n(e))},Ne=function(e){return je(e,Te,Ie)},Ve=function(e){return je(e,Oe,De)},ze=V(s.a,"DataView"),Fe=V(s.a,"Promise"),Be=V(s.a,"Set"),qe=V(s.a,"WeakMap"),Ue=D(ze),He=D(z),We=D(Fe),Ge=D(Be),Ye=D(qe),$e=m;(ze&&"[object DataView]"!=$e(new ze(new ArrayBuffer(1)))||z&&"[object Map]"!=$e(new z)||Fe&&"[object Promise]"!=$e(Fe.resolve())||Be&&"[object Set]"!=$e(new Be)||qe&&"[object WeakMap]"!=$e(new qe))&&($e=function(e){var t=m(e),n="[object Object]"==t?e.constructor:void 0,i=n?D(n):"";if(i)switch(i){case Ue:return"[object DataView]";case He:return"[object Map]";case We:return"[object Promise]";case Ge:return"[object Set]";case Ye:return"[object WeakMap]"}return t});var Ze=$e,Qe=Object.prototype.hasOwnProperty,Xe=s.a.Uint8Array,Ke=function(e){var t=new e.constructor(e.byteLength);return new Xe(t).set(new Xe(e)),t},Je=/\w*$/,et=l?l.prototype:void 0,tt=et?et.valueOf:void 0,nt=Object.create,it=function(){function e(){}return function(t){if(!r(t))return{};if(nt)return nt(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),rt=fe.a&&fe.a.isMap,st=rt?pe(rt):function(e){return b(e)&&"[object Map]"==Ze(e)},ot=fe.a&&fe.a.isSet,at=ot?pe(ot):function(e){return b(e)&&"[object Set]"==Ze(e)},ct={};ct["[object Arguments]"]=ct["[object Array]"]=ct["[object ArrayBuffer]"]=ct["[object DataView]"]=ct["[object Boolean]"]=ct["[object Date]"]=ct["[object Float32Array]"]=ct["[object Float64Array]"]=ct["[object Int8Array]"]=ct["[object Int16Array]"]=ct["[object Int32Array]"]=ct["[object Map]"]=ct["[object Number]"]=ct["[object Object]"]=ct["[object RegExp]"]=ct["[object Set]"]=ct["[object String]"]=ct["[object Symbol]"]=ct["[object Uint8Array]"]=ct["[object Uint8ClampedArray]"]=ct["[object Uint16Array]"]=ct["[object Uint32Array]"]=!0,ct["[object Error]"]=ct["[object Function]"]=ct["[object WeakMap]"]=!1;var lt=function e(t,n,i,s,o,a){var c,l=1&n,u=2&n,d=4&n;if(i&&(c=o?i(t,s,o,a):i(t)),void 0!==c)return c;if(!r(t))return t;var h=ae(t);if(h){if(c=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Qe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!l)return function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}(t,c)}else{var p=Ze(t),f="[object Function]"==p||"[object GeneratorFunction]"==p;if(Object(ce.a)(t))return Object(xe.a)(t,l);if("[object Object]"==p||"[object Arguments]"==p||f&&!o){if(c=u||f?{}:function(e){return"function"!=typeof e.constructor||_e(e)?{}:it(Le(e))}(t),!l)return u?function(e,t){return ee(e,De(e),t)}(t,function(e,t){return e&&ee(t,Oe(t),e)}(c,t)):function(e,t){return ee(e,Ie(e),t)}(t,function(e,t){return e&&ee(t,Te(t),e)}(c,t))}else{if(!ct[p])return o?t:{};c=function(e,t,n){var i,r,s=e.constructor;switch(t){case"[object ArrayBuffer]":return Ke(e);case"[object Boolean]":case"[object Date]":return new s(+e);case"[object DataView]":return function(e,t){var n=t?Ke(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);
1case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?Ke(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(e);case"[object RegExp]":return(r=new(i=e).constructor(i.source,Je.exec(i))).lastIndex=i.lastIndex,r;case"[object Symbol]":return tt?Object(tt.call(e)):{}}}(t,p,l)}}a||(a=new Z);var g=a.get(t);if(g)return g;a.set(t,c),at(t)?t.forEach(function(r){c.add(e(r,n,i,r,t,a))}):st(t)&&t.forEach(function(r,s){c.set(s,e(r,n,i,s,t,a))});var m=h?void 0:(d?u?Ve:Ne:u?Oe:Te)(t);return function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n););}(m||t,function(r,s){m&&(r=t[s=r]),J(c,s,e(r,n,i,s,t,a))}),c},ut=Function.prototype.toString,dt=Object.prototype.hasOwnProperty,ht=ut.call(Object);function pt(e,t=new Set){const n=[e],i=new Set;for(;n.length>0;){const e=n.shift();if(!(i.has(e)||ft(e)||t.has(e)))if(i.add(e),e[Symbol.iterator])try{for(const t of e)n.push(t)}catch(r){}else for(const t in e)"defaultValue"!==t&&n.push(e[t])}return i}function ft(e){const t=Object.prototype.toString.call(e),n=typeof e;return"number"===n||"boolean"===n||"string"===n||"symbol"===n||"function"===n||"[object Date]"===t||"[object RegExp]"===t||"[object Module]"===t||null==e||e instanceof EventTarget||e instanceof Event}class gt{constructor(e){if(this.crashes=[],this.state="initializing",this._crashNumberLimit="number"==typeof e.crashNumberLimit?e.crashNumberLimit:3,this._now=Date.now,this._minimumNonErrorTimePeriod="number"==typeof e.minimumNonErrorTimePeriod?e.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=e=>{const t=e.error||e.reason;t instanceof Error&&this._handleError(t,e)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}setCreator(e){this._creator=e}setDestructor(e){this._destructor=e}destroy(){this._stopErrorHandling(),this._listeners={}}on(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)}off(e,t){this._listeners[e]=this._listeners[e].filter(e=>e!==t)}_fire(e,...t){const n=this._listeners[e]||[];for(const i of n)i.apply(this,[null,...t])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(e,t){if(this._shouldReactToError(e)){this.crashes.push({message:e.message,stack:e.stack,filename:t.filename,lineno:t.lineno,colno:t.colno,date:this._now()});const n=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:e,causesRestart:n}),n?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(e){return e.is&&e.is("CKEditorError")&&null!=e.context&&"ready"===this.state&&this._isErrorComingFromThisItem(e)}_shouldRestart(){return this.crashes.length<=this._crashNumberLimit||(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}class mt extends gt{constructor(e,t={}){super(t),this._editor=null,this._throttledSave=function(e,t,n){var i=!0,s=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return r(n)&&(i="leading"in n?!!n.leading:i,s="trailing"in n?!!n.trailing:s),function(e,t,n){var i,s,a,c,l,u,d=0,h=!1,p=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=i,r=s;return i=s=void 0,d=t,c=e.apply(r,n)}function m(e){return d=e,l=setTimeout(y,t),h?g(e):c}function b(e){var n=e-u;return void 0===u||n>=t||n<0||p&&e-d>=a}function y(){var e=o();if(b(e))return v(e);l=setTimeout(y,function(e){var n=t-(e-u);return p?S(n,a-(e-d)):n}(e))}function v(e){return l=void 0,f&&i?g(e):(i=s=void 0,c)}function _(){var e=o(),n=b(e);if(i=arguments,s=this,u=e,n){if(void 0===l)return m(u);if(p)return clearTimeout(l),l=setTimeout(y,t),g(u)}return void 0===l&&(l=setTimeout(y,t)),c}return t=k(t)||0,r(n)&&(h=!!n.leading,a=(p="maxWait"in n)?C(k(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),_.cancel=function(){void 0!==l&&clearTimeout(l),d=0,i=u=s=l=void 0},_.flush=function(){return void 0===l?c:v(o())},_}(e,t,{leading:i,maxWait:t,trailing:s})}(this._save.bind(this),"number"==typeof t.saveInterval?t.saveInterval:5e3),this._creator=(t,n)=>e.create(t,n),this._destructor=e=>e.destroy()}get editor(){return this._editor}get _item(){return this._editor}_restart(){return Promise.resolve().then(()=>(this.state="initializing",this._fire("stateChange"),this._destroy())).catch(e=>{console.error("An error happened during the editor destroying.",e)}).then(()=>
1{if("string"==typeof this._elementOrData)return this.create(this._data,this._config,this._config.context);{const e=Object.assign({},this._config,{initialData:this._data});return this.create(this._elementOrData,e,e.context)}}).then(()=>{this._fire("restart")})}create(e=this._elementOrData,t=this._config,n){return Promise.resolve().then(()=>(super._startErrorHandling(),this._elementOrData=e,this._config=this._cloneEditorConfiguration(t)||{},this._config.context=n,this._creator(e,this._config))).then(e=>{this._editor=e,e.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=e.model.document.version,this._data=this._getData(),this.state="ready",this._fire("stateChange")})}destroy(){return Promise.resolve().then(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling(),this._throttledSave.flush();const e=this._editor;return this._editor=null,this._destructor(e)})}_save(){const e=this._editor.model.document.version;if(e!==this._lastDocumentVersion)try{this._data=this._getData(),this._lastDocumentVersion=e}catch(t){console.error(t,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(e){this._excludedProps=e}_getData(){const e={};for(const t of this._editor.model.document.getRootNames())e[t]=this._editor.data.get({rootName:t});return e}_isErrorComingFromThisItem(e){return function(e,t,n=new Set){if(e===t&&"object"==typeof(i=e)&&null!==i)return!0;var i;const r=pt(e,n),s=pt(t,n);for(const o of r)if(s.has(o))return!0;return!1}(this._editor,e.context,this._excludedProps)}_cloneEditorConfiguration(e){return lt(e,5,t="function"==typeof(t=(e,t)=>function(e){return b(e)&&1===e.nodeType&&!function(e){if(!b(e)||"[object Object]"!=m(e))return!1;var t=Le(e);if(null===t)return!0;var n=dt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ut.call(n)==ht}(e)}(e)||"context"===t?e:void 0)?t:void 0);var t}}var bt,yt=n("fXoL"),vt=n("ofXK"),_t=n("3Pt+");function wt(e,t){}!function(e){e.EditorConstructor=function(){},e.Config=function(){},e.EventInfo=function(){},e.BaseEditor=function(){},e.DataApi=function(){},e.Editor=function(){},e.ContextWatchdog=function(){},e.EditorWatchdog=function(){},e.Watchdog=function(){}}(bt||(bt={}));const kt=new Array(256).fill(0).map((e,t)=>("0"+t.toString(16)).slice(-2));let Ct=(()=>{class e{constructor(e,t){this.config={},this.data="",this.tagName="div",this.ready=new yt.o,this.change=new yt.o,this.blur=new yt.o,this.focus=new yt.o,this.error=new yt.o,this.initiallyDisabled=!1,this.isEditorSettingData=!1,this.id=function(){const e=4294967296*Math.random()>>>0,t=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0,i=4294967296*Math.random()>>>0;return"e"+kt[e>>0&255]+kt[e>>8&255]+kt[e>>16&255]+kt[e>>24&255]+kt[t>>0&255]+kt[t>>8&255]+kt[t>>16&255]+kt[t>>24&255]+kt[n>>0&255]+kt[n>>8&255]+kt[n>>16&255]+kt[n>>24&255]+kt[i>>0&255]+kt[i>>8&255]+kt[i>>16&255]+kt[i>>24&255]}(),this.ngZone=t,this.elementRef=e}set disabled(e){this.setDisabledState(e)}get disabled(){return this.editorInstance?this.editorInstance.isReadOnly:this.initiallyDisabled}get editorInstance(){let e=this.editorWatchdog;return this.watchdog&&(e=this.watchdog._watchdogs.get(this.id)),e?e.editor:null}ngAfterViewInit(){this.attachToWatchdog()}ngOnDestroy(){return i(this,void 0,void 0,function*(){this.watchdog?yield this.watchdog.remove(this.id):this.editorWatchdog&&this.editorWatchdog.editor&&(yield this.editorWatchdog.destroy(),this.editorWatchdog=void 0)})}writeValue(e){null===e&&(e=""),this.editorInstance?(this.isEditorSettingData=!0,this.editorInstance.setData(e),this.isEditorSettingData=!1):(this.data=e,this.editorElement&&(this.editorElement.innerHTML=this.data))}registerOnChange(e){this.cvaOnChange=e}registerOnTouched(e){this.cvaOnTouched=e}setDisabledState(e){this.editorInstance&&(this.editorInstance.isReadOnly=e),this.initiallyDisabled=e}attachToWatchdog(){const e=(e,t)=>i(this,void 0,void 0,function*(){return this.ngZone.runOutsideAngular(()=>i(this,void 0,void 0,function*(){this.elementRef.nativeElement.appendChild(e);const n=yield this.editor.create(e,t);return this.initiallyDisabled&&(n.isReadOnly=this.initiallyDisabled),this.ngZone.run(()=>{this.ready.emit(n)}),this.setUpEditorEvents(n),n}))}),t=e=>i(this,void 0,void 0,function*(){yield e.destroy(),this.elementRef.nativeElement.removeChild(this.editorElement)}),n=()=>{this.ngZone.run(()=>{this.error.emit()})},r=document.createElement(this.tagName),s=this.getConfig();if(this.editorElement=r,this.watchdog)this.watchdog.add({id:this.id,type:"editor",creator:e,destructor:t,sourceElementOrData:r,config:s}),this.watchdog.on("itemError",(e,{itemId:t})=>{t===this.id&&n()});else{const i=new mt(this.editor);i.setCreator(e),i.setDestructor(t),i.on("error",n),this.editorWatchdog=i,this.editorWatchdog.create(r,s)}}getConfig(){if(this.data&&this.config.initialData)throw new Error("Editor data should be provided either using `config.initialData` or `data` properties.");return Object.assign({},this.config,{initialData:this.config.initialData||this.data||""})}setUpEditorEvents(e){const t=e.editing.view.document;e.model.document.on("change:data",t=>{this.ngZone.run(()=>
1{if(this.cvaOnChange&&!this.isEditorSettingData){const t=e.getData();this.cvaOnChange(t)}this.change.emit({event:t,editor:e})})}),t.on("focus",t=>{this.ngZone.run(()=>{this.focus.emit({event:t,editor:e})})}),t.on("blur",t=>{this.ngZone.run(()=>{this.cvaOnTouched&&this.cvaOnTouched(),this.blur.emit({event:t,editor:e})})})}}return e.\u0275fac=function(t){return new(t||e)(yt.Tb(yt.l),yt.Tb(yt.C))},e.\u0275cmp=yt.Nb({type:e,selectors:[["ckeditor"]],inputs:{config:"config",data:"data",tagName:"tagName",disabled:"disabled",editor:"editor",watchdog:"watchdog"},outputs:{ready:"ready",change:"change",blur:"blur",focus:"focus",error:"error"},features:[yt.Fb([{provide:_t.m,useExisting:Object(yt.Y)(()=>e),multi:!0}])],decls:1,vars:0,template:function(e,t){1&e&&yt.Oc(0,wt,0,0,"ng-template")},encapsulation:2}),e})(),St=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=yt.Rb({type:e}),e.\u0275inj=yt.Qb({imports:[[_t.i,vt.c]]}),e})()},zktE:function(e,t,n){"use strict";n.d(t,"a",function(){return f});var i=n("tk/3"),r=n("wET7"),s=n("XdDp"),o=n("Zfcy"),a=(n("5V3d"),n("Zvzv")),c=n("XNiG"),l=n("pLZG"),u=n("lJxs"),d=n("JIr8"),h=n("fXoL");class p{encodeKey(e){return encodeURIComponent(e)}encodeValue(e){return encodeURIComponent(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}let f=(()=>{class e{constructor(e,t,n,i){this.http=e,this.models=t,this.auth=n,this.errorHandler=i,this.model=this.models.get(this.getModelName())}request(e,t,n={},r={},s={},a=!1,c){if(Object.keys(n).forEach(e=>{t=t.replace(new RegExp(":"+e+"(/|$)","g"),n[e]+"$1")}),!a){let n,a=new i.g({encoder:new p}),h=new i.f;h=h.append("Content-Type","application/json"),h=this.authenticate(t,h);let f="object"==typeof s?Object.keys(s):[];n=1===f.length?s[f.shift()]:s;let g="";r.filter&&(o.a.isHeadersFilteringSet()?h=h.append("filter",JSON.stringify(r.filter)):g=`?filter=${encodeURIComponent(JSON.stringify(r.filter))}`,delete r.filter),r.where&&(o.a.isHeadersWhereSet()?h=h.append("where",JSON.stringify(r.where)):g=`?where=${encodeURIComponent(JSON.stringify(r.where))}`,delete r.where),"function"==typeof c&&(h=c(h)),Object.keys(r).forEach(e=>{let t=r[e];t="object"==typeof t?JSON.stringify(t):t,a=a.append(e,t)});let m=new i.h(e,`${t}${g}`,n,{headers:h,params:a,withCredentials:o.a.getRequestOptionsCredentials()});return this.http.request(m).pipe(Object(l.a)(e=>e instanceof i.i),Object(u.a)(e=>e.body),Object(d.a)(e=>this.errorHandler.handleError(e)))}console.info("SDK: PubSub functionality is disabled, generate SDK using -io enabled")}authenticate(e,t){return this.auth.getAccessTokenId()&&(t=t.append("Authorization",o.a.getAuthPrefix()+this.auth.getAccessTokenId())),t}create(e,t){return this.request("POST",[o.a.getPath(),o.a.getApiVersion(),this.model.getModelDefinition().path].join("/"),void 0,void 0,{data:e},null,t).pipe(Object(u.a)(e=>this.model.factory(e)))}createMany(e,t){return this.request("POST",[o.a.getPath(),o.a.getApiVersion(),this.model.getModelDefinition().path].join("/"),void 0,void 0,{data:e},null,t).pipe(Object(u.a)(e=>e.map(e=>this.model.factory(e))))}findById(e,t={},n){let i={};return t&&(i.filter=t),this.request("GET",[o.a.getPath(),o.a.getApiVersion(),this.model.getModelDefinition().path,":id"].join("/"),{id:e},i,void 0,null,n).pipe(Object(u.a)(e=>this.model.factory(e)))}find(e={},t){return this.request("GET",[o.a.getPath(),o.a.getApiVersion(),this.model.getModelDefinition().path].join("/"),void 0,{filter:e},void 0,null,t).pipe(Object(u.a)(e=>e.map(e=>this.model.factory(e))))}exists(e,t){return this.request("GET",[o.a.getPath(),o.a.getApiVersion(),this.model.getModelDefinition().path,":id/exists"].join("/"),{id:e},void 0,void 0,null,t)}findOne(e={},t){return this.request("GET",[o.a.getPath(),o.a.getApiVersion(),this.model.getModelDefinition().path,"findOne"].join("/"),void 0,{filter:e},void 0,null,t).pipe(Object(u.a)(e=>this.model.factory(e)))}updateAll(e={},t,n){let i={};return e&&(i.where=e),this.request("POST",[o.a.getPath(),o.a.getApiVersion(),this.model.getModelDefinition().path,"update"].join("/"),void 0,i,{data:t},null,n)}deleteById(e,t){return this.request("DELETE",[o.a.getPath(),o.a.getApiVersion(),this.model.getModelDefinition().path,":id"].join("/"),{id:e},void 0,void 0,null,t).pipe(Object(u.a)(e=>this.model.factory(e)))}count(e={},t){let n={};return e&&(n.where=e),this.request("GET",[o.a.getPath(),o.a.getApiVersion(),this.model.getModelDefinition().path,"count"].join("/"),void 0,n,void 0,null,t)}
1updateAttributes(e,t,n){return this.request("PUT",[o.a.getPath(),o.a.getApiVersion(),this.model.getModelDefinition().path,":id"].join("/"),{id:e},void 0,{data:t},null,n).pipe(Object(u.a)(e=>this.model.factory(e)))}upsert(e={},t){return this.request("PUT",[o.a.getPath(),o.a.getApiVersion(),this.model.getModelDefinition().path].join("/"),void 0,void 0,{data:e},null,t).pipe(Object(u.a)(e=>this.model.factory(e)))}upsertPatch(e={},t){return this.request("PATCH",[o.a.getPath(),o.a.getApiVersion(),this.model.getModelDefinition().path].join("/"),void 0,void 0,{data:e},null,t).pipe(Object(u.a)(e=>this.model.factory(e)))}upsertWithWhere(e={},t={},n){let i={};return e&&(i.where=e),this.request("POST",[o.a.getPath(),o.a.getApiVersion(),this.model.getModelDefinition().path,"upsertWithWhere"].join("/"),void 0,i,{data:t},null,n).pipe(Object(u.a)(e=>this.model.factory(e)))}replaceOrCreate(e={},t){return this.request("POST",[o.a.getPath(),o.a.getApiVersion(),this.model.getModelDefinition().path,"replaceOrCreate"].join("/"),void 0,void 0,{data:e},null,t).pipe(Object(u.a)(e=>this.model.factory(e)))}replaceById(e,t={},n){return this.request("POST",[o.a.getPath(),o.a.getApiVersion(),this.model.getModelDefinition().path,":id","replace"].join("/"),{id:e},void 0,{data:t},null,n).pipe(Object(u.a)(e=>this.model.factory(e)))}createChangeStream(){let e=new c.a;if("undefined"!=typeof EventSource){let n=t=>e.next(JSON.parse(t.data));var t=new EventSource([o.a.getPath(),o.a.getApiVersion(),this.model.getModelDefinition().path,"change-stream"].join("/"));t.addEventListener("data",n),t.onerror=n}else console.warn("SDK Builder: EventSource is not supported");return e.asObservable()}}return e.\u0275fac=function(t){return new(t||e)(h.gc(i.b),h.gc(a.a),h.gc(s.a),h.gc(r.a,8))},e.\u0275prov=h.Pb({token:e,factory:e.\u0275fac}),e})()},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"},zp1y:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("l7GE"),r=n("ZUHj");function s(...e){return t=>{let n;return"function"==typeof e[e.length-1]&&(n=e.pop()),t.lift(new o(e,n))}}class o{constructor(e,t){this.observables=e,this.project=t}call(e,t){return t.subscribe(new a(e,this.observables,this.project))}}class a extends i.a{constructor(e,t,n){super(e),this.observables=t,this.project=n,this.toRespond=[];const i=t.length;this.values=new Array(i);for(let r=0;r<i;r++)this.toRespond.push(r);for(let s=0;s<i;s++){let e=t[s];this.add(Object(r.a)(this,e,void 0,s))}}notifyNext(e,t,n){this.values[n]=t;const i=this.toRespond;if(i.length>0){const e=i.indexOf(n);-1!==e&&i.splice(e,1)}}notifyComplete(){}_next(e){if(0===this.toRespond.length){const t=[e,...this.values];this.project?this._tryProject(t):this.destination.next(t)}}_tryProject(e){let t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}},zx2A:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return c});var i=n("7o/Q"),r=n("HDdC"),s=n("SeVD");class o extends i.a{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends i.a{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function c(e,t){if(!t.closed)return e instanceof r.a?e.subscribe(t):Object(s.a)(e)(t)}}},[[0,0]]]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.